2345170_en-US

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

2345170_en-US

2345170_en-US

Deterministic Sub-Microsecond Safety Layer for Edge AI on Cortex-M (1.18 µs Latency)

Hi everyone,

I wanted to share a project designed for mission-critical Edge AI on resource-constrained MCUs like the STM32, LPC, and i.MX series.

MicroSafe-RL is a deterministic C++ safety interceptor that sits between an AI agent and the hardware actuators. It prevents unsafe commands from damaging hardware during Reinforcement Learning exploration or due to sensor drift.

Technical Highlights:

Latency: 1.18 microseconds (WCET) on Cortex-M3 at 72MHz.

Memory: Exactly 20 bytes of RAM, zero dynamic allocation (malloc-free).

Logic: O(1) deterministic execution.

Safety: Uses EMA and MAD statistical profiling to detect hardware drift in real-time.

The project methodology is currently under review at IEEE Transactions on Aerospace and Electronic Systems (Manuscript ID: TAES-2026-1001).

I am looking for feedback from the community on further MISRA-C compliance and hardware-specific optimizations.

GitHub: https://github.com/Kretski/MicroSafe-RL
Zenodo DOI: 10.5281/zenodo.19019599

Tags (1)
No ratings
Version history
Last update:
‎04-05-2026 02:24 AM
Updated by: