Abstract
We present DEEPDECS, a new method for the synthesis of correct-by-construction discrete-event controllers for autonomous systems that use deep neural network (DNN) classifiers for the perception step of their decision-making processes. Despite major advances in deep learning in recent years, providing safety guarantees for these systems remains very challenging. Our controller synthesis method addresses this challenge by integrating DNN verification with the synthesis of verified Markov models. The synthesised models correspond to discrete-event controllers guaranteed to satisfy the safety, dependability and performance requirements of the autonomous system, and to be Pareto optimal with respect to a set of optimisation criteria. We use the method in simulation to synthesise controllers for mobile-robot collision avoidance, and for maintaining driver attentiveness in shared-control autonomous driving.
Introduction
Deep neural networks (DNNs) have revolutionized perception in autonomous systems (AS), yet their "black-box" nature creates a significant assurance gap for mission-critical applications. Traditional formal methods are often ill-equipped to handle the probabilistic nature of neural networks, while narrow DNN verification tools fail to account for how misclassifications propagate through complex system logic. DEEPDECS (Deep neural network perception aware Discrete-Event Controller Synthesis) addresses this by bridging the divide between low-level perception uncertainty and high-level control logic.
The DEEPDECS Framework
The DEEPDECS workflow enables the synthesis of "correct-by-construction" controllers through a three-stage process that embeds formal verification into stochastic system models:
- DNN Uncertainty Quantification: Instead of binary success/failure metrics, the framework uses a suite of verification techniques (e.g., confidence thresholds and local robustness certification) to partition test data. This generates a confusion matrix quantifying the probability of every possible classification outcome given specific verification results.
- Model Augmentation: The process begins with a parametric Discrete-Time Markov Chain (pDTMC) representing an "ideal" system with perfect perception. This model is then augmented with the quantified DNN uncertainty, creating a realistic stochastic model where the controller must decide actions based on the estimated trustworthiness of its perception.
- Controller Synthesis: Using probabilistic model checking (PRISM) and multi-objective optimization (EvoChecker), the framework searches for Pareto-optimal controller parameters. These solutions balance competing objectives, such as maximizing safety while minimizing travel time or energy consumption.
Evaluation and Key Results
The framework was validated on two simulated applications: mobile-robot collision mitigation and driver-attentiveness management. In the robot scenario, the DNN predicted collision courses based on obstacle proximity and speed. In the driver-attentiveness study, biometric and vehicle data were used to determine if a driver could safely resume control of a Level 3 autonomous vehicle.
A key finding is that treating verification outputs as online control signals allows the system to adopt safer, more conservative behaviors when confidence is low. Experimental results confirmed that adding verification techniques consistently improves controller quality. As shown in the hypervolume (HV) analysis, controllers utilizing multiple verification methods achieved significantly better multi-objective performance than those with no verification.
Furthermore, simulation data closely matched the pDTMC model's predictions. As the number of waypoints increased, experimental journey times and collision probabilities converged to the values predicted by the formal model, validating the framework's accuracy.
Discussion and Future Work
DEEPDECS provides a mathematically rigorous way to turn "black-box" DNN errors into measurable stochastic transitions. However, the approach faces challenges common to formal methods, such as the "curse of dimensionality" as state spaces grow. Additionally, the safety guarantees rely on the availability of representative test data to build accurate confusion matrices. Future work will explore applying DEEPDECS to regression models and validating the framework on physical hardware to account for real-world sensor noise and asynchronous timing.
Summary updated