Climate-Resilient Reinforcement Learning Control of Hybrid Ventilation in Mediterranean Offices Under Future Climate Scenarios †
Abstract
1. Introduction
- A climate-resilient reinforcement learning control framework for hybrid ventilation is proposed, enabling Mediterranean office buildings to maintain thermal comfort while reducing reliance on energy-intensive mechanical cooling under both present-day and projected future climate conditions;
- A post-training resilience evaluation methodology is introduced, in which an RL controller trained exclusively under present-day TMY conditions is systematically assessed under morphed 2050 and 2080 climate scenarios, providing a practical approach for evaluating long-term robustness without future-data training;
- Quantitative resilience indicators are applied to objectively measure the resistance of RL-based hybrid ventilation control against climate-induced thermal stress, relative to conventional rule-based strategies;
- Explainable artificial intelligence is integrated with reinforcement learning through SHAP-based feature attribution, enabling transparent interpretation of control decisions and revealing physically consistent relationships between environmental variables and ventilation actions;
- A Mediterranean office case study is presented to demonstrate the practical implications of the proposed framework, highlighting its potential to enhance long-term operational resilience while sustaining energy efficiency under increasing heat-wave intensity.
2. Methodology
2.1. Experimental Office Cell and System Description
2.2. Building Energy Modeling
2.3. Reinforcement Learning
- Total timesteps = 12 million timesteps (with four parallel envs);
- Learning rate = ;
- , ;
- Rollout length ;
- Batch size = 1024, Epochs = 12;
- Entropy coefficient 0.05, clip range 0.10, value-clip 0.10;
- Value-function coefficient 1.5, max-grad-norm 0.5.
- Natural Ventilation
- Mechanical Ventilation—High Setpoint:
- Mechanical Ventilation—Low Setpoint:
2.4. Future Weather Conditions
- 2050 SSP1-2.6;
- 2050 SSP5-8.5;
- 2080 SSP1-2.6;
- 2080 SSP5-8.5.
2.5. Building Thermal Resilience Assessment
2.6. Explainable AI
3. Results and Discussion
3.1. Performance of the Reinforcement Learning Controller
3.1.1. Training Convergence and Learning Stability
3.1.2. Energy Performance and Natural Ventilation Utilization
3.1.3. Thermal Comfort Performance
3.1.4. Reward-Weight Sensitivity Analysis
3.2. Climate Resilience Assessment
3.3. Explainability and Policy Interpretability
4. Limitations and Future Work
5. Conclusions
- The proposed RL-based hybrid ventilation controller reduced annual HVAC energy consumption by 6.9–9.2% across present-day and future climate scenarios relative to rule-based control;
- Natural ventilation utilization during occupied hours increased consistently under RL control, with an improvement range of 7–8% across all evaluated climates;
- Indoor Overheating Degree (IOD) was substantially reduced, with reductions ranging from 23% to 57%, demonstrating enhanced resistance to climate-induced thermal stress;
- Climate resilience, quantified through the CCOR, improved by approximately 24%, indicating that the RL controller maintains a higher proportion of its thermal performance under future warming conditions compared to conventional control.
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Acknowledgments
Conflicts of Interest
Nomenclature
| Indoor air temperature (°C) | |
| Outdoor air temperature (°C) | |
| Operative indoor temperature (°C) | |
| Indoor relative humidity (%) | |
| Outdoor relative humidity (%) | |
| Wind speed (m/s) | |
| Wind direction (°) | |
| Air-conditioning energy consumption (kWh) | |
| Occupancy status (binary) | |
| Cooling temperature setpoint (°C) | |
| AWD | Ambient Warmness Degree |
| Predicted Mean Vote | |
| Adaptive Predicted Mean Vote | |
| Instantaneous reward | |
| Comfort penalty term | |
| Energy penalty term | |
| Natural ventilation reward term | |
| Indoor Overheating Degree | |
| Climate Change Overheating Resistivity | |
| Adaptive comfort temperature (°C) | |
| Upper adaptive comfort limit (°C) | |
| Lower adaptive comfort limit (°C) | |
| Control timestep duration (min) | |
| Number of occupied timesteps | |
| State vector at timestep (t) | |
| Action taken at timestep (t) | |
| Greek Symbols | |
| Adaptive thermal comfort coefficient | |
| Discount factor in PPO | |
| Reward weighting factor | |
| Generalized Advantage Estimation parameter | |
| SHAP value for feature (i) | |
| Abbreviations | |
| AC | Air Conditioning |
| AFN | Airflow Network |
| DRL | Deep Reinforcement Learning |
| HVAC | Heating, Ventilation, and Air Conditioning |
| HV | Hybrid Ventilation |
| IEA EBC | International Energy Agency—Energy in Buildings and Communities |
| MPC | Model Predictive Control |
| NV | Natural Ventilation |
| PPO | Proximal Policy Optimization |
| RBC | Rule-Based Control |
| RL | Reinforcement Learning |
| SHAP | Shapley Additive Explanations |
| SSP | Shared Socioeconomic Pathway |
| TMY | Typical Meteorological Year |
| VRF | Variable Refrigerant Flow |
| XAI | Explainable Artificial Intelligence |
| Subscripts | |
| in | Indoor |
| out | Outdoor |
| k | Control timestep index |
| occ | Occupied period |
| sp | Setpoint |
References
- Younes, J.; Ghaddar, N.; Ghali, K. Impact assessment of climate change on naturally ventilated residential buildings in Lebanon—Overheating risk under future climate scenarios. E3S Web Conf. 2024, 562, 07001. [Google Scholar] [CrossRef]
- Hamdy, M.; Mauro, G.M. Optimizing hybrid ventilation control strategies toward zero-cooling energy building. Front. Built Environ. 2019, 5, 97. [Google Scholar] [CrossRef]
- Vallianos, C.; Athienitis, A.; Rao, J. Hybrid ventilation in an institutional building: Modeling and predictive control. Build. Environ. 2019, 166, 106405. [Google Scholar] [CrossRef]
- Peng, Y.; Lei, Y.; Tekler, Z.D.; Antanuri, N.; Lau, S.-K.; Chong, A. Hybrid system controls of natural ventilation and HVAC in mixed-mode buildings: A comprehensive review. Energy Build. 2022, 276, 112509. [Google Scholar] [CrossRef]
- Al Sayed, K.; Boodi, A.; Broujeny, R.S.; Beddiar, K. Reinforcement learning for HVAC control in intelligent buildings: A technical and conceptual review. J. Build. Eng. 2024, 95, 110085. [Google Scholar] [CrossRef]
- Manjavacas, A.; Campoy-Nieves, A.; Jiménez-Raboso, J.; Molina-Solana, M.; Gómez-Romero, J. An experimental evaluation of deep reinforcement learning algorithms for HVAC control. Artif. Intell. Rev. 2024, 57, 173. [Google Scholar] [CrossRef]
- Wang, J.; Li, L.; Liu, Q.; Yang, Y. Experimental evaluation of offline reinforcement learning for hvac control in buildings. arXiv 2024, arXiv:2408.07986. [Google Scholar] [CrossRef]
- Berkes, A. HVAC-DPT: A Decision Pretrained Transformer for HVAC Control. arXiv 2024, arXiv:2411.19746. [Google Scholar] [CrossRef]
- Xu, S.; Fu, Y.; Wang, Y.; Yang, Z.; Huang, C.; O’Neill, Z.; Wang, Z.; Zhu, Q. Efficient and assured reinforcement learning-based building HVAC control with heterogeneous expert-guided training. Sci. Rep. 2025, 15, 7677. [Google Scholar] [CrossRef]
- Chen, Y.; Norford, L.K.; Samuelson, H.W.; Malkawi, A. Optimal control of HVAC and window systems for natural ventilation through reinforcement learning. Energy Build. 2018, 169, 195–205. [Google Scholar] [CrossRef]
- Dai, X.; Cheng, S.; Chong, A. Deciphering optimal mixed-mode ventilation in the tropics using reinforcement learning with explainable artificial intelligence. Energy Build. 2023, 278, 112629. [Google Scholar] [CrossRef]
- Kadamala, K.; Chambers, D.; Barrett, E. Enhancing HVAC control systems through transfer learning with deep reinforcement learning agents. Smart Energy 2024, 13, 100131. [Google Scholar] [CrossRef]
- Coraci, D.; Brandi, S.; Hong, T.; Capozzoli, A. An innovative heterogeneous transfer learning framework to enhance the scalability of deep reinforcement learning controllers in buildings with integrated energy systems. Build. Simul. 2024, 17, 739–770. [Google Scholar] [CrossRef]
- Bekal, G.U.; Ghareeb, A.; Pujari, A. Continual Reinforcement Learning for HVAC Systems Control: Integrating Hypernetworks and Transfer Learning. arXiv 2025, arXiv:2503.19212. [Google Scholar] [CrossRef]
- Su, Y.; Xu, M.; Liu, X.; Tan, M.; Wang, R.; Yang, C. Explainable reinforcement learning for enhancing personal thermal comfort and optimizing demand response in household multi-zone HVAC system. Sci. China Technol. Sci. 2025, 68, 1600403. [Google Scholar] [CrossRef]
- An, Z.; Ding, X.; Du, W. Go beyond black-box policies: Rethinking the design of learning agent for interpretable and verifiable HVAC control. In Proceedings of the 61st ACM/IEEE Design Automation Conference, San Francisco, CA, USA, 23–27 June 2024; Association for Computing Machinery: New York, NY, USA, 2024; pp. 1–6. [Google Scholar]
- Gokhale, G.; Karimi Madahi, S.S.; Claessens, B.; Develder, C. Distill2Explain: Differentiable decision trees for explainable reinforcement learning in energy application controllers. In Proceedings of the 15th ACM International Conference on Future and Sustainable Energy Systems, Singapore, 4–7 June 2024; Association for Computing Machinery: New York, NY, USA, 2024; pp. 55–64. [Google Scholar]
- Krayem, H.; Younes, J.; Ghali, K.; Jradi, M.; Ghaddar, N. A digital twin solution for optimizing productivity and energy performance in hybrid ventilated office space. Energy Convers. Manag. 2026, 349, 120880. [Google Scholar] [CrossRef]
- Krayem, H.; Younes, J.; Ghaddar, N. Reinforcement-Learning Control of Hybrid Ventilation for a Climate-Resilient Mediterranean Classroom. In Proceedings of the 11th World Sustainability Forum, Session on Emerging Technologies Implementation for Sustainable and Resilient Cities and Communities, Barcelona, Spain, 2–3 October 2025; Paper ID: sciforum-130571, Proceedings. Volume 131, p. 32. [Google Scholar]
- Crawley, D.B.; Lawrie, L.K.; Winkelmann, F.C.; Buhl, W.F.; Huang, Y.J.; Pedersen, C.O.; Strand, R.K.; Liesen, R.J.; Fisher, D.E.; Witte, M.J. EnergyPlus: Creating a new-generation building energy simulation program. Energy Build. 2001, 33, 319–331. [Google Scholar] [CrossRef]
- ASHRAE. Fundamentals: 2001 Ashrae Handbook; SI edition + I-P edition; Amer Society of Heating: Peachtree Corners, GA, USA, 2001. [Google Scholar]
- ASHRAE Standard 55-2010; Thermal Environmental Conditions for Human Occupancy. American Society of Heating, Refrigerating and Air Conditioning Engineers: Peachtree Corners, GA, USA, 2010.
- Sakiyama, N.; Mazzaferro, L.; Carlo, J.; Bejat, T.; Garrecht, H. Natural ventilation potential from weather analyses and building simulation. Energy Build. 2021, 231, 110596. [Google Scholar] [CrossRef]
- ASHRAE Standard 55-2017; Thermal Environmental Conditions for Human Occupancy. American Society of Heating, Refrigerating and Air-Conditioning Engineers: Atlanta, GA, USA, 2017.
- Lee, K.H.; Schiavon, S. Influence of three dynamic predictive clothing insulation models on building energy use, HVAC sizing and thermal comfort. Energies 2014, 7, 1917–1934. [Google Scholar] [CrossRef]
- Zhai, Y.; Li, M.; Gao, S.; Yang, L.; Zhang, H.; Arens, E.; Gao, Y. Indirect calorimetry on the metabolic rate of sitting, standing and walking office activities. Build. Environ. 2018, 145, 77–84. [Google Scholar] [CrossRef]
- Allahham, O.; Ghali, K.; Ghaddar, N. Novel energy efficient integration of chimney ventilation, liquid desiccant dehumidification, and evaporative cooling for humid climates. Energy Convers. Manag. X 2024, 24, 100755. [Google Scholar] [CrossRef]
- Yao, R.; Li, B.; Liu, J. A theoretical adaptive model of thermal comfort–Adaptive Predicted Mean Vote (aPMV). Build. Environ. 2009, 44, 2089–2096. [Google Scholar] [CrossRef]
- Conceição, E.Z.; Nunes, A.R.; Gomes, J.M.; Lúcio, M.M.J. Application of a school building thermal response numerical model in the evolution of the adaptive thermal comfort level in the Mediterranean environment. Int. J. Vent. 2010, 9, 287–304. [Google Scholar] [CrossRef]
- Belcher, S.E.; Hacker, J.N.; Powell, D.S. Constructing design weather data for future climates. Build. Serv. Eng. Res. Technol. 2005, 26, 49–61. [Google Scholar] [CrossRef]
- Rodrigues, E.; Fernandes, M.S.; Carvalho, D. Future weather generator for building performance research: An open-source morphing tool and an application. Build. Environ. 2023, 233, 110104. [Google Scholar] [CrossRef]
- Siu, C.Y.; O’Brien, W.; Touchie, M.; Armstrong, M.; Laouadi, A.; Gaur, A.; Jandaghian, Z.; Macdonald, I. Evaluating thermal resilience of building designs using building performance simulation–A review of existing practices. Build. Environ. 2023, 234, 110124. [Google Scholar] [CrossRef]
- Machard, A.; Salvati, A.; Tootkaboni, M.P.; Gaur, A.; Zou, J.; Wang, L.L.; Baba, F.; Ge, H.; Bre, F.; Bozonnet, E. Typical and extreme weather datasets for studying the resilience of buildings to climate change and heatwaves. Sci. Data 2024, 11, 531. [Google Scholar] [CrossRef]
- Rahif, R.; Hamdy, M.; Homaei, S.; Zhang, C.; Holzer, P.; Attia, S. Simulation-based framework to evaluate resistivity of cooling strategies in buildings against overheating impact of climate change. Build. Environ. 2022, 208, 108599. [Google Scholar] [CrossRef]
- Hamdy, M.; Carlucci, S.; Hoes, P.-J.; Hensen, J.L. The impact of climate change on the overheating risk in dwellings—A Dutch case study. Build. Environ. 2017, 122, 307–323. [Google Scholar] [CrossRef]
- Diab, Z.; Younes, J.; Ghaddar, N. Optimal Passive Interventions for Enhancing Resilience of Naturally Ventilated Residential Buildings in Future Climatic Extremes. Buildings 2025, 15, 4016. [Google Scholar] [CrossRef]
- Lundberg, S.M.; Lee, S.-I. A unified approach to interpreting model predictions. In Advances in Neural Information Processing Systems; MIT Press: Cambridge, MA, USA, 2017; Volume 30. [Google Scholar]








