Jurnal Media Computer Science
Vol 5 No 4 (2026): Oktober

Predicting Energy Consumption in Smart Homes Using a Linear Regression Algorithm

Bayu Aji Prakoso Dwi Laksono (Universitas Negeri Malang)
Aditya Bimantara Triwiatmaja (Universitas Negeri Malang)
Hafid Setyo Hadi (Universitas Negeri Malang)
Anik Nur Handayani (Universitas Negeri Malang)
Muhammad Zaki Wiryawan (Universitas Negeri Malang)



Article Info

Publish Date
31 Oct 2026

Abstract

While the adoption of Internet of Things (IoT)-based smart home technology offers convenience, it also drives a significant surge in household electricity consumption. Without adequate management strategies, the continuous use of these devices is highly prone to causing energy waste. To mitigate this issue, this research proposes the application of a Linear Regression algorithm to map and predict future energy usage patterns. Experiments were conducted using historical CSV datasets that captured fluctuations in temperature, humidity, and light intensity, alongside electronic device usage history. The analytical process encompassed raw data cleaning (preprocessing), extraction of inter-variable correlations, and the splitting of data into training and testing sets, culminating in model evaluation using MAE, RMSE, and MAPE metrics. Test results demonstrated that the Linear Regression model’s predictions were quite accurate, yielding relatively low error rates. However, the evaluation also revealed the algorithm's inherent limitations when dealing with dynamic, non-linear power consumption trends, where the distribution quality of the dataset heavily influenced the final outcomes. Overall, the Linear Regression method is considered highly suitable as a baseline model for intelligent energy-saving systems, prior to future expansion using more robust machine learning architectures.

Copyrights © 2026






Journal Info

Abbrev

jmcs

Publisher

Subject

Computer Science & IT

Description

Jurnal Media Computer Science merupakan jurnal nasional yang diterbitkan oleh Universitas Dehasen Bengkulu sejak tahun 2022. Jurnal Media Computer Science memuat artikel hasil-hasil penelitian di bidang Komputer, Sistem Informasi dan Teknologi. Jurnal Media Computer Science berkomitmen untuk menjadi ...