Analysis of Electricity Consumption Patterns a Hybrid Algorithm K-Means Clustering and Support Vector Machine

Fika Saputri(1*), Asminar Asminar(2), Tambi Tambi(3), Mustarum Musaruddin(4), Muhammad Nadzirin Anshari Nur(5), Adhi Setiawan Samsul(6),

(1) Halu Oleo University, Kendari
(2) Halu Oleo University, Kendari
(3) Halu Oleo University, Kendari
(4) Halu Oleo University, Kendari
(5) Halu Oleo University, Kendari
(6) Halu Oleo University, Kendari
(*) Corresponding Author

Abstract


Fluctuations in electricity consumption make it difficult to manage and control energy use efficiently. Therefore, an analytical method capable of accurately identifying electricity consumption patterns is needed. Previous studies have generally applied clustering and classification separately and relied mainly on historical data, limiting their ability to capture dynamic electricity consumption patterns and classify new observations. This study aims to analyze electricity consumption patterns using a machine learning approach based on K-Means Clustering and Support Vector Machine (SVM). The data used consist of historical data and 24-hour real-time data obtained from PT PLN (Persero) UP3 Kendari. The research stages include data preprocessing, feature engineering, standardization using Z-scores, the clustering process using K-Means, and classification using SVM in a hybrid approach. The novelty of this study lies in using K-Means cluster labels as target classes for SVM while combining historical and real-time data. The results show the formation of four clusters: Cluster 0 representing stable moderate consumption, Cluster 1 representing high consumption, Cluster 2 representing low consumption, and Cluster 3 representing fluctuating consumption. Evaluation yielded a Silhouette Score of 0.5095 and a Davies-Bouldin Index of 0.6868, indicating fairly good cluster quality. The SVM model achieved an accuracy of 99.23% with high precision, recall, and F1-score values. These results demonstrate that the hybrid approach is effective in improving analysis performance and producing a reliable model for classifying new electricity consumption data

Keywords


K-Means Clustering; Support Vector Machine; Load Pattern; Energy Consumption; Machine Learning

Full Text:

PDF

References


I. M. A. A. Putra and I. B. G. Manuaba, “Literatur Review Tantangan dan Teknologi dalam Pengembangan Advance Metering Infrastructure (AMI),” MITE, vol. 24, no. 1, pp. 1–8, Aug. 2025, doi: 10.24843/MITE.205.v24i01.P01.

M. A. Dávila R., C. L. Trujillo R., and A. A. Jaramillo M., “Revisión de mecanismos de gestión del lado de la demanda para la gestión de energía en el hogar,” Ingeniare. Rev. chil. ing., vol. 30, no. 2, pp. 353–367, Jun. 2022, doi: 10.4067/S0718-33052022000200353.

V. Michalakopoulos, E. Sarmas, I. Papias, P. Skaloumpakas, V. Marinakis, and H. Doukas, “A machine learning-based framework for clustering residential electricity load profiles to enhance demand response programs,” Applied Energy, vol. 361, p. 122943, May 2024, doi: 10.1016/j.apenergy.2024.122943.

D. Muyulema-Masaquiza and M. Ayala-Chauvin, “Segmentation of Energy Consumption Using K-Means: Applications in Tariffing, Outlier Detection, and Demand Prediction in Non-Smart Metering Systems,” Energies, vol. 18, no. 12, p. 3083, Jun. 2025, doi: 10.3390/en18123083.

S. Palaniappan, S. Karuppannan, and D. Velusamy, “Categorization of Indian residential consumers electrical energy consumption pattern using clustering and classification techniques,” Energy, vol. 289, p. 129992, Feb. 2024, doi: 10.1016/j.energy.2023.129992.

K.-L. Du, B. Jiang, J. Lu, J. Hua, and M. N. S. Swamy, “Exploring Kernel Machines and Support Vector Machines: Principles, Techniques, and Future Directions,” Mathematics, vol. 12, no. 24, p. 3935, Dec. 2024, doi: 10.3390/math12243935.

H. Yıldız and M. Balta, “Comparison of Machine Learning Based Anomaly Detection for Energy Consumption Values in SDN-IoT Based Home Area Networks,” SAUCIS, vol. 8, no. 3, pp. 518–535, Sep. 2025, doi: 10.35377/saucis.8.94717.1641393.

