1 of 49

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

2 of 49

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

3 of 49

Outline of this presentation

part 1:

  • remote sensing technology

​

part 2:

  • crop type mapping with classical and deep learning

​

part 3:

  • overview over challenges and recent research

Marc Rußwurm Guest Speaker McGill computer science course

Marc Russwurm

4 of 49

Remote Sensing Technology

Marc Rußwurm Guest Speaker McGill computer science course

Marc Russwurm

5 of 49

Method and Application

🤖

model

input data

expected output

🤔

How can I design this mapping?

​

  • how can I introduce my knowledge into the algorithm?

Computer Science/Machine Learning

What data is available?

�how can we measure our environment?

🤔

Remote Sensing

What problem needs to be solved?

  • is it useful?
  • is it usable?

🤔

Research Question &�Field of Application

Marc Rußwurm Guest Speaker McGill computer science course

Marc Russwurm

6 of 49

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

7 of 49

Measuring System Earth

Satellites measure the continuous system earth in discrete temporal intervals

Marc Rußwurm Guest Speaker McGill computer science course

Marc Russwurm

8 of 49

Multi-spectral data

Marc Rußwurm Guest Speaker McGill computer science course

Marc Russwurm

9 of 49

True Color in imagery data

Marc Rußwurm Guest Speaker McGill computer science course

Marc Russwurm

10 of 49

False Color in imagery data

Marc Rußwurm Guest Speaker McGill computer science course

Marc Russwurm

11 of 49

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

12 of 49

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

13 of 49

Crop type mapping

Classical and deep learning approaches

​

​

Marc Rußwurm Guest Speaker McGill computer science course

Marc Russwurm

14 of 49

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

15 of 49

Preprocessing

Sentinel-2 time series

[Mimić et al., 2020]

corn

meadow

Marc Rußwurm Guest Speaker McGill computer science course

Marc Russwurm

16 of 49

Feature extraction

TimeSAT software

​

Idea:

  • fit curves to the time series,
  • use curve parameters as features for classification

Marc Rußwurm Guest Speaker McGill computer science course

Marc Russwurm

17 of 49

Classification

feature extraction

wheat!

data preprocessing

classification

output

🔍

🤔

🔍

🤔

🔍

🤔

Marc Rußwurm Guest Speaker McGill computer science course

Marc Russwurm

18 of 49

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

19 of 49

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

20 of 49

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

21 of 49

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

22 of 49

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

23 of 49

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

24 of 49

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

25 of 49

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

26 of 49

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

27 of 49

Gated Recurrent Neural Networks (e.g. LSTM)

RNN

  • additional internal gates

Recurrent Neural Networks (RNNs)

Long Short-Term Memory Neural Network

Marc Rußwurm Guest Speaker McGill computer science course

Marc Russwurm

28 of 49

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

29 of 49

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

30 of 49

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

31 of 49

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

32 of 49

Unfiltered satellite data is cloudy

Marc Rußwurm Guest Speaker McGill computer science course

Marc Russwurm

33 of 49

Clouds as positive peaks in the signal

Marc Rußwurm Guest Speaker McGill computer science course

Marc Russwurm

34 of 49

Feature visualization

Hypothesis 2:

�Can deep learning models “learn to ignore clouds”?

🤔

Marc Rußwurm Guest Speaker McGill computer science course

Marc Russwurm

35 of 49

Gate visualizations

​

Gate visualization

Marc Rußwurm Guest Speaker McGill computer science course

Marc Russwurm

36 of 49

Input gate visualization

Finding: Input gate i switches “off” on clouds

Marc Rußwurm Guest Speaker McGill computer science course

Marc Russwurm

37 of 49

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

38 of 49

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

39 of 49

Very easy to implement in torch

LSTM Network

(wheat)

automatic backprop

highest logit

Marc Rußwurm Guest Speaker McGill computer science course

Marc Russwurm

40 of 49

Gradient with respect to the inputs

Marc Rußwurm Guest Speaker McGill computer science course

Marc Russwurm

41 of 49

Recent Research

Early Classification

​

Domain Shift in Geographic Data

​

​

Marc Rußwurm Guest Speaker McGill computer science course

Marc Russwurm

42 of 49

In-Season or Early Classification

corn

meadow

maybe we can already decide here?

Marc Rußwurm Guest Speaker McGill computer science course

Marc Russwurm

43 of 49

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

44 of 49

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

45 of 49

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

46 of 49

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

47 of 49

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

48 of 49

Conclusion

Marc Rußwurm Guest Speaker McGill computer science course

Marc Russwurm

49 of 49

Key takeaways open discussion

I hope you

  • gained some insight in remote sensing data

​

  • seen and understand challenges associated with crop type mapping

​

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