Nonlinear Threshold Effects of Agricultural Inputs on Crop Production in China: Insights from XGBoost-SHAP and Spatiotemporal Analysis
Abstract
1. Introduction
2. Materials and Methods
2.1. Materials
2.1.1. Variable Selection
2.1.2. Data Description
2.1.3. Data Preprocessing
2.2. Methods
2.2.1. XGBoost Model
2.2.2. SHAP Model
3. Results
3.1. Spatiotemporal Patterns Analysis
3.1.1. Time Series Analysis
3.1.2. Spatial Pattern Analysis
3.2. Nonlinear Impact Analysis
4. Discussion
4.1. Agricultural Inputs and Crop Production in China Exhibit Significant Spatiotemporal Heterogeneity
4.2. The XGBoost-SHAP Framework Provides an Effective Approach for Identifying Nonlinear Input-Response Patterns Across Crops
4.3. It Is Both Necessary and Valuable to Conduct Comparative Analyses of How Different Crops Respond to Varying Input Thresholds
4.4. Policy Implications
5. Conclusions and Future Research
5.1. Conclusions
- (1)
- China’s agricultural development during the study period featured two phases. Pre-2015, it followed a high-input, high-output growth model with concurrent increases in material input and crop yields. Post-2016, a green transformation and high-quality development phase began. Policy-driven, chemical fertilizer and pesticide use declined after an inflection point, while agricultural machinery power continued to rise. This shift marks a transition from a factor-driven to an efficiency-focused model, balancing quantity and quality. However, the yield trends of the three major crops show distinct patterns. Cereal yields steadily increased, soybean yields exhibited a V-shaped recovery, and tuber yields fluctuated downward.
- (2)
- Spatial agglomeration of both agricultural material inputs and crop production has intensified. Total agricultural machinery power is concentrated in northern China’s flat terrain, suiting large-scale operations. Chemical fertilizer and pesticide application centers are historically in eastern China’s intensive farming regions. Although overall input use has declined, reliance on high-input practices persists. Agricultural plastic films are mainly used in northern China’s arid and cold regions. Core cereal areas are stable in the Northeast Plain and the Huang-Huai-Hai Plain; soybeans are concentrated in Northeast China; and tuber cultivation is concentrated in Southwest China’s mountainous and hilly areas.
- (3)
- The relationship between agricultural material inputs and crop yields is nonlinear and crop-specific, with evident threshold effects. For cereals, total agricultural machinery power is the most important predictor, followed by fertilizer application, pesticide use, and plastic-film use; its SHAP contribution turns positive at approximately 28.34 million kW and then gradually levels off. For soybeans, agricultural plastic-film use ranks first, followed by fertilizer application, pesticide use, and machinery power; its contribution turns negative beyond approximately 112.4 thousand tons. For tuber crops, fertilizer application is the dominant predictor, followed by pesticide use, machinery power, and plastic-film use; its contribution turns negative beyond approximately 1.35 million tons. These results indicate that input regulation should be differentiated by crop type and threshold range, and that the thresholds identified in this study should be interpreted as model-based reference points requiring local agronomic calibration rather than as uniform national standards.
5.2. Limitations and Future Research
Supplementary Materials
Author Contributions
Funding
Data Availability Statement
Conflicts of Interest
References
- Campbell, B.M.; Beare, D.J.; Bennett, E.M.; Hall-Spencer, J.M.; Ingram, J.S.I.; Jaramillo, F.; Ortiz, R.; Ramankutty, N.; Sayer, J.A.; Shindell, D. Agriculture Production as a Major Driver of the Earth System Exceeding Planetary Boundaries. Ecol. Soc. 2017, 22, 8. [Google Scholar] [CrossRef]
- Velazquez, J.A.; Negrutiu, I. Agriculture and Global Physicochemical Deregulation: Planetary Boundaries That Challenge Planetary Health. Lancet Planet. Health 2019, 3, E10–E11. [Google Scholar] [CrossRef] [PubMed]
- Jin, S.; Ma, H.; Huang, J.; Hu, R.; Rozelle, S. Productivity, Efficiency and Technical Change: Measuring the Performance of China’s Transforming Agriculture. J. Product. Anal. 2010, 33, 191–207. [Google Scholar] [CrossRef]
- Le, C.; Zha, Y.; Li, Y.; Sun, D.; Lu, H.; Yin, B. Eutrophication of Lake Waters in China: Cost, Causes, and Control. Environ. Manag. 2010, 45, 662–668. [Google Scholar] [CrossRef] [PubMed]
- Zhan, X.; Shao, C.; He, R.; Shi, R. Evolution and Efficiency Assessment of Pesticide and Fertiliser Inputs to Cultivated Land in China. Int. J. Environ. Res. Public Health 2021, 18, 3771. [Google Scholar] [CrossRef] [PubMed]
- Yin, G.; Liu, L.; Yuan, C. Assessing Environmental Risks for High Intensity Agriculture Using the Material Flow Analysis Method—A Case Study of the Dongting Lake Basin in South Central China. Environ. Monit. Assess. 2015, 187, 472. [Google Scholar] [CrossRef] [PubMed]
- Zhang, X.; Davidson, E.A.; Mauzerall, D.L.; Searchinger, T.D.; Dumas, P.; Shen, Y. Managing Nitrogen for Sustainable Development. Nature 2015, 528, 51–59. [Google Scholar] [CrossRef] [PubMed]
- Ma, L.; Zhang, Y.; Chen, S.; Yu, L.; Zhu, Y. Environmental Effects and Their Causes of Agricultural Production: Evidence from the Farming Regions of China. Ecol. Indic. 2022, 144, 109549. [Google Scholar] [CrossRef]
- Sun, Y.; Huang, X.; Paerhati, B.; Zhou, K. Collaborative Solutions for Agricultural Water Pollution in Smallholder Economies: Farmers and Local Governments Unite. Agric. Water Manag. 2025, 313, 109499. [Google Scholar] [CrossRef]
- Fuglie, K.O. Is Agricultural Productivity Slowing? Glob. Food Secur. 2018, 17, 73–83. [Google Scholar] [CrossRef]
- Liu, Z.; Yang, D.; Wen, T. Agricultural Production Mode Transformation and Production Efficiency: A Labor Division and Cooperation Lens. China Agric. Econ. Rev. 2019, 11, 160–179. [Google Scholar] [CrossRef]
- Tilman, D.; Cassman, K.G.; Matson, P.A.; Naylor, R.; Polasky, S. Agricultural Sustainability and Intensive Production Practices. Nature 2002, 418, 671–677. [Google Scholar] [CrossRef] [PubMed]
- Mallinger, K.; Raubitzek, S.; Neubauer, T.; Lade, S. Potentials and Limitations of Complexity Research for Environmental Sciences and Modern Farming Applications. Curr. Opin. Environ. Sustain. 2024, 67, 101429. [Google Scholar] [CrossRef]
- He, Q.; Sun, Y.; Yi, M.; Huang, H. How to Promote Agricultural Enterprises to Reduce the Use of Pesticides and Fertilizers? An Evolutionary Game Approach. Front. Sustain. Food Syst. 2023, 7, 1238683. [Google Scholar] [CrossRef]
- Menegat, S.; Ledo, A.; Tirado, R. Greenhouse Gas Emissions from Global Production and Use of Nitrogen Synthetic Fertilisers in Agriculture. Sci. Rep. 2022, 12, 14490. [Google Scholar] [CrossRef] [PubMed]
- Gong, J.; Du, H.; Sun, Y. Collaboration among Governments, Pesticide Operators, and Farmers in Regulating Pesticide Operations for Agricultural Product Safety. Agriculture 2023, 13, 2288. [Google Scholar] [CrossRef]
- Daraban, G.M.; Hlihor, R.M.; Suteu, D. Pesticides vs. Biopesticides: From Pest Management to Toxicity and Impacts on the Environment and Human Health. Toxics 2023, 11, 983. [Google Scholar] [CrossRef] [PubMed]
- Zhou, W.; Arcot, Y.; Medina, R.F.; Bernal, J.; Cisneros-Zevallos, L.; Akbulut, M.E.S. Integrated Pest Management: An Update on the Sustainability Approach to Crop Protection. ACS Omega 2024, 9, 41130–41147. [Google Scholar] [CrossRef] [PubMed]
- Wang, Z.; Ye, T.; Wang, J.; Cheng, Z.; Shi, P. Contribution of Climatic and Technological Factors to Crop Yield: Empirical Evidence from Late Paddy Rice in Hunan Province, China. Stoch. Environ. Res. Risk Assess. 2016, 30, 2019–2030. [Google Scholar] [CrossRef]
- Fan, F.; van der Werf, W.; Makowski, D.; Lamichhane, J.R.; Huang, W.; Li, C.; Zhang, C.; Cong, W.-F.; Zhang, F. Cover Crops Promote Primary Crop Yield in China: A Meta-Regression of Factors Affecting Yield Gain. Field Crop. Res. 2021, 271, 108237. [Google Scholar] [CrossRef]
- Suh, D.H.; Moss, C.B. Examining the Input and Output Linkages in Agricultural Production Systems. Agriculture 2021, 11, 54. [Google Scholar] [CrossRef]
- Liu, Z.; Di, L.; Yang, R.; Guo, L.; Zhang, C.; Li, H.; Shao, B. In-Season Crop Yield Prediction: State of the Art and Future Research Direction. Int. J. Appl. Earth Obs. Geoinf. 2026, 146, 105129. [Google Scholar] [CrossRef]
- Jabed, M.A.; Murad, M.A.A. Crop Yield Prediction in Agriculture: A Comprehensive Review of Machine Learning and Deep Learning Approaches, with Insights for Future Research and Sustainability. Heliyon 2024, 10, e40836. [Google Scholar] [CrossRef] [PubMed]
- Hernández Hernández, G.C.; Gómez Gómez, J.; Jiménez-Cabas, J. Predictive Models Based on Artificial Intelligence to Estimate Crop Yield: A Literature Review. Agriculture 2025, 15, 2438. [Google Scholar] [CrossRef]
- Shawon, S.M.; Ema, F.B.; Mahi, A.K.; Niha, F.L.; Zubair, H. Crop Yield Prediction Using Machine Learning: An Extensive and Systematic Literature Review. Smart Agric. Technol. 2025, 10, 100718. [Google Scholar] [CrossRef]
- Chen, T.; Guestrin, C. Xgboost: A Scalable Tree Boosting System. In Proceedings of the 22nd ACM Sigkdd International Conference on Knowledge Discovery and Data Mining; Association for Computing Machinery: New York, NY, USA, 2016; pp. 785–794. [Google Scholar] [CrossRef]
- Deng, N.; Grassini, P.; Yang, H.; Huang, J.; Cassman, K.G.; Peng, S. Closing Yield Gaps for Rice Self-Sufficiency in China. Nat. Commun. 2019, 10, 1725. [Google Scholar] [CrossRef] [PubMed]
- Cheng, Z.; Zhu, M.; Cai, J. Reducing Fertilizer and Pesticide Application through Mandatory Agri-Environmental Regulation: Insights from “Two Zero” Policy in China. Environ. Impact Assess. Rev. 2025, 110, 107716. [Google Scholar] [CrossRef]
- Asgary, S.; Aghashariatmadari, Z. Sensitivity Analysis of Rainfed Wheat Yield to Climatic Indices Using the Interpretable XGBoost–SHAP Model under Climate Change Conditions: Zanjan Province Case Study. Iran. J. Soil Water Res. 2026, 57, 1–20. [Google Scholar] [CrossRef]
- Barredo Arrieta, A.; Diaz-Rodriguez, N.; Del Ser, J.; Bennetot, A.; Tabik, S.; Barbado, A.; Garcia, S.; Gil-Lopez, S.; Molina, D.; Benjamins, R.; et al. Explainable Artificial Intelligence (XAI): Concepts, Taxonomies, Opportunities and Challenges toward Responsible AI. Inf. Fusion 2020, 58, 82–115. [Google Scholar] [CrossRef]
- Wang, M.; Li, Y.; Yuan, H.; Zhou, S.; Wang, Y.; Ikram, R.M.A.; Li, J. An XGBoost-SHAP Approach to Quantifying Morphological Impact on Urban Flooding Susceptibility. Ecol. Indic. 2023, 156, 111137. [Google Scholar] [CrossRef]
- Sun, Y.; Xie, L.; Huang, M.; Hu, R. Understanding Multi-Disaster Impacts on China’s Grain Production for Food Security: An XGBoost-SHAP Approach. Food Energy Secur. 2026, 15, e70237. [Google Scholar] [CrossRef]
- Meng, M.; Yu, L.; Yu, X. Machinery Structure, Machinery Subsidies, and Agricultural Productivity: Evidence from China. Agric. Econ. 2024, 55, 223–246. [Google Scholar] [CrossRef]
- Guo, Y.; Wang, J. Spatiotemporal Changes of Chemical Fertilizer Application and Its Environmental Risks in China from 2000 to 2019. Int. J. Environ. Res. Public Health 2021, 18, 11911. [Google Scholar] [CrossRef] [PubMed]
- Zuo, X.; Li, H.; Wang, C.; Cao, A.; Wen, H. Path to Reducing Pesticide Input: Is Agricultural Production Outsourcing Effective? Ecol. Econ. 2026, 246, 109002. [Google Scholar] [CrossRef]
- Huang, T.; Wu, Q.; Yuan, Y.; Zhang, X.; Sun, R.; Hao, R.; Yang, X.; Li, C.; Qin, X.; Song, F.; et al. Effects of Plastic Film Mulching on Yield, Water Use Efficiency, and Nitrogen Use Efficiency of Different Crops in China: A Meta-Analysis. Field Crop. Res. 2024, 312, 109407. [Google Scholar] [CrossRef]
- Fan, J.; Liu, B.; Lei, T.; Sun, Y.; Ma, Y.; Guo, R.; Chen, D.; Zhou, K.; Li, S.; Gao, X. Exploring How Economic Level Drives Urban Flood Risk. Nat. Commun. 2025, 16, 4857. [Google Scholar] [CrossRef] [PubMed]
- Jin, S.; Zhou, F. Zero Growth of Chemical Fertilizer and Pesticide Use: China’s Objectives, Progress and Challenges. J. Resour. Ecol. 2018, 9, 50–58. [Google Scholar] [CrossRef]
- van Wesenbeeck, C.F.A.; Keyzer, M.A.; van Veen, W.C.M.; Qiu, H. Can China’s Overuse of Fertilizer Be Reduced without Threatening Food Security and Farm Incomes? Agric. Syst. 2021, 190, 103093. [Google Scholar] [CrossRef]
- Wang, X.; Yamauchi, F.; Huang, J.; Rozelle, S. What Constrains Mechanization in Chinese Agriculture? Role of Farm Size and Fragmentation. China Econ. Rev. 2020, 62, 101221. [Google Scholar] [CrossRef]
- Qi, Y.; Qiang, W.; Ma, X. Spatiotemporal Pattern Evolution of Food and Nutrient Production in China. Foods 2023, 12, 3791. [Google Scholar] [CrossRef] [PubMed]
- Li, Y.; Yang, Y.; Liu, L.; Pan, W. New Spatial Pattern of Food Production and Its Climatic Disaster Risk in China. Trans. Chin. Soc. Agric. Eng. 2026, 42, 1–13. [Google Scholar] [CrossRef]
- Yang, Z.; Hu, Y.; Zhang, S.; Raza, S.; Wei, X.; Zhao, X. The Thresholds and Management of Irrigation and Fertilization Earning Yields and Water Use Efficiency in Maize, Wheat, and Rice in China: A Meta-Analysis (1990–2020). Agronomy 2022, 12, 709. [Google Scholar] [CrossRef]
- Tian, M.; Zheng, Y.; Sun, X.; Zheng, H. A Research on Promoting Chemical Fertiliser Reduction for Sustainable Agriculture Purposes: Evolutionary Game Analyses Involving “Government, Farmers, and Consumers”. Ecol. Indic. 2022, 144, 109433. [Google Scholar] [CrossRef]
- Hu, Y.; Liu, Y. Impact of Fertilizer and Pesticide Reductions on Land Use in China Based on Crop-Land Integrated Model. Land Use Policy 2024, 141, 107155. [Google Scholar] [CrossRef]
- Savary, S.; McRoberts, N.; Esker, P.D.; Willocquet, L.; Teng, P.S. Production Situations as Drivers of Crop Health: Evidence and Implications. Plant Pathol. 2017, 66, 867–876. [Google Scholar] [CrossRef]







