The Hardware-in-the-Loop physical-to-digital validation layer for biological signals.
To cold-boot the entire environment (Postgres, Redis, Rust Core, FastAPI Bio-Synths, and React Dashboard) from a fresh clone:
cd biotwin-hil
cp .env.example .env
# Edit .env to add your keys if necessary
./start.sh1. Baseline Healthy Simulation
python run_hil.py --config virtual-hw/configs/normal_35m.jsonWatch the TestMatrix turn green as the hardware successfully parses healthy rhythms (~75 BPM).
2. The Hardware Bug (Atrial Fibrillation)
python run_hil.py --config virtual-hw/configs/af_70m.jsonWatch the physical Atrial Fibrillation waveform stream in the Wokwi visualizer. The firmware's fixed-threshold bug will undercount the rhythm, incorrectly reporting < 55 BPM. The TestMatrix will turn RED as the system catches the hardware failure.
3. Automated Threat Report
python generate_report.py --run af_70mStreams the DeepSeek explainability report identifying the root-cause firmware bug.
4. Scaling Up
python run_hil.py --run-all-50-twinsRuns 50 parallel instances to validate massive-scale verification capabilities.
To safely terminate all running background processes and Docker containers:
cd biotwin-hil
./stop.sh- Demo Script: demo_script.md
- Recovery Plans: recovery_plans.md
- Firmware Bug Report: virtual-hw/firmware/demo_firmware_bug.md