Page Header Logo Applied Science and Engineering Progress

Edge-Enabled Digital Twin for Autonomous Low-Latency Dissolved Oxygen Control for Partial Nitritation-Anammox Reactor

Micko Tomas, Zaini Zaini, Zulkarnaini Zulkarnaini, Ardhian Agung Yulianto, Shahrul Ismail

Abstract


Anammox reactors are high-efficiency, energy-saving nitrogen treatment technologies, yet their process stability is highly sensitive to fluctuations in dissolved oxygen (DO). Most wastewater treatment Internet of Things systems remain limited to cloud-based monitoring without low-latency adaptive control or dynamic process representation. This study develops an edge-enabled digital twin for real-time multi-parameter monitoring and closed-loop DO control a partial nitritation-anammox reactor. The system employs an ESP32-S3 as an edge computing node for local acquisition, and monitoring of DO, ORP, pH, water temperature, TDS, room temperature, and humidity, while executing a process model dynamically synchronized with the physical reactor. Field implementation demonstrates stable operation with water temperature of 27.4 ± 0.42 °C, room temperature of 30.8 ± 0.6 °C, relative humidity of 55.2 ± 2.1%, pH of 6.21 ± 0.11, ORP of +295 ± 18 mV, and TDS of 82.6 ± 3.4 ppm. DO was maintained at a setpoint of 0.50 mg/L with ±0.03 mg/L deviation, 0.024 mg/L mean absolute error, 5.2% maximum overshoot, and 20–28 s recovery time. The edge-based control latency of 0.43 s ensures stable aeration regulation independent of cloud connectivity. The novelty lies in integrating a digital twin directly at the edge to enable autonomous DO regulation, enhancing process stability while reducing aeration energy consumption by up to 26% compared with conventional systems.

Keywords



[1] R. Zheng, K. Zhang, L. Kong, and S. Liu, “Research progress and prospect of low-carbon biological technology for nitrate removal in wastewater treatment Frontiers of Environmental Science & Engineering, vol. 18, no. 7, 2024, doi: 10.1007/s11783-024-1840-3.

[2] C. Wang, S. Deng, N. You, Y. Bai, P. Jin, and J. Han, “Pathways of wastewater treatment for resource recovery and energy minimization towards carbon neutrality and circular economy: technological opinions,” Frontiers in Environmental Chemistry, vol. 4, 2023, doi: 10.3389/fenvc.2023.1255092.

[3] S. J. Ponce-Jahen, B. Cercado, E. B. Estrada‐Arriaga, J. R. Rangel‐Mendez, and F. J. Cervantes, “Anammox with alternative electron acceptors: perspectives for nitrogen removal from wastewaters,” Biodegradation, vol. 35, no. 1, pp. 47–70, 2023, doi: 10.1007/s10532-023-10044-3.

[4] Y. Ye et al., “ Research progress on biological denitrification process in wastewater treatment,” Water, vol. 17, no. 4, Art. no. 520, 2025, doi: 10.3390/w17040520.

[5] S. Huang, Y. Fu, H. M. Zhang, C. Wang, C. Zou, and X. Lu, “Research progress of novel bio-denitrification technology in deep wastewater treatment,” Frontiers in Microbiology , vol. 14, Art. no. 1284369, 2023, doi: 10.3389/fmicb.2023.1284369.

[6] J. Drewnowski, B. Szeląg, F. Sabba, M. Piłat-Rożek, A. Piotrowicz, and G. Łagód, “ Innovations in wastewater treatment: Harnessing mathematical modeling and computer simulations with cutting-edge technologies and advanced control systems,” Journal of Ecological Engineering, vol. 24, no. 12, pp. 208–222, 2023, doi: 10.12911/22998993/173076.

[7] K. Wang et al., “ How to provide nitrite robustly for anaerobic ammonium oxidation in mainstream nitrogen removal,” Environmental Science & Technology , vol. 57, no. 51, pp. 21503–21526, 2023, doi: 10.1021/acs.est.3c05600.

[8] J. Lü et al., “Nitrification mainly driven by ammonia-oxidizing bacteria and nitrite-oxidizing bacteria in an anammox-inoculated wastewater treatment system,” AMB Express, vol. 11, no. 1, Art. no. 158, 2021, doi: 10.1186 /s13568-021-01321-6.

