Machine learning methods for anomaly classification in wastewater treatment plants

J Environ Manage. 2023 Oct 15:344:118594. doi: 10.1016/j.jenvman.2023.118594. Epub 2023 Jul 18.

Abstract

Modern wastewater treatment plants base their biological processes on advanced control systems which ensure compliance with discharge limits and minimize energy consumption responding to information from on-line probes. The correct readings of probes are particularly crucial for intermittent aeration controllers, which rely on real-time measurements of ammonia and oxygen in biological tanks. These data are also an important resource for developing artificial intelligence algorithms that can identify process or sensor anomalies, thus guiding the choices of plant operators and automatic process controllers. However, using anomaly detection and classification algorithms in real-time wastewater treatment is challenging because of the noisy nature of sensor measurements, the difficulty of obtaining labeled real-plant data, and the complex and interdependent mechanisms that govern biological processes. This work aims at thoroughly exploring the performance of machine learning methods in detecting and classifying the main anomalies in plants operating with intermittent aeration. Using oxygen, ammonia and aeration power measurements from a set of plants in Italy, we perform both binary and multiclass classification, and we compare them through a rigorous validation procedure that includes a test on an unknown dataset, proposing a new evaluation protocol. The classification methods explored are support vector machine, multilayer perceptron, random forest, and two gradient boosting methods (LightGBM and XGBoost). The best performance was achieved using the gradient boosting ensemble algorithms, with up to 96% of anomalies detected and up to 84% and 62% of anomalies classified correctly on the first and second datasets respectively.

Keywords: Anomaly detection; Gradient boosting; Intermittent aeration; Multiclass classification; Supervised machine learning; Wastewater treatment plants.

MeSH terms

  • Algorithms
  • Ammonia
  • Artificial Intelligence*
  • Machine Learning
  • Neural Networks, Computer
  • Support Vector Machine
  • Water Purification*

Substances

  • Ammonia