| Variable Category | Variable Name | Variable Abbreviation | Unit |
|---|---|---|---|
| Dependent Variables | Soybean Yield | SY | 104 t |
| Cereal Yield | CY | 104 t | |
| Tuber Yield | TY | 104 t | |
| Core Independent Variables | Total Power of Agricultural Machinery [33] | AMP | 104 kW |
| Agricultural Chemical Fertilizer Application Amount [34] | AFA | 104 t | |
| Pesticide Usage [35] | PU | 104 t | |
| Agricultural Plastic Film Usage [36] | AFU | 104 t | |
| Control Variables | Added Value of Primary Industry | AVPI | 108 CNY |
| Rural Population | RP | 104 persons | |
| Crop Sown Area | CSA | kha |
| Count | Mean | Std | Min | 25% | 75% | Max | VIF | Tolerance | |
|---|---|---|---|---|---|---|---|---|---|
| SY | 713 | 63.13 | 114.36 | 0.10 | 14.00 | 67.10 | 966.40 | / | / |
| CY | 713 | 1662.91 | 1492.38 | 27.70 | 528.60 | 2581.40 | 7104.40 | / | / |
| TY | 713 | 102.23 | 103.77 | 0.00 | 31.80 | 149.80 | 559.20 | / | / |
| AMP | 713 | 2833.06 | 2718.02 | 73.69 | 902.94 | 3537.06 | 13,353.02 | 5.94 | 0.17 |
| AFA | 713 | 169.24 | 137.65 | 2.50 | 74.80 | 245.26 | 716.10 | 8.48 | 0.12 |
| PU | 713 | 4.97 | 4.14 | 0.05 | 1.26 | 7.83 | 17.35 | 3.67 | 0.27 |
| AFU | 713 | 6.85 | 6.36 | 0.01 | 2.56 | 9.18 | 34.35 | 2.11 | 0.47 |
| AVPI | 713 | 1481.77 | 1343.39 | 36.32 | 364.50 | 2195.11 | 6298.60 | 2.55 | 0.39 |
| RP | 713 | 2052.64 | 1493.49 | 160.78 | 997.41 | 2977.17 | 7286.78 | 3.91 | 0.26 |
| CSA | 713 | 5200.10 | 3704.49 | 88.60 | 2263.10 | 7797.90 | 15,209.40 | 5.04 | 0.20 |
| Crop | Model | Training R2 | Training RMSE | Test (R2) (95% CI) | Test MAE (95% CI) | Test RMSE (95% CI) |
|---|---|---|---|---|---|---|
| Soybeans | Linear OLS | 0.687 | 57.724 | 0.721 (−2.197, 0.786) | 50.334 (35.210, 71.187) | 77.825 (45.246, 114.268) |
| Quadratic Ridge | 0.864 | 38.019 | 0.933 (0.300, 0.956) | 21.179 (13.727, 29.907) | 38.050 (19.899, 55.086) | |
| Translog Ridge | 0.629 | 62.832 | 0.548 (0.496, 0.775) | 32.791 (11.338, 68.206) | 99.010 (16.304, 167.994) | |
| LSTM | 0.903 | 32.18 | 0.773 (0.417, 0.788) | 28.713 (13.370, 53.093) | 70.099 (19.342, 115.979) | |
| Regularized XGBoost | 0.981 | 14.16 | 0.786 (0.610, 0.856) | 24.176 (9.867, 45.854) | 68.206 (13.916, 113.821) | |
| Tuned XGBoost | 0.987 | 11.779 | 0.759 (0.571, 0.811) | 26.641 (11.326, 50.629) | 72.289 (15.834, 120.480) | |
| Cereals | Linear OLS | 0.909 | 410.448 | 0.888 (0.785, 0.933) | 489.219 (370.831, 615.445) | 618.171 (468.161, 758.845) |
| Quadratic Ridge | 0.949 | 307.303 | 0.917 (0.825, 0.957) | 364.170 (266.785, 472.888) | 531.270 (392.325, 665.737) | |
| Translog Ridge | 0.926 | 369.412 | 0.912 (0.816, 0.954) | 347.574 (216.744, 489.516) | 549.253 (373.879, 714.347) | |
| LSTM | 0.866 | 498.707 | 0.748 (0.640, 0.889) | 540.409 (305.624, 825.710) | 928.602 (443.570, 1330.574) | |
| Regularized XGBoost | 0.990 | 136.728 | 0.942 (0.876, 0.972) | 311.652 (218.341, 414.004) | 445.494 (306.783, 580.010) | |
| Tuned XGBoost | 1.00 | 17.581 | 0.958 (0.897, 0.983) | 236.386 (157.259, 322.196) | 378.053 (238.174, 520.194) | |
| Tubers | Linear OLS | 0.496 | 71.487 | 0.365 (−1.223, 0.661) | 71.724 (53.645, 89.850) | 90.594 (69.848, 108.542) |
| Quadratic Ridge | 0.707 | 54.509 | 0.649 (−0.239, 0.828) | 53.975 (43.435, 64.633) | 67.372 (55.171, 78.281) | |
| Translog Ridge | 0.529 | 69.116 | 0.475 (−0.127, 0.606) | 53.053 (32.434, 74.679) | 82.350 (49.419, 110.506) | |
| LSTM | 0.791 | 46.042 | 0.610 (−0.115, 0.753) | 50.389 (33.810, 69.140) | 70.997 (46.179, 92.663) | |
| Regularized XGBoost | 0.960 | 20.143 | 0.642 (0.300, 0.771) | 42.383 (28.282, 60.835) | 67.986 (39.890, 99.047) | |
| Tuned XGBoost | 0.999 | 2.907 | 0.751 (0.547, 0.858) | 33.250 (22.774, 48.256) | 56.756 (31.633, 84.116) |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.
Share and Cite
Zhang, H.; Lai, H.; Sun, Y.; Li, J. Nonlinear Threshold Effects of Agricultural Inputs on Crop Production in China: Insights from XGBoost-SHAP and Spatiotemporal Analysis. Agriculture 2026, 16, 1472. https://doi.org/10.3390/agriculture16131472
Zhang H, Lai H, Sun Y, Li J. Nonlinear Threshold Effects of Agricultural Inputs on Crop Production in China: Insights from XGBoost-SHAP and Spatiotemporal Analysis. Agriculture. 2026; 16(13):1472. https://doi.org/10.3390/agriculture16131472
Chicago/Turabian StyleZhang, Haipeng, Huifan Lai, Yong Sun, and Jingdong Li. 2026. "Nonlinear Threshold Effects of Agricultural Inputs on Crop Production in China: Insights from XGBoost-SHAP and Spatiotemporal Analysis" Agriculture 16, no. 13: 1472. https://doi.org/10.3390/agriculture16131472
APA StyleZhang, H., Lai, H., Sun, Y., & Li, J. (2026). Nonlinear Threshold Effects of Agricultural Inputs on Crop Production in China: Insights from XGBoost-SHAP and Spatiotemporal Analysis. Agriculture, 16(13), 1472. https://doi.org/10.3390/agriculture16131472

