IDEAS home Printed from https://ideas.repec.org/a/eee/matcom/v238y2025icp296-305.html

Deep reinforcement learning based electricity bill minimization strategy for residential prosumer

Author

Listed:
  • Cardo-Miota, Javier
  • Khadem, Shafi
  • Bahloul, Mohamed

Abstract

This paper presents a reinforcement learning (RL)-based optimization strategy for minimizing the electricity bill of a residential prosumer equipped with a photovoltaic (PV) system and a battery energy storage system (BESS). Specifically, we implement a Twin Delayed Deep Deterministic Policy Gradient (TD3) agent, an actor–critic RL algorithm with a continuous action space. The proposed model leverages historical PV generation and household consumption data to optimize the charging and discharging schedule of the BESS under a three-period tariff scheme. To enhance the learning process, a Long Short-Term Memory (LSTM) layer is integrated into both the actor and critic networks, allowing the agent to capture temporal dependencies in energy demand and PV generation. The RL agent is trained and evaluated using real-world data from a residential PV installation in Ireland, a region characterized by high variability of solar generation. The results demonstrate that the TD3-based approach effectively reduces electricity bill costs by strategically charging during low-tariff periods and discharging during peak-price hours, achieving an approximate 30% reduction in the monthly bill compared to a PV-only scenario, and a 21% relative to a benchmark strategy. In addition, the TD3 agent is compared to a Deep Deterministic Policy Gradient (DDPG) agent, another RL-based approach for continuous action spaces. The results confirm that TD3 outperforms DDPG in both cost savings and learning stability, validating the effectiveness of our proposed method.

