Submitted:
07 May 2023
Posted:
08 May 2023
You are already at the latest version
Abstract
Keywords:
1. Introduction
2. Materials and Methods
2.1. Plant description
2.2. Long Short-Term Memory (LSTM) network
2.3. AutoRegressive model with eXogenous input (ARX) Model
2.3.1. Data conditioning
2.3.2. Model structure estimation
2.3.3. Parameter estimation
2.4. Datasets description
2.5. Performance Indexes
- Index of fitting (): normalized index that indicates how much the prediction matches the real data. For a perfect prediction it is equal to 100% and it can also be negative. It is expressed as:
- Pearson correlation coefficient (): it measures the linear correlation between two variables and has a value between -1 (total negative correlation) and +1 (total positive correlation).
- Root Mean Squared Error (): it shows the Euclidean distance of the predictions from the real data using.
3. Results
3.1. LSTM results
3.2. ARX
3.3. Discussion
4. Conclusions
Author Contributions
Funding
Data Availability Statement
Conflicts of Interest
Abbreviations
| ASM1 | Activated Sludge Model No. 1 |
| ASM2 | Activated Sludge Model No. 2 |
| ASM3 | Activated Sludge Model No. 3 |
| ARX | AutoRegressive eXogenous |
| CAS | Conventional Activated Sludge |
| COD | Chemical Oxygen Demand |
| DEN | Denitrification |
| LSTM | Long Short-Term Memory |
| MSE | Mean Squared Error |
| NN | Neural Network |
| OX-NIT | Oxidation and nitrification |
| RMSE | Root Mean Squared Error |
| RNN | Recurrent Neural Network |
| SCADA | Supervisory Control And Data Acquisition |
| TAMR | Thermophilic Aerobic Membrane Reactor |
| WWTP | WasteWater Treatment Plant |
References
- Hamitlon, R.; Braun, B.; Dare, R.; Koopman, B.; Svoronos, S.A. Control issues and challenges in wastewater treatment plants. IEEE control systems magazine 2006, 26, 63–69. [Google Scholar]
- Gernaey, K.V.; Van Loosdrecht, M.C.; Henze, M.; Lind, M.; Jørgensen, S.B. Activated sludge wastewater treatment plant modelling and simulation: state of the art. Environmental modelling & software 2004, 19, 763–783. [Google Scholar]
- Henze, M.; Grady Jr, C.L.; Gujer, W.; Marais, G.; Matsuo, T. A general model for single-sludge wastewater treatment systems. Water Research 1987, 21, 505–515. [Google Scholar] [CrossRef]
- Gujer, W.; Henze, M.; Mino, T.; Matsuo, T.; Wentzel, M.; Marais, G. The Activated Sludge Model No. 2: Biological phosphorus removal. Water Science and Technology 1995, 31, 1–11, Modelling and Control of Activated Sludge Processes. [Google Scholar] [CrossRef]
- Gujer, W.; Henze, M.; Mino, T.; Van Loosdrecht, M. Activated sludge model No. 3. Water Science and Technology 1999, 39, 183–193, Modelling and microbiology of activated sludge processes. [Google Scholar] [CrossRef]
- Nelson, M.; Sidhu, H.S. Analysis of the activated sludge model (number 1). Applied Mathematics Letters 2009, 22, 629–635. [Google Scholar] [CrossRef]
- Nelson, M.; Sidhu, H.S.; Watt, S.; Hai, F.I. Performance analysis of the activated sludge model (number 1). Food and Bioproducts Processing 2019, 116, 41–53. [Google Scholar] [CrossRef]
- Gujer, W. Activated sludge modelling: past, present and future. Water Science and Technology 2006, 53, 111–119. [Google Scholar] [CrossRef] [PubMed]
- Sin, G.; Al, R. Activated sludge models at the crossroad of artificial intelligence—A perspective on advancing process modeling. Npj Clean Water 2021, 4, 1–7. [Google Scholar] [CrossRef]
- Hreiz, R.; Latifi, M.; Roche, N. Optimal design and operation of activated sludge processes: State-of-the-art. Chemical Engineering Journal 2015, 281, 900–920. [Google Scholar] [CrossRef]
- Collivignarelli, M.C.; Abbà, A.; Bertanza, G.; Setti, M.; Barbieri, G.; Frattarola, A. Integrating novel (thermophilic aerobic membrane reactor-TAMR) and conventional (conventional activated sludge-CAS) biological processes for the treatment of high strength aqueous wastes. Bioresource technology 2018, 255, 213–219. [Google Scholar] [CrossRef] [PubMed]
- Collivignarelli, M.; Abbà, A.; Frattarola, A.; Manenti, S.; Todeschini, S.; Bertanza, G.; Pedrazzani, R. Treatment of aqueous wastes by means of Thermophilic Aerobic Membrane Reactor (TAMR) and nanofiltration (NF): Process auditing of a full-scale plant. Environmental monitoring and assessment 2019, 191, 1–17. [Google Scholar] [CrossRef] [PubMed]
- Collivignarelli, M.C.; Abbà, A.; Bertanza, G. Why use a thermophilic aerobic membrane reactor for the treatment of industrial wastewater/liquid waste? Environmental Technology 2015, 36, 2115–2124. [Google Scholar] [CrossRef] [PubMed]
- Frącz, P. Nonlinear modeling of activated sludge process using the Hammerstein-Wiener structure. In Proceedings of the E3S Web of Conferences. EDP Sciences; 2016; Vol. 10, p. 00119. [Google Scholar]
- Hochreiter, S.; Schmidhuber, J. Long short-term memory. Neural computation 1997, 9, 1735–1780. [Google Scholar] [CrossRef] [PubMed]
- Gers, F.A.; Schmidhuber, J.; Cummins, F. Learning to forget: Continual prediction with LSTM. Neural computation 2000, 12, 2451–2471. [Google Scholar] [CrossRef] [PubMed]
- Gers, F.A.; Schraudolph, N.N.; Schmidhuber, J. Learning precise timing with LSTM recurrent networks. Journal of machine learning research 2002, 3, 115–143. [Google Scholar]
- Pascanu, R.; Mikolov, T.; Bengio, Y. On the difficulty of training recurrent neural networks. In Proceedings of the International conference on machine learning. PMLR; 2013; pp. 1310–1318. [Google Scholar]
- Greff, K.; Srivastava, R.K.; Koutník, J.; Steunebrink, B.R.; Schmidhuber, J. LSTM: A search space odyssey. IEEE transactions on neural networks and learning systems 2016, 28, 2222–2232. [Google Scholar] [CrossRef] [PubMed]
- Pham, V.; Bluche, T.; Kermorvant, C.; Louradour, J. Dropout improves recurrent neural networks for handwriting recognition. In Proceedings of the 2014 14th international conference on frontiers in handwriting recognition. IEEE; 2014; pp. 285–290. [Google Scholar]
- Ljung, L. (Ed.) System Identification (): Theory for the User, 2Nd Ed.; Prentice Hall PTR: Upper Saddle River, NJ, USA, 1999. [Google Scholar]
- Söderström, T.; Stoica, P. System Identification; Prentice Hall PTR: Upper Saddle River, NJ, USA, 1989. [Google Scholar]
- Godfrey, K. Correlation methods. Automatica 1980, 16, 527–534. [Google Scholar] [CrossRef]
- O’Malley, T.; Bursztein, E.; Long, J.; Chollet, F.; Jin, H.; Invernizzi, L.; et al. KerasTuner. https://github.com/keras-team/keras-tuner, 2019.
- Abadi, M.; Agarwal, A.; Barham, P.; Brevdo, E.; Chen, Z.; Citro, C.; Corrado, G.S.; Davis, A.; Dean, J.; Devin, M.; et al. TensorFlow: Large-Scale Machine Learning on Heterogeneous Systems, 2015. Software available from tensorflow.org.
- Chollet, F.; et al. Keras. https://keras.io, 2015.
- The MathWorks Inc., Natick, Massachusetts, United States. System Identification Toolbox version: 9.16 (R2022a), 2022.





| signal | component | range | selected |
|---|---|---|---|
| order () | 10 - 17 | 12 | |
| order () | 2 - 12 | 6 | |
| delay () | 0 - 5 | 2 | |
| order () | 2 - 12 | 3 | |
| delay () | 0 - 10 | 5 | |
| order () | 3 - 9 | 7 | |
| delay () | 0 - 10 | 6 |
| Dataset name | Start date | End date |
|---|---|---|
| Dataset 1 | 06/12/2021 | 11/12/2021 |
| Dataset 2 | 15/12/2021 | 20/12/2021 |
| Dataset 3 | 21/12/2021 | 26/12/2021 |
| Dataset 4 | 27/12/2021 | 01/01/2022 |
| Dataset 5 | 01/03/2022 | 06/03/2022 |
| Dataset 6 | 01/05/2022 | 06/05/2022 |
| Index | ARX | LSTM |
|---|---|---|
| 41.20% | 60.56% | |
| 0.833 | 0.921 | |
| 0.307 | 0.206 |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2023 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).