Accurate and interpretable prediction of chemical oxygen demand using explainable boosting algorithms with SHAP analysis

K Khaled Merabet S Sungwon Kim S Salim Heddam F Fabio Di Nunno F Francesco Granata O Ozgur Kisi R Rana Muhammad Adnan M Mohammad Zounemat-Kermani C Christoph Külls

Abstract

Abstract Accurate prediction of Chemical Oxygen Demand (COD) is vital for effective water quality management and pollution control. This study compares six ensemble boosting models, AdaBoost, CatBoost, XGBoost, LightGBM, HistGBRT, and NGBoost, for estimating COD from multiple water quality parameters, including pH, dissolved oxygen, suspended solids, and specific conductance. Data from two monitoring stations in South Korea (Toilchun and Hwangji) were used to train and validate the models. Model performance was evaluated using RMSE, MAE, R, NSE, and PBIAS, while interpretability was assessed through SHapley Additive exPlanations (SHAP). Results showed that NGBoost achieved the highest predictive accuracy at Toilchun (R = 0.979, NSE = 0.958, RMSE = 0.397 mg/L), while CatBoost performed best at Hwangji (R = 0.861, NSE = 0.733, RMSE = 0.477 mg/L). As NGBoost provides predictive probability distributions rather than single estimates, its results also reflect model uncertainty, supporting a more robust quantification of COD variability. SHAP analysis identified total organic carbon (TOC), biochemical oxygen demand (BOD₅), and suspended solids (SS) as the most influential variables controlling COD dynamics.

Article Details

Volume / Issue Vol. 16, Issue 1
Published February 13, 2026
ISSN 2045-2322
Publisher Nature Portfolio

Journal Info

Scientific Reports

Nature Portfolio

ISSN: 2045-2322 Open Access Life Sciences

Authors (9)

K

Khaled Merabet

S

Sungwon Kim

S

Salim Heddam

F

Fabio Di Nunno

F

Francesco Granata

O

Ozgur Kisi

R

Rana Muhammad Adnan

M

Mohammad Zounemat-Kermani

C

Christoph Külls