Sample-Efficient Counterfactual Tuning for Compressor Pressure Control

Margarita A. Guerrero, Rodrigo A. González, Cristian R. RojasarXiv 2025 · DOI

TL;DR

Tuning industrial compressor controllers is a high-stakes balancing act: one wrong move can trigger "surge"—a violent instability that damages hardware. This paper introduces a sample-efficient method that uses Counterfactual Explainability (XAI) and Bayesian optimization to find the smallest possible adjustment to controller gains that meets performance goals. By leveraging historical data and a handful of safe, closed-loop tests, the algorithm "nudges" the system into a high-performance state without ever leaving the safety of the operating envelope.

What Problem Does This Paper Address?

In heavy industries like natural gas transmission or power generation, axial compressors are "bottleneck assets." If they go offline, the whole plant stops. Controlling the pressure in these systems is notoriously difficult because they are prone to surge—a global instability where flow actually reverses, causing massive pressure oscillations and mechanical stress.

Traditional controller tuning methods (like "opening the loop" to identify the plant or running aggressive relay tests) are often too risky or costly to perform on live equipment. Furthermore, operators usually want the minimal change necessary to fix a performance issue, rather than a total redesign. The authors identify a gap: how do we retune these critical loops using only a few safe experiments and the piles of historical data already sitting in industrial databases (DCS historians)?

Methods

The authors frame retuning as a Counterfactual Explainability (CFE) problem. In AI, a counterfactual asks: "What is the smallest change to the input that would have changed the outcome?" Here, the "input" is the controller parameters (like PID gains) and the "outcome" is whether the system passes or fails its performance specs (e.g., overshoot < 20%, fast settling time).

The core of their approach is the ACE (Adaptive Sampling for Counterfactual Explanations) algorithm:

  1. Historian-Anchored Prior: They use historical data to identify previous controller settings and their performance. This builds a "map" of what has worked in the past.
  2. GP Classifier: A Gaussian Process (GP) classifier is trained to predict the probability that a set of controller gains will "pass" the performance criteria.
  3. Smart Sampling (Bayesian Optimization): Instead of guessing, the algorithm uses an "Expected Improvement" function to pick the next set of gains to test. It specifically looks for points near the "decision boundary" (where a 'fail' turns into a 'pass') that are also close to the current baseline settings.
  4. Cost Function with Constraints: The optimization doesn't just look for performance; it penalizes large changes (proximity), changes to too many parameters (sparsity), and settings that look nothing like historical data (plausibility).

Datasets

The study uses a high-fidelity simulation environment based on the Moore-Greitzer compressor-plenum-throttle model, a standard benchmark in fluid dynamics.

  • Historical Data: They generated 30 batches of "historical" closed-loop data with varying controller gains to simulate a real-world industrial historian.
  • Evaluation: The method was tested via extensive Monte Carlo simulations (100 runs per instance) to ensure the results were statistically robust and not just lucky guesses.

Key Insights and Ideas

  • Tuning as Classification: Instead of trying to model the complex physics of the compressor (which is hard and prone to error), the authors treat tuning as a binary classification task: "Does this set of gains meet our specs?"
  • The "Smallest Change" Philosophy: In industrial settings, "better" isn't always "best." An operator is much more likely to accept a 5% change in a gain they understand than a 50% change from a "black-box" optimizer. CFE naturally respects this human preference for minimal intervention.
  • Safety via Plausibility: By adding a "Local Outlier Factor" (LOF) penalty to the cost function, the algorithm automatically rejects controller settings that are too far removed from historically successful operations, providing an implicit safety guardrail against surge.

Key Results

The authors tested the algorithm on two scenarios: a single-loop pressure controller and a more complex cascade controller (8 parameters).

  • High Efficiency: In the single-loop case, the algorithm found a valid "pass" controller in an average of just 12 to 18 step tests.
  • Minimal Movement: The parameter shifts ($\Delta$) were remarkably small, typically less than 0.1 for most gains, yet they were sufficient to "flip the label" from fail to pass.
  • Performance Gains: In the cascade scenario, the CFE controller reduced the settling time from ~66 seconds to ~20 seconds while keeping overshoot within the 20% limit.
  • Reliability: The "Validity" score was 1.0 across all tests, meaning the algorithm found a successful counterfactual in 100% of the Monte Carlo runs.

Limitations and Future Work

  • Simulation-Based: While the Moore-Greitzer model is respected, the paper lacks validation on physical hardware, where non-linearities and sensor noise might be more unpredictable.
  • Plant Drift: The authors assume the plant is time-invariant during the tuning process. In reality, compressors "drift" over time due to fouling or wear. The authors suggest that future work could integrate "instrumental variable" estimators to better handle this drift.
  • PID Focus: The current work focuses on PID controllers. Extending this counterfactual approach to non-linear or Model Predictive Control (MPC) structures remains an open challenge.

Summary updated

BibTeX
@misc{guerrero2025sample,
  author = {Margarita A. Guerrero and Rodrigo A. González and Cristian R. Rojas},
  title = {{Sample-Efficient Counterfactual Tuning for Compressor Pressure Control}},
  year = {2025},
  eprint = {2512.03747},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2512.03747},
  howpublished = {arXiv},
}
Figure