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

Improving energy distribution in collective self-consumption via XGBoost-based allocation coefficients prediction

Author

Listed:
  • Madrigal, Sebastián
  • Gallinad, Ramon
  • Vicario, Jose L.
  • Morell, Antoni
  • Vilanova, Ramon

Abstract

Energy communities operate under collective self-consumption schemes, where locally generated renewable energy is shared among participating members. In practice, this sharing is commonly governed by static allocation coefficients fixed in advance, which do not capture the time-varying and heterogeneous demand of participants. This mismatch can reduce community self-consumption, increase surplus injections, and raise reliance on the grid. This paper proposes a data-driven framework to dynamically compute allocation coefficients based on predicted individual demand and demonstrates its application in a municipal energy community in Catalonia, Spain. The approach uses an extreme gradient boosting model to forecast hourly consumption profiles and then derive adaptive allocation coefficients that better align shared photovoltaic generation with expected demand. The proposed strategy is evaluated against a static baseline and alternative dynamic schemes using multiple performance indicators, including community self-consumption, surplus energy, and grid dependency. In the case study, the extreme gradient boosting-based allocation increases community self-consumption by 8.4%, reduces surplus energy by 34%, and lowers grid dependency by up to 30% for key members, resulting in a more balanced and efficient distribution of locally generated energy. These results highlight the potential of machine learning-enabled allocation to improve collective self-consumption performance in the existing regulatory framework.

