The Indonesian Journal of Computer Science
Vol. 15 No. 4 (2026): The Indonesian Journal of Computer Science

Multi-Sensor IoT Smart Home Anomaly Detection Using Random Forest Algorithm

Juarisman (Univ Amikom Yogyakarta)
Kamarudin (Department of Informatics, Universitas Amikom Yogyakarta)
Netci Hesvindrati (Department of Information Systems, Universitas Amikom Yogyakarta)



Article Info

Publish Date
01 Aug 2026

Abstract

The increasing adoption of Internet of Things (IoT) technology in smart home environments generates large volumes of dynamic and heterogeneous multi-sensor data, creating challenges in accurately detecting anomalous conditions. This study aims to implement and evaluate the Random Forest algorithm for anomaly detection in IoT-based smart home systems using multi-sensor data. The dataset consists of temperature, humidity, light, motion, carbon monoxide (CO), liquefied petroleum gas (LPG), smoke, door/window status, and energy consumption collected from three IoT devices. Data preprocessing included cleaning, labeling, and Min-Max Scaling normalization, followed by an 80:20 training-testing split. Model performance was evaluated using a confusion matrix, accuracy, precision, recall, and F1-score. The experimental results achieved an accuracy of 96.75%, precision of 94.65%, recall of 93.82%, and F1-score of 94.23%, demonstrating that Random Forest is effective for identifying anomalous conditions in smart home IoT environments.

Copyrights © 2026






Journal Info

Abbrev

ijcs

Publisher

Subject

Computer Science & IT Electrical & Electronics Engineering Engineering

Description

The Indonesian Journal of Computer Science (IJCS) is a bimonthly peer-reviewed journal published by AI Society and STMIK Indonesia. IJCS editions will be published at the end of February, April, June, August, October and December. The scope of IJCS includes general computer science, information ...