Azharda Afriaci
STIKOM Tunas Bangsa

Published : 1 Documents Claim Missing Document
Claim Missing Document
Check
Articles

Found 1 Documents
Search

Optimization of the Random Forest Algorithm Using GridSearchCV for Household Energy Consumption Classification Adinda Nabila; Azharda Afriaci; Haya Atika Syafi'ah
JOMLAI: Journal of Machine Learning and Artificial Intelligence Vol. 5 No. 2 (2026): Juni 2026
Publisher : Yayasan Literasi Sains Indonesia

Show Abstract | Download Original | Original Source | Check in Google Scholar | DOI: 10.55123/jomlai.v5i2.8571

Abstract

The high fluctuation in electricity usage and the complexity of historical data distribution in Internet of Things (IoT)-based smart home environments frequently trigger significant uncertainty in household energy efficiency management. Without an intelligent predictive system, energy consumption surges become exceedingly difficult to control accurately. Therefore, this study aims to develop a high-accuracy predictive classification model architecture to map energy consumption levels into three main categories (Low, Medium, High) by leveraging the Random Forest algorithm. The experimental process was conducted systematically, beginning with the evaluation of a baseline model, followed by an optimization phase integrating the GridSearchCV method based on 5-fold cross-validation for exhaustive hyperparameter tuning on the IoT Smarthome Energy Dataset. Performance was comprehensively evaluated using a confusion matrix and gap accuracy analysis to ensure model robustness. Experimental results proved that the hyperparameter optimization process successfully boosted the global accuracy rate significantly from an initial baseline of 98.92% to 99.46%, while effectively reducing the number of misclassifications. Furthermore, the feature importance analysis provided a transparent scientific interpretation, where the future_consumption_kWh feature was identified as having the most dominant influence at 61.75% on the model's decision structure. In conclusion, this optimized Random Forest architecture is proven to be highly robust and ready to be implemented as a real-scale automatic energy-saving instrument.