论文信息

Noh-Hyun Lee / Wonjae Jeong / Hyeon-Ji Yang 等 7 人

Scientific Reports

论文解读

AI 辅助整理
方法
用CYGMA模拟潜在产量作响应变量,按等长时段聚合逐日天气,训练多种机器学习模型
发现
适度提高季内时间分辨率可提升性能,产量敏感性集中在特定窗口,温度效应偏早、湿度效应偏晚。
机会点
可探索不同作物与气候区下最优聚合粒度,并将窗口特异性气象风险嵌入气候影响评估与决策支持系统。

论文摘要

尽管作物响应本质上具有阶段依赖性,但机器学习产量模型往往依赖于整个生长季聚合的天气变量。本研究评估了天气变量的季节内时间聚合如何影响基于机器学习的水稻产量建模的预测性能与可解释性。以CYGMA(Crop Yield Growth Model with Assumptions on Climate and Socioeconomics,气候与社会经济假设下的作物产量生长模型)模拟的潜在产量作为合成响应变量,我们最大限度地减少了观测噪声和管理变异性带来的混杂效应,从而能够更清晰地评估季节内天气聚合的作用。将每个生长季划分为多个等长时段后,对水稻生长期内的逐日天气变量进行平均,并采用时间独立验证对多种机器学习算法进行训练和评估。提高季节内时间分辨率可提升模型性能,直至达到中等水平,此后增益递减。利用SHAP(SHapley Additive exPlanations,沙普利加性解释)和响应诊断进行的解释一致表明,产量敏感性集中在季节的特定窗口,温度相关效应在季节早期最为显著,湿度相关效应则在后期出现。更精细的时间聚合增强了对窗口特异性非线性和阈值型响应的识别,而这些响应在粗粒度季节平均下被掩盖。总体而言,中等程度的季节内聚合在预测能力与机制可解释性之间提供了实用平衡,有助于更可靠地识别与物候相关的气象风险,以支持气候影响评估和决策支持。

全文

Scientific Reports

ARTICLE | Article in Press
Scientific Reports https://doi.org/10.1038/s41598-026-75646-2
Scientific Reports
This Article in Press is shared early to give you faster access to new research. It is citable and carries a permanent DOI.
The final edited version will replace it automatically.
Effects of within-season temporal aggregation of
weather variables on performance and interpretability
in rice yield machine learning models
Noh-Hyun Lee · Wonjae Jeong · Hyeon-Ji Yang · Hana Cho · Hyeon-Yeong Ju ·
Toshichika Iizumi · Kwang-Hyung Kim
Received: 2 April 2026 / Accepted: 8 October 2026
© The Author(s) 2026
Abstract
While crop responses are inherently stage-dependent, machine learning yield models often rely on weather
variables aggregated over the entire growing season. This study evaluates how within-season temporal aggre -
gation of weather variables affects both predictive performance and interpretability in machine learning-
based rice yield modeling. Using CYGMA (Crop Yield Growth Model with Assumptions on Climate and
Socioeconomics)-simulated potential yield as a synthetic response variable, we minimized confounding effects
from observational noise and management variability, enabling a clearer evaluation of the role of within-
season weather aggregation. Daily weather variables were averaged over the rice growing period after dividing
each season into multiple equal-length segments, and several machine learning algorithms were trained and
evaluated using temporally independent validation. Increasing within-season temporal resolution improved
model performance up to a moderate level, after which gains diminished. Interpretation using SHAP (SHapley
Additive exPlanations) and response diagnostics consistently indicated that yield sensitivity concentrates in
specific windows of the season, with temperature-related effects emerging most strongly early in the season
and humidity-related effects later. Finer temporal aggregation sharpened the identification of window-specific
nonlinear and threshold-like responses that were obscured under coarse seasonal averages. Overall, moderate
within-season aggregation provides a practical balance between predictive skill and mechanistic interpretability,
supporting more reliable identification of phenology-relevant meteorological risks for climate-impact assess -
ment and decision support.
Keywords Rice yield · Temporal aggregation · Weather variables · XAI · CYGMA
Introduction
Climate change–induced shifts in agricultural ecosystems, together with rapidly evolving global political and
economic conditions, have made the stable production of major staple crops such as rice, wheat, and maize a criti-
cal issue for global food security. In response, countries around the world are seeking strategies to ensure stable