[9] Y. Jin, X. Zhang, H. Li, Z. Wu, and W. Zhang, “Rapid partial nitrification reactor start-up and its feasibility as an anammox preprocess,” Research Square, 2023. doi: 10.21203/rs.3.rs-2211722/v1.

[10] Y. Jin, X. Zhang, H. Li, Z. Wu, and W. Zhang, “High-rate partial nitritation as a pretreatment of anammox process,” Environmental Science and Pollution Research, vol. 30, no. 47, pp. 104592–104602, 2023, doi: 10.1007/s11356-023-29663-7.

[11] Y.-H. Shao, Y. Wu, M. Naufal, and J. Wu, “Genome-centered metagenomics illuminates adaptations of core members to a partial Nitritation–Anammox bioreactor under periodic microaeration,” Frontiers in Microbiology , vol. 14, Art. no. 1046769, 2023, doi: 10.3389/fmicb.2023.1046769.

[12] C.-K. Jiang, Y. Deng, X. Zou, B. Siriweera, D. Wu, and G. Chen, “Sulphate reduction, mixed sulphide- and thiosulphate-driven Autotrophic denitrification, NItrification, and Anammox (SANIA) integrated process for sustainable wastewater treatment,” Water Research, vol. 247, Art. no. 120824, 2023, doi: 10.1016/j. watres.2023.120824.

[13] Z. Zulkarnaini, nadiah atsil, H. C. Aribah, P. S. Komala, S. Silvia, and N. Matsuura, “ Diversity of anammox bacteria from landfill treatment plant sludge in tropical area,” Applied Science and Engineering Progress, 2024, vol. 17, no. 2, Art. no. 7323, 2024, doi: 10.14416/j.asep.2024.01.003.

[14] H. He, “Advancing the hybrid membrane aerated biofilm reactor (MABR) process for sustainable biological nutrient removal,” Ph.D. dissertation, Department of Civil and Environmental Engineering, University of Michigan, Ann Arbor, MI, USA, 2023, doi: 10.7302/8391.

[15] O. J. Fisher, Y. Wang, and A. Ahmed, “Making waves: Transforming biofilm-based wastewater treatment using machine learning-driven real-time monitoring,” Water Research, vol. 287, Art. no. 124491, 2025, doi: 10.1016/j.watres.2025.124491.

[16] H. M. Forhad et al., “IoT based real-time water quality monitoring system in water treatment plants (WTPs),” Heliyon, vol. 10, no. 23, Art. no. e40746, 2024, doi: 10.1016/j.heliyon.2024.e40746.

[17] H. Li et al., “Struvite as a sustainable fertilizer: nutrient recovery from corn starch wastewater with minimal sludge production,” Frontiers in Water, vol. 7, Art. no. 1629179, 2025, doi: 10.3389/frwa.2025.1629179.

[18] S. Ansari and V. K. Vidyarthi, “ Use of Internet of Things in water resources applications: Challenges and future directions: A critical review,” Discover Internet of Things, vol. 5, no. 1, Art. no. 193, 2025, doi: 10.1007/s43926-025-00193-7.

[19] Y. Fan et al., “ Mass fabrication and smart deployment of “calibration-free” miniature solid-state potentiometric sensors towards digital water infrastructure,” Research Square, 2023, doi: 10.21203/rs.3.rs-2851694/v1.

[20] K. H. Kaittan and S. J. Mohammed, “ PLC-SCADA automation of inlet wastewater treatment processes: Design, implementation, and evaluation,” Journal Européen des Systèmes Automatisés, vol. 57, no. 3, pp. 787–796, 2024, doi: 10.18280/jesa.570317.

[21] V. Ganthavee and A. P. Trzcinski, “Artificial intelligence and machine learning for the optimization of pharmaceutical wastewater treatment systems: a review,” Environmental Chemistry Letters., vol. 22, no. 5, pp. 2293–2318, 2024, doi: 10.1007/s10311-024-01748-w.

[22] I. Aravindaguru, I. S. T, N. Dhichanadevi, R. KV, and S. AK, “ Streamlining industrial wastewater management through real time IoT cloud monitoring,” in Proceedings of the 2nd International Conference on Electrical, Computer and Communication Technologies (ICECAA), 2023, pp. 23–27, doi: 10.1109 /icecaa58104.2023.10212374.

