Research Article

Research on Interpretable Machine Learning with Uncertainty Quantification for Ecological Risk Prediction

Ling Zhai*, Zhuoxi Chu
Trinity College Dublin

* Corresponding author: [email protected]

Abstract

This study develops an interpretable machine-learning framework with uncertainty quantification for regional ecological risk prediction. The dataset is organized as a county-month panel containing 2,400 observations and 48 predictors from land-use, landscape-pattern, climate, topographic, hydrological, and human-disturbance variables. The ecological risk target is constructed as a three-class label, including low, medium, and high risk, based on a composite ecological risk index. Python 3.11 is used for data cleaning, median imputation, z-score standardization, XGBoost classification, SHAP interpretation, and Bayesian bootstrap interval estimation. The XGBoost model is trained with fixed hyperparameters, while SHAP TreeExplainer produces global and local feature-attribution outputs. Bayesian bootstrap analysis was conducted for 500 iterations for calculating 95% confidence intervals for class probabilities and SHAP importance for features. The findings reveal that the accuracy of the model is 0.872 ± 0.021, the macro F1 score is 0.856 ± 0.026, and the macro AUC score is 0.931 ± 0.018. The average value of the 95% probability intervals width is 0.118 ± 0.027. Among others, the proportion of built-up areas, roads, patches, NDVI, rainfall, and run-off index have the highest SHAP

Keywords: Ecological risk prediction; interpretable machine learning; uncertainty quantification; SHAP; confidence interval
Published: June 23, 2026
DOI: 10.54254/2755-2721/2026.34717
Volume: ACE Vol.245
pp. 136-142
Download PDF

References

  1. Houdou, A., El Badisy, I., Khomsi, K., Abdala, S. A., Abdulla, F., Najmi, H., Obtel, M., Belyamani, L., Ibrahimi, A., & Khalis, M. (2024). Interpretable machine learning approaches for forecasting and predicting air pollution: A systematic review. Aerosol and Air Quality Research, 24, 230151.
  2. Rohmer, J., Idier, D., Pedreros, R., & Rouzeau, O. (2024). Insights into the prediction uncertainty of machine-learning models: Applying SHAP to local prediction uncertainty estimates for urban soil pollution. SOIL, 10, 679–694.
  3. Singh, G., Yao, J., Aitkenhead, M. J., et al. (2024). Uncertainty quantification for probabilistic machine learning in Earth observation. Scientific Reports, 14, 15942.
  4. Le, X. H., Hoang, N. D., Pham, B. T., & Nguyen, H. (2024). Quantitative evaluation of uncertainty and interpretability in machine-learning models for landslide susceptibility mapping. Frontiers in Environmental Science, 12, 1424988.
  5. Fu, X., Chen, Y., Wang, J., Li, M., & Zhang, H. (2025). An XGBoost-SHAP framework for identifying key drivers of urban flooding risk under land-cover change. Ecological Indicators, 176, 113456.
  6. Du, P., Chen, L., Zhang, Y., Wang, X., Liu, J., & Li, S. (2025). Using XGBoost-SHAP for understanding the ecosystem services trade-off effects and driving mechanisms in ecologically fragile areas. Frontiers in Plant Science, 16, 1552818.
  7. Guo, J., Zhang, Y., Liu, Y., Wang, X., & Li, H. (2024). Past dynamics and future prediction of the impacts of land use changes on ecosystem services and landscape ecological risks. Journal of Environmental Management, 364, 121451.
  8. Ali, S., Abuhmed, T., El-Sappagh, S., Muhammad, K., Alonso-Moral, J. M., Confalonieri, R., Guidotti, R., Del Ser, J., Díaz-Rodríguez, N., & Herrera, F. (2023). Explainable artificial intelligence (XAI): What we know and what is left to attain trustworthy artificial intelligence. Information Fusion, 99, 101805.
  9. Ibebuchi, C. C. (2025). Assessing uncertainty in climate science: A comparative analysis of SHAP, PDP, and gain-based methods. Theoretical and Applied Climatology, 156, 476.
  10. Mase, M., Owen, A. B., & Seiler, B. B. (2024). Variable importance without impossible data. Annual Review of Statistics and Its Application, 11, 439–460.