Prediction of Distribution Network Line Loss Rate Based on Ensemble Learning


  • Jian-Yu Ren Measurement Center, Yunnan Power Grid Co., Ltd., Kunming, China
  • Jian-Wei Zhao Faculty of Civil Aviation and Aeronautical, Kunming University of Science & Technology, Kunming, China
  • Nan Pan Faculty of Civil Aviation and Aeronautical, Kunming University of Science & Technology, Kunming, China
  • Nuo-Bin Zhang Faculty of Civil Aviation and Aeronautical, Kunming University of Science & Technology, Kunming, China
  • Jun-Wei Yang LongShine Technology Group Co., Ltd., Wuxi, China



line loss rate prediction, integrated learning, K-means clustering, LSTM, XGBoost


The distribution network line loss rate is a crucial factor in improving the economic efficiency of power grids. However, the traditional prediction model has low accuracy. This study proposes a predictive method based on data preprocessing and model integration to improve accuracy. Data preprocessing employs dynamic cleaning technology with machine learning to enhance data quality. Model integration combines long short-term memory (LSTM), linear regression, and extreme gradient boosting (XGBoost) models to achieve multi-angle modeling. This study employs regression evaluation metrics to assess the difference between predicted and actual results for model evaluation. Experimental results show that this method leads to improvements over other models. For example, compared to LSTM, root mean square error (RMSE) was reduced by 44.0% and mean absolute error (MAE) by 23.8%. The method provides technical solutions for building accurate line loss monitoring systems and enhances power grid operations.


X. Chen, C. Song, and T. Wang, “Spatiotemporal Analysis of Line Loss Rate: A Case Study in China,” Energy Reports, vol. 7, pp. 7048-7059, November 2021.

J. Tulensalo, J. Seppänen, and A. Ilin, “An LSTM Model for Power Grid Loss Prediction,” Electric Power Systems Research, vol. 189, article no. 106823, December 2020.

Y. Shang, L. Kang, M. Zhang, X. Liu, and Y. Li, “Prediction Method of Electricity Stealing Behavior Based on Multi-Dimensional Features and BP Neural Network,” Energy Reports, vol. 8, no. 4, pp. 523-531, July 2022.

K. Li, W. Huang, G. Hu, and J. Li, “Ultra-Short Term Power Load Forecasting Based on CEEMDAN-SE and LSTM Neural Network,” Energy and Buildings, vol. 279, article no. 112666, January 2023.

S. Wang, Y. Lei, B. Yang, X. Li, Y. Shu, and N. Lu, “A Graph Neural Network-Based Data Cleaning Method to Prevent Intelligent Fault Diagnosis from Data Contamination,” Engineering Applications of Artificial Intelligence, vol. 126, no. C, article no. 107071, November 2023.

Q. Li, L. Zhang, G. Zhang, H. Ouyang, and M. Bai, “Simultaneous Detection for Multiple Anomaly Data in Internet of Energy Based on Random Forest,” Applied Soft Computing, vol. 134, article no. 109993, February 2023.

R. Morrison, X. Liu, and Z. Lin, “Anomaly Detection in Wind Turbine SCADA Data for Power Curve Cleaning,” Renewable Energy, vol. 184, pp. 473-486, January 2022.

X. Gao, J. Yu, S. Zha, S. Fu, B. Xue, P. Ye, et al., “An Ensemble-Based Outlier Detection Method for Clustered and Local Outliers with Differential Potential Spread Loss,” Knowledge-Based Systems, vol. 258, article no. 110003, December 2022.

Y. Mei, Y. Li, W. Zhou, Y. Guo, W. Deng, and X. Qiao, “Dynamic Data Cleaning Method of Abnormal and Missing Data in a Distribution Networkbased on Machine Learning,” Power System Protection and Control, vol. 51, no. 07, pp. 158-169, 2023. (In Chinese)

Y. Zhang, Q. Ai, H. Wang, Z. Li, and X. Zhou, “Energy Theft Detection in an Edge Data Center Using Threshold-Based Abnormality Detector,” International Journal of Electrical Power & Energy Systems, vol. 121, article no. 106162, October 2020.

Y. Yao, X. Zhang, and W. Cui, “A LOF-IDW Based Data Cleaning Method for Quality Assessment in Intelligent Compaction of Soils,” Transportation Geotechnics, vol. 42, article no. 101101, September 2023.

X. Li, M. Liu, K. Wang, Z. Liu, and G. Li, “Data Cleaning Method for the Process of Acid Production with Flue Gas Based on Improved Random Forest,” Chinese Journal of Chemical Engineering, vol. 59, pp. 72-84, July 2023.

L. Xie, H. Li, Y. Yuan, and H. Zhou, “Calculation of Line Loss in Transformer District Based on K-Means Clustering Algorithm and Improved MRVM,” Journal of Electrical Engineering, vol. 16, no. 1, pp. 62-69, March 2021. (In Chinese)

