Integration of Machine Learning Solutions in the Building Automation System
<p>Communication scheme of exemplary building systems.</p> "> Figure 2
<p>The sequence diagram of the Wago Home Automation System integrated with Cloud infrastructure.</p> "> Figure 3
<p>Data transmission in the tested buildings.</p> "> Figure 4
<p>Logic connection inside of System.</p> "> Figure 5
<p>Example of the configuration file of ML System.</p> "> Figure 6
<p>Architecture of ML System. 1—subscribed messages; 2—data necessary to build a new model; 3—raising an alarm.</p> "> Figure 7
<p>Example of visualization of building parameters in the Grafana system. Voltage and current present three phases (1—green; 2—yellow; 3—blue).</p> "> Figure 8
<p>Active energy, phase angle and fault counter from sample day generated in a single-family building without anomaly. Active power and phase angel present three phases (1—green; 2—yellow; 3—blue).</p> "> Figure 9
<p>Active energy, phase angle and fault counter from sample day generated in a single-family building with anomaly detection, represented by the counter. A 20 min period with a quick pick of energy consumption. Active power and phase angel present three phases (1—green; 2—yellow; 3—blue).</p> "> Figure 10
<p>Active energy, phase angle and fault counter from sample day generated in a single-family building with anomaly detection, represented by the counter. A 2 h period with the oven turned on. Active power and phase angel present three phases (1—green; 2—yellow; 3—blue).</p> "> Figure 11
<p>Process of verification system and algorithms.</p> ">
Abstract
:1. Introduction
2. Anomaly Detection in System Building
3. Building a Machine Learning System
- mqtt (for information about MQTT broker and data).
- prom (for Prometheus connection and to fetch data).
- iforest (configuration of the algorithm).
- System (parameters of the whole System).
- Seven days
- One day
- 12 h
- 6 h
- 3 h
- 1 h
- 30 min.
4. Results
5. Discussion
6. Conclusions
Author Contributions
Funding
Data Availability Statement
Conflicts of Interest
References
- Ghiani, E.; Galici, M.; Mureddu, M.; Pilo, F. Impact on Electricity Consumption and Market Pricing of Energy and Ancillary Services during Pandemic of COVID-19 in Italy. Energies 2020, 13, 3357. [Google Scholar] [CrossRef]
- Yao, Y.; Ivanovski, K.; Inekwe, J.; Smyth, R. Human Capital and CO2 Emissions in the Long Run. Energy Econ. 2020, 91, 104907. [Google Scholar] [CrossRef]
- European Commision European Green Deal: Commission Proposes 2030 Zero-Emissions Target for New City Buses and 90% Emissions Reductions for New Trucks by 2040. Available online: https://ec.europa.eu/commission/presscorner/detail/en/ip_23_762 (accessed on 3 May 2023).
- European Commision European Green Deal: Commission Proposes Transformation of EU Economy and Society to Meet Climate Ambitions. Available online: https://ec.europa.eu/commission/presscorner/detail/en/IP_21_3541 (accessed on 3 May 2023).
- Chen, S.; Zhang, G.; Xia, X.; Setunge, S.; Shi, L. A Review of Internal and External Influencing Factors on Energy Efficiency Design of Buildings. Energy Build. 2020, 216, 109944. [Google Scholar] [CrossRef]
- Cabral, M.R.; Blanchet, P. A State of the Art of the Overall Energy Efficiency of Wood Buildings—An Overview and Future Possibilities. Materials 2021, 14, 1848. [Google Scholar] [CrossRef]
- Chen, C.; Hu, Y.; Marimuthu, K.; Kumar, P.M. Artificial Intelligence on Economic Evaluation of Energy Efficiency and Renewable Energy Technologies. Sustain. Energy Technol. Assess. 2021, 47, 101358. [Google Scholar] [CrossRef]
- Capozzoli, A.; Lauro, F.; Khan, I. Fault Detection Analysis Using Data Mining Techniques for a Cluster of Smart Office Buildings. Expert Syst. Appl. 2015, 42, 4324–4338. [Google Scholar] [CrossRef]
- Ruiz, L.; Cuéllar, M.; Calvo-Flores, M.; Jiménez, M. An Application of Non-Linear Autoregressive Neural Networks to Predict Energy Consumption in Public Buildings. Energies 2016, 9, 684. [Google Scholar] [CrossRef] [Green Version]
- Khan, Z.A.; Ullah, A.; Ullah, W.; Rho, S.; Lee, M.; Baik, S.W. Electrical Energy Prediction in Residential Buildings for Short-Term Horizons Using Hybrid Deep Learning Strategy. Appl. Sci. 2020, 10, 8634. [Google Scholar] [CrossRef]
- Chemingui, Y.; Gastli, A.; Ellabban, O. Reinforcement Learning-Based School Energy Management System. Energies 2020, 13, 6354. [Google Scholar] [CrossRef]
- Mariano-Hernández, D.; Hernández-Callejo, L.; Zorita-Lamadrid, A.; Duque-Pérez, O.; Santos García, F. A Review of Strategies for Building Energy Management System: Model Predictive Control, Demand Side Management, Optimization and Fault Detect & Diagnosis. J. Build. Eng. 2021, 33, 101692. [Google Scholar]
- Wang, Z.; Hong, T. Reinforcement Learning for Building Controls: The Opportunities and Challenges. Appl. Energy 2020, 269, 115036. [Google Scholar] [CrossRef]
- Zhu, W.; Wang, Z.; Zhang, Z. Renovation of Automation System Based on Industrial Internet of Things: A Case Study of a Sewage Treatment Plant. Sensors 2020, 20, 2175. [Google Scholar] [CrossRef] [Green Version]
- Mancini, F.; Lo Basso, G.; de Santoli, L. Energy Use in Residential Buildings: Impact of Building Automation Control Systems on Energy Performance and Flexibility. Energies 2019, 12, 2896. [Google Scholar] [CrossRef] [Green Version]
- Stolojescu-crisan, C.; Crisan, C.; Butunoi, B. An IoT-Based Smart Home Automation System. Sensors 2021, 21, 3784. [Google Scholar] [CrossRef] [PubMed]
- Farzaneh, H.; Malehmirchegini, L.; Bejan, A.; Afolabi, T.; Mulumba, A.; Daka, P.P. Artificial Intelligence Evolution in Smart Buildings for Energy Efficiency. Appl. Sci. 2021, 11, 763. [Google Scholar] [CrossRef]
- Mohamed, N.; Al-Jaroodi, J.; Lazarova-Molnar, S. Leveraging the Capabilities of Industry 4.0 for Improving Energy Efficiency in Smart Factories. IEEE Access 2019, 7, 18008–18020. [Google Scholar] [CrossRef]
- Bardazzi, R.; Pazienza, M.G. Switch off the Light, Please! Energy Use, Aging Population and Consumption Habits. Energy Econ. 2017, 65, 161–171. [Google Scholar] [CrossRef]
- Kent, M.; Huynh, N.K.; Schiavon, S.; Selkowitz, S. Using Support Vector Machine to Detect Desk Illuminance Sensor Blockage for Closed-Loop Daylight Harvesting. Energy Build. 2022, 274, 112443. [Google Scholar] [CrossRef]
- Rocha, P.; Siddiqui, A.; Stadler, M. Improving Energy Efficiency via Smart Building Energy Management Systems: A Comparison with Policy Measures. Energy Build. 2015, 88, 203–213. [Google Scholar] [CrossRef] [Green Version]
- Fayaz, M.; Kim, D.H. Energy Consumption Optimization and User Comfort Management in Residential Buildings Using a Bat Algorithm and Fuzzy Logic. Energies 2018, 11, 161. [Google Scholar] [CrossRef] [Green Version]
- Kim, S.; Lim, H. Reinforcement Learning Based Energy Management Algorithm for Smart Energy Buildings. Energies 2018, 11, 2010. [Google Scholar] [CrossRef] [Green Version]
- Chojecki, A.; Ambroziak, A.; Borkowski, P. Fuzzy Controllers Instead of Classical PIDs in HVAC Equipment: Dusting off a Well-Known Technology and Today’s Implementation for Better Energy Efficiency and User Comfort. Energies 2023, 16, 2967. [Google Scholar] [CrossRef]
- Mat Daut, M.A.; Hassan, M.Y.; Abdullah, H.; Rahman, H.A.; Abdullah, M.P.; Hussin, F. Building Electrical Energy Consumption Forecasting Analysis Using Conventional and Artificial Intelligence Methods: A Review. Renew. Sustain. Energy Rev. 2017, 70, 1108–1118. [Google Scholar] [CrossRef]
- Ngarambe, J.; Yun, G.Y.; Santamouris, M. The Use of Artificial Intelligence (AI) Methods in the Prediction of Thermal Comfort in Buildings: Energy Implications of AI-Based Thermal Comfort Controls. Energy Build. 2020, 211, 109807. [Google Scholar] [CrossRef]
- Verma, A.; Prakash, S.; Kumar, A. AI-Based Building Management and Information System with Multi-Agent Topology for an Energy-Efficient Building: Towards Occupants Comfort. IETE J. Res. 2023, 69, 1033–1044. [Google Scholar] [CrossRef]
- Conceição, T.; Braga, C.; Rosado, L.; Vasconcelos, M.J.M. A Review of Computational Methods for Cervical Cells Segmentation and Abnormality Classification. Int. J. Mol. Sci. 2019, 20, 5114. [Google Scholar] [CrossRef] [PubMed] [Green Version]
- Tang, T.W.; Kuo, W.H.; Lan, J.H.; Ding, C.F.; Hsu, H.; Young, H.T. Anomaly Detection Neural Network with Dual Auto-Encoders GAN and Its Industrial Inspection Applications. Sensors 2020, 20, 3336. [Google Scholar] [CrossRef] [PubMed]
- Mokhtari, S.; Abbaspour, A.; Yen, K.K.; Sargolzaei, A. A Machine Learning Approach for Anomaly Detection in Industrial Control Systems Based on Measurement Data. Electronics 2021, 10, 407. [Google Scholar] [CrossRef]
- Rodrigues, F.; Cotella, V.; Rodrigues, H.; Rocha, E.; Freitas, F.; Matos, R. Application of Deep Learning Approach for the Classification of Buildings’ Degradation State in a BIM Methodology. Appl. Sci. 2022, 12, 7403. [Google Scholar] [CrossRef]
- Gavali, P.; Banu, J.S. Deep Convolutional Neural Network for Image Classification on CUDA Platform. In Deep Learning and Parallel Computing Environment for Bioengineering Systems; Elsevier: Amsterdam, The Netherlands, 2019; pp. 99–122. ISBN 9780128167182. [Google Scholar]
- Liu, F.T.; Ting, K.M.; Zhou, Z.H. Isolation Forest. In Proceedings of the 2008 Eighth IEEE International Conference on Data Mining, Pisa, Italy, 15–19 December 2008; pp. 413–422. [Google Scholar] [CrossRef]
- Karczmarek, P.; Kiersztyn, A.; Pedrycz, W.; Al, E. K-Means-Based Isolation Forest. Knowl.-Based Syst. 2020, 195, 105659. [Google Scholar] [CrossRef]
- Zhang, Y.; Dong, Y.; Wu, K.; Chen, T. Hyperspectral Anomaly Detection with Otsu-Based Isolation Forest. IEEE J. Sel. Top. Appl. Earth Obs. Remote Sens. 2021, 14, 9079–9088. [Google Scholar] [CrossRef]
- Li, W.; Li, Y.; Shi, J.; Chao, K.; Zhang, X. Power Grid Fault Detection Method Based on Cloud Platform and Improved Isolated Forest. IEEE Adv. Inf. Technol. Electron. Autom. Control Conf. (IAEAC) 2021, 2021, 864–867. [Google Scholar] [CrossRef]
- Ahmed, S.; Lee, Y.; Hyun, S.H.; Koo, I. Unsupervised Machine Learning-Based Detection of Covert Data Integrity Assault in Smart Grid Networks Utilizing Isolation Forest. IEEE Trans. Inf. Secur. 2019, 14, 2765–2777. [Google Scholar] [CrossRef]
- Cook, A.A.; Misirli, G.; Fan, Z. Anomaly Detection for IoT Time-Series Data: A Survey. IEEE Internet Things J. 2020, 7, 6481–6494. [Google Scholar] [CrossRef]
- Liu, Y.; Pang, Z.; Karlsson, M.; Gong, S. Anomaly Detection Based on Machine Learning in IoT-Based Vertical Plant Wall for Indoor Climate Control. Build. Environ. 2020, 183, 107212. [Google Scholar] [CrossRef]
- Liu, X.; Ding, Y.; Tang, H.; Xiao, F. A Data Mining-Based Framework for the Identification of Daily Electricity Usage Patterns and Anomaly Detection in Building Electricity Consumption Data. Energy Build. 2021, 231, 110601. [Google Scholar] [CrossRef]
- Ramapatruni, S.; Narayanan, S.N.; Mittal, S.; Joshi, A.; Joshi, K. Anomaly Detection Models for Smart Home Security. In Proceedings of the 2019 IEEE 5th International Conference on Big Data Security on Cloud (BigDataSecurity), IEEE International Conference on High Performance and Smart Computing, (HPSC) and IEEE International Conference on Intelligent Data and Security (IDS), Washington, DC, USA, 27–29 May 2019; pp. 19–24. [Google Scholar] [CrossRef]
- Rashid, H.; Singh, P. Monitor: An Abnormality Detection Approach in Buildings Energy Consumption. In Proceedings of the 2018 IEEE 4th International Conference on Collaboration and Internet Computing (CIC), Philadelphia, PA, USA, 18–20 October 2018; pp. 16–25. [Google Scholar] [CrossRef]
- Rashid, H.; Stankovic, V.; Stankovic, L.; Singh, P. Evaluation of Non-Intrusive Load Monitoring Algorithms for Appliance-Level Anomaly Detection. In Proceedings of the ICASSP 2019—2019 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), Brighton, UK, 12–17 May 2019; pp. 8325–8329. [Google Scholar] [CrossRef] [Green Version]
- Jiang, J.; Li, T.; Chang, C.; Yang, C.; Liao, L. Fault Diagnosis Method for Lithium-Ion Batteries in Electric Vehicles Based on Isolated Forest Algorithm. J. Energy Storage 2022, 50, 104177. [Google Scholar] [CrossRef]
- Lei, L.; Wu, B.; Fang, X.; Chen, L.; Wu, H.; Liu, W. A Dynamic Anomaly Detection Method of Building Energy Consumption Based on Data Mining Technology. Energy 2023, 263, 125575. [Google Scholar] [CrossRef]
- Woliński, M.; Szymczyk, T. Comparative Analysis of Software for Smart Homes. J. Comput. Sci. Inst. 2022, 23, 84–88. [Google Scholar] [CrossRef]
- Pawłowski, M.; Borkowski, P. Electrical Energy Management System in Double Unpredictability Objects. Prz. Elektrotechniczny 2014, 90, 191–196. [Google Scholar] [CrossRef]
- Siemens. Comprehensive Building Solutions in Your Hands Desigo System. Available online: https://assets.new.siemens.com/siemens/assets/api/uuid:8db4340b-fa06-4cae-8698-eb5ee408f7d8/Desigosysteminteractivebrochurehighres.pdf (accessed on 3 May 2023).
- Žáček, M. Smart Building with Loxone System. In AIP Conference Proceedings; AIP Publishing LLC.: Melville, NY, USA, 2019; Volume 2186. [Google Scholar] [CrossRef]
- Ramelan, A.; Adriyanto, F.; Hermanu, B.A.; Ibrahim, M.H.; Saputro, J.S.; Setiawan, O. IoT Based Building Energy Monitoring and Controlling System Using LoRa Modulation and MQTT Protocol. IOP Conf. Ser. Mater. Sci. Eng. 2021, 1096, 012069. [Google Scholar] [CrossRef]
- Shilpa, V.; Vidya, A.; Pattar, S. MQTT Based Secure Transport Layer Communication for Mutual Authentication in IoT Network. Glob. Transit. Proc. 2022, 3, 60–66. [Google Scholar] [CrossRef]
- Nasar, M.; Kausar, M.A. Suitability of Influxdb Database for Iot Applications. Int. J. Innov. Technol. Explor. Eng. 2019, 8, 1850–1857. [Google Scholar] [CrossRef]
- Chakraborty, M.; Kundan, A.P. Monitoring Cloud-Native Applications; Apress: New York, NY, USA, 2021. [Google Scholar]
- Obaid, A.J. Assessment of Smart Home Assistants as an IoT. Int. J. Comput. Inf. Manuf. (IJCIM) 2021, 1, 18–36. [Google Scholar] [CrossRef]
- Bisong, E. Google Cloud Machine Learning Engine (Cloud MLE). In Building Machine Learning and Deep Learning Models on Google Cloud Platform; Apress: New York, NY, USA, 2019; pp. 545–579. [Google Scholar]
- Talei, H.; Benhaddou, D.; Gamarra, C.; Benbrahim, H.; Essaaidi, M. Smart Building Energy Inefficiencies Detection through Time Series Analysis and Unsupervised Machine Learning. Energies 2021, 14, 6042. [Google Scholar] [CrossRef]
- Ahmad, T.; Chen, H.; Huang, R.; Yabin, G.; Wang, J.; Shair, J.; Azeem Akram, H.M.; Hassnain Mohsan, S.A.; Kazim, M. Supervised Based Machine Learning Models for Short, Medium and Long-Term Energy Prediction in Distinct Building Environment. Energy 2018, 158, 17–32. [Google Scholar] [CrossRef]
Algorithms and Methods | The Data | Summary | Integrated with Home Automation System |
---|---|---|---|
Autoencoder; long short-term memory encodes decoder [39] | CO2 and temperature | Many factors can impact machine learning algorithms and the dataset should have excellent quality. | No |
Statistical algorithms; density-based spatial clustering application with noise; K-means; classification and regression tree [40] | Energy load and temperature | The algorithm can classify the profile of the building and detect anomalies in the profile—with accuracy above 80% of classification. | No |
Hidden Markov Model [41] | Various IoT sensors | The model can correctly detect anomalies in the network. The authors achieved 97% accuracy in the smart home. | Partially |
K-NN; k-medoid clustering; Breadth First Scheme [42] | Power consumption | Using a combination of algorithms improves the score from 0.65 to 0.89. | Yes |
Rule-based algorithm; Supervised anomaly detection [43] | Energy load | Appliance-level anomalies cannot be detected using the algorithm proposed by the authors. | Not directly |
Isolation forest [44] | Voltage | The algorithm proves it can be adapted for fault detection in the battery area based on the voltage parameters. | No |
Particle swarm optimization; K-medoids algorithm; KNN algorithm [45] | Energy consumption data | Excellent clustering results are obtained using the PSO-optimised K-medoids clustering technique, and the mean values’ error for all classes is less than 5%. | Partially |
Parameters from System | |||
---|---|---|---|
Fault Situations | Normal Situations | ||
ML for BMS decision | Fault situations | 89 | 16 |
Normal situations | 4 | ~240,000 * |
Parameters from System | |||
---|---|---|---|
Fault Situations | Normal Situations | ||
ML for BMS decision | Fault situations | 3 | 1 |
Normal situations | 0 | ~20,000 * |
Time Window | Time of Retraining (Incl. Pre-Processing) [ms] | |
---|---|---|
Average | Median | |
30 min | 739 | 483 |
1 h | 1191 | 748 |
3 h | 1200 | 751 |
6 h | 3481 | 3932 |
12 h | 3813 | 3933 |
One day | 3668 | 3934 |
Seven days | 4141 | 3528 |
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. |
© 2023 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
Kawa, B.; Borkowski, P. Integration of Machine Learning Solutions in the Building Automation System. Energies 2023, 16, 4504. https://doi.org/10.3390/en16114504
Kawa B, Borkowski P. Integration of Machine Learning Solutions in the Building Automation System. Energies. 2023; 16(11):4504. https://doi.org/10.3390/en16114504
Chicago/Turabian StyleKawa, Bartlomiej, and Piotr Borkowski. 2023. "Integration of Machine Learning Solutions in the Building Automation System" Energies 16, no. 11: 4504. https://doi.org/10.3390/en16114504
APA StyleKawa, B., & Borkowski, P. (2023). Integration of Machine Learning Solutions in the Building Automation System. Energies, 16(11), 4504. https://doi.org/10.3390/en16114504