Skip to main content

Advertisement

Log in

Machine Learning For Groundwater Quality Classification: A Step Towards Economic and Sustainable Groundwater Quality Assessment Process

  • Published:
Water Resources Management Aims and scope Submit manuscript

Abstract

Evaluation of water quality is essential for protecting both the environment and human wellbeing. There is a paucity of research on using machine learning for classification of groundwater used for irrigation with fewer input parameters and still getting satisfactory results, despite earlier studies exploring its application in evaluating water quality. Studies are required to determine the feasibility of using machine learning to classify groundwater used for irrigation using minimal input parameters. In this study, we developed machine learning models to simulate the Irrigation Water Quality Index (IWQI) and an economic model that used an optimal number of inputs with the highest possible accuracy. We utilized eight classification algorithms, including the LightGBM classifier, CatBoost, Extra Trees, Random Forest, Gradient Boosting classifiers, Support Vector Machines, Multi-Layer Perceptrons, and K-Nearest Neighbors Algorithm. Two scenarios were considered, the first using six inputs, including conductivity, chloride (\(\mathrm{Cl}^{-}\)), bicarbonate (\(\mathrm{HCO}_3{}^{-}\)), sodium (\(\mathrm{Na}^{+}\)), calcium (\(\mathrm{Ca}^{2+}\)), and magnesium (\(\mathrm{Mg}^{2+}\)), and the second using three parameters, including total hardness (TH), chloride (\(\mathrm{Cl}^{-}\)), and sulfate (\({\mathrm{SO}_4{}^{2-}}\)) that were selected based on the Mutual Information (MI) result. The models achieved satisfactory performance, with the LightGBM classifier as the best model, yielding a 91.08% F1 score using six inputs, and the Extra Trees classifier as the best model, yielding an 86.30% F1 score using three parameters. Our findings provide a valuable contribution to the development of accurate and efficient machine learning models for water quality evaluation.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Fig. 1
Fig. 2
Fig. 3
Fig. 4
Fig. 5
Fig. 6
Fig. 7

Similar content being viewed by others

Data Availibility

The study’s data can be accessed by interested parties upon request, subject to ethical, legal, practical, and technical constraints.

References

Download references

Acknowledgements

The authors would like to express their gratitude to all anonymous referees for their helpful remarks and opinions. We are grateful for the assistance given by the Directorate of Scientific Research and Technological Development (DGRST) and the Algerian project PRFU: Classification of Big Data Using Machine Learning Approaches, project number C00L07UN070120220004.

Funding

The authors declare that this study received no financial support or funding.

Author information

Authors and Affiliations

Authors

Contributions

The study was designed by all authors, with Aymen Zegaar handling data preparation and results analysis. Co-authors Pr. Samira Ounoki and Dr. Abdelmoutia Telli edited and reviewed the final manuscript.

Corresponding author

Correspondence to Aymen Zegaar.

Ethics declarations

Ethical Responsibilities of Authors

The author declares that there are no conflicts of interest regarding the research project.

Conflict of Interest

The authors have complied with the Instructions for Authors’ "Ethical Responsibilities of Authors" and acknowledge that authorship cannot be altered, except for minor changes, once the paper is submitted.

Additional information

Publisher's Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Rights and permissions

Springer Nature or its licensor (e.g. a society or other partner) holds exclusive rights to this article under a publishing agreement with the author(s) or other rightsholder(s); author self-archiving of the accepted manuscript version of this article is solely governed by the terms of such publishing agreement and applicable law.

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Zegaar, A., Ounoki, S. & Telli, A. Machine Learning For Groundwater Quality Classification: A Step Towards Economic and Sustainable Groundwater Quality Assessment Process. Water Resour Manage 38, 621–637 (2024). https://doi.org/10.1007/s11269-023-03690-y

Download citation

  • Received:

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s11269-023-03690-y

Keywords

Navigation