收藏切换
Machine Learning Reveals the Driving Effects of Soil Nutrients on Maize Yield Formation: A Case Study of Yunnan, China
收藏切换
Jiaze SUN1, 2, Mingshan QU3, Jizhong YANG4, Chuixin LOU4, Guangwei LI2, Zhonglili ZHANG5
Smart Agriculture | 2026, 8(4) : 180 - 191
Less
收藏切换
Smart Agriculture | 2026, 8(4): 180-191
• Information Processing and Decision Making •
Machine Learning Reveals the Driving Effects of Soil Nutrients on Maize Yield Formation: A Case Study of Yunnan, China
Full
Jiaze SUN1, 2, Mingshan QU3, Jizhong YANG4, Chuixin LOU4, Guangwei LI2, Zhonglili ZHANG5
Affiliations
  • 1.College of Information and Electrical Engineering, China Agricultural University, Beijing 100083, China
  • 2.Information Technology Research Center, Beijing Academy of Agriculture and Forestry Sciences, Beijing 100097, China
  • 3.Beijing Agricultural Technology Extension Station, Beijing 100029, China
  • 4.Yunnan Supply and Marketing Industrial Investment Co. , Ltd. , Kunming 650000, China
  • 5.Intelligent Equipment Research Center, Beijing Academy of Agriculture and Forestry Sciences, Beijing 100097, China
  • SUN Jiaze, E-mail:

About Author:

SUN Jiaze, E-mail:

Published: 2026-07-30 doi: 10.12133/j.smartag.SA202508029
Outline
收藏切换

[Objective] Maize production in Yunnan‑representative mountainous regions is strongly shaped by rugged terrain, fragmented cropland, and steep vertical climatic gradients, which drive pronounced spatial heterogeneity in soil nutrients and yield. Unlike homogeneous plains, yield variation here stems from the combined effects of soil fertility, climate, and topography rather than any single nutrient factor, making traditional statistics or isolated soil indicators inadequate. To this end, an interpretable machine learning framework integrating soil nutrients and spatial information was developed to enhance maize yield prediction and identify the dominant drivers of yield disparities across sub‑regions of such landscapes. [Methods] Soil testing and formula fertilization data from Yunnan province during 2005—2020 were combined with 5 km gridded maize yield data. Four soil nutrient indicators were selected, including soil organic matter, total nitrogen, available phosphorus, and available potassium. Longitude and latitude were also used as input variables. In this study, these two variables were not treated simply as location labels. They were included because spatial position can partly reflect regional environmental gradients that are difficult to describe using soil nutrient data alone, such as differences in elevation, heat and moisture conditions, terrain fragmentation, and cropping background. Based on these variables, particle swarm optimization was used to tune the main hyperparameters of the XGBoost model, forming a PSO-XGBoost yield prediction model. The optimized model was compared with LightGBM, CatBoost, random forest, support vector regression, and the original XGBoost model. Considering that nearby samples may share similar environmental conditions, random partitioning alone may overestimate model performance. Therefore, spatial block cross-validation was further used to examine the model's ability to predict yield under spatial separation. In addition, longitude and latitude were removed in an ablation experiment to test the contribution of spatial background information. Finally, SHAP was used to interpret the trained model, quantify the contribution of each variable, analyze the response of yield prediction to soil nutrients and spatial factors, and identify the dominant limiting factors in different maize-growing areas. [Results and Discussions] PSO-XGBoost showed the best performance among the tested models. Under random data partitioning, the model achieved an R2 of 0.91, indicating that it could effectively capture the relationship among soil nutrients, spatial background, and maize yield. Compared with LightGBM, CatBoost, and the unoptimized XGBoost model, PSO-XGBoost gave more accurate and stable predictions. This result suggested that particle swarm optimization improved the parameter configuration of XGBoost and made it more suitable for yield prediction in complex mountainous regions. Under spatial block cross-validation, the R2 decreased to 0.847. Although this value was lower than that obtained from random partitioning, it still showed good predictive performance under a stricter validation strategy. This also indicated that the model did not rely only on the similarity between neighboring samples, but retained a certain ability to predict yield in spatially separated areas. The ablation experiment further confirmed the importance of spatial information. After longitude and latitude were removed, the model R2 dropped sharply to 0.698. This decline showed that maize yield patterns in Yunnan cannot be well explained by soil nutrient indicators alone. Spatial variables probably contain information related to elevation-induced climatic differences, regional hydrothermal conditions, terrain fragmentation, and differences in the cropping environment. The SHAP results led to a similar conclusion. Longitude and latitude had relatively large contributions, suggesting that regional environmental gradients played an important role in yield formation. Among the soil nutrient variables, soil organic matter, total nitrogen, available phosphorus, and available potassium were all related to maize yield, but their roles differed across Yunnan. In some areas, yield was more closely associated with organic matter and nitrogen supply, while in others phosphorus or potassium appeared to be more limiting. This spatial difference suggested that the main constraints on maize production were not the same across the province. For this reason, a province-wide fertilization scheme would be difficult to apply effectively. Nutrient management in Yunnan should instead be adjusted according to local soil conditions and the environmental background of different mountainous regions. [Conclusions] Maize yield in Yunnan province is affected by both soil nutrient conditions and broader spatial environmental factors. Soil fertility is still an important basis for yield formation in mountainous farmland, but it does not explain the spatial yield differences on its own. By combining PSO-XGBoost with SHAP, this study provides a way to improve yield prediction while also tracing the main factors related to regional yield variation. The framework can be used to identify areas where nutrient constraints are more likely to occur, as well as areas where terrain, climate background, or other regional environmental factors may have a stronger influence. These results can support more targeted fertilization, cultivated land quality improvement, and sustainable maize production in the mountainous agricultural areas of Yunnan.

