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

Online electric vehicle charging detection based on memory-based transformer using smart meter data

Author

Listed:
  • Kamoona, Ammar
  • Song, Hui
  • Jalili, Mahdi
  • Wang, Hao
  • Razzaghi, Reza
  • Yu, Xinghuo

Abstract

The increasing adoption of Electric Vehicles (EVs) presents significant challenges for electricity grid management, particularly in accurately identifying EV charging patterns to optimize distribution network planning. Most recent works focus on EV load forecasting for future grid planning and do not take into account real-time EV charging identification. This paper introduces a novel unsupervised memory-based transformer (M-TR) model for real-time detection of EV charging events from streaming smart meter data. The proposed method is designed for deployment by Distribution Network Operators (DNOs) and can be integrated into smart grid management systems to enhance grid stability and demand response strategies. The M-TR model leverages an encoder-decoder architecture: the encoder captures coarse-scale historical patterns over an extended temporal window, while the decoder focuses on fine-scale details within a local window. A key innovation of this approach is the dual memory comparison mechanism, which enables faster real-time inference by dynamically integrating historical and recent data. Unlike existing methods, the M-TR requires no prior knowledge of EV charging profiles and only uses real power consumption data from non-EV users. The goal of this approach is to automatically identify EV charging events from behind the meter aggregated smart meter data without requiring labeled EV data or additional sensors, thereby enabling real-time monitoring, reducing grid uncertainties, and supporting load balancing strategies. Benchmarking against state-of-the-art unsupervised models, the M-TR achieves superior performance with an average F-score of 0.844 and an AUC of 0.910, demonstrating its accuracy and robustness. Additionally, the model’s efficient execution time of 1.2 s per 1-min data sample highlights its suitability for real-time applications. This work underscores the importance of incorporating global temporal context and dual memory mechanisms in EV charging detection, offering a scalable solution for integrating EVs into the power grid.

