# Safe Contextual Bayesian Optimization for Sustainable Room Temperature PID Control Tuning

arXiv: https://arxiv.org/abs/1906.12086 · HTML: https://mlsanity.com/paper/1906.12086/

## Key facts

- Cited by 24 papers in the map (data through 14 Oct 2026).
- First posted on arXiv 28 Jun 2019.

## Built on by (most cited first, 24 of 24)

- [Physics-Informed Machine Learning for Modeling and Control of Dynamical Systems](https://mlsanity.com/paper/2306.13867/) (2023)
- [ActSafe: Active Exploration with Safety Constraints for Reinforcement Learning](https://mlsanity.com/paper/2410.09486/) (2024)
- [GoSafeOpt: Scalable Safe Exploration for Global Optimization of Dynamical Systems](https://mlsanity.com/paper/2201.09562/) (2022)
- [Meta-Learning Priors for Safe Bayesian Optimization](https://mlsanity.com/paper/2210.00762/) (2022)
- [Safe and Efficient Model-free Adaptive Control via Bayesian Optimization](https://mlsanity.com/paper/2101.07825/) (2021)
- [EXPObench: Benchmarking Surrogate-based Optimisation Algorithms on Expensive Black-box Functions](https://mlsanity.com/paper/2106.04618/) (2021)
- [Tuning Legged Locomotion Controllers via Safe Bayesian Optimization](https://mlsanity.com/paper/2306.07092/) (2023)
- [Violation-Aware Contextual Bayesian Optimization for Controller Performance Optimization with Unmodeled Constraints](https://mlsanity.com/paper/2301.12099/) (2023)
- [Mixed Variable Bayesian Optimization with Frequency Modulated Kernels](https://mlsanity.com/paper/2102.12792/) (2021)
- [Safe Time-Varying Optimization based on Gaussian Processes with Spatio-Temporal Kernel](https://mlsanity.com/paper/2409.18000/) (2024)
- [Bayesian Optimisation for Robust Model Predictive Control under Model Parameter Uncertainty](https://mlsanity.com/paper/2203.00551/) (2022)
- [CONFIG: Constrained Efficient Global Optimization for Closed-Loop Control System Optimization with Unmodeled Constraints](https://mlsanity.com/paper/2211.11822/) (2022)
- [Primal-Dual Contextual Bayesian Optimization for Control System Online Optimization with Time-Average Constraints](https://mlsanity.com/paper/2304.06104/) (2023)
- [Bayesian Optimisation Against Climate Change: Applications and Benchmarks](https://mlsanity.com/paper/2306.04343/) (2023)
- [Data-driven adaptive building thermal controller tuning with constraints: A primal-dual contextual Bayesian optimization approach](https://mlsanity.com/paper/2310.00758/) (2023)
- [Local Bayesian Optimization for Controller Tuning with Crash Constraints](https://mlsanity.com/paper/2411.16267/) (2024)
- [Contextual Causal Bayesian Optimisation](https://mlsanity.com/paper/2301.12412/) (2023)
- [Future Aware Safe Active Learning of Time Varying Systems using Gaussian Processes](https://mlsanity.com/paper/2405.10581/) (2024)
- [PAIL: Performance based Adversarial Imitation Learning Engine for Carbon Neutral Optimization](https://mlsanity.com/paper/2407.08910/) (2024)
- [Sonic: A Sampling-based Online Controller for Streaming Applications](https://mlsanity.com/paper/2108.10701/) (2021)
- [Adaptive Bayesian Optimization for High-Precision Motion Systems](https://mlsanity.com/paper/2404.14602/) (2024)
- [Safe Bayesian Optimization for Complex Control Systems via Additive Gaussian Processes](https://mlsanity.com/paper/2408.16307/) (2024)
- [Simulation Priors for Data-Efficient Deep Learning](https://mlsanity.com/paper/2509.05732/) (2025)
- [Exact Action Values Are Not Enough: Rollout-Verified Reinforcement Fine-Tuning of a Reasoning Model for Multi-Zone VAV Control](https://mlsanity.com/paper/2607.27914/) (2026)

## Abstract (arXiv)

We tune one of the most common heating, ventilation, and air conditioning (HVAC) control loops, namely the temperature control of a room. For economical and environmental reasons, it is of prime importance to optimize the performance of this system. Buildings account from 20 to 40% of a country energy consumption, and almost 50% of it comes from HVAC systems. Scenario projections predict a 30% decrease in heating consumption by 2050 due to efficiency increase. Advanced control techniques can improve performance; however, the proportional-integral-derivative (PID) control is typically used due to its simplicity and overall performance. We use Safe Contextual Bayesian Optimization to optimize the PID parameters without human intervention. We reduce costs by 32% compared to the current PID controller setting while assuring safety and comfort to people in the room. The results of this work have an immediate impact on the room control loop performances and its related commissioning costs. Furthermore, this successful attempt paves the way for further use at different levels of HVAC systems, with promising energy, operational, and commissioning costs savings, and it is a practical demonstration of the positive effects that Artificial Intelligence can have on environmental sustainability.