Article in Press
Scientific Reports
https://doi.org/10.1038/s41598-026-75646-2
crop production and to develop agricultural systems that enable more efficient crop management1–3,Wuppertal et
al., 2023).
One promising approach is the use of crop growth and yield prediction models to quantify the effects of
weather conditions on crop productivity4,5. For example, the CYGMA (Crop Yield Growth Model with Assump-
tions on Climate and Socioeconomics) model developed by Iizumi et al.6 predicts the yields of major staple crops
by incorporating weather variables such as temperature and humidity as well as human-related factors such as
nitrogen fertilizer inputs. The DSSAT (Decision Support System for Agrotechnology Transfer) model predicts
crop yields for more than 45 crops using weather and soil data7. Both models not only predict crop yield, but also
provide insights into the relationships between crop yield and environmental factors, such as weather variables,
soil components, and fertilizer.
Recently, machine learning–based approaches for crop yield prediction and the investigation of relationships
between weather variables and crop yield have gained increasing attention8–16. Unlike process-based crop models,
which require explicit representation of complex relationships among numerous factors influencing crop growth
and yield, machine learning models can learn such relationships directly from observational data, enabling more
flexible and efficient modeling17,18. Although machine learning models were historically regarded as “black-box”
models, the development of interpretability techniques such as SHAP (SHapley Additive exPlanations), ICE
(Individual Conditional Expectation), and PDP (Partial Dependence Plots) has made it possible to identify key
weather factors affecting crop yield and to quantitatively analyze nonlinear relationships between input variables
and yield. For instance, Talasila et al. 19 showed that weather variables, particularly precipitation and tempera -
ture, significantly influence crop yield using machine learning approaches. Similarly, Alsaber et al.9 investigated
the relationships between potato yield and weather variables, while Gogoi et al. 10 examined the relationships
between rice yield and weather variables using machine learning approaches.
When developing machine learning models for crop yield prediction using weather variables as input variables,
daily or hourly weather data are inevitably summarized into a limited number of variables to avoid overfitting
and the curse of dimensionality. Consequently, most previous studies have used aggregated weather variables at
a fixed temporal resolution, such as averaged over the entire growing season or over specific crop developmental
stages20–22. Despite the widespread adoption of this practice, relatively little attention has been given to how the
temporal resolution of weather variables affects the performance and interpretability of machine learning models.
This study evaluates the performance and interpretability of machine learning–based rice yield prediction
models with respect to both the choice of machine learning algorithm and the temporal resolution of weather
variables. Specifically, (1) synthetic yield data are generated using the CYGMA rice yield model; (2) predic -
tive performance is compared across four machine learning algorithms and five levels of within-season weather
aggregation; and (3) differences and limitations in model interpretability are examined using SHAP and ICE
analyses.
Methods
Dataset and data preprocessing
CYGMA (Crop Yield Growth Model with Assumptions on Climate and Socioeconomics) is a global gridded pro-
cess-based crop model developed to simulate historical variations in rice yield6. The model is driven by a diverse set
of input variables, including daily weather variables (maximum, minimum, and mean temperatures,precipitation;
solar radiation; relative humidity; and wind speed), atmospheric CO₂ concentration, planting dates, irrigated and
rainfed areas, soil water capacity, national agricultural economic indicators (e.g., nitrogen fertilizer application
rates), and AgResStock. AgResStock (Agricultural Research Stock) is a country-level index representing accu -
mulated agricultural technology knowledge derived from GDP, agricultural value added, and R&D expenditure6.

