[Paper Review] Real-time Out-of-distribution Detection in Learning-Enabled Cyber-Physical Systems
This paper proposes a real-time out-of-distribution (OOD) detection method for learning-enabled cyber-physical systems using inductive conformal prediction combined with variational autoencoders (VAEs) and deep support vector data description (SVDD). The approach enables efficient, well-calibrated OOD detection with low false positive rates and minimal detection delay, achieving execution times comparable to the original machine learning components in self-driving car simulations.
Cyber-physical systems (CPS) greatly benefit by using machine learning components that can handle the uncertainty and variability of the real-world. Typical components such as deep neural networks, however, introduce new types of hazards that may impact system safety. The system behavior depends on data that are available only during runtime and may be different than the data used for training. Out-of-distribution data may lead to a large error and compromise safety. The paper considers the problem of efficiently detecting out-of-distribution data in CPS control systems. Detection must be robust and limit the number of false alarms while being computational efficient for real-time monitoring. The proposed approach leverages inductive conformal prediction and anomaly detection for developing a method that has a well-calibrated false alarm rate. We use variational autoencoders and deep support vector data description to learn models that can be used efficiently compute the nonconformity of new inputs relative to the training set and enable real-time detection of out-of-distribution high-dimensional inputs. We demonstrate the method using an advanced emergency braking system and a self-driving end-to-end controller implemented in an open source simulator for self-driving cars. The simulation results show very small number of false positives and detection delay while the execution time is comparable to the execution time of the original machine learning components.
Motivation & Objective
- Address the safety risk posed by out-of-distribution (OOD) inputs in learning-enabled cyber-physical systems (CPS), where models may fail unpredictably due to distribution shift.
- Overcome limitations of existing OOD detection methods that are not robust to high-dimensional inputs, lack real-time efficiency, or produce excessive false alarms.
- Develop a computationally efficient, real-time OOD detection framework that maintains a well-calibrated false alarm rate for deployment in safety-critical CPS.
- Enable runtime monitoring of machine learning components in autonomous vehicles by quantifying input distribution divergence from training data.
- Integrate the detection method with control systems such as advanced emergency braking and end-to-end self-driving controllers for practical safety assurance.
Proposed method
- Leverage inductive conformal prediction (ICP) to compute p-values indicating the degree of conformity of new inputs relative to the training distribution.
- Use variational autoencoders (VAEs) and deep support vector data description (SVDD) to learn nonconformity scores that measure how anomalous a new input is compared to training data.
- Split the training data into a proper training set and a calibration set to enable online, real-time inference using ICP with well-calibrated confidence levels.
- Compute nonconformity scores in real-time using VAE and SVDD models, which are trained to reconstruct in-distribution data accurately and detect high-dimensional OOD inputs.
- Apply a predefined anomaly threshold ε to classify inputs as OOD if their p-value falls below ε, ensuring a well-calibrated false alarm rate.
- Integrate the detection module as a lightweight runtime monitor that operates in parallel with the original learning-enabled component (LEC), with minimal performance overhead.
Experimental results
Research questions
- RQ1Can a real-time OOD detection method be designed that maintains a low and well-calibrated false alarm rate in high-dimensional, dynamic CPS inputs?
- RQ2How efficiently can nonconformity scores be computed for real-time OOD detection using VAEs and SVDD in safety-critical control systems?
- RQ3To what extent does the proposed method reduce false positives compared to existing anomaly detection techniques in autonomous vehicle control systems?
- RQ4What is the computational overhead of the detection module relative to the original machine learning component in real-world CPS workloads?
- RQ5Can the method reliably detect OOD inputs that may lead to large prediction errors in end-to-end self-driving controllers and emergency braking systems?
Key findings
- The proposed method achieves a very low number of false positives in both the advanced emergency braking system (AEBS) and the self-driving end-to-end controller (SDEC) simulations.
- Detection delay is minimal, with execution times comparable to the original machine learning components, enabling real-time deployment.
- The use of VAEs and SVDD enables accurate and efficient computation of nonconformity scores for high-dimensional inputs such as sensor data streams.
- The inductive conformal prediction framework ensures a well-calibrated false alarm rate, as the actual anomaly detection rate closely matches the predefined threshold ε.
- The method successfully identifies inputs that deviate significantly from the training distribution, indicating potential for large prediction errors, even when the original model does not flag them.
- The approach is robust across diverse input distributions and maintains performance under varying environmental conditions in the simulation environment.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.