NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Safety-Aware Cascade Controller Tuning Using Constrained Bayesian Optimization

Mohammad Khosravi, Christopher König, Markus Maier, Roy S. Smith, John Lygeros, Alisa Rupenyan

TL;DR

This paper introduces a novel, data-driven method for automatically tuning the parameters of cascade controllers in industrial systems. It uses Bayesian Optimization to find the best controller settings for performance while crucially ensuring system stability and safety, even when the system's behavior changes.

What Problem Does This Paper Address?

Manually tuning controllers in complex industrial systems like CNC machines is a time-consuming, often suboptimal process. While automated tuning methods exist, they often struggle to guarantee system safety and stability, especially when the system's dynamics can change over time due to factors like wear or varying operational loads. This paper tackles the challenge of developing a robust, automated tuning system that not only maximizes performance but also actively prevents unsafe or unstable behavior, even in the face of system uncertainties.

Methods

The core of the proposed method is Constrained Bayesian Optimization (CBO). Here's a breakdown of their approach:

  • Model-Free and Data-Driven: The system doesn't require a precise mathematical model of the plant. Instead, it learns from experimental data collected during the tuning process.
  • Bayesian Optimization (BO): BO is used to efficiently explore the parameter space. It models the objective function (performance) and constraints (safety) using Gaussian Processes (GPs). GPs provide a probabilistic estimate of the function's value and its uncertainty at unobserved points.
  • Acquisition Function: An acquisition function (specifically, the Constrained Expected Improvement - CEI) is used to intelligently select the next set of controller parameters to test. This function balances exploring uncertain regions of the parameter space with exploiting regions known to yield good performance, while also considering safety.
  • Safety Constraint: A key innovation is the incorporation of a data-driven safety constraint. This constraint is derived from system data and aims to keep the system within predefined stability limits.
  • Critical Gain Detection: For experimental implementation, the authors introduce a method to automatically detect "critical gains." These are parameter values that are known to lead to instability or unsafe behavior. This information is then used to further inform the optimization process, either by directly constraining the search space or by adding a penalty term to the objective function.
  • Tailored Stopping Criterion: A specific stopping criterion is used, based on the expected improvement, to ensure timely convergence without sacrificing performance or safety.

Datasets

The paper uses data generated from:

  • Numerical Simulations: A model of a linear axis drive from a CNC grinding machine was used for initial simulations and validation.
  • Experimental System: The method was implemented and validated on a real linear axis drive of a CNC grinding machine. No specific pre-existing benchmark datasets were used; rather, data was collected during the tuning experiments on the physical system.

Key Insights and Ideas

  • Safety as a First-Class Constraint: The paper emphasizes that safety and stability are not afterthoughts but integral parts of the optimization problem. By treating them as explicit constraints or penalties, the method actively steers the tuning process away from dangerous regions.
  • Data-Driven Stability Detection: The ability to infer stability requirements from system data, rather than relying on a perfect analytical model, is crucial for real-world applications where models are often imperfect or change.
  • Critical Gain Detection for Enhanced Safety: Identifying critical gains beforehand provides a powerful mechanism to inform the BO process, making it more efficient and safer, especially when dealing with systems prone to instability.
  • Adaptability to System Changes: The method's data-driven nature and the incorporation of safety constraints make it adaptable to changes in system dynamics, which is a significant advantage over methods that rely on fixed models.

Key Results

  • Outperforms Relay Feedback Tuning: Numerically, the proposed method achieved a significantly lower cost (performance metric) compared to relay feedback tuning, with a 48% reduction in cost.
  • Efficient Convergence: The method converges quickly, requiring a relatively small number of experiments (around 46 in total for the experimental setup, including initial training and critical gain detection).
  • Improved Performance Metrics: Experimental results showed significant improvements in performance metrics, such as a 50% reduction in initial overshoot and a 25% reduction in the maximum error.
  • Guaranteed Safety: The method successfully tuned the controller while ensuring that critical safety constraints were met, as demonstrated by the low number of constraint violations in comparisons with other safe BO methods.

Limitations and Future Work

  • Initial Training Data: The performance of the GP model depends on the quality and quantity of the initial training data. While Latin Hypercube Sampling is used, a poor initial set could slow down convergence.
  • Critical Gain Accuracy: The accuracy of the critical gain detection method is important. If the detected critical gains are inaccurate, the safety guarantees might be compromised.
  • Future Work: The authors suggest extending the approach to accommodate task-specific parameters (contextual BO) to enable transfer learning and faster re-tuning when system behavior changes significantly. They also mention the potential for applying the method to other axes in the grinding machine.

Summary updated

BibTeX
@article{khosravi2023safety,
  author = {Mohammad Khosravi and Christopher König and Markus Maier and Roy S. Smith and John Lygeros and Alisa Rupenyan},
  title = {{Safety-Aware Cascade Controller Tuning Using Constrained Bayesian Optimization}},
  journal = {IEEE Trans. Industrial Electronics},
  year = {2023},
  doi = {10.1109/tie.2022.3158007},
}
Figure