Research Article

Interpretable Machine Learning for Daily Streamflow Using Gam And Xgboost With Shap-Based Analysis

Volume: 15 Number: 3 September 30, 2026

Interpretable Machine Learning for Daily Streamflow Using Gam And Xgboost With Shap-Based Analysis

Abstract

Predicting and interpreting streamflow changes is critical for the long-term sustainability of water resources under climate variability. This study investigates daily streamflow dynamics in Turkey's Sakarya River Basin using Generalized Additive Models (GAM), Extreme Gradient Boosting (XGBoost), and Explainable AI techniques. Daily discharge data from five gauge stations were combined to represent basin-scale behavior, and corresponding meteorological variables were obtained from the NASA POWER dataset for 2021. Two modeling approaches were compared: GAM, which captures non-linear relationships among variables, and XGBoost, which accounts for complex variable interactions. Model performance was evaluated using R², RMSE, MAE, and train-test overfitting diagnostics. XGBoost significantly outperformed GAM (R² = 0.769 vs. 0.502) while demonstrating consistent generalization capacity (ΔR² ≤ 0.05). To bridge the gap between predictive accuracy and interpretability, SHAP-based feature attribution was applied. Results reveal that temperature, dew point temperature, and atmospheric humidity exert a greater individual influence on daily discharge variability than precipitation alone, highlighting the dominant role of thermal and atmospheric moisture dynamics in basin-scale hydrological responses at the daily timescale. The XGBoost–SHAP framework effectively combines high predictive accuracy with process-consistent interpretability, supporting the advancement of hybrid predictive-interpretive approaches in hydrologic modeling. These findings confirm that machine learning models, when paired with explainability tools, provide meaningful insights into underlying physical processes driving streamflow. The methodology presented serves as a transferable framework for analyzing streamflow responses to changing climate conditions across diverse river basins, contributing to more informed and resilient water resource management strategies

Keywords

Ethical Statement

The study is complied with research and publication ethics.

References

  1. W. J. Knoben, R. A. Woods, and J. E. Freer, “A quantitative hydrological climate classification evaluated with independent streamflow data,” *Water Resources Research*, vol. 54, no. 7, pp. 5088–5109, 2018.
  2. W. Berghuijs, R. Woods, and M. Hrachowitz, “A precipitation shift from snow towards rain leads to a decrease in streamflow,” *Nature Climate Change*, vol. 4, no. 7, pp. 583–586, 2014.
  3. G. Blöschl *et al*., “Changing climate both increases and decreases European river floods,” *Nature*, vol. 573, no. 7772, pp. 108–111, 2019.
  4. C. A. Day, “Modelling impacts of climate change on snowmelt runoff generation and streamflow across western US mountain basins: A review of techniques and applications for water resource management,” *Progress in Physical Geography*, vol. 33, no. 5, pp. 614–633, 2009.
  5. N. Addor, A. J. Newman, N. Mizukami, and M. P. Clark, “The CAMELS data set: Catchment attributes and meteorology for large-sample studies,” *Hydrology and Earth System Sciences*, vol. 21, no. 10, pp. 5293–5313, 2017.
  6. G. S. Nearing *et al*., “What role does hydrological science play in the age of machine learning?,” *Water Resources Research*, vol. 57, no. 3, Art. no. e2020WR028091, 2021.
  7. C. Shen *et al*., “Differentiable modelling to unify machine learning and physical models for geosciences,” *Nature Reviews Earth & Environment*, vol. 4, no. 8, pp. 552–567, 2023.
  8. R. P. Allan, C. Liu, M. Zahn, D. A. Lavers, E. Koukouvagias, and A. Bodas-Salcedo, “Physically consistent responses of the global atmospheric hydrological cycle in models and observations,” *Surveys in Geophysics*, vol. 35, no. 3, pp. 533–552, 2014.

Details

Primary Language

English

Subjects

Large and Complex Data Theory, Statistical Data Science

Journal Section

Research Article

Publication Date

September 30, 2026

Submission Date

February 19, 2026

Acceptance Date

April 10, 2026

Published in Issue

Year 2026 Volume: 15 Number: 3

APA
Güneş, M. Ş. (2026). Interpretable Machine Learning for Daily Streamflow Using Gam And Xgboost With Shap-Based Analysis. Bitlis Eren Üniversitesi Fen Bilimleri Dergisi, 15(3), 1293-1303. https://doi.org/10.17798/bitlisfen.1892953
AMA
1.Güneş MŞ. Interpretable Machine Learning for Daily Streamflow Using Gam And Xgboost With Shap-Based Analysis. Bitlis Eren Üniversitesi Fen Bilimleri Dergisi. 2026;15(3):1293-1303. doi:10.17798/bitlisfen.1892953
Chicago
Güneş, Mehmet Şamil. 2026. “Interpretable Machine Learning for Daily Streamflow Using Gam And Xgboost With Shap-Based Analysis”. Bitlis Eren Üniversitesi Fen Bilimleri Dergisi 15 (3): 1293-1303. https://doi.org/10.17798/bitlisfen.1892953.
EndNote
Güneş MŞ (September 1, 2026) Interpretable Machine Learning for Daily Streamflow Using Gam And Xgboost With Shap-Based Analysis. Bitlis Eren Üniversitesi Fen Bilimleri Dergisi 15 3 1293–1303.
IEEE
[1]M. Ş. Güneş, “Interpretable Machine Learning for Daily Streamflow Using Gam And Xgboost With Shap-Based Analysis”, Bitlis Eren Üniversitesi Fen Bilimleri Dergisi, vol. 15, no. 3, pp. 1293–1303, Sept. 2026, doi: 10.17798/bitlisfen.1892953.
ISNAD
Güneş, Mehmet Şamil. “Interpretable Machine Learning for Daily Streamflow Using Gam And Xgboost With Shap-Based Analysis”. Bitlis Eren Üniversitesi Fen Bilimleri Dergisi 15/3 (September 1, 2026): 1293-1303. https://doi.org/10.17798/bitlisfen.1892953.
JAMA
1.Güneş MŞ. Interpretable Machine Learning for Daily Streamflow Using Gam And Xgboost With Shap-Based Analysis. Bitlis Eren Üniversitesi Fen Bilimleri Dergisi. 2026;15:1293–1303.
MLA
Güneş, Mehmet Şamil. “Interpretable Machine Learning for Daily Streamflow Using Gam And Xgboost With Shap-Based Analysis”. Bitlis Eren Üniversitesi Fen Bilimleri Dergisi, vol. 15, no. 3, Sept. 2026, pp. 1293-0, doi:10.17798/bitlisfen.1892953.
Vancouver
1.Mehmet Şamil Güneş. Interpretable Machine Learning for Daily Streamflow Using Gam And Xgboost With Shap-Based Analysis. Bitlis Eren Üniversitesi Fen Bilimleri Dergisi. 2026 Sep. 1;15(3):1293-30. doi:10.17798/bitlisfen.1892953

Bitlis Eren University

Journal of Science Editor

Bitlis Eren University Graduate Institute

Bes Minare Mah. Ahmet Eren Bulvari, Merkez Kampus, 13000 BITLIS

E-mail: fbe@beu.edu.tr