Towards Explainable AI4EO: An Explainable Deep Learning Approach for Crop Type Mapping using Satellite Images Time Series

Adel Abbas, Michele Linardi, Etienne Vareille, Vassillis Christophides, Claudia ParisIGARSS 2023

Abstract

Deep Learning (DL) models are extremely effective for crop-type mapping. However, they generalize poorly when there is a temporal shift between the Satellite Image Time Series (SITS) acquired in the source domain (where the model is trained) and the target domain (never seen by the network). To address this challenge, this paper proposes an Explainable Artificial Intelligence (xAI) approach that leverages the interpretability of the inner workings of transformer encoders to automatically capture and mitigate the temporal shift between SITS acquired in different regions. The Positional Encoding (PE) output computed on the source SITS is used as a proxy to quantify the temporal shift with respect to the PE output obtained on the target SITS. This condition allows us to re-align the latter to the representation that the model natively adopts to discriminate crop types through a Dynamic Time Warping (DTW) approach. Compared to the baseline architecture, the proposed method increases the Overall Accuracy (OA) up to 8% on the TimeMatch benchmark dataset.

The Challenge of Temporal Domain Shift

Identifying crop types from space relies on Satellite Image Time Series (SITS)—tracking how a field's "greenness" changes over a season. While Deep Learning (DL) models excel at this, they suffer from a major "domain shift" problem. A model trained to recognize wheat in Denmark may fail in France because crops grow at different times (phenological shifts) due to varying local climates and farming practices.

Visualization of temporal shifts between source and target domains using NDVI curves and Positional Encoding (PE) outputs.

Most current DL models are "black boxes" that cannot explain or easily correct these temporal misalignments. Traditionally, addressing this requires expensive new labeled data for every new region, which is not scalable for global monitoring.

Methodology: Explainable Alignment

The proposed architecture builds upon the Pixel Set Encoder (PSE) combined with a Temporal Attention Encoder (TAE). The novel contribution is an unsupervised alignment step based on model explainability:

  1. Positional Encoding (PE) as a Diagnostic: In Transformer-based models, PE informs the network when an observation occurred. The authors discovered that the PE output can serve as a proxy to quantify the temporal shift between a source region and a target region.
  2. Dynamic Time Warping (DTW): To correct the shift, the model uses DTW to align the target region's PE to the representation the model "expects" based on its training.
  3. Internal Realignment: Instead of aligning raw satellite data, the system warps the timeline of the new data's internal representation to match the model’s learned patterns before final classification.
Proposed architecture for crop type mapping featuring the SITS Encoding, Encoding Correction (DTW), and Temporal Attention Encoder (TAE).

Experimental Results

The study utilized the TimeMatch benchmark dataset, consisting of Sentinel-2 imagery from 2017 across Denmark (DK), Austria (AT), and Southern France (FR1) for training, with Mid-west France (FR2) as the target evaluation domain.

The proposed xAI approach consistently outperformed the standard architecture:

  • Overall Accuracy (OA) Boost: When trained on Denmark and tested on Mid-west France, accuracy jumped from 38.18% to 46.26%.
  • F1-Score Improvements: The model became significantly better at identifying tricky classes. For "Winter wheat," the F1-score surged from 7.19% to 48.36%.
  • Robustness: Even with a large, multi-country training set (AT+DK+FR1), the method reached 90.42% OA, surpassing the baseline's 89.63%.

Conclusion

This research demonstrates that Positional Encodings can be repurposed as an explainability tool to achieve zero-label domain adaptation. By aligning internal representations rather than raw data, the model learns to adjust to new geographic regions without requiring new ground-truth labels. Future work will explore more sophisticated alignment strategies and test the approach across more extreme climatic shifts, such as moving from temperate to tropical agricultural zones.

Summary updated

BibTeX
@inproceedings{abbas2023towards,
  author = {Adel Abbas and Michele Linardi and Etienne Vareille and Vassillis Christophides and Claudia Paris},
  title = {{Towards Explainable AI4EO: An Explainable Deep Learning Approach for Crop Type Mapping using Satellite Images Time Series}},
  booktitle = {IGARSS},
  year = {2023},
  url = {https://openreview.net/forum?id=aOa5lgqvSD},
}
Figure