Research
Gated Uncertainty-Aware Runtime Dual Invariants for Neural Signal-Controlled Robotics
Overview Research area: Safe neural signal-controlled robotics — runtime safety verification for brain-computer interface (BCI) driven assistive robots, combining EEG decoding, uncertainty calibration
- arXiv
- 2511.20570
- Published
- 2025-11-25
- Authors
- Tasha Kim, Oiwi Parker Jones
AI summary
Overview
Research area: Safe neural signal-controlled robotics — runtime safety verification for brain-computer interface (BCI) driven assistive robots, combining EEG decoding, uncertainty calibration, and neuro-symbolic planning.
Technical level: Advanced (requires familiarity with EEG motor-imagery decoding, probabilistic calibration metrics, and symbolic planning).
Scope in one sentence: The paper introduces GUARDIAN, a real-time dual-layer "safety gate" that sits between an EEG decoder and a robot, halting execution when either the brain signal looks physiologically untrustworthy or the resulting plan violates logical safety conditions.
What This Paper Is About
Neural signal-controlled robots could restore independence to people with limited mobility, but decoding user intent from non-invasive EEG is noisy, non-stationary, and frequently wrong, and decoding errors translate directly into physical robot actions that can harm the user. The authors address this by wrapping existing decoders in a runtime monitor rather than trying to make the decoders more accurate, and they specifically target confidence miscalibration, where a decoder reports high certainty while being badly wrong. The goal is a decoder-agnostic, auditable safety layer that converts raw brain evidence into verifiable robot actions.
Key Contributions
- A safety-centric framework (GUARDIAN) that achieves high safety rates (94–97%) under severe signal degradation, even when the wrapped decoders test at only 27–46% accuracy.
- A verifiable neuro-symbolic pipeline that formally links EEG distributions to symbolic goals, using physiological invariants and logical (PDDL-based) invariants.
- A lightweight, modular architecture with sub-millisecond overhead (<1 ms) that wraps any decoder and runs at 100 Hz, with a reported throughput margin of 13.7x over the required 100 decisions/sec.
- Auditable, interpretable traces that chain raw brain signal → intent → plan → action, presented alongside 21 ablation results demonstrating a graduated response to signal degradation.
Main Findings
- Accuracy collapse from validation to test: Decoders performed at 51.2–58.7% validation accuracy but only 27.0–46.0% at test time, against a 25% chance level for the 4-class task. Mean validation accuracy was 55.6% and mean test accuracy 32.8%, a mean gap of +27.5 percentage points.
- Severe confidence miscalibration: Expected Calibration Error ranged from 0.223 (EEGNet) to 0.410 (Riemannian), with Maximum Calibration Error up to 0.906 for the Riemannian decoder. Mean ECE was 0.309 and mean MCE 0.654; overconfidence rates ranged from 55.6% to 72.0% (mean 66.6%).
- High safety despite poor decoding: Dual-invariant monitoring produced safety rates of 94.2% (EEGNet), 95.8% (Riemannian), 96.3% (Light CNN), and 97.0% (RealIntent), for a mean of 95.8%.
- Interventions scale with decoder weakness: Intervention rates were 52.3% (EEGNet), 68.1% (Riemannian), 70.4% (Light CNN), and 71.2% (RealIntent) — lower-accuracy decoders triggered more halts. The RealIntent decoder reached 97% safety despite only 27.0% test accuracy.
- Single-threshold gating is brittle: Safety-optimal confidence thresholds landed between 0.816 and 0.900 and required 67.8–86.6% intervention rates. Sweeping the threshold from 0.1 to 0.9 raised safety rates only to 56.7% (EEGNet), 62.4% (Riemannian), 70.0% (Light CNN), and 70.3% (RealIntent), while intervention rates climbed to 82.3–86.6%.
- Noise robustness: Under simulated noise (SNR degradation from 20 dB to −5 dB), correct interventions improved by approximately 1.7x versus baseline, reaching 98.1%, with t = 3.283, p = 0.004, and Cohen's d = 1.473 (large effect), while maintaining >93% safety rates.
- Ablation results: Removing the entropy check dropped safety to 84.8–87.3%; removing calibration adjustment gave 82.3–88.7%; removing the artifact check gave 91.8–93.2%; removing the oscillation check gave 93.1–94.9%; removing the logical check gave 91.2–92.5%. A minimal "only confidence" baseline fell to 71.4–78.2%, a reduction of 16.0–24.4 points versus the full system.
- What drives interventions: Low confidence (entropy above τ_H) was the leading cause, accounting for 38.2% (EEGNet), 45.6% (Riemannian), 48.3% (Light CNN), and 49.1% (RealIntent) of interventions. High artifacts accounted for 8.7–11.3% and high oscillation for 3.4–6.2%; logical violations were the least common cause.
- Failure modes when monitoring failed: Monitoring failed in 5.8% of cases. Of these, high-confidence misclassification was most common (42%), undetected rapid oscillations 28%, EMG misread as motor imagery 18%, and bypassed logical checks 12%.
- Insufficiency of post-hoc calibration: Temperature scaling reduced ECE by about 30% for every decoder, but calibrated ECE remained high (0.156 for EEGNet, 0.287 for Riemannian, 0.221 for Light CNN, 0.201 for RealIntent), which the authors use to justify the dual-invariant approach.
- Latency is negligible: Per-decoder latency ranged from 0.73 ms (RealIntent) to 0.91 ms (Riemannian), with a mean of 0.81 ms; the monitor runs at 100 Hz.
- Performance degrades over a session while safety improves: Across 50 minutes, test accuracy fell from 48.2% to 42.9% and ECE rose from 0.201 to 0.251, but safety rate rose from 93.8% to 95.2% because intervention rate increased from 49.2% to 57.9%.
- Subject variability: For EEGNet per-subject test accuracy ranged from 41.4% (S09) to 51.2% (S01), with per-subject safety rates from 92.2% to 96.1% (mean 94.2%, SD 1.4%), and per-subject ECE from 0.198 to 0.251.
Methodology in Plain English
The authors take an existing 4-class motor-imagery EEG pipeline and add a safety monitor in front of the robot, rather than modifying the decoder itself.
- Data and task: They use the BNCI2014 dataset — 9 subjects, 22 EEG channels at 250 Hz, band-pass filtered to [8, 30] Hz, two sessions per subject, 5,184 trials total. The four motor-imagery classes are mapped to robot manipulation primitives: left hand → grasp, right hand → release, feet → move_to, tongue → rotate. Train, validation, and test splits follow chronological session boundaries to mimic real deployment.
- Four decoders tested: EEGNet, a Riemannian covariance model, a lightweight CNN, and an interpretable feature model ("RealIntent"), spanning roughly 12k–45k parameters and trained identically with Adam, a 1×10⁻³ learning rate, batch size 32, up to 100 epochs, and early stopping.
- Calibration-aware intent: The decoder's probability vector is mixed with a uniform distribution, p̃_t = α_m·p_t + (1−α_m)·u, with α_m between 0.5 and 0.8 depending on the decoder (0.8 for EEGNet, 0.5 for Riemannian, 0.6 for the others). This deliberately softens overconfident predictions before any decision is made.
- Physiological invariants: Three checks are applied to the signal and the softened intent — normalized Shannon entropy below τ_H = 0.75, a z-scored band-limited RMS artifact score in [20, 45] Hz below τ_A = 2.5, and an oscillation index measuring intent flips over the last K = 10 frames below τ_Ω = 0.3. A violation triggers a HALT, and the robot holds an IDLE safe state.
- Logical invariants: If the physiological checks pass, the chosen action is grounded to a symbolic goal and a plan is synthesized with PDDL 1.2 and the FastDownward planner. The plan is then checked for three conditions — objects reachable, safe configurations, and valid transitions. A violation again triggers HALT.
- Evaluation: Safety rate is defined as the fraction of trials where the monitor made the right call (intervening when the decoder was wrong, staying silent when it was right), which is deliberately separated from decoder accuracy. The authors also ablate each monitor component, sweep thresholds, inject synthetic noise, and measure latency and throughput.
Why This Matters
Impact on research: The paper reframes trustworthiness in BCIs as a runtime verification problem rather than a pure accuracy problem. Its central argument — that a 27% accurate decoder can still yield a 97% safe system if the monitor knows when to refuse — challenges the assumption that better decoding alone is the path to safe neural interfaces. It also shows that post-hoc calibration (temperature scaling) is not sufficient, since even after calibration ECE stayed at 0.156–0.287.
Real-world applications:
- Assistive manipulation for users with severe motor impairment, where unintended grasp, release, move, or rotate actions carry physical risk.
- Neuroprosthetic and motor-rehabilitation robotics, where the robot must fail safe when the user is fatigued or the signal degrades.
- Shared autonomy and human-robot co-adaptation, where the system must reason under uncertain or partial intent.
- Auditable safety assurance for regulated healthcare robotics, where structured logs of intent-to-action chains support certification.
Industry relevance: The measured overhead — 0.73–0.91 ms latency against a 1,370 decisions/sec theoretical maximum at 100 Hz — means the safety layer can be added to existing BCI-controlled systems without changing the decoder or retraining. The authors describe GUARDIAN as decoder-agnostic and compatible with symbolic planning toolchains such as PDDL, positioning it as a bolt-on safety component for medical device and assistive robotics developers.
Future Directions
- Studying user adaptation, cognitive load, and trust development over time, since high intervention rates (52.3–71.2%) may harm task fluency, user satisfaction, or perceived autonomy.
- Tailoring thresholds to individual fatigue profiles or cognitive load, and testing threshold adaptation during decoder and subject recalibration rather than with fixed pre-trained decoders.
- Integrating richer physiological invariants from newer sensing technologies to better distinguish artifacts (for example, EMG misread as motor imagery accounted for 18% of failure cases) from valid signal.
- Investigating the undetected-oscillation failure mode (28% of failures) and high-confidence misclassification (42%), which remains the dominant residual risk.
Target Audience
Researchers and engineers working on brain-computer interfaces, safe robotics, runtime verification, and neuro-symbolic AI, particularly those building assistive or rehabilitation systems where decoding errors have physical consequences. It is most useful to readers already comfortable with EEG decoding and machine learning calibration metrics; the runtime-monitoring architecture itself is described in enough algorithmic detail (including full pseudocode, PDDL domain, and per-component ablations) to be implementable by practitioners.
Authors’ abstract
Safety-critical assistive systems that directly decode user intent from neural signals require rigorous guarantees of reliability and trust. We present GUARDIAN (Gated Uncertainty-Aware Runtime Dual Invariants), a framework for real-time neuro-symbolic verification for neural signal-controlled robotics. GUARDIAN enforces both logical safety and physiological trust by coupling confidence-calibrated brain signal decoding with symbolic goal grounding and dual-layer runtime monitoring. On the BNCI2014 motor imagery electroencephalogram (EEG) dataset with 9 subjects and 5,184 trials, the system performs at a high safety rate of 94-97% even with lightweight decoder architectures with low test accuracies (27-46%) and high ECE confidence miscalibration (0.22-0.41). We demonstrate 1.7x correct interventions in simulated noise testing versus at baseline. The monitor operates at 100Hz and sub-millisecond decision latency, making it practically viable for closed-loop neural signal-based systems. Across 21 ablation results, GUARDIAN exhibits a graduated response to signal degradation, and produces auditable traces from intent, plan to action, helping to link neural evidence to verifiable robot action.