Suggested Citation

  • Cardo-Miota, Javier & Khadem, Shafi & Bahloul, Mohamed, 2025. "Deep reinforcement learning based electricity bill minimization strategy for residential prosumer," Mathematics and Computers in Simulation (MATCOM), Elsevier, vol. 238(C), pages 296-305.
  • Handle: RePEc:eee:matcom:v:238:y:2025:i:c:p:296-305
    DOI: 10.1016/j.matcom.2025.06.011
    as

    Download full text from publisher

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

    File URL: https://libkey.io/10.1016/j.matcom.2025.06.011?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. Khezri, Rahmat & Mahmoudi, Amin & Aki, Hirohisa, 2022. "Optimal planning of solar photovoltaic and battery storage systems for grid-connected residential sector: Review, challenges and new perspectives," Renewable and Sustainable Energy Reviews, Elsevier, vol. 153(C).
    2. Darcovich, K. & Henquin, E.R. & Kenney, B. & Davidson, I.J. & Saldanha, N. & Beausoleil-Morrison, I., 2013. "Higher-capacity lithium ion battery chemistries for improved residential energy storage with micro-cogeneration," Applied Energy, Elsevier, vol. 111(C), pages 853-861.
    3. Yujian Ye & Dawei Qiu & Huiyu Wang & Yi Tang & Goran Strbac, 2021. "Real-Time Autonomous Residential Demand Response Management Based on Twin Delayed Deep Deterministic Policy Gradient Learning," Energies, MDPI, vol. 14(3), pages 1-22, January.
    4. Cardo-Miota, Javier & Beltran, Hector & Pérez, Emilio & Khadem, Shafi & Bahloul, Mohamed, 2025. "Deep reinforcement learning-based strategy for maximizing returns from renewable energy and energy storage systems in multi-electricity markets," Applied Energy, Elsevier, vol. 388(C).
    5. Yanwei Jia & Xun Yu Zhou, 2021. "Policy Gradient and Actor-Critic Learning in Continuous Time and Space: Theory and Algorithms," Papers 2111.11232, arXiv.org, revised Jul 2022.
    6. Lee, Namkyoung & Woo, Joohyun & Kim, Sungryul, 2025. "A deep reinforcement learning ensemble for maintenance scheduling in offshore wind farms," Applied Energy, Elsevier, vol. 377(PA).
    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. Kim, Sunwoo & Choi, Yechan & Park, Joungho & Adams, Derrick & Heo, Seongmin & Lee, Jay H., 2024. "Multi-period, multi-timescale stochastic optimization model for simultaneous capacity investment and energy management decisions for hybrid Micro-Grids with green hydrogen production under uncertainty," Renewable and Sustainable Energy Reviews, Elsevier, vol. 190(PA).
    2. Zhou Fang, 2023. "Continuous-Time Path-Dependent Exploratory Mean-Variance Portfolio Construction," Papers 2303.02298, arXiv.org.
    3. Wanting He & Wenyuan Li & Yunran Wei, 2025. "Periodic evaluation of defined-contribution pension fund: A dynamic risk measure approach," Papers 2508.05241, arXiv.org.
    4. Daniel Cardoso & Daniel Nunes & João Faria & Paulo Fael & Pedro D. Gaspar, 2023. "Intelligent Micro-Cogeneration Systems for Residential Grids: A Sustainable Solution for Efficient Energy Management," Energies, MDPI, vol. 16(13), pages 1-21, July.
    5. Antonio Rosato & Antonio Ciervo & Giovanni Ciampi & Michelangelo Scorpio & Sergio Sibilio, 2020. "Integration of Micro-Cogeneration Units and Electric Storages into a Micro-Scale Residential Solar District Heating System Operating with a Seasonal Thermal Storage," Energies, MDPI, vol. 13(20), pages 1-40, October.
    6. Omar Al-Ani & Sanjoy Das, 2022. "Reinforcement Learning: Theory and Applications in HEMS," Energies, MDPI, vol. 15(17), pages 1-37, September.
    7. Zhou, Jianing & Cai, Guowei & Wang, Yibo & Liu, Chuang, 2025. "Dual-timescale scheduling approach for power systems with Energy-intensive loads: Wind power accommodation through forecast deviation decomposition and flexible resource coordination," Energy, Elsevier, vol. 332(C).
    8. Yilie Huang & Yanwei Jia & Xun Yu Zhou, 2024. "Mean--Variance Portfolio Selection by Continuous-Time Reinforcement Learning: Algorithms, Regret Analysis, and Empirical Study," Papers 2412.16175, arXiv.org, revised Mar 2026.
    9. D'Adamo, Idiano & Gastaldi, Massimo & Morone, Piergiuseppe & Ozturk, Ilhan, 2022. "Economics and policy implications of residential photovoltaic systems in Italy's developed market," Utilities Policy, Elsevier, vol. 79(C).
    10. Langtry, Max & Choudhary, Ruchi, 2025. "Quantifying the benefit of load uncertainty reduction for the design of district energy systems under grid constraints using the value of information," Applied Energy, Elsevier, vol. 400(C).
    11. Alexander Micallef & Cyril Spiteri Staines & Alan Cassar, 2022. "Utility-Scale Storage Integration in the Maltese Medium-Voltage Distribution Network," Energies, MDPI, vol. 15(8), pages 1-20, April.
    12. Yap, Kah Yung & Chin, Hon Huin & Klemeš, Jiří Jaromír, 2022. "Solar Energy-Powered Battery Electric Vehicle charging stations: Current development and future prospect review," Renewable and Sustainable Energy Reviews, Elsevier, vol. 169(C).
    13. Di Persio, Luca & Garbelli, Matteo & Giordano, Luca Maria, 2025. "Reinforcement learning for bidding strategy optimization in day-ahead energy market," Energy Economics, Elsevier, vol. 149(C).
    14. Wu, Bo & Li, Lingfei, 2024. "Reinforcement learning for continuous-time mean-variance portfolio selection in a regime-switching market," Journal of Economic Dynamics and Control, Elsevier, vol. 158(C).
    15. Nicola Blasuttigh & Simone Negri & Alessandro Massi Pavan & Enrico Tironi, 2023. "Optimal Sizing and Environ-Economic Analysis of PV-BESS Systems for Jointly Acting Renewable Self-Consumers," Energies, MDPI, vol. 16(3), pages 1-25, January.
    16. Lim, Lek Keng & Ho, Wai Shin & Hashim, Haslenda & Zubir, Muhammad Afiq & Muis, Zarina Ab & Chee, Wan Choy & Muda, Noraziah & Elias, Mohd Azimin & Jais, Ridzuwan Mohd, 2025. "Cost optimization of green hydrogen production from floating solar photovoltaic system," Renewable Energy, Elsevier, vol. 245(C).
    17. Troy, Stefanie & Schreiber, Andrea & Reppert, Thorsten & Gehrke, Hans-Gregor & Finsterbusch, Martin & Uhlenbruck, Sven & Stenzel, Peter, 2016. "Life Cycle Assessment and resource analysis of all-solid-state batteries," Applied Energy, Elsevier, vol. 169(C), pages 757-767.
    18. Olexandr Shavolkin & Iryna Shvedchykova & Juraj Gerlici & Kateryna Kravchenko & František Pribilinec, 2022. "Use of Hybrid Photovoltaic Systems with a Storage Battery for the Remote Objects of Railway Transport Infrastructure," Energies, MDPI, vol. 15(13), pages 1-19, July.
    19. Seongwoo Lee & Joonho Seon & Byungsun Hwang & Soohyun Kim & Youngghyu Sun & Jinyoung Kim, 2024. "Recent Trends and Issues of Energy Management Systems Using Machine Learning," Energies, MDPI, vol. 17(3), pages 1-24, January.
    20. Huy Chau & Duy Nguyen & Thai Nguyen, 2024. "Continuous-time optimal investment with portfolio constraints: a reinforcement learning approach," Papers 2412.10692, arXiv.org.

    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:matcom:v:238:y:2025:i:c:p:296-305. 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.journals.elsevier.com/mathematics-and-computers-in-simulation/ .

    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.