CardioFirst: research prototype, not yet usable for triage
At its default threshold, the logistic regression flags 79% of the 76 test patients (held-out, 35 of 35 positives flagged). Read the limits below before using any number.
A research prototype on angiography patients. It scores one patient with a logistic regression trained on public UCI data.
1. Enter a patient
Patients who underwent angiography. Leave a field blank if unknown; the training median is used.
2. Choose the review threshold
Patients with a score at or above the threshold are placed in the review-first group. The default (0.10) comes from a working assumption that missing a patient with significant disease costs 5 times as much as one false alarm. That ratio has not been reviewed by a clinician.
3. Result
What the held-out test numbers say
Logistic regression (the demo model). Test set: 76 patients, 35 with significant narrowing, never used for training or threshold choice. Threshold 0.10 chosen on training data only. The model chosen by inner cross-validation was a random forest (AUROC 0.936, sensitivity 100%, specificity 49%, 74% flagged). It is not in this demo, which runs only the logistic regression.
| Measure | Value | Meaning |
|---|---|---|
| AUROC | 0.931 | Ranks a random positive above a random negative 93% of the time (95% CI 0.86-0.98, bootstrap) |
| Sensitivity | 100% (35/35) | Flags every test patient with narrowing (95% CI 90-100%) |
| Specificity | 39% (16/41) | Also flags 25 of 41 patients without narrowing (95% CI 26-54%) |
| Flagged for review | 79% (60/76) | At this threshold most referred patients would be flagged. Not a shortlist. |
Trade-off at other cost ratios (same test set, threshold re-picked on training data): 1:1 gives sensitivity 86% and flags 46%; 2:1 gives 89% and flags 50%. Repeated over 20 random splits, the mean AUROC is 0.893 (range 0.844-0.960). A baseline using only age and sex scores AUROC 0.66.
Limits and possible harms
- All patients were referred for coronary angiography. The data were donated to UCI in 1988 from one centre (Cleveland), and the collection period is not stated. About two thirds of the patients are male. Results may not carry to other groups, other centres, or current testing.
- The test set has 76 patients, so the confidence intervals are wide.
- Some inputs are coded categories (chest pain type, rest ECG, slope, thal) and are treated as numbers. A real model would encode them properly.
- A missed patient (false negative) could be reviewed late. A flag (false positive) could cost a patient extra tests. Both harms are real and are not measured here.
- The score is a probability estimate from a small model. Clinicians must decide on each patient.
Data: UCI Machine Learning Repository, Heart Disease (Cleveland), CC BY 4.0, DOI 10.24432/C52P4X (donated 1988). Code and evaluation: train_eval.py in this repository. Demo runs in the browser with no server and no external calls.