Downloads · 30 days
0
KanieshE/spark-secure
spark-secure is a machine learning model from KanieshE. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
Edge-AI health monitoring system with offline-first architecture, multi-signal fusion, and adaptive personal baselines.
Downloads · 30 days
0
Access
Public
Updated Apr 8, 2026
Repo size
—
Likes
0
Public
Click a slice to open those files.
.md2.4 KB · 59%
From the Hugging Face model README
Edge-AI health monitoring system with offline-first architecture, multi-signal fusion, and adaptive personal baselines.
# 1. Install dependencies
pip install -r requirements.txt
# 2. Train the model (run once)
python -m ml.train_model
# Terminal A — Start Flask API
python -m backend.app
# Terminal B — Run IoT simulator
python -m simulator.simulate --patient_id 1 --count 60 --anomaly_rate 0.2
# Terminal C — Launch Streamlit dashboard
streamlit run dashboard/app.py
IoT Sensor → Kalman Filter → Edge ML → Multi-Signal Fusion → Tiered Alert
↓
SQLite (offline buffer)
↓
Sync to cloud on reconnect
| Level | Trigger | Action |
|---|---|---|
| 0 | No anomaly | — |
| 1 | Mild (score>0.4) | Local buzzer |
| 2 | Moderate (≥2 signals) | SMS via GSM / 2G |
| 3 | Critical (score>0.85 or 3+ signals) | Push notification |
| Method | Path | Description |
|---|---|---|
| GET | /api/patients | List all patients |
| POST | /api/patient | Register new patient |
| POST | /api/vitals | Ingest sensor reading |
| GET | /api/vitals/<id> | Get vitals history |
| GET | /api/alerts/<id> | Get anomaly alerts only |
| GET | /api/baseline/<id> | Get adaptive baseline |
health_id field on every patient for Ayushman Bharat integration