Suggested Citation

  • Kamoona, Ammar & Song, Hui & Jalili, Mahdi & Wang, Hao & Razzaghi, Reza & Yu, Xinghuo, 2025. "Online electric vehicle charging detection based on memory-based transformer using smart meter data," Applied Energy, Elsevier, vol. 398(C).
  • Handle: RePEc:eee:appene:v:398:y:2025:i:c:s0306261925010839
    DOI: 10.1016/j.apenergy.2025.126353
    as

    Download full text from publisher

    File URL: http://www.sciencedirect.com/science/article/pii/S0306261925010839
    Download Restriction: Full text for ScienceDirect subscribers only

    File URL: https://libkey.io/10.1016/j.apenergy.2025.126353?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. Cheng, Fang & Liu, Hui, 2024. "Multi-step electric vehicles charging loads forecasting: An autoformer variant with feature extraction, frequency enhancement, and error correction blocks," Applied Energy, Elsevier, vol. 376(PB).
    2. Li, Zhikang & Ma, Chengbin, 2022. "A temporal–spatial charging coordination scheme incorporating probability of EV charging availability," Applied Energy, Elsevier, vol. 325(C).
    3. Yong, Jia Ying & Ramachandaramurthy, Vigna K. & Tan, Kang Miao & Mithulananthan, N., 2015. "A review on the state-of-the-art technologies of electric vehicle, its impacts and prospects," Renewable and Sustainable Energy Reviews, Elsevier, vol. 49(C), pages 365-385.
    4. Martin Neubert & Oliver Gnepper & Oliver Mey & André Schneider, 2022. "Detection of Electric Vehicles and Photovoltaic Systems in Smart Meter Data," Energies, MDPI, vol. 15(13), pages 1-15, July.
    5. Zhang, Tianren & Huang, Yuping & Liao, Hui & Liang, Yu, 2023. "A hybrid electric vehicle load classification and forecasting approach based on GBDT algorithm and temporal convolutional network," Applied Energy, Elsevier, vol. 351(C).
    6. Lim, Bryan & Arık, Sercan Ö. & Loeff, Nicolas & Pfister, Tomas, 2021. "Temporal Fusion Transformers for interpretable multi-horizon time series forecasting," International Journal of Forecasting, Elsevier, vol. 37(4), pages 1748-1764.
    7. Genov, Evgenii & Cauwer, Cedric De & Kriekinge, Gilles Van & Coosemans, Thierry & Messagie, Maarten, 2024. "Forecasting flexibility of charging of electric vehicles: Tree and cluster-based methods," Applied Energy, Elsevier, vol. 353(PA).
    8. Wang, Shengyou & Zhuge, Chengxiang & Shao, Chunfu & Wang, Pinxi & Yang, Xiong & Wang, Shiqi, 2023. "Short-term electric vehicle charging demand prediction: A deep learning approach," Applied Energy, Elsevier, vol. 340(C).
    9. Apostolos Vavouris & Benjamin Garside & Lina Stankovic & Vladimir Stankovic, 2022. "Low-Frequency Non-Intrusive Load Monitoring of Electric Vehicles in Houses with Solar Generation: Generalisability and Transferability," Energies, MDPI, vol. 15(6), pages 1-27, March.
    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. Cao, Tingwei & Xu, Yinliang & Liu, Guowei & Tao, Shengyu & Tang, Wenjun & Sun, Hongbin, 2024. "Feature-enhanced deep learning method for electric vehicle charging demand probabilistic forecasting of charging station," Applied Energy, Elsevier, vol. 371(C).
    2. Kuang, Haoxuan & Deng, Kunxiang & You, Linlin & Li, Jun, 2025. "Citywide electric vehicle charging demand prediction approach considering urban region and dynamic influences," Energy, Elsevier, vol. 320(C).
    3. Guo, Hongxia & Chen, Lingxuan & Wang, Zhaocai & Li, Lin, 2025. "Day-ahead prediction of electric vehicle charging demand based on quadratic decomposition and dual attention mechanisms," Applied Energy, Elsevier, vol. 381(C).
    4. Zhuang, Yingrui & Cheng, Lin & Qi, Ning & Wang, Xinyi & Chen, Yue, 2025. "Real-time hosting capacity assessment for electric vehicles: A sequential forecast-then-optimize method," Applied Energy, Elsevier, vol. 380(C).
    5. Frederick Nsambu Kijjambu & Benjamin Musiita & Asaph Kaburura Katarangi & Geoffrey Kahangane & Sheilla Akampwera, 2023. "Determinants of Uganda’s Debt Sustainability: The Public Debt Dynamics Model in Perspective," Journal of Economics and Behavioral Studies, AMH International, vol. 15(4), pages 106-124.
    6. Cheng, Fang & Liu, Hui, 2024. "Multi-step electric vehicles charging loads forecasting: An autoformer variant with feature extraction, frequency enhancement, and error correction blocks," Applied Energy, Elsevier, vol. 376(PB).
    7. Das, Himadry Shekhar & Tan, Chee Wei & Yatim, A.H.M., 2017. "Fuel cell hybrid electric vehicles: A review on power conditioning units and topologies," Renewable and Sustainable Energy Reviews, Elsevier, vol. 76(C), pages 268-291.
    8. Boyu Xiang & Zhengyang Zhou & Shukun Gao & Guoping Lei & Zefu Tan, 2024. "A Planning Method for Charging Station Based on Long-Term Charging Load Forecasting of Electric Vehicles," Energies, MDPI, vol. 17(24), pages 1-20, December.
    9. Frank, Johannes, 2023. "Forecasting realized volatility in turbulent times using temporal fusion transformers," FAU Discussion Papers in Economics 03/2023, Friedrich-Alexander University Erlangen-Nuremberg, Institute for Economics.
    10. Tan, Kang Miao & Padmanaban, Sanjeevikumar & Yong, Jia Ying & Ramachandaramurthy, Vigna K., 2019. "A multi-control vehicle-to-grid charger with bi-directional active and reactive power capabilities for power grid support," Energy, Elsevier, vol. 171(C), pages 1150-1163.
    11. He, Miao & Jiang, Weiwei & Gu, Weixi, 2024. "TriChronoNet: Advancing electricity price prediction with Multi-module fusion," Applied Energy, Elsevier, vol. 371(C).
    12. Tiantian Tu, 2025. "Bridging Short- and Long-Term Dependencies: A CNN-Transformer Hybrid for Financial Time Series Forecasting," Papers 2504.19309, arXiv.org.
    13. Wang, Wenhao & Tang, Aihong & Wei, Feng & Yang, Huiyuan & Xinran, Li & Peng, Jiao, 2025. "Electric vehicle charging load forecasting considering weather impact," Applied Energy, Elsevier, vol. 383(C).
    14. Feng, Zhanyu & Zhang, Jian & Jiang, Han & Yao, Xuejian & Qian, Yu & Zhang, Haiyan, 2024. "Energy consumption prediction strategy for electric vehicle based on LSTM-transformer framework," Energy, Elsevier, vol. 302(C).
    15. Ali Atiah Alzahrani, 2025. "Multi-Agent Regime-Conditioned Diffusion (MARCD) for CVaR-Constrained Portfolio Decisions," Papers 2510.10807, arXiv.org, revised Nov 2025.
    16. Sengupta, Shovon & Chakraborty, Tanujit & Singh, Sunny Kumar, 2025. "Forecasting CPI inflation under economic policy and geopolitical uncertainties," International Journal of Forecasting, Elsevier, vol. 41(3), pages 953-981.
    17. Asaad Mohammad & Ramon Zamora & Tek Tjing Lie, 2020. "Integration of Electric Vehicles in the Distribution Network: A Review of PV Based Electric Vehicle Modelling," Energies, MDPI, vol. 13(17), pages 1-20, September.
    18. Dong, Hanjiang & Zhu, Jizhong & Li, Shenglin & Wu, Wanli & Zhu, Haohao & Fan, Junwei, 2023. "Short-term residential household reactive power forecasting considering active power demand via deep Transformer sequence-to-sequence networks," Applied Energy, Elsevier, vol. 329(C).
    19. Ma, Tian & Wang, Wanwan & Jiang, Fuwei, 2025. "Machine learning the performance of hedge fund," Journal of International Money and Finance, Elsevier, vol. 155(C).
    20. Zhang, Tian & Hou, Zhengmeng & Li, Xiaoqin & Chen, Qianjun & Wang, Qichen & Lüddeke, Christian & Wu, Lin & Wu, Xuning & Sun, Wei, 2025. "A novel multivariable prognostic approach for PEMFC degradation and remaining useful life prediction using random forest and temporal convolutional network," Applied Energy, Elsevier, vol. 385(C).

    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:398:y:2025:i:c:s0306261925010839. 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.