Digital Twin Platform for Water Treatment Plants Using Microservices Architecture
Abstract
:1. Introduction
2. State of the Art
3. Contribution
- Optimizing Operational Efficiency: By leveraging real-time sensor data and predictive analytics, the platform aims to enhance the decision-making process, ensuring that treatment operations are as efficient and effective as possible, preventing, for instance, untreated water being released to the population;
- Predictive Maintenance: Utilizing machine learning models, the platform predicts equipment failures, allowing for timely maintenance that prevents unscheduled downtimes and extends the lifespan of the plant’s machinery;
- Process Simulation: Through the ASM1 model, the platform simulates the biological treatment processes, aiding in the planning and optimization of operations to handle varying inflow conditions and maintain compliance with environmental standards;
- Resource Management: By integrating with BIM models, the platform supports the management of physical assets, helping to optimize resource allocation and reduce waste;
- Enhanced Decision Support: The platform provides a comprehensive view of the plant’s operations, enabling operators to make informed decisions rapidly and effectively.
3.1. Platform Architecture
- Real-time Data Processing: The platform was tailored to process sensor data on-site at the water treatment facility, enabling immediate response to changing conditions, without latency;
- Efficient Data Handling: To manage bandwidth, the system was optimized to preprocess data at the edge, reducing the volume of information required to be sent to the cloud, if this was to be extrapolated to other facilities, and focusing on transmitting actionable insights;
- Scalable Microservices: The architecture uses microservices that can be individually scaled and updated, allowing for flexibility in expanding or upgrading the system’s capabilities at the plant level;
- Enhanced Security Measures: Recognizing the critical nature of water treatment infrastructure, edge allows for another layer of robust security protocols and reduces the amount of information shared off premises;
- Autonomous Operations: The platform can maintain operations during network disruptions (still common in remote areas), ensuring continuous water treatment processes and data synchronization once connectivity is restored.
- Cyber-Physical Data Store Layer: This layer is where real-time operational data from the water treatment plant is captured and stored. Sensors and IoT devices collect data on water quality, flow rates, and equipment status. This information is essential for creating an accurate virtual representation of the plant’s physical systems and processes;
- Primary Processing Layer: The data from the first layer are processed to convert raw sensor readings into a structured format. This involves standardizing data for compatibility with the Digital Twin platform and ensuring that the data flow is maintained efficiently and securely;
- Models and Algorithms Layer: In this layer, the water treatment plant’s processes are modeled using computational algorithms. These algorithms simulate the behavior of physical assets and processes, such as filtration, chemical dosing, and sludge treatment, providing a basis for the analysis and prediction functionalities of the Digital Twin;
- Analysis Layer: Utilizing the processed data and models, this layer performs advanced analytics to predict equipment maintenance needs, optimize treatment processes, and improve plant performance. Machine learning (in the case of the water pump) and physics-based (sludge) models analyze patterns and trends, enabling predictive maintenance and operational insights;
- Visualization and User Interface Layer: The final layer is where the processed data, analytical models, and predictions are presented to the users through an interactive interface. This layer allows plant operators to visualize plant performance, receive maintenance alerts, and make informed decisions based on real-time data and predictive insights.
3.2. Machine Learning Service
- Predictive Maintenance: Machine learning models analyze historical sensor data to predict potential equipment failures, enabling proactive maintenance scheduling and reducing downtime;
- Anomaly Detection: These techniques monitor operational data for deviations from expected patterns, identifying potential issues before they escalate into serious problems;
- Process Optimizations: Machine learning assists in optimizing various treatment processes by analyzing trends and correlations in data, leading to more efficient operations being recommended as next steps;
- Data-Driven Insights: The platform utilizes machine learning to transform raw data into actionable insights, supporting informed decision-making and continuous improvement.
3.3. Simulation Model: Active Sludge Model 1
- Aerobic growth of heterotrophic bacteria;
- Anoxic growth of heterotrophic bacteria;
- Aerobic growth of autotrophic bacteria;
- Decomposition of autotrophic biomass;
- Decomposition of heterotrophic biomass;
- Ammonification of soluble organic nitrogen;
- Hydrolysis of trapped organic substances;
- Hydrolysis of trapped nitrogen.
3.4. Digital Twin Platform
3.5. Strategy for Digitization and Digital Twin Implementation
- Data Collection and Management: Establishing a comprehensive data acquisition system is the first step. This involves deploying various sensors and data loggers throughout the water treatment plant to collect real-time data on water quality, flow rates, energy consumption, and equipment status;
- Building Information Modeling (BIM): Integrating BIM allows for the creation of a detailed 3D digital representation of the water treatment infrastructure. This model serves as a central repository for all spatial and technical data, facilitating better planning, construction, and maintenance activities;
- Machine Learning and Predictive Analytics: Machine learning algorithms are used to analyze historical and real-time data to predict equipment failures, optimize treatment processes, and reduce downtime. In particular, LSTM networks are implemented for their ability to handle time-series data and make accurate predictions based on long-term operational patterns;
- Digital Twin Implementation: The creation of a Digital Twin involves synthesizing collected data and BIM models into a dynamic simulation that mirrors the physical plant. This virtual counterpart can be used for process optimization, scenario testing, and training without interrupting actual plant operations;
- Integration of IoT Technologies: The Internet of Things (IoT) plays a crucial role in interconnecting sensors, equipment, and control systems;
- Cybersecurity Measures: Ensuring the security of digital systems is a priority. The blueprint includes robust cybersecurity protocols to protect against unauthorized access and cyber threats, safeguarding sensitive operational data;
- User Interface and HMI: A user-friendly interface and Human-Machine Interface (HMI) is developed to provide plant operators with intuitive access to system insights, alerts, and controls, enhancing decision-making and operational oversight;
- Feedback Loops and Continuous Improvement: The blueprint emphasizes the importance of feedback mechanisms that allow for the continuous monitoring of system performance. These mechanisms enable ongoing improvements to the Digital Twin model and the overall digitalization strategy.
4. Discussion
- Edge-Specific Security Protocols: Implementing security protocols designed for the characteristics of edge computing;
- Network Segmentation: Segmenting the network to isolate edge devices from the core network, limiting the potential impact of a security breach and containing threats within controlled segments;
- Secure Data Transmission: Utilizing encryption and secure communication channels for data transmission between edge devices and the eventually central system to prevent interception and unauthorized access;
- Regular Software Updates: Ensuring that all edge devices receive regular software updates and patches to mitigate vulnerabilities and protect against the latest security threats;
- Authentication and Authorization: Deploying strong authentication and authorization mechanisms for devices and users to verify identities and control access to sensitive data and system functionalities, therefore building on the current temporary token;
- Intrusion Detection Systems (IDS): Implementing IDS at the edge to monitor and analyze network traffic for signs of malicious activities and respond to detected threats in real-time;
- Physical Security Measures: Enhancing physical security measures for edge devices to prevent tampering, unauthorized physical access, and damage.
5. Conclusions
- A novel microservices-based Digital Twin platform tailored for water treatment plants that integrates real-time data and BIM models;
- Utilization of LSTM neural networks for predictive maintenance to improve operational efficiency and minimize downtime;
- Simulation of the water treatment process using an Active Sludge Model, providing insights into plant operations;
- Optimization for edge computing, ensuring data efficiency and secure processing in critical infrastructure;
- A clear blueprint for Digital Twin integration, outlining a comprehensive approach for digital transformation in water treatment.
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Conflicts of Interest
References
- Yevjevich, V. Water and civilization. Water Int. 1992, 17, 163–171. [Google Scholar] [CrossRef]
- Gleick, P.H. The human right to water. Water Policy 1998, 1, 487–503. [Google Scholar] [CrossRef]
- Seckler, D.; Barker, R.; Amarasinghe, U. Water scarcity in the twenty-first century. Int. J. Water Resour. Dev. 1999, 15, 29–42. [Google Scholar] [CrossRef]
- DeNicola, E.; Aburizaiza, O.S.; Siddique, A.; Khwaja, H.; Carpenter, D.O. Climate change and water scarcity: The case of Saudi Arabia. Ann. Glob. Health 2015, 81, 342–353. [Google Scholar] [CrossRef] [PubMed]
- United Nations. Transforming Our World: The 2030 Agenda for Sustainable Development. UN Doc. A/RES/70/1 (25 September 2015). Available online: https://sdgs.un.org/2030agenda (accessed on 3 January 2024).
- Gomez-Trujillo, A.M.; Gonzalez-Perez, M.A. Digital transformation as a strategy to reach sustainability. Smart Sustain. Built Environ. 2021, 11, 1137–1162. [Google Scholar] [CrossRef]
- Adedeji, K.B.; Ponnle, A.A.; Abu-Mahfouz, A.M.; Kurien, A.M. towards digitalization of water supply systems for sustainable smart city development—Water 4.0. Appl. Sci. 2022, 12, 9174. [Google Scholar] [CrossRef]
- Grieveson, O.; Holloway, T.; Johnson, B. A Strategic Digital Transformation for the Water Industry; IWA Publishing: London, UK, 2022. [Google Scholar] [CrossRef]
- Pires, F.; Cachada, A.; Barbosa, J.; Moreira, A.P.; Leitao, P. Digital Twin in industry 4.0: Technologies, applications and challenges. In Proceedings of the 2019 IEEE 17th International Conference on Industrial Informatics (INDIN), Helsinki-Espoo, Finland, 22–25 July 2019; pp. 721–726. [Google Scholar]
- Madni, A.M.; Madni, C.C.; Lucero, S.D. Leveraging Digital Twin technology in model-based systems engineering. Systems 2019, 7, 7. [Google Scholar] [CrossRef]
- Mihai, S.; Yaqoob, M.; Hung, D.V.; Davis, W.; Towakel, P.; Raza, M.; Karamanoglu, M.; Barn, B.; Shetve, D.; Prasad, R.V.; et al. Digital Twins: A survey on enabling technologies, challenges, trends and future prospects. IEEE Commun. Surv. Tutor. 2022, 24, 2255–2291. [Google Scholar] [CrossRef]
- Hosamo, H.H.; Imran, A.; Cardenas-Cartagena, J.; Svennevig, P.R.; Svidt, K.; Nielsen, H.K. A review of the Digital Twin technology in the AEC-FM industry. Adv. Civ. Eng. 2022, 2022, 2185170. [Google Scholar] [CrossRef]
- Bentley. Water Infrastructure Digital Twins. Available online: https://www.bentley.com/wp-content/uploads/eBook-Water-Infrastructure-Digital-Twins-EN.pdf (accessed on 28 January 2024).
- Banerjee, C.; Bhaduri, A.; Saraswat, C. Digitalization in Urban Water Governance: Case Study of Bengaluru and Singapore. Front. Environ. Sci. 2022, 10, 266. [Google Scholar] [CrossRef]
- Grieves, M.; Vickers, J. Origins of the Digital Twin Concept; Florida Institute of Technology/NASA: Melbourne, FL, USA, 2016. [Google Scholar] [CrossRef]
- Singh, M.; Srivastava, R.; Fuenmayor, E.; Kuts, V.; Qiao, Y.; Murray, N.; Devine, D. Applications of Digital Twin across Industries: A review. Appl. Sci. 2022, 12, 5727. [Google Scholar] [CrossRef]
- Souza, V.; Cruz, R.; Silva, W.; Lins, S.; Lucena, V. A Digital Twin architecture based on the industrial internet of things technologies. In Proceedings of the 2019 IEEE International Conference on Consumer Electronics (ICCE), Las Vegas, NV, USA, 11–13 January 2019; pp. 1–2. [Google Scholar]
- Maschler, B.; Braun, D.; Jazdi, N.; Weyrich, M. Transfer learning as an enabler of the intelligent Digital Twin. Procedia CIRP 2021, 100, 127–132. [Google Scholar] [CrossRef]
- Hanumann, T.; Swamy, N.V.V.S.N.; Gowtham, P.; Sumathi, R.; Chinnasamy, P.; Kalaiarasi, A. Plant Monitoring System Cum Smart Irrigation using Bolt IOT. In Proceedings of the 2022 International Conference on Computer Communication and Informatics (ICCCI), Coimbatore, India, 25–27 January 2022; IEEE: New York, NY, USA, 2022; pp. 1–3. [Google Scholar]
- Glatt, M.; Sinnwell, C.; Yi, L.; Donohoe, S.; Ravani, B.; Aurich, J.C. Modeling and implementation of a Digital Twin of material flows based on physics simulation. J. Manuf. Syst. 2021, 58, 231–245. [Google Scholar] [CrossRef]
- Standfor-Clark, A.; Fran-Schultz, E.; Harris, M. What Are Digital Twins? IBM Developer. Available online: https://developer.ibm.com/articles/what-are-digital-twins/ (accessed on 28 January 2024).
- IBM. Qué es un Gemelo Digital? Available online: https://www.ibm.com/es-es/topics/what-is-a-digital-twin (accessed on 24 January 2024).
- Hernández Sancho, F. Estudio Sobre el Papel de la Digitalización en la Gestión de las Infraestructuras Hídricas de la Comunitat Valenciana. Catedra de Transformación del Modelo Económico. Economía Circular en el Sector del Agua. Universidad de Valencia. 2022. Available online: https://www.uv.es/ctransmodec/PUB/2022/2022-doc06.pdf (accessed on 24 January 2024).
- Grievson, O.; Holloway, T.; Johnson, B. Artificial intelligence, Digital Twins and dynamic resilience. In A Strategic Digital Transformation for the Water Industry; Grievson, O., Holloway, T., Johnson, B., Eds.; IWA Publishing: London, UK, 2022; pp. 40–61. [Google Scholar]
- Chiva Vicent, S. Gemelos Digitales Como Herramienta para el Soporte a la Toma de Decisiones en EDAR Mediante Modelado CFD e Inteligencia Artificial. Available online: https://www.aguasresiduales.info/ (accessed on 28 January 2024).
- Zhao, J.T.; Jing, S.Y.; Jiang, L.Z. Management of API gateway based on micro-service architecture. J. Phys. Conf. Ser. 2018, 1087, 032032. [Google Scholar] [CrossRef]
- Hoffmann, M.; Büscher, C.; Meisen, T.; Jeschke, S. Continuous integration of field level production data into top-level information systems using the OPC interface standard. Procedia CIRP 2016, 41, 496–501. [Google Scholar] [CrossRef]
- OPC Fundation. Unified Architecture. 2019. Available online: https://opcfoundation.org/about/opc-technologies/opc-ua/ (accessed on 8 September 2023).
- Sriramya, P.; Karthika, R.A. Providing password security by salted password hashing using bcrypt algorithm. ARPN J. Eng. Appl. Sci. 2015, 10, 5551–5556. [Google Scholar]
- Autodesk Platform Service. Available online: https://aps.autodesk.com/ (accessed on 16 September 2023).
- Kluyver, T.; Ragan-Kelley, B.; Pérez, F.; Granger, B.E.; Bussonnier, M.; Frederic, J.; Kelley, K.; Hamrick, J.; Grout, J.; Corlay, S.; et al. Jupyter Notebooks—A publishing format for reproducible computational workflows. Elpub 2016, 2016, 87–90. [Google Scholar] [CrossRef]
- TensorFlow Developers. TensorFlow (v2.14.0-rc0). Zenodo. 2023. Available online: https://zenodo.org/records/8256979 (accessed on 20 September 2023).
- Bazaz, S.M.; Lohtander, M.; Varis, J. 5-Dimensional Definition for a Manufacturing Digital Twin. Procedia Manuf. 2019, 38, 1705–1712. [Google Scholar] [CrossRef]
- Natarajan, S.; Thangamuthu, M.; Gnanasekaran, S.; Rakkiyannan, J. Digital Twin-Driven Tool Condition Monitoring for the Milling Process. Sensors 2023, 23, 5431. [Google Scholar] [CrossRef] [PubMed]
- Pump Sensor Data for Predictive Maintenance. Kaggle. Available online: https://www.kaggle.com/datasets/nphantawee/pump-sensor-data (accessed on 16 September 2023).
- Pedregosa, F.; Varoquaux, G.; Gramfort, A.; Michel, V.; Thirion, B.; Grisel, O.; Blondel, M.; Prettenhofer, P.; Weiss, R.; Dubourg, V.; et al. Scikit-learn: Machine learning in Python. J. Mach. Learn. Res. 2011, 12, 2825–2830. [Google Scholar]
- Hunter, J.D. Matplotli b: A 2D graphics environment. Comput. Sci. Eng. 2007, 9, 90–95. [Google Scholar] [CrossRef]
- Hasan, B.M.S.; Abdulazeez, A.M. A review of principal component analysis algorithm for dimensionality reduction. J. Soft Comput. Data Min. 2021, 2, 20–30. [Google Scholar] [CrossRef]
- Singh, D.; Singh, B. Investigating the impact of data normalization on classification performance. Appl. Soft Comput. 2020, 97, 105524. [Google Scholar] [CrossRef]
- Rivas, A.; Fraile, J.M.; Chamoso, P.; González-Briones, A.; Sittón, I.; Corchado, J.M. A predictive maintenance model using recurrent neural networks. In Proceedings of the 14th International Conference on Soft Computing Models in Industrial and Environmental Applications (SOCO 2019), Seville, Spain, 13–15 May 2019; Proceedings 14. Springer International Publishing: Berlin/Heidelberg, Germany, 2020; pp. 261–270. [Google Scholar] [CrossRef]
- Rahhal, J.S.; Abualnadi, D. IOT based predictive maintenance using LSTM RNN estimator. In Proceedings of the 2020 International Conference on Electrical, Communication, and Computer Engineering (ICECCE), Istanbul, Turkey, 12–13 June 2020; pp. 1–5. [Google Scholar]
- Aslam, F.A.; Mohammed, H.N.; Lokhande, P.S. Efficient way of web development using python and flask. Int. J. Adv. Res. Comput. Sci. 2015, 6, 54. [Google Scholar]
- Henze, M.; Gujer, W.; Mino, T.; van Loosdrecht, M. Activated Sludge Models, ASM1, ASM2, ASM2d and ASM3. Water Intell. Online 2000, 5, 9781780402369. [Google Scholar] [CrossRef]
- Ontiveros, G.A.; Ludmila, A.; Campanella, E.A. Evaluación del Comportamiento de PPCP’s en Dos Procesos: Ludzack-Ettinger y Ludzack-Ettinger Modificado. Ingenieria Sanitaria y Ambiental. AIDIS Argentina 2010. Available online: https://ri.conicet.gov.ar/handle/11336/13447 (accessed on 20 September 2023).
- Bin Talib, A.H. Modeling and Control of Wastewater Treatment Process. Seri Iskandar. Available online: https://utpedia.utp.edu.my/id/eprint/402/ (accessed on 20 September 2023).
- GitHub IFC.js Documentation. Available online: https://ifcjs.github.io/info/docs/introduction (accessed on 14 September 2023).
- Abed, A.; Morten, A. Artelia. Simulation and Sustainability: Bringing Carbon Impact into View for Building Design. Autodesk Platform Services. Available online: https://aps.autodesk.com/customer-stories/artelia (accessed on 8 September 2023).
Notation | Components | Units |
---|---|---|
Soluble inert organic matter | g COD/m3 | |
Readily biodegradable substrate | g COD/m3 | |
Particulate inert organic matter | g COD/m3 | |
Slowly biodegradable substrate | g COD/m3 | |
Active heterotrophic biomass | g COD/m3 | |
Active autotrophic biomass | g COD/m3 | |
Particulate product arising from biomass decay | g COD/m3 | |
Oxygen | g O2/m3 | |
Nitrate and nitrite nitrogen | g N/m3 | |
nitrogen | g N/m3 | |
Soluble biodegradable organic nitrogen | g N/m3 | |
Particulate biodegradable organic nitrogen | g N/m3 | |
Alkalinity | Molar units |
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. |
© 2024 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 (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
Rodríguez-Alonso, C.; Pena-Regueiro, I.; García, Ó. Digital Twin Platform for Water Treatment Plants Using Microservices Architecture. Sensors 2024, 24, 1568. https://doi.org/10.3390/s24051568
Rodríguez-Alonso C, Pena-Regueiro I, García Ó. Digital Twin Platform for Water Treatment Plants Using Microservices Architecture. Sensors. 2024; 24(5):1568. https://doi.org/10.3390/s24051568
Chicago/Turabian StyleRodríguez-Alonso, Carlos, Iván Pena-Regueiro, and Óscar García. 2024. "Digital Twin Platform for Water Treatment Plants Using Microservices Architecture" Sensors 24, no. 5: 1568. https://doi.org/10.3390/s24051568
APA StyleRodríguez-Alonso, C., Pena-Regueiro, I., & García, Ó. (2024). Digital Twin Platform for Water Treatment Plants Using Microservices Architecture. Sensors, 24(5), 1568. https://doi.org/10.3390/s24051568