JupiteX Get the app
Science & Technology26 Nov 2026 · about 7 min

Typical Angina, Reversed: A Long-Standing Documentation Error in the UCI Heart Disease Data

The brief

Angina is chest discomfort associated with the heart not getting enough blood; this general medical definition is not supplied in the article. The paper focuses on how the UCI Heart Disease data label chest-pain categories. Its central warning is that a category name can misrepresent the patients actually grouped under its code. In the usual clinical definition, typical angina meets three criteria: discomfort behind the breastbone, provocation by exertion or emotional stress, and relief with rest or nitroglycerin. The article refers to these as the three classical angina features. It reports that, in Budapest, Switzerland, and Long Beach files, 93–96% of patients coded 4 had all three features. That makes the label “asymptomatic” especially misleading: code 4 actually marks typical angina, according to the study. The authors say conventional models are essentially unaffected, but interpretations of model effects that attach documented names to categories can be reversed. Correctly identifying what a code represents matters when researchers explain results to clinicians or readers.

01

What is angina, and what features make chest pain “typical” angina?

Angina is chest discomfort associated with the heart not getting enough blood; this general medical definition is not supplied in the article. The paper focuses on how the UCI Heart Disease data label chest-pain categories. Its central warning is that a category name can misrepresent the patients actually grouped under its code.

In the usual clinical definition, typical angina meets three criteria: discomfort behind the breastbone, provocation by exertion or emotional stress, and relief with rest or nitroglycerin. The article refers to these as the three classical angina features. It reports that, in Budapest, Switzerland, and Long Beach files, 93–96% of patients coded 4 had all three features.

That makes the label “asymptomatic” especially misleading: code 4 actually marks typical angina, according to the study. The authors say conventional models are essentially unaffected, but interpretations of model effects that attach documented names to categories can be reversed. Correctly identifying what a code represents matters when researchers explain results to clinicians or readers.

02

In the UCI Heart Disease data, what do chest-pain codes 1 and 4 actually represent, compared with their documented labels?

The UCI Heart Disease data assign numeric codes to chest-pain categories, but the article finds that the codes do not match their documented names. This matters because researchers may use the labels to describe patients or explain what a model has learned. The study says the same reversal appears at all four sites.

The corrected reading is straightforward: code 4, documented as “asymptomatic,” marks patients with typical angina. Code 1, documented as “typical angina,” marks patients with almost none of the classical angina features. The paper gives a particularly clear Cleveland example: patients coded 1 have no chest pain there. In files from Budapest, Switzerland, and Long Beach, 93–96% of patients coded 4 have all three classical features.

The values in the files have not changed; what needs correction is the mapping between those values and their human-readable names. The paper warns that ordinary model predictions are essentially unaffected, but explanations using the documented category names can reverse the meaning of an effect. Researchers should therefore check the code-to-label mapping before interpreting results.

03

How widespread was the reversal across the dataset’s sites and studies of the data?

The authors report the same code-label reversal across all four sites in the UCI Heart Disease data. Evidence from three non-Cleveland files is especially striking: in Budapest, Switzerland, and Long Beach, 93–96% of patients coded 4 show all three classical angina features. The paper also traces the documented labels into other widely used versions of the data.

OpenML, PMLB, and two highly voted Kaggle copies use the same documented category names. The authors report about 400,000 downloads combined for those copies. They also audited a seeded random sample of 150 records from a specified Scholar search for SHAP studies mentioning asymptomatic chest pain; 124 papers were readable. Of 32 that stated a direction for a named category, 25, or 78%, gave a direction inconsistent with the corrected identities.

The paper says 22 of those papers, or 69% of the 32, were attributable to the documentation error; nine of these explained the mismatch clinically. None of the 124 readable papers identified the reversal. The findings show how one mistaken mapping can persist across data copies and research interpretations.

04

What evidence from the original Cleveland study and other patient files helped confirm the corrected mapping?

