Update README.md
Browse files
README.md
CHANGED
|
@@ -1,3 +1,91 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: mit
|
| 3 |
-
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
---
|
| 4 |
+
# ❤️ Heart Disease Dataset (Enhanced with Feature Engineering)
|
| 5 |
+
|
| 6 |
+
## 📌 Overview
|
| 7 |
+
|
| 8 |
+
This dataset is an **enhanced version of the classic UCI Heart Disease dataset**, enriched with extensive **feature engineering** to support advanced data analysis and machine learning applications.
|
| 9 |
+
|
| 10 |
+
In addition to the original clinical features, several **derived variables** have been introduced to provide deeper insights into cardiovascular risk patterns. These engineered features allow for improved predictive modeling and more robust exploratory data analysis.
|
| 11 |
+
|
| 12 |
+
---
|
| 13 |
+
|
| 14 |
+
## 📊 Original Features
|
| 15 |
+
|
| 16 |
+
| Column | Description |
|
| 17 |
+
|--------|-------------|
|
| 18 |
+
| `age` | Age of the patient (years) |
|
| 19 |
+
| `sex` | Gender (1 = male, 0 = female) |
|
| 20 |
+
| `cp` | Chest pain type (1 = typical angina, 2 = atypical angina, 3 = non-anginal pain, 4 = asymptomatic) |
|
| 21 |
+
| `trestbps` | Resting blood pressure (mm Hg) |
|
| 22 |
+
| `chol` | Serum cholesterol (mg/dl) |
|
| 23 |
+
| `fbs` | Fasting blood sugar > 120 mg/dl (1 = true, 0 = false) |
|
| 24 |
+
| `restecg` | Resting electrocardiographic results (0 = normal, 1 = ST-T abnormality, 2 = left ventricular hypertrophy) |
|
| 25 |
+
| `thalach` | Maximum heart rate achieved |
|
| 26 |
+
| `exang` | Exercise-induced angina (1 = yes, 0 = no) |
|
| 27 |
+
| `oldpeak` | ST depression induced by exercise |
|
| 28 |
+
| `slope` | Slope of the peak exercise ST segment (1 = upsloping, 2 = flat, 3 = downsloping) |
|
| 29 |
+
| `ca` | Number of major vessels colored by fluoroscopy |
|
| 30 |
+
| `thal` | Thalassemia (3 = normal, 6 = fixed defect, 7 = reversible defect) |
|
| 31 |
+
| `num` | Diagnosis of heart disease (0 = no disease, 1-4 = disease severity levels) |
|
| 32 |
+
|
| 33 |
+
---
|
| 34 |
+
|
| 35 |
+
## 🧠 Engineered Features
|
| 36 |
+
|
| 37 |
+
| Feature | Description |
|
| 38 |
+
|--------|-------------|
|
| 39 |
+
| `age_group` | Age category (`30s`, `40s`, `50s`, `60s`) |
|
| 40 |
+
| `cholesterol_level` | Cholesterol status (`low`, `normal`, `high`) |
|
| 41 |
+
| `bp_level` | Blood pressure status (`low`, `normal`, `high`) |
|
| 42 |
+
| `risk_score` | Composite risk score: (`age * chol / 1000 + trestbps / 100`) |
|
| 43 |
+
| `symptom_severity` | Severity index based on symptoms: (`cp * oldpeak`) |
|
| 44 |
+
| `log_chol` | Logarithm of cholesterol level |
|
| 45 |
+
| `log_trestbps` | Logarithm of resting blood pressure |
|
| 46 |
+
| `age_squared` | Square of patient age |
|
| 47 |
+
| `chol_squared` | Square of cholesterol level |
|
| 48 |
+
| `age_thalach_ratio` | Ratio of max heart rate to age (plus 1) |
|
| 49 |
+
| `risk_factor` | Advanced risk factor: (`cp * oldpeak * thal`) |
|
| 50 |
+
| `missing_values` | Count of missing values in `ca` and `thal` |
|
| 51 |
+
| `chol_trestbps_ratio` | Ratio of cholesterol to resting BP |
|
| 52 |
+
| `log_thalach_chol` | Log of (heart rate × cholesterol) |
|
| 53 |
+
| `symptom_zscore` | Z-score of symptom severity |
|
| 54 |
+
| `avg_chol_by_age_group` | Average cholesterol for corresponding age group |
|
| 55 |
+
| `thalach_chol_diff` | Difference between max heart rate and cholesterol |
|
| 56 |
+
| `symptom_severity_diff` | Deviation from average symptom severity by age group |
|
| 57 |
+
| `age_chol_effect` | Product of age and cholesterol |
|
| 58 |
+
| `thalach_risk_effect` | Product of max heart rate and risk score |
|
| 59 |
+
| `age_trestbps_effect` | Product of age and resting BP |
|
| 60 |
+
| `chol_risk_ratio` | Ratio of cholesterol to risk score |
|
| 61 |
+
|
| 62 |
+
---
|
| 63 |
+
|
| 64 |
+
## 💡 Use Cases
|
| 65 |
+
|
| 66 |
+
- Cardiovascular risk prediction using machine learning
|
| 67 |
+
- Exploratory data analysis for medical research
|
| 68 |
+
- Feature selection and dimensionality reduction tutorials
|
| 69 |
+
- Educational purposes in data science and healthcare analytics
|
| 70 |
+
- Model interpretability studies using engineered variables
|
| 71 |
+
|
| 72 |
+
---
|
| 73 |
+
|
| 74 |
+
## 📁 File Info
|
| 75 |
+
|
| 76 |
+
- **Format**: CSV or DataFrame (depending on hosting)
|
| 77 |
+
- **Instances**: ~300 patients
|
| 78 |
+
- **License**: MIT (Open Source)
|
| 79 |
+
- **Source**: Based on UCI Heart Disease Dataset + custom engineered features
|
| 80 |
+
|
| 81 |
+
---
|
| 82 |
+
|
| 83 |
+
## 📬 Citation & Contact
|
| 84 |
+
|
| 85 |
+
If you use this dataset in your research or application, please consider citing the original UCI dataset and giving credit to this enhanced version's author.
|
| 86 |
+
|
| 87 |
+
**Author**: [nezahatkk](https://huggingface.co/nezahatkk)
|
| 88 |
+
**GitHub**: [https://github.com/nezahatkk](https://github.com/nezahatkk)
|
| 89 |
+
|
| 90 |
+
---
|
| 91 |
+
|