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

Institutions

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
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
article

From patterns to prediction: detecting crop sequence and interpreting crop selection with explainable AI at field level in Denmark

Klaus Butterbach‐Bahl, Jørgen Eivind Olesen, Meshach Ojo Aderele, Diego Ábalos et al.
Agricultural Systems
Climate change impacts on agriculture
article

From patterns to prediction: detecting crop sequence and interpreting crop selection with explainable AI at field level in Denmark

Klaus Butterbach‐Bahl, Jørgen Eivind Olesen, Meshach Ojo Aderele, Diego Ábalos, Jaber Rahimi, Bo Thiesson, Edwin Haas, Lars Uldall-Jessen, Franca Giannini-Kurina, Søren Kolind Hvid, João G. Serra, Tommy Dalgaard
article en

Abstract

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.

Agricultural SystemsVol. 240
Karlsruhe Institute of Technology (DE), University of Lisbon (PT), Aarhus University (DK), Danish Technological Institute (DK), Knowledge Centre for Agriculture (DK)
Zero hunger
Openalex Percentile: Top 8%
Climate change impacts on agriculture
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.