maize yield prediction  /  PSO-XGBoost  /  SHAP  /  soil nutrients  /  spatial heterogeneity  /  machine learning
孙佳泽, 曲明山, 杨积忠, 娄垂新, 李光伟, 张钟莉莉. 机器学习揭示土壤养分对玉米产量形成驱动作用——以云南地区为例. 智慧农业(中英文), 2026 , 8 (4) : 180 -191 . DOI: 10.12133/j.smartag.SA202508029
Jiaze SUN, Mingshan QU, Jizhong YANG, Chuixin LOU, Guangwei LI, Zhonglili ZHANG. Machine Learning Reveals the Driving Effects of Soil Nutrients on Maize Yield Formation: A Case Study of Yunnan, China[J]. Smart Agriculture, 2026 , 8 (4) : 180 -191 . DOI: 10.12133/j.smartag.SA202508029
  • Yunnan Provincial Major Science and Technology Special Project(202202AE090013)
  • China Agriculture Research System of Maize(CARS-02)
  • Training Program for Excellent Young Scientists of Beijing Academy of Agriculture and Forestry Sciences(YXQN202304-C)
Year 2026 volume 8 Issue 4
103
48
Cite this Article
BibTeX
Article Info
doi: 10.12133/j.smartag.SA202508029
  • Receive Date:2025-08-27
  • Online Date:2026-10-16
  • Published:2026-07-30
Article Data
Affiliations
History
  • Received:2025-08-27
Funding
Yunnan Provincial Major Science and Technology Special Project(202202AE090013)
China Agriculture Research System of Maize(CARS-02)
Training Program for Excellent Young Scientists of Beijing Academy of Agriculture and Forestry Sciences(YXQN202304-C)
Affiliations
    1.College of Information and Electrical Engineering, China Agricultural University, Beijing 100083, China
    2.Information Technology Research Center, Beijing Academy of Agriculture and Forestry Sciences, Beijing 100097, China
    3.Beijing Agricultural Technology Extension Station, Beijing 100029, China
    4.Yunnan Supply and Marketing Industrial Investment Co. , Ltd. , Kunming 650000, China
    5.Intelligent Equipment Research Center, Beijing Academy of Agriculture and Forestry Sciences, Beijing 100097, China

Corresponding:

ZHANG Zhonglili, E-mail:
References
Share
https://castjournals.cast.org.cn/joweb/zhny/EN/10.12133/j.smartag.SA202508029
Share to
QR

Scan QR to access full text

Cite this article
BibTeX
Citations
表12种不同金属材料的力学参数
科
Family
属数
Number of
genus
种数
Number of
species
占总种数比例
Percentage of
total species (%)
属
Genus
种数
Number of
species
占总种数比例
Percentage of total
species (%)
鹅膏菌科Amanitaceae 2 11 5.26 鹅膏菌属 Amanita 10 4.78
小菇科 Mycenaceae 2 12 5.74 丝盖伞属 Inocybe 5 2.39
多孔菌科 Polyporaceae 8 14 6.70 蜡蘑属 Laccaria 5 2.39
红菇科 Russulaceae 3 23 11.00 小皮伞属 Marasmius 6 2.87
小菇属 Mycena 11 5.26
光柄菇属 Pluteus 5 2.39
红菇属 Russula 17 8.13
栓菌属 Trametes 5 2.39
关闭全屏
  • BibTeX
  • EndNote
  • RefWorks
  • TxT