Advancing Fault Detection in Building Automation Systems through Deep Learning
Abstract
:1. Introduction
- First, this research leveraged deep learning to develop a model that achieves significantly higher accuracy and efficiency than traditional fault detection methods, particularly through the process of adding noise to the data to improve the model’s generalization performance.
- Second, the paper goes beyond simply detecting a single defect and presents a strategy that can cope with many different defect situations. This allows for high performance not only for single faults but also for complex multi-fault situations. This is of great practical significance as it provides concrete suggestions on how to maintain high performance in these various situations.
- Third, the model developed in this study is designed for practicality and scalability. The model can be easily applied to real building network systems, allowing building managers or system engineers to make faster and more accurate decisions. This is expected to improve the reliability and efficiency of the overall building network system. Our model is designed to operate smoothly with the addition of new HVAC and AHU equipment to building network systems. This ensures efficient operation, even as the complexity and size of the system increase.
2. Related Work
2.1. Machine Anomaly Detection Research
2.2. Research with BACnet
3. Methodology
3.1. The Dataset
3.2. Data Analysis
3.3. Variable Selection
3.4. Characteristic Engineering
3.5. Poisson Distribution
3.6. Noise Addition
3.7. Detection Algorithm Model
3.8. Model Performance Validation Metrics
3.8.1. Confusion Matrix
- True Positive (TP): It’s Actually Positive, and the model classified it as Positive.
- True Negative (TN): Actually Negative, and the model also classified it as Negative.
- False Positive (FP): Actually Negative, but the model classified it as Positive.
- False Negative (FN): Actually Positive, but the model classified it as Negative
3.8.2. Performance Metrics
- Accuracy is a metric that indicates how much of the total data the model correctly classified. This is the most intuitive metric to understand model performance, but it requires caution as it can be misleading if there is an imbalance in the data.
- Precision refers to the percentage of data that the model classifies as positive that is actually positive. This metric is useful when it is important to reduce the number of false positives.
- Recall indicates the percentage of data classified as positive by the model that is actually positive. This metric is useful when reducing the number of false negatives is important.
- F1 Score is the harmonic mean of precision and recall. This metric is used in situations where both precision and recall are important. When the two metrics are balanced, the F1 Score is higher.
4. Experiment and Results
4.1. Confusion Matrix and Performance Metrics
4.2. One Type of Defect Is Detected
4.3. Multiple Defects Detected
4.4. Multiple Defects and One Insufficient Score Detected
4.5. Not Detected
5. Discussion
6. Conclusions and Future Work
6.1. Conclusions
6.2. Future Work
Author Contributions
Funding
Data Availability Statement
Conflicts of Interest
References
- Rivas Pellicer, M.; Tungekar, M.Y.; Carpitella, S. Where to Place Monitoring Sensors for Improving Complex Manufacturing Systems? Discussing a Real Case in the Food Industry. Sensors 2023, 23, 3768. [Google Scholar] [CrossRef]
- Waqar, A.; Skrzypkowski, K.; Almujibah, H.; Zagórski, K.; Khan, M.B.; Zagórska, A.; Benjeddou, O. Success of Implementing Cloud Computing for Smart Development in Small Construction Projects. Appl. Sci. 2023, 13, 5713. [Google Scholar] [CrossRef]
- Pan, Y.; Zhang, L. Integrating BIM and AI for smart construction management: Current status and future directions. Arch. Comput. Methods Eng. 2023, 30, 1081–1110. [Google Scholar] [CrossRef]
- Kor, M.; Yitmen, I.; Alizadehsalehi, S. An investigation for integration of deep learning and digital twins towards Construction 4.0. Smart Sustain. Built Environ. 2023, 12, 461–487. [Google Scholar] [CrossRef]
- Mishra, P.; Singh, G. Energy Management Systems in Sustainable Smart Cities Based on the Internet of Energy: A Technical Review. Energies 2023, 16, 6903. [Google Scholar] [CrossRef]
- Hepf, C.; Overhoff, L.; Koth, S.C.; Gabriel, M.; Briels, D.; Auer, T. Impact of a Weather Predictive Control Strategy for Inert Building Technology on Thermal Comfort and Energy Demand. Buildings 2023, 13, 996. [Google Scholar] [CrossRef]
- Dzyuba, A.; Solovyeva, I.; Semikolenov, A. Raising the Resilience of Industrial Manufacturers through Implementing Natural Gas-Fired Distributed Energy Resource Systems with Demand Response. Sustainability 2023, 15, 8241. [Google Scholar] [CrossRef]
- Graveto, V.; Cruz, T.; Simões, P. A Network Intrusion Detection System for Building Automation and Control Systems. IEEE Access 2023, 11, 7968–7983. [Google Scholar] [CrossRef]
- Apanavičienė, R.; Shahrabani, M.M.N. Key Factors Affecting Smart Building Integration into Smart City: Technological Aspects. Smart Cities 2023, 6, 1832–1857. [Google Scholar] [CrossRef]
- Márquez-Sánchez, S.; Calvo-Gallego, J.; Erbad, A.; Ibrar, M.; Fernandez, J.H.; Houchati, M.; Corchado, J.M. Enhancing Building Energy Management: Adaptive Edge Computing for Optimized Efficiency and Inhabitant Comfort. Electronics 2023, 12, 4179. [Google Scholar] [CrossRef]
- Skała, A.; Grela, J.; Latoń, D.; Bańczyk, K.; Markiewicz, M.; Ozadowicż, A. Implementation of Building a Thermal Model to Improve Energy Efficiency of the Central Heating System—A Case Study. Energies 2023, 16, 6830. [Google Scholar] [CrossRef]
- Almusaed, A.; Yitmen, I.; Almssad, A. Enhancing Smart Home Design with AI Models: A Case Study of Living Spaces Implementation Review. Energies 2023, 16, 2636. [Google Scholar] [CrossRef]
- Gao, Y.; Miyata, S.; Akashi, Y. Energy saving and indoor temperature control for an office building using tube-based robust model predictive control. Appl. Energy 2023, 341, 121106. [Google Scholar] [CrossRef]
- Jaramillo-Alcazar, A.; Govea, J.; Villegas-Ch, W. Anomaly Detection in a Smart Industrial Machinery Plant Using IoT and Machine Learning. Sensors 2023, 23, 8286. [Google Scholar] [CrossRef] [PubMed]
- Himeur, Y.; Elnour, M.; Fadli, F.; Meskin, N.; Petri, I.; Rezgui, Y.; Bensaali, F.; Amira, A. AI-big data analytics for building automation and management systems: A survey, actual challenges and future perspectives. Artif. Intell. Rev. 2023, 56, 4929–5021. [Google Scholar] [CrossRef] [PubMed]
- El-Kady, A.H.; Halim, S.; El-Halwagi, M.M.; Khan, F. Analysis of Safety and Security Challenges and Opportunities Related to Cyber-physical Systems. Process Saf. Environ. Prot. 2023, 173, 384–413. [Google Scholar] [CrossRef]
- Saleem, M.U.; Shakir, M.; Usman, M.R.; Bajwa, M.H.T.; Shabbir, N.; Shams Ghahfarokhi, P.; Daniel, K. Integrating smart energy management system with internet of things and cloud computing for efficient demand side management in smart grids. Energies 2023, 16, 4835. [Google Scholar] [CrossRef]
- Jafari, M.; Kavousi-Fard, A.; Chen, T.; Karimi, M. A review on digital twin technology in smart grid, transportation system and smart city: Challenges and future. IEEE Access 2023, 11, 17471–17484. [Google Scholar] [CrossRef]
- Giglio, E.; Luzzani, G.; Terranova, V.; Trivigno, G.; Niccolai, A.; Grimaccia, F. An efficient artificial intelligence energy management system for urban building integrating photovoltaic and storage. IEEE Access 2023, 11, 18673–18688. [Google Scholar] [CrossRef]
- Nakamura, T.; Imamura, M.; Mercer, R.; Keogh, E. Merlin: Parameter-free discovery of arbitrary length anomalies in massive time series archives. In Proceedings of the 2020 IEEE International Conference on Data Mining (ICDM), Sorrento, Italy, 17–20 November 2020; pp. 1190–1195. [Google Scholar]
- Hu, W.; Xiao, X.; Fu, Z.; Xie, D.; Tan, T.; Maybank, S. A system for learning statistical motion patterns. IEEE Trans. Pattern Anal. Mach. Intell. 2006, 28, 1450–1464. [Google Scholar]
- Piciarelli, C.; Micheloni, C.; Foresti, G.L. Trajectory-based anomalous event detection. IEEE Trans. Circuits Syst. Video Technol. 2008, 18, 1544–1554. [Google Scholar] [CrossRef]
- Akpinar, K.O.; Ozcelik, I. Analysis of machine learning methods in EtherCAT-based anomaly detection. IEEE Access 2019, 7, 184365–184374. [Google Scholar] [CrossRef]
- Tonkal, Ö.; Polat, H.; Ba¸saran, E.; Cömert, Z.; Kocaoglŭ, R. Machine learning approach equipped with neighbourhood component analysis for DDoS attack detection in software-defined networking. Electronics 2021, 10, 1227. [Google Scholar] [CrossRef]
- Olu-Ajayi, R.; Alaka, H.; Sulaimon, I.; Sunmola, F.; Ajayi, S. Building energy consumption prediction for residential buildings using deep learning and other machine learning techniques. J. Build. Eng. 2022, 45, 103406. [Google Scholar] [CrossRef]
- Copiaco, A.; Himeur, Y.; Amira, A.; Mansoor, W.; Fadli, F.; Atalla, S.; Sohail, S.S. An innovative deep anomaly detection of building energy consumption using energy time-series images. Eng. Appl. Artif. Intell. 2023, 119, 105775. [Google Scholar] [CrossRef]
- Chakraborty, D.; Elzarka, H. Advanced machine learning techniques for building performance simulation: A comparative analysis. J. Build. Perform. Simul. 2019, 12, 193–207. [Google Scholar] [CrossRef]
- Chung, S.H.; Ma, H.L.; Hansen, M.; Choi, T.M. Data science and analytics in aviation. Transp. Res. Part E Logist. Transp. Rev. 2020, 134, 101837. [Google Scholar] [CrossRef]
- Aldahiri, A.; Alrashed, B.; Hussain, W. Trends in using IoT with machine learning in health prediction system. Forecasting 2021, 3, 181–206. [Google Scholar] [CrossRef]
- Formosa, N.; Quddus, M.; Ison, S.; Abdel-Aty, M.; Yuan, J. Predicting real-time traffic conflicts using deep learning. Accid. Anal. Prev. 2020, 136, 105429. [Google Scholar] [CrossRef]
- Morariu, C.; Morariu, O.; Řaileanu, S.; Borangiu, T. Machine learning for predictive scheduling and resource allocation in large scale manufacturing systems. Comput. Ind. 2020, 120, 103244. [Google Scholar] [CrossRef]
- Castellani, A.; Schmitt, S.; Squartini, S. Real-world anomaly detection by using digital twin systems and weakly supervised learning. IEEE Trans. Ind. Inform. 2020, 17, 4733–4742. [Google Scholar] [CrossRef]
- Dairi, A.; Harrou, F.; Bouyeddou, B.; Senouci, S.M.; Sun, Y. Semi-supervised deep learning-driven anomaly detection schemes for cyber-attack detection in smart grids. In Power Systems Cybersecurity: Methods, Concepts, and Best Practices; Springer: Berlin/Heidelberg, Germany, 2023; pp. 265–295. [Google Scholar]
- Komisarek, M.; Kozik, R.; Pawlicki, M.; Choraś, M. Towards Zero-Shot Flow-Based Cyber-Security Anomaly Detection Framework. Appl. Sci. 2022, 12, 9636. [Google Scholar] [CrossRef]
- Zhang, J.; Zulkernine, M.; Haque, A. Random-forests-based network intrusion detection systems. IEEE Trans. Syst. Man Cybern. Part C (Appl. Rev.) 2008, 38, 649–659. [Google Scholar] [CrossRef]
- Kastner, W.; Neugschwandtner, G.; Soucek, S.; Newman, H.M. Communication systems for building automation and control. Proc. IEEE 2005, 93, 1178–1203. [Google Scholar] [CrossRef]
- Granzer, W.; Praus, F.; Kastner, W. Security in building automation systems. IEEE Trans. Ind. Electron. 2009, 57, 3622–3630. [Google Scholar] [CrossRef]
- Wetter, M. Co-simulation of building energy and control systems with the Building Controls Virtual Test Bed. J. Build. Perform. Simul. 2011, 4, 185–203. [Google Scholar] [CrossRef]
- di Vimercati, S.D.C.; Martinelli, F. ICT Systems Security and Privacy Protection. In Proceedings of the 32nd IFIP TC 11 International Conference, SEC 2017, Rome, Italy, 29–31 May 2017; Springer: Berlin/Heidelberg, Germany, 2017; Volume 502. [Google Scholar]
- Holmberg, D.G. Enemies at the gates: Securing the BACnet (R) building. ASHRAE J. 2003, 45, B24. [Google Scholar]
- Balamurugan, S.P.; Granda, S.; Haile, S.; Petersen, A. A Dataset of Cyber-Induced Mechanical Faults on Buildings with Network 537 and Buildings Data; Technical Report, National Renewable Energy Laboratory-Data (NREL-DATA); National Renewable Energy Laboratory: Golden, CO, USA, 2023. [Google Scholar]
Column Name | Description |
---|---|
Model | Building model name |
Weather | Source of weather data |
System Loop | System loop (e.g., air side) |
Equipment | Related equipment (e.g., AHU) |
Scenario Number | Scenario number |
Scenario Name | Name of the scenario |
Fault Explanation | Explanation of the fault |
Fault Expression | Logical conditions to activate the fault |
Required Variables | Variables required to determine the fault |
Equivalent Point Name | Column name in the actual dataset corresponding to the required variables |
Impact | Potential impact of the fault |
Warmup | Time required to stabilize the system before applying the fault |
Attack Run Time | Duration the fault lasts |
Cooldown | Time required to restore the system to its original state after the fault |
Scenario Season | Season in which the fault occurs |
Fault Injecting Scenario | Method of injecting the fault |
Expected Response | Expected system response to the fault |
Attack Type | Type of attack causing the fault |
Scenario Name | Impact | Cool Down | Fault Expression |
---|---|---|---|
Cooling Coil Valve Stuck Closed | Insufficient cooling, occupant thermal discomfort | 2 h | x = IF outside air temp > 35 & Supply air flowrate > 0 & Chilled water Valve Command > 50 pct & (discharge air temperature > discharge air temperature setpoint + 5) for 30 min THEN 1 ELSE 0 |
Heat Cool Operation without Min OA Damper | Energy waste | 2 h | x = IF Supply air flowrate > 0 is ON & hot water valve command > 0 & chilled water valve command > 0) for 15 min THEN 1 ELSE 0 |
Cooling Coil Valve Stuck Open | Space over cooling, occupant thermal discomfort, energy waste | 2 h | x = If Supply air flowrate > 0 & Chilled water Valve command = 0 & (discharge air temperature < discharge air temperature setpoint - 5) for 30 min THEN 1 ELSE 0 |
OA Damper Stack Open | Energy waste | 2 h | x = If unit is ON or Supply air flowrate > 0 & outside air damper command is CLOSED & (abs (Return air temperature - Mixed air temperature) > 5) for 30 min THEN 1 ELSE 0 |
Low Supply Fan Speed | Under heating/cooling | 2 h | x = If Discharge Air Flows > 0 & Supply fan Speed command < 100% & (discharge air Static Pressure < discharge air Static pressure setpoint - 0.25) for 1 h THEN 1 ELSE 0 |
High Supply Fan Speed | Energy waste | 2 h | x = If Discharge Air Flows > 0 & Supply fan Speed command = 100% & (discharge air Static Pressure > discharge air Static pressure setpoint + 0.25) for 1 h THEN 1 ELSE 0 |
Rule_Id | Scenario_Name | Fault Description | Variables |
---|---|---|---|
1 | Cooling Coil Valve Stuck Closed | This fault occurs when the cooling coil valve is closed, leading to insufficient cooling. | weaSta_reaWeaTDryBul_y hvac_oveAhu_yCoo_y hvac_oveAhu_TSupSet_y hvac_reaAhu_TSup_y hvac_reaAhu_V_flow_sup_y |
2 | Heat Cool Operation without Min OA Damper | This fault occurs when the cooling valve and hot water valve are both open, leading to energy waste. | hvac_oveAhu_yCoo_y hvac_oveAhu_yHea_y hvac_oveAhu_yOA_y hvac_reaAhu_V_flow_sup_y |
3 | Cooling Coil Valve Stuck Open | This fault occurs when the cooling coil valve is open, leading to excessive cooling. | hvac_oveAhu_yCoo_y hvac_reaAhu_TSup_y hvac_oveAhu_TSupSet_y hvac_reaAhu_V_flow_sup_y |
4 | OA Damper Stack Open | This fault occurs when the outdoor air damper is open, leading to energy waste. | hvac_reaAhu_TMix_y hvac_oveAhu_yOA_y hvac_reaAhu_TRet_y hvac_reaAhu_V_flow_sup_y |
5 | Low Supply Fan Speed | This fault occurs when the supply fan speed is too low, leading to insufficient airflow. | hvac_oveAhu_dpSet_y hvac_reaAhu_dp_sup_y hvac_oveAhu_yFan_y hvac_reaAhu_V_flow_sup_y |
6 | High Supply Fan Speed | This fault occurs when the supply fan speed is too high, leading to energy waste. | hvac_oveAhu_dpSet_y hvac_reaAhu_dp_sup_y hvac_oveAhu_yFan_y hvac_reaAhu_V_flow_sup_y |
Variable Name | Explanation |
---|---|
Time | Time Stamp of the Data |
weaSta_reaWeaTDryBul_y | Outside Dry Bulb Temperature from Weather Station |
hvac_reaAhu_V_flow_sup_y | Supply Air Flow Rate from AHU (Air Handling Unit) |
hvac_oveAhu_yCoo_y | Cooling Command from AHU |
hvac_reaAhu_TSup_y | Supply Air Temperature from AHU |
hvac_oveAhu_TSupSet_y | Setpoint for Supply Air Temperature from AHU |
hvac_oveAhu_dpSet_y | Setpoint for Differential Pressure from AHU |
hvac_oveAhu_yFan_y | Fan Status from AHU |
hvac_oveAhu_yHea_y | Heating Command from AHU |
hvac_oveAhu_yOA_y | Outside Air Command from AHU |
hvac_reaAhu_TMix_y | Mixed Air Temperature from AHU |
hvac_reaAhu_TRet_y | Return Air Temperature from AHU |
hvac_reaAhu_V_flow_ret_y | Return Air Flow Rate from AHU |
Variable Name | Explanation |
---|---|
Time | Time Stamp of the Data |
weaSta_reaWeaTDryBul_y | Outside Dry Bulb Temperature from Weather Station |
hvac_reaAhu_V_flow_sup_y | Supply Air Flow Rate from AHU (Air Handling Unit) |
hvac_oveAhu_yCoo_y | Cooling Command from AHU |
hvac_oveAhu_yFan_y | Fan Status from AHU |
hvac_oveAhu_yHea_y | Heating Command from AHU |
hvac_oveAhu_yOA_y | Outside Air Command from AHU |
Extra_1 | hvac_reaAhu_TSup_y > hvac_oveAhu_TSupSet_y +5 |
Extra_2 | hvac_reaAhu_TSup_y < hvac_oveAhu_TSupSet_y - 5 |
Extra_3 | hvac_reaAhu_TRet_y - hvac_reaAhu_TMix_y > 5 |
Extra_4 | hvac_oveAhu_dpSet_y < hvac_reaAhu_dp_sup_y - 0.25 |
Extra_5 | hvac_oveAhu_dpSet_y > hvac_reaAhu_dp_sup_y - 0.25 |
Prediction | |||
Positive | Negative | ||
Actual | Positive | TP | FN |
Negative | FP | TN |
Class | n (Truth) | n (Classified) | Accuracy | Precision | Recall | F1 Score |
---|---|---|---|---|---|---|
0 | 204 | 198 | 98.89% | 0.98 | 0.95 | 0.97 |
1 | 209 | 208 | 98.81% | 0.97 | 0.96 | 0.96 |
2 | 212 | 206 | 99.52% | 1.0 | 0.97 | 0.99 |
3 | 209 | 199 | 99.21% | 1.0 | 0.95 | 0.98 |
4 | 204 | 197 | 99.45% | 1.0 | 0.97 | 0.98 |
5 | 224 | 254 | 97.31% | 0.87 | 0.99 | 0.93 |
Analysis | Explanation |
---|---|
Predict_rule_id | [1] |
Detected Fault | Cooling Coil Valve Stuck Closed |
Analysis_score | [0.99994] |
Sum_of_analysis_score | 0.99993997812227112 |
Analysis | Explanation |
---|---|
Predict_rule_id | [1, 2, 4] |
Detected Fault | Cooling Coil Valve Stuck Closed |
Detected Fault | Heat Cool Operation without Min OA Damper |
Detected Fault | OA Damper Stack Open |
Analysis_score | [0.99997, 0.9999, 0.99996] |
Sum_of_analysis_score | 2.9998300075531006 |
Analysis | Explanation |
---|---|
Predict_rule_id | [1, 2, 3, 4, 5, 6] |
Detected Fault | Cooling Coil Valve Stuck Closed |
Detected Fault | Heat Cool Operation without Min OA Damper |
Detected Fault | Cooling Coil Valve Stuck Open |
Detected Fault | OA Damper Stack Open |
Detected Fault | Low Supply Fan Speed |
Detected Fault | High Supply Fan Speed |
Analysis_score | [0.99997, 0.71518, 0.99996, 0.99996, 0.99999, 0.99998] |
Sum_of_analysis_score | 5.715039968490601 |
Analysis | Explanation |
---|---|
Predict_rule_id | [1, 2, 3, 4, 5, 6] |
Analysis_score | [0.0019, 0.117, 0.21459, 0.04307, 0.01659, 0.58922] |
Sum_of_analysis_score | 0.9823699831031263 |
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
Choi, W.-H.; Lewe, J.-H. Advancing Fault Detection in Building Automation Systems through Deep Learning. Buildings 2024, 14, 271. https://doi.org/10.3390/buildings14010271
Choi W-H, Lewe J-H. Advancing Fault Detection in Building Automation Systems through Deep Learning. Buildings. 2024; 14(1):271. https://doi.org/10.3390/buildings14010271
Chicago/Turabian StyleChoi, Woo-Hyun, and Jung-Ho Lewe. 2024. "Advancing Fault Detection in Building Automation Systems through Deep Learning" Buildings 14, no. 1: 271. https://doi.org/10.3390/buildings14010271
APA StyleChoi, W. -H., & Lewe, J. -H. (2024). Advancing Fault Detection in Building Automation Systems through Deep Learning. Buildings, 14(1), 271. https://doi.org/10.3390/buildings14010271