Introduction
Learning Enabled Components (LECs), particularly deep neural networks, have become essential for perception and control in autonomous systems. However, their "black-box" nature makes them difficult to formally verify, posing significant safety risks in Cyber-Physical Systems (CPS). To mitigate this, researchers often employ the Simplex Architecture, which uses a Decision Manager to switch from an unverified Advanced Controller (AC) to a trusted Baseline Controller (BC) when the system approaches an unsafe state.
While effective, traditional Simplex architectures suffer from "jerky" transitions caused by binary switching. Furthermore, running these complex safety checks on resource-constrained hardware, such as a Raspberry Pi, can lead to thermal throttling and performance degradation, introducing new safety vulnerabilities.
The Dynamic-Weighted Simplex Strategy
This paper proposes a Dynamic-Weighted Simplex Strategy to address these limitations. Instead of a binary switch, the system computes a weighted ensemble of the two controllers, allowing for a smooth "staircase" transition.
The core of this approach involves three integrated components:
- Weighted Control: The system blends the outputs of the LEC ($W_L$) and the baseline ($W_C$). This smoothing prevents sudden steering lurches or erratic behavior during handoffs.
- Reinforcement Learning (Q-Learning): An RL agent is trained to find optimal weights. By maximizing a reward function based on speed and track centering, the agent learns to trust the LEC on straightaways while relying more on the OpenCV-based baseline during complex curves.
- Resource-Aware Middleware: To maintain hardware health, the system monitors CPU temperature. If the on-board processor hits a thermal limit (70°C), non-critical tasks are offloaded to a nearby "fog" node via WiFi, preventing CPU throttling that could compromise real-time control.
Experimental Evaluation
The strategy was tested on a resource-constrained RC car equipped with a Raspberry Pi 3, LIDAR, and a webcam. The LEC (a CNN) was trained on 6,000 images from two indoor tracks. The system's generalization was then evaluated on an unseen third track featuring unique geometric challenges.
Key Results
- Safety Improvement: The dynamic-weighted strategy achieved a 60% reduction in safety violations (out-of-track occurrences) compared to using the LEC alone.
- Operational Performance: The system maintained a high optimized speed of 0.4 m/s. While pure baseline controllers were safer, they were significantly slower; the weighted approach successfully balanced speed and safety.
- Thermal Resilience: The resource manager effectively prevented hardware-induced failures. Offloading tasks during thermal stress dropped temperatures below critical levels, though it introduced a manageable latency increase (from ~80ms to ~140ms).
Conclusion and Future Work
The Dynamic-Weighted Simplex Strategy demonstrates that safety in autonomous systems does not require an all-or-nothing approach. By blending aggressive learning-based control with defensive baseline algorithms, robots can achieve high performance without sacrificing stability.
Future research will focus on online learning to adapt weights in real-time for dynamic environments and improving resilience to network latency during fog offloading. Additionally, moving from discretized to continuous state-action spaces in the RL agent could further refine control smoothness.
Summary updated