From patterns to prediction: detecting crop sequence and interpreting crop selection with explainable AI at field level in Denmark
CONTEXT Crop sequences are important for sustainable agriculture, yet we know relatively little about how they recur across individual fields or which information best predicts the crop grown each year. Denmark's national field records allow both questions to be examined over time. OBJECTIVE We identified recurrent crop sequences across Denmark and tested how well annual crop-family selection could be predicted from crop history, farm characteristics, management, prices, soil and climate. METHODS Using 10 years (2011−2020) of national field-level crop data (∼600,000 fields yr −1 ), we developed a heuristic algorithm to detect recurring crop sequence patterns. We then trained machine learning (LightGBM) and deep learning (TabNet) models to predict annual crop choices based on preceding crops and lagged management and farm structure predictors, and pedoclimatic conditions. Models were evaluated through forward-chaining validation and temporal holdout tests, and SHAP values were used to examine how LightGBM used each predictor. RESULTS AND DISCUSSION Crop sequences were largely dominated by cereals, with little diversification even in longer sequences. Crop selection patterns were strongly associated with the previous crops and farm typology, but pedoclimatic conditions and previous management played a minor role. The DL model achieved a slightly higher overall accuracy, particularly for dominant crops, while the ML model provided a more balanced performance across different crops and enabled interpretation through SHAP. SIGNIFICANCE The analysis separates two distinct tasks: identifying multi-year crop sequences and predicting the crop family grown each year. The sequence analysis shows why diversification cannot be assessed from sequence length or crop counts alone. The predictive models could help generate locally plausible sequences for agri-environmental simulations, reducing reliance on standard rotations that poorly reflect observed field histories.
Authors
- Klaus Butterbach‐Bahl (ORCID: https://orcid.org/0000-0001-9499-6598)
- Jørgen Eivind Olesen (ORCID: https://orcid.org/0000-0002-6639-1273)
- Meshach Ojo Aderele (ORCID: https://orcid.org/0009-0007-9381-6445)
- Diego Ábalos (ORCID: https://orcid.org/0000-0002-4189-5563)
- Jaber Rahimi (ORCID: https://orcid.org/0000-0002-2754-2358)
- Bo Thiesson
- Edwin Haas (ORCID: https://orcid.org/0000-0003-0664-642X)
- Lars Uldall-Jessen
- Franca Giannini-Kurina
- Søren Kolind Hvid
- João G. Serra
- Tommy Dalgaard
Institutions
- Karlsruhe Institute of Technology (DE)
- University of Lisbon (PT)
- Aarhus University (DK)
- Danish Technological Institute (DK)
- Knowledge Centre for Agriculture (DK)
Publication Details
- Journal
- Agricultural Systems
- Published
- 2026-09-21
- DOI
- https://doi.org/10.1016/j.agsy.2026.104982
- Primary Topic
- Climate change impacts on agriculture
- Type
- article
- Field-Weighted Citation Impact
- 0.00