CardioVanta / Research

Open Heart Analysis

Research · model cardiovanta-lr13 1.0.0

Research & Evidence

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.

  • 242 development patients
  • 13 clinical inputs
  • Pre-registered studies R4–R7, H2, H2.1
  • No external validation of this model

Research overview

An auditable model, not a black box

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.

Modelling approach

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.

Evaluation philosophy

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

What has been done, in order

Foundations

  1. 2 Oct 2026Adopted

    Training provenance and artifact integrity

    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).

  2. 6 Oct 2026Adopted

    Nested cross-validation correction

    Model selection was moved inside a global nested cross-validation, with a dedicated leakage test (006d7fe).

  3. 19 Oct 2026Not adopted

    Phase 16: feature engineering

    Alternative feature representations were evaluated. The recorded decision was to keep the frozen baseline.

  4. 21 Oct 2026Discovery

    Phase 17: leave-one-cohort-out validation

    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

  1. R0.3Adopted

    Outcome orientation correction

    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.

  2. R1Adopted

    Unified clinical feature contract

    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.

  3. R2Adopted

    Model registry and artifact verification

    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.

  4. R3Adopted

    Runtime and CI hardening

    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

  1. R4Not adopted

    Count encoding of major vessels (ca)

    Treating ca as a count did not improve calibration or stability. The production encoding was kept.

  2. H2Finding

    Calibration of the training recipe

    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.

  3. H2.1Confirmed

    Calibration confirmation

    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).

  4. R5Finding

    Explanation stability

    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.

  5. R6Adopted

    Feature codebook resolution

    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.

  6. R7Finding

    Unverified feature ablation

    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

  1. 1 Nov 2026Adopted

    Research-data quarantine in CI

    Protected research data is kept off CI runners, and any attempt to read it fails the build.

  2. 3 Nov 2026Open blocker

    Production verification

    A read-only check confirmed that the live deployment still serves the inverted, pre-correction output.

  3. 4 Nov 2026Adopted

    Prediction containment

    Predictions are switched off by a committed setting until corrected serving code is verified in production.

Model evaluation

How the training recipe performs on its own data

Mean over 20 repeats of 5-fold nested, duplicate-aware cross-validation on the 242-patient development cohort (H2.1). Ranges are the 2.5–97.5th percentiles across repeats.
MetricOriginal recipe (1.0.0)Pooled calibration (served since 1.1.0)What it tells you · and its limit
ROC-AUC0.9110.904–0.9190.911How 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 loss0.3800.374Penalises probabilities that are confidently wrong. Lower is better. Limit: Depends on how common the disease is in this cohort.
Brier score0.1170.116Mean squared gap between the probability and what happened. Lower is better. Limit: Mixes ranking and calibration; also depends on prevalence.
Calibration slope1.2671.169–1.3741.0031 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 error0.0590.040Average 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

Every recorded evaluation, by model and cohort

Loading evaluations from the research database…

View these evaluations rendered on the server · Open the research workspace · Project support test checkout

Explainability and calibration

Reading a probability and its explanation

Why calibration matters

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.

How the estimate is produced

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.

What the explanations show

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.

Why they are not causes

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

Where the evidence stops

Cohort

A small historical cohort

242 development rows from a public redistribution of 1980s Cleveland records, with duplicate patients.

Validation

No external clinical validation

The 13-feature model has not been validated on an independent population. The locked test rows are no longer independent of earlier work.

Features

Missing values in two inputs

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.

Calibration

Calibration and generalisation

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

Read the sources

Reports open on GitHub in a new tab.

Loading Research