Automated Synthesis of Safe Digital Controllers for Sampled-Data Stochastic Nonlinear Systems

Fedor Shmarov, Sadegh Soudjani, Nicola Paoletti, Ezio Bartocci, Shan Lin, Scott A. Smolka, Paolo Zuliani

Abstract

Designing digital controllers for stochastic nonlinear systems requires balancing performance with formal safety guarantees. This paper introduces an automated synthesis framework that integrates fast Monte Carlo optimization with rigorous Satisfiability Modulo Theories (SMT)-based verification. A key innovation is the "instability filter," which uses a linearized stability test to rapidly prune the search space. The framework successfully synthesizes safe controllers for complex benchmarks, including an artificial pancreas model and automotive powertrain systems, providing probabilistic safety bounds for high-stakes applications.

Introduction

Cyber-Physical Systems (CPS), such as medical devices and automotive engines, often operate in environments characterized by nonlinearity and stochastic disturbances. Traditional control theory frequently focuses on asymptotic stability, but critical applications demand strict safety—ensuring the system state never enters a catastrophic region. For instance, an artificial pancreas must maintain blood glucose levels within a narrow safe range despite unpredictable meal disturbances and sensor noise. Automated tools that can provide formal probabilistic safety guarantees for these sampled-data systems are essential but historically difficult to implement due to the computational complexity of nonlinear reachability analysis.

Methodology

The proposed framework employs a two-stage iterative loop to synthesize controllers that are both effective and formally verified.

The Synthesis Loop

The process begins with a Candidate Generation phase using Cross-Entropy (CE) optimization. To enhance efficiency, the authors implemented a Stability Test based on a sampled-data version of Lyapunov’s indirect method. This "instability filter" allows the algorithm to immediately discard candidates whose linearized versions are unstable, preventing the waste of computational resources on clearly failing controllers.

Once a promising candidate is identified, it undergoes Formal Verification using ProbReach, an SMT-based tool. This step computes a statistically valid confidence interval for the safety probability. If the candidate fails to meet the safety threshold or if the verification gap is too large, the framework either increases the solver's precision or increments the controller's degree (complexity) before restarting the loop.

The automated synthesis framework combining optimization, stability filtering, and formal verification.

Key Insights

  • Instability Filtering: By proving that instability in a linearized sampled-data system implies instability in the original nonlinear system, the authors created a powerful heuristic for pruning the search space.
  • Separation of Search and Verification: The framework decouples the "fast and dirty" search for candidates from the "slow and rigorous" verification process, making the synthesis of complex nonlinear controllers tractable.
  • Parsimonious Design: The algorithm starts with the simplest controller (degree 0) and only adds complexity if necessary, adhering to the principle of parsimony in engineering.

Experimental Results

The framework was evaluated on three benchmarks: a 9-state Hovorka model for an artificial pancreas, an automotive powertrain control system, and a quadruple-tank process.

In the artificial pancreas benchmark, the tool synthesized a controller capable of maintaining blood glucose within the safe range [4, 16] mmol/L with over 94% probability under significant disturbances. For the powertrain system, the iterative approach found that while simpler degree-0 and degree-1 controllers failed, a degree-2 controller could meet a strict 96% safety threshold.

Simulation results for the artificial pancreas benchmark showing blood glucose (BG) levels over time for controllers of increasing degree (l=0, 1, 2).

Conclusion and Future Work

This research demonstrates a viable path toward the automated design of formally safe controllers for real-world stochastic nonlinear systems. While the SMT-based verification remains computationally intensive for very high-dimensional systems, the stability filter significantly mitigates this burden. Future work will focus on incorporating finite-precision effects (fixed-point arithmetic) and improving the scalability of the verification engine to handle systems with dozens of states.

Summary updated

BibTeX
@article{shmarov2020automated,
  author = {Fedor Shmarov and Sadegh Soudjani and Nicola Paoletti and Ezio Bartocci and Shan Lin and Scott A. Smolka and Paolo Zuliani},
  title = {{Automated Synthesis of Safe Digital Controllers for Sampled-Data Stochastic Nonlinear Systems}},
  journal = {IEEE Access},
  year = {2020},
  doi = {10.1109/access.2020.3028476},
}
Figure