HealthSecure
Remote patient monitoring designed for defence in depth: a business API, a machine-learning risk score, a security gateway, IoT ingestion, plus web, mobile and desktop clients. The subject of my final-year engineering thesis.

The starting constraints
- In a pharmacy or clinic in Conakry, a printout is often the only link between two parties.
- People work with a keyboard and a barcode scanner.
- The power cuts out and the network goes down.
- The workstation is shared while the data is medical.
The decisions, and why
JWTs signed with RS256 rather than HS256
Each service can be given the public key to verify a token without gaining the power to issue one.
MEMOIRE_BILAN.mdAES-256-GCM encryption with a versioned format
The gcm1: prefix lets data still stored in clear be migrated gradually, without stopping everything. The same primitive is used in every service.
MEMOIRE_BILAN.mdAn audit log that a rollback cannot erase
Each entry is chained with SHA-256 and written in a dedicated database session: rolling back a business operation never erases its trace.
MEMOIRE_BILAN.mdIoT messages signed with HMAC, not sha256(message + secret)
The latter form is vulnerable to length extension. The signature is compared in constant time, and the nonce is only stored after validation.
MEMOIRE_BILAN.md

The numbers, counted in the repository
≈ 719
commits across 8 repositories
git log per repository
363
routes in the backend
FastAPI decorators
0.963
macro F1 of the Random Forest, on synthetic data
figures_memoire/III_1_rapport_metriques.md
4
IDS rules: brute force, scanning, rate, replay
security service
What does not work yet
- The model is trained on 12,000 synthetic samples: this is not clinical validation. Recall on the “critical” class is only 0.818.
- The backend creates its schema without versioned migrations.
- The backend has few tests for its 363 routes.
Stack
FastAPI 0.128 · Celeryscikit-learn · PyTorchMQTT (Mosquitto)Next.js 16 sur CloudflareExpo 57 + module natif Kotlin/SwiftTauri 2