Feature engineering solution with structured query language analytic functions in detecting electricity frauds using machine learning
Related Experiment Video
Updated: Oct 2, 2025

Author Spotlight: Enhancement of Salient Object Detection for Smart Grid Applications
Published on: December 15, 2023
Simona-Vasilica Oprea1, Adela Bâra2
1Department of Economic Informatics and Cybernetics, Bucharest University of Economic Studies, Romana Square 6, 010374, Bucharest, Romania. simona.oprea@csie.ase.ro.
Abstract:
Detecting fraud related to electricity consumption is usually a difficult challenge as the input datasets are sometimes unreliable due to missing and inconsistent records, faults, misinterpretation of meter reading remarks, status, etc. In this paper, we obtain meaningful insights from fraud detection using real datasets of Tunisian electricity consumption metered by conventional meters. We propose an extensive feature engineering approach using the structured query language (SQL) analytic functions. Furthermore, double merging of datasets reveals more dimensions of the data allowing better detection of irregularities in consumption. We analyze the results of several machine learning (ML) algorithms that manage cases of weakly correlated features and highly unbalanced datasets. The skewness of the target is approached as a regular characteristic of the input data because most of consumers are fair and only a small portion attempt to mislead the utility companies by tampering with metering devices. Our fraud detection solutions consist of combining classifiers with an anomaly detection feature obtained with an unsupervised ML algorithm-Isolation Forest, and extensive feature engineering using SQL analytic functions on large datasets. Several techniques for feature processing enhanced the Area Under the Curve score for Decision Tree algorithm from 0.68 to 0.99.
Related Concept Videos
Distribution Reliability and Automation
Steps in Outbreak Investigation
Power System Three-Phase Short Circuits
Three-Phase Short Circuit—Unloaded Synchronous Machine
This behavior occurs due to the magnetic flux produced by the short-circuit armature currents. Initially, these currents follow high-reluctance paths but eventually shift to...
Reclosers and Fuses
A comprehensive protection scheme for radial distribution...
Faraday's Law

