Hi ArduPilot Community,
Standard EKF3/UKF implementations are highly vulnerable to non-Gaussian noise, coherent GPS spoofing, and sudden physical changes (frame/prop damage). I want to share a brain-inspired Integrity Layer called RS4 / PC4-Paranoidthat acts as a transparent pre-filter for Kalman estimators.
We’ve validated this in ArduPilot SITL and the results significantly outperform standard innovation tests.
What it solves:
GPS Spoofing: Achieves a 96% reduction in RMS estimation error compared to standard EKF3.
EW Resilience: Maintains stability under noise jamming, meaconing, and drift injection (87–94% error reduction across 6 EW attack types).
Structural Integrity: Detects propeller/frame damage or payload drop in 60–120 ms — which is 10–50x fasterthan standard EKF innovation tests.
How it works (The Engineering behind it):
RS4 is not a replacement for EKF, but a “paranoid” immune system. It uses four sequential stages:
-
Phase-Consensus: Uses the Kuramoto order parameter r(t) to measure cross-sensor coherence . If sensors disagree, trust collapses instantly.
Innovation Gate: A physical feasibility check that rejects coordinated spoofing if the implied rate of change exceeds the drone’s mechanical bandwidth.
Asymmetric Trust: Implements “Paranoid Hysteresis” — trust drops in milliseconds (K↓=0.8) but recovers cautiously (K↑=0.02) .
Dual-Mode Estimation: A Theta/Gamma architecture where a stable “anchor” (Theta) holds the state during high-threat periods.
Computational Efficiency (Low SWaP-C):
The algorithm has an exact complexity of O(N) (2N+12 scalar operations).
Execution time: < 11 µs on an ARM Cortex-M4 (168 MHz) @ 400 Hz.
CPU Impact: < 0.5%.
Memory: No dynamic memory allocation, fully deterministic.
Validation Data:
Next Steps: I have formal proofs for stability and boundedness. I am looking for developers interested in testing this integrity layer on real-world flight logs (ULog/TLog) from missions with sensor anomalies or structural failures.
Download formal spec/preprint:
Osipov, A. (2026). PC4-Paranoid Filter: Adaptive Physics-Constrained Sensor Fusion Dataset (v1.0) [Data set]. Zenodo. https://doi.org/10.5281/zenodo.18131659
Andrey Osipov, MD, PhD





