Electrical Power Prediction Using RS-485 Power Meter: A PSO-Optimized XGBoost Approach for Industrial Smart Manufacturing
Open Access
- 3 March 2026
- journal article
- research article
- Published by MDPI AG in Information
- Vol. 17 (3) , 251
Abstract
Accurate electrical power prediction is increasingly critical in industrial smart manufacturing environments, where energy fluctuations and demand variability pose significant operational challenges under the industry 4.0 paradigm. Existing approaches often rely on simulated or secondary data and lack integration with industrial-grade communication protocols, limiting their practical applicability. Incorporating machine learning with real-time data collection is essential for progressing industrial predictive monitoring. This research presents a framework to forecast electrical power usage by utilizing the RS-485 protocol to enhance smart manufacturing processes. The dataset used was obtained from a power meter, recorded over a period of 135 min, resulting in 3100 data. Three learning methods—Random Forest, Extra Trees, and XGBoost—were analyzed, with XGBoost being further refined through PSO for tuning hyperparameters. The models were trained on datasets that included voltage, current, frequency, and power factor, and their effectiveness was evaluated using time-based predictions, standard metrics, and error distributions through cross-validation. The findings illustrate that the PSO-XGBoost consistently surpasses the default XGBoost baseline R2 of 0.5746, achieving MAE of 0.14 W, RMSE of 0.21 W, and R2 of 0.8355, representing improvements of 41.67% in MAE, 38.24% in RMSE, and 45.40% in R2. The RS-485 protocol enables seamless integration with existing industrial infrastructure, supporting anomaly detection and energy optimization aligned with Industry 4.0 interoperability objectives.Keywords
Funding Information
- Deanship of Scientific Research (DSR) at King Abdulaziz University, Jeddah, Saudi Arabia (IPP: 107-830-2025)
This publication has 32 references indexed in Scilit:
- Improving energy management practices through accurate building energy consumption prediction: analyzing the performance of LightGBM, RF, and XGBoost models with advanced optimization strategiesElectrical Engineering, 2025
- Foundations of Machine Learning-Based Clinical Prediction Modeling: Part II—Generalization and Overfitting2021
- Electrical load forecasting: A deep learning approach based on K-nearest neighborsApplied Soft Computing, 2021
- Semantic-based Big Data integration framework using scalable distributed ontology matching strategyDistributed and Parallel Databases, 2021
- Characterizing, Modeling, and Accurately Simulating Power and Energy Consumption of I/O-intensive Scientific WorkflowsJournal of Computational Science, 2020
- Assessing the predictive capability of ensemble tree methods for landslide susceptibility mapping using XGBoost, gradient boosting machine, and random forestSN Applied Sciences, 2020
- Machine Learning in Business Process Monitoring: A Comparison of Deep Learning and Classical Approaches Used for Outcome PredictionBusiness & Information Systems Engineering, 2020
- Short-term electrical load forecasting using the Support Vector Regression (SVR) model to calculate the demand response baseline for office buildingsApplied Energy, 2017
- Extremely randomized treesMachine Learning, 2006
- Random ForestsMachine Learning, 2001