[23] G. Kannan, V. Gokul, P. Kaviyarasan, and J. Uma, “Intelligent Wastewater Management System with Cloud-Based IOT and Real-Time Control,” in Proceedings of the 10th International Conference on Advanced Computing and Communication Systems (ICACCS), 2024, pp. 498–504, doi: 10.1109 /icaccs60874.2024.10717077.

[24] N. G. Larrakoetxea, B. Sanz, I. Pastor-López, J. García-Barruetabeña, and P. G. Bringas, “ Enhancing real-time processing in Industry 4.0 through the paradigm of edge computing,,” Mathematics, vol. 13, no. 1, Art. no. 29, 2024, doi: 10.3390/math13010029.

[25] T. P. Samanta, “ Demystifying edge computing for real-time applications,” Zenodo (CERN European Organization for Nuclear Research), 2025, doi: 10.5281/zenodo.17652913.

[26] G. D. Monek and S. Fischer, “ Expert twin: A digital twin with an integrated fuzzy-based decision-making module,” Decision Making Applications in Management and Engineering, vol. 8, no. 1, pp. 1–21, 2024, doi: 10.31181/dmame8120251181.

[27] S. Hasan and C. Crawford, “ A new era for digital twins: Progress and industry adoption,” PreprintsOrg, 2025. doi: 10.20944/preprints 202505.0784.v1.

[28] M. N. Khan and I. Ahmad, “ Harnessing digital twins: Advancing virtual replicas for optimized system performance and sustainable innovation,” Babylonian Journal of Mechanical Engineering, vol. 2025, pp. 18–33, 2025, doi: 10.58496/bjme/2025/002.

[29] C. Suarez et al., “Biofilm colonization and succession in a full-scale partial nitritation-anammox moving bed biofilm reactor,” Microbiome, vol. 12, no. 1, Art. no. 51, 2024, doi: 10.1186/s40168-024-01762-8.

[30] W. Wang, M. Ye, and Y. Li, “Three-dimensional structured carriers enhance the performance of hybrid anammox reactor: Start-up kinetics and granule–biofilm interactions,” Chemical Engineering Journal, vol. 527, Art. no. 171834, 2025, doi: 10.1016/j.cej.2025.171834.

[31] R. Liu, G. Nakhla, and J. Zhu, “Mainstream anammox in inverse fluidized bed bioreactors,” Water Research, vol. 287, Art. no. 124374, 2025, doi: 10.1016/j.watres.2025. 124374.

[32] M. Poser, P. Peu, A. Couvert, and É. Dumont, “Highlighting nitrification disturbances in waters with high levels of nitrogen salts,” Chemical Engineering Journal, vol. 488, Art. no. 151030, 2024, doi: 10.1016/j.cej.2024. 151030.

[33] J. Wang et al., “ Bioaugmentation with Tetrasphaera to improve biological phosphorus removal from anaerobic digestate of swine wastewater,” Bioresource Technology, vol. 373, Art. no. 128744, 2023, doi: 10.1016/j.biortech.2023.128744.

[34] Y. Cao, X. Liu, H. Zhang, and Z. Li, “ Oxygen control strategies in anammox-based systems: A review,” Water Research, vol. 235, Art. no. 119823, 2023, doi: 10.1016/j.watres.2023.119 823.

[35] L. Ramesh et al., “ IoT for wastewater monitoring in a smart environment,” in IoT and AI Applications for Smart Water Management, Boca Raton, FL, USA: CRC Press, 2026, pp. 34–50, doi: 10.1201/9781003 675426-3.

[36] L. Y. K. Wang, J. W. Bong, Y. X. Eng, and W. Wong, “ IoT based wastewater dissolved oxygen and total dissolved solids monitoring with data analytics,” in Proceedings of the 11th International Conference on Future Internet of Things and Cloud (FiCloud), 2024, pp. 98–103, doi: 10.1109/ficloud62933.2024. 00023.

[37] N. Chavhan et al., “APAH: An autonomous IoT driven real-time monitoring system for Industrial wastewater,” Digital Chemical Engineering, vol. 14, Art. no. 100217, 2025, doi: 10.1016/j.dche.2025.100217.

[38] C. S. Chamkure, R. Nagawade, S. R. Yadav, and S. N. Kargaonkar, “ Statistical modelling of wastewater quality prediction using AI and IoT sensors,” The Journal of Solid Waste Technology and Management, vol. 52, no. 1, pp. 91–109, 2026, doi: 10.5276/jswtm/ iswmaw/521/2026.91.

