IDEAS home Printed from https://ideas.repec.org/a/eee/appene/v353y2024ipbs0306261923015210.html

Enhancing anomaly detection accuracy and interpretability in low-quality and class imbalanced data: A comprehensive approach

Author

Listed:
  • Gao, Bixuan
  • Kong, Xiangyu
  • Li, Shangze
  • Chen, Yi
  • Zhang, Xiyuan
  • Liu, Ziyu
  • Lv, Weijia

Abstract

With the rapid advancements in smart meters, energy internet, and high-performance computing technologies, deep learning methods are increasingly used for detecting anomalies in building electricity consumption. However, these models grapple with challenges like outliers, missing data, and imbalanced categories. Moreover, these models are often considered as black boxes due to their lack of interpretability. This limitation impedes the practical deployment of deep learning methods. Focusing on these issues, this study presents an anomaly detection method aimed at improving anomaly detection accuracy and interpretability in low-quality and class imbalanced data. Initially, our method established data preprocessing models to handle with outliers and missing data. Subsequently, an unbalance elimination model, named GRU-MACGANS, was designed to augment the minority category data. The SA-CNN-BiGRU-FCN model, incorporating a knowledge transfer strategy, was implemented to identify anomalous behavior. Finally, the results of SA-CNN-BiGRU-FCN model were interpreted based on the contrastive explanations method. Our case study of a low-voltage distribution system demonstrates the effectiveness of our approach. Data preprocessing models and GRU-MACGANS enhance data quality and alleviate category imbalance issues in anomaly detection. The interpretable analysis provides insights into the ability of detection models to identify representative features of different electricity consumption behaviors for effective anomaly detection.

