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

UCI 심장병 데이터 흉통 코드가 뒤집혀 있다는 증거

Tejas Tovinkere Pattabhi · arXiv · 2026년 11월 24일

- **연구 문제** UCI 심장병 데이터를 문서대로 읽으면 흉통이 없는 환자의 심장병 비율이 가장 높게 나와 임상 상식과 어긋납니다.
- **연구 방법** 저자들은 원연구의 표와 회귀 계수가 뒤집힌 코드에서만 재현되는지 대조하고, 세 병원 원자료의 흉통 특징을 직접 셉니다.
- **주요 결과** 나이, 성별, 흉통만 넣은 조건에서 문서 레이블을 쓰면 세 LLM의 AUC가 0.12에서 0.33 떨어졌습니다.

## 기존 레이블이 틀린 채 벤치마크에 남은 이유

UCI Heart Disease 데이터는 1980년대에 네 개 센터에서 관상동맥질환(CAD) 확률 기반 진단 연구를 위해 모은 자료이고, 지금은 교육과 벤치마크에 표준처럼 쓰입니다. 흉통 변수 cp의 문서에는 1이 typical angina, 2가 atypical angina, 3이 non-anginal pain, 4가 asymptomatic으로 적혀 있습니다. 그런데 이 문서대로 읽으면 흉통이 없는 환자가 CAD를 가장 많이 앓는다는 결론이 나옵니다. Cleveland에서 'asymptomatic'으로 코딩된 환자의 72.9%가 CAD를 앓고, 'typical angina'로 코딩된 환자는 30.4%였습니다.

이 결과는 흉통이 CAD와 가장 강하게 연관되고 흉통이 없을 때 가장 약하게 연관된다는 심장학의 잘 확립된 경향과 정면으로 어긋납니다. 저자들은 이 경향이 환자의 성질이 아니라 문서화의 결과라고 봅니다. 코드가 실제로는 거꾸로 저장되어 있다는 것입니다.

이 오류가 오래 남은 까닭은 예측 정확도에 거의 영향을 주지 않기 때문입니다. 범주의 이름만 바꾸는 재레이블링은 대부분의 모델 예측을 바꾸지 않으므로, 벤치마크 점수로는 오류가 드러나지 않습니다. 반면 SHAP(SHapley Additive exPlanations) 값, 계수, 연관 규칙은 모델 결과에 임상적 의미를 붙이는 데 쓰이고, 그때 문서상 이름이 그대로 따라갑니다. 그래서 이 데이터에서 계산한 SHAP 값과 계수에 문서상 이름을 붙이면 방향이 뒤집힌 결론이 나올 수 있습니다. 게재된 논문들은 이 뒤집힌 경향을 임상 발견으로 자주 보고했고, 때로는 그 이유를 설명까지 붙였습니다.

저자들은 두 가지 상호 보완적 검증으로 저장 방식을 확인했습니다. 첫째, 1986년 Cleveland 원연구의 흉통 표와 회귀 계수는 뒤집힌 해석에서만 재현되었습니다. 둘째, Budapest, Switzerland, Long Beach 파일에서 코드 4가 붙은 환자의 93~96%가 고전적 협심증 특징 세 가지를 모두 가지고 있었습니다. 단어로 레이블이 적힌 1990년 Cleveland 파일은 이미 문서상 레이블을 쓰고 있었고, Cleveland의 부분집합인 Statlog (Heart)도 같은 코드를 저장하고 있었습니다.

## 저장 코드가 뒤집혀 있다는 근거

코드가 뒤집혔다는 판단은 서로 독립된 두 가지 검사에서 나옵니다. 첫 번째 검사는 Cleveland 자료를 원 연구인 Detrano 등의 보고와 대조합니다. Detrano 등은 Cleveland Clinic Foundation에서 관상동맥 조영술을 받으러 의뢰된 303명을 연구했고, 이는 UCI Cleveland 파일의 환자 수와 같습니다. 저자들은 UCI 결과값 1에서 4가 그 논문 Table 2의 단일, 이중, 삼중 혈관 및 좌주간 질환 환자 수 55, 36, 35, 13명을 정확히 재현한다는 것을 먼저 확인했습니다. 그다음 Table 1의 흉통 유형, 성별, 질병 상태 16개 셀에 발표된 행 백분율을 UCI 파일과 맞춰 보았습니다.

문서대로 코딩하면 16개 셀 중 0개가 맞고, 5−cp로 바꾸면 15개가 맞습니다.