Article in Press
Scientific Reports
https://doi.org/10.1038/s41598-026-75646-2
Using these input variables, CYGMA simulates outputs such as potential yield, crop growth stages, and abiotic
stress conditions.
In this study, the potential yield simulated by the CYGMA model (hereafter referred to as simulated yield)
was treated as the reference yield for subsequent analyses. Under the assumption that all conditions other than
the model input variables remain constant, CYGMA was used to simulate yields for each region based on the
given input data. The resulting simulated yield dataset was then used to evaluate the predictive performance and
interpretability of various machine learning models. This approach was adopted because globally available obser-
vation-based yield datasets often differ in format across data providers and may contain substantial noise and
measurement errors introduced during data collection and reporting processes. Such uncertainties can obscure the
true effect of temporal resolution when assessing model performance. In contrast, simulated yield data are largely
free from these external observational errors. Consequently, the study was designed to minimize the influence of
data uncertainty and to more clearly isolate the impact of temporal resolution itself.
For the machine learning analysis, only weather variables were used as input variables, rather than incorporat-
ing all input variables used in the CYGMA simulations. This decision was made because the primary objective
of the study was not to construct the most accurate prediction model, but to investigate how model performance
and interpretability vary with the temporal resolution of weather variables.
Rice, the focus of this study, is cultivated in multiple growing seasons per year in certain regions, particularly
in Southeast Asia, where double- or triple-cropping systems are common. Consequently, CYGMA may gener -
ate multiple yield records within the same grid cell for a single year. To avoid potential inconsistencies during
machine learning model training and to ensure data comparability, only one season per grid cell and year, which
was the season with the highest simulated yield, was retained for analysis. CYGMA can also simulate multiple
potential yields depending on the planting date. To standardize the simulations, representative planting dates were
assigned to each grid cell using the rice cropping calendar from RiceAtlas (Laborte et al., 2017), and these plant-
ing dates were used for yield simulations.
The dataset consists of global simulations spanning 1987–2019 (33 years) across 3,383 continuously cultivated
rice grid cells at a 50-km spatial resolution, resulting in 111,639 observations (Fig. 1).
Fig. 1 Spatial and temporal extent of the global rice dataset used in this study. The map was created using QGIS version
3.44.15 (http://qgis.org/).

Article in Press
Scientific Reports
https://doi.org/10.1038/s41598-026-75646-2
Establishment of machine learning models
Temporal resolution setting (averaging and scaling)
To evaluate how model performance and interpretability vary with the temporal resolution of weather variables,
the weather data were aggregated into five datasets with different within-season temporal resolutions, ranging
from a single season-wide average to five equally divided temporal segments. Rice growth is commonly divided
into distinct developmental stages, including panicle formation, heading, flowering, grain filling, and harvest. In
the CYGMA crop growth model, these stages are estimated based on the fraction of cumulative growing degree
days (GDD)6. Because the duration of each developmental stage varies among regions and growing seasons,
equal-length temporal segmentation was adopted to provide a consistent temporal framework across the global
dataset while maintaining comparable input dimensionality across all observations. Although the equal-length
temporal segmentation adopted in this study does not exactly correspond to the phenological stages represented
in CYGMA, some segments are expected to partially overlap with specific developmental stages. Because the
rice growing period differs across grid cells in the global dataset, the individual growing period for each observa-
tion was first extracted from the CYGMA simulations. Each growing period was then evenly divided according
to the number of segments corresponding to the five temporal resolution settings, and weather variables within
each segment were averaged. When the growing period was not perfectly divisible by the specified number of
segments, the integer quotient of the growing period divided by the number of segments was used as the base
segment length, and the remaining days were sequentially distributed from the first segment onward to minimize
differences in segment length. For example, when a growing period of 58 days was divided into five segments,
the segment lengths were adjusted to [12, 12, 12, 11, 11] days.
Consequently, the five datasets contained different numbers of input variables depending on the temporal
resolution. For example, Resolution 1, in which the entire growing period was aggregated into a single segment,
included seven weather variables: maximum, minimum, and mean air temperatures (tmax, tmin, and tavg), rela-
tive humidity (rh), precipitation (precsfc), wind speed (wind), and downward shortwave radiation at the surface
(dswrfsfc). In contrast, Resolution 5, in which the growing period was divided into five equal segments, included
35 input variables (seven variables × five segments).
Input variables were named according to their temporal segment using the format variable_index. For exam -
ple, under Resolution 3, the average maximum temperature in the first and third segments was denoted as tmax_1
and tmax_3, respectively.
Train and test set construction
To ensure temporal independence between the training and testing sets, the dataset spanning 1987–2019 was
divided chronologically, with data from 1987–2016 used for model training and data from 2017–2019 reserved
for model evaluation. The three-year evaluation period provided a sufficient number of observations (10,149) for
robust performance assessment while reducing the risk of year-specific bias associated with evaluation based on a
single year. To approximate the scale of agricultural datasets typically available in real-world applications, 1,000
observations were randomly subsampled from the 30-year training period (1987–2016) to construct each training
dataset. The sample size was determined with reference to the GDHY rice yield dataset developed by Iizumi and
Sakai23, which provides historical crop yield data at a 0.5° grid resolution. Considering the temporal coverage and
spatial resolution of GDHY , the median number of rice yield observations available per country is approximately
1,000. Therefore, a training dataset of 1,000 observations was considered a practically realistic dataset size for
country-level agricultural modeling.
To reduce potential sampling bias and improve model robustness, the subsampling procedure was repeated 100
times, resulting in 100 independent training datasets. Repeated subsampling without replacement has been shown
to achieve predictive performance comparable to that of the full dataset at substantially lower computational

Article in Press
Scientific Reports
https://doi.org/10.1038/s41598-026-75646-2
cost while reducing dependence on any single realization of the training data 24. The test dataset consisted of all
available observations from 2017–2019 (10,149 observations), enabling consistent and comparable evaluation of
model performance across all experiments. The distributions of the original, training, and test datasets are shown
in Supplementary Figure 1.
Data scaling
The weather variables used in this study have different physical units and scales, which may cause instability
during model training if variables with larger numeric ranges bias the learning process (Ozsahin et al., 2022).
To mitigate this issue and ensure stable model training, min–max scaling was applied to all weather variables,
normalizing each variable to a range between −1 and 1.
Model training and hyperparameter tuning
Four machine learning algorithms were evaluated in this study: random forest (RF; Breiman, 2001), extreme gra-
dient boosting (XGB; Chen and Guestrin, 2016), support vector regression (SVR; Basak et al., 2007), and linear
regression (LR). These algorithms were selected to represent both nonlinear tree-based ensemble methods (RF
and XGB) and linear modeling approaches (linear-kernel SVR and LR). For SVR, a linear kernel was adopted
because preliminary experiments showed that polynomial kernels resulted in substantially greater overfitting.
Although both SVR with a linear kernel and LR represent linear relationships, they differ in their underlying opti-
mization frameworks, allowing comparison between two distinct linear modeling approaches. Detailed descrip -
tions of the four algorithms are provided in Supplementary Text S1.
To identify optimal hyperparameters for each algorithm, 10-fold cross-validation was performed using the
training datasets. The final model configuration for each algorithm was determined by selecting the hyperparam-
eter combination that produced the highest validation performance. The tuning ranges and selected hyperparam-
eters for each model are summarized in Table S1
Model performance evaluation
For each of the 100 training datasets constructed in the previous step, machine learning models were indepen -
dently trained using the optimized hyperparameters. The performance of each trained model was then evaluated
on a fixed testing dataset. Model performance was assessed using the coefficient of determination (R2), root mean
square error (RMSE), and concordance correlation coefficient (CCC).
For each experimental condition (i.e., machine learning algorithm and temporal resolution), model perfor -
mance was summarized by examining the mean and distribution of the evaluation metrics across the 100 testing
results. This approach was adopted to obtain robust performance estimates while minimizing the influence of
sampling variability associated with any single training dataset. By evaluating model performance across 100
independently sampled training datasets, this procedure reduces dependence on any single training sample and
provides a more stable estimate of model performance.
Based on these results, analysis of variance (ANOV A) was performed to determine whether model perfor -
mance and input variable importance differed significantly among experimental conditions. When significant dif-
ferences were detected, Tukey's honestly significant difference (HSD) test was applied for pairwise comparisons
among groups.
Post-hoc model-agnostic interpretation
To investigate how machine learning algorithms and temporal resolution influence model interpretability, post-
hoc model-agnostic explanation methods from the explainable artificial intelligence (XAI) framework were

Article in Press
Scientific Reports
https://doi.org/10.1038/s41598-026-75646-2
applied. Because these approaches do not depend on a specific model structure, they can be consistently applied
across all machine learning algorithms evaluated in this study.
Three widely used post-hoc interpretation techniques were employed: SHapley Additive exPlanations (SHAP),
Partial Dependence Plots (PDP), and Individual Conditional Expectation (ICE). SHAP quantifies the contribution
of each input variable to individual model predictions and enables interpretation of variable importance at both
global and local levels. PDP and ICE visualize how model predictions respond to changes in a specific input vari-
able, thereby providing insight into the functional relationship between input variables and predicted outcomes.
For the analysis, SHAP values were first computed for the predictions generated in each of the 100 repeated
model experiments under every experimental condition. The resulting SHAP distributions were then used to ana-
lyze the relative importance of input variables. In addition, to evaluate the similarity between the SHAP analysis
results obtained from the RF and XGB models, Spearman’s rank correlation analysis was performed on the
SHAP-based importance rankings of the variables. The distribution of SHAP-based importance ranks for each
variable across the 100 iterations was also examined. Subsequently, all 100 training datasets were combined to
train a single model for each experimental condition, after which PDP and ICE analyses were conducted using
the test dataset to examine the detailed response patterns between input variable values and model predictions.
Software environment
All analyses were performed using Python (version 3.12.7) or R (version 4.4.3). The complete workflow illus -
trated in Fig. 2, including data preprocessing, model development, model evaluation, and post-hoc model-agnos-
tic interpretation, was implemented in Python. Machine learning models were implemented using the scikit-learn
and XGBoost libraries, while SHAP analyses were performed using the shap Python package. Statistical analy -
ses, including ANOV A and post-hoc comparisons, were conducted in R.
Results
Model performance across machine learning algorithms and temporal resolutions
The CYGMA model predicts rice yield using both weather variables and socioeconomic indicators as input vari-
ables. Prior to the main analysis, we conducted a preliminary experiment in which machine learning models were
trained using all input variables employed in the CYGMA simulations. This preliminary analysis was conducted
to confirm that the machine learning models were capable of reproducing the yield patterns generated by the
CYGMA simulations. Four machine learning algorithms (RF, XGB, SVR, and LR) were evaluated across five
temporal resolutions, resulting in a total of 20 models. These models achieved R 2 values ranging from 0.80 to
0.94, indicating that most of the variation in simulated rice yield could be explained. Nonlinear models such as
RF and XGB showed higher predictive performance (R 2 = 0.85–0.94), whereas linear models such as SVR and
LR achieved slightly lower performance (R2 = 0.80–0.83) (Fig. S3).
However, because the primary objective of this study was to evaluate how the temporal resolution of weather
variables influences model performance and interpretability, socioeconomic variables included in the CYGMA
simulations were excluded from the input variables used in the subsequent machine learning models. Accord -
ingly, the main analyses were conducted using weather variables only, and model performance was evaluated
across combinations of five temporal resolutions and four machine learning algorithms (Fig. 3; Fig. S4).
Across all models trained using only weather variables, predictive performance (R 2) increased with higher
temporal resolution of weather aggregation. A statistically significant improvement in R 2 was observed from
Resolution 1 to Resolution 3 across all machine learning algorithms. Beyond Resolution 3, performance either
plateaued or increased only modestly (Fig. 3). Similar trends were observed for the other evaluation metrics,
RMSE and CCC (Fig. S4). This result suggests that moderate within-season weather aggregation captures most

Article in Press
Scientific Reports
https://doi.org/10.1038/s41598-026-75646-2
of the predictive information contained in weather variables, while further temporal segmentation provides lim -
ited additional benefit.
However, models trained using only weather variables consistently showed lower predictive performance than
the preliminary models that incorporated all CYGMA input variables. This finding suggests that socioeconomic
variables included in the CYGMA framework explain a substantial portion of simulated crop yield variability
beyond meteorological influences alone. Substantial differences in predictive performance were also observed
among machine learning algorithms when only weather variables were used as input variables. Nonlinear models
(RF and XGB) generally outperformed linear models (SVR and LR). Among the evaluated algorithms, Random
Forest achieved the highest predictive performance, with R 2 values ranging from 0.37 to 0.56, followed by
XGBoost (0.20–0.44). In contrast, SVR and LR showed relatively lower performance, with R 2 values ranging
from 0.10 to 0.31 and 0.03 to 0.27, respectively.
Fig. 2 Overview of the modeling framework and workflow.

Article in Press
Scientific Reports
https://doi.org/10.1038/s41598-026-75646-2
SHAP variable importance across machine learning algorithms and temporal resolutions
To examine how different machine learning algorithms captured variable importance, we compared SHAP-based
variable importance rankings between the RF and XGB models under the same temporal resolution. Figure 4
presents an example for Resolution 3, in which the growing season was divided into three segments and weather
variables from each segment were used as input variables. Both RF and XGB identified similar key variables,
including maximum temperature during the first segment (tmax_1), minimum temperature during the second
segment (tmin_2), and relative humidity during the third segment (rh_3). Moreover, the importance patterns of
the other weather variables were also highly similar between RF and XGB (Fig. 5). In particular, variables with
high importance consistently showed high rankings in both RF and XGB models (Figs. 5 and Fig. S5). This con-
sistency between RF and XGB was observed across all temporal resolutions (Fig. S6).
In contrast, linear models (SVR and LR) produced substantially different patterns of variable importance
(Fig. S7). These models identified minimum temperature in the second and third segments (tmin_2 and tmin_3),
maximum temperature in the third segment (tmax_3), and mean temperature in the third segment (tavg_3) as the
most important variables. Although such differences may partly reflect structural differences between linear and
nonlinear models, they are also likely influenced by the substantially lower predictive performance of the linear
Fig. 3 Performance of four machine learning models (Random Forest, Extreme Gradient Boosting, Support Vector Regres-
sion, and Linear Regression) across five temporal resolutions. Each box represents the distribution of R 2 values from 100
independently trained models under each combination of machine learning algorithm and temporal resolution. Different let-
ters within each panel indicate significant differences among temporal resolutions according to Tukey's honestly significant
difference (HSD) test (P < 0.05).

Article in Press
Scientific Reports
https://doi.org/10.1038/s41598-026-75646-2
models, which limits the reliability of variable importance interpretation. Therefore, subsequent analyses focused
primarily on nonlinear models with higher predictive performance.
To further examine how the importance of weather variables changes with temporal resolution, SHAP vari -
able importance analyses were conducted separately for RF and XGB. For each temporal resolution, the top
five variables were identified based on SHAP importance values. In the RF model, weather variables associ -
ated with maximum temperature (tmax), minimum temperature (tmin), and relative humidity (rh) consistently
ranked among the most important variables across different resolutions (Fig. 6). Notably, as temporal resolution
Fig. 5 Comparison of SHAP-based
variable importance rankings
between the RF and XGB models
at Resolution 3. Spearman's rank
correlations were calculated using
both the mean rankings across 100
repetitions and all individual rank-
ings. Triangle markers (▲) repre-
sent the mean rankings, whereas
scatter points (●) represent indi-
vidual repetitions. The rankings
showed strong agreement between
the two models (ρ = 0.616 for the
mean rankings and ρ = 0.654 for
the individual repetitions).

Fig. 4 SHAP variable importance of Random Forest (left) and Extreme Gradient Boosting (right) at Resolution 3. Weather
variables are ranked from most to least important according to their mean absolute SHAP value.

Article in Press
Scientific Reports
https://doi.org/10.1038/s41598-026-75646-2
increased, variables corresponding to specific growth periods became increasingly dominant, whereas variables
representing other periods declined in importance. For example, maximum temperature (tmax) was the most
important variable in Resolution 1. When the growing season was divided into two segments (Resolution 2), the
maximum temperature during the first segment (tmax_1) remained among the top variables. As temporal resolu-
tion increased further, only tmax during the earliest segment continued to appear among the top-ranked variables.
Because higher temporal resolution corresponds to shorter time windows within the growing season, this pattern
suggests that early-season maximum temperature exerts a particularly strong influence on simulated rice yield
variability. Moreover, relative humidity showed a similar pattern. While relative humidity ranked third in Resolu-
tion 1, higher temporal resolutions revealed that relative humidity during the final growth segment (e.g., rh_5 in
Resolution 5) was the most influential humidity-related variable. A similar pattern was also observed in the XGB
model (Fig. S8).
Overall, these results suggest that increasing temporal resolution enables machine learning models to identify
stage-specific weather influences on rice yield that are obscured when weather variables are aggregated across
the entire growing season.
Fig. 6 SHAP variable importance across five temporal resolutions derived from a Random Forest model. ( a) SHAP vari-
able importance across resolutions. The red boxes highlight the top five variables at each temporal resolution. ( b) Top five
variables for each temporal resolution.

Article in Press
Scientific Reports
https://doi.org/10.1038/s41598-026-75646-2
Threshold responses of key weather variables across machine learning algorithms and temporal
resolutions
Building on the SHAP results presented in Fig. 6, ICE and PDP analyses were conducted to examine how machine
learning models capture threshold responses of key weather variables across different growth stages as temporal
resolution increases (Fig. 7). In the RF model, maximum temperature (tmax) exhibited a clear threshold dur -
ing the early growth stage, which was consistently identified as one of the most influential variables across all
temporal resolutions. Predicted rice yield declined sharply when early-season tmax approached approximately
28–29 °C (Fig. 7a). In contrast, for other growth periods where tmax was ranked as less important, clear threshold
behavior was not observed, suggesting that maximum temperature during those stages had limited influence on
simulated rice yield. Relative humidity showed a different pattern. SHAP analysis indicated that relative humidity
was most important during the late growth stage (Fig. 6), and the corresponding ICE and PDP plots revealed a
threshold response around 60% relative humidity during this period (Fig. 7b).
Notably, the threshold values identified for each weather variable were largely consistent across temporal reso-
lutions for the growth stages in which those variables were most influential. However, when weather variables
were aggregated across the entire growing season (Resolution 1), the models were less able to identify the precise
location of these thresholds. Similar patterns were observed for the XGB model, where the identified threshold
responses closely matched those detected in the RF model (Fig. S9).
Overall, these results suggest that specific weather variables exert critical influences on rice yield during par -
ticular growth stages. Increasing the temporal resolution of weather variables enables machine learning models
to capture these stage-specific effects more effectively, which in turn contributes to improved predictive perfor -
mance (Fig. 3). These findings also highlight that temporal aggregation of weather variables can obscure biologi-
cally meaningful threshold responses, whereas higher temporal resolution enables machine learning models to
reveal stage-specific climatic sensitivities embedded in the simulated yield data.
Discussion
Predicting crop yield using machine learning requires careful decisions regarding both the selection of model
algorithms and the choice of input variables. When weather variables are used as input variables, an additional
challenge arises in determining how high-dimensional time-series data (e.g., daily weather observations) should
be aggregated into an appropriate temporal resolution. This study examined how the choice of machine learning
algorithm and the temporal aggregation of weather variables influence both predictive performance and model
interpretability.
To enable systematic comparison under controlled conditions, we generated synthetic global rice yield data
using the process-based crop model CYGMA. In this framework, CYGMA outputs were treated as the ground
truth. Machine learning models were developed using four algorithms, namely random forest (RF), extreme gra-
dient boosting (XGB), support vector regression (SVR), and linear regression (LR) in combination with five tem-
poral resolutions of weather variables. This design allowed us to evaluate differences in predictive performance
and interpretability across combinations of algorithms and temporal resolutions.
In preliminary experiments, machine learning models trained using all CYGMA input variables achieved high
predictive performance, with R2 values ranging from 0.80 to 0.94 (Fig. S3). However, the main objective of this
study was to evaluate how the temporal resolution of weather variables affects model behavior. Therefore, the
subsequent analyses were conducted using weather variables only. Under this restriction, predictive performance
decreased substantially, with maximum R2 values below 0.56 (Fig. 3). This result indicates that weather variables
alone explain only part of the simulated rice yield variability. In particular, preliminary experiments revealed
that non-weather variables, such as nitrogen fertilizer application rate, crop duration, and AgResStock, were also

Article in Press
Scientific Reports
https://doi.org/10.1038/s41598-026-75646-2
Fig. 7 Individual Conditional Expectation (ICE) and Partial Dependence plots (PDP) for ( a) maximum temperature (tmax)
and (b) relative humidity (rh) across five temporal resolutions derived from a Random Forest model. Each panel displays
the ICE curves (grey lines) together with the PDP line (red line). Red-outlined panels indicate the temporal window with
the highest importance within its respective resolution. The order of the temporal segments is indicated on the right side of
the figure.

Article in Press
Scientific Reports
https://doi.org/10.1038/s41598-026-75646-2
critical factors in explaining the variance in rice yield. Nevertheless, the models remained suitable for compar -
ing differences in predictive performance and interpretability across machine learning algorithms and temporal
resolutions.
The superior performance of RF and XGB compared with SVR and LR reflects the strongly nonlinear relation-
ships between weather variables and rice yield represented in the CYGMA model6,25. In CYGMA, weather vari-
ables influence crop growth through nonlinear stress response functions. For example, temperature promotes crop
development within an optimal range but induces increasingly severe stress responses when conditions exceed the
optimal threshold. Similar nonlinear mechanisms are applied to radiation and moisture conditions 6. Tree-based
ensemble models such as RF and XGB are well suited to capturing such nonlinear responses and interactions,
whereas linear models were unable to adequately represent the complex response structure of CYGMA-based
rice yield dynamics (Fig. 3).
The limitations of linear models were also evident in the variable importance analysis. Even when SVR and LR
identified certain input variables as important variables, the importance rankings showed large variability across
repeated experiments. This instability suggests that the interpretations derived from linear models were highly
sensitive to sampling variation in the training data. In contrast, the nonlinear models produced relatively stable
variable importance patterns, suggesting that their interpretations are more reliable.
Two major insights emerged from the variable importance analyses of the nonlinear models. First, RF and XGB
produced highly similar variable importance patterns under the same temporal resolution (Figs. 4, 5). Although
these algorithms differ structurally, with RF being a bagging-based ensemble method and XGB a boosting-based
ensemble method, they both rely on tree-based learning frameworks capable of capturing nonlinear relationships
and variable interactions (Breiman, 2001; Chen & Guestrin, 2016). The similarity of their variable importance
rankings suggests that the identified patterns reflect relationships embedded in the data rather than artifacts of a
specific algorithm. Second, the importance of weather variables was strongly influenced by the temporal resolu-
tion used for aggregation. When a temporal resolution adequately captured the crop growth stage during which
a particular weather variable exerts strong physiological influence, that variable tended to be assigned higher
importance. Conversely, when critical growth stages were poorly represented in the temporal aggregation, the
corresponding variable tended to receive lower importance (Fig. 6).
This finding suggests that weather variables do not exert uniform effects throughout the entire growing sea -
son. Instead, each variable may have specific physiologically sensitive periods during which its influence on
crop development becomes particularly pronounced. CYGMA reflects this concept by separating stress effects
into specific yield formation stages rather than applying them uniformly across the entire growing season 25. For
example, stress occurring during early or mid growth stages may indirectly influence final yield by limiting leaf
area development or biomass accumulation, whereas stress during later growth stages directly affects yield for -
mation processes6. If temporal aggregation fails to capture these critical stages, the resulting weather variables
may contain substantial noise. Such noise is likely more pronounced under coarser temporal resolutions, which
may partly explain the lower predictive performance observed in models using lower temporal resolutions.
In CYGMA, daily stress effects are calculated separately for temperature (heat or cold stress), water availabil-
ity, and nitrogen availability. The most severe stress factor on a given day determines the limitation applied to
crop growth and yield accumulation. This modeling framework allows the dominant stress factor to vary across
growth stages depending on seasonal weather conditions and crop physiological responses. Consequently, when
a particular weather variable becomes the dominant stress factor during a specific growth stage, temporal resolu-
tions that appropriately capture that period tend to assign higher importance to that variable. Consistent with this
mechanism, Iizumi & Ramankutty25 reported that variability in high-temperature conditions exceeding optimal
thresholds during the yield formation stage contributed more strongly to yield variability than other stress factors.
This finding aligns with our results, in which maximum temperature (tmax) showed substantially higher impor -
tance than other weather variables across most temporal resolutions (Fig. 6).
To further investigate how machine learning models represent these relationships, ICE and PDP analyses
were conducted to identify threshold responses of important weather variables. Because the training data were

Article in Press
Scientific Reports
https://doi.org/10.1038/s41598-026-75646-2
generated using the CYGMA process-based model, the response patterns observed in the ICE analyses should
be interpreted as reflecting the internal response structure of CYGMA rather than empirical crop physiological
responses. For tmax, which was identified as one of the most influential input variables across most temporal
resolutions, the ICE and PDP plots revealed clear yield-loss thresholds around 28–29 °C (Fig. 7). According to
the temperature stress response functions implemented in CYGMA, heat stress begins when temperatures exceed
approximately 25 °C and becomes increasingly severe around 28 °C, leading to noticeable yield reductions (Fig.
S11). The thresholds detected by RF and XGB in our results closely matched this response structure. Relative
humidity showed a similar threshold-like response. The inflection observed around 60–70% relative humid -
ity likely reflects the model's representation of atmospheric moisture conditions through vapor pressure deficit
effects on transpiration and biomass accumulation25. In addition, some data showing yield declines observed near
80% relative humidity during early growth stages may result from nonlinear interactions among humidity, radia-
tion, and stage-specific growth processes embedded within the CYGMA simulation framework. Overall, these
findings indicate that both RF and XGB successfully captured the relationships between weather variables and
rice yield represented within the CYGMA model.
Furthermore, we explored potential factors associated with why certain temporal segments consistently
exhibited higher SHAP importance than other segments for the same weather variable. By comparing the mean,
median, and standard deviation of each temporal resolution segment for each weather variable (Fig. S10), we
observed two characteristics that were closely associated with variable importance: (1) the segment exhibited
relatively greater variability (i.e., a larger standard deviation) than other segments, and (2) the threshold identified
by the partial dependence plot (PDP) was located close to the segment's mean and median values. For example,
for maximum temperature (Tmax), the highest-ranked Tmax variable at Resolution 1 exhibited a larger standard
deviation than the corresponding Tmax variables at higher temporal resolutions, while its mean and median were
also closer to the identified threshold of 28–29°C. These observations are broadly consistent with the theoretical
properties of SHAP-based variable importance and PDPs26,27. One possible explanation is that SHAP importance
aggregates the magnitude of variable contributions across all samples,consequently, variables with greater vari -
ability may exhibit larger fluctuations in their contributions to model predictions, potentially increasing their
global importance27. Likewise, when the PDP threshold is located near the center of a variable's distribution, a
larger proportion of observations lies close to the region where the predicted response changes rapidly, enabling
the model to better capture changes in the response 26. However, because these characteristics were not consis -
tently observed across all variables, they should be interpreted as potential contributors to variable importance
rather than general principles.
Several limitations of this study should be acknowledged. First, temporal resolution was defined by dividing
the growing season into equal segments, which does not explicitly incorporate phenological stages. In CYGMA,
crop growth stages are defined using the fraction of cumulative growing degree days (frGDD) rather than abso -
lute GDD values because crop growth duration varies globally6. For example, anthesis occurs at frGDD = 0.552.
Considering this structure, dividing the growing season according to proportional duration provides a reasonable
approximation of phenological progression. Second, linear models (SVR and LR) showed substantially lower
predictive performance than nonlinear models. Although nonlinear models also exhibited reduced performance
when only weather variables were used compared with models including all CYGMA input variables, this limi -
tation was acceptable given the primary objective of this study. Nevertheless, it remains difficult to determine
whether the poor interpretability of the linear models resulted mainly from their lower predictive performance or
from their inherent structural limitations. What is clear, however, is that attempting to represent strongly nonlin-
ear crop–climate relationships using linear models may lead to both reduced predictive accuracy and unreliable
interpretations. Third, while our 100-fold random sampling strategy successfully isolated the pure impact of
temporal resolution by mitigating spatial sampling bias, this study did not explicitly stratify model performance
or interpretability across distinct climatic zones or rice-growing systems. Because spatial heterogeneity was
intentionally controlled as a confounding factor, the temporal resolution sensitivity identified in this work reflects

Article in Press
Scientific Reports
https://doi.org/10.1038/s41598-026-75646-2
a global response pattern. Future studies incorporating stratified spatial evaluations could further reveal whether
specific agro-climatic regions exhibit differential sensitivity to temporal variable aggregation.
Finally, this study used synthetic yield data generated by the CYGMA model rather than observation-based
yield data. Consequently, the findings may differ from results obtained using real-world datasets. For example,
when similar analyses are conducted using real-world datasets, variables identified as highly important in this
study, such as early-season tmax or late-season rh, may not necessarily emerge as important variables. In other
words, the results of this study should not be directly interpreted as representing the determinants of actual rice
production. However, the use of synthetic data offered several advantages for the objectives of this study, includ-
ing the absence of noise introduced by unknown external factors and the ability to generate sufficiently large data-
sets for robust machine learning analysis. Future validation using observed yield data, where available, would
provide a more realistic assessment of crop–weather relationships under real-world conditions and help evaluate
the generalizability of the findings.
Conclusion
This study demonstrates that both machine learning algorithm choice and temporal aggregation of weather vari-
ables strongly influence the predictive performance and interpretability of crop yield models. Using synthetic
global rice yield data generated by the process-based model CYGMA, we systematically evaluated four machine
learning algorithms (RF, XGB, SVR, and LR) across five temporal resolutions of weather variables. Tree-based
nonlinear models (RF and XGB) consistently outperformed linear models and produced more stable and interpre-
table variable importance patterns, reflecting the nonlinear crop–climate relationships embedded in the CYGMA
framework. Our results further show that temporal resolution determines whether machine learning models can
capture growth-stage–specific climatic influences on yield. When weather aggregation obscures critical growth
periods, important variables become diluted by noise, reducing both predictive skill and interpretability. How -
ever, excessively fine temporal resolution may increase data requirements and computational costs without sub-
stantial performance gains. Overall, this study highlights that careful selection of machine learning algorithms
and temporal resolution is essential for developing reliable and interpretable data-driven crop models. Further -
more, it provides critical insights for readers in interpreting and evaluating machine learning studies that use
weather variables as input variables.
Supplementary Information The online version contains supplementary material available at https://doi.org/10.1038/
s41598-026-75646-2.
Author contributions NHL, WJ, KHK designed the initial idea of the study. NHL, WJ, HJY , HC, and HYJ conducted mod-
eling and analyzed and interpreted the results, and together wrote the manuscript draft. TI provided the CYGMA dataset,
inspired the idea of conducting this study and lastly provided valuable insights for the methodology used in the study. KHK
supervised the whole study processes and reviewed the manuscript. All authors read and approved the final manuscript.
Funding This work was supported by the Rural Development Administration of Korea (RS-2025-02273201), and was
also supported by the Korea Institute of Planning and Evaluation for Technology in Food, Agriculture, and Forestry (IPET)
through the Agriculture and Food Convergence Technologies Program for Research Manpower Development, funded by the
Ministry of Agriculture, Food and Rural Affairs (MAFRA) (No. RS-2024-00398300).
Data availability The datasets generated and/or analyzed during the current study are available from the corresponding
author on reasonable request.
Declarations
Competing interest The authors declare no competing interests.

Article in Press
Scientific Reports
https://doi.org/10.1038/s41598-026-75646-2
Open Access This article is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 Interna-
tional License, which permits any non-commercial use, sharing, distribution and reproduction in any medium or format, as
long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence,
and indicate if you modified the licensed material. You do not have permission under this licence to share adapted material
derived from this article or parts of it. The images or other third party material in this article are included in the article’s Cre-
ative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article’s
Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you
will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit h t t p : / / c r e a t i v e c o m m o
n s . o r g / l i c e n s e s / b y - n c - n d / 4 . 0 / .
References

  1. Bailey-Serres, J., Parker, J. E., Ainsworth, E. A., Oldroyd, G. E. D. & Schroeder, J. I. Genetic strategies for improving
    crop yields. Nature 575(7781), 109–118 (2019).
  2. Fazli, S. et al. Quantifying single, compound and cascading climate extremes: Implications for agricultural resilience in
    California. Agric. For. Meteorol. 376, 110890 (2026).
  3. Szabo, S., Apipoonyanon, C., Pramanik, M., Tsusaka, T. W. & Leeson, K. Agricultural productivity, aging farming
    workforce, sustainable agriculture, and well-being: household survey data from Central Thailand. Front. Sustain. Food
    Syst. 5, 728120 (2021).
  4. Mohan, R. N. V . J., Rayanoothala, P. S. & Sree, R. P. Next-gen agriculture: Integrating AI and XAI for precision crop
    yield predictions. Front. Plant Sci. 15, 1451607 (2025).
  5. Shook, J. et al. Crop yield prediction integrating genotype and weather variables using deep learning. PLoS One 16(6),
    e0252402 (2021).
  6. Iizumi, T. et al. Responses of crop yield growth to global temperature and socioeconomic changes. Sci. Rep. 7(1), 7800
    (2017).
  7. Jones, J. W. et al. Decision support system for agrotechnology transfer: DSSAT v3. In Understanding Options for
    Agricultural Production 157–177 (Springer Netherlands, 1998).
  8. Abbas, F., Afzaal, H., Farooque, A. A. & Tang, S. Crop yield prediction through proximal sensing and machine learning
    algorithms. Agronomy 10(7), 1046 (2020).
  9. Alsaber, A., Satpathi, A., Alsabah, M. & Setiya, P. Optimizing potato yield predictions in Uttar Pradesh, India: a
    comparative analysis of machine learning models. Sci. Rep. 15(1), 26897 (2025).
  10. Gogoi, N. et al. Rice yield responses to climate variability in Northeast India using machine learning approach: N. Gogoi
    et al.. Theor. Appl. Climatol. 156(4), 233 (2025).
  11. Kamath, P., Patil, P., Shrilatha, S. & Sushma, Sowmya S. Analysis of agricultural crop yield prediction using statistical
    techniques of machine learning. Global Transit. Proc. 2(2), 402–407 (2021).
  12. Kumar YJN, Spandana V , Vaishnavi VS, Neha K, Devi VGRR. Supervised machine learning approach for crop yield
    prediction in agriculture sector. 2020 5th International Conference on Communication and Electronics Systems (ICCES).
    pp. 736-741 (2020).
  13. Kurmi, H. & Singh, A. Crop yield prediction through machine learning: a path towards sustainable agriculture and
    climate resilience in Saudi Arabia. IJARSCT 5(7), 159–166 (2025).
  14. Pant, J., Pant, R. P., Kumar Singh, M., Pratap Singh, D. & Pant, H. Analysis of agricultural crop yield prediction using
    statistical techniques of machine learning. Mater. Today Proc. 46, 10922–10926 (2021).
  15. Roy, S. K. & Uddin, M. A. Prediction of rice yield in relation to weather variables in Bangladesh: application of machine
    learning techniques. Next Res. https://doi.org/10.1016/j.nexres.2025.100653 (2025).
  16. Shawon, S. M., Ema, F. B., Mari, A. K., Nina, F. L. & Zubair, H. T. Crop yield prediction using machine learning: an
    extensive and systematic literature review. Smart Agric. Technol. 10, 100718 (2025).
  17. Jha, S., Patil, P. R. & Nemad, H. K. Comparative analysis of machine learning models for crop yield prediction using
    categorical and numerical agro-meteorolical data. J. Neonatal Surg. 14(20), 717–727 (2025).
  18. Khaki, S. & Wang, L. Crop yield prediction using deep neural networks. Front. Plant Sci. 10, 621 (2019).
  19. Talasila, P., Potts, T., Puppala, L. & Puligadda, N. B. P. Analysing the effect of climate change on crop yield using
    machine learning techniques. Available at SSRN: https://doi.org/10.2139/ssrn.4802729 (2024).
  20. Al-Adhailed, M. H. & Aldhyani, T. H. H. Artificial Intelligence framework for modeling and predicting crop yield to
    enhance food security in Saudi Arabia. PeerJ. Comput. Sci. 30(8), e1104 (2022).
  21. Leng, G. & Hall, J. W. Predictions spatial and temporal variability in crop yields: an inter-comparison of machine
    learning regression and process-based models. Environ. Res. Lett. 15(4), 044027 (2020).
  22. van Wart, J., Grassini, P. & Cassman, K. G. Impact of derived global weather data on simulated crop yields. Glob.
    Change Biol. 19(12), 3822–3834 (2013).

Article in Press
Scientific Reports
https://doi.org/10.1038/s41598-026-75646-2
23. Iizumi, T. & SaKai, T. The global dataset of historical yields for major crops 1981–2016. Sci. Data 7(1), 97 (2020).
24. Bühlmann, P. & Yu, B. Analyzing bagging. Ann. Stat. 30(4), 927–961 (2002).
25. Iizumi, T. & Ramankutty, N. Changes in yield variability of major crops for 1981–2010 explained by climate change.
Environ. Res. Lett. 11, 034003 (2016).
26. Friedman, J. H. Greedy function approximation: a gradient boosting machine. Annals of statistics 1189-1232 (2001).
27. Lundberg, S. M., Lee, S. I. A unified approach to interpreting model predictions. Advances in neural information
processing systems, 30 (2017).
28. Guo, Y . et al. Integrated phenology and climate in rice yields prediction using machine learning methods. Ecol. Indic.
120, 106935 (2021).
29. International Benchmark Sites Network for Agrotechnology Transfer. The IBSNAT Decade (Department of Agronomy
and Soil Science, College of Tropical Agriculture and Human Resources, University of Hawaii, 1993).
30. Lundberg, S. M. et al. From local explanations to global understanding with explainable AI for trees. Nat. Mach. Intell.
2(1), 56–67 (2020).
31. Weeper D, Wang H, Schlenker W, Jain M, Finger, R. Institutions and global crop yields. NBER Working Paper. 31426
(2023).
Publisher's note Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional
affiliations.
Authors and Affiliations
Noh-Hyun Lee1 · Wonjae Jeong1 · Hyeon-Ji Yang2 · Hana Cho1 · Hyeon-Yeong Ju3 ·
Toshichika Iizumi4 · Kwang-Hyung Kim1,5,6
Kwang-Hyung Kim
sospicy77@snu.ac.kr
1 Department of Agricultural Biotechnology, Seoul National University, Seoul, Republic of Korea
2 Agro-Environment Research institute, EPINET Co., Ltd, Anyang 14057, Republic of Korea
3 Plant Disease Control Division, National Institute of Agricultural Sciences, Wanju 55365, Republic of Korea
4 National Agriculture and Food Research Organization, Tsukuba, Ibaraki 305-8604, Japan
5 Research Institute of Agriculture and Life Sciences, Seoul National University, Seoul, Republic of Korea
6 Plant Health Center, Seoul National University, Seoul, Republic of Korea

论文原文与出版信息

Scientific Reports
查看论文原文

继续探索