The paper supports its correction with two complementary checks. First, the chest-pain table and regression coefficients from the original 1986 Cleveland study are reproduced only when the categories are read using the corrected mapping. This ties the revised interpretation to results from the study behind the Cleveland data, rather than relying only on a modern reanalysis.

Second, the authors examined files from Budapest, Switzerland, and Long Beach. In those files, 93–96% of patients assigned code 4 have all three classical angina features. That pattern fits typical angina, not the documented label “asymptomatic.” At Cleveland, code 1 is associated with no chest pain, also contradicting its documented name, “typical angina.”

The paper notes that a 1990 word-labeled Cleveland file already uses the documented labels, while Statlog (Heart), a Cleveland subset, stores the same codes. Together, these records help establish that the numeric codes and their accompanying names became misaligned. The authors provide the corrected mapping, evidence, and code.

05

What can go wrong when researchers interpret model explanations using the incorrect chest-pain labels?

Model explanations describe how input features relate to predictions. If a researcher attaches the wrong clinical name to a numeric category, the explanation can be described with the opposite meaning. In this dataset, code 4 is documented as “asymptomatic” but represents typical angina, while code 1 is documented as “typical angina” but has almost none of the classical features.

The authors audited 124 readable papers from a seeded sample. Among the 32 papers that stated a direction for a named category, 25, or 78%, gave a direction inconsistent with the corrected identities. The study attributes 22 of those cases to the documentation error; nine of those offered clinical explanations based on the mistaken names. None of the 124 readable papers identified the reversal.

The authors say conventional models are essentially unaffected, but interpretations attaching documented names to model effects are reversed. They also report that zero-shot language-model classifiers can be misled by the labels: three open-weight models lost 0.12–0.33 AUC when given the documented labels alongside age, sex, and chest-pain type. Clear metadata is essential to trustworthy interpretation.

06

Why can a model’s ordinary predictions remain nearly unchanged even when category labels are reversed?

A flipped code-to-name mapping does not automatically change the data values given to a conventional model. The stored chest-pain codes remain the same, so a model trained on those values can still learn their associations with the outcome. The article describes conventional models as essentially unaffected, which helps explain why the documentation error went unnoticed.

The problem appears when someone interprets a model’s feature effects using the wrong human-readable names. A model may associate code 4 with an outcome, but calling code 4 “asymptomatic” misstates which patients that association describes: the article says code 4 marks typical angina. Likewise, code 1 is not typical angina as documented; at Cleveland it means no chest pain.

This distinction separates predictive performance from interpretation. The paper reports that zero-shot language-model classifiers that read the documented labels are misled, with three open-weight models losing 0.12–0.33 AUC when given age, sex, and chest-pain type. Checking category mappings can therefore matter even when conventional model scores appear stable.

07

How can a dataset’s numeric category codes and human-readable labels differ, and why does that matter for machine learning?

A dataset can store categories as numbers and separately attach words that explain them. The number is the value used in the file; the word is meant to tell people what that value represents. The article’s central finding is that these two parts can become misaligned: in the UCI Heart Disease data, the documented names for chest-pain codes 1 and 4 are reversed.

For example, code 4 is labeled “asymptomatic” in the documentation, but the corrected interpretation is typical angina. Code 1 is documented as “typical angina,” yet has almost none of the classical features; at Cleveland, patients with code 1 have no chest pain. Conventional models are essentially unaffected, the article says, but explanations that apply the wrong names to model effects reverse their meaning.

This matters because not every system treats a category in the same way. A model using stored values may learn their predictive patterns, while a person or language model reading the category names can be led astray. The authors report that zero-shot language-model classifiers perform worse when given the documented labels.

This brief was written by AI from the original reporting and checked by other models. Names, figures and quotes come from the source; read it for full context.

Read more in the JupiteX app

Pulse is free. New stories every 4 hours, each one broken into the questions that explain it.

Or read more news on the web