K. S. Sambaiah and T. Jayabarathi, “Loss Minimization Techniques for Optimal Operation and Planning of Distribution Systems: A Review of Different Methodologies,” International Transactions on Electrical Energy Systems, vol. 30, no. 2, article no. e12230, February 2020.

L. Huang, G. Zhou, J. Zhang, Y. Zeng, and L. Li, “Calculation Method of Theoretical Line Loss in Low-Voltage Grids Based on Improved Random Forest Algorithm,” Energies, vol. 16, no. 7, article no. 2971, April 2023.

S. J. Arand, A. Akbari, and M. Ardebili, “Investigation into the Thermal Behavior and Loadability Characteristic of a YASA-AFPM Generator via an Improved 3-D Coupled Electromagnetic-Thermal Approach,” International Journal of Engineering and Technology Innovation, vol. 11, no. 2, pp. 88-102, April 2021.

S. Klaiber, F. Bauer, and P. Bretschneider, “Improvement of Grid Loss Forecast for Energy Transmission Grids,” at - Automatisierungstechnik, vol. 68, no. 9, pp. 738-749, August 2020. (In German)

X. Zhong, J. Chen, M. Jiang, and X. H. Zheng, “A Line Loss Analysis Method Based on Deep Learning Technique for Transformer District,” Power System Technology, vol. 44, no. 2, pp. 769-774, 2020. (In Chinese)

N. N. Bon and L. V. Dai, “Fault Identification, Classification, and Location on Transmission Lines Using Combined Machine Learning Methods,” International Journal of Engineering and Technology Innovation, vol. 12, no. 2, pp. 91-109, February 2022.

M. X. Zhang, X. R. Liu, Y. Shang, L. Y. Kang, Q. T. Wu, and W. Y. Cheng, “Research on Comprehensive Diagnosis Model of Anti-Stealing Electricity Based on Big Data Technology,” Energy Reports, vol. 8, no. 4, pp. 916-925, July 2022.

A. Farhadi, A. Akbari, A. Zakerian, and M. Tavakoli Bina, “An Improved Model Predictive Control Method to Drive an Induction Motor Fed by Three-Level Diode-Clamped Indirect Matrix Converter,” International Journal of Engineering and Technology Innovation, vol. 10, no. 4, pp. 265-279, September 2020.

W. Zhou, Y. Li, Y. Guo, X. Qiao, Y. Mei, and W. Deng, “Daily Line Loss Rate Forecasting of a Distribution Network Based on DAE-LSTM,” Power System Protection and Control, vol. 49, no. 17, pp. 48-56, 2021. (In Chinese)

L. Li, B. Lu, W. X. Xu, Z. H. Gu, Y. S. Yang, and D. P. Tan, “Mechanism of Multiphase Coupling Transport Evolution of Free Sink Vortex,” Acta Physica Sinica, vol. 72, no. 3, article no. 034702, February 2023. (In Chinese)

C. P. Lu, Y. L. Huang, and P. J. Lai, “Development of the Abnormal Tension Pattern Recognition Module for Twisted Yarn Based on Deep Learning Edge Computing,” International Journal of Engineering and Technology Innovation, vol. 13, no. 4, pp. 284-295, October 2023.

U. M. Kaliyaperumal, M. S. B. Somasundaram, and N. Savarimuthu, “Partitioning-Based Data Sharing Approach for Data Integrity Verification in Distributed Fog Computing,” International Journal of Engineering and Technology Innovation, vol. 13, no. 2, pp. 160-174, April 2023.

C. Chen, Q. Zhang, B. Yu, Z. Yu, P. J. Lawrence, Q. Ma, et al., “Improving Protein-Protein Interactions Prediction Accuracy Using XGBoost Feature Selection and Stacked Ensemble Classifier,” Computers in Biology and Medicine, vol. 123, article no. 103899, August 2020.

W. Cao, Y. Liu, H. Mei, H. Shang, and Y. Yu, “Short-Term District Power Load Self-Prediction Based on Improved XGBoost Model,” Engineering Applications of Artificial Intelligence, vol. 126, no. A, article no. 106826, November 2023.

D. S. K. Karunasingha, “Root Mean Square Error or Mean Absolute Error? Use Their Ratio as Well,” Information Sciences, vol. 585, pp. 609-629, March 2022.

S. M. Robeson and C. J. Willmott, “Decomposition of the Mean Absolute Error (MAE) into Systematic and Unsystematic Components,” PLoS One, vol. 18, no. 2, article no. 0279774, February 2023.




How to Cite

Jian-Yu Ren, Jian-Wei Zhao, Nan Pan, Nuo-Bin Zhang, and Jun-Wei Yang, “Prediction of Distribution Network Line Loss Rate Based on Ensemble Learning”, Int. j. eng. technol. innov., vol. 14, no. 1, pp. 103–114, Jan. 2024.