Methodological Validation of Machine Learning Models for Non-Technical Loss Detection in Electric Power Systems: A Case Study in an Ecuadorian Electricity Distributor
Source abstract
Abstract
Detecting fraudulent behaviors in electricity consumption is a significant challenge for electric utility companies due to the lack of information and the complexity of both constructing patterns and distinguishing between regular and fraudulent consumers. This study proposes a methodology based on data analytics that, through the processing of information, generates lists of suspicious metering systems for fraud. The database provided by the electrical distribution company contains 266,298 records, of which 15,013 have observations for possible frauds. One of the challenges lies in managing the different variables in the training data and choosing appropriate evaluation metrics. To address this, a balanced database of 27,374 records was used, with an equitable division between fraud and non-fraud cases. The features used in the identification and construction of patterns for non-technical losses were crucial, although additional techniques could be applied to determine the most relevant variables. Following the process, several popular classification models were trained. Hyperparameter optimization was performed by using grid search, and the models were validated by using cross-validation techniques, finding that the ensemble methods Categorical Boosting (CGB), Light Gradient Boosting Machine (LGB) and Extreme Gradient Boosting (EGB) are the most suitable for identifying losses, achieving high performance and reasonable computational cost. The best performance was compared by measuring accuracy (Acc) and F1 score, which allows for the evaluation of various techniques and is a combination of two metrics: detection rate and precision. Although CGB achieved the best performance in terms of accuracy (Acc = 0.897) and F1 (0.894), it was slower than LGB, so it is considered the ideal classifier for the data provided by the electrical distribution company. This research study highlights the importance of the techniques used for fraud detection in electricity metering systems, although the results may vary depending on the characteristics of the training, the number of variables, and the available hardware resources.
Source: crossref · Quality: baseline
Research context
OpenAlex topics: Electricity Theft Detection Techniques · Non-Destructive Testing Techniques · Electrical Fault Detection and Protection
SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.
Affiliations
Energy Transition Research Group (GITE), Universidad Politécnica Salesiana, Cuenca 010103, Ecuador
Department of Electrical Engineering, Electronics and Telecommunications, Universidad de Cuenca, Cuenca 010107, Ecuador
Institute for Energy Engineering, Universitat Politecnica de Valencia, Camino de Vera, 46022 Valencia, Spain
Funding
Salesian Polytechnic University · European Union NextGenerationEU/PRTR
References (100+)
Show source-provided references
1. CIRED (2017). Reduction of Technical and Non-Technical Losses in Distribution Networks, CIRED. Technical Report.
2. Carr, D., and Thomson, M. (2022). Non-technical electricity losses. Energies, 15.10.3390/en15062218 ↗
3. Hammerschmitt, B.K., da Rosa Abaide, A., Lucchese, F.C., Martins, C.C., da Silveira, A.S., Rigodanzo, J., Maccari Brabo Castro, J.V., and Dall Agnol Rohr, J.A. (2020, January 5–7). Non-Technical Losses Review and Possible Methodology Solutions. Proceedings of the 2020 6th International Conference on Electric Power and Energy Conversion Systems (EPECS), Istanbul, Turkey.10.1109/EPECS48981.2020.9304525 ↗
4. Saeed, M.S., Mustafa, M.W., Hamadneh, N.N., Alshammari, N.A., Sheikh, U.U., Jumani, T.A., Khalid, S.B.A., and Khan, I. (2020). Detection of Non-Technical Losses in Power Utilities—A Comprehensive Systematic Review. Energies, 13.10.3390/en13184727 ↗
5. Non-technical loss analysis and prevention using smart meters10.1016/j.rser.2017.01.100 ↗
6. Review of various modeling techniques for the detection of electricity theft in smart grid environment10.1016/j.rser.2017.10.040 ↗
7. Performance Analysis of Electricity Theft Detection for the Smart Grid: An Overview10.1109/TIM.2022.3229248 ↗
8. Fraud Detection in Electric Power Distribution: An Approach That Maximizes the Economic Return10.1109/TPWRS.2019.2928276 ↗
9. A novel approach to detection and prevention of electricity pilferage over power distribution network10.1016/j.ijepes.2019.04.005 ↗
10. The Challenge of Non-Technical Loss Detection Using Artificial Intelligence: A Survey10.2991/ijcis.2017.10.1.51 ↗
11. Pazderin, A., Kamalov, F., Gubin, P.Y., Safaraliev, M., Samoylenko, V., Mukhlynin, N., Odinaev, I., and Zicmane, I. (2023). Data-Driven Machine Learning Methods for Nontechnical Losses of Electrical Energy Detection: A State-of-the-Art Review. Energies, 16.10.3390/en16217460 ↗
12. Teffo, N., Bokoro, P., Muremi, L., and Paepae, T. (2024, January 24–25). Performance evaluation of selected machine learning techniques in the detection of non-technical losses in the distribution system. Proceedings of the 2024 32nd Southern African Universities Power Engineering Conference (SAUPEC), Stellenbosch, South Africa.10.1109/SAUPEC60914.2024.10445037 ↗
13. Agencia de Regulación y Control de Energía y Recursos Naturales no Renovables—ARCERNNR (2025, March 27). Módulos de Estadística Anual y Multianual del Sector Eléctrico Ecuatoriano Desde el año 2007 Hasta el Año 2023, Available online: https://controlelectrico.gob.ec/publicaciones-estadistica-del-sector-electrico-2/.
14. Artificial intelligence techniques for enabling Big Data services in distribution networks: A review10.1016/j.rser.2021.111459 ↗
15. Solutions for detection of non-technical losses in the electricity grid: A review10.1016/j.rser.2017.05.193 ↗
16. Review of non-technical loss detection methods10.1016/j.epsr.2018.01.005 ↗
17. Toledo-Orozco, M., Arias-Marin, C., Álvarez Bel, C., Morales-Jadan, D., Rodríguez-García, J., and Bravo-Padilla, E. (2021). Innovative Methodology to Identify Errors in Electric Energy Measurement Systems in Power Utilities. Energies, 14.10.3390/en14040958 ↗
18. Arias Marín, C.E., and Méndez Peñaloza, G.F. (2022). Metodología Basada en Minería de Datos Para la Detección de Pérdidas no Técnicas en Sistemas de Distribución de Energía Eléctrica. [Master’s Thesis, Universidad Politécnica Salesiana].
19. Electricity theft as a relational issue: A comparative look at Zanzibar, Tanzania, and the Sunderban Islands, India10.1016/j.esd.2011.11.002 ↗
20. The determinants of electricity theft: An empirical analysis of Indian states10.1016/j.enpol.2016.02.048 ↗
21. Electricity Theft and Power Quality in Nigeria
22. Electricity theft: Analysis of the underlying contributory factors in Ghana10.1016/j.enpol.2018.09.019 ↗
23. Glauner, P., Glaeser, C., Dahringer, N., Valtchev, P., State, R., and Duarte, D. (2025, March 27). Non-Technical Losses in the 21st Century: Causes, Economic Effects, Detection and Perspectives. May 2018. Available online: https://www.researchgate.net/publication/325297875_Non-Technical_Losses_in_the_21st_Century_Causes_Economic_Effects_Detection_and_Perspectives.
24. Policy considerations for limiting electricity theft in the developing countries10.1016/j.enpol.2019.02.035 ↗
25. New Insights on Nontechnical Losses Characterization Through Evolutionary-Based Feature Selection10.1109/TPWRD.2011.2170182 ↗
26. Glauner, P., Meira, J.A., Dolberg, L., State, R., Bettinger, F., and Rangoni, Y. (2016, January 6–9). Neighborhood Features Help Detecting Non-Technical Losses in Big Data Sets. Proceedings of the 2016 IEEE/ACM 3rd International Conference on Big Data Computing Applications and Technologies (BDCAT), Shanghai, China.10.1145/3006299.3006310 ↗
27. Gu, G., He, Q., Wang, B., and Dai, B. (2018, January 20–21). Comparison of Machine Learning Techniques for the Detection of the Electricity Theft. Proceedings of the 2018 IEEE 3rd International Conference on Cloud Computing and Internet of Things (CCIOT), Dalian, China.10.1109/CCIOT45285.2018.9032675 ↗
28. Ghori, K.M., Rabeeh Ayaz, A., Awais, M., Imran, M., Ullah, A., and Szathmary, L. (2020, January 4–5). Impact of Feature Selection on Non-technical Loss Detection. Proceedings of the 2020 6th Conference on Data Science and Machine Learning Applications (CDMA), Riyadh, Saudi Arabia.10.1109/CDMA47397.2020.00009 ↗
29. Electricity theft detection in low-voltage stations based on similarity measure and DT-KSVM10.1016/j.ijepes.2020.106544 ↗
30. Machine learning classification algorithms and anomaly detection in conventional meters and Tunisian electricity consumption large datasets10.1016/j.compeleceng.2021.107329 ↗
31. Nontechnical Loss Detection for Metered Customers in Power Utility Using Support Vector Machines10.1109/TPWRD.2009.2030890 ↗
32. Improving SVM-Based Nontechnical Loss Detection in Power Utility Using the Fuzzy Inference System10.1109/TPWRD.2010.2055670 ↗
33. Kosut, J.P., Santomauro, F., Jorysz, A., Fernández, A., Lecumberry, F., and Rodríguez, F. (2015, January 5–7). Abnormal consumption analysis for fraud detection: UTE-UDELAR joint efforts. Proceedings of the 2015 IEEE PES Innovative Smart Grid Technologies Latin America (ISGT LATAM), Montevideo, Uruguay.10.1109/ISGT-LA.2015.7381272 ↗
34. Glauner, P., Boechat, A., Dolberg, L., State, R., Bettinger, F., Rangoni, Y., and Duarte, D. (2016, January 6–9). Large-scale detection of non-technical losses in imbalanced data sets. Proceedings of the 2016 IEEE Power Energy Society Innovative Smart Grid Technologies Conference (ISGT), Minneapolis, MN, USA.10.1109/ISGT.2016.7781159 ↗
35. Meira, J.A., Glauner, P., State, R., Valtchev, P., Dolberg, L., Bettinger, F., and Duarte, D. (2017, January 23–24). Distilling provider-independent data for general detection of non-technical losses. Proceedings of the 2017 IEEE Power and Energy Conference at Illinois (PECI), Champaign, IL, USA.10.1109/PECI.2017.7935765 ↗
36. Fraud detection in low-voltage electricity consumers using socio-economic indicators and billing profile in smart grids10.1049/oap-cired.2017.1258 ↗
37. Big data analytics: An aid to detection of non-technical losses in power utilities10.1007/s10287-018-0325-x ↗
38. Pereira, J., and Saraiva, F. (2020, January 19–24). A Comparative Analysis of Unbalanced Data Handling Techniques for Machine Learning Algorithms to Electricity Theft Detection. Proceedings of the 2020 IEEE Congress on Evolutionary Computation (CEC), Glasgow, UK.10.1109/CEC48606.2020.9185822 ↗
39. Dominguez, J.A., Rivera, A., Botina, K., Perdomo, G.A., Montoya, O., Campillo, J., and Delahoz, E. (2020, January 4–6). Data-driven framework for the detection of non-technical losses in distribution grids. Proceedings of the 2020 IX International Congress of Mechatronics Engineering and Automation (CIIMA), Cartagena, Colombia.10.1109/CIIMA50553.2020.9290186 ↗
40. Variability and Trend-Based Generalized Rule Induction Model to NTL Detection in Power Companies10.1109/TPWRS.2011.2121350 ↗
41. Detection of frauds and other non-technical losses in a power utility using Pearson coefficient, Bayesian networks and decision trees10.1016/j.ijepes.2011.09.009 ↗
42. Decision Tree and SVM-Based Data Analytics for Theft Detection in Smart Grid10.1109/TII.2016.2543145 ↗
43. Aydin, Z., and Gungor, V.C. (2018, January 22–25). A Novel Feature Design and Stacking Approach for Non-Technical Electricity Loss Detection. Proceedings of the 2018 IEEE Innovative Smart Grid Technologies—Asia (ISGT Asia), Singapore.10.1109/ISGT-Asia.2018.8467810 ↗
44. Dian-Gang, W., Jin-Chen, D., Lin, H., and Yan, G. (2018, January 19–21). Anomaly Behavior Detection Based on Ensemble Decision Tree in Power Distribution Network. Proceedings of the 2018 4th Annual International Conference on Network and Information Systems for Computers (ICNISC), Wuhan, China.10.1109/ICNISC.2018.00069 ↗
45. Non-Technical Losses Reduction by Improving the Inspections Accuracy in a Power Utility10.1109/TPWRS.2017.2721435 ↗
46. A New Approach for Nontechnical Losses Detection Based on Optimum-Path Forest10.1109/TPWRS.2010.2051823 ↗
47. Trevizan, R.D., Bretas, A.S., and Rossoni, A. (2015, January 4–6). Nontechnical Losses detection: A Discrete Cosine Transform and Optimum-Path Forest based approach. Proceedings of the 2015 North American Power Symposium (NAPS), Charlotte, NC, USA.10.1109/NAPS.2015.7335160 ↗
48. On the Study of Commercial Losses in Brazil: A Binary Black Hole Algorithm for Theft Characterization10.1109/TSG.2016.2560801 ↗
49. Unsupervised non-technical losses identification through optimum-path forest10.1016/j.epsr.2016.05.036 ↗
50. Comparison of supervised learning techniques for non-technical loss detection in power utility
51. Fraud Detection in Electric Power Distribution Networks using an Ann-Based Knowledge-Discovery Process
52. Ford, V., Siraj, A., and Eberle, W. (2014, January 9–12). Smart grid energy fraud detection using artificial neural networks. Proceedings of the 2014 IEEE Symposium on Computational Intelligence Applications in Smart Grid (CIASG), Orlando, FL, USA.10.1109/CIASG.2014.7011557 ↗
53. Improving Knowledge-Based Systems with statistical techniques, text mining, and neural networks for non-technical loss detection10.1016/j.knosys.2014.08.014 ↗
54. Wide and Deep Convolutional Neural Networks for Electricity-Theft Detection to Secure Smart Grids10.1109/TII.2017.2785963 ↗
55. González Rodríguez, R., Jiménez Mares, J., and Quintero M., C.G. (2020). Computational Intelligent Approaches for Non-Technical Losses Management of Electricity. Energies, 13.10.3390/en13092393 ↗
56. Yang, J., Fei, K., Ren, F., Li, Q., Li, J., Duan, Y., and Dong, L. (2020, January 4–7). Non-technical Loss Detection using Missing Values’ Pattern. Proceedings of the 2020 International Conference on Smart Grid and Clean Energy Technologies (ICSGCE), Kuching, Malaysia.10.1109/ICSGCE49177.2020.9275601 ↗
57. Non-technical losses detection using missing values’ pattern and neural architecture search10.1016/j.ijepes.2021.107410 ↗
58. A Multi-Sensor Energy Theft Detection Framework for Advanced Metering Infrastructures10.1109/JSAC.2013.130714 ↗
59. Performance Analysis of Different Types of Machine Learning Classifiers for Non-Technical Loss Detection10.1109/ACCESS.2019.2962510 ↗
60. Integrated Expert System Applied to the Analysis of Non Technical Losses In Power Utilities10.1016/j.eswa.2011.02.062 ↗
61. Messinis, G.M., and Hatziargyriou, N.D. (2018, January 11–15). Unsupervised Classification for Non-Technical Loss Detection. Proceedings of the 2018 Power Systems Computation Conference (PSCC), Dublin, Ireland.10.23919/PSCC.2018.8442797 ↗
62. Babu, T.V., Murthy, T.S., and Sivaiah, B. (2013, January 26–28). Detecting unusual customer consumption profiles in power distribution systems—APSPDCL. Proceedings of the 2013 IEEE International Conference on Computational Intelligence and Computing Research, Enathi, India.10.1109/ICCIC.2013.6724264 ↗
63. Terciyanli, E., Eryigit, E., Emre, T., and Caliskan, S. (2017, January 19–21). Score based non-technical loss detection algorithm for electricity distribution networks. Proceedings of the 2017 5th International Istanbul Smart Grid and Cities Congress and Fair (ICSG), Istanbul, Turkey.10.1109/SGCF.2017.7947629 ↗
64. Monteiro, M.D., and Maciel, R.S. (2018, January 12–16). Detection of commercial losses in electric power distribution systems using data mining techniques. Proceedings of the 2018 Simposio Brasileiro de Sistemas Eletricos (SBSE), Niteroi, Brazil.10.1109/SBSE.2018.8395889 ↗
65. Yeckle, J., and Tang, B. (2018, January 8–10). Detection of Electricity Theft in Customer Consumption Using Outlier Detection Algorithms. Proceedings of the 2018 1st International Conference on Data Intelligence and Security (ICDIS), South Padre Island, TX, USA.10.1109/ICDIS.2018.00029 ↗
66. Arias Marín, C.E., and Gómez Bravo, D.X. (2019). Metodología para la Identificación de Sistemas de Medición de Energía Eléctrica con Errores de Registro de Consumo Dentro de Sistemas de Distribución. [Bachelor’s Thesis, Universidad Politécnica Salesianaa]. Available online: https://dspace.ups.edu.ec/handle/123456789/18033.
67. A data-driven approach to reduce electricity theft in developing countries10.1016/j.jup.2021.101304 ↗
68. Non-Technical Loss Detection in Power Grid Using Information Retrieval Approaches: A Comparative Study10.1109/ACCESS.2021.3064858 ↗
69. Detection of energy theft and defective smart meters in smart grids using linear regression10.1016/j.ijepes.2017.04.005 ↗
70. Olivares-Rojas, J.C., Reyes-Archundia, E., Rodriíguez-Maya, N.E., Gutiérrez-Gnecchi, J.A., Molina-Moreno, I., and Cerda-Jacobo, J. (2020, January 26–29). Machine Learning Model for the Detection of Electric Energy Fraud using an Edge-Fog Computing Architecture. Proceedings of the 2020 IEEE International Conference on Engineering Veracruz (ICEV), Boca del Rio, Mexico.10.1109/ICEV50249.2020.9289669 ↗
71. Umar, H.A., Prasad, R., and Fonkam, M. (2019, January 10–12). Assessing Severity of Non-technical Losses in Power using Clustering Algorithms. Proceedings of the 2019 15th International Conference on Electronics, Computer and Computation (ICECCO), Abuja, Nigeria.10.1109/ICECCO48375.2019.9043277 ↗
72. A Novel Features-Based Multivariate Gaussian Distribution Method for the Fraudulent Consumers Detection in the Power Utilities of Developing Countries10.1109/ACCESS.2021.3085501 ↗
73. Nontechnical Loss and Outage Detection Using Fractional-Order Self-Synchronization Error-Based Fuzzy Petri Nets in Micro-Distribution Systems10.1109/TSG.2014.2345780 ↗
74. Chauhan, A., and Rajvanshi, S. (2013, January 6–8). Non-Technical Losses in power system: A review. Proceedings of the 2013 International Conference on Power, Energy and Control (ICPEC), Dindigul, India.10.1109/ICPEC.2013.6527720 ↗
75. Non-technical losses in electricity distribution: A bibliometric analysis10.1109/TLA.2021.9447584 ↗
76. Non-technical losses: A systematic contemporary article review10.1016/j.rser.2021.111205 ↗
77. Guarda, F.G.K., Hammerschmitt, B.K., Capeletti, M.B., Neto, N.K., dos Santos, L.L.C., Prade, L.R., and Abaide, A. (2023). Non-Hardware-Based Non-Technical Losses Detection Methods: A Review. Energies, 16.10.3390/en16042054 ↗
78. Systematic review of energy theft practices and autonomous detection through artificial intelligence methods10.1016/j.rser.2023.113544 ↗
79. The causes of electricity theft: An econometric analysis of the case of Turkey10.1016/j.jup.2015.06.008 ↗
80. Mashima, D., and Cardenas, A. (2012). Evaluating Electricity Theft Detectors in Smart Grid Networks, Springer.10.1007/978-3-642-33338-5_11 ↗
81. Privacy-Preserving Energy Theft Detection in Smart Grids: A P2P Computing Approach10.1109/JSAC.2013.SUP.0513023 ↗
82. Wei, L., Sundararajan, A., Sarwat, A.I., Biswas, S., and Ibrahim, E. (2017, January 18–22). A distributed intelligent framework for electricity theft detection using benford’s law and stackelberg game. Proceedings of the 2017 Resilience Week (RWS), Wilmington, DE, USA.10.1109/RWEEK.2017.8088640 ↗
83. Gupta, A.K., Mukherjee, A., Routray, A., and Biswas, R. (November, January 29). A novel power theft detection algorithm for low voltage distribution network. Proceedings of the IECON 2017—43rd Annual Conference of the IEEE Industrial Electronics Society, Beijing, China.10.1109/IECON.2017.8216611 ↗
84. Development of adapted ammeter for fraud detection in low-voltage installations10.1016/j.measurement.2014.06.015 ↗
85. Kazymov, I., and Kompaneets, B. (2019, January 25–29). Definition of Fact and Place of Losses in Low Voltage Electric Networks. Proceedings of the 2019 International Conference on Industrial Engineering, Applications and Manufacturing (ICIEAM), Sochi, Russia.10.1109/ICIEAM.2019.8743075 ↗
86. Non-Technical Loss Detection Using State Estimation and Analysis of Variance10.1109/TPWRS.2012.2224891 ↗
87. Electricity Theft Detection in AMI Using Customers’ Consumption Patterns10.1109/TSG.2015.2425222 ↗
88. Detecting and Locating Non-Technical Losses in Modern Distribution Networks10.1109/TSG.2016.2574714 ↗
89. Theft detection dataset for benchmarking and machine learning based classification in a smart grid environment10.1016/j.jksuci.2022.05.007 ↗
90. Evaluation of classifiers for non-technical loss identification in electric power systems10.1016/j.ijepes.2021.107173 ↗
91. Tehrani, S.O., Moghaddam, M.H.Y., and Asadi, M. (2020, January 16–17). Decision Tree based Electricity Theft Detection in Smart Grid. Proceedings of the 2020 4th International Conference on Smart City, Internet of Things and Applications (SCIOT), Mashhad, Iran.10.1109/SCIOT50840.2020.9250194 ↗
92. Energy Theft Detection Using Gradient Boosting Theft Detector With Feature Engineering-Based Preprocessing10.1109/TSG.2019.2892595 ↗
93. Barros, R., Costa, E., Araujo, J., and Lira, E.G. (2018, January 12–16). Use of ANN for identification of consumers with irregular electrical installations. Proceedings of the 2018 Simposio Brasileiro de Sistemas Eletricos (SBSE), Niteroi, Brazil.10.1109/SBSE.2018.8395577 ↗
94. Electric theft detection in advanced metering infrastructure using Jaya optimized combined Kernel-Tree boosting classifier—A novel sequentially executed supervised machine learning approach10.1049/gtd2.12386 ↗
95. Camana, R.G. (2016). Potenciales Aplicaciones de la Minería de Datos en Ecuador. Rev. Tecnológica-ESPOL, 29, Available online: https://rte.espol.edu.ec/index.php/tecnologica/article/view/464/338.
96. Feurer, M., and Hutter, F. (2019). Hyperparameter optimization. Automated Machine Learning, Springer.10.1007/978-3-030-05318-5_1 ↗
97. Hyperparameter optimization in learning systems10.1007/s41965-019-00023-0 ↗
98. Bischl, B., Binder, M., Lang, M., Pielok, T., Richter, J., Coors, S., Thomas, J., Ullmann, T., Becker, M., and Boulesteix, A.L. (2021). Hyperparameter optimization: Foundations, algorithms, best practices and open challenges. arXiv.
99. Nabil, M., Ismail, M., Mahmoud, M., Shahin, M., Qaraqe, K., and Serpedin, E. (2018, January 20–24). Deep Recurrent Electricity Theft Detection in AMI Networks with Random Tuning of Hyper-parameters. Proceedings of the 2018 24th International Conference on Pattern Recognition (ICPR), Beijing, China.10.1109/ICPR.2018.8545748 ↗
100. Romero Agüero, J. (2012, January 7–10). Improving the efficiency of power distribution systems through technical and non-technical losses reduction. Proceedings of the IEEE PES Transmission and Distribution Conference and Exposition (PES T&D 2012), Orlando, FL, USA.10.1109/TDC.2012.6281652 ↗