| Scenario | Controller | Annual HVAC Energy (kWh/year) | Energy Savings (%) | NV During Occupied Hours (%) |
|---|---|---|---|---|
| TMY | RBC | 332.73 | – | 49.34 |
| RL | 302 | 9.23 | 56.79 | |
| 2050-SSP1-2.6 | RBC | 451.57 | – | 34.18 |
| RL | 412.40 | 8.67 | 41.92 | |
| 2050-SSP5-8.5 | RBC | 472.28 | – | 32.16 |
| RL | 432.12 | 8.51 | 40.05 | |
| 2080-SSP1-2.6 | RBC | 475.60 | – | 32.05 |
| RL | 433.74 | 8.80 | 40.13 | |
| 2080-SSP5-8.5 | RBC | 502.54 | – | 32.39 |
| RL | 467.91 | 6.89 | 39.80 |
| Scenario | Controller | IOD | IOD Reduction (%) |
|---|---|---|---|
| TMY | RBC | 0.21 | – |
| RL | 0.09 | 57.14 | |
| 2050-SSP1-2.6 | RBC | 0.26 | – |
| RL | 0.2 | 23.08 | |
| 2050-SSP5-8.5 | RBC | 0.27 | – |
| RL | 0.2 | 25.93 | |
| 2080-SSP1-2.6 | RBC | 0.35 | – |
| RL | 0.21 | 40 | |
| 2080-SSP5-8.5 | RBC | 0.37 | – |
| RL | 0.25 | 32.43 |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.
Share and Cite
Krayem, H.; Younes, J.; Ghaddar, N. Climate-Resilient Reinforcement Learning Control of Hybrid Ventilation in Mediterranean Offices Under Future Climate Scenarios. Sustainability 2026, 18, 1037. https://doi.org/10.3390/su18021037
Krayem H, Younes J, Ghaddar N. Climate-Resilient Reinforcement Learning Control of Hybrid Ventilation in Mediterranean Offices Under Future Climate Scenarios. Sustainability. 2026; 18(2):1037. https://doi.org/10.3390/su18021037
Chicago/Turabian StyleKrayem, Hussein, Jaafar Younes, and Nesreen Ghaddar. 2026. "Climate-Resilient Reinforcement Learning Control of Hybrid Ventilation in Mediterranean Offices Under Future Climate Scenarios" Sustainability 18, no. 2: 1037. https://doi.org/10.3390/su18021037
APA StyleKrayem, H., Younes, J., & Ghaddar, N. (2026). Climate-Resilient Reinforcement Learning Control of Hybrid Ventilation in Mediterranean Offices Under Future Climate Scenarios. Sustainability, 18(2), 1037. https://doi.org/10.3390/su18021037

