IDEAS home Printed from https://ideas.repec.org/a/gam/jeners/v17y2024i19p4810-d1485922.html
   My bibliography  Save this article

Research on Anomaly Detection Model for Power Consumption Data Based on Time-Series Reconstruction

Author

Listed:
  • Zhenghui Mao

    (Longquan Power Supply Company, State Grid Zhejiang Electric Power Co., Ltd., Longquan 323799, China)

  • Bijun Zhou

    (Longquan Power Supply Company, State Grid Zhejiang Electric Power Co., Ltd., Longquan 323799, China)

  • Jiaxuan Huang

    (Longquan Power Supply Company, State Grid Zhejiang Electric Power Co., Ltd., Longquan 323799, China)

  • Dandan Liu

    (School of Electronic and Information Engineering, Shanghai University of Electric Power, Shanghai 201306, China)

  • Qiangqiang Yang

    (School of Electronic and Information Engineering, Shanghai University of Electric Power, Shanghai 201306, China)

Abstract

The power consumption data in buildings can be viewed as a time series, where outliers indicate unreasonable energy usage patterns. Accurately detecting these outliers and improving energy management methods based on the findings can lead to energy savings. To detect outliers, an anomaly detection model based on time-series reconstruction, AF-GS-RandomForest, is proposed. This model comprises two modules: prediction and detection. The prediction module uses the Autoformer algorithm to build an accurate and robust predictive model for unstable nonlinear sequences, and calculates the model residuals based on the prediction results. Points with large residuals are considered outliers, as they significantly differ from the normal pattern. The detection module employs a random forest algorithm optimized by grid search to detect residuals and ultimately identify outliers. The algorithm’s accuracy and robustness were tested on public datasets, and it was applied to a power consumption dataset of an office building. Compared with commonly used algorithms, the proposed algorithm improved precision by 2.2%, recall by 12.1%, and F1 score by 7.7%, outperforming conventional anomaly detection algorithms.

