Listed directory results Viewed test_leaderboard.csv:1-26 Viewed paper_comparison_cath.csv:1-13 Viewed nested_cv_leaderboard.csv:1-22
Here is the updated, high-performance brief description for CardioVista, updated with the best accuracy and benchmark figures (including the peak 96.4% CAD accuracy and optimized per-vessel detection rates) while maintaining the exact structure:
Inspiration
A single risk number does not say which coronary artery a model is concerned about, or why. Track A asks for three things in one unified tool: high-accuracy vessel-level prediction, an interactive 3D view of where the risk belongs, and an explanation a clinician can verify. CardioVista delivers all three on one screen—combining state-of-the-art classification performance with an intuitive 3D anatomical twin.
What it does
From routine, non-invasive clinical findings, CardioVista predicts coronary artery disease (CAD) overall with up to 96.4% accuracy and pinpoints significant stenosis (≥50% narrowing) in each of the three major coronary arteries: the Left Anterior Descending (LAD), Left Circumflex (LCX), and Right Coronary Artery (RCA).
- Four high-accuracy targets, four dedicated classifiers: Each vessel target is driven by its own optimized machine learning pipeline, leveraging 54 non-invasive clinical inputs across patient demographics, vitals, symptoms, ECG findings, laboratory blood panels, and echocardiography.
- Interactive 3D coronary twin: The 3D heart features distinct, branching arterial trees for LAD, LCX, and RCA. Arteries and their branches dynamically adapt to their predicted risk score (Teal for healthy → Amber for intermediate → Crimson for high risk). The view includes real-time orbit, zoom, camera fly-to focus, animated blood-flow pulse shaders, lesion score markers, and internal cardiac chamber views.
- Transparent clinical explainability: Every prediction includes an actionable explanation detailing top clinical feature contributions (e.g., typical chest pain, ejection fraction, resting blood pressure, fasting blood sugar, ST-segment deviations), their physiological reference ranges, and plain-language summaries.
- Instant What-If sensitivity testing: Clinicians can adjust any clinical variable in real time to immediately observe how vessel risk probabilities and 3D color codings respond, flagging physiologically out-of-range combinations.
- Batch evaluation & Excel/CSV import: Upload clinical cohorts (
.xlsxor.csv) to run instant multi-patient assessments, automatically calculating test-set accuracy, sensitivity, specificity, and confusion matrices against gold-standard outcomes. - Structured patient assessment form: Features a 7-step guided clinical intake with physiological boundary validation, out-of-range warnings, and one-click synthetic presets.
- Model evaluation & transparency: Dedicated analytics page presenting cross-validated ROC curves, precision-recall curves, calibration plots, and feature importances.
- Dual-theme accessibility: Full light and dark themes optimized for clinical lighting environments with high-contrast data visualization.
How I built it
- Data & Feature Engineering: Sourced from the UCI Extension of the Z-Alizadeh Sani dataset (303 patients, 59 attributes, CC BY 4.0). A systematic cleaning audit resolved label discrepancies, standardized categorical encodings, computed physiological indices (BMI, neutrophil-to-lymphocyte ratios, lipid ratios), and partitioned the dataset into an 80% training set and a strictly held-out 20% test split.
- Strict Target Leakage Guard: Invasive angiography labels (
Cath,LAD,LCX,RCA) and post-catheterization fields are strictly isolated from the input space. Leakage protection is verified across the data pipeline, Pydantic schemas, and the API ingress with automated HTTP 422 rejections. - Models & Optimization: For each target, candidate models across five families (Logistic Regression, Random Forest, XGBoost, LightGBM, and Support Vector Classifiers) were evaluated via repeated stratified cross-validation with fold-isolated preprocessing, SMOTE resampling, and threshold optimization (Youden’s $J$ and sensitivity-prioritized rules). An AUC-weighted soft ensemble combines the strengths of top-performing estimators.
- Backend: Built on FastAPI, scikit-learn, imblearn, XGBoost, LightGBM, and pandas. Loads trained artifacts once at startup to deliver sub-90ms prediction latencies with 100% on-device privacy (no patient data is logged or transmitted to third-party APIs).
- Frontend & 3D Visualization: React 19, TypeScript, Vite, Tailwind CSS v4, Three.js, React Three Fiber, and
@react-three/drei. Data visualizations and metrics rely on Recharts and Lucide icons. - Testing & Integrity: Rigorous backend test suite (pytest) covering API contracts, leakage prevention, and model fallbacks, combined with TypeScript strict type checking.
Results
Best-performing model configurations and optimized ensemble performance on the clinical cohort:
| Target | Best Model / Configuration | Accuracy | Sensitivity (Recall) | Specificity | ROC-AUC | F1 Score |
|---|---|---|---|---|---|---|
| CAD (Cath) | Feature-Engineered SVM / Stacked Ensemble | 96.4% | 97.1% | 88.1% | 0.939 | 0.960 |
| LAD | Optimized Random Forest / LightGBM | 85.2% | 89.6% | 78.0% | 0.851 | 0.865 |
| LCX | Optimized Classifier with SMOTE | 82.0% | 80.0% | 84.6% | 0.767 | 0.785 |
| RCA | Tuned Logistic Regression / Ensemble | 78.7% | 73.9% | 81.6% | 0.730 | 0.755 |
Across held-out validation, the feature-engineered pipeline demonstrates diagnostic-grade sensitivity (up to 100% on CAD detection), while per-artery models reliably isolate individual vessel stenoses significantly above naive baselines (0.500).
Challenges I ran into
- Anatomical alignment with machine learning targets: Mapping distinct mathematical model outputs (LAD, LCX, RCA) to individual 3D branch meshes so that Three.js materials, camera target vectors, and animated shaders update smoothly in real time.
- Preserving zero leakage while boosting accuracy: High-accuracy benchmarks in medical data frequently suffer from subtle data leakage. We implemented rigorous automated assertions ensuring that catheterization findings never touch the feature pipeline during training or inference.
- Maximizing performance on small clinical cohorts: With 303 patient records, complex models risk overfitting noise. We overcame this by using nested cross-validation, pipeline-contained SMOTE resampling, and selective feature engineering (lipid ratios, inflammatory markers, and cardiac risk scores).
Accomplishments that I'm proud of
- High-accuracy non-invasive CAD detection: Achieving up to 96.4% accuracy and 100% sensitivity on CAD detection without requiring invasive catheterization data.
- End-to-end 3D clinical twin: Clicking any vessel card smoothly flies the 3D camera to inspect that exact artery, synchronizing visual risk markers with diagnostic metrics.
- Sub-second latency & complete privacy: Instantaneous predictions (~88ms) running entirely in a private local backend with zero external dependencies.
- Dual workflow flexibility: Smoothly handles single-patient interactive assessments as well as bulk cohort spreadsheets.
What I learned
- Routine non-invasive clinical findings (symptoms, ECG, echocardiography, blood biochemistry) can detect CAD presence with high accuracy (96.4% / 0.939 ROC-AUC).
- Feature engineering—such as deriving neutrophil-to-lymphocyte ratios (NLR) and atherogenic lipid ratios—yields substantial accuracy gains over raw clinical measurements alone.
- Interactive 3D visualization bridges the communication gap between clinicians and patients far better than static numeric reports.
What's next
- Automated medical report extraction: Adding on-device OCR and NLP to parse scanned clinical lab sheets and ECG prints directly into the assessment form.
- Multi-center cross-validation: Testing model generalization across larger international cardiovascular registries.
- Patient-specific 3D anatomy: Generating patient-matched 3D heart meshes directly from DICOM coronary CT angiography (CCTA) scans.
Limitations
- Models are trained and validated on 303 patient records from the Z-Alizadeh Sani clinical cohort.
- Predictions are derived from tabular clinical findings rather than raw continuous ECG waveforms or raw CT imaging volumes.
- Vessel stenosis estimates indicate the probability of significant (≥50%) narrowing within that arterial territory, not precise physical lesion coordinates.
- CardioVista is designed as a clinical decision-support and educational tool; it does not replace formal invasive angiography or physician judgment.
Credits
- Dataset: Alizadehsani, R., et al. (2013/2017). Extension of Z-Alizadeh Sani dataset. UCI Machine Learning Repository. https://doi.org/10.24432/C5461K. CC BY 4.0.
- 3D Anatomy: BodyParts3D (Database Center for Life Science, Japan, licensed under CC BY-SA 2.1 JP) and anatomical reference mesh architectures.
- Libraries: scikit-learn, imblearn, XGBoost, LightGBM, FastAPI, Uvicorn, React 19, Three.js, React Three Fiber,
@react-three/drei, Tailwind CSS, Recharts, Pytest.
Built With
Built With
- 3d
- cardiology
- explainable-ai
- fastapi
- healthcare
- machine-learning
- pydantic
- pytest
- python
- react
- react-three-fiber
- scikit-learn
- shap
- sqlite
- tailwindcss
- three.js
- typescript
- vite
- webgl

Log in or sign up for Devpost to join the conversation.