Skip to main content
QUICK REVIEW

[Paper Review] Exploring Self-Attention for Crop-type Classification Explainability

Ivica Obadić, Ribana Roscher|arXiv (Cornell University)|Oct 24, 2022
Species Distribution and Climate ChangeEnvironmental Science5 citations
TL;DR

This paper proposes a novel explainability framework that leverages self-attention mechanisms in transformer encoders to identify key phenological dates and spectral features critical for crop-type classification using Sentinel-2 time series. The method reveals that attention weights highlight specific dates tied to discriminative phenological events—such as harvesting or growth stages—enabling interpretable, data-efficient monitoring and reduced need for high-resolution image acquisition.

ABSTRACT

Transformer models have become a promising approach for crop-type classification. Although their attention weights can be used to understand the relevant time points for crop disambiguation, the validity of these insights depends on how closely the attention weights approximate the actual workings of these black-box models, which is not always clear. In this paper, we introduce a novel explainability framework that systematically evaluates the explanatory power of the attention weights of a standard transformer encoder for crop-type classification. Our results show that attention patterns strongly relate to key dates, which are often associated with critical phenological events for crop-type classification. Further, the sensitivity analysis reveals the limited capability of the attention weights to characterize crop phenology as the identified phenological events depend on the other crops considered during training. This limitation highlights the relevance of future work towards the development of deep learning approaches capable of automatically learning the temporal vegetation dynamics for accurate crop disambiguation

Motivation & Objective

  • To improve stakeholder trust in deep learning-based crop-type classification by making model decisions interpretable through attention analysis.
  • To identify the critical temporal points in satellite time series that drive accurate crop disambiguation in transformer-based models.
  • To link attention patterns to real-world agricultural phenological events, such as harvesting or growth phases, to align model behavior with domain knowledge.
  • To investigate whether attention patterns are robust to changes in the training data composition, particularly the presence or absence of other crop types.
  • To support cost-effective monitoring by identifying minimal, optimal observation schedules based on attention-driven key dates.

Proposed method

  • The framework processes attention weights from a pre-trained transformer encoder model to extract temporal importance scores across the Sentinel-2 time series.
  • Key dates are identified as time points with high attention weights, indicating their importance for class discrimination.
  • Domain knowledge is used to interpret these high-attention dates by linking them to known phenological events such as crop growth, flowering, or harvesting.
  • A sensitivity analysis is conducted by occluding specific crop classes (e.g., grassland, winter barley, corn) from the training data and measuring changes in attention patterns.
  • The change in attention distribution across time is quantified using Eq. 8 (from the paper), which computes relative shifts in temporal importance per crop type after occlusion.
  • The method evaluates whether attention patterns remain consistent across different class compositions, assessing their conditional dependence on other crops.

Experimental results

Research questions

  • RQ1Which time points in the Sentinel-2 time series are most critical for accurate crop-type classification according to the transformer’s self-attention mechanism?
  • RQ2Can the attention patterns in a transformer encoder be meaningfully linked to known phenological events such as harvesting or growth phases in agriculture?
  • RQ3How do the attention patterns for a given crop change when other crop types are removed from the training data?
  • RQ4To what extent are the phenological events identified by attention dependent on the presence of other crops in the dataset?
  • RQ5Can attention-based explainability guide the design of optimal, cost-efficient satellite image acquisition schedules for small agricultural parcels?

Key findings

  • The self-attention mechanism in the transformer encoder identifies a significantly reduced set of key dates—typically around 5–10 days per crop—where spectral reflectance features are most discriminative for crop classification.
  • High attention weights are consistently assigned to dates corresponding to critical phenological events, such as the harvesting of winter barley in July and the peak growth of corn in late June.
  • Occluding grassland from the training data causes a major shift in attention patterns for winter barley, moving its key discriminative period from July to late April and May, indicating conditional dependence on other classes.
  • The sensitivity analysis reveals that attention patterns are not intrinsic to individual crops but are instead shaped by the relative differences between all crops in the dataset, limiting generalizability.
  • Despite conditional dependencies, the framework successfully uncovers phenologically meaningful events that align with agricultural knowledge, enhancing model interpretability and trust.
  • The findings suggest that acquiring high-resolution satellite data only on these key attention-driven dates could reduce costs and processing time while maintaining classification accuracy.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.