Related Experiment Video
Updated: May 4, 2026

Comparison of Scale in a Photosynthetic Reactor System for Algal Remediation of Wastewater
Published on: March 6, 2017
Integrating statistical and machine learning approaches to characterise and model the performance of a full-scale
S A Sousa1, J M Dias2, J S Vilaça3
1LEPABE - Laboratory for Process Engineering, Environment, Biotechnology and Energy, ALiCE - Associate Laboratory in Chemical Engineering, Department of Chemical and Biological Engineering, Faculty of Engineering, University of Porto, Rua Dr. Roberto Frias, 4200-465 Porto, Portugal.
Abstract:
Wastewater treatment plants operate under highly variable influent conditions, challenging process control and regulatory compliance. This study proposes a machine learning framework based on threshold artificial neural networks optimised with genetic algorithms (ANN-GA) to model effluent quality in a municipal treatment plant located in northern Portugal. Unlike conventional ANN approaches, the threshold structure divides the data into two operational regimes, enabling the model to capture regime-dependent behaviour in treatment performance. The three-year dataset included influent characteristics, operational parameters, and effluent quality indicators. Correlation analysis and principal component analysis were applied to characterise data variability and guide feature selection. Despite high influent variability, the system effectively removed organic matter and solids and reduced seasonal fluctuations, whereas nutrient removal remained limited. The ANN-GA models effectively described the removal of all regulated pollutants (R2 values of 0.78-0.87 and RMSE of 0.94-12.5 mg L-1), capturing non-linear and regime-dependent behaviours and outperforming simpler models. GA optimised pollutant-specific ANN structures, improving both accuracy and interpretability. The models consistently identified influent chemical oxygen demand, ammonium-nitrogen and aeration as key variables controlling pollutant removal. Organic matter removal was strongly influenced by the balance between influent composition, aeration and hydraulic conditions. Distinct operational regimes were identified, with influent suspended solids, aeration and flow rate governing nitrogen, phosphorus and chemical oxygen demand dynamics, respectively. Thus, the proposed framework enabled the identification of key drivers and operational thresholds influencing effluent quality, supporting improved process understanding and optimisation of wastewater treatment processes.
Related Concept Videos
Design Example: Creating a Hydraulic Model of a Dam Spillway
Mechanistic Models: Compartment Models in Individual and Population Analysis
Bioreactor Design and Operational System
Methods of Medium Optimization

