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.

Research prototype. Not for clinical use, and not yet usable for triage. The model was trained on 227 patients (75% of the 303 UCI Cleveland records). Every one of those patients underwent coronary angiography. It has not been tested on patients waiting for angiography, or at any other hospital. It does not replace a clinician.

1. Enter a patient

Patients who underwent angiography. Leave a field blank if unknown; the training median is used.

Examples are the first three rows of the public dataset. They may have been used in training, so they are not a test result.

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.

MeasureValueMeaning
AUROC0.931Ranks a random positive above a random negative 93% of the time (95% CI 0.86-0.98, bootstrap)
Sensitivity100% (35/35)Flags every test patient with narrowing (95% CI 90-100%)
Specificity39% (16/41)Also flags 25 of 41 patients without narrowing (95% CI 26-54%)
Flagged for review79% (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

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.