CardioLens AI
A cardiovascular-risk platform where every prediction arrives with its reasons: the factors that pushed it up or down, a calibrated uncertainty range, and the smallest changes that would lower it.
- ROC-AUC on 14,000 held-out patients
- 0.798
- After retraining, on a later survey it never saw
- 0.831
- Calibration error on that survey
- 1.4%
The problem
A risk score is hard to act on without its reasons, and many models are never checked on patients outside the data they learned from.
My role
Everything: data and modelling, evaluation, the API, the front end, testing and deployment.
How it works
- Health measurements
- Input validation
- Gradient-boosted model
- Explanation and range
- Web app
One API serves two models: the original, and one retrained on US survey data with medication as an input.
What made it interesting
The first model looked strong on its own test set, then lost to age alone on outside patients. The cause was blood pressure: it carried far less signal once many patients were on medication. Retraining on US survey data fixed that, and a fairness check showed where it still misses: recall is 57.4% under 45, against 85.2% at 60 and over.
Also built in
- Privacy-safe monitoring with drift detection, storing counts and never patient inputs
- 42 automated tests, a Docker image and CI on every push
- Validation that rejects impossible readings before they reach the model
Built with
- Python
- XGBoost
- SHAP
- FastAPI
- React
- TypeScript
- Docker
- GitHub Actions