Combining machine learning models by stacking ensemble algorithms for robust nitrate concentration modeling
摘要
Nitrate is a key element that causes groundwater contamination through various processes. Agricultural practices are the primary cause of the increasing nitrate inflow into groundwater. This study aims to evaluate the effectiveness of various machine learning algorithms in modeling nitrate concentration and generating spatial distribution maps of nitrate concentration in groundwater. For this objective, we use four models: gene expression programming (GEP), multiple linear regression (MLR), group method of data handling (GMDH), and extreme learning machine (ELM). The outcomes of these models were then used to develop a stacking ensemble model. The first learners in this model were ELM, GMDH, GEP, and MLR, whereas the second learner was Bi-LSTM. To do this, information from 485 samples of water taken every month for five years (2018–2023) and whose physical and chemical properties were checked using standard methods was used. Additionally, the principal component analysis (PCA) method was used to reduce the dimensionality of the original feature space and select the best input variables. To evaluate different models, the root mean square error(RMSE), mean absolute error(MAE), Nash–Sutcliffe efficiency (NSE), Willmott’s index of agreement (WI), Legate and McCabe’s index (LMI), coefficient of determination (