회귀 계수 검사는 더 직접적인 증거를 줍니다. Detrano 등은 Table 8에서 나이, 성별, 흉통으로 CAD를 예측하는 로지스틱 회귀 모델을 보고했고, 이때 흉통은 1이 typical angina, 4가 무통증으로 코딩되어 있었습니다. 재코딩이 바꾸는 것은 흉통 계수와 상수뿐이므로, 이 두 값이 결정적 증거가 됩니다.

![Table 1: Logistic regression of CAD on age, sex and chest pain in the Cleveland data (303 patients): coefficients published by Detrano et al. \[5\] (Table 8, sub…](https://refivu.com/papers/b1cd0f68-7d26-46cf-88cd-e57ef82a37ed/figures/figure-ae54677e81650302903185ec8a104d1f.png?thumb=512)

**Table 1** : Logistic regression of CAD on age, sex and chest pain in the Cleveland data (303 patients): coefficients published by Detrano et al. \[5\] (Table 8, subset 1) and refitted on the UCI file withcp as stored and corrected (5−cp).

[원문](https://arxiv.org/abs/2611.33248v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Tejas Tovinkere Pattabhi · Typical Angina, Reversed: A Long-Standing Documentation Error in the UCI Heart Disease Data · 원문 그림 인용 · 원본 PDF 3쪽에서 그림 영역을 추출했습니다.

두 번째 검사는 Budapest, Switzerland, Long Beach 세 사이트의 원자료 파일에서 typical angina를 정의하는 흉골 아래 위치, 운동에 의한 유발, 휴식에 의한 완화 세 가지 특징을 직접 셉니다. 코드 4 환자는 거의 모두 세 특징을 가지고 코드 1 환자는 거의 가지지 않으며, 세 사이트 모두에서 특징 개수의 평균이 코드 4에서 1로 갈수록 단조롭게 줄어듭니다. 이 패턴은 typical, atypical, non-anginal 정의를 뒤집은 것과 같아서, 코드 1은 흉통이 없는 환자에 해당하는 것으로 읽힙니다. Cleveland 원자료에서는 이 필드가 282개 파싱 가능한 기록 모두 결측(−9)이었고, 아카이브의 WARNING 파일은 이 파일이 손상되었다고 적고 있습니다.

![Table 2: Classical angina features (substernal, exertional, relieved by rest) by stored chest-pain code, in the raw records of three UCI sites. Each cell gives…](https://refivu.com/papers/b1cd0f68-7d26-46cf-88cd-e57ef82a37ed/figures/figure-388fcffdb3edc5465566969b222e803a.png?thumb=512)

**Table 2** : Classical angina features (substernal, exertional, relieved by rest) by stored chest-pain code, in the raw records of three UCI sites. Each cell gives the number of patients with 0, 1, 2 or 3 of the features, among patients with all three recorded. Full tables for all four codes are in the repository.

[원문](https://arxiv.org/abs/2611.33248v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Tejas Tovinkere Pattabhi · Typical Angina, Reversed: A Long-Standing Documentation Error in the UCI Heart Disease Data · 원문 그림 인용 · 원본 PDF 4쪽에서 그림 영역을 추출했습니다.

저자들은 중간 두 코드도 함께 바뀌었다고 봅니다. Budapest와 Long Beach에서 코드 3 환자는 주로 특징 두 개를, 코드 2 환자는 주로 하나를 가졌기 때문입니다. 그래서 최종 매핑은 저장 코드 k를 5−k 레이블로 읽는 것으로 정리되며, 4는 typical angina, 3은 atypical angina, 2는 non-anginal pain, 1은 asymptomatic에 해당합니다.

## 레이블이 LLM 제로샷 판별을 바꾸는 방식

표 형식 데이터를 텍스트로 직렬화해 사전 지식에 기대는 LLM 분류기에서는 레이블이 주석이 아니라 입력이 됩니다. 저자들은 Cleveland 자료에서 세 개의 오픈 웨이트 지시 모델인 Qwen2.5-7B, Llama-3.1-8B, Phi-3.5-mini를 4비트로 제로샷 실행하는 탐색적 프로브를 돌렸고, 실행 전에 프로토콜을 고정했습니다. 프롬프트는 13개 예측 변수를 모두 넣은 full 템플릿과 나이, 성별, 흉통만 넣은 minimal 템플릿으로 나뉘었고, 점수는 CAD에 관한 예/아니오 질문의 첫 답 토큰에서 "Yes"의 확률을 "No"의 확률과 비교한 값이었습니다.

minimal 템플릿에서 가장 뚜렷한 차이가 나타났습니다. 문서 레이블을 쓰면 Qwen2.5-7B의 AUC가 0.458로 무작위 수준 이하로 떨어졌고, 교정 레이블을 쓰면 0.789로 올랐습니다. 세 모델 모두 교정 레이블에서 AUC가 0.12에서 0.33만큼 높아졌으며, 로그 손실은 여섯 모델–템플릿 쌍 모두에서 줄었습니다. 문서 레이블에서는 Qwen과 Llama가 흉통 줄을 아예 뺀 경우보다도 낮은 점수를 받았는데, 저자들은 흉통 한 줄이 판단을 좌우하는 설정이어서 레이블 오류가 그대로 옮겨 갔다고 봅니다.

![Table 4: LLM probe on Cleveland (303 patients). AUC under documented (D) and corrected (C) labels, and differences C−D with paired-bootstrap 95% intervals (2,0…](https://refivu.com/papers/b1cd0f68-7d26-46cf-88cd-e57ef82a37ed/figures/figure-1be6040bc3c2041fa952ac97cdc222c7.png?thumb=512)

**Table 4** : LLM probe on Cleveland (303 patients). AUC under documented (D) and corrected (C) labels, and differences C−D with paired-bootstrap 95% intervals (2,000 resamples).

[원문](https://arxiv.org/abs/2611.33248v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Tejas Tovinkere Pattabhi · Typical Angina, Reversed: A Long-Standing Documentation Error in the UCI Heart Disease Data · 원문 그림 인용 · 원본 PDF 8쪽에서 그림 영역을 추출했습니다.

full 템플릿에서는 개선이 작았습니다. AUC는 Qwen에서 0.016, Llama에서 0.077 올랐고 Phi는 변하지 않았습니다. Llama는 minimal 템플릿에서 평균 예측 위험이 교정 레이블 아래 code 1의 0.02에서 code 4의 0.29로 올랐고, 문서 레이블 아래에서는 0.29에서 0.02로 내려가 순서가 뒤집혔습니다. Qwen과 Phi도 같은 역전을 보였지만 code별 평균 확률은 0.001 아래에 머물렀습니다. Phi와 Qwen(minimal)은 어떤 조건에서도 P(Yes)가 Phi 0.015, Qwen 0.003을 넘지 않았으므로, 이 두 모델의 AUC 차이는 아주 작은 확률의 순서를 반영한 것입니다.

저자들은 full 템플릿에서 AUC가 0.02 이상 오르는 모델이 두 개이거나 위험 순서가 뒤집히는 모델이 두 개이면 더 큰 모델로 확장하기로 미리 정했습니다. full 템플릿에서는 두 기준 모두 충족되지 않았습니다. AUC 이득이 0.02에 이른 것은 Llama뿐이었고, 위험 순서의 역전도 Llama에서만 나타났습니다.

## 남은 한계와 검증되지 않은 범위

문헌 감사의 22/32 수치와 민감도 분석은 코딩이 끝난 뒤에 정한 범주에 기대고 있습니다. 사전에 정한 범주에서 나온 25 of 32와 달리 이 수치들은 사후에 정의되었고, 아직 두 번째 코더가 검토하지 않았습니다. 독립적이고 눈가림한 두 번째 코딩은 방향을 제시한 32편과 나머지 20편 전체를 대상으로 계획되어 있으며, 수치마다 일치도를 보고할 예정이고 자료는 저장소에 있습니다. 감사 대상 논문 가운데 17%는 읽을 수 없었습니다. 본문 텍스트만 추출했기 때문에 그림에서만 드러나는 주장은 빠졌고, 일관성 없는 진술의 수는 하한으로 봐야 합니다. 저자들은 방향을 제시한 논문의 수 자체도 달라질 수 있어서 비율이 어느 쪽으로든 움직일 수 있다고 봅니다.

LLM 프로브는 소형 양자화 모델 세 개, 프롬프트 형식 하나, 제로샷 설정, 사이트 하나에서만 실행되었습니다. 퓨샷이나 미세 조정 방법에서도 같은 결과가 나오는지는 확인하지 않았습니다. 저자들은 이런 방법에서는 데이터가 레이블 문구를 덮어쓸 수 있다고 봅니다. 사전 등록된 Hungarian 복제는 실행하지 않았고, 더 큰 모델로의 확장도 수행하지 않았습니다. 주 가설은 Qwen과 Llama에서 성립했지만, 확장 기준은 minimal 템플릿에서 양 끝 코드를 비교하는 읽기 방식에서만 충족되었고 full 템플릿에서는 충족되지 않았습니다. 저자들은 이 두 가지를 프로토콜에서 벗어난 편차로 기록했습니다. 사전 등록된 Brier 점수 차이는 환자별 점수와 함께 저장소에 올라 있습니다.

실행에는 Colab GPU 대신 Kaggle을 사용했습니다.

Kaggle 복사본은 다운로드 수가 아니라 투표 순으로 정렬된 목록에서 골랐기 때문에, 다른 인기 복사본의 상태는 알 수 없습니다. Cleveland 원자료에는 흉통 특징이 없어서, Cleveland에 대한 근거는 원 연구의 표에 의존합니다.

![Table 3: Coding of chest-pain type in widely used copies (coding checked 17–18 Nov 2026; usage counts read from the pages on 18 Nov 2026). “Wrong” means the co…](https://refivu.com/papers/b1cd0f68-7d26-46cf-88cd-e57ef82a37ed/figures/figure-fb882fcd58828f1255025437222e5096.png?thumb=512)

**Table 3** : Coding of chest-pain type in widely used copies (coding checked 17–18 Nov 2026; usage counts read from the pages on 18 Nov 2026). “Wrong” means the copy’s own labels give the documented reading.

[원문](https://arxiv.org/abs/2611.33248v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Tejas Tovinkere Pattabhi · Typical Angina, Reversed: A Long-Standing Documentation Error in the UCI Heart Disease Data · 원문 그림 인용 · 원본 PDF 5쪽에서 그림 영역을 추출했습니다.

## 논문 정보

- **저자**: Tejas Tovinkere Pattabhi
- **학회·저널**: arXiv · 프리프린트
- **최초 공개일**: 2026년 11월 24일
- **등록일**: 2026년 11월 26일
- **수정일**: 2026년 11월 24일
- **버전**: v1
- **arXiv**: 2611.33248
- **분류**: cs.LG
- **원문 이용 조건**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **제공 범위**: 논문 정보, 해설, 허용된 원문 그림

[논문 원문 ↗](https://arxiv.org/abs/2611.33248v1) · [원문 PDF ↗](https://arxiv.org/pdf/2611.33248v1)

AI 해설은 논문 원문과 별개의 설명이며 오류가 있을 수 있습니다. 원문과 그림은 각 출처의 이용 조건과 따로 표시된 권리를 따릅니다.

## 초록

The UCI Heart Disease data are a widely used machine-learning benchmark. We show that their chest-pain variable is stored in reverse of its documentation. At all four sites, the code documented as "asymptomatic" (4) marks patients with typical angina, and the code documented as "typical angina" (1) marks patients with almost none of the classical angina features (at Cleveland, no chest pain). Two complementary checks establish this: (i) the chest-pain table and regression coefficients of the original 1986 Cleveland study are reproduced only under the corrected reading; (ii) in the Budapest, Switzerland and Long Beach files, 93-96% of patients coded 4 have all three classical angina features. A 1990 word-labeled Cleveland file already uses the documented labels, and Statlog (Heart), a Cleveland subset, stores the same codes. OpenML, PMLB and two highly voted Kaggle copies that name the categories use the same documented labels (about 400,000 downloads combined). We audited a seeded random sample of 150 records from a pre-specified Scholar query for SHAP studies of these data mentioning asymptomatic chest pain (124 readable). Of 32 papers that state a direction for a named category, 25 (78%; 95% CI 61-89%) state one inconsistent with the corrected category identities; 22 (69%; 51-82%; post hoc) are attributable to the documentation error, and nine of these explain it clinically. None of the 124 readable papers identifies the reversal. Conventional models are essentially unaffected, one reason the error went unnoticed. Interpretations that attach the documented names to model effects are reversed, and zero-shot language-model classifiers that read the labels are misled: with the documented labels, three open-weight models lose 0.12-0.33 in area under the receiver operating characteristic curve (AUC) given age, sex and chest-pain type. We give the corrected mapping, evidence and code.

## 원문 인용

Tejas Tovinkere Pattabhi (2026). Typical Angina, Reversed: A Long-Standing Documentation Error in the UCI Heart Disease Data. arXiv:2611.33248v1. https://arxiv.org/abs/2611.33248v1

**BibTeX**

```
@misc{pattabhi2026typical,
  title = {{Typical Angina, Reversed: A Long-Standing Documentation Error in the UCI Heart Disease Data}},
  author = {Tejas Tovinkere Pattabhi},
  year = {2026},
  eprint = {2611.33248},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.33248v1}
}
```

## 이 논문의 용어

- [AUC](https://refivu.com/terms/017a335bbf0e-auc)
- [대규모 언어 모델](https://refivu.com/terms/d06687a9ae3e-large-language-model)
- [SHAP](https://refivu.com/terms/24f6f151db7b-shap)
- [Llama-3.1-8B](https://refivu.com/terms/01633399d5ed-llama-3-1-8b)
- [Large Language Models (LLMs)](https://refivu.com/terms/79ef1d2616f9-large-language-models-llms)
- [Qwen2.5-7B](https://refivu.com/terms/4509fcca3a19-qwen2-5-7b)
- [Log Loss](https://refivu.com/terms/19bafc933aa8-log-loss)
- [Wilson interval](https://refivu.com/terms/2430026b0adb-wilson-interval)
- [five-fold cross-validation](https://refivu.com/terms/ae1e3fc2af62-five-fold-cross-validation)
- [paired-bootstrap](https://refivu.com/terms/6ebb65a52d01-paired-bootstrap)
- [Phi-3.5-mini](https://refivu.com/terms/d0f339ddc878-phi-3-5-mini)

## 다른 논문 해설

- [Cross-Layer Characterization and AI-Assisted Diagnosis of C-to-Rust Performance](https://refivu.com/papers/b9b8f973-d979-443f-b049-2f0218e3517a-cross-layer-characterization-and-ai-assisted-diagnosis-of.md)
- [When Is Product Decoding of ECOC MAP-Consistent? Pair Structure and the n-vs-Rest Codes](https://refivu.com/papers/91c0b439-85c0-4c82-8b80-68deaac338ab-when-is-product-decoding-of-ecoc-map-consistent.md)
- [Optimal Transport Meets t-SNE: Integrated Visualization without Batch Effects in OT-tSNE](https://refivu.com/papers/d3dac575-8b8b-4708-aa8c-3d0db81121bd-optimal-transport-meets-t-sne-integrated-visualization.md)
- [Predicting Rare-Mode Collapse in Recursive Generative Training from Single-Generation Calibration](https://refivu.com/papers/5c8147d8-eed2-4206-bf09-95dd28fcd1c5-predicting-rare-mode-collapse-in-recursive-generative.md)
- [The KL Divergence Is Never Negative, Except in PyTorch](https://refivu.com/papers/a58a89ab-5b60-441f-9175-c03ffbd24fec-the-kl-divergence-is-never-negative-except-in.md)
- [Per-Attack Blocking Hides Catalog Vulnerability: A Weakest-Link Analysis of Tool Manifests](https://refivu.com/papers/e81c6c5d-9783-464f-93c2-4b7a8263a787-per-attack-blocking-hides-catalog-vulnerability-a-weakest.md)
- [LaST$\_0$: Latent Spatio-Temporal Chain-of-Thought for Robotic Vision-Language-Action Model](https://refivu.com/papers/9076f3fe-d775-4018-bb2e-9232cc25a6f6-last-0-latent-spatio-temporal-chain-of-thought.md)
- [On Feature Learning in Structured State Space Models](https://refivu.com/papers/f2f5ef3f-9d61-4b9e-93ae-dfe0ebc80328-on-feature-learning-in-structured-state-space-models.md)
- [Spiked-CFR: Causal Representation Learning from LLMs via Wasserstein Projection Pursuit](https://refivu.com/papers/a092dcb5-227e-4a9c-9f4c-0ed769acba0a-spiked-cfr-causal-representation-learning-from-llms-via.md)
- [On Expressive Power of Floating-Point Transformers](https://refivu.com/papers/8eff9b9c-d057-4d27-8b46-4f97cbae6130-on-expressive-power-of-floating-point-transformers.md)
- [RSA-CP: Efficient Conformal Prediction in Small-Sample Regimes via Random Score Alignment](https://refivu.com/papers/21bdc1a9-8a21-4757-b322-ec7470296d48-rsa-cp-efficient-conformal-prediction-in-small-sample.md)
- [What Does a Skill Vocabulary Cost? A Closed-Loop Decomposition over Demonstrated Motions](https://refivu.com/papers/5436c87a-99ef-46a3-afc4-ed0b0a217c6b-what-does-a-skill-vocabulary-cost-a-closed.md)

---

AI 해설에는 오류가 있을 수 있습니다. [Refivu](https://refivu.com/papers/b1cd0f68-7d26-46cf-88cd-e57ef82a37ed-typical-angina-reversed-a-long-standing-documentation-error)
