Mapping crop type at large scale in Europe
Marc Rußwurm��Postdoctoral Researcher
EPFL-ECEO Laboratory
Valais, Switzerland
Marc Rußwurm Guest Speaker McGill computer science course
Marc Russwurm
About me
Postdoctoral Researcher as EPFL
Environmental Computational Science and Earth Observation Laboratory (ECEO)
Ph.D. at TU Munich Remote Sensing Technology in deep time series models for crop type mapping
I envision and build intelligent systems that help address relevant and meaningful Earth observation problems
Marc Rußwurm Guest Speaker McGill computer science course
Marc Russwurm
Outline of this presentation
part 1:
part 2:
part 3:
Marc Rußwurm Guest Speaker McGill computer science course
Marc Russwurm
Remote Sensing Technology
Marc Rußwurm Guest Speaker McGill computer science course
Marc Russwurm
Method and Application
🤖
model
input data
expected output
🤔
How can I design this mapping?
Computer Science/Machine Learning
What data is available?
�how can we measure our environment?
🤔
Remote Sensing
What problem needs to be solved?
🤔
Research Question &�Field of Application
Marc Rußwurm Guest Speaker McGill computer science course
Marc Russwurm
Large-Scale Agricultural Monitoring �and Crop Type Mapping
6
Crop types classification
challenging and meaningful problem
European Union or United States�
data available at large scale
Kenya
Tanzania
Marc Rußwurm Guest Speaker McGill computer science course
Marc Russwurm
Measuring System Earth
Satellites measure the continuous system earth in discrete temporal intervals
Marc Rußwurm Guest Speaker McGill computer science course
Marc Russwurm
Multi-spectral data
Marc Rußwurm Guest Speaker McGill computer science course
Marc Russwurm
True Color in imagery data
Marc Rußwurm Guest Speaker McGill computer science course
Marc Russwurm
False Color in imagery data
Marc Rußwurm Guest Speaker McGill computer science course
Marc Russwurm
Light scattering in vegetation
Near infrared scattered and reflected
in the spongy mesophyll cells
red absorbed by chlorophyl for photosynthesis
Zephyris (2001). Diagram of the internal structure of a leaf. Contributors Wikipedia.
Marc Rußwurm Guest Speaker McGill computer science course
Marc Russwurm
Strategy 1: Sentinel-2 NDVI time series
Sentinel-2 time series
[Mimić et al., 2020]
corn
meadow
Mimić, G., Brdar, S., Brkić, M., Panić, M., Marko, O., and Crnojević, V. (2020). engineer-ing meteorological features to select stress tolerant hybrids in maize. Scientific reports, 10(1):1–10.
Marc Rußwurm Guest Speaker McGill computer science course
Marc Russwurm
Crop type mapping
Classical and deep learning approaches
Marc Rußwurm Guest Speaker McGill computer science course
Marc Russwurm
Machine learning for crop type mapping
feature extraction
data preprocessing
classification
🔍
🤔
🔍
🤔
🔍
🤔
input
🔍
🤔
Strategy 1: classical machine learning
corn!
Marc Rußwurm Guest Speaker McGill computer science course
Marc Russwurm
Preprocessing
Sentinel-2 time series
[Mimić et al., 2020]
corn
meadow
Marc Rußwurm Guest Speaker McGill computer science course
Marc Russwurm
Feature extraction
TimeSAT software
Idea:
Marc Rußwurm Guest Speaker McGill computer science course
Marc Russwurm
Classification
feature extraction
wheat!
data preprocessing
classification
output
🔍
🤔
🔍
🤔
🔍
🤔
Marc Rußwurm Guest Speaker McGill computer science course
Marc Russwurm
Limitations of the classical ML pipeline
feature extraction
wheat!
data preprocessing
classification
output
🔍
🤔
🔍
🤔
🔍
🤔
We only use 2 of 13 bands!
are these 9 features enough?
what if the curve fits poorly (e.g. due to clouds)?
do we get the best accuracy?
Marc Rußwurm Guest Speaker McGill computer science course
Marc Russwurm
Two strategies
feature extraction
data preprocessing
classification
🔍
🤔
🔍
🤔
🔍
🤔
input
🔍
🤔
accuracy
👍
🙄
interpretability
😋
Strategy 1: classical machine learning pipeline:
corn!
corn!
deep neural network
learned feature extraction and classification
🔍
🤔
Strategy 2: End-to-end deep learning
accuracy
👍
😋
interpretability
🤷
Marc Rußwurm Guest Speaker McGill computer science course
Marc Russwurm
End-to-end deep learning
corn!
deep neural network
learned feature extraction and classification
⚙
classification error
compare with ground truth
update parameters
⚙ optimization loop
Direct minimization of error objective is (usually) more accurate!
🔍
🤔
because it is easier to define an error metric than a model pipeline
Marc Rußwurm Guest Speaker McGill computer science course
Marc Russwurm
Different models for time series classifications
Recurrent �Neural Networks
recurrence
Hochreiter & Schmidhuber, 1997
1D Convolutional �Neural Networks
convolution
Self-Attention �Networks
self-attention
Vaswani et al., 2017
Marc Rußwurm Guest Speaker McGill computer science course
Marc Russwurm
Recurrent Neural Networks
How to find this mapping?
🤔
wheat �or �corn?
Input tensor [T x D]
output vector [C]
Linear Layer
Recurrent Layer
LSTM Layer
LSTM
LSTM
Marc Rußwurm Guest Speaker McGill computer science course
Marc Russwurm
Lets start with a linear layer
Linear
Linear Layer Equation
reflectance
D=13 reflectances
H hidden features
Linear
C class probabilities
D x H weights
H biases
Marc Rußwurm Guest Speaker McGill computer science course
Marc Russwurm
Recurrent Neural Networks (RNNs)
RNN
RNN
RNN
RNN Equation
D x H weights
H x H weights
H biases
Linear
Marc Rußwurm Guest Speaker McGill computer science course
Marc Russwurm
Vanishing Gradient Problem
Hardly any influence of here
A lot of influence
Alex Graves. Supervised Sequence Labelling with Recurrent Neural Networks (2012)
Marc Rußwurm Guest Speaker McGill computer science course
Marc Russwurm
Solve vanishing gradients by introducing gates
Still a lot of influence
Alex Graves. Supervised Sequence Labelling with Recurrent Neural Networks (2012)
Marc Rußwurm Guest Speaker McGill computer science course
Marc Russwurm
Gated Recurrent Neural Networks (e.g. LSTM)
RNN
Recurrent Neural Networks (RNNs)
Long Short-Term Memory Neural Network
Marc Rußwurm Guest Speaker McGill computer science course
Marc Russwurm
Long Short-Term Memory (LSTM)�gated-recurrent neural network
update equations
gate equations
“forget gate”
“input gate”
“modulation gate”
“output gate”
Hochreiter, S., & Schmidhuber, J. (1997). Long short-term memory. Neural computation, 9(8), 1735-1780.
Marc Rußwurm Guest Speaker McGill computer science course
Marc Russwurm
Convolutional LSTMs
update equations
gate equations
“forget gate”
“input gate”
“modulation gate”
“output gate”
replace matrix multiplications by convolutions
Shi, X., Chen, Z., Wang, H., Yeung, D. Y., Wong, W. K., & Woo, W. C. (2015). Convolutional LSTM network: A machine learning approach for precipitation nowcasting. Advances in neural information processing systems, 28.
Marc Rußwurm Guest Speaker McGill computer science course
Marc Russwurm
Complete time series model
update �parameters
Rußwurm, M., & Körner, M. (2018). Multi-temporal land cover classification with sequential recurrent encoders. ISPRS International Journal of Geo-Information, 7(4), 129.
Marc Rußwurm Guest Speaker McGill computer science course
Marc Russwurm
Is data-driven deep learning more accurate in crop type mapping?
🤔
Rußwurm, M., & Körner, M. (2018). Multi-temporal land cover classification with sequential recurrent encoders. ISPRS International Journal of Geo-Information, 7(4), 129.
Marc Rußwurm Guest Speaker McGill computer science course
Marc Russwurm
Unfiltered satellite data is cloudy
Marc Rußwurm Guest Speaker McGill computer science course
Marc Russwurm
Clouds as positive peaks in the signal
Marc Rußwurm Guest Speaker McGill computer science course
Marc Russwurm
Feature visualization
Hypothesis 2:
�Can deep learning models “learn to ignore clouds”?
🤔
Marc Rußwurm Guest Speaker McGill computer science course
Marc Russwurm
Gate visualizations
Gate visualization
Marc Rußwurm Guest Speaker McGill computer science course
Marc Russwurm
Input gate visualization
Finding: Input gate i switches “off” on clouds
Marc Rußwurm Guest Speaker McGill computer science course
Marc Russwurm
We use automatic differentiation all the time
LSTM Network with weight
Prediction “wheat”
How should we change the weight to change the loss/error
Correct “corn”
Error
update parameters based on gradients
We use gradient descend for training:
Marc Rußwurm Guest Speaker McGill computer science course
Marc Russwurm
Lets use autograd for input gradients
LSTM Network
Prediction “wheat”
automatic backprop
How should we change the input to change the prediction
Marc Rußwurm Guest Speaker McGill computer science course
Marc Russwurm
Very easy to implement in torch
LSTM Network
(wheat)
automatic backprop
highest logit
Marc Rußwurm Guest Speaker McGill computer science course
Marc Russwurm
Gradient with respect to the inputs
Marc Rußwurm Guest Speaker McGill computer science course
Marc Russwurm
Recent Research
Early Classification
Domain Shift in Geographic Data
Marc Rußwurm Guest Speaker McGill computer science course
Marc Russwurm
In-Season or Early Classification
corn
meadow
maybe we can already decide here?
Marc Rußwurm Guest Speaker McGill computer science course
Marc Russwurm
Early classification in crop type mapping
Marc Rußwurm, Nicolas Courty, Remi Emonet, Sebastien Lefévre, Devis Tuia, and Romain Tavenard (2023). End-to-End Learned Early Classification of Time Series for In-Season Crop Type Mapping. ISPRS Journal of Photogrammetry and Remote Sensing. 196. 445-456. https://doi.org/10.1016/j.isprsjprs.2022.12.016
Marc Rußwurm Guest Speaker McGill computer science course
Marc Russwurm
Different stopping times for different crops
Marc Rußwurm, Nicolas Courty, Remi Emonet, Sebastien Lefévre, Devis Tuia, and Romain Tavenard (2023). End-to-End Learned Early Classification of Time Series for In-Season Crop Type Mapping. ISPRS Journal of Photogrammetry and Remote Sensing. 196. 445-456. https://doi.org/10.1016/j.isprsjprs.2022.12.016
Marc Rußwurm Guest Speaker McGill computer science course
Marc Russwurm
Domain shift
example crop type mapping
distribution shift
&
out-of-distribution generalization
focus of my research
necessary to build intelligent systems
accurate
inaccurate
model trained here
Marc Rußwurm Guest Speaker McGill computer science course
Marc Russwurm
Temporal domain shift
46
Kondmann, L., Toker, A., Rußwurm, et al., (2021, August). DENETHOR: The DynamicEarthNET dataset for Harmonized, inter-Operable, analysis-Ready, daily crop monitoring from space. In NeurIPSDatasets and Benchmarks Track (Round 2).
tested on: | 2018 | 2019 |
accuracy | 78.77% | 67.25% |
Accuracy crop type mapping in Germany with attention-based time series classifier (pseltae) ��trained on 2018 data
Marc Rußwurm Guest Speaker McGill computer science course
Marc Russwurm
Addressing Distribution Shifts with Meta-Learning
😄
😢
😢
Model-Agnostic Meta-Learning Algorithm (Finn et al., 2017)�on global land cover classification problems
-funded research stay
Sherrie Wang & David Lobell
Rußwurm, M., Wang, S., Korner, M., & Lobell, D. (2020). Meta-learning for few-shot land cover classification. In Proceedings of the ieee/cvf conference on computer vision and pattern recognition workshops (pp. 200-201).
Marc Rußwurm Guest Speaker McGill computer science course
Marc Russwurm
Conclusion
Marc Rußwurm Guest Speaker McGill computer science course
Marc Russwurm
Key takeaways open discussion
I hope you
Looking forward to an open discussion!
Marc Rußwurm��marc.russwurm@epfl.ch
twitter.com/marccoru
marcrusswurm.com
Marc Rußwurm Guest Speaker McGill computer science course
Marc Russwurm