How can high-demand critical facilities, such as hospitals, ensure continuous emergency power without relying on pollutant diesel generators, while simultaneously adapting to volatile electricity markets? As variable renewable energy sources like wind and solar expand across power grids, managing grid stability and peak demand has become a central challenge for modern energy infrastructure.
To address this issue, Regenera Energy has developed and deployed a modular hybrid hydrogen-battery installation at the Germans Trias i Pujol Hospital in Badalona, a major facility employing over 5,000 healthcare professionals and serving a reference population of 800,000 people, which reaches up to 1.5 million for specialized pathologies. Carried out under a pre-commercial procurement contract awarded by CDTI and funded by NextGenerationEU, the deployment forms the core of an Industrial PhD thesis at the University of the Balearic Islands (UIB), co-supervised by IFISC (UIB-CSIC) and Regenera Energy. Within this framework, researchers have developed and evaluated an Artificial Intelligence-driven Energy Management System (EMS) combining a battery energy storage system with a green hydrogen system, supervised in real time by an advanced digital twin.
A modular multi-energy architecture
Unlike conventional emergency backups that sit idle until a blackout occurs, this modular system operates year-round to deliver continuous energy services. The facility integrates an electrolyzer to produce green hydrogen, storage for hydrogen and oxygen to be upgraded for medical use, fuel cells equipped with heat recovery, a thermal hydrogen boiler, and lithium electric batteries.
To coordinate the equipment, the researchers built a digital twin of the facility, a virtual simulator driven by an AI genetic algorithm. By analysing electricity prices, weather forecasts, and expected energy demand on a 24-hour horizon, the system calculates the optimal operation for two distinct seasonal regimes.
First, a low-demand regime. With lower energy needs (~400 kW), the AI focuses on price arbitrage, charging batteries during cheap off-peak hours and discharging them when rates rise. Hydrogen is kept intact as a backup reserve, taking advantage of the higher round-trip efficiency of batteries for short-term cycles. Then, a high-demand regime, in Summer. When heavy cooling demand pushes power consumption above 1,000 kW, the system prioritizes peak-shaving. Combining fast-acting batteries with sustained fuel cell power, the AI reduces grid demand peaks by up to 250 kW.
"What makes this hybrid framework effective is the complementary operation across different time scales”, explains Pere Colet, researcher at IFISC (UIB-CSIC) and co-author of the study. "Batteries excel at managing rapid power fluctuations with high round-trip efficiency, while hydrogen provides long-duration energy storage without self-discharge losses. By optimizing both storage vectors together through our digital twin, we can guarantee emergency backup for critical hospital loads while actively smoothing grid demand".
Economic balance and environmental co-benefits
While using stored energy during summer peak hours incurs additional energy charges due to conversion losses, the study demonstrates that the system delivers net economic benefits by allowing the hospital to reduce its contracted maximum grid capacity.
For a conservative 200 kW reduction in contracted power capacity under standard Spanish 2026 distribution tariffs, the savings in fixed grid capacity charges amount to approximately €12,087 per year. After accounting for variable energy costs throughout the year, the system yields a net economic saving estimated at €7,270 per year.
Furthermore, the system delivers valuable co-benefits beyond electricity cost reduction: the heat recovered from the fuel cells feeds directly into the hospital’s heating circuit, and the high-purity oxygen generated during electrolysis is stored so that it can be upgraded for hospital medical use at a later stage. By demonstrating that fossil-free backup power can be integrated into daily energy management and grid flexibility markets, the study provides a practical blueprint for decarbonizing critical urban infrastructure.
Funding
The installation was developed by Regenera Energy within the Pre-Commercial Procurement contract CPP 10/2023 AB, awarded by the Spanish Centre for the Development of Industrial Technology (CDTI) and funded by CDTI and by the European Union – NextGenerationEU through the Recovery and Resilience Facility (Spanish Recovery, Transformation and Resilience Plan, PRTR). IFISC research supported by project PID2024-15793NB-C22 financed by MICIU/AEI/10.13039/501100011033 and by FEDER, EU, and from grant “Excelencia María de Maeztu” CEX2021-001164-M financed by MICIU/AEI/10.13039/501100011033.

Pagán, J. M., Fabregat, V., & Colet, P. (2026). Hydrogen backup and peak-shaving: Multi-energy modular architecture with AI and digital twin supervision. International Journal of Hydrogen Energy, 291, 1558338. https://doi.org/10.1016/j.ijhydene.2026.158338