Reliable prediction of groundwater head is fundamental for sustainable aquifer management, yet the relative contributions of machine learning algorithms and input data representation remain poorly understood. This study systematically compares three widely used models, Extreme Gradient Boosting (XGBoost), Random Forest (RF), and Long ShortTerm Memory Neural Networks (LSTM-NN), using a 26.5-year monitoring record from the Friuli Venezia Giulia Region (Italy). Two complementary analyses were performed: (i) benchmarking models using only historical groundwater head and (ii) evaluating alternative feature representations, including climatic variables, seasonal encoding, polynomial transformations, differenced series, and climate-enhanced engineering. Results show that model performance depends strongly on data representation rather than algorithm choice alone. Under the autoregressive configuration, XGBoost achieved the highest accuracy (R2 = 0.9998), outperforming RF (R2 = 0.9960) and LSTM-NN (R2 = 0.9097). When hydrometeorological and engineered features were incorporated, LSTM-NN became the bestperforming model (R2 = 0.961, RMSE = 87.15, MAE = 59.75), followed by RF (R2 = 0.9454) and XGBoost (R2 = 0.9370). The climate-enhanced dataset consistently produced the highest accuracy by better representing delayed recharge and seasonal groundwater dynamics. These findings demonstrate that feature engineering is as important as algorithm selection and provide practical guidance for developing reliable machine learning models for groundwater forecasting.

Data Representation Shapes the Comparative Performance of XGBoost, Random Forest, and LSTM for Groundwater Head Prediction: A Case Study in Friuli Venezia Giulia, Italy / Theophile, B., Cherubini, C.. - In: WATER. - ISSN 2073-4441. - 18:19(2026), pp. 2390.1-2390.22. [10.3390/w18192390]

Data Representation Shapes the Comparative Performance of XGBoost, Random Forest, and LSTM for Groundwater Head Prediction: A Case Study in Friuli Venezia Giulia, Italy

Claudia Cherubini
Ultimo
2026-01-01

Abstract

Reliable prediction of groundwater head is fundamental for sustainable aquifer management, yet the relative contributions of machine learning algorithms and input data representation remain poorly understood. This study systematically compares three widely used models, Extreme Gradient Boosting (XGBoost), Random Forest (RF), and Long ShortTerm Memory Neural Networks (LSTM-NN), using a 26.5-year monitoring record from the Friuli Venezia Giulia Region (Italy). Two complementary analyses were performed: (i) benchmarking models using only historical groundwater head and (ii) evaluating alternative feature representations, including climatic variables, seasonal encoding, polynomial transformations, differenced series, and climate-enhanced engineering. Results show that model performance depends strongly on data representation rather than algorithm choice alone. Under the autoregressive configuration, XGBoost achieved the highest accuracy (R2 = 0.9998), outperforming RF (R2 = 0.9960) and LSTM-NN (R2 = 0.9097). When hydrometeorological and engineered features were incorporated, LSTM-NN became the bestperforming model (R2 = 0.961, RMSE = 87.15, MAE = 59.75), followed by RF (R2 = 0.9454) and XGBoost (R2 = 0.9370). The climate-enhanced dataset consistently produced the highest accuracy by better representing delayed recharge and seasonal groundwater dynamics. These findings demonstrate that feature engineering is as important as algorithm selection and provide practical guidance for developing reliable machine learning models for groundwater forecasting.
2026
Pubblicato
File in questo prodotto:
File Dimensione Formato  
water-18-02390.pdf

accesso aperto

Tipologia: Documento in Versione Editoriale
Licenza: Creative commons
Dimensione 4.16 MB
Formato Adobe PDF
4.16 MB Adobe PDF Visualizza/Apri
Pubblicazioni consigliate

I documenti in IRIS sono protetti da copyright e tutti i diritti sono riservati, salvo diversa indicazione.

Utilizza questo identificativo per citare o creare un link a questo documento: https://hdl.handle.net/11368/3146618
Citazioni
  • ???jsp.display-item.citation.pmc??? ND
  • Scopus ND
  • ???jsp.display-item.citation.isi??? ND
social impact