Forecasting Power Quality Parameters Using Decision Tree and KNN Algorithms in a Small-Scale Off-Grid Platform

This article presents the results of a performance comparison of four forecasting methods for prediction of electric power quality parameters (PQPs) in small-scale off-grid environments. Forecasting PQPs is crucial in supporting smart grid control and planning strategies by enabling better management, enhancing system reliability, and optimizing the integration of distributed energy resources. The following methods were compared: Bagging Decision Tree (BGDT), Boosting Decision Tree (BODT), and the K-Nearest Neighbor (KNN) algorithm with k−5 and k−10 nearest neighbors considered by the algorithm when making a prediction. The main goal of this study is to find a relation between the input variables (weather conditions, first and second back steps of PQPs, and consumed power of home appliances) and the power quality parameters as target outputs. The studied PQPs are the amplitude of power voltage (U), Voltage Total Harmonic Distortion (THDu), Current Total Harmonic Distortion (THDi), Power Factor (PF), and Power Load (PL). The Root Mean Square Error (RMSE) was used to evaluate the forecasting results. BGDT accomplished better forecasting results for THDu, THDi, and PF. Only BODT obtained a good forecasting result for PL. The KNN (k = 5) algorithm obtained a good result for PF prediction. The KNN (k = 10) algorithm predicted acceptable results for U and PF. The computation time was considered, and the KNN algorithm took a shorter time than ensemble decision trees.

Authors

Institutions

Publication Details

Journal
Energies
Published
2025-08-30
DOI
https://doi.org/10.3390/en18174611
Primary Topic
Energy Load and Power Forecasting
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Forecasting Power Quality Parameters Using Decision Tree and KNN Algorithms in a Small-Scale Off-Grid Platform

Václav Snåšel, Vojtěch Blažek, Wojciech Walendziuk, Lukáš Prokop et al.
Energies
Energy Load and Power Forecasting
article

Forecasting Power Quality Parameters Using Decision Tree and KNN Algorithms in a Small-Scale Off-Grid Platform

Václav Snåšel, Vojtěch Blažek, Wojciech Walendziuk, Lukáš Prokop, Ibrahim Salem Jahan, Stanislav Mišák
article en

Abstract

This article presents the results of a performance comparison of four forecasting methods for prediction of electric power quality parameters (PQPs) in small-scale off-grid environments. Forecasting PQPs is crucial in supporting smart grid control and planning strategies by enabling better management, enhancing system reliability, and optimizing the integration of distributed energy resources. The following methods were compared: Bagging Decision Tree (BGDT), Boosting Decision Tree (BODT), and the K-Nearest Neighbor (KNN) algorithm with k−5 and k−10 nearest neighbors considered by the algorithm when making a prediction. The main goal of this study is to find a relation between the input variables (weather conditions, first and second back steps of PQPs, and consumed power of home appliances) and the power quality parameters as target outputs. The studied PQPs are the amplitude of power voltage (U), Voltage Total Harmonic Distortion (THDu), Current Total Harmonic Distortion (THDi), Power Factor (PF), and Power Load (PL). The Root Mean Square Error (RMSE) was used to evaluate the forecasting results. BGDT accomplished better forecasting results for THDu, THDi, and PF. Only BODT obtained a good forecasting result for PL. The KNN (k = 5) algorithm obtained a good result for PF prediction. The KNN (k = 10) algorithm predicted acceptable results for U and PF. The computation time was considered, and the KNN algorithm took a shorter time than ensemble decision trees.

EnergiesVol. 18(17)
Bialystok University of Technology (PL), VSB - Technical University of Ostrava (CZ), Center for Solar Energy Research and Studies (LY)
Openalex Percentile: Top 78%
Energy Load and Power Forecasting
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.