Suggested Citation

  • Gao, Bixuan & Kong, Xiangyu & Li, Shangze & Chen, Yi & Zhang, Xiyuan & Liu, Ziyu & Lv, Weijia, 2024. "Enhancing anomaly detection accuracy and interpretability in low-quality and class imbalanced data: A comprehensive approach," Applied Energy, Elsevier, vol. 353(PB).
  • Handle: RePEc:eee:appene:v:353:y:2024:i:pb:s0306261923015210
    DOI: 10.1016/j.apenergy.2023.122157
    as

    Download full text from publisher

    File URL: http://www.sciencedirect.com/science/article/pii/S0306261923015210
    Download Restriction: Full text may be restricted for ScienceDirect subscribers

    File URL: https://libkey.io/10.1016/j.apenergy.2023.122157?utm_source=ideas
    LibKey link: if access is restricted and if your library uses this service, LibKey will redirect you to where you can use your library subscription to access this item
    ---><---

    As the access to this document is restricted, you may want to

    for a different version of it.

    References listed on IDEAS

    as
    1. Md. Nazmul Hasan & Rafia Nishat Toma & Abdullah-Al Nahid & M M Manjurul Islam & Jong-Myon Kim, 2019. "Electricity Theft Detection in Smart Grid Systems: A CNN-LSTM Based Approach," Energies, MDPI, vol. 12(17), pages 1-18, August.
    2. Sun, Fangyuan & Kong, Xiangyu & Wu, Jianzhong & Gao, Bixuan & Chen, Ke & Lu, Ning, 2022. "DSM pricing method based on A3C and LSTM under cloud-edge environment," Applied Energy, Elsevier, vol. 315(C).
    3. Villar-Rodriguez, Esther & Del Ser, Javier & Oregi, Izaskun & Bilbao, Miren Nekane & Gil-Lopez, Sergio, 2017. "Detection of non-technical losses in smart meter data based on load curve profiling and time series analysis," Energy, Elsevier, vol. 137(C), pages 118-128.
    4. Gao, Bixuan & Huang, Xiaoqiao & Shi, Junsheng & Tai, Yonghang & Zhang, Jun, 2020. "Hourly forecasting of solar irradiance based on CEEMDAN and multi-strategy CNN-LSTM neural networks," Renewable Energy, Elsevier, vol. 162(C), pages 1665-1683.
    5. Jia Luo & Jinying Huang & Hongmei Li, 2021. "A case study of conditional deep convolutional generative adversarial networks in machine fault diagnosis," Journal of Intelligent Manufacturing, Springer, vol. 32(2), pages 407-425, February.
    6. Kong, Jun & Jiang, Wen & Tian, Qing & Jiang, Min & Liu, Tianshan, 2023. "Anomaly detection based on joint spatio-temporal learning for building electricity consumption," Applied Energy, Elsevier, vol. 334(C).
    7. Razavi, Rouzbeh & Gharipour, Amin & Fleury, Martin & Akpan, Ikpe Justice, 2019. "A practical feature-engineering framework for electricity theft detection in smart grids," Applied Energy, Elsevier, vol. 238(C), pages 481-494.
    8. Fan, Cheng & Xiao, Fu & Zhao, Yang & Wang, Jiayuan, 2018. "Analytical investigation of autoencoder-based methods for unsupervised anomaly detection in building energy data," Applied Energy, Elsevier, vol. 211(C), pages 1123-1135.
    9. Hui Zou & Trevor Hastie, 2005. "Regularization and variable selection via the elastic net," Journal of the Royal Statistical Society Series B, Royal Statistical Society, vol. 67(2), pages 301-320, April.
    Full references (including those not matched with items on IDEAS)

    Citations

    Citations are extracted by the CitEc Project, subscribe to its RSS feed for this item.
    as


    Cited by:

    1. Wang, Yipeng & Yu, Tao & Luo, Qingquan & Liu, Xipeng & Wang, Ziyao & Wu, Yufeng & Pan, Zhenning, 2024. "Two-stage generalizable approach for electricity theft detection in new regions," Applied Energy, Elsevier, vol. 365(C).
    2. Chaves, Mahelvson Bazilio & Rodrigo de Lima e Silva, Fábio & Teixeira de Almeida Filho, Adiel, 2026. "Addressing imbalanced data and feature engineering for abnormal water consumption detection with machine learning models," Utilities Policy, Elsevier, vol. 101(C).
    3. Yuxiang Peng & Feng Zhao & Ke Zhou & Xiaoyong Yu & Qingren Jin & Ruien Li & Zhikang Shuai, 2025. "Review of Digital Twin Technology in Low-Voltage Distribution Area and the Implementation Path Based on the ‘6C’ Development Goals," Energies, MDPI, vol. 18(17), pages 1-21, August.
    4. Elizabeth P. Chou & Bo-Cheng Hsieh, 2025. "Enhancing Anomaly Detection in Structured Data Using Siamese Neural Networks as a Feature Extractor," Mathematics, MDPI, vol. 13(7), pages 1-19, March.
    5. Peng Wang & Minhang Li & Xiaoying Zhi & Xiliang Liu & Zhixiang He & Ziyue Di & Xiang Zhu & Yanchen Zhu & Wenqiong Cui & Wenyu Deng & Wenhan Fan, 2024. "Deep Smooth Random Sampling and Association Attention for Air Quality Anomaly Detection," Mathematics, MDPI, vol. 12(13), pages 1-21, June.

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Altamimi, Emran & Al-Ali, Abdulaziz & Al-Ali, Abdulla K. & Aly, Hussein & Malluhi, Qutaibah M., 2025. "How effective are synthetic attack models to detect real-world energy theft?," Energy, Elsevier, vol. 335(C).
    2. Zahoor Ali Khan & Muhammad Adil & Nadeem Javaid & Malik Najmus Saqib & Muhammad Shafiq & Jin-Ghoo Choi, 2020. "Electricity Theft Detection Using Supervised Learning Techniques on Smart Meter Data," Sustainability, MDPI, vol. 12(19), pages 1-25, September.
    3. Matthew Boeding & Kelly Boswell & Michael Hempel & Hamid Sharif & Juan Lopez & Kalyan Perumalla, 2022. "Survey of Cybersecurity Governance, Threats, and Countermeasures for the Power Grid," Energies, MDPI, vol. 15(22), pages 1-22, November.
    4. Yang, Kaixiang & Chen, Wuxing & Bi, Jichao & Wang, Mengzhi & Luo, Fengji, 2023. "Multi-view broad learning system for electricity theft detection," Applied Energy, Elsevier, vol. 352(C).
    5. Ayben Koy & Andaç Batur Çolak, 2026. "Electricity Price Prediction using Artificial Neural Network Models: A New and Comparative Analysis with Diverse Industry Production Indices," Computational Economics, Springer;Society for Computational Economics, vol. 68(1), pages 549-577, July.
    6. Rui Xia & Yunpeng Gao & Yanqing Zhu & Dexi Gu & Jiangzhao Wang, 2022. "An Efficient Method Combined Data-Driven for Detecting Electricity Theft with Stacking Structure Based on Grey Relation Analysis," Energies, MDPI, vol. 15(19), pages 1-25, October.
    7. Savian, Fernando de Souza & Siluk, Julio Cezar Mairesse & Garlet, Taís Bisognin & do Nascimento, Felipe Moraes & Pinheiro, José Renes & Vale, Zita, 2021. "Non-technical losses: A systematic contemporary article review," Renewable and Sustainable Energy Reviews, Elsevier, vol. 147(C).
    8. Otuoze, Abdulrahaman Okino & Mustafa, Mohd Wazir & Abdulrahman, Abdulhakeem Temitope & Mohammed, Olatunji Obalowu & Salisu, Sani, 2020. "Penalization of electricity thefts in smart utility networks by a cost estimation-based forced corrective measure," Energy Policy, Elsevier, vol. 143(C).
    9. Pamir & Nadeem Javaid & Saher Javaid & Muhammad Asif & Muhammad Umar Javed & Adamu Sani Yahaya & Sheraz Aslam, 2022. "Synthetic Theft Attacks and Long Short Term Memory-Based Preprocessing for Electricity Theft Detection Using Gated Recurrent Unit," Energies, MDPI, vol. 15(8), pages 1-20, April.
    10. Barja-Martinez, Sara & Aragüés-Peñalba, Mònica & Munné-Collado, Íngrid & Lloret-Gallego, Pau & Bullich-Massagué, Eduard & Villafafila-Robles, Roberto, 2021. "Artificial intelligence techniques for enabling Big Data services in distribution networks: A review," Renewable and Sustainable Energy Reviews, Elsevier, vol. 150(C).
    11. Tutz, Gerhard & Pößnecker, Wolfgang & Uhlmann, Lorenz, 2015. "Variable selection in general multinomial logit models," Computational Statistics & Data Analysis, Elsevier, vol. 82(C), pages 207-222.
    12. Hauzenberger, Niko & Huber, Florian & Klieber, Karin & Marcellino, Massimiliano, 2025. "Bayesian neural networks for macroeconomic analysis," Journal of Econometrics, Elsevier, vol. 249(PC).
    13. Oxana Babecka Kucharcukova & Jan Bruha, 2016. "Nowcasting the Czech Trade Balance," Working Papers 2016/11, Czech National Bank, Research and Statistics Department.
    14. Carstensen, Kai & Heinrich, Markus & Reif, Magnus & Wolters, Maik H., 2020. "Predicting ordinary and severe recessions with a three-state Markov-switching dynamic factor model," International Journal of Forecasting, Elsevier, vol. 36(3), pages 829-850.
    15. Hou-Tai Chang & Ping-Huai Wang & Wei-Fang Chen & Chen-Ju Lin, 2022. "Risk Assessment of Early Lung Cancer with LDCT and Health Examinations," IJERPH, MDPI, vol. 19(8), pages 1-12, April.
    16. Margherita Giuzio, 2017. "Genetic algorithm versus classical methods in sparse index tracking," Decisions in Economics and Finance, Springer;Associazione per la Matematica, vol. 40(1), pages 243-256, November.
    17. Nicolaj N. Mühlbach, 2020. "Tree-based Synthetic Control Methods: Consequences of moving the US Embassy," CREATES Research Papers 2020-04, Department of Economics and Business Economics, Aarhus University.
    18. Hajime Shimao & Sung Joo Kim & Warut Khern-Am-Nuai & Maxime C. Cohen, 2025. "Revisiting the CEO Effect Through a Machine Learning Lens," Management Science, INFORMS, vol. 71(6), pages 5396-5408, June.
    19. Wang, Qiao & Zhou, Wei & Cheng, Yonggang & Ma, Gang & Chang, Xiaolin & Miao, Yu & Chen, E, 2018. "Regularized moving least-square method and regularized improved interpolating moving least-square method with nonsingular moment matrices," Applied Mathematics and Computation, Elsevier, vol. 325(C), pages 120-145.
    20. Dmitriy Drusvyatskiy & Adrian S. Lewis, 2018. "Error Bounds, Quadratic Growth, and Linear Convergence of Proximal Methods," Mathematics of Operations Research, INFORMS, vol. 43(3), pages 919-948, August.

    More about this item

    Keywords

    ;
    ;
    ;
    ;
    ;
    ;

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:eee:appene:v:353:y:2024:i:pb:s0306261923015210. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: Catherine Liu (email available below). General contact details of provider: http://www.elsevier.com/wps/find/journaldescription.cws_home/405891/description#description .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.