{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,6,13]],"date-time":"2026-06-13T06:44:26Z","timestamp":1781333066779,"version":"3.54.1"},"reference-count":55,"publisher":"MDPI AG","issue":"3","license":[{"start":{"date-parts":[[2021,3,9]],"date-time":"2021-03-09T00:00:00Z","timestamp":1615248000000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/"}],"content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["Future Internet"],"abstract":"<jats:p>Many countries worldwide face challenges in controlling building incidence prevention measures for fire disasters. The most critical issues are the localization, identification, detection of the room occupant. Internet of Things (IoT) along with machine learning proved the increase of the smartness of the building by providing real-time data acquisition using sensors and actuators for prediction mechanisms. This paper proposes the implementation of an IoT framework to capture indoor environmental parameters for occupancy multivariate time-series data. The application of the Long Short Term Memory (LSTM) Deep Learning algorithm is used to infer the knowledge of the presence of human beings. An experiment is conducted in an office room using multivariate time-series as predictors in the regression forecasting problem. The results obtained demonstrate that with the developed system it is possible to obtain, process, and store environmental information. The information collected was applied to the LSTM algorithm and compared with other machine learning algorithms. The compared algorithms are Support Vector Machine, Na\u00efve Bayes Network, and Multilayer Perceptron Feed-Forward Network. The outcomes based on the parametric calibrations demonstrate that LSTM performs better in the context of the proposed application.<\/jats:p>","DOI":"10.3390\/fi13030067","type":"journal-article","created":{"date-parts":[[2021,3,9]],"date-time":"2021-03-09T12:08:01Z","timestamp":1615291681000},"page":"67","update-policy":"https:\/\/doi.org\/10.3390\/mdpi_crossmark_policy","source":"Crossref","is-referenced-by-count":39,"title":["Implementation of IoT Framework with Data Analysis Using Deep Learning Methods for Occupancy Prediction in a Building"],"prefix":"10.3390","volume":"13","author":[{"given":"Eric","family":"Hitimana","sequence":"first","affiliation":[{"name":"African Center of Excellence in the Internet of Things, University of Rwanda, Kigali P.O. Box 3900, Rwanda"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0001-9998-4123","authenticated-orcid":false,"given":"Gaurav","family":"Bajpai","sequence":"additional","affiliation":[{"name":"Department of Computer and Software Engineering, University of Rwanda, Kigali P.O. Box 3900, Rwanda"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0001-7451-4977","authenticated-orcid":false,"given":"Richard","family":"Musabe","sequence":"additional","affiliation":[{"name":"Department of Computer and Software Engineering, University of Rwanda, Kigali P.O. Box 3900, Rwanda"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Louis","family":"Sibomana","sequence":"additional","affiliation":[{"name":"National Council for Science and Technology, Kigali P.O. Box 2285, Rwanda"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-6160-1374","authenticated-orcid":false,"given":"Jayavel","family":"Kayalvizhi","sequence":"additional","affiliation":[{"name":"Department of Information Technology, SRM Institute of Science and Technology, Kattankulathur, Tamil Nadu 603203, India"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"1968","published-online":{"date-parts":[[2021,3,9]]},"reference":[{"key":"ref_1","unstructured":"Stamford, C. (2020, July 17). Analysts to Explore the Value and Impact of IoT on Business at Gartner. Available online: https:\/\/www.gartner.com\/en\/newsroom\/press-releases\/2015-11-10-gartner-says-6-billion-connected-things-will-be-in-use-in-2016-up-30-percent-from-2015."},{"key":"ref_2","doi-asserted-by":"crossref","first-page":"5849","DOI":"10.3390\/su11205849","article-title":"Design and implementation of thermal comfort system based on tasks allocation mechanism in smart homes","volume":"11","author":"Ahmad","year":"2019","journal-title":"Sustainability"},{"key":"ref_3","doi-asserted-by":"crossref","unstructured":"Park, H., and Rhee, S.B. (2020, January 05). IoT-Based Smart Building Environment Service for Occupants\u2019 Thermal Comfort. Available online: https:\/\/www.hindawi.com\/journals\/js\/2018\/1757409\/.","DOI":"10.1155\/2018\/1757409"},{"key":"ref_4","unstructured":"East African Community (2020, January 06). Disaster Risk Reduction and Management Strategy (2012\u20132016). Available online: https:\/\/www.ifrc.org\/Global\/Publications\/IDRL\/regional\/EAC_DRRMS(2012-2016).pdf."},{"key":"ref_5","unstructured":"(2020, January 08). The Republic of Rwanda, Ministry in Charge of Emergency Management, Available online: https:\/\/www.minema.gov.rw\/fileadmin\/user_upload\/Minema\/Publications\/Contingency_Plans\/Contingency_Plan_for_Fire_Incidents.pdf."},{"key":"ref_6","unstructured":"(2020, January 07). Republic of Rwanda; Ministry of Infrastructure, Urbanization and Rural Settlement, Available online: http:\/\/www.minecofin.gov.rw\/fileadmin\/templates\/documents\/NDPR\/Sector_Strategic_Plans\/Urbanization_and_Rural_Settlement.pdf."},{"key":"ref_7","first-page":"481","article-title":"The Impact of Natural Disasters on Remittances to Low- and Middle-income Countries","volume":"54","author":"Bettin","year":"2016","journal-title":"Dev. Work. Pap."},{"key":"ref_8","doi-asserted-by":"crossref","unstructured":"Mondal, D.R. (2019). High Risk of Post-Earthquake Fire Hazard in Dhaka, Bangladesh. Fire, 2.","DOI":"10.3390\/fire2020024"},{"key":"ref_9","doi-asserted-by":"crossref","unstructured":"Lam, H.C.Y., Haines, A., McGregor, G., Chan, E.Y.Y., and Hajat, S. (2019). Time-Series Study of Associations between Rates of People Affected by Disasters and the El Ni\u00f1o Southern Oscillation (ENSO) Cycle. Int. J. Environ. Res. Public Health, 16.","DOI":"10.3390\/ijerph16173146"},{"key":"ref_10","doi-asserted-by":"crossref","unstructured":"Ghai, S.K., Thanayankizil, L.V., Seetharam, D.P., and Chakraborty, D. (2012, January 19\u201323). Occupancy detection in commercial buildings using opportunistic context sources. Proceedings of the 2012 IEEE International Conference on Pervasive Computing and Communications Workshops, Lugano, Switzerland.","DOI":"10.1109\/PerComW.2012.6197536"},{"key":"ref_11","doi-asserted-by":"crossref","first-page":"128","DOI":"10.1016\/j.autcon.2016.05.005","article-title":"Conditional Random Fields\u2014Based approach for real-time building occupancy estimation with multi-sensory networks","volume":"68","author":"Zikos","year":"2016","journal-title":"Autom. Constr."},{"key":"ref_12","doi-asserted-by":"crossref","unstructured":"Dey, A., Ling, X., Syed, A., Zheng, Y., Landowski, B., Anderson, D., Stuart, K., and Tolentino, M.E. (2016, January 12\u201314). Namatad: Inferring occupancy from building sensors using machine learning. Proceedings of the 2016 IEEE 3rd World Forum Internet Things, Reston, VA, USA.","DOI":"10.1109\/WF-IoT.2016.7845462"},{"key":"ref_13","doi-asserted-by":"crossref","unstructured":"Xayasouk, T., Lee, H.M., and Lee, G. (2020). Air pollution prediction using long short-term memory (LSTM) and deep autoencoder (DAE) models. Sustainability, 12.","DOI":"10.3390\/su12062570"},{"key":"ref_14","doi-asserted-by":"crossref","unstructured":"Le, X.H., Ho, H.V., Lee, G., and Jung, S. (2019). Application of Long Short-Term Memory (LSTM) neural network for flood forecasting. Water, 11.","DOI":"10.3390\/w11071387"},{"key":"ref_15","first-page":"68","article-title":"LSTM network: A deep learning approach for short-term traffic forecast","volume":"11","author":"Zhao","year":"2017","journal-title":"IET Image Process."},{"key":"ref_16","doi-asserted-by":"crossref","unstructured":"Choi, E., Cho, S., and Kim, D.K. (2020). Power demand forecasting using long short-term memory (LSTM) deep-learning model for monitoring energy sustainability. Sustainability, 12.","DOI":"10.3390\/su12031109"},{"key":"ref_17","doi-asserted-by":"crossref","unstructured":"Liu, P., Wang, J., Sangaiah, A., Xie, Y., and Yin, X. (2019). Analysis and Prediction of Water Quality Using LSTM Deep Neural Networks in IoT Environment. Sustainability, 11.","DOI":"10.3390\/su11072058"},{"key":"ref_18","doi-asserted-by":"crossref","unstructured":"Allahbakhshi, H., Conrow, L., Naimi, B., and Weibel, R. (2020). Using accelerometer and GPS data for real-life physical activity type detection. Sensors, 20.","DOI":"10.3390\/s20030588"},{"key":"ref_19","doi-asserted-by":"crossref","first-page":"46","DOI":"10.1016\/j.healthplace.2011.09.003","article-title":"A study of community design, greenness, and physical activity in children using satellite, GPS and accelerometer data","volume":"18","author":"Almanza","year":"2012","journal-title":"Health Place"},{"key":"ref_20","doi-asserted-by":"crossref","unstructured":"Wu, L., Yang, B., and Jing, P. (2016). Travel Mode Detection Based on GPS Raw Data Collected by Smartphones: A Systematic Review of the Existing Methodologies. Information, 7.","DOI":"10.20944\/preprints201607.0075.v1"},{"key":"ref_21","doi-asserted-by":"crossref","first-page":"8","DOI":"10.1016\/j.healthplace.2015.08.005","article-title":"Public transit generates new physical activity: Evidence from individual GPS and accelerometer data before and after light rail construction in a neighborhood of Salt Lake City, Utah, USA","volume":"36","author":"Miller","year":"2015","journal-title":"Health Place"},{"key":"ref_22","doi-asserted-by":"crossref","unstructured":"Grgi\u0107, K., \u0160peh, I., and He\u0111i, I. (2016, January 12\u201314). A web-based IoT solution for monitoring data using MQTT protocol. In Proceedings of 2016 International Conference on Smart Systems and Technologies, Osijek, Croatia.","DOI":"10.1109\/SST.2016.7765668"},{"key":"ref_23","doi-asserted-by":"crossref","unstructured":"Jia, K., Xiao, J., Fan, S., and He, G. (2018). An MQTT\/MQTT-SN-Based User Energy Management System for Automated Residential Demand Response: Formal Verification and Cyber-Physical Performance Evaluation. Appl. Sci., 8.","DOI":"10.3390\/app8071035"},{"key":"ref_24","doi-asserted-by":"crossref","unstructured":"Tang, K., Wang, Y., Liu, H., Sheng, Y., Wang, X., and Wei, Z. (2013). Design and Implementation of Push Notification System Based on the MQTT Protocol. Proceedings of the 2013 International Conference on Information Science and Computer Applications (ISCA 2013), Atlantis Press.","DOI":"10.2991\/isca-13.2013.20"},{"key":"ref_25","doi-asserted-by":"crossref","unstructured":"Luzuriaga, J.E., Cano, J.C., Calafate, C., Manzoni, P., Perez, M., and Boronat, P. (2015, January 8\u201311). Handling mobility in IoT applications using the MQTT protocol. Proceedings of the 2015 Internet Technologies and Applications, ITA 2015\u2014Proceedings of the 6th International Conference, Wrexham, UK.","DOI":"10.1109\/ITechA.2015.7317403"},{"key":"ref_26","doi-asserted-by":"crossref","first-page":"1265","DOI":"10.1016\/j.protcy.2013.12.141","article-title":"System of Acquisition, Transmission, Storage and Visualization of Pulse Oximeter and ECG Data Using Android and MQTT","volume":"9","author":"Barata","year":"2013","journal-title":"Procedia Technol."},{"key":"ref_27","doi-asserted-by":"crossref","first-page":"160","DOI":"10.1016\/j.procs.2016.05.045","article-title":"Wireless Heart Rate Monitoring System Using MQTT","volume":"86","author":"Chooruang","year":"2016","journal-title":"Procedia Comput. Sci."},{"key":"ref_28","unstructured":"Lee, S., Kim, H., Hong, D.K., and Ju, H. (2013). Correlation analysis of MQTT loss and delay according to QoS level. International Conference on Information Networking, IEEE."},{"key":"ref_29","unstructured":"(2020, July 20). OASIS Standard Incorporating Approved Errata 01 | StandICT.eu. Available online: https:\/\/www.standict.eu\/standards-watch\/oasis-standard-incorporating-approved-errata-01."},{"key":"ref_30","doi-asserted-by":"crossref","unstructured":"Govindan, K., and Azad, A.P. (2015, January 9\u201312). End-to-end service assurance in IoT MQTT-SN. Proceedings of the 2015 12th Annual IEEE Consumer Communications and Networking Conference, CCNC, Las Vegas, NV, USA.","DOI":"10.1109\/CCNC.2015.7157991"},{"key":"ref_31","doi-asserted-by":"crossref","unstructured":"Vafeiadis, T., Zikos, S., Stavropoulos, G., Ioannidis, D., Krinidis, S., Tzovaras, D., and Moustakas, K. (2021, January 31). Machine Learning Based Occupancy Detection Via The Use of Smart Meters. Available online: https:\/\/www.encompass-project.eu\/wp-content\/uploads\/2017\/10\/ICESEE17_occupancy.pdf.","DOI":"10.1109\/ISCSIC.2017.15"},{"key":"ref_32","unstructured":"Cesana, M., Redondi, A., Longo, E., and Giardini, G. (2020, July 21). Machine Learning Methods for Indoor Occupancy Detection with CO2 Multi-sensor Data. Available online: https:\/\/www.politesi.polimi.it\/bitstream\/10589\/147394\/3\/Tesi_Giorgio_Giardini_874841.pdf."},{"key":"ref_33","doi-asserted-by":"crossref","unstructured":"Dinculean\u0103, D., and Cheng, X. (2019). Vulnerabilities and Limitations of MQTT Protocol Used between IoT Devices. Appl. Sci., 9.","DOI":"10.3390\/app9050848"},{"key":"ref_34","doi-asserted-by":"crossref","unstructured":"S\u00e1nchez, P., \u00c1lvarez, B., Antolinos, E., Fern\u00e1ndez, D., and Iborra, A. (2018). A teleo-reactive node for implementing internet of things systems. Sensors, 18.","DOI":"10.3390\/s18041059"},{"key":"ref_35","unstructured":"(2020, July 20). EMQ\u2014Erlang MQTT Broker\u2014EMQ 2.2\u2014Erlang MQTT Broker 2.2-beta.1 Documentation. Available online: https:\/\/docs.emqx.io\/broker\/v2\/en\/index.html."},{"key":"ref_36","first-page":"1","article-title":"Modeling and querying data in NoSQL databases","volume":"Volume 2013","author":"Kaur","year":"2013","journal-title":"Proceedings\u20142013 IEEE International Conference on Big Data, Big Data"},{"key":"ref_37","doi-asserted-by":"crossref","unstructured":"Martinez-Mosquera, D., Navarrete, R., and Lujan-Mora, S. (2020). Modeling and management big data in the databases\u2014A systematic literature review. Sustainability, 12.","DOI":"10.3390\/su12020634"},{"key":"ref_38","doi-asserted-by":"crossref","unstructured":"Milan, A., Rezatofighi, S.H., Dick, A., Reid, I., and Schindler, K. (2017, January 4\u20139). Online Multi-Target Tracking Using Recurrent Neural Networks. Proceedings of the AAAI Conference on Artificial Intelligence, San Francisco, CA, USA.","DOI":"10.1609\/aaai.v31i1.11194"},{"key":"ref_39","doi-asserted-by":"crossref","first-page":"1279","DOI":"10.1109\/TNNLS.2015.2477537","article-title":"Salient Band Selection for Hyperspectral Image Classification via Manifold Ranking","volume":"27","author":"Wang","year":"2016","journal-title":"IEEE Trans. Neural Netw. Learn. Syst."},{"key":"ref_40","doi-asserted-by":"crossref","unstructured":"Graves, A., Mohamed, A., and Hinton, G. (2013). Speech Recognition with Deep Recurrent Neural Networks. ICASSP, 2013 IEEE International Conference on Acoustics, Speech and Signal Processing, IEEE.","DOI":"10.1109\/ICASSP.2013.6638947"},{"key":"ref_41","first-page":"447","article-title":"MTIL2017: Machine translation using recurrent neural network on statistical machine translation","volume":"28","author":"Mahata","year":"2019","journal-title":"J. Intell. Syst."},{"key":"ref_42","unstructured":"(2020, June 08). Vedantu Learn LIVE Online, NCERT\u2014National Council of Educational Research and Training. Available online: https:\/\/www.vedantu.com\/ncert-solutions\/ncert-solutions-class-11-biology-chapter-17-breathing-and-exchange-of-gases."},{"key":"ref_43","unstructured":"(2020, September 30). How to Diagnose Overfitting and Underfitting of LSTM Models. Available online: https:\/\/machinelearningmastery.com\/diagnose-overfitting-underfitting-lstm-models\/."},{"key":"ref_44","doi-asserted-by":"crossref","first-page":"17245","DOI":"10.1007\/s00521-020-05208-8","article-title":"Change detection and convolution neural networks for fall recognition","volume":"32","author":"Georgakopoulos","year":"2020","journal-title":"Neural Comput. Appl."},{"key":"ref_45","doi-asserted-by":"crossref","first-page":"4142","DOI":"10.3390\/rs12244142","article-title":"Air pollution prediction with multi-modal data and deep neural networks","volume":"12","author":"Kalajdjieski","year":"2020","journal-title":"Remote Sens."},{"key":"ref_46","unstructured":"Dufour, J. (2011). Coefficients of Determination, McGill University."},{"key":"ref_47","doi-asserted-by":"crossref","first-page":"1247","DOI":"10.5194\/gmd-7-1247-2014","article-title":"Root mean square error (RMSE) or mean absolute error (MAE)?-Arguments against avoiding RMSE in the literature","volume":"7","author":"Chai","year":"2014","journal-title":"Geosci. Model Dev."},{"key":"ref_48","unstructured":"(2020, October 18). RMSE: Root Mean Square Error\u2014Statistics How to. Available online: https:\/\/www.statisticshowto.com\/probability-and-statistics\/regression-analysis\/rmse-root-mean-square-error\/."},{"key":"ref_49","doi-asserted-by":"crossref","first-page":"16","DOI":"10.1016\/j.ijepes.2015.02.006","article-title":"Probabilistic solar power forecasting in smart grids using distributed information","volume":"72","author":"Bessa","year":"2015","journal-title":"Int. J. Electr. Power Energy Syst."},{"key":"ref_50","unstructured":"Chen, Y., Abraham, A., Yang, J., and Yang, B. (2020, June 16). Hybrid Methods for Stock Index Modeling. Available online: https:\/\/link.springer.com\/chapter\/10.1007\/11540007_137."},{"key":"ref_51","doi-asserted-by":"crossref","first-page":"923","DOI":"10.1016\/j.asoc.2017.09.029","article-title":"Wavelet Neural Network Prediction Method of Stock Price Trend Based on Rough Set Attribute Reduction","volume":"62","author":"Lei","year":"2018","journal-title":"Appl. Soft Comput. J."},{"key":"ref_52","doi-asserted-by":"crossref","first-page":"636","DOI":"10.1080\/10798587.2013.839287","article-title":"Stock Market Prediction Using a Combination of Stepwise Regression Analysis, Differential Evolution-based Fuzzy Clustering, and a Fuzzy Inference Neural Network","volume":"19","author":"Enke","year":"2013","journal-title":"Intell. Autom. Soft Comput."},{"key":"ref_53","doi-asserted-by":"crossref","first-page":"156053","DOI":"10.1109\/ACCESS.2020.3019095","article-title":"ECHAD: Embedding-Based Change Detection from Multivariate Time Series in Smart Grids","volume":"8","author":"Ceci","year":"2020","journal-title":"IEEE Access"},{"key":"ref_54","first-page":"1","article-title":"Investigation of the root flow in a Horizontal Axis","volume":"2016","author":"Akay","year":"2013","journal-title":"Wind Energy"},{"key":"ref_55","doi-asserted-by":"crossref","first-page":"701","DOI":"10.1016\/j.ins.2020.08.003","article-title":"Multi-aspect renewable energy forecasting","volume":"546","author":"Corizzo","year":"2021","journal-title":"Inf. Sci."}],"container-title":["Future Internet"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/www.mdpi.com\/1999-5903\/13\/3\/67\/pdf","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,10,11]],"date-time":"2025-10-11T05:35:42Z","timestamp":1760160942000},"score":1,"resource":{"primary":{"URL":"https:\/\/www.mdpi.com\/1999-5903\/13\/3\/67"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2021,3,9]]},"references-count":55,"journal-issue":{"issue":"3","published-online":{"date-parts":[[2021,3]]}},"alternative-id":["fi13030067"],"URL":"https:\/\/doi.org\/10.3390\/fi13030067","relation":{},"ISSN":["1999-5903"],"issn-type":[{"value":"1999-5903","type":"electronic"}],"subject":[],"published":{"date-parts":[[2021,3,9]]}}}