Enhancing IoT-Based Environmental Monitoring and Power Forecasting: A Comparative Analysis of AI Models for Real-Time Applications
Abstract
:1. Introduction
- A robust, real-time data collection framework for diverse office equipment is designed and implemented, where secure data exchange is ensured through the utilization of HTTPS and MQTT protocols.
- The hybrid LSTM-GRU model is deployed for real-time processing and prediction on edge devices, addressing existing challenges effectively.
- The reliability and performance of the hybrid model are tested with evaluation matrices and compared with the traditional model on different forecasting conditions.
2. Data Collection and Processing
2.1. Data Collection
2.2. Data Preprocessing
3. Proposed Methodology
3.1. Long Short-Term Memory
3.2. Gated Recurrent Unit
3.3. Proposed Hybrid LSTM-GRU Model
3.4. Evaluation Matrices
4. Results and Discussion
5. Conclusions
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Conflicts of Interest
References
- Bhau, G.V.; Deshmukh, R.G.; Chowdhury, S.; Sesharao, Y.; Abilmazhinov, Y.; Kumar, R. IoT based solar energy monitoring system. Mater. Today Proc. 2023, 80, 3697–3701. [Google Scholar] [CrossRef]
- Joha, M.I.; Rahman, M.M.; Zubair, M.I. IoT-Based Smart Energy Monitoring, Management, and Protection System for a Smart MicroGrid. In Proceedings of the 2024 Third International Conference on Power, Control and Computing Technologies (ICPC2T), Kuala Lumpur, Malaysia, 13–15 September 2024; IEEE: New York, NY, USA, 2024; pp. 398–403. [Google Scholar] [CrossRef]
- Salama, R.; Al-Turjman, F.; Aeri, M.; Yadav, S.P. Internet of intelligent things (IoT)–An overview. In Proceedings of the 2023 International Conference on Computational Intelligence, Communication Technology and Networking (CICTN), Ghaziabad, India, 20–21 April 2023; IEEE: New York, NY, USA, 2023; pp. 801–805. [Google Scholar] [CrossRef]
- Bin Mofidul, R.; Alam, M.M.; Rahman, M.H.; Jang, Y.M. Real-time energy data acquisition, anomaly detection, and monitoring system: Implementation of a secured, robust, and integrated global IIoT infrastructure with edge and cloud AI. Sensors 2022, 22, 8980. [Google Scholar] [CrossRef] [PubMed]
- Panduman, Y.Y.F.; Funabiki, N.; Fajrianti, E.D.; Fang, S.; Sukaridhoto, S. A Survey of AI Techniques in IoT Applications with Use Case Investigations in the Smart Environmental Monitoring and Analytics in Real-Time IoT Platform. Information 2024, 15, 153. [Google Scholar] [CrossRef]
- Saleem, T.J.; Chishti, M.A. Deep learning for the internet of things: Potential benefits and use-cases. Digit. Commun. Netw. 2021, 7, 526–542. [Google Scholar] [CrossRef]
- Rioux, L. Comfort at work: An indicator of quality of life at work. In Handbook of Environmental Psychology and Quality of Life Research; Springer: Berlin/Heidelberg, Germany, 2017; pp. 401–419. [Google Scholar] [CrossRef]
- Lin, S.H.; Zhang, H.; Li, J.H.; Ye, C.Z.; Hsieh, J.C. Evaluating smart office buildings from a sustainability perspective: A model of hybrid multi-attribute decision-making. Technol. Soc. 2022, 68, 101824. [Google Scholar] [CrossRef]
- Vimalanathan, K.; Ramesh Babu, T. The effect of indoor office environment on the work performance, health and well-being of office workers. J. Environ. Health Sci. Eng. 2014, 12, 1–8. [Google Scholar] [CrossRef]
- Kaushik, A.; Arif, M.; Tumula, P.; Ebohon, O.J. Effect of thermal comfort on occupant productivity in office buildings: Response surface analysis. Build. Environ. 2020, 180, 107021. [Google Scholar] [CrossRef]
- Leal Filho, J.R.; Kocian, A.; Fröhlich, A.A.; Chessa, S. Continual Learning in Recurrent Neural Networks for the Internet of Things: A Stochastic Approach. In Proceedings of the 2024 IEEE Symposium on Computers and Communications (ISCC), Paris, France, 26–29 June 2024; IEEE: New York, NY, USA, 2024; pp. 1–6. [Google Scholar] [CrossRef]
- Wang, J.Q.; Du, Y.; Wang, J. LSTM based long-term energy consumption prediction with periodicity. Energy 2020, 197, 117197. [Google Scholar] [CrossRef]
- Bouktif, S.; Fiaz, A.; Ouni, A.; Serhani, M.A. Optimal deep learning lstm model for electric load forecasting using feature selection and genetic algorithm: Comparison with machine learning approaches. Energies 2018, 11, 1636. [Google Scholar] [CrossRef]
- Mahjoub, S.; Chrifi-Alaoui, L.; Marhic, B.; Delahoche, L. Predicting energy consumption using LSTM, multi-layer GRU and drop-GRU neural networks. Sensors 2022, 22, 4062. [Google Scholar] [CrossRef]
- Fard, R.H.; Hosseini, S. Machine Learning algorithms for prediction of energy consumption and IoT modeling in complex networks. Microprocess. Microsystems 2022, 89, 104423. [Google Scholar] [CrossRef]
- Qureshi, M.; Arbab, M.A.; Rehman, S.u. Deep learning-based forecasting of electricity consumption. Sci. Rep. 2024, 14, 6489. [Google Scholar] [CrossRef] [PubMed]
- Ma, P.; Cui, S.; Chen, M.; Zhou, S.; Wang, K. Review of family-level short-term load forecasting and its application in household energy management system. Energies 2023, 16, 5809. [Google Scholar] [CrossRef]
- Bacanin, N.; Jovanovic, L.; Zivkovic, M.; Kandasamy, V.; Antonijevic, M.; Deveci, M.; Strumberger, I. Multivariate energy forecasting via metaheuristic tuned long-short term memory and gated recurrent unit neural networks. Inf. Sci. 2023, 642, 119122. [Google Scholar] [CrossRef]
- Lim, S.C.; Huh, J.H.; Hong, S.H.; Park, C.Y.; Kim, J.C. Solar power forecasting using CNN-LSTM hybrid model. Energies 2022, 15, 8233. [Google Scholar] [CrossRef]
- Qin, J.; Zhang, Y.; Fan, S.; Hu, X.; Huang, Y.; Lu, Z.; Liu, Y. Multi-task short-term reactive and active load forecasting method based on attention-LSTM model. Int. J. Electr. Power Energy Syst. 2022, 135, 107517. [Google Scholar] [CrossRef]
- Wang, Y.; Liao, W.; Chang, Y. Gated recurrent unit network-based short-term photovoltaic forecasting. Energies 2018, 11, 2163. [Google Scholar] [CrossRef]
- Song, H.; Choi, H. Forecasting stock market indices using the recurrent neural network based hybrid models: CNN-LSTM, GRU-CNN, and ensemble models. Appl. Sci. 2023, 13, 4644. [Google Scholar] [CrossRef]
- Batur Dinler, Ö.; Aydin, N. An optimal feature parameter set based on gated recurrent unit recurrent neural networks for speech segment detection. Appl. Sci. 2020, 10, 1273. [Google Scholar] [CrossRef]
- Cai, C.; Li, Y.; Su, Z.; Zhu, T.; He, Y. Short-term electrical load forecasting based on VMD and GRU-TCN hybrid network. Appl. Sci. 2022, 12, 6647. [Google Scholar] [CrossRef]
- Lin, C.B.; Dong, Z.; Kuan, W.K.; Huang, Y.F. A framework for fall detection based on OpenPose skeleton and LSTM/GRU models. Appl. Sci. 2020, 11, 329. [Google Scholar] [CrossRef]
- Jayashankara, M.; Shah, P.; Sharma, A.; Chanak, P.; Singh, S.K. A novel approach for short-term energy forecasting in smart buildings. IEEE Sens. J. 2023, 23, 5307–5314. [Google Scholar] [CrossRef]
Parameter | Value |
---|---|
No. of units | 128.64 |
Dropout rate | 0.35 |
Loss function | MSE |
Optimizer | Adam |
Learning rate | 0.001–0.00001 |
Window size | 7 |
Epochs | 300 |
Early stop patience | 25 |
Types | Component | Model | MAE (%) | RMSE (%) | (%) |
---|---|---|---|---|---|
Water | LSTM | 6.47 | 13.22 | 58.61 | |
Dispenser | GRU | 5.33 | 10.42 | 64.34 | |
Hybrid model | 3.78 | 8.15 | 82.04 | ||
Office | Air | LSTM | 3.1 | 6.2 | 95.21 |
Appliance | Conditioner | GRU | 2.38 | 5.39 | 92.5 |
Hybrid model | 2.20 | 4.91 | 96.06 | ||
LSTM | 6.89 | 11.66 | 80.01 | ||
Refrigerator | GRU | 8.24 | 13.84 | 71.64 | |
Hybrid model | 2.12 | 7.77 | 93.69 | ||
LSTM | 8.66 | 15.05 | 47.08 | ||
Temperature | GRU | 9.59 | 15.85 | 39.01 | |
Hybrid model | 0.09 | 0.22 | 99.99 | ||
Weather | LSTM | 4.05 | 5.97 | 25.32 | |
Data | Humidity | GRU | 4.54 | 6.10 | 17.32 |
Hybrid model | 0.08 | 0.26 | 99.98 |
LSTM | GRU | Hybrid Model | |
---|---|---|---|
Time (ms/step) | 7 | 9 | 5 |
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
Rahman, M.M.; Joha, M.I.; Nazim, M.S.; Jang, Y.M. Enhancing IoT-Based Environmental Monitoring and Power Forecasting: A Comparative Analysis of AI Models for Real-Time Applications. Appl. Sci. 2024, 14, 11970. https://doi.org/10.3390/app142411970
Rahman MM, Joha MI, Nazim MS, Jang YM. Enhancing IoT-Based Environmental Monitoring and Power Forecasting: A Comparative Analysis of AI Models for Real-Time Applications. Applied Sciences. 2024; 14(24):11970. https://doi.org/10.3390/app142411970
Chicago/Turabian StyleRahman, Md Minhazur, Md Ibne Joha, Md Shahriar Nazim, and Yeong Min Jang. 2024. "Enhancing IoT-Based Environmental Monitoring and Power Forecasting: A Comparative Analysis of AI Models for Real-Time Applications" Applied Sciences 14, no. 24: 11970. https://doi.org/10.3390/app142411970
APA StyleRahman, M. M., Joha, M. I., Nazim, M. S., & Jang, Y. M. (2024). Enhancing IoT-Based Environmental Monitoring and Power Forecasting: A Comparative Analysis of AI Models for Real-Time Applications. Applied Sciences, 14(24), 11970. https://doi.org/10.3390/app142411970