Towards Functional Safety Compliance of Recurrent Neural Networks

Davide Bacciu, Antonio Carta, Daniele Di Sarli, Claudio Gallicchio, Vincenzo Lomonaco, Salvatore Petroni2021

Abstract

Deploying Autonomous Driving systems requires facing some novel challenges for the Automotive industry. One of the most critical aspects that can severely compromise their deployment is Functional Safety. The ISO 26262 standard provides guidelines to ensure Functional Safety of road vehicles. However, modern autonomous driving relies heavily on Artificial Intelligence—specifically Recurrent Neural Networks (RNNs) for processing temporal data—which act as "black boxes," making traditional deterministic safety verification difficult. This paper proposes a methodology to align RNN deployment with the Safety Of The Intended Functionality (SOTIF) standard (ISO 21448).

Introduction

In the automotive sector, safety is governed by strict standards like ISO 26262, designed for traditional software where logic paths are explicitly defined. The rise of deep learning, particularly RNNs for sensor stream processing and driver monitoring, introduces non-deterministic failure modes that these standards struggle to address. The SOTIF standard (ISO 21448) was introduced to handle "intended" behavior and unknown hazardous scenarios, yet it lacks a concrete technical roadmap for neural networks. This work provides a three-step framework to bridge this gap through formal robustness quantification and redundant safety measures.

Proposed Methodology

The authors outline a three-phase approach to ensure functional safety compliance:

Phase 1: Robustness Evaluation

The first step involves quantifying the model's resilience to input noise. Using the POPQORN algorithm, the authors calculate the maximum perturbation (noise radius) an input can sustain before the RNN's classification changes. This process defines "concentric hyperspheres" around data points to establish local robustness boundaries.

Phase 2: Design of Safety Measures

Based on the robustness profile established in Phase 1, engineers must implement "plausibility checks." This involves a comparison system where the RNN's output is cross-referenced with redundant systems. These redundant systems might utilize simpler, more deterministic algorithms or different sensor modalities (e.g., Radar vs. Lidar) to validate the RNN's decision.

Proposed safety architecture featuring an RNN-based system and redundant plausibility checks.

Phase 3: Safety Validation

Validation shifts from standard Key Performance Indicators (KPIs) like accuracy to Safety Performance Indicators (SPIs). SPIs measure the "arrival rate of adverse events"—the frequency with which the system enters unsafe states. This phase determines the required testing duration (mileage or hours) to ensure the residual risk remains within an acceptable safety budget.

Experimental Evaluation

The methodology was tested using the WESAD (Wearable Stress and Affect Detection) dataset, which contains physiological and motion data. The task was stress recognition, simulating a human state monitoring system in an autonomous vehicle.

Key Results and the Accuracy-Robustness Trade-off

The study compared three RNN architectures with 64, 128, and 256 hidden units. A critical finding emerged: higher accuracy does not equate to higher safety.

Comparison of accuracy and robustness metrics across different RNN architectures.

As shown in the results, while the RNN-256 model achieved the highest accuracy (0.89), it was significantly less robust than the RNN-64 model. The RNN-64 model exhibited a mean robustness (noise radius) of 0.0890, orders of magnitude higher than its larger counterparts. This suggests that for safety-critical automotive applications, a smaller, more stable model may be preferable over a high-performing but fragile "state-of-the-art" architecture.

Conclusion

This research highlights that achieving functional safety for RNNs requires a shift from optimizing for accuracy to optimizing for quantifiable robustness. By integrating formal verification tools like POPQORN with redundant system architectures and SPI-based validation, the automotive industry can move closer to safe AI deployment. Future work will explore alternative architectures like Reservoir Computing to further enhance inherent model stability.

Summary updated

BibTeX
@misc{bacciu2021towards,
  author = {Davide Bacciu and Antonio Carta and Daniele Di Sarli and Claudio Gallicchio and Vincenzo Lomonaco and Salvatore Petroni},
  title = {{Towards Functional Safety Compliance of Recurrent Neural Networks}},
  year = {2021},
  doi = {10.4108/eai.20-11-2021.2314139},
}
Figure