Objective
Estimate the probability of significant obstructive coronary artery disease from 13 structured measurements, as an auditable reference for calibrated and interpretable cardiovascular machine learning.
CardioVanta / Research
Open Heart AnalysisResearch · model cardiovanta-lr13 1.0.0
What CardioVanta has investigated, measured and established about its cardiovascular machine-learning model, and where the evidence stops. Every figure on this page links back to a report in the repository.
Research overview
Estimate the probability of significant obstructive coronary artery disease from 13 structured measurements, as an auditable reference for calibrated and interpretable cardiovascular machine learning.
L2-regularised logistic regression (C = 0.1, class-balanced) with scaled continuous inputs and one-hot categorical inputs, sigmoid-calibrated as five averaged members. Fitted on 242 development rows of the Kaggle redistribution of the UCI Cleveland data.
Designs are written and hashed before any code runs, failures are recorded as carefully as successes, and splits keep duplicate patients together. The 61 locked rows are never read by these studies.
Research milestones
Foundations
Model metadata records the data hashes, random seed and Git commit used for training, and a SHA-256 manifest of the model files is checked in CI (5073e22, a1cf0a3).
Model selection was moved inside a global nested cross-validation, with a dedicated leakage test (006d7fe).
Alternative feature representations were evaluated. The recorded decision was to keep the frozen baseline.
Work with the Hungarian and Long Beach cohorts and the UCI codebook revealed that the training target was inverted and that chest-pain codes had been recoded. Both were corrected in the next era.
Foundation rebuild · 31 Oct 2026
The model's probability column had meant no disease: a textbook high-risk profile scored 1.4%. Disease orientation is now declared per model and mapped explicitly, and chest-pain labels were corrected.
One JSON contract (v2.1.0) defines the 13 inputs, codes, units, ranges and per-code evidence. Python and TypeScript definitions are generated from it, and CI rejects stale generated code.
The cardiovanta_ml package loads an explicitly versioned model and verifies every file's SHA-256 before deserialising it. Any mismatch stops the service from starting.
Python 3.12, a pinned numerical stack, a clean-install check of the model package and a restructured CI.
Pre-registered studies · 31 Oct – 1 Nov 2026
Treating ca as a count did not improve calibration or stability. The production encoding was kept.
Found that the production recipe is under-confident (calibration slope about 1.29). Pooled out-of-fold calibration brought it to about 1.02 in 10 of 10 repeats; class weighting had no effect.
On 20 new partitions, pooled out-of-fold calibration moved the slope from 1.267 to 1.003 with no loss of discrimination; all four pre-registered criteria passed. Adopted as model 1.1.0 (served as its NumPy-only export, 1.1.1).
Across 3,562 single-feature changes to 100 synthetic profiles, the explanation always moved in the same direction as the probability. Instability concentrates on inputs whose codes have no established meaning.
Resolved in contract 2.1.0. All 242 development rows were matched one-to-one to the UCI Cleveland records: restecg, slope and thal use a different code order from the UCI codebook, and ca = 4 and thal = 0 are missing values. The form now shows the verified meanings.
The recipe depends materially on ca and thal and barely on slope. Removing all three lowered ROC-AUC from 0.913 to 0.877.
Operations · Nov 2026
Protected research data is kept off CI runners, and any attempt to read it fails the build.
A read-only check confirmed that the live deployment still serves the inverted, pre-correction output.
Predictions are switched off by a committed setting until corrected serving code is verified in production.
Model evaluation
| Metric | Original recipe (1.0.0) | Pooled calibration (served since 1.1.0) | What it tells you · and its limit |
|---|---|---|---|
| ROC-AUC | 0.9110.904–0.919 | 0.911 | How well the model ranks a patient with disease above one without (1 is perfect, 0.5 is chance). Limit: Ranking only: a model can rank well and still give wrong-sized probabilities. |
| Log loss | 0.380 | 0.374 | Penalises probabilities that are confidently wrong. Lower is better. Limit: Depends on how common the disease is in this cohort. |
| Brier score | 0.117 | 0.116 | Mean squared gap between the probability and what happened. Lower is better. Limit: Mixes ranking and calibration; also depends on prevalence. |
| Calibration slope | 1.2671.169–1.374 | 1.003 | 1 is ideal. Above 1 means the probabilities are too timid, pulled towards 50%. Limit: The original recipe was under-confident; the confirmed fix is served since model 1.1.0. |
| Expected calibration error | 0.059 | 0.040 | Average gap between predicted and observed frequency across 10 probability bins. Limit: Sensitive to binning with only 242 patients. |
These are development-cohort results, not external validation. They describe how the training recipe behaves on the same 242 historical patients it learns from, re-split many times. They are not evidence of clinical accuracy for any other population.
Research database
Loading evaluations from the research database…
View these evaluations rendered on the server · Open the research workspace · Project support test checkout
Explainability and calibration
A calibrated 30% should mean that about 30 in 100 similar patients had the disease. Without calibration a number can rank patients well and still overstate or understate their risk.
The 13 inputs are validated against the contract, transformed, and scored by five calibrated logistic models whose probabilities are averaged. The disease-present label is declared in the model's metadata, not assumed.
Two additive breakdowns (linear contributions and a SHAP-equivalent view) of a separate, uncalibrated explanation model. They show direction and relative weight; they do not exactly decompose the calibrated probability.
They describe statistical association in historical records. A feature pushing the estimate up is not evidence that it causes disease, and the code of every input is now matched to its clinical meaning (contract 2.1.0).
Research limitations
242 development rows from a public redistribution of 1980s Cleveland records, with duplicate patients.
The 13-feature model has not been validated on an independent population. The locked test rows are no longer independent of earlier work.
In the training data ca = 4 and thal = 0 stand for a missing measurement (R6, contract 2.1.0). The model learned from only six such rows, so the form does not offer them.
The deployed recipe is under-confident (slope about 1.27). The confirmed fix is not yet in a released model, and calibration on other populations is unknown.
Not a diagnostic tool. CardioVanta must not be used to diagnose, treat or triage anyone. Predictions are currently paused in deployment while the prediction service is verified.
Research documentation
Reports open on GitHub in a new tab.