A Stacked Ensemble Machine Learning Framework for Predicting Nitrogen Reduction Impact on Agricultural N₂O Emissions
Abstract
To accurately predict the impact of nitrogen reduction strategies on greenhouse gas emissions in agricultural systems and support informed decision-making for a green, low-carbon transition, this study proposes a multi-model ensemble prediction framework using integrated machine learning techniques. To address the limitations of traditional emission assessment methods—such as their inability to handle high-dimensional data, nonlinear interactions, and regional heterogeneity—three models are employed: eXtreme Gradient Boosting (XGBoost), Random Forest, and Light Gradient Boosting Machine (LightGBM). These models are combined using a Stacking ensemble approach to enhance predictive accuracy and robustness. Comprehensive performance evaluations and variable importance analyses were conducted. The proposed framework achieved an R² of 0.901 and a Root Mean Square Error (RMSE) of 0.301 on the N₂O Global dataset, significantly outperforming benchmark models such as Natural Gradient Boosting (NGBoost) (R²: 0.829; RMSE: 0.382) and Categorical Boosting (CatBoost) (R²: 0.864; RMSE: 0.341). It also demonstrated strong adaptability on the Rothamsted and DayCent datasets. SHapley Additive exPlanations (SHAP) analysis identified nitrogen application rate, rainfall frequency, and soil type as the most influential factors affecting emissions. Scenario simulations showed that a 20% reduction in nitrogen application could decrease emissions to 3.124 kg N₂O-N/ha/year. When combined with optimized management practices—such as cover cropping and improved tillage scheduling—emissions were further reduced to 2.487 kg N₂O-N/ha/year. Accordingly, the proposed method provides a practical exploration for enhancing the applicability and interpretability of models. It offers valuable insights for agricultural environmental modeling and emission reduction policy support, demonstrating both theoretical significance and practical relevance.
Full Text:
PDFReferences
Kamyab H, SaberiKamarposhti M, Hashim H, et al. Carbon dynamics in agricultural greenhouse gas emissions and removals: a comprehensive review. Carbon Letters, 2024, 34(1): 265-289.
Qian H, Zhu X, Huang S, et al. Greenhouse gas emissions and mitigation in rice agriculture. Nature Reviews Earth & Environment, 2023, 4(10): 716-732.
Maraveas C, Karavas C S, Loukatos D, et al. Agricultural greenhouses: Resource management technologies and perspectives for zero greenhouse gas emissions. Agriculture, 2023, 13(7): 1464.
Polymeni S, Skoutas D N, Sarigiannidis P, et al. Smart agriculture and greenhouse gas emission mitigation: A 6G-IoT perspective. Electronics, 2024, 13(8): 1480.
Zhao M, Shi R, Du R, et al. The pathway to China’s carbon–neutral agriculture: Measures, potential and future strategies. Chinese Political Science Review, 2023, 8(2): 304-324.
Harmsen M, Tabak C, Höglund-Isaksson L, et al. Uncertainty in non-CO2 greenhouse gas mitigation contributes to ambiguity in global climate policy feasibility. Nature Communications, 2023, 14(1): 2949.
Aziz S, Chowdhury S A. Analysis of agricultural greenhouse gas emissions using the STIRPAT model: A case study of Bangladesh. Environment, Development and Sustainability, 2023, 25(5): 3945-3965.
Qin J, Duan W, Zou S, et al. Global energy use and carbon emissions from irrigated agriculture. Nature Communications, 2024, 15(1): 3084.
Xia L, Cao L, Yang Y, et al. Integrated biochar solutions can achieve carbon-neutral staple crop production. Nature Food, 2023, 4(3): 236-246.
Ang F, Kerstens K, Sadeghi J. Energy productivity and greenhouse gas emission intensity in Dutch dairy farms: A Hicks–Moorsteen by‐production approach under non‐convexity and convexity with equivalence results. Journal of Agricultural Economics, 2023, 74(2): 492-509.
Yang Z H U, Zhen Q I, Lu W, et al. Spatial and temporal evolution and driving factors of synergistic effects of agricultural pollution and carbon emission reduction in China. Journal of Ecology and Rural Environment, 2024, 40(9): 1201-1212.
Mondal S K, An S I, Min S K, et al. Enhanced soil moisture–temperature coupling could exacerbate drought under net-negative emissions. npj Climate and Atmospheric Science, 2024, 7(1): 265.
Lu W, Hao Z, Ma X, et al. Effects of different proportions of organic fertilizer replacing chemical fertilizer on soil nutrients and fertilizer utilization in gray desert soil. Agronomy, 2024, 14(1): 228.
Tong B, Hou Y, Wang S, et al. Partial substitution of urea fertilizers by manure increases crop yield and nitrogen use efficiency of a wheat–maize double cropping system. Nutrient Cycling in Agroecosystems, 2023, 127(1): 11-21.
Joshi D R, Clay D E, Clay S A, et al. Quantification and machine learning based N2O–N and CO2–C emissions predictions from a decomposing rye cover crop. Agronomy Journal, 2024, 116(3): 795-809.
Gu X, Yao L, Wu L. Prediction of water carbon fluxes and emission causes in rice paddies using two tree-based ensemble algorithms. Sustainability, 2023, 15(16): 12333.
Magazzino C, Cerulli G, Shahzad U, et al. The nexus between agricultural land use, urbanization, and greenhouse gas emissions: Novel implications from different stages of income levels. Atmospheric Pollution Research, 2023, 14(9): 101846.
Kabato W, Getnet G T, Sinore T, et al. Towards climate-smart agriculture: Strategies for sustainable agricultural production, food security, and greenhouse gas reduction. Agronomy, 2025, 15(3): 565.
Don A, Seidel F, Leifeld J, et al. Carbon sequestration in soils and climate change mitigation—Definitions and pitfalls. Global Change Biology, 2024, 30(1): 16983.
Olesen J E, Rees R M, Recous S, et al. Challenges of accounting nitrous oxide emissions from agricultural crop residues. Global change biology, 2023, 29(24): 6846-6855.
He T, Ding W, Cheng X, et al. Meta-analysis shows the impacts of ecological restoration on greenhouse gas emissions. Nature Communications, 2024, 15(1): 2668.
Lin X, Yang R, Zhang W, et al. An integrated view of correlated emissions of greenhouse gases and air pollutants in China. Carbon Balance and Management, 2023, 18(1): 9.
Wang X, Xu M, Lin B, et al. Reforming China’s fertilizer policies: implications for nitrogen pollution reduction and food security. Sustainability Science, 2023, 18(1): 407-420.
Liu T C, Wu Y C, Chau C F. An overview of carbon emission mitigation in the food industry: efforts, challenges, and opportunities. Processes, 2023, 11(7): 1993.
Yang S, Yang D, Shi W, et al. Global evaluation of carbon neutrality and peak carbon dioxide emissions: Current challenges and future outlook. Environmental Science and Pollution Research, 2023, 30(34): 81725-81744.
Kreft C, Finger R, Huber R. Action‐versus results‐based policy designs for agricultural climate change mitigation. Applied Economic Perspectives and Policy, 2024, 46(3): 1010-1037.
DOI: https://doi.org/10.31449/inf.v49i30.10721
This work is licensed under a Creative Commons Attribution 3.0 License.








