Skip to main navigation Skip to search Skip to main content

Machine Learning Classification of Effluent Quality in Wastewater Treatment

  • Costa Rica Institute of Technology

Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review

Abstract

Efficient wastewater treatment is crucial for protecting both public health and the environment. Traditional monitoring of wastewater treatment plants (WWTPs) often involves considerable amounts of time and resources. This work evaluates machine learning algorithms to predict effluent quality categories based on biological oxygen demand (BOD) values using parameters that could be measured with low-cost sensors such as suspended solids (SS), pH and electrical conductivity (EC). Four algorithms were tested: K-Nearest Neighbors (KNN), Support Vector Machine (SVM), Random Forest (RF) and XGBoost (XGB), to classify effluent quality into two categories: ‘Green’ (BOD < 22 mg/L) or ‘Red’ (BOD ≥ 22 mg/L). Permutation importance analysis identified SS as the most influential variable. Models using only SS as input maintained comparable performance. To address class imbalance, the Synthetic Minority Oversampling Technique (SMOTE) was applied, which led to improved recall values and better identification of ‘Red’ cases (KNN: 0.78, SVC: 0.88, RF: 0.76, XGB: 0.80). The proposed models can be integrated into a real-time monitoring system with SS sensors, which could allow early detection of treatment issues. Prediction capabilities can be further enhanced by using a dataset with a more balanced distribution and refined classification categories, such as green, yellow, and red.

Original languageEnglish
Title of host publicationApplications of Computational Intelligence - 8th IEEE Colombian Conference, ColCACI 2025, Revised Selected Papers
EditorsAlvaro David Orjuela-Cañón, Jesus A Lopez, Oscar J Suarez
PublisherSpringer Science and Business Media Deutschland GmbH
Pages182-192
Number of pages11
ISBN (Print)9783032208996
DOIs
StatePublished - 2026
Event8th IEEE Colombian Conference on Applications of Computational Intelligence, ColCACI 2025 - Armenia, Colombia
Duration: 27 Aug 202529 Aug 2025

Publication series

NameCommunications in Computer and Information Science
Volume2846 CCIS
ISSN (Print)1865-0929
ISSN (Electronic)1865-0937

Conference

Conference8th IEEE Colombian Conference on Applications of Computational Intelligence, ColCACI 2025
Country/TerritoryColombia
CityArmenia
Period27/08/2529/08/25

UN SDGs

This output contributes to the following UN Sustainable Development Goals (SDGs)

  1. SDG 3 - Good Health and Well-being
    SDG 3 Good Health and Well-being

Keywords

  • SMOTE
  • biological oxygen demand
  • environmental engineering
  • k-nearest neighbors
  • random forest
  • support vector machines
  • suspended solids

Fingerprint

Dive into the research topics of 'Machine Learning Classification of Effluent Quality in Wastewater Treatment'. Together they form a unique fingerprint.

Cite this