X. Wang, H. Wang, B. Bhandari, and L. Cheng, “AI-Empowered Methods for Smart Energy Consumption: A Review of Load Forecasting, Anomaly Detection and Demand Response,” Int. J. of Precis. Eng. and Manuf.-Green Tech., vol. 11, no. 3, pp. 963–993, May 2024, doi: 10.1007/s40684-023-00537-0.

F. Rodríguez-Gómez, J. Del Campo-Ávila, and L. Mora-López, “A novel clustering based method for characterizing household electricity consumption profiles,” Engineering Applications of Artificial Intelligence, vol. 129, p. 107653, Mar. 2024, doi: 10.1016/j.engappai.2023.107653.

G. E. Okereke, M. C. Bali, C. N. Okwueze, E. C. Ukekwe, S. C. Echezona, and C. I. Ugwu, “K-means clustering of electricity consumers using time-domain features from smart meter data,” Journal of Electrical Systems and Inf Technol, vol. 10, no. 1, p. 2, Jan. 2023, doi: 10.1186/s43067-023-00068-3.

X. Li, M. Jiang, D. Cai, W. Song, and Y. Sun, “A Hybrid Forecasting Model for Electricity Demand in Sustainable Power Systems Based on Support Vector Machine,” Energies, vol. 17, no. 17, p. 4377, Sep. 2024, doi: 10.3390/en17174377.

C. Chenghu and A. Thammano, “A Novel Classification Model Based on Hybrid K-Means and Neural Network for Classification Problems,” HighTech. Innov. J., vol. 5, no. 3, pp. 716–729, Sep. 2024, doi: 10.28991/HIJ-2024-05-03-012.

A. Forootani, M. Rastegar, and A. Sami, “Short-term individual residential load forecasting using an enhanced machine learning-based approach based on a feature engineering framework: A comparative study with deep learning methods,” Electric Power Systems Research, vol. 210, p. 108119, Sep. 2022, doi: 10.1016/j.epsr.2022.108119.

F. Topaloglu, “A hybrid approach based on k-means and SVM algorithms in selection of appropriate risk assessment methods for sectors,” PeerJ Computer Science, vol. 10, p. e2198, Jul. 2024, doi: 10.7717/peerj-cs.2198.

R. Wu, “Behavioral analysis of electricity consumption characteristics for customer groups using the k-means algorithm,” Systems and Soft Computing, vol. 6, p. 200143, Dec. 2024, doi: 10.1016/j.sasc.2024.200143.

F. Mazidah and S. Anisah, “ANALISIS PEMANFAATAN DAYA LISTRIK BAGI PELANGGAN TEGANGAN MENENGAH,” POLEKTRO, vol. 13, no. 2, pp. 208–211, May 2024, doi: 10.30591/polektro.v13i2.6699.

M. M. Asiri, G. Aldehim, F. A. Alotaibi, M. M. Alnfiai, M. Assiri, and A. Mahmud, “Short-Term Load Forecasting in Smart Grids Using Hybrid Deep Learning,” IEEE Access, vol. 12, pp. 23504–23513, 2024, doi: 10.1109/ACCESS.2024.3358182.

G. Gusrianty, F. Fenly, D. Jollyta, E. Erlin, R. N. Putri, and D. Oktariana, “Penerapan Linear Discriminant Analysis Untuk Meningkatkan Kinerja Algoritma Support Vector Machine,” JPIT, vol. 10, no. 4, pp. 895–906, Sep. 2025, doi: 10.30591/jpit.v10i4.8772.

O. Rainio, J. Teuho, and R. Klén, “Evaluation metrics and statistical tests for machine learning,” Sci Rep, vol. 14, no. 1, p. 6086, Mar. 2024, doi: 10.1038/s41598-024-56706-x.

D. Syed et al., “Deep Learning-Based Short-Term Load Forecasting Approach in Smart Grid With Clustering and Consumption Pattern Recognition,” IEEE Access, vol. 9, pp. 54992–55008, 2021, doi: 10.1109/ACCESS.2021.3071654.




DOI: http://dx.doi.org/10.61944/bids.v5i1.155

Refbacks

  • There are currently no refbacks.


Copyright (c) 2026 Fika Saputri, Asminar Asminar, Tambi Tambi, Mustarum Musarudddin, Muhammad Nadzirin Anshari Nur, Adhi Setiawan Samsul

Creative Commons License
This work is licensed under a Creative Commons Attribution 4.0 International License.

Bulletin of Informatics and Data Science
Asosiasi Peneliti Data Science Indonesia
Email: pdsi.bids@gmail.com
This work is licensed under a Creative Commons Attribution 4.0 International License.