Abstract
As agricultural systems face increasingly intertwined and recurrent external risks, strengthening the resilience of China’s agricultural industry has become a strategic priority for ensuring national food security and agricultural sustainability. A robust and systematic measurement of the resilience of China’s agricultural industry (RCAI), together with an examination of its principal drivers, is therefore essential. This study develops a comprehensive RCAI evaluation framework for 31 provincial-level regions in China, characterizes the spatiotemporal evolution of RCAI from 2000 to 2022, and employs an XGBoost–SHAP analytical framework to refine the index and uncover underlying driving mechanisms. The results show that: (1) the resilience of China’s agricultural industry exhibits a clear upward trend over time and a pronounced spatial pattern of “higher in the east and lower in the west”; (2) the XGBoost model optimizes the RCAI evaluation framework, yielding an index that is more robust and representative; (3) agricultural fixed-asset investment contributes 30.6% to RCAI, making it the most influential determinant of resilience enhancement. In addition, rural consumption expenditure and transportation infrastructure are positively associated with RCAI and display threshold effects. Overall, the findings demonstrate that the XGBoost–SHAP framework can effectively capture complex nonlinear relationships between RCAI and its determinants and can improve the precision of resilience measurement.
1 Introduction
In recent years, the compounded effects of extreme climate events, resource constraints, and market volatility have made the stability, efficiency, and sustainability of agricultural production a top priority for governments and agricultural sectors worldwide (; ; ). Such risks can trigger yield reductions and farm losses, thereby amplifying the vulnerability of agricultural systems (; ). Accordingly, resilience has become a central concept for assessing agricultural systems under uncertainty. The concept of resilience originated in physics and was later extended to economics (). In an agricultural context, resilience can be defined as the capacity of an agricultural system to resist, recover from, and rebuild after external disturbances. That is, it reflects the ability of a regional agricultural system to maintain its functioning under shocks arising from climate, ecology, or resource constraints, and to return to normal performance levels thereafter (; ; ). Following this understanding, we examine the resilience of China’s agricultural industry from an industry-wide perspective, adopting a comprehensive lens to evaluate regional capabilities to withstand and rebound from risks. This provides evidence to support risk assessment and management, as well as policy formulation ().
Existing studies, however, largely construct resilience indices from a single dimension such as economic or ecological aspects, apply entropy-based weighting or TOPSIS for measurement, and then examine spatial and temporal heterogeneity (; ; ; ). This prevailing research paradigm presents two notable challenges: First, conventional index-construction methods primarily assign weights and may yield biased results when handling high-dimensional data (; ). Second, the mechanisms linking the composite index to its constituent indicators remain difficult to interpret, and traditional econometric approaches often offer limited insights into nonlinear relationships among variables (). To address these gaps, we introduce an explainable machine-learning framework based on eXtreme Gradient Boosting (XGBoost) to measure and refine the resilience of China’s agricultural industry, and employ SHapley Additive exPlanations (SHAP) to interpret key drivers. This approach aims to produce a more refined and interpretable resilience index, thereby advancing measurement and mechanism identification in this field.
China provides a representative setting for resilience research because its agricultural system faces pronounced and multifaceted pressures (). With about 7% of the world’s arable land, China must feed roughly 22% of the global population (; ). Moreover, agricultural heterogeneity across regions is substantial: climatic conditions, resource endowments, and binding constraints differ markedly, complicating policy design and implementation (; ). Historical evidence further shows that agriculture in many regions has been repeatedly exposed to external shocks such as climate extremes, natural disasters, and epidemics (; ; ). Under a fragmented production structure dominated by smallholders, China’s agricultural sector often lacks the capacity to absorb such shocks, which can further exacerbate systemic vulnerability (; Yu et al., 2023). These features make China an informative case for studying agricultural resilience.
This study contributes in three ways. First, it introduces a machine-learning approach to refine resilience index construction, offering a novel methodological perspective for measurement and evaluation. Second, by leveraging the interpretability of XGBoost and SHAP, it moves beyond the linear assumptions of conventional econometrics and shifts resilience assessment from simple measurement toward mechanism-oriented diagnosis, revealing nonlinear relationships and marginal contributions of indicators. Third, it documents the spatiotemporal evolution of the resilience of China’s agricultural industry through three core capacities and uncovers the deeper logic underlying resilience dynamics.
The remainder of the paper is organized as follows. Section 2 reviews the literature on agricultural resilience and presents the analytical framework. Section 3 describes the data, models, and methods, and reports the measurement and spatiotemporal patterns of the resilience index. Section 4 applies the explainable machine-learning framework to identify nonlinear relationships and driving mechanisms. Section 5 conducts robustness checks. Section 6 concludes and discusses policy implications.
2 Literature review
2.1 Research trajectory of agricultural resilience
Agriculture has long been regarded as a high-risk sector, and early studies attributed vulnerability to seasonal climate variability, pest and disease outbreaks, and price uncertainty (). Over time, interacting risks have exposed agricultural systems to multiple shocks, including extreme weather, supply-chain reconfiguration, and institutional change (; ; ). Disruptions to global food supply chains during the COVID-19 pandemic highlighted a critical point: conventional risk-resistance frameworks are often insufficient to explain collapse and delayed recovery under successive shocks. Agriculture should not be viewed as a passive recipient of risk; rather, it is a dynamic system with capacities for adaptation, reorganization, and transformation (Zampieri et al., 2020; ). Accordingly, resilience assessment should incorporate resistance capacity, adaptation capacity, and innovation capacity (Zeng et al., 2025), which are discussed in detail in Section 3.
Consequently, maintaining stability, facilitating recovery, and enabling adaptation under uncertainty has become a central agenda in resilience research (). The literature can be broadly grouped into two strands. The first emphasizes deepening vulnerability driven by external shocks, focusing primarily on climatic hazards such as droughts and floods that frequently reduce yields and generate economic losses (). The magnitude of these impacts depends on the resources and technologies that agricultural systems can mobilize in response to emerging risks (; ). The second strand highlights resilience deficits arising from internal resource or structural constraints—for example, population pressure, limited land resources, fragmented sectoral organization, and pronounced regional heterogeneity in China (; ). While documenting China’s vulnerabilities, existing studies also underscore potential pathways to strengthen resilience, including technological innovation and agricultural digitalization, infrastructure investment, subsidy and disaster insurance programs, and industrial restructuring (; Zhang et al., 2025; ).
2.2 Assessment of mainstream measurement approaches
Quantifying agricultural industry resilience is a prerequisite for uncovering its underlying mechanisms. Three approaches dominate the literature: the core-variable approach, composite index construction, and systemic risk methods. First, the core-variable approach follows the tradition of Rose (2007) and Martin (2012) by tracking the relative deviation of key variables that are highly sensitive to shocks before and after events. While straightforward and conducive to cross-country and intertemporal comparisons, it oversimplifies system complexity and may fail to capture overall elasticity under complex economic fundamentals (). Second, composite index methods are widely used. They integrate multidimensional sub-capacities into a unified framework via entropy–TOPSIS, principal component analysis, or factor analysis to provide static measurement and cross-sectional comparisons (; ; ). Although useful for synthesizing key macro variables and offering a systematic perspective (), such methods often overlook nonlinear responses of micro-level agents (e.g., households and firms) near thresholds (). Third, systemic risk methods employ impulse-response analysis and complex networks to characterize contagion intensity, duration, and cascading pathways (Zhou et al., 2020; ). Overall, existing measurement frameworks remain relatively narrow and often cannot identify which indicators matter most or how indicators mechanistically relate to resilience, leaving apparent paradoxes (e.g., “high index–low recovery” or “high risk–high innovation”) insufficiently explained.
2.3 Machine learning applications in resilience research
The rise of big data and artificial intelligence has accelerated the use of algorithms such as random forests, backpropagation neural networks, and support vector machines (SVM) in resilience research (). Compared with traditional approaches, these tools can identify latent patterns in high-dimensional data with complex nonlinearities and interaction effects without imposing a priori functional forms (; ). They have achieved notable progress in ecological applications (e.g., forests and wetlands) and urban resilience assessment (; ). Building on this, XGBoost improves predictive performance through iterative residual learning and regularization, while mitigating overfitting, and has been shown to be particularly suitable for agricultural contexts characterized by “small samples and high-dimensional features” (Alam et al., 2025). Nonetheless, the black-box nature of many machine-learning models has limited researchers’ ability to interpret internal mechanisms (). The integration of SHAP with machine-learning models addresses this challenge by combining predictive accuracy with process transparency (). The resulting framework can identify key thresholds and quantify heterogeneous responses across regions and agents, providing an interpretable evidence base for targeted interventions. Although this approach has been applied to crop yield prediction and risk-factor diagnostics in agriculture (), it has not yet been systematically extended to agricultural resilience, leaving substantial room for methodological and empirical advancement.
2.4 Identification of research gaps
Despite significant advancements in defining and measuring agricultural resilience, two critical issues remain largely overlooked in the literature. First, existing evaluation frameworks are often predicated on linear assumptions, utilizing mainstream measurement methods such as entropy-weighting to measure and rank resilience (; ; ). However, simple linear weighting approaches face substantial challenges in accurately reflecting high-dimensional and structurally complex resilience data. Second, regarding the identification of driving mechanisms, existing literature frequently relies on pre-specifying mechanism variables for verification and interpretation (; Zhang et al., 2025; ). There is a notable lack of tools capable of automatically traversing feature importance and discovering latent mechanisms within the data.
Consequently, this study aims to address the following research gaps. First, to construct a measurement framework capable of handling high-dimensional, non-linear data without sacrificing accuracy, applied to the estimation of complex and diverse agricultural resilience data across China’s 31 provinces. Second, to reveal the non-linear relationships and threshold effects of key driving factors, thereby fully explaining how these factors influence variations in agricultural resilience. Third, to comprehensively and systematically assess the changes in resilience across different geographical regions in China over a long period, identifying regional imbalances and dynamic trends.
In summary, this study constructs a comprehensive analytical framework integrating XGBoost and SHAP methods. This framework optimizes the measurement of high-dimensional structured data while simultaneously elucidating the non-linear relationships and threshold effects between resilience and its driving mechanisms, thereby providing a more accurate measurement standard and a deeper, mechanism-oriented explanation for the disaster resistance capability of China’s agricultural industry.
2.5 Overall analytical framework
Figure 1 summarizes the research procedure. First, we preprocess and validate the data, establish a three-capacity indicator system, and conduct outlier treatment, Pearson correlation tests, and dataset partitioning. Second, we measure the resilience index using a combined “entropy-weighting and coefficient of variation” method and examine its spatiotemporal evolution. Third, we feed high-dimensional structured data into multiple machine-learning models, select the best-performing XGBoost specification, and refine the resilience index accordingly. Finally, we apply SHAP to identify key drivers and nonlinear relationships, thereby providing a mechanism-based interpretation of the observed spatiotemporal patterns.
Figure 1
3 Model method and resilience measurement
3.1 Model and method introduction
3.1.1 Machine learning model and evaluation basis
Among machine learning models, XGBoost model has the characteristics of fast prediction speed and high prediction accuracy, and offers distinct advantages in addressing structural and high-dimensional data problems. It is well-suited for addressing the research questions regarding RCAI and index system in this paper, so it is used as the main model of this study. XGBoost is an efficient gradient boosting tree algorithm that integrates gradient boosting with regularization techniques to enhance predictive performance (). XGBoost constructs a strong predictive model by combining multiple weak learners (decision trees). It calculates both the gradient and the second derivative of the loss function to determine the weight of each decision tree. And it also introduce a regularization term to suppress overfitting and improve generalization (). The optimal model is obtained by minimizing the following objective function (Equation 1):
where M denotes the number of samples, represents the loss between predicted and actual values, t denotes the number of trees, denotes the k-th regression tree, and represents the regularization term that controls model complexity and prevents overfitting.
3.1.2 Evaluation of model performance and efficiency
Model evaluation: The performance and efficiency of the models were assessed using the coefficient of determination (R2), root mean square error (RMSE), and mean absolute error (MAE). R2 measures the goodness of fit, generally ranging between [0, 1], with values closer to 1 indicating better fit (). RMSE and MAE capture prediction errors, with lower values reflecting higher predictive accuracy (Yuan et al., 2024). The calculation of the evaluation indicators is as shown in (Equations 2–4).
3.1.3 Basic principles of SHAP analysis
Traditional machine learning models have the feature of “black box,” which is difficult to explain the decision formation process of the model. SHAP, derived from the Shapley value in cooperative game theory, is an algorithm designed to interpret machine learning models (). Its core principle is to quantify the contribution of each feature to model prediction by calculating its marginal contribution when added to the model (). Specifically, SHAP evaluates the marginal contributions of a feature across all possible feature orderings and averages them to obtain the SHAP value. In this study, SHAP provides both global and local interpretations of the XGBoost model’s decision process. At the global level, the average absolute SHAP values are computed to generate the ranking of feature importance and their overall contributions. At the local level, the sign of the SHAP values is used to identify whether a feature exerts a positive or negative effect on the prediction. The calculation of the SHAP value for feature i is shown in (Equation 5):
Where F denotes the set of all features, S denotes a subset of F that excludes feature i, represents the prediction based on the feature subset S, and is the marginal contribution of feature i.
3.2 Evaluation system and measurement of resilience of China’s agricultural industry
3.2.1 Construction and measurement of the resilience indicator system
Drawing on existing studies (), this paper develops a comprehensive evaluation framework for agricultural industry resilience in China from three dimensions: resistance, adaptation, and innovation. The indicator system is presented in Table 1. The rationale for selecting indicators in each dimension is as follows:
Table 1
| Primary indicator | Dimension | Factor index | Code | Unit | Property | Reference | Combination weight |
|---|---|---|---|---|---|---|---|
| Resilience of China’s Agricultural Industry (RCAI) | Resistance Capacity | Total grain output/grain sown area | GOGA | % | + | 0.0646 | |
| Regional Agricultural GDP/Regional Total GDP | RATG | % | + | ; | 0.0393 | ||
| Regional Agricultural Labor Force/Total Regional Labor Force | RATF | % | + | Zhou et al. (2020); | 0.0258 | ||
| Area of Crops Seriously Damaged/Area of Crops Affected by Disasters | ACSD | % | − | 0.0288 | |||
| Effective Irrigated Farmland Area/Total Sown Area | EIFA | % | + | 0.0425 | |||
| Adaptation Capacity | Per Capita Net Income of Rural Residents | PCIR | CNY per person | + | 0.0698 | ||
| Per Capita Consumption Expenditure of Rural Residents | PCCE | CNY per person | + | 0.0703 | |||
| Total Agricultural Machinery Power | TAMP | 10 thousand kilowatts | + | 0.0819 | |||
| Fertilizer Application Amount | FAA | Tons | − | Zahm et al. (2008); | 0.0138 | ||
| Pesticide Usage | PU | Tons | − | Zhang et al. (2021) | 0.0197 | ||
| Agricultural Plastic Film Usage | APFU | Tons | − | Zhang et al. (2021) | 0.0125 | ||
| Innovation Capacity | Investment in Agricultural Fixed Assets | IAFA | 100 million CNY | + | ; Zhou et al. (2025) | 0.1789 | |
| Disaster Relief Subsidies | DRS | 10 thousand CNY | + | 0.2156 | |||
| Average Years of Education | AYE | / | + | ; | 0.0091 | ||
| Total Postal and Telecommunication Services/Regional GDP | PTRG | % | + | ; | 0.0588 | ||
| R&D Internal Expenditure/Regional GDP | RDRD | % | + | ; | 0.0598 | ||
| Transportation Infrastructure Level | TIL | / | + | ; | 0.0088 |
The RCAI indicator system and calculation weights.
Average years of education = (number of people with primary school education *6 + number of people with junior high school education *9 + number of people with senior high school and technical secondary school education *12 + number of people with junior college and bachelor degree or above *16)/total population aged 6 or above; Transportation Infrastructure Level = Ln (highway mileage).
Resistance capacity. For agricultural systems, resistance capacity is defined as the ability to maintain existing functions and quickly return to normal levels after external disturbances (). The collapse of agricultural systems is often accompanied by severe losses in production, farmer livelihoods, and food security; hence, previous studies have frequently linked resilience to production targets (). At the production level, Land productivity and the proportion of effective irrigated area are selected to reflect the system’s physical buffer against shocks. High land productivity ensures food security under stress (), while irrigation facilities significantly mitigate yield volatility caused by droughts (). At the economic and social stability level, The ratio of agricultural value-added to regional GDP serves as a macro-economic stabilizer. A strong agricultural economic base effectively buffers regional economic fluctuations and ensures the continuity of supply chains (; ). The share of agricultural employment is adopted as a proxy for social resistance. In China, the agricultural sector functions as a vital “employment reservoir” during crises. A stable workforce prevents social structural collapse and ensures rapid post-disaster recovery efficiency (Zhou et al., 2020; ). At the disaster Response level, the extent of damage is captured by the ratio of seriously damaged crop area, which inversely reflects the system’s vulnerability to climate extremes ().
Adaptation capacity. This dimension emphasizes the ability of agricultural subjects to adjust resource allocation and production behaviors in response to changing conditions. At the livelihood capital level, Per capita net income and consumption expenditure of rural residents represent financial adaptability. Higher household liquidity enables farmers to finance diverse livelihood strategies and adopt risk-mitigation measures (). At the production flexibility level, total agricultural machinery power is used to measure technological adaptability. Mechanization enhances the timeliness of farming operations, allowing producers to flexibly adjust planting and harvesting windows in response to climate variability (). At the ecological sustainability level, the intensity of chemical inputs—fertilizers, pesticides, and plastic film—reflects the sustainability of adaptation practices. Excessive reliance on these inputs degrades soil health and weakens the long-term adaptive potential of the agroecosystem (Zahm et al., 2008; Zhang et al., 2021; ).
Innovation capacity. This dimension highlights the potential for structural change and long-term innovation in agriculture (). In terms of financial support for innovation, Investment in agricultural fixed assets acts as the primary driver for upgrading production conditions. Sustained capital accumulation is essential for crossing resilience thresholds and fostering high-quality development (; Zhou et al., 2025). Disaster relief subsidies represent institutional innovation in risk transfer, providing a financial safety net that encourages producers to engage in higher-risk, higher-return agricultural activities (). In terms of the construction level of key areas, the level of transportation infrastructure and postal/telecom services reflects the system’s connectivity. Efficient networks facilitate the flow of technology, information, and market resources, which are prerequisites for innovative decision-making (; ). In terms of the potential of technological innovation, R&D internal expenditure and average years of education measure the intellectual and financial support for innovation. These “slow variables” determine the system’s long-term capacity to develop stress-tolerant varieties and adopt smart agricultural technologies (; ).
3.2.2 Data sources and preprocessing
This study uses panel data for 31 provincial-level regions in China (provinces, autonomous regions, and municipalities) from 2000 to 2022. Due to data availability and completeness, the statistics exclude Hong Kong, Macao, and Taiwan, and the same convention applies throughout the paper. The selection of the research period from 2000 to 2022 is grounded in both data availability and the analytical need for a long-term perspective. As of the current analysis, 2022 represents the most recent year for which complete and verified official statistics are available across all 31 provincial-level regions. Furthermore, this 23-year span covers critical phases of China’s agricultural transformation, enabling the study to capture the full trajectory of resilience evolution—from early-stage fluctuations to recent stability—and ensuring that the machine learning model has sufficient historical depth to identify robust structural regularities. The data are primarily drawn from the National Bureau of Statistics of China, the China Rural Statistical Yearbook, and provincial statistical yearbooks. A small number of missing observations are imputed using linear interpolation to ensure dataset integrity. Prior to index construction, all indicators are directionally aligned (i.e., transformed so that higher values consistently indicate stronger resilience) and standardized using Z-scores, thereby addressing differences in indicator orientation and measurement units.
3.2.3 Index construction method
To address the limitations of relying on a single weighting scheme in prior research, we construct the resilience index using a combined weighting approach, integrating the entropy method and the coefficient of variation method to compute RCAI. Specifically, we first estimate weights separately using the entropy method and the coefficient of variation method, and then derive an optimized composite weight to calculate the index. Following this procedure, we obtain the initial target variable used to train the machine-learning models. The key advantage of this approach is that the secondary calibration embedded in the composite weighting reduces potential bias introduced by any single method and yields a more plausible weight structure. The weights for the indicator calculation are shown in Table 1.
3.3 Spatiotemporal heterogeneity of the resilience of China’s agricultural industry
3.3.1 Dynamic evolution of RCAI and the three capacity dimensions
Based on the composite weights, we compute three sub-dimensions—resistance, adaptation and innovation capacity—to examine the extent to which RCAI co-evolves with these capacities. Figure 2 illustrates the interannual trends of RCAI and the three dimensions. Three patterns emerge. First, both RCAI and the three capacities exhibit an overall upward trajectory, indicating a sustained improvement in the resilience level. Second, variations in RCAI are most closely aligned with changes in innovation capacity, with synchronous upswings and downswings observed during periods such as 2007–2010 and 2017–2021. Third, the three capacities evolve at different rates: resistance capacity remains relatively stable over time; adaptation capacity starts from a relatively low level in 2000 but increases steadily thereafter; and innovation capacity shows the fastest and largest growth.
Figure 2
Since RCAI is a composite index jointly determined by three capacity dimensions, an excessive contribution from any single dimension may mask deficiencies in the others and potentially induce a “resilience illusion.” To mitigate this risk, we decompose resilience into its three constituent capacities and examine them separately. We further visualize the spatial distributions of these capacities using GIS maps (Supplementary Appendix Figures A1–A3). Indicators within the resistance dimension, such as crop yield and disaster-affected area, are largely lagging measures that reflect realized outcomes after shocks occur. By contrast, adaptation capacity dimension captures contemporaneous responses to risk and is characterized by variables such as mechanization level, rural income and consumption capacity, and the use of fertilizers and pesticides. Both resistance and adaptation capacity exhibit clear upward trends as well as pronounced regional heterogeneity. Provinces along the southeastern coast—such as Shandong, Zhejiang, and Fujian—as well as major grain-producing regions such as Heilongjiang, show relatively rapid improvements in risk resistance and adaptive capacity. In contrast, northwestern provinces including Gansu and Qinghai improve more slowly, which is closely associated with constraints in infrastructure upgrading and mechanization. In the innovation dimension, indicators such as transport and communication conditions and R&D capability are leading measures of risk preparedness. Improvements in this capacity are concentrated in major agricultural and economically advanced provinces, including Heilongjiang, Shandong, and Henan. A higher level of innovation capacity implies stronger potential for resilience upgrading and regime shifts.
3.3.2 Spatiotemporal evolution of RCAI
Building on the three-capacity analysis, we construct GIS maps of RCAI for 2001, 2008, 2015, and 2022 to characterize its spatiotemporal evolution (Figures 2, 3). Across provinces, RCAI ranges from 0.011 to 0.212. Overall, the resilience of China’s agricultural industry exhibits an upward trajectory, albeit with clear interannual differences. During 2001–2008, resilience increased slowly and high-resilience areas were spatially fragmented. During 2008–2015, resilience growth accelerated and high-resilience regions expanded outward, largely anchored around major grain-producing areas. During 2015–2022, resilience strengthened more comprehensively, with high-resilience areas becoming increasingly contiguous.
Furthermore, we interpret the logic linking China’s agricultural transformation to the resilience of China’s agricultural industry from three perspectives: policy, technology, and structural change. On the policy front, resilience has been strengthened through successive legal and institutional arrangements. The revised Agriculture Law in 2002 explicitly emphasized, for the first time, the need to enhance agriculture’s capacity to withstand risks, alongside reinforced investment in agricultural and rural infrastructure. The 2004 Central No. 1 Document proposed the construction of farmland with stable yields under both drought and flood conditions, aiming to secure output and stabilize production. This institutional trajectory was further consolidated by the issuance of the Technical Code for High-Standard Farmland Construction (Trial) in 2011 and the implementation of the Regulations on Agricultural Insurance in 2012, which jointly formalized infrastructure upgrading and risk protection as long-term policy instruments. Since the launch of the Rural Revitalization Strategy in 2017, resilience-oriented agriculture has been increasingly embedded in national priorities, with greater attention paid to the interaction between climate risks and agricultural development.
Technological support has also expanded in a staged and cumulative manner. Before 2005, public investment focused primarily on water-saving irrigation and hydraulic infrastructure. Between 2005 and 2010, China increased support for germplasm innovation and breeding R&D, improving both crop yields and stress tolerance. After 2011, efforts accelerated toward the development of intelligent agricultural equipment, raising mechanization and automation levels. Since 2016, the strategic emphasis has shifted toward digital technologies such as big data, fostering a broader transition toward data-driven and digitally enabled agriculture. Together, these technological upgrades have provided intrinsic momentum for the observed improvements in RCAI.
Figure 3
Finally, regional structural change has shaped heterogeneous resilience trajectories. Infrastructure expansion and the renovation of medium- and low-yield farmland have contributed to resilience gains in traditional major grain-producing areas. With advances in technology diffusion and application, refined and efficiency-oriented agricultural development has become an increasingly important lever for resilience breakthroughs in many regions. However, in western China, structural adjustment remains constrained by ecological fragility and climatic limitations, which restrict the feasibility and speed of transformation. As a result, the eastern region generally exhibits faster and more readily achievable transformation than the western frontier provinces, reinforcing the observed east–west gradient in the resilience of China’s agricultural industry.
4 Empirical analysis
The preceding analysis of the spatiotemporal evolution of RCAI reveals two issues. First, the RCAI constructed using conventional index methods may be sensitive to extreme observations; in the presence of outliers, measurement bias can arise and may obscure the true contemporaneous patterns in other regions. Second, the spatiotemporal analysis remains largely descriptive and does not sufficiently address the determinants of RCAI dynamics. To overcome these limitations, this section applies a machine-learning framework to refine the RCAI and to further elucidate the mechanisms underlying changes in the resilience of China’s agricultural industry.
4.1 Machine-learning models
4.1.1 Data preprocessing
The machine-learning dataset contains 714 observations. Following an 8:1:1 split, the full sample is divided into a training set, a validation set, and a test set to facilitate model development and evaluation. We first conduct outlier detection to reduce the influence of extreme values on model fitting. Specifically, we employ an Isolation Forest to characterize the distribution of the dataset and set an anomaly threshold. Observations exceeding the threshold are removed to prevent abnormal data from degrading model performance. The anomaly threshold is set to 0.5375, and 36 observations are excluded accordingly.
4.1.2 Correlation analysis
Before fitting machine-learning models, we assess the association between candidate features and the target variable to understand feature–outcome relevance and to inform subsequent modeling. Because the RCAI indicator system is constructed based on prior literature and theoretical considerations, we primarily examine the overall strength of association between each indicator and RCAI, rather than conducting aggressive feature elimination at this stage. We apply Pearson correlation analysis, and the resulting heatmap is reported in Figure 4. Several variables—GOGA (land productivity), PCIR (rural residents’ income), PCCE (rural residents’ expenditure), IAFA (agricultural fixed-asset investment), and TIL (transportation infrastructure level)—exhibit correlations above 0.5 with RCAI. These variables span the resistance, adaptation, and innovation dimensions, providing additional support for the internal coherence of the indicator system. The results also suggest that higher agricultural fixed-asset investment, stronger rural income and consumption capacity, and higher land productivity are associated with a higher level of the resilience of China’s agricultural industry.
Figure 4
4.1.3 Evaluation of multiple machine-learning models
We benchmark a range of machine-learning algorithms, including Gaussian kernel regression, Decision Tree, Random Forest, GAM, GRNN, LightGBM, LSBoost, and XGBoost. Prior to training, all variables are normalized to improve numerical stability and ensure comparability across features. Figure 5 reports the prediction errors by comparing fitted values with observed RCAI. Among the competing models, XGBoost exhibits the narrowest error band, indicating that its test-set predictions are the closest to the observed values.
Figure 5
We further evaluate model performance using standard metrics, with results reported in Table 2. MAE and RMSE quantify prediction errors, while R2 measures goodness of fit. Across the eight models, XGBoost achieves the lowest MSE () and RMSE (0.002), together with the highest R2 (0.9239), indicating that it demonstrates superior performance compared to the alternatives in both predictive accuracy and explanatory power. Random Forest and GRNN rank second, with R2 values of 0.9095 and 0.9007 and RMSE values of 0.0023 and 0.0024, respectively, which are close to those of XGBoost. In contrast, LSBoost performs poorly, with an R2 of only 0.5401. Except for LSBoost, all other models yield R2 values above 0.8, albeit with slightly larger errors than XGBoost. Taken together, XGBoost is selected for subsequent analysis due to its dual advantage in minimizing prediction errors and maximizing explained variance.
Table 2
| Model | MAE | MAPE | MSE | RMSE | R2 |
|---|---|---|---|---|---|
| Gaussian kernel | 0.0022 | 0.1033 | 8.2563 × 10−6 | 0.0028 | 0.8608 |
| Decision tree | 0.0021 | 0.0925 | 9.2673 × 10−6 | 0.0030 | 0.8438 |
| Random forest | 0.0019 | 0.0845 | 5.3676 × 10−6 | 0.0023 | 0.9095 |
| GAM | 0.0019 | 0.0808 | 7.6119 × 10−6 | 0.0027 | 0.8717 |
| GRNN | 0.0015 | 0.0651 | 5.8909 × 10−6 | 0.0024 | 0.9007 |
| LightGBM | 0.0022 | 0.1021 | 7.4937 × 10−6 | 0.0027 | 0.8737 |
| LSBoost | 0.0029 | 0.1270 | 2.7289 × 10−6 | 0.0052 | 0.5401 |
| XGBoost | 0.0018 | 0.0806 | 5.0932 × 10−6 | 0.0022 | 0.9239 |
Reference indicators for performance evaluation of machine learning model.
4.2 XGBoost hyperparameter configuration
The XGBoost model is configured as follows: max_depth = 5, learning_rate = 0.1, min_child_weight = 1, and subsample = 0.95, while colsample and num_parallel_tree are kept at their default values of 1. These hyperparameters are chosen to balance model flexibility and generalization. The learning rate controls the step size of parameter updates during boosting; a smaller value typically requires more boosting iterations to achieve comparable performance. Tree depth determines the complexity of each base learner: deeper trees can capture richer nonlinear patterns but require more data and computation and may increase the risk of overfitting. The number of boosting iterations governs overall model complexity; an appropriate number of rounds improves learning capacity without excessive variance.
To examine the model’s performance on the full dataset under this configuration, we apply five-fold cross-validation (). The sample is split into five subsets; in each fold, four subsets are used for training and the remaining subset is used for testing, repeated five times so that each subset serves as the test fold once. The MAE values across folds are 0.0012, 0.0010, 0.0011, 0.0009, and 0.0011, with an average MAE of 0.0011. The consistently low errors indicate that XGBoost performs well and generalizes favorably in this dataset.
4.3 Refining the RCAI using XGBoost predictions
Based on the trained XGBoost model, we input the resilience indicators for 2000–2022 as features to predict RCAI. The rationale for this optimization lies in the generalization capability of machine learning algorithms. Unlike the static calculation of the composite weighting method, XGBoost captures the complex, non-linear mapping relationships between the multidimensional input indicators and the resilience capacity through iterative residual learning. By generating predictions from this trained model, we obtain a “re-estimated” index that reflects the structural regularities of the agricultural system rather than raw arithmetic aggregations. This process effectively filters out random noise and anomalies inherent in the initial data, ensuring that the index represents the systematic resilience level.
The resulting predictions constitute the refined index for the resilience of China’s agricultural industry, as reported in Table 3. Two features are noteworthy. First, the refinement mainly involves local adjustments rather than wholesale changes: the predicted values represent modest numerical corrections, and provincial rankings by resilience remain broadly stable. Second, the refined RCAI effectively mitigates bias induced by extreme values. For instance, in Sichuan in 2008, disaster relief-related variables surged following the Wenchuan earthquake, yielding an abnormally high value of 0.2124 under the original composite-weight method. In contrast, the XGBoost-based prediction is 0.0319—still relatively high, but no longer inflated by orders of magnitude relative to other provinces. This demonstrates that the XGBoost-refined RCAI is less sensitive to outliers and provides a more reliable measure when high-dimensional indicators and extreme observations coexist.
Table 3
| Province | Entropy weight—coefficient of variation | XGBoost model prediction | ||||||
|---|---|---|---|---|---|---|---|---|
| 2001 | 2008 | 2015 | 2022 | 2001 | 2008 | 2015 | 2022 | |
| Anhui | 0.0153 | 0.0216 | 0.0257 | 0.0315 | 0.0150 | 0.0214 | 0.0255 | 0.0313 |
| Beijing | 0.0191 | 0.0246 | 0.0323 | 0.0403 | 0.0192 | 0.0236 | 0.0318 | 0.0312 |
| Fujian | 0.0135 | 0.0176 | 0.0243 | 0.0322 | 0.0141 | 0.0181 | 0.0244 | 0.0318 |
| Gansu | 0.0131 | 0.0224 | 0.0227 | 0.0259 | 0.0135 | 0.0221 | 0.0221 | 0.0262 |
| Guangdong | 0.0149 | 0.0207 | 0.0268 | 0.0316 | 0.0153 | 0.0206 | 0.0265 | 0.0307 |
| Guangxi | 0.0140 | 0.0203 | 0.0241 | 0.0338 | 0.0137 | 0.0202 | 0.0237 | 0.0339 |
| Guizhou | 0.0129 | 0.0176 | 0.0227 | 0.0305 | 0.0134 | 0.0180 | 0.0227 | 0.0306 |
| Hainan | 0.0147 | 0.0184 | 0.0210 | 0.0337 | 0.0146 | 0.0180 | 0.0210 | 0.0320 |
| Hebei | 0.0189 | 0.0255 | 0.0319 | 0.0350 | 0.0181 | 0.0244 | 0.0308 | 0.0342 |
| Henan | 0.0182 | 0.0252 | 0.0430 | 0.0609 | 0.0185 | 0.0260 | 0.0429 | 0.0566 |
| Heilongjiang | 0.0124 | 0.0194 | 0.0364 | 0.1039 | 0.0131 | 0.0189 | 0.0368 | 0.0594 |
| Hubei | 0.0141 | 0.0213 | 0.0247 | 0.0296 | 0.0153 | 0.0214 | 0.0248 | 0.0296 |
| Hunan | 0.0150 | 0.0224 | 0.0265 | 0.0321 | 0.0149 | 0.0221 | 0.0262 | 0.0314 |
| Jilin | 0.0142 | 0.0181 | 0.0217 | 0.0243 | 0.0143 | 0.0181 | 0.0212 | 0.0239 |
| Jiangsu | 0.0150 | 0.0194 | 0.0274 | 0.0331 | 0.0149 | 0.0196 | 0.0278 | 0.0323 |
| Jiangxi | 0.0138 | 0.0192 | 0.0243 | 0.0368 | 0.0138 | 0.0192 | 0.0251 | 0.0365 |
| Liaoning | 0.0140 | 0.0204 | 0.0253 | 0.0282 | 0.0146 | 0.0199 | 0.0250 | 0.0283 |
| Neimenggu | 0.0143 | 0.0179 | 0.0260 | 0.0397 | 0.0144 | 0.0180 | 0.0258 | 0.0391 |
| Ningxia | 0.0125 | 0.0143 | 0.0184 | 0.0214 | 0.0131 | 0.0148 | 0.0179 | 0.0228 |
| Qinghai | 0.0112 | 0.0148 | 0.0185 | 0.0237 | 0.0123 | 0.0147 | 0.0182 | 0.0238 |
| Shandong | 0.0189 | 0.0267 | 0.0405 | 0.0553 | 0.0190 | 0.0271 | 0.0353 | 0.0490 |
| Shanxi | 0.0130 | 0.0154 | 0.0249 | 0.0467 | 0.0134 | 0.0155 | 0.0250 | 0.0461 |
| Shaanxi | 0.0154 | 0.0312 | 0.0245 | 0.0271 | 0.0152 | 0.0306 | 0.0237 | 0.0268 |
| Shanghai | 0.0131 | 0.0204 | 0.0247 | 0.0341 | 0.0137 | 0.0203 | 0.0249 | 0.0314 |
| Sichuan | 0.0153 | 0.2124 | 0.0379 | 0.0664 | 0.0148 | 0.0319 | 0.0349 | 0.0518 |
| Tianjin | 0.0134 | 0.0188 | 0.0290 | 0.0408 | 0.0140 | 0.0181 | 0.0276 | 0.0297 |
| Xizang | 0.0143 | 0.0177 | 0.0178 | 0.0219 | 0.0140 | 0.0152 | 0.0171 | 0.0236 |
| Xinjiang | 0.0149 | 0.0197 | 0.0229 | 0.0266 | 0.0153 | 0.0202 | 0.0231 | 0.0283 |
| Yunnan | 0.0146 | 0.0235 | 0.0286 | 0.0398 | 0.0165 | 0.0232 | 0.0283 | 0.0368 |
| Zhejiang | 0.0145 | 0.0203 | 0.0284 | 0.0358 | 0.0146 | 0.0200 | 0.0311 | 0.0318 |
| Chongqing | 0.0113 | 0.0158 | 0.0221 | 0.0268 | 0.0129 | 0.0165 | 0.0237 | 0.0308 |
China’s agricultural industry resilience index optimized based on XGBoost model.
Accordingly, this step addresses the first concern raised in the Introduction: conventional index-construction approaches may struggle to maintain robustness and plausibility in the presence of high-dimensional data and extreme values. Having obtained the refined RCAI, we next use it to identify key drivers and interpret the mechanisms underlying resilience dynamics.
4.4 Driving mechanisms of RCAI
To address the black-box nature of machine-learning models, we employ SHAP to identify the key determinants of RCAI and to interpret their underlying mechanisms. Figure 6 presents (a) the SHAP feature-importance (contribution) plot and (b) the SHAP summary plot. As shown in Figure 6a, IAFA (agricultural fixed-asset investment) accounts for 30.6% of the total contribution and ranks first among all indicators, indicating that IAFA plays a pivotal role in shaping RCAI and is the most influential driver of variation in the resilience of China’s agricultural industry. A plausible explanation is that fixed-asset investment accelerates the construction and upgrading of agricultural infrastructure, thereby directly strengthening system-wide risk resistance (Zhou et al., 2025). In particular, investment in irrigation and water conservancy facilities can mitigate yield losses from droughts and floods, while investment in high-standard farmland construction enhances overall production capacity (). Together, these investments improve production stability and continuity and reduce production disruptions induced by external shocks such as natural hazards and market fluctuations.
Figure 6
PCCE and PCIR (rural residents’ expenditure and income) are also highly influential, contributing 14.3 and 10.4%, respectively. Increases in household income and consumption capacity enhance farmers’ ability to finance production inputs and facilitate technology adoption and innovation. Higher rural income enables greater investment in modern machinery, improved seed varieties, and other productivity-enhancing inputs, and increases both willingness and capacity to adopt new technologies, thereby improving efficiency and output quality. Rising income may also strengthen risk-management capacity by supporting agricultural insurance uptake and encouraging income diversification, which reduces exposure to shocks affecting a single production activity.
Other indicators also contribute substantially to RCAI. Ranked by contribution, GOGA (land productivity) accounts for 10.2%, directly capturing output efficiency per unit of land. Higher land productivity implies greater agricultural output under the same resource endowment, which not only strengthens economic performance but also enhances the capacity to absorb external shocks. Improvements in land productivity are typically associated with technological progress and more efficient resource use, supporting a transition toward more efficient and sustainable agricultural development. DRS (disaster relief expenditure for rural residents) contributes 6.9% and reflects public financial assistance provided in response to disaster-related agricultural losses. Such support can help affected households resume production more rapidly and reduce income losses associated with production interruptions. TIL (transportation infrastructure; 6.1%) and PTRG (postal and telecommunications service volume; 5.0%) further highlight the importance of connectivity and information flows. Under natural hazards or market fluctuations, better transport infrastructure facilitates timely resource mobilization and stabilizes production and distribution. Higher postal and telecommunications activity implies improved access to market, technical, and policy information, enabling producers to make more informed decisions.
The SHAP summary plot in Figure 6b further illustrates the direction of each feature’s effect on RCAI. Each point represents an observation, with color indicating feature value; SHAP values above (below) zero imply positive (negative) contributions relative to the baseline prediction (; ). Overall, IAFA, PCCE, PCIR, GOGA, DRS, TIL, and PTRG exhibit predominantly positive effects, indicating a generally positive association between these indicators and RCAI, though the magnitude of this effect varies nonlinearly. Taken together, improvements in these factors can enhance production efficiency and quality, strengthen disaster recovery capacity, improve circulation efficiency, and promote information diffusion and market integration, thereby raising the resilience of China’s agricultural industry. Notably, some observations display negative SHAP values, suggesting the presence of threshold effects or other nonlinearities, which motivates a more detailed variable-specific investigation in the subsequent analysis.
We further select the six most influential features and use SHAP dependence plots to examine the complex nonlinear relationships between these factors and RCAI (Figure 7). The analysis reveals that the enhancement of agricultural resilience is governed by distinct structural thresholds, where different factors specifically activate the system’s capacities for resistance, adaptation, and innovation in non-uniform ways.
Figure 7
Agricultural Fixed Asset Investment (IAFA) demonstrates characteristics of increasing marginal returns. The dependence plot indicates that below a threshold of 475.20, the contribution of capital investment to resilience is negligible, likely because low-level investments are absorbed by basic depreciation and maintenance. However, surpassing this inflection point triggers a qualitative leap in system capability (). High-intensity investment serves as a dual driver: it fortifies resistance capacity through the construction of high-standard farmland and robust infrastructure, while simultaneously unlocking innovation capacity by providing the material basis for technological upgrading and equipment renewal (Jiang and Peng, 2026).
Similarly, rural consumption (PCCE) and income (PCIR) exhibit threshold behaviors consistent with the relaxation of liquidity constraints. Both variables show a distinct “hockey-stick” trajectory, with resilience gains accelerating sharply only after exceeding thresholds of 5653.60 and 5944.06, respectively. This suggests that below these levels, household resources are primarily allocated to subsistence. Once income crosses this safety threshold, the financial buffer allows farmers to diversify livelihoods and adopt climate-smart practices, thereby significantly boosting their adaptation capacity to market and climatic volatility, as well as supporting post-disaster recovery ().
Transportation Infrastructure (TIL) displays a pattern indicative of network externalities. The impact on resilience remains limited until the index reaches 11.94, implying that fragmented road networks contribute little to systemic stability. Surpassing this critical density enables the rapid release of resilience benefits. A connected network coordinates the system’s defenses: it enhances adaptation capacity by ensuring efficient market circulation during fluctuations and strengthens resistance capacity by facilitating the rapid mobilization of emergency resources during extreme events (; ).
In contrast, Land Productivity (GOGA) and Disaster Relief Subsidies (DRS) show signs of diminishing returns or passive effects. GOGA exhibits a ceiling effect, indicating that relying solely on yield maximization provides only baseline resistance but cannot sustain long-term resilience growth without structural transformation. Meanwhile, DRS functions primarily as an ex-post compensatory mechanism. While positively correlated with RCAI, it supports short-term recovery but contributes less to active, ex-ante adaptive or innovative capabilities compared to proactive investments.
Overall, these findings provide a supplement to the traditional linear narrative about the construction of resilience. They suggest that resilience enhancement is not a continuous linear accumulation but a step-wise evolution. Achieving higher resilience requires key capacities—specifically capital stock, financial liquidity, and physical connectivity—to accumulate beyond critical tipping points. Only by crossing these thresholds can the agricultural system structurally activate its intrinsic abilities to resist shocks, adapt to changes, and innovate for the future.
5 Robustness checks
5.1 Alternative measurement of RCAI
To assess the robustness of the empirical results, we reconstruct the resilience index using two alternative composite methods—entropy–TOPSIS and entropy–VIKOR—and then refit XGBoost using the newly computed RCAI as the target variable. The results are reported in Table 4. Under the two alternative indices, the test-set R2 values are 0.9342 and 0.9536, respectively, indicating that model fit remains strong after replacing the index-construction method. The corresponding test-set RMSE values are 0.0001 and 0.0248, suggesting that prediction errors remain low. In addition, five-fold cross-validation yields mean MAE values of and 0.0136, confirming that the model performs well when applied to the full dataset.
Table 4
| Method | Training set | Testing set | ||||
|---|---|---|---|---|---|---|
| MAE | RMSE | R2 | MAE | RMSE | R2 | |
| Entropy weight-topsis-xgboost | 5.0680 × 10−5 | 7.4570 × 10−5 | 0.9925 | 9.5149 × 10−5 | 0.0001 | 0.9342 |
| Entropy weight-vikor-xgboost | 0.0048 | 0.0065 | 0.9983 | 0.0202 | 0.0248 | 0.9536 |
Training results of XGBoost model after replacing the index system measurement method.
5.2 Feature screening
We further examine whether the results are sensitive to indicator selection. Based on the feature-importance ranking from the Pearson correlation analysis, we remove indicators with correlations below 0.3, reconstruct RCAI, and refit the XGBoost model. The resulting MAE (0.0016) and RMSE (0.0905) are lower than those of the baseline specification, and R2 increases to 0.9553, indicating improved predictive accuracy and overall fit. These findings suggest that the main results are not driven by indicator-selection bias.
6 Conclusions and policy implications
6.1 Conclusion
This study measures and evaluates the resilience of China’s agricultural industry over the period 2000–2022, refines the resilience index using XGBoost, and employs SHAP to identify key drivers and nonlinear relationships. The main findings are as follows.
First, the resilience of China’s agricultural industry exhibits pronounced spatiotemporal heterogeneity. It shows an overall upward trajectory over time, alongside substantial regional disparities. The evolution of resilience follows a clear pattern of “fragmentation–regional clustering–spatial contiguity.” Driven jointly by policy reforms, technological upgrading, and agricultural structural adjustment, China’s overall capacity to withstand risks has improved markedly. High-resilience regions are concentrated in North China and the southeastern coastal provinces, whereas resilience improvement is relatively limited in the northwest due to constraints such as climate and resource endowments. Among the three dimensions, resistance and adaptation capacity contribute to gradual resilience enhancement, while innovation capacity acts as the key force behind resilience upgrading.
Second, comparative evaluation across multiple machine-learning models indicates that XGBoost demonstrates robust performance in fitting and predicting the relationship between RCAI and the underlying indicator system. Using the trained XGBoost model to reconstruct the index yields a refined RCAI that is more coherent and reliable. This refinement mitigates shortcomings of conventional index-construction methods in handling high-dimensional structured data and provides a more robust treatment of extreme observations, thereby reducing the risk of overall measurement bias induced by outliers. Consequently, the proposed “index construction–XGBoost–SHAP” framework not only improves measurement plausibility but also addresses the interpretability challenge of machine-learning models, offering strong potential for broader application in other evaluation and composite-index studies.
Third, the explainable machine-learning framework effectively identifies key determinants and nonlinearities of RCAI. SHAP results show that agricultural fixed-asset investment, rural residents’ income and expenditure, transportation infrastructure, and disaster relief expenditure contribute most to RCAI. These factors improve regional agricultural infrastructure, production capacity, and adaptive capability, thereby promoting resilience enhancement. At the same time, the effects of several drivers display clear threshold behavior, indicating that resilience gains may accelerate only after certain capacity levels are reached.
6.2 Policy implications
Based on the identification of key drivers and threshold mechanisms, this study proposes three targeted policy implications to enhance the resilience of China’s agricultural industry.
First, investment strategies should focus on reaching the “critical mass” of capital accumulation to trigger scale effects. Since agricultural fixed-asset investment exhibits a distinct threshold effect, scattered or insufficient investments may fail to generate observable resilience gains. Policymakers should prioritize high-intensity investments in key infrastructure—such as high-standard farmland and water conservancy projects—ensuring that regional investment levels surpass the effective threshold to trigger a qualitative leap in resistance and innovation capacities.
Second, enhancing the financial adaptability of rural households is essential for bottom-up resilience. The findings reveal that rural income and consumption must cross specific safety thresholds to unlock significant improvements in adaptation capacity. Therefore, policies should go beyond post-disaster relief to focus on ex-ante capacity building. This includes diversifying rural income sources and strengthening financial support systems, enabling farmers to overcome liquidity constraints and invest in resilience-enhancing technologies and diversified livelihoods.
Third, differentiated resilience-building pathways should be adopted based on regional endowments. Recognizing the “East–West” disparity, the eastern regions should leverage their advantages to foster transformation and innovation, focusing on digital agriculture and structural upgrading. Conversely, the western regions, constrained by ecological fragility, should prioritize resistance and adaptation. Interventions in these areas should focus on overcoming binding constraints (e.g., water scarcity) through region-specific technologies (e.g., water-saving irrigation) rather than blindly replicating the capital-intensive models of the eastern plains.
Statements
Data availability statement
The datasets presented in this study can be found in online repositories. The names of the repository/repositories and accession number(s) can be found in the article/Supplementary material.
Author contributions
DZ: Data curation, Methodology, Writing – original draft, Writing – review & editing. JZ: Data curation, Writing – review & editing. FZ: Writing – original draft. ZL: Writing – review & editing. HH: Funding acquisition, Supervision, Writing – review & editing.
Funding
The author(s) declared that financial support was received for this work and/or its publication. This paper was supported by Jiangsu Province Key Research and Development Program [No. BE2023352].
Conflict of interest
The author(s) declared that this work was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.
Generative AI statement
The author(s) declared that Generative AI was not used in the creation of this manuscript.
Any alternative text (alt text) provided alongside figures in this article has been generated by Frontiers with the support of artificial intelligence and reasonable efforts have been made to ensure accuracy, including review by the authors wherever possible. If you identify any issues, please contact us.
Publisher’s note
All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article, or claim that may be made by its manufacturer, is not guaranteed or endorsed by the publisher.
Supplementary material
The Supplementary material for this article can be found online at: https://www.frontiersin.org/articles/10.3389/fsufs.2026.1767684/full#supplementary-material
SUPPLEMENTARY APPENDIX A1Dynamic evolution trend of resistance capacity from 2000 to 2022.
SUPPLEMENTARY APPENDIX A2Dynamic evolution trend of adaptation capacity from 2000 to 2022.
SUPPLEMENTARY APPENDIX A3Dynamic evolution trend of innovation capacity from 2000 to 2022.
References
1
AlamS. M. K.LiP.RahmanM.FidaM.ElumalaiV. (2025). Key factors affecting groundwater nitrate levels in the Yinchuan Region, Northwest China: Research using the eXtreme Gradient Boosting (XGBoost) model with the SHapley Additive exPlanations (SHAP) method. Environ. Pollut.364, 125336 doi: 10.1016/j.envpol.2024.125336
2
AltieriM. A.NichollsC. I. (2017). The adaptation and mitigation potential of traditional agriculture in a changing climate. Clim. Chang.140, 33–45. doi: 10.1007/s10584-013-0909-y
3
AtheyS.ImbensG. W. (2019). Machine learning methods that economists should know about. Annu. Rev. Econ.11, 685–725. doi: 10.1146/annurev-economics-080217-053433
4
BelhadiA.KambleS.SubramanianN.SinghR. K.VenkateshM. (2024). Digital capabilities to manage agri-food supply chain uncertainties and build supply chain resilience during compounding geopolitical disruptions. Int. J. Oper. Prod. Manag.44, 1914–1950. doi: 10.1108/IJOPM-11-2022-0737
5
BerardiG.GreenR.HammondB. (2011). Stability, sustainability, and catastrophe: applying resilience thinking to U. S. agriculture. Hum. Ecol. Rev.18, 115–125. Available online at: https://cedar.wwu.edu/envs_facpubs/3/
6
BizikovaL.LarkinP.MitchellS.WaldickR. (2019). An indicator set to track resilience to climate change in agriculture: a policy-maker’s perspective. Land Use Policy82, 444–456. doi: 10.1016/j.landusepol.2018.11.057
7
BolsonN.YutkinM.ReesW.PatzekT. (2022). Resilience rankings and trajectories of world’s countries. Ecol. Econ.195:107383. doi: 10.1016/j.ecolecon.2022.107383
8
BuxC.FellnerJ.SeyhanD.AmicarelliV. (2024). Measurement of fertilizer flows to advance circularity and resilience to climate change. Curr. Opin. Green Sustain. Chem.50:100971. doi: 10.1016/j.cogsc.2024.100971
9
CarterC.CuiX.GhanemD.MérelP. (2018). “Identifying the economic impacts of climate change on agriculture” Annual Rev. Res. Eco. 10, 361–380. doi: 10.1146/annurev-resource-100517-022938
10
CelliniR.TorrisiG. (2014). Regional resilience in Italy: a very long-run analysis. Reg. Stud.48, 1779–1796. doi: 10.1080/00343404.2013.861058
11
ChenY.SunC.ZhangX. (2025). Analyzing and forecasting China’s financial resilience: measurement techniques and identification of key influencing factors. J. Financ. Stab.76:101372. doi: 10.1016/j.jfs.2025.101372
12
ChenT.ZhangL.WenM.YuanW.LinW. (2025). Can the development of agricultural insurance promote the resilience of agricultural economy? The dynamic mechanisms of the digital economy development. Int. Rev. Econ. Finance103:104386. doi: 10.1016/j.iref.2025.104386
13
ChengW.LiY.ZuoW.DuG.StannyM. (2024). Spatio-temporal detection of agricultural disaster vulnerability in the world and implications for developing climate-resilient agriculture. Sci. Total Environ.928:172412. doi: 10.1016/j.scitotenv.2024.172412,
14
ChengZ.ZhuZ.ZhangH.LiuH. (2023). Does early disaster exposure affect household agricultural income? Evidence from China. Int. J. Disaster Risk Reduct.91:103702. doi: 10.1016/j.ijdrr.2023.103702
15
DasU.AnsariM.GhoshS.PatnaikN.MajiS. (2025). Determinants of farm household resilience and its impact on climate-smart agriculture performance: insights from coastal and non-coastal ecosystems in Odisha, India. Agric. Syst.227:104370. doi: 10.1016/j.agsy.2025.104370
16
DavisA.HugginsD.ReganoldJ. (2023). Linking soil health and ecological resilience to achieve agricultural sustainability. Front. Ecol. Environ.21, 131–139. doi: 10.1002/fee.2594
17
DongY.QiC.GuiC.YangY. (2025). Spatial spillover effects of digital infrastructure on food system resilience: an analysis incorporating threshold effects and spatial decay boundaries. Foods14:1484. doi: 10.3390/foods14091484,
18
dos SantosE. A.Piedra-BonillaE. B.BarrosoG. M.SilvaJ. V.HejaziradS. P.dos SantosJ. B. (2024). Agricultural resilience: impact of extreme weather events on the adoption of rural insurance in Brazil. Glob. Environ. Change89:102938. doi: 10.1016/j.gloenvcha.2024.102938
19
FangD.ChenJ.WangS.ChenB. (2024). Can agricultural mechanization enhance the climate resilience of food production? Evidence from China. Appl. Energy373:123928. doi: 10.1016/j.apenergy.2024.123928
20
GaoF.XieJ.XiongX.WangL.ChangX. (2025). Prediction of peak particle vibration velocity based on intelligent optimization algorithm combined with XGBoost. Expert Syst. Appl.280:127654. doi: 10.1016/j.eswa.2025.127654
21
GascónJ.MamaniK. S. (2022). Community-based tourism, peasant agriculture and resilience in the face of COVID-19 in Peru. J. Agrar. Change22, 362–377. doi: 10.1111/joac.12447,
22
GrecoS.IshizakaA.TasiouM.TorrisiG. (2019). On the methodological framework of composite indices: a review of the issues of weighting, aggregation, and robustness. Soc. Indic. Res.141, 61–94. doi: 10.1007/s11205-017-1832-9
23
GuoJ.XiaoD.SunX.GuoF.XueS.FanL. (2024). Drought risk assessment on arid region under different socioeconomic scenarios: a case of loess plateau, China. Ecol. Indic.167:112728. doi: 10.1016/j.ecolind.2024.112728
24
HossainS.KashemS. B. (2025). Transportation resilience and food security: developing a conceptual framework through literature review. Front. Sustain. Food Syst.9:1569474. doi: 10.3389/fsufs.2025.1569474
25
HuangH.LiR.WangW.QinT.ZhouR.FanW. (2023). Concepts, models, and indicator systems for urban safety resilience: a literature review and an exploration in China. J. Saf. Sci. Resil.4, 30–42. doi: 10.1016/j.jnlssr.2022.10.003
26
HugginsR.ThompsonP. (2015). Local entrepreneurial resilience and culture: the role of social values in fostering economic recovery. Camb. J. Reg. Econ. Soc.8, 313–330. doi: 10.1093/cjres/rsu035
27
Ifejika SperanzaC. (2013). Buffer capacity: capturing a dimension of resilience to climate change in African smallholder agriculture. Reg. Environ. Chang.13, 521–535. doi: 10.1007/s10113-012-0391-5
28
JiangM.PengJ. (2026). Mechanisms and impacts of digital-agricultural integration on grain production resilience. Cogent Food Agric.12:2604870. doi: 10.1080/23311932.2025.2604870
29
JiaoL.LuoZ.LuH.HuoX.WuL.ZhangY. (2025). Resilience quantification of agricultural water infrastructure under extreme climate events: a Bayesian network approach. J. Hydrol. Reg. Stud.61:102716. doi: 10.1016/j.ejrh.2025.102716
30
JingX.TaoS.HuH.SunM.WangM. (2024). Spatio-temporal evaluation of ecological security of cultivated land in China based on DPSIR-entropy weight TOPSIS model and analysis of obstacle factors. Ecol. Indic.166:112579. doi: 10.1016/j.ecolind.2024.112579
31
KimY.KimY. (2022). Explainable heat-related mortality with random forest and SHapley additive exPlanations (SHAP) models. Sustain. Cities Soc.79:103677. doi: 10.1016/j.scs.2022.103677
32
LankfordB.PringleC.McCoshJ.ShabalalaM.HessT.KnoxJ. W. (2023). Irrigation area, efficiency and water storage mediate the drought resilience of irrigated agriculture in a semi-arid catchment. Sci. Total Environ.859:160263. doi: 10.1016/j.scitotenv.2022.160263,
33
LeeS.ParkJ.KimN.LeeT.QuagliatoL. (2023). Extreme gradient boosting-inspired process optimization algorithm for manufacturing engineering applications. Mater. Des.226:111625. doi: 10.1016/j.matdes.2023.111625
34
LiW.DongS.LinH.LiF.ChengH.JinZ.et al. (2023). Vulnerability of farmers and herdsmen households in Inner Mongolian plateau to arid climate disasters and their development model. J. Clean. Prod.402:136853. doi: 10.1016/j.jclepro.2023.136853
35
LiY.HeZ. (2025). The impact of agricultural total factor productivity and green finance development on ecological resilience. Financ. Res. Lett.84:107829. doi: 10.1016/j.frl.2025.107829
36
LiuW.LiuS.LiuS. (2024). Coupling coordination analysis of population, economy and grain in major grain-producing counties. Heliyon10:e23869. doi: 10.1016/j.heliyon.2023.e23869,
37
LüY.WangY.YinL.LüD.WangX. (2023). Climate and scale are critical for illustrating the links between carbon and water services across Qinghai-Tibet plateau. Catena231:107379. doi: 10.1016/j.catena.2023.107379
38
LundbergS. M.LeeS.-I. (2017). “A unified approach to interpreting model predictions” in Proceedings of the 31st international conference on neural information processing systems (Red Hook, NY, USA: Curran Associates Inc.), 4768–4777.
39
LuoM.JiaX.ZhaoY.ZhangP.ZhaoM. (2024). Ecological vulnerability assessment and its driving force based on ecological zoning in the loess plateau, China. Ecol. Indic.159:111658. doi: 10.1016/j.ecolind.2024.111658
40
MartinR. (2012). Regional economic resilience, hysteresis and recessionary shocks. J. Econ. Geogr.12, 1–32. doi: 10.1093/jeg/lbr019
41
MartinR.MittalR.MalikV.JeribiF.SiddiquiS.HossainM.et al. (2024). XAI-powered smart agriculture framework for enhancing food productivity and sustainability. IEEE Access12, 168412–168427. doi: 10.1109/ACCESS.2024.3492973
42
MartinR.SunleyP. (2015). On the notion of regional economic resilience: conceptualization and explanation. J. Econ. Geogr.15, 1–42. doi: 10.1093/jeg/lbu015
43
MeuwissenM. P. M.FeindtP. H.SpiegelA.TermeerC. J. A. M.MathijsE.de MeyY.et al. (2019). A framework to assess the resilience of farming systems. Agric. Syst.176:102656. doi: 10.1016/j.agsy.2019.102656
44
MnukwaM. L.MdodaL.MudharaM. (2025). Assessing the adoption and impact of climate-smart agricultural practices on smallholder maize farmers’ livelihoods in sub-Saharan Africa: a systematic review. Front. Sustain. Food Syst.9:1543805. doi: 10.3389/fsufs.2025.1543805
45
MthembuB. E.CeleT.MkhizeX. (2025). Climate change impacts on agricultural infrastructure and resources: insights from communal land farming systems. Land14:1150. doi: 10.3390/land14061150
46
PetersD. P. C.HavstadK. M.CushingJ.TweedieC.FuentesO.Villanueva-RosalesN. (2014). Harnessing the power of big data: infusing the scientific method with machine learning to transform ecology. Ecosphere5:art67. doi: 10.1890/ES13-00359.1
47
PinichkaC.ChotpantaratS.ChoK. H.SiriwongW. (2025). Comparative analysis of SWAT and SWAT coupled with XGBoost model using Optuna hyperparameter optimization for nutrient simulation: a case study in the Upper Nan River basin, Thailand. J. Environ. Manag.388:126053. doi: 10.1016/j.jenvman.2025.126053,
48
QuandtA. (2023). “You have to be resilient”: producer perspectives to navigating a changing agricultural system in California, USA. Agric. Syst.207:103630. doi: 10.1016/j.agsy.2023.103630
49
RazaA.RazzaqA.MehmoodS. S.ZouX.ZhangX.LvY.et al. (2019). Impact of climate change on crops adaptation and strategies to tackle its outcome: a review. Plants8:34. doi: 10.3390/plants8020034,
50
RoseA. (2007). Economic resilience to natural and man-made disasters: Multidisciplinary origins and contextual dimensions. Environ. Hazards7, 383–398. doi: 10.1016/j.envhaz.2007.10.001,
51
SuiJ.DaiY. (2025). Analysis of conservation practices for black soil based on organic matter and nitrogen contents in the black soil region of Northeast China. Sci. Rep.15:23989. doi: 10.1038/s41598-025-09426-9,
52
SundstromS. M.AngelerD. G.AllenC. R. (2023). Resilience theory and coerced resilience in agriculture. Agric. Syst.206:103612. doi: 10.1016/j.agsy.2023.103612
53
SundstromS. M.AwadaT.BennettE. M.BestelmeyerB.HodbodJ.PachecoA.et al. (2025). Addressing key issues and knowledge gaps in resilience science for agriculture. Agric. Syst.227:104335. doi: 10.1016/j.agsy.2025.104335
54
SzymanskaE. J.DziwulskiM. (2021). The impact of fixed asset investments on the productivity of production factors in agriculture. Eur. Res. Stud. J.1, 382–394. doi: 10.35808/ersj/1968
55
TangF.ZengP.GuoY.ShenY.WangL.LiuK.et al. (2025). Decoding the spatiotemporal dynamics and driving mechanisms of ecological resilience in the Beijing-Tianjin-Hebei urban agglomeration: a deep learning approach. Urban Clim.61:102436. doi: 10.1016/j.uclim.2025.102436
56
WangX.GuoH.LiY.HuangS. (2025). Beyond threats: extreme heatwaves and economic resilience in China. Financ. Res. Lett.71:106427. doi: 10.1016/j.frl.2024.106427
57
WangR.LuZ.TangC. (2024). How does urbanisation affect agricultural economic resilience? Evidence from China. Agric. Econ. (Zemed. Ekon.)70, 513–526. doi: 10.17221/207/2024-AGRICECON
58
WangY.WangJ.WangX. (2020). COVID-19, supply chain disruption and China’s hog market: a dynamic analysis. China Agric. Econ. Rev.12, 427–443. doi: 10.1108/caer-04-2020-0053
59
WangS.ZhouY.YouX.WangB.DuL. (2023). Quantification of the antagonistic and synergistic effects of Pb2+, Cu2+, and Zn2+ bioaccumulation by living Bacillus subtilis biomass using XGBoost and SHAP. J. Hazard. Mater.446:130635. doi: 10.1016/j.jhazmat.2022.130635,
60
WardF. A. (2022). Enhancing climate resilience of irrigated agriculture: a review. J. Environ. Manag.302:114032. doi: 10.1016/j.jenvman.2021.114032,
61
WuY.CaiD.GuS.JiangN.LiS. (2025). Compressive strength prediction of sleeve grouting materials in prefabricated structures using hybrid optimized XGBoost models. Constr. Build. Mater.476:141319. doi: 10.1016/j.conbuildmat.2025.141319
62
XiaoW.LvX.ZhaoY.SunH.LiJ. (2020). Ecological resilience assessment of an arid coal mining area using index of entropy and linear weighted analysis: a case study of Shendong coalfield, China. Ecol. Indic.109:105843. doi: 10.1016/j.ecolind.2019.105843
63
XieH.WangB. (2017). An empirical analysis of the impact of agricultural product price fluctuations on China’s grain yield. Sustainability9:906. doi: 10.3390/su9060906
64
XieS.ZhangJ.LiX.XiaX.ChenZ. (2024). The effect of agricultural insurance participation on rural households’ economic resilience to natural disasters: evidence from China. J. Clean. Prod.434:140123. doi: 10.1016/j.jclepro.2023.140123
65
XueX.GaoJ.XuS. (2025). The impact and mechanism of digital economy on agricultural development resilience: evidence from China. Front. Sustain. Food Syst.9:1574461. doi: 10.3389/fsufs.2025.1574461
66
YangC.ChenM.YuanQ. (2021). The application of XGBoost and SHAP to examining the factors in freight truck-related crashes: an exploratory analysis. Accid. Anal. Prev.158:106153. doi: 10.1016/j.aap.2021.106153,
67
YangY.FengP.GuoJ. (2025). How does agricultural resilience in China vary by region?Ecol. Indic.174:113513. doi: 10.1016/j.ecolind.2025.113513
68
YangB.ZhaoJ.ZhaoH. (2022). A robust method for avoiding rank reversal in the TOPSIS. Comput. Ind. Eng.174:108776. doi: 10.1016/j.cie.2022.108776
69
YeM.ZhuL.LiX.KeY.HuangY.ChenB.et al. (2023). Estimation of the soil arsenic concentration using a geographically weighted XGBoost model based on hyperspectral data. Sci. Total Environ.858:159798. doi: 10.1016/j.scitotenv.2022.159798,
70
YinS.ShiR.WuN.YangJ. (2025). Measuring the impact of technological innovation on urban resilience through explainable machine learning: a case study of the Yangtze River Delta region, China. Sustain. Cities Soc.127:106457. doi: 10.1016/j.scs.2025.106457
71
YuC.HuangX.ChenH.HuangG.NiS.WrightJ.et al. (2018). Assessing the impacts of extreme agricultural droughts in China under climate and socioeconomic changes. Earths Future6, 689–703. doi: 10.1002/2017EF000768
72
YuX.SchweikertK.LiY.MaJ.DoluschitzR. (2023). Farm size, farmers’ perceptions and chemical fertilizer overuse in grain production: evidence from maize farmers in northern China. J. Environ. Manag.325:116347. doi: 10.1016/j.jenvman.2022.116347,
73
YuanY.GuoW.TangS.ZhangJ. (2024). Effects of patterns of urban green-blue landscape on carbon sequestration using XGBoost-SHAP model. J. Clean. Prod.476:143640. doi: 10.1016/j.jclepro.2024.143640
74
ZahmF.ViauxP.VilainL.GirardinP.MouchetC. (2008). Assessing farm sustainability with the IDEA method – from the concept of agriculture sustainability to case studies on farms. Sustain. Dev.16, 271–281. doi: 10.1002/sd.380
75
ZampieriM.WeissteinerC. J.GrizzettiB.ToretiA.van den BergM.DentenerF. (2020). Estimating resilience of crop production systems: from theory to practice. Sci. Total Environ.735:139378. doi: 10.1016/j.scitotenv.2020.139378,
76
ZengH.ZhangB.YanY.HuangC. (2025). How pilot free trade zones affect food system resilience: quasi-natural experiment evidence from China. Front. Sustain. Food Syst.9:1460485. doi: 10.3389/fsufs.2025.1460485
77
ZhangH.LoaicigaH. A.OkujeniA.LiuJ.TanM.SauterT. (2025). Assessing the impact of extreme climate events on European gross primary production. Agric. For. Meteorol.362:110374. doi: 10.1016/j.agrformet.2024.110374
78
ZhangQ.-Q.MaZ.-R.CaiY.-Y.LiH.-R.YingG.-G. (2021). Agricultural plastic pollution in China: generation of plastic debris and emission of phthalic acid esters from agricultural films. Environ. Sci. Technol.55, 12459–12470. doi: 10.1021/acs.est.1c04369,
79
ZhouC.ChenH.TuY. (2025). Extreme weather risks, agricultural investment, and agricultural economic resilience. Financ. Res. Lett.86:108326. doi: 10.1016/j.frl.2025.108326
80
ZhouK.LiuB.FanJ. (2020). Post-earthquake economic resilience and recovery efficiency in the border areas of the Tibetan plateau: a case study of areas affected by the Wenchuan Ms 8.0 earthquake in Sichuan, China in 2008. J. Geogr. Sci.30, 1363–1381. doi: 10.1007/s11442-020-1786-8
Summary
Keywords
agricultural industry, machine learning, resilience, SHAP analysis, XGBoost
Citation
Zhou D, Zhang J, Zou F, Li Z and Huan H (2026) Optimization and driving mechanisms of agricultural resilience measurement based on XGBoost-SHAP model: Evidence from China. Front. Sustain. Food Syst. 10:1767684. doi: 10.3389/fsufs.2026.1767684
Received
15 December 2025
Revised
04 January 2026
Accepted
12 January 2026
Published
09 February 2026
Volume
10 - 2026
Edited by
Jiawei Liu, Xi’an Jiaotong-Liverpool University, China
Reviewed by
Yingjie Dai, Northeast Agricultural University, China
Jingting Yu, Lanzhou University, China
Updates
Copyright
© 2026 Zhou, Zhang, Zou, Li and Huan.
This is an open-access article distributed under the terms of the Creative Commons Attribution License (CC BY). The use, distribution or reproduction in other forums is permitted, provided the original author(s) and the copyright owner(s) are credited and that the original publication in this journal is cited, in accordance with accepted academic practice. No use, distribution or reproduction is permitted which does not comply with these terms.
*Correspondence: Honghua Huan, 20230048@jaas.ac.cn
Disclaimer
All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article or claim that may be made by its manufacturer is not guaranteed or endorsed by the publisher.