5 CONCLUSIONS
The study successfully demonstrated the advantages
of incorporating exogenous state variables into an
LSTM-based simulator for wastewater treatment. The
improved model, particularly the f
B
, significantly en-
hanced prediction accuracy and robustness. The key
conclusions are:
• Enhanced Accuracy: Including exogenous state
variables markedly improved the model’s accu-
racy, as evidenced by lower MSE and DTW val-
ues across the year.
• Error Mitigation: Using actual values of exoge-
nous state variables at each simulation step re-
duced MSE by 55% and DTW by 34%, effectively
mitigating the compounding of prediction errors
and leading to more reliable simulations.
• Broad Applicability: The model demonstrated
robust performance across different seasonal con-
ditions, highlighting its potential applicability in
diverse operational settings.
• Future Work: Future research could explore
integrating more external factors and applying
similar methods to other aspects of wastewater
treatment. Additionally, attention-based models
and GPU training, as suggested by (Mohammadi
et al., 2024c), could enhance efficiency and reduce
computational time.
The improved LSTM-based simulator represents
a significant advancement in wastewater treatment
modeling. It offers a powerful tool for optimiz-
ing control strategies and enhancing operational ef-
ficiency.
ACKNOWLEDGEMENTS
The RecaP project has received funding from the Eu-
ropean Union’s Horizon 2020 research and innovation
programme under the Marie Skłodowska-Curie grant
agreement No 956454. Disclaimer: This publication
reflects only the author’s view; the Research Execu-
tive Agency of the European Union is not responsible
for any use that may be made of this information.
REFERENCES
Brockman, G., Cheung, V., Pettersson, L., Schneider, J.,
Schulman, J., Tang, J., and Zaremba, W. (2016). Ope-
nai gym. arXiv preprint arXiv:1606.01540.
Gao, P., Yang, X., Zhang, R., Guo, P., Goulermas, J. Y.,
and Huang, K. (2023). Egpde-net: Building contin-
uous neural networks for time series prediction with
exogenous variables.
Goodwin, G. C., Graebe, S. F., Salgado, M. E., et al. (2001).
Control system design, volume 240. Prentice Hall Up-
per Saddle River.
Gujer, W., Henze, M., Mino, T., Matsuo, T., Wentzel, M. C.,
and Marais, G. (1995). The activated sludge model no.
2: biological phosphorus removal. Water science and
technology, 31(2):1–11.
Hansen, L. D., Stentoft, P. A., Ortiz-Arroyo, D., and Dur-
devic, P. (2024). Exploring data quality and sea-
sonal variations of n2o in wastewater treatment: a
modeling perspective. Water Practice & Technology,
19(3):1016–1031.
Hansen, L. D., Stokholm-Bjerregaard, M., and Durdevic, P.
(2022). Modeling phosphorous dynamics in a wastew-
ater treatment process using bayesian optimized lstm.
Computers & Chemical Engineering, 160:107738.
Hespanha, J. P. (2018). Linear systems theory. Princeton
university press.
Hochreiter, S. and Schmidhuber, J. (1997a). Long Short-
Term Memory. Neural Computation, 9(8):1735–1780.
Hochreiter, S. and Schmidhuber, J. (1997b). Long short-
term memory. Neural Computation, 9:1735–1780.
Kr
¨
uger A/S (2023). Hubgrade performance plant. https:
//www.kruger.dk/english/hubgrade-advanced-onlin
e-control. Accessed: 2023-11-30.
Le Guen, V. and Thome, N. (2019). Shape and time dis-
tortion loss for training deep time series forecasting
models. Advances in neural information processing
systems, 32.
Mohammadi, E., Ortiz-Arroyo, D., Stokholm-Bjerregaard,
M., Hansen, A. A., and Durdevic, P. (2024a). Im-
proved long short-term memory-based wastewater
treatment simulators for deep reinforcement learning.
arXiv preprint arXiv:2403.15091.
Mohammadi, E., Rani, A., Stokholm-Bjerregaard, M.,
Ortiz-Arroyo, D., and Durdevic, P. (2024b). Wastew-
ater treatment plant data for nutrient removal system.
Mohammadi, E., Stokholm-Bjerregaard, M., Hansen, A. A.,
Nielsen, P. H., Ortiz-Arroyo, D., and Durdevic, P.
(2024c). Deep learning based simulators for the
phosphorus removal process control in wastewater
treatment via deep reinforcement learning algorithms.
Engineering Applications of Artificial Intelligence,
133:107992.
Paszke, A., Gross, S., Massa, F., Lerer, A., Bradbury, J.,
Chanan, G., Killeen, T., Lin, Z., Gimelshein, N.,
Antiga, L., et al. (2019). Pytorch: An imperative style,
high-performance deep learning library. Advances in
neural information processing systems, 32.
Venkatraman, A., Hebert, M., and Bagnell, J. (2015). Im-
proving multi-step prediction of learned time series
models. In Proceedings of the AAAI Conference on
Artificial Intelligence, volume 29.
Multi-Step Simulation Improvement for Time Series Using Exogenous State Variables
659