Enhancing sustainability in a sequential batch reactor for wastewater treatment: soft sensor-based ammonia prediction with PSO-LSTM and random forest model

Abstract

Water quality monitoring in wastewater treatment is crucial due to its significant impact on environmental sustainability and public health. Small wastewater treatment facilities often encounter challenges such as limited resources, lack of advanced monitoring technologies, and difficulties in maintaining effluent quality standards. This study aims to address these challenges by proposing an integrated methodology that employs a particle swarm optimization-based long short-term memory (PSO-LSTM) model in conjunction with a random forest regression (RFR) model for the prediction of ammonia nitrogen (NH3-N) concentrations. The methodology integrates the strengths of both models to enhance predictive accuracy and stability. The PSO algorithm optimizes hyperparameters of the LSTM, effectively searching the solution space to balance exploration and exploitation. This optimization facilitates the handling of complex non-linear data patterns while improving computational efficiency. The integrated PSO-LSTM-RFR approach demonstrated superior performance on the test set, achieving a coefficient of determination (R2) of 0.9105, a root mean square error (RMSE) of 2.9706, and a mean absolute error (MAE) of 2.5430. The results confirm that the proposed methodology significantly enhances predictive performance due to the complementary advantages of the models. The synergy between RFR and LSTM allows for effective handling of non-linear relationships and sequential data trends, leading to more accurate predictions. The findings underscore the potential of the integrated PSO-LSTM-RFR model to enhance predictive efficacy in wastewater treatment processes, ultimately contributing to more effective water quality management strategies.

Graphical abstract: Enhancing sustainability in a sequential batch reactor for wastewater treatment: soft sensor-based ammonia prediction with PSO-LSTM and random forest model

Article information

Article type
Paper
Submitted
20 Jan 2025
Accepted
02 May 2025
First published
02 May 2025

Environ. Sci.: Water Res. Technol., 2025, Advance Article

Enhancing sustainability in a sequential batch reactor for wastewater treatment: soft sensor-based ammonia prediction with PSO-LSTM and random forest model

Q. Cheng, L. Houtao, Z. Jin, H. Fangqian, J. Jiang, L. Qianglin and W. Mingxi, Environ. Sci.: Water Res. Technol., 2025, Advance Article , DOI: 10.1039/D5EW00063G

To request permission to reproduce material from this article, please go to the Copyright Clearance Center request page.

If you are an author contributing to an RSC publication, you do not need to request permission provided correct acknowledgement is given.

If you are the author of this article, you do not need to request permission to reproduce figures and diagrams provided correct acknowledgement is given. If you want to reproduce the whole article in a third-party publication (excluding your thesis/dissertation for which permission is not required) please go to the Copyright Clearance Center request page.

Read more about how to correctly acknowledge RSC content.

Social activity

Spotlight

Advertisements