An Artificial Intelligence Home Monitoring System That Uses CNN and LSTM and Is Based on the Android Studio Development Platform
Source abstract
Abstract
This paper developed an artificial intelligence home environment monitoring system by using the Android Studio development platform. A database was constructed within a server to store sensor data. The proposed system comprises multiple sensors, a message queueing telemetry transport (MQTT) communication protocol, cloud data storage and computation, and end device control. A mobile application was developed using MongoDB software, which is a file-oriented NoSQL database management system developed using C++. This system represents a new database for processing big sensor data. The k-nearest neighbor (KNN) algorithm was used to impute missing data. Node-RED development software was used within the server as a data-receiving, storage, and computing environment that is convenient to manage and maintain. Data on indoor temperature, humidity, and carbon dioxide concentrations are transmitted to a mobile phone application through the MQTT communication protocol for real-time display and monitoring. The system can control a fan or warning light through the mobile application to maintain ambient temperature inside the house and to warn users of emergencies. A long short-term memory (LSTM) model and a convolutional neural network (CNN) model were used to predict indoor temperature, humidity, and carbon dioxide concentrations. Average relative errors in the predicted values of humidity and carbon dioxide concentration were approximately 0.0415% and 0.134%, respectively, for data storage using the KNN algorithm. For indoor temperature prediction, the LSTM model had a mean absolute percentage error of 0.180% and a root-mean-squared error of 0.042 °C. The CNN–LSTM model had a mean absolute percentage error of 1.370% and a root-mean-squared error of 0.117 °C.
Source: crossref · Quality: baseline
Research context
OpenAlex topics: Internet of Things and Social Network Interactions · Robotics and Automated Systems
SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.
Affiliations
Electrical Engineering, National Taipei University of Technology, Taipei 10608, Taiwan
Funding
National Science and Technology Council
References (22)
Show source-provided references
1. Artificial intelligence of things for smarter healthcare: A survey of advancements, challenges, and opportunities10.1109/COMST.2023.3256323 ↗
2. Architecting the internet of things: State of the art10.1007/978-3-319-22168-7_3 ↗
3. Design and implementation of a smart seawater aquarium system based on artificial intelligence of things technology10.1109/JSEN.2022.3200958 ↗
4. Yu, L., Lin, Y., Xu, H., Yang, J., and Zhao, G. (2024, January 12–14). Research on the Design of Indoor Air Quality Monitoring System Based on Cloud–Side–End Collaboration. Proceedings of the 5th International Conference on Computer Engineering and Application (ICCEA), Hangzhou, China.10.1109/ICCEA62105.2024.10603493 ↗
5. Design and development of an IoT gateway for smart building applications10.1109/JIOT.2019.2926099 ↗
6. Venkatesh, K., Barmada, B., Liesaputra, V., and Prado, G.R. (2019, January 9–12). Resilient Activities Tracking in a Smart Home Using Ultrasonic Sensors. Proceedings of the IEEE International Conference on Big Data (Big Data), Los Angeles, CA, USA.10.1109/BigData47090.2019.9006026 ↗
7. Zhang, C., Zhang, M., Su, Y., and Wang, W. (2012, January 8–10). Smart Home Design Based on ZigBee Wireless Sensor Network. Proceedings of the 7th International Conference on Communications and Networking in China, Kunming, China.
8. Lee, S., Kim, H., Hong, D., and Ju, H. (2013, January 28–30). Correlation Analysis of MQTT Loss and Delay According to QoS Level. Proceedings of the International Conference on Information Networking 2013 (ICOIN), Bangkok, Thailand.
9. Spinsante, S., Ciattaglia, G., Campo, A.D., Perla, D., Pigini, D., and Cancellieri, G. (2017, January 20–22). A LoRa Enabled Building Automation Architecture Based on MQTT. Proceedings of the AEIT International Annual Conference, Cagliari, Italy.10.23919/AEIT.2017.8240560 ↗
10. Chethana, C. (2021, January 6–8). Prediction of Heart Disease Using Different KNN Classifier. Proceedings of the 5th International Conference on Intelligent Computing and Control Systems (ICICCS), Madural, India.10.1109/ICICCS51141.2021.9432178 ↗
11. Ramapatruni, S., Narayanan, S.N., Mittal, S., Joshi, A., and Joshi, K. (2019, January 27–29). Anomaly Detection Models for Smart Home Security. Proceedings of the 5th International Conference on Big Data Security on Cloud, Washington, DC, USA.10.1109/BigDataSecurity-HPSC-IDS.2019.00015 ↗
12. Short–term temperature forecasts using a convolutional neural network—An application to different weather stations in Germany
13. Wu, T., Liu, C., and He, C. (2020, January 12–14). Prediction of regional temperature change trend based on LSTM algorithm. Proceedings of the 4th Information Technology, Networking, Electronic and Automation Control Conference (ITNEC), Chongqing, China.10.1109/ITNEC48623.2020.9084842 ↗
14. Nahid, F.A., Ongsakul, W., and Manjiparambil, N.M. (2020, January 20–22). Very Short Term Wind Speed Forecasting Using Convolutional Long Short Term Memory Recurrent Neural Network. Proceedings of the International Conference and Utility Exhibition on Energy, Environment and Climate Change (ICUE), Pattaya, Thailand.
15. Patro, S.P., Patel, P., Senapaty, M.K., Padhy, N., and Sah, R.D. (2020, January 21–23). Smart Home Automation System Using Arduino Microcontrollers. Proceedings of the International Conference on Automation, Quality and Testing, Robotics (AQTR), Cluj–Napoca, Romania.
16. Lekić, M., and Gardašević, G. (2018, January 21–23). IoT Sensor Integration to Node–RED Platform. Proceedings of the 17th International Symposium INFOTEH–JAHORINA (INFOTEH), East Sarajevo, Bosnia and Herzegovina.10.1109/INFOTEH.2018.8345544 ↗
17. Wang, C., Ren, B., Li, X., and Chen, L. (2023, January 12–14). A CNN–BiLSTM and KNN Based Missing Data Imputation for Wind Power Generation Forecasting. Proceedings of the IEEE 6th International Electrical and Energy Conference (CIEEC), Hefei, China.10.1109/CIEEC58067.2023.10166993 ↗
18. An indoor temperature prediction framework based on hierarchical attention gated recurrent unit model for energy efficient buildings10.1109/ACCESS.2019.2950341 ↗
19. Li, C., Zhang, Y., and Zhao, G. (2019, January 16–18). Deep Learning with Long Short–Term Memory Networks for Air Temperature Predictions. Proceedings of the International Conference on Artificial Intelligence and Advanced Manufacturing (AIAM), Dublin, Ireland.10.1109/AIAM48774.2019.00056 ↗
20. Yang, J., Chen, H., Lin, S., Chen, L., and Chen, Y. (2022, January 17–19). Prediction of Temperature Change with Multi–Dimensional Environmental Characteristic Based on CNN–LSTM–ATTENTION Model. Proceedings of the 10th Joint International Information Technology and Artificial Intelligence Conference (ITAIC), Chongqing, China.10.1109/ITAIC54216.2022.9836837 ↗
21. Ramanujam, E., Sharma, A., Hussian, J.J., and Perumal, T. (2022, January 21–23). Improving Indoor Occupancy Estimation Using a Hybrid CNN–LSTM Approach. Proceedings of the International Conference on Intelligent Controller and Computing for Smart Power (ICICCSP), Hyderabad, India.10.1109/ICICCSP53532.2022.9862328 ↗
22. Deep CNN–LSTM network for indoor location estimation using analog signals of passive infrared sensors10.1109/JIOT.2022.3183148 ↗