Suggested Citation

  • Zhenghui Mao & Bijun Zhou & Jiaxuan Huang & Dandan Liu & Qiangqiang Yang, 2024. "Research on Anomaly Detection Model for Power Consumption Data Based on Time-Series Reconstruction," Energies, MDPI, vol. 17(19), pages 1-12, September.
  • Handle: RePEc:gam:jeners:v:17:y:2024:i:19:p:4810-:d:1485922
    as

    Download full text from publisher

    File URL: https://www.mdpi.com/1996-1073/17/19/4810/pdf
    Download Restriction: no

    File URL: https://www.mdpi.com/1996-1073/17/19/4810/
    Download Restriction: no
    ---><---

    References listed on IDEAS

    as
    1. Chou, Jui-Sheng & Tran, Duc-Son, 2018. "Forecasting energy consumption time series using machine learning techniques based on usage patterns of residential householders," Energy, Elsevier, vol. 165(PB), pages 709-726.
    Full references (including those not matched with items on IDEAS)

    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. Amal A. Al-Shargabi & Abdulbasit Almhafdy & Dina M. Ibrahim & Manal Alghieth & Francisco Chiclana, 2021. "Tuning Deep Neural Networks for Predicting Energy Consumption in Arid Climate Based on Buildings Characteristics," Sustainability, MDPI, vol. 13(22), pages 1-20, November.
    2. Amir Shahcheraghian & Adrian Ilinca, 2024. "Advanced Machine Learning Techniques for Energy Consumption Analysis and Optimization at UBC Campus: Correlations with Meteorological Variables," Energies, MDPI, vol. 17(18), pages 1-22, September.
    3. Verdone, Alessio & Scardapane, Simone & Panella, Massimo, 2024. "Explainable Spatio-Temporal Graph Neural Networks for multi-site photovoltaic energy production," Applied Energy, Elsevier, vol. 353(PB).
    4. Jonathan Berrisch & Micha{l} Narajewski & Florian Ziel, 2022. "High-Resolution Peak Demand Estimation Using Generalized Additive Models and Deep Neural Networks," Papers 2203.03342, arXiv.org, revised Nov 2022.
    5. Nafeesa Javed & Muhammad Javaid Iqbal & Sohail Masood & Laiba Rehman & Saba Ramzan, 2024. "The Effect of Climate Change on Energy Consumption Using Smart Meter Dataset," Bulletin of Business and Economics (BBE), Research Foundation for Humanity (RFH), vol. 13(1), pages 777-783.
    6. Sabarathinam Srinivasan & Suresh Kumarasamy & Zacharias E. Andreadakis & Pedro G. Lind, 2023. "Artificial Intelligence and Mathematical Models of Power Grids Driven by Renewable Energy Sources: A Survey," Energies, MDPI, vol. 16(14), pages 1-56, July.
    7. Nitin Kumar Singh & Masaaki Nagahara, 2024. "LightGBM-, SHAP-, and Correlation-Matrix-Heatmap-Based Approaches for Analyzing Household Energy Data: Towards Electricity Self-Sufficient Houses," Energies, MDPI, vol. 17(17), pages 1-32, September.
    8. Roberto Morcillo-Jimenez & Karel Gutiérrez-Batista & Juan Gómez-Romero, 2023. "TSxtend: A Tool for Batch Analysis of Temporal Sensor Data," Energies, MDPI, vol. 16(4), pages 1-29, February.
    9. Dai, Shuang & Eames, Matt & Vinai, Raffaele & Sucala, Voicu Ion, 2025. "EnergyNet: A modality-aware attention fusion network for building energy efficiency classification," Applied Energy, Elsevier, vol. 379(C).
    10. Rodrigo Moreira & Larissa Ferreira Rodrigues Moreira & Flávio Oliveira Silva, 2025. "Brazilian Selic Rate Forecasting with Deep Neural Networks," Computational Economics, Springer;Society for Computational Economics, vol. 65(3), pages 1319-1339, March.
    11. Lozinskaia, Agata & Redkina, Anastasiia & Shenkman, Evgeniia, 2020. "Electricity consumption forecasting for integrated power system with seasonal patterns," Applied Econometrics, Russian Presidential Academy of National Economy and Public Administration (RANEPA), vol. 60, pages 5-25.
    12. Duan, Tianyao & Guo, Huan & Qi, Xiao & Sun, Ming & Forrest, Jeffrey, 2024. "A novel information enhanced Grey Lotka–Volterra model driven by system mechanism and data for energy forecasting of WEET project in China," Energy, Elsevier, vol. 304(C).
    13. Hernandez-Matheus, Alejandro & Löschenbrand, Markus & Berg, Kjersti & Fuchs, Ida & Aragüés-Peñalba, Mònica & Bullich-Massagué, Eduard & Sumper, Andreas, 2022. "A systematic review of machine learning techniques related to local energy communities," Renewable and Sustainable Energy Reviews, Elsevier, vol. 170(C).
    14. Kostadin Yotov & Emil Hadzhikolev & Stanka Hadzhikoleva & Stoyan Cheresharov, 2022. "Neuro-Cybernetic System for Forecasting Electricity Consumption in the Bulgarian National Power System," Sustainability, MDPI, vol. 14(17), pages 1-18, September.
    15. Vasileios Laitsos & Georgios Vontzos & Paschalis Paraschoudis & Eleftherios Tsampasis & Dimitrios Bargiotas & Lefteri H. Tsoukalas, 2024. "The State of the Art Electricity Load and Price Forecasting for the Modern Wholesale Electricity Market," Energies, MDPI, vol. 17(22), pages 1-37, November.
    16. Latifa A. Yousef & Hibba Yousef & Lisandra Rocha-Meneses, 2023. "Artificial Intelligence for Management of Variable Renewable Energy Systems: A Review of Current Status and Future Directions," Energies, MDPI, vol. 16(24), pages 1-27, December.
    17. Lee, Juyong & Cho, Youngsang, 2022. "National-scale electricity peak load forecasting: Traditional, machine learning, or hybrid model?," Energy, Elsevier, vol. 239(PD).
    18. Chlebus Marcin & Dyczko Michał & Woźniak Michał, 2021. "Nvidia's Stock Returns Prediction Using Machine Learning Techniques for Time Series Forecasting Problem," Central European Economic Journal, Sciendo, vol. 8(55), pages 44-62, January.
    19. Bui, Dac-Khuong & Nguyen, Tuan Ngoc & Ngo, Tuan Duc & Nguyen-Xuan, H., 2020. "An artificial neural network (ANN) expert system enhanced with the electromagnetism-based firefly algorithm (EFA) for predicting the energy consumption in buildings," Energy, Elsevier, vol. 190(C).
    20. Saidjon Shiralievich Tavarov & Pavel Matrenin & Murodbek Safaraliev & Mihail Senyuk & Svetlana Beryozkina & Inga Zicmane, 2023. "Forecasting of Electricity Consumption by Household Consumers Using Fuzzy Logic Based on the Development Plan of the Power System of the Republic of Tajikistan," Sustainability, MDPI, vol. 15(4), pages 1-14, February.

    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:gam:jeners:v:17:y:2024:i:19:p:4810-:d:1485922. 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: MDPI Indexing Manager (email available below). General contact details of provider: https://www.mdpi.com .

    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.