Suggested Citation

  • Madrigal, Sebastián & Gallinad, Ramon & Vicario, Jose L. & Morell, Antoni & Vilanova, Ramon, 2026. "Improving energy distribution in collective self-consumption via XGBoost-based allocation coefficients prediction," Applied Energy, Elsevier, vol. 409(C).
  • Handle: RePEc:eee:appene:v:409:y:2026:i:c:s0306261926001212
    DOI: 10.1016/j.apenergy.2026.127469
    as

    Download full text from publisher

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

    File URL: https://libkey.io/10.1016/j.apenergy.2026.127469?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. Shoaib Ahmed & Amjad Ali & Antonio D’Angola, 2024. "A Review of Renewable Energy Communities: Concepts, Scope, Progress, Challenges, and Recommendations," Sustainability, MDPI, vol. 16(5), pages 1-34, February.
    2. Rafael Gonçalves & Diogo Gomes & Mário Antunes, 2025. "Intelligent Management of Renewable Energy Communities: An MLaaS Framework with RL-Based Decision Making," Energies, MDPI, vol. 18(13), pages 1-30, July.
    3. 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).
    4. Miguel Matos & João Almeida & Pedro Gonçalves & Fabiano Baldo & Fernando José Braz & Paulo C. Bartolomeu, 2024. "A Machine Learning-Based Electricity Consumption Forecast and Management System for Renewable Energy Communities," Energies, MDPI, vol. 17(3), pages 1-25, January.
    5. Giulia Palma & Leonardo Guiducci & Marta Stentati & Antonio Rizzo & Simone Paoletti, 2024. "Reinforcement Learning for Energy Community Management: A European-Scale Study," Energies, MDPI, vol. 17(5), pages 1-19, March.
    6. Iazzolino, Gianpaolo & Sorrentino, Nicola & Menniti, Daniele & Pinnarelli, Anna & De Carolis, Monica & Mendicino, Luca, 2022. "Energy communities and key features emerged from business models review," Energy Policy, Elsevier, vol. 165(C).
    7. Gallego-Castillo, Cristobal & Heleno, Miguel & Victoria, Marta, 2021. "Self-consumption for energy communities in Spain: A regional analysis under the new legal framework," Energy Policy, Elsevier, vol. 150(C).
    8. Elomari, Youssef & Mateu, Carles & Marín-Genescà, M. & Boer, Dieter, 2024. "A data-driven framework for designing a renewable energy community based on the integration of machine learning model with life cycle assessment and life cycle cost parameters," Applied Energy, Elsevier, vol. 358(C).
    9. Casella, Virginia & Ferro, Giulio & Parodi, Luca & Robba, Michela, 2025. "Maximizing shared benefits in renewable energy communities: A Bilevel optimization model," Applied Energy, Elsevier, vol. 386(C).
    10. Giuseppe Piras & Francesco Muzi & Zahra Ziran, 2024. "Open Tool for Automated Development of Renewable Energy Communities: Artificial Intelligence and Machine Learning Techniques for Methodological Approach," Energies, MDPI, vol. 17(22), pages 1-16, November.
    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. Sandra Corasaniti & Paolo Coppa & Dario Atzori & Ateeq Ur Rehman, 2025. "Renewable Energy Communities (RECs): European and Worldwide Distribution, Different Technologies, Management, and Modeling," Energies, MDPI, vol. 18(15), pages 1-60, July.
    2. Kerscher, Selina & Koirala, Arpan & Arboleya, Pablo, 2024. "Grid-optimal energy community planning from a systems perspective," Renewable and Sustainable Energy Reviews, Elsevier, vol. 199(C).
    3. Casella, Virginia & Ferro, Giulio & Parodi, Luca & Robba, Michela, 2025. "Maximizing shared benefits in renewable energy communities: A Bilevel optimization model," Applied Energy, Elsevier, vol. 386(C).
    4. Barbara Antonioli Mantegazzini & C?dric Clastres & Laura Wangen, 2022. "Energy communities in Europe: An overview of issues and regulatory and economic solutions," ECONOMICS AND POLICY OF ENERGY AND THE ENVIRONMENT, FrancoAngeli Editore, vol. 2022(2), pages 5-23.
    5. Tai Zhang & Goran Strbac, 2025. "Novel Artificial Intelligence Applications in Energy: A Systematic Review," Energies, MDPI, vol. 18(14), pages 1-51, July.
    6. Basilico, Paolo & Biancardi, Alberto & D'Adamo, Idiano & Gastaldi, Massimo & Stornelli, Vincenzo, 2025. "Socioeconomic dimensions of renewable energy communities: Pathways to collective well-being," Utilities Policy, Elsevier, vol. 96(C).
    7. Aikaterini Papapostolou & Ioanna Andreoulaki & Filippos Anagnostopoulos & Sokratis Divolis & Harris Niavis & Sokratis Vavilis & Vangelis Marinakis, 2025. "Innovative Business Models Towards Sustainable Energy Development: Assessing Benefits, Risks, and Optimal Approaches of Blockchain Exploitation in the Energy Transition," Energies, MDPI, vol. 18(15), pages 1-45, August.
    8. D'Adamo, Idiano & Mammetti, Marco & Ottaviani, Dario & Ozturk, Ilhan, 2023. "Photovoltaic systems and sustainable communities: New social models for ecological transition. The impact of incentive policies in profitability analyses," Renewable Energy, Elsevier, vol. 202(C), pages 1291-1304.
    9. Zhou, Shijie & Cao, Sunliang, 2024. "Co-ordinations of ocean energy supported energy sharing between zero-emission cross-harbour buildings in the Greater Bay Area," Applied Energy, Elsevier, vol. 359(C).
    10. Fernando Echevarría Camarero & Ana Ogando-Martínez & Pablo Durán Gómez & Pablo Carrasco Ortega, 2022. "Profitability of Batteries in Photovoltaic Systems for Small Industrial Consumers in Spain under Current Regulatory Framework and Energy Prices," Energies, MDPI, vol. 16(1), pages 1-19, December.
    11. Manso-Burgos, Á. & Ribó-Pérez, D. & Aparisi-Cerdá, I. & Gómez-Navarro, T. & Madani, H., 2025. "Optimising flexibility in highly electrified energy communities: A Mediterranean perspective," Applied Energy, Elsevier, vol. 395(C).
    12. Nuñez-Jimenez, Alejandro & Mehta, Prakhar & Griego, Danielle, 2023. "Let it grow: How community solar policy can increase PV adoption in cities," Energy Policy, Elsevier, vol. 175(C).
    13. Habib, Salman & El-Ferik, Sami & Gulzar, Muhammad Majid & Chauhdary, Sohaib Tahir & Ahmed, Emad M. & Alnuman, Hammad, 2025. "A tri-level hierarchical optimization framework for smart homes, microgrids, and distribution networks with hydrogen integration using a distributed ADMM approach," Applied Energy, Elsevier, vol. 400(C).
    14. Jingyu Shi & Ran Xu & Dongfang Li & Tao Zhu & Nanyu Fan & Zhanghua Hong & Guohua Wang & Yong Han & Xing Zhu, 2025. "Multi-Criteria Optimization and Techno-Economic Assessment of a Wind–Solar–Hydrogen Hybrid System for a Plateau Tourist City Using HOMER and Shannon Entropy-EDAS Models," Energies, MDPI, vol. 18(15), pages 1-26, August.
    15. Marina Bertolini & Gregorio Morosinotto, 2023. "Business Models for Energy Community in the Aggregator Perspective: State of the Art and Research Gaps," Energies, MDPI, vol. 16(11), pages 1-26, June.
    16. Kubli, Merla & Puranik, Sanket, 2023. "A typology of business models for energy communities: Current and emerging design options," Renewable and Sustainable Energy Reviews, Elsevier, vol. 176(C).
    17. Meitern, Maarja, 2025. "Navigating the rise of energy communities in Estonia: Challenges and successes through case studies," Energy Policy, Elsevier, vol. 198(C).
    18. Cesar Diaz-Londono & José Vuelvas & Giambattista Gruosso & Carlos Adrian Correa-Florez, 2022. "Remuneration Sensitivity Analysis in Prosumer and Aggregator Strategies by Controlling Electric Vehicle Chargers," Energies, MDPI, vol. 15(19), pages 1-24, September.
    19. Paola Marrone & Federico Fiume & Antonino Laudani & Ilaria Montella & Martina Palermo & Francesco Riganti Fulginei, 2023. "Distributed Energy Systems: Constraints and Opportunities in Urban Environments," Energies, MDPI, vol. 16(6), pages 1-27, March.
    20. Kirkels, A.F. & Liu, H. & Romijn, H.A. & Durgaprasad, S. & Polinder, H. & Goudsmit, M. & Hoorani, N., 2026. "Batteries for sustainable shipping: Current status and potential roles," Renewable and Sustainable Energy Reviews, Elsevier, vol. 226(PB).

    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:409:y:2026:i:c:s0306261926001212. 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.