A framework to select a classification algorithm in electricity fraud detection





electricity fraud detection, confusion matrix, classification algorithms


In the electrical domain, a non-technical loss often refers to energy used but not paid for by a consumer. The identification and detection of this loss is important as the financial loss by the electricity supplier has a negative impact on revenue. Several statistical and machine learning classification algorithms have been developed to identify customers who use energy without paying. These algorithms are generally assessed and compared using results from a confusion matrix. We propose that the data for the performance metrics from the confusion matrix be resampled to improve the comparison methods of the algorithms. We use the results from three classification algorithms, namely a support vector machine, k-nearest neighbour and naïve Bayes procedure, to demonstrate how the methodology identifies the best classifier. The case study is of electrical consumption data for a large municipality in South Africa.


  • The methodology provides data analysts with a procedure for analysing electricity consumption in an attempt to identify abnormal usage.
  • The resampling procedure provides a method for assessing performance measures in fraud detection systems.
  • The results show that no single metric is best, and that the selected metric is dependent on the objective of the analysis.


Metrics Loading ...



How to Cite

Pazi, S., Clohessy, C. M., & Sharp, G. D. (2020). A framework to select a classification algorithm in electricity fraud detection. South African Journal of Science, 116(9/10). https://doi.org/10.17159/sajs.2020/8189



Research Article

Funding data

Most read articles by the same author(s)