[39] M. B. Al Zami, S. Shaon, V. K. Quý, and D. C. Nguyen, “ Digital twin in industries: A comprehensive survey,” arXiv:2412.00209, 2024, doi: 10.48550/arxiv.2412.00209.

[40] H. Alimam, G. Mazzuto, N. Tozzi, F. E. Ciarapica, and M. Bevilacqua, “The resurrection of digital triplet: A cognitive pillar of human-machine integration at the dawn of industry 5.0,” Journal of King Saud University - Computer and Information Sciences, vol. 35, no. 10, Art. no. 101846, 2023, doi: 10.1016/j.jksuci.2023.101846.

[41] D. P. Mtowe, L. Long, and D. M. Kim, “ Low-latency edge-enabled digital twin system for multi-robot collision avoidance and remote control,” Sensors, vol. 25, no. 15, art. no. 4666, 2025, doi: 10.3390/s25154666.

[42] Z. Wang, Y. Li, and X. Chen, “Digital twin-driven smart wastewater treatment: Opportunities and challenges,” Chemical Engineering Journal, vol. 468, Art. no. 143939, 2024, doi: 10.1016/j.cej.2023.143 939.

[43] A. Wang et al., “ Digital twins for wastewater treatment: A technical review,” Engineering, vol. 36, pp. 21–35, 2024, doi: 10.1016/j.eng .2024.04.012.

[44] T. A. Ahanger, Z. Abdibayev, S. K. Sagnayeva, A. Zhumadillayeva, and K. Dyussekeyev, “Smart wastewater management in hydro-technical systems using digital twin technology,” Scientific Reports, vol. 16, art. no. 42626, 2026, doi: 10.1038/s41598-026-42626-5.

[45] M. O’Brien, P. Smith, and R. Brown, “Energy-efficient aeration control strategies in wastewater treatment,” Water Research, vol. 229, Art. no. 119456, 2023, doi: 10.1016/j.watres.2022.119456.

[46] M. A. O. Alarcón, G. E. C. Golondrino, and L. Manco, “ Machine learning algorithms for dynamic system identification in wastewater treatment plant,,” Acta Polytechnica Hungarica, vol. 22, no. 7, pp. 47–66, 2025, doi: 10.12700/aph.22.7.2025.7.3.

[47] H. Chen, Y. Zhao, and X. Liu, “IoT-enabled smart wastewater monitoring and control: A review,” Journal of Environmental Management, vol. 340, Art. no. 117989, 2024, doi: 10.1016/j.jenvman.2023.117989.

[48] A. K. Khattra, I. M. Hildebrandt, and S. Jeong, “ Statistical tools for microbial environmental monitoring programs in food processing facilities: A systematic review,” Journal of Food Protection, Art. no. 100766, 2026, doi: 10.1016/j.jfp.2026.100766.

[49] B. N. Alhasnawi et al., “A new methodology for reducing carbon emissions using multi-renewable energy systems and artificial intelligence,” Sustainable Cities and Society, vol. 114, Art. no. 105721, 2024, doi: 10.1016/j.scs.2024.105721.

[50] H. Zhang, R. Zhang, and J. Sun, “Developing real-time IoT-based public safety alert and emergency response systems,” Scientific Reports, vol. 15, no. 1, Art. no. 29056, 2025, doi: 10.1038/s41598-025-13465-7.

[51] J. Huang, S. Zhou, G. Li, and Q. Shen, “Real-time monitoring and optimization methods for user-side energy management based on edge computing,” Scientific Reports, vol. 15, no. 1, Art. no. 24890, 2025, doi: 10.1038/s41598-025-07592-4.

[52] A. N. Baruah, M. Akkur, J. Seth, and J. Shah, “Integrating sensor networks to facilitate efficient energy management for smart grids,” Research Square, 2024. doi: 10.21203/rs.3.rs-3966555/v1.

[53] M. S. Bakare, A. Abdulkarim, A. N. Shuaibu, and M. M. Muhamad, “Energy management controllers: strategies, coordination, and applications,” Energy Informatics, vol. 7, no. 1, art. no. 357, 2024, doi: 10.1186/s42162-024-00357-9

Full Text: PDF

DOI: 10.14416/j.asep.2026.08.002

Refbacks

  • There are currently no refbacks.