Development and Optimization of an Automated Industrial Wastewater Treatment System Using PLC and LSTM Neural Network
Source abstract
Abstract
This study presents an automated industrial wastewater treatment system based on Siemens programmable logic controller (PLC) that optimizes reagent dosing, aeration, sedimentation, and sludge separation. The system uses accurate pH sensors, dosing pumps, solenoid valves, and a human–machine interface (HMI), and real-time monitoring is provided by a Teltonika TRB255 communication module (<45 sec. response time). As a result, the treatment cycle time was reduced by 31%, reagent consumption by 30%, and operator intervention was reduced from 95 to less than 15 min per day, achieving a pollutant removal efficiency of 89%. A two-layer LSTM architecture developed on the PyTorch platform predicts pH (6.7–7.7), temperature (12–20 °C), and reagent consumption (~9.8 kg/cycle). The model was trained with 240 h of data (64 neurons, learning rate 0.001). The validation loss remained stable, indicating reliable learning. The study confirms that AI-based automation provides greater process stability, meets environmental standards, and promotes sustainable resource use. The scientific novelty of this study is the application of an advanced long short-term memory (LSTM) model to predict wastewater treatment process parameters, allowing for accurate prediction of pH, temperature, flow, and reagent consumption, etc. This provides an opportunity to optimize the process and reduce costs, while ensuring high treatment efficiency and stability. Although there are several publications on the application of artificial intelligence models in the field of industrial wastewater treatment, this is a relatively new field, and there are little data in the scientific literature.
Source: crossref · Quality: baseline
Research context
OpenAlex topics: Industrial Automation and Control Systems · Water Quality Monitoring and Analysis · Water Quality Monitoring Technologies
SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.
Affiliations
Centre of Engineering Studies, Kauno kolegija Higher Education Institution, Pramones Ave. 20, LT-50468 Kaunas, Lithuania
References (38)
Show source-provided references
1. El bied, O., Turbí, M.A.T., Garrido, M.G., Cano, Á.F., and Acosta, J.A. (2024). Reducing Methane, Carbon Dioxide, and Ammonia Emissions from Stored Pig Slurry Using Bacillus-Biological Additives and Aeration. Environments, 11.10.3390/environments11080171 ↗
2. Adamovic, S., Milosevic, R., and Prica, M. (2025). Optimizing batch electrocoagulation-flotation for emerging industrial wastewaters: A review on the state-of-the-art. Desalination Water Treat., 321.10.1016/j.dwt.2024.100982 ↗
3. Chavhan, N., Bhattad, R., Khot, S., Patil, S., Pawar, A., Pawar, T., and Gawli, P. (2025). APAH: An autonomous IoT driven real-time monitoring system for Industrial wastewater. Digit. Chem. Eng., 14.10.1016/j.dche.2025.100217 ↗
4. Su, P., Li, L., Zhou, H., Li, H., Zhu, W., He, H., Ai, J., and Zhang, W. (2025). Environmental and economic sustainability of the novel photovoltaic industrial wastewater treatment systems from life cycle perspective. Environ. Res., 272.10.1016/j.envres.2025.121157 ↗
5. Sedaghat, O., Bahramifar, N., Nowrouzi, M., and Younesi, H. (2025). Life cycle assessment of industrial wastewater treatment: Evaluating the environmental impact of electrocoagulation technologies. J. Water Process. Eng., 71.10.1016/j.jwpe.2025.107257 ↗
6. Effect of the wastewater treatment system and Industry 4.0 implementation for a sustainable tyre production industry10.1016/j.aej.2024.11.105 ↗
7. A Comprehensive Review on Various Phases of Wastewater Technologies: Trends and Future Perspectives10.3390/eng5040138 ↗
8. Dutta, D., Arya, S., and Kumar, S. (2021). Industrial wastewater treatment: Current trends, bottlenecks, and best practices. Chemosphere, 285.10.1016/j.chemosphere.2021.131245 ↗
9. A state-of-the-art review on wastewater treatment techniques: The effectiveness of adsorption method10.1007/s11356-021-12395-x ↗
10. UNESCOWorldWater Assessment Programme (2023). The United Nations World Water Development Report 2023: Partnerships and Cooperation for Water, UN.
11. A comprehensive review on comparison among effluent treatment methods and modern methods of treatment of industrial wastewater effluent from different sources10.1007/s13201-022-01594-7 ↗
12. Wastewater treatment using hybrid treatment schemes based on cavitation and Fenton chemistry: A review10.1016/j.ultsonch.2013.07.009 ↗
13. Environmental assessment of an Indian municipal wastewater treatment plant in Rajasthan10.1080/19397038.2020.1862349 ↗
14. Masłoń, A., Czarnota, J., Szczyrba, P., Szaja, A., Szulżyk-Cieplak, J., and Łagód, G. (2024). Assessment of Energy Self-Sufficiency of Wastewater Treatment Plants—A Case Study from Poland. Energies, 17.10.3390/en17051164 ↗
15. Abujazar, M.S.S., Karaagaç, S.U., Amr, S.S.A., Alazaiza, M.Y., and Bashir, M.J. (2022). Recent advancement in the application of hybrid coagulants in coagulation-flocculation of wastewater: A review. J. Clean. Prod., 345.10.1016/j.jclepro.2022.131133 ↗
16. Lee, E., Min, K.J., Choi, H., and Park, K.Y. (2024). Impact of dewatering inorganic coagulants on anaerobic digestion treating food waste leachate. Bioresour. Technol., 393.10.1016/j.biortech.2023.130136 ↗
17. Tolkou, K., and Kyzas, Z. (2024). Advanced Technologies of Water and Wastewater Treatment. Environments, 11.10.3390/environments11120270 ↗
18. Aragon, A.G., Cárdenas Sánchez, J.A., Zimeri, C., Shim, E., Fang, X., and Young, K.R.L. (2024). TiO2-Coated Meltblown Nonwoven Fabrics Prepared via Atomic Layer Deposition for the Inactivation of E. coli as a Model Photocatalytic Drinking Water Treatment System. Environments, 11.10.3390/environments11050092 ↗
19. Skempi, D.J., Kouvelis, K., Petala, A., Bampos, G., and Frontistis, Z. (2023). Heterogeneous Activation of Persulfate by Nickel Oxide/Strontium Carbonate Composite for Sulfamethoxazole Degradation in Water. Environments, 10.10.3390/environments10080147 ↗
20. Vineyard, D., Karthikeyan, K.G., and Barak, P. (2024). BioWin Modeling of CalPrex Phosphorus Recovery from Wastewater Predicts Substantial Nuisance Struvite Reduction. Environments, 11.10.3390/environments11030048 ↗
21. Pandey, S., Twala, B., Singh, R., Gehlot, A., Singh, A., Montero, E., and Priyadarshi, N. (2022). Wastewater Treatment with Technical Intervention Inclination towards Smart Cities. Sustainability, 14.10.3390/su141811563 ↗
22. Shehata, N., Mohamed, O.A., Sayed, E.T., Abdelkareem, M.A., and Olabi, A.G. (2022). Geopolymer concrete as green building materials: Recent applications, sustainable development and circular economy potentials. Sci. Total Environ., 836.10.1016/j.scitotenv.2022.155577 ↗
23. Rout, P.R., Mohanty, A., Sharma, A., Miglani, M., Liu, D., and Varjani, S. (2022). Micro-and nanoplastics removal mechanisms in wastewater treatment plants: A review. J. Hazard. Mater. Adv., 6.10.1016/j.hazadv.2022.100070 ↗
24. Sustainable development indicators for wastewater systems–Researchers and indicator users in a co-operative case study10.1016/j.resconrec.2004.06.006 ↗
25. The process towards a global pact for the environment at the United Nations: From legal ambition to political dilution10.1111/reel.12331 ↗
26. Industry 4.0: A survey on technologies, applications and open research issues
27. Direct potable reuse microbial risk assessment methodology: Sensitivity analysis and application to State log credit allocations10.1016/j.watres.2017.10.034 ↗
28. Silva, J.A. (2023). Wastewater Treatment and Reuse for Sustainable Water Resources Management: A Systematic Literature Review. Sustainability, 15.10.3390/su151410940 ↗
29. Zero Fenton sludge discharge: A review on reuse approach during wastewater treatment by the advanced oxidation process10.1007/s13762-020-03121-0 ↗
30. Occurrence of contaminants in drinking water sources and the potential of biochar for water quality improvement: A review10.1080/10643389.2019.1629803 ↗
31. LSTM-Based Wastewater Treatment Plants Operation Strategies for Effluent Quality Improvement10.1109/ACCESS.2019.2950852 ↗
32. Gulshin, I., and Kuzina, O. (2025). Optimization of Wastewater Treatment Through Machine Learning-Enhanced Supervisory Control and Data Acquisition: A Case Study of Granular Sludge Process Stability and Predictive Control. Automation, 6.10.3390/automation6010002 ↗
33. Farhi, N., Kohen, E., Mamane, H., and Shavitt, Y. (2021). Prediction of wastewater treatment quality using LSTM neural network. Environ. Technol. Inno., 23.10.1016/j.eti.2021.101632 ↗
34. Multiple objective optimal control of integrated urban wastewater systems10.1016/j.envsoft.2007.06.003 ↗
35. Nakkasunchi, S., Hewitt, N.J., Zoppi, C., and Brandoni, C. (2021). A review of energy optimization modelling tools for the decarbonisation of wastewater treatment plants. J. Clean. Prod., 279.10.1016/j.jclepro.2020.123811 ↗
36. Garrido-Baserba, M., Barnosell, I., Molinos-Senante, M., Sedlak, D.L., Rabaey, K., Schraa, O., Verdaguer, M., Rosso, D., and Poch, M. (2022). The third route: A techno-economic evaluation of extreme water and wastewater decentralization. Water Res., 218.10.1016/j.watres.2022.118408 ↗
37. Asghari, F., Piadeh, F., Egyir, D., Yousefi, H., Rizzuto, J.P., Campos, L.C., and Behzadian, K. (2023). Resilience Assessment in UrbanWater Infrastructure: A Critical Review of Approaches, Strategies and Applications. Sustainability, 15.10.20944/preprints202306.1348.v1 ↗
38. Nonlinear dynamic soft sensor modeling with supervised long short-term memory network10.1109/TII.2019.2902129 ↗