Datasets:
Tasks:
Tabular Classification
Modalities:
Tabular
Formats:
csv
Sub-tasks:
tabular-multi-class-classification
Size:
100K - 1M
Tags:
healthcare
diabetes
readmission
electronic-health-records
uncertainty-quantification
clinical-prediction
License:
Youran Li commited on
Upload DPR dataset splits and detailed data card
Browse files- .gitattributes +3 -0
- README.md +142 -23
- cohort.csv +0 -0
- test.csv +0 -0
- test_raw.csv +0 -0
- train.csv +2 -2
- train_raw.csv +3 -0
- validation.csv +0 -0
- validation_raw.csv +0 -0
.gitattributes
CHANGED
|
@@ -60,3 +60,6 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 60 |
*.webm filter=lfs diff=lfs merge=lfs -text
|
| 61 |
features.csv filter=lfs diff=lfs merge=lfs -text
|
| 62 |
train.csv filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
| 60 |
*.webm filter=lfs diff=lfs merge=lfs -text
|
| 61 |
features.csv filter=lfs diff=lfs merge=lfs -text
|
| 62 |
train.csv filter=lfs diff=lfs merge=lfs -text
|
| 63 |
+
test.csv filter=lfs diff=lfs merge=lfs -text
|
| 64 |
+
train_raw.csv filter=lfs diff=lfs merge=lfs -text
|
| 65 |
+
validation.csv filter=lfs diff=lfs merge=lfs -text
|
README.md
CHANGED
|
@@ -2,48 +2,167 @@
|
|
| 2 |
license: unknown
|
| 3 |
task_categories:
|
| 4 |
- tabular-classification
|
|
|
|
|
|
|
| 5 |
tags:
|
| 6 |
- healthcare
|
| 7 |
-
-
|
| 8 |
- readmission
|
| 9 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
---
|
| 11 |
|
| 12 |
-
#
|
| 13 |
|
| 14 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
|
| 16 |
## Prediction Task
|
| 17 |
|
| 18 |
-
The
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
|
| 20 |
-
-
|
| 21 |
-
-
|
|
|
|
|
|
|
|
|
|
| 22 |
|
| 23 |
-
##
|
| 24 |
|
| 25 |
-
|
| 26 |
-
- `validation.csv`: validation split
|
| 27 |
-
- `test.csv`: test split
|
| 28 |
-
- `cohort.csv`: patient/encounter identifiers and labels
|
| 29 |
-
- `features.csv`: feature columns excluding the target label
|
| 30 |
|
| 31 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 32 |
|
| 33 |
-
|
| 34 |
-
|---|---:|---:|---:|
|
| 35 |
-
| Train | 71236 | 7950 | 0.1116 |
|
| 36 |
-
| Validation | 15265 | 1704 | 0.1116 |
|
| 37 |
-
| Test | 15265 | 1703 | 0.1116 |
|
| 38 |
|
| 39 |
-
##
|
| 40 |
|
| 41 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 42 |
|
| 43 |
## Intended Use
|
| 44 |
|
| 45 |
-
This dataset is intended for
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 46 |
|
| 47 |
## Limitations
|
| 48 |
|
| 49 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
license: unknown
|
| 3 |
task_categories:
|
| 4 |
- tabular-classification
|
| 5 |
+
task_ids:
|
| 6 |
+
- binary-classification
|
| 7 |
tags:
|
| 8 |
- healthcare
|
| 9 |
+
- diabetes
|
| 10 |
- readmission
|
| 11 |
+
- electronic-health-records
|
| 12 |
+
- uncertainty-quantification
|
| 13 |
+
- clinical-prediction
|
| 14 |
+
pretty_name: Diabetic Patient 30-Day Readmission Dataset
|
| 15 |
+
size_categories:
|
| 16 |
+
- 100K<n<1M
|
| 17 |
---
|
| 18 |
|
| 19 |
+
# Diabetic Patient 30-Day Readmission Dataset
|
| 20 |
|
| 21 |
+
## Dataset Summary
|
| 22 |
+
|
| 23 |
+
This dataset is derived from the Kaggle Diabetic Patients Readmission Prediction dataset. The original dataset contains electronic health record data from diabetic patient hospital encounters and is commonly used for hospital readmission prediction.
|
| 24 |
+
|
| 25 |
+
This released version formats the data for binary classification of 30-day hospital readmission and provides reproducible train, validation, and test splits for evaluating clinical prediction models and uncertainty quantification methods.
|
| 26 |
+
|
| 27 |
+
## Source Data
|
| 28 |
+
|
| 29 |
+
Original source:
|
| 30 |
+
|
| 31 |
+
- Kaggle: https://www.kaggle.com/datasets/saurabhtayal/diabetic-patients-readmission-prediction
|
| 32 |
|
| 33 |
## Prediction Task
|
| 34 |
|
| 35 |
+
The prediction task is binary classification.
|
| 36 |
+
|
| 37 |
+
Target variable:
|
| 38 |
+
|
| 39 |
+
- `readmit_30d`
|
| 40 |
+
|
| 41 |
+
Label definition:
|
| 42 |
+
|
| 43 |
+
- `1`: patient was readmitted within 30 days, corresponding to `readmitted == "<30"`
|
| 44 |
+
- `0`: patient was not readmitted within 30 days, corresponding to `readmitted == ">30"` or `readmitted == "NO"`
|
| 45 |
+
|
| 46 |
+
The original multiclass `readmitted` variable was converted into this binary target.
|
| 47 |
+
|
| 48 |
+
## Dataset Files
|
| 49 |
+
|
| 50 |
+
This repository contains the following files:
|
| 51 |
+
|
| 52 |
+
- `train.csv`: processed training split
|
| 53 |
+
- `validation.csv`: processed validation split
|
| 54 |
+
- `test.csv`: processed test split
|
| 55 |
+
- `train_raw.csv`: raw training split before imputation and one-hot encoding
|
| 56 |
+
- `validation_raw.csv`: raw validation split before imputation and one-hot encoding
|
| 57 |
+
- `test_raw.csv`: raw test split before imputation and one-hot encoding
|
| 58 |
+
- `cohort.csv`: encounter identifiers, patient identifiers, original readmission label, and binary label
|
| 59 |
+
- `features.csv`: raw feature table excluding the original `readmitted` target column
|
| 60 |
+
|
| 61 |
+
## Dataset Statistics
|
| 62 |
+
|
| 63 |
+
| Split | N | Negatives | Positives | Positive Rate |
|
| 64 |
+
|---|---:|---:|---:|---:|
|
| 65 |
+
| Train | 71236 | 63286 | 7950 | 0.1116 |
|
| 66 |
+
| Validation | 15265 | 13561 | 1704 | 0.1116 |
|
| 67 |
+
| Test | 15265 | 13562 | 1703 | 0.1116 |
|
| 68 |
+
| Total | 101766 | 90409 | 11357 | 0.1116 |
|
| 69 |
+
|
| 70 |
+
Additional dataset information:
|
| 71 |
|
| 72 |
+
- Number of total samples: 101766
|
| 73 |
+
- Number of raw feature columns: 49
|
| 74 |
+
- Number of processed feature columns after one-hot encoding: 2332
|
| 75 |
+
- Feature types: mixed categorical and numerical clinical variables
|
| 76 |
+
- Missing value marker in original dataset: `"?"`
|
| 77 |
|
| 78 |
+
## Feature Overview
|
| 79 |
|
| 80 |
+
The raw dataset includes clinical and administrative variables such as:
|
|
|
|
|
|
|
|
|
|
|
|
|
| 81 |
|
| 82 |
+
- Demographic information
|
| 83 |
+
- Admission and discharge information
|
| 84 |
+
- Time in hospital
|
| 85 |
+
- Laboratory test results
|
| 86 |
+
- Medication indicators
|
| 87 |
+
- Diagnosis code fields
|
| 88 |
+
- Prior inpatient, outpatient, and emergency visit counts
|
| 89 |
|
| 90 |
+
Categorical features were one-hot encoded in the processed split files.
|
|
|
|
|
|
|
|
|
|
|
|
|
| 91 |
|
| 92 |
+
## Data Processing Pipeline
|
| 93 |
|
| 94 |
+
The released dataset was generated using the following preprocessing procedure:
|
| 95 |
+
|
| 96 |
+
1. Loaded `diabetic_data.csv`
|
| 97 |
+
2. Replaced all `"?"` entries with missing values
|
| 98 |
+
3. Created the binary label `readmit_30d`
|
| 99 |
+
4. Created a cohort file containing `encounter_id`, `patient_nbr`, `readmitted`, and `readmit_30d`
|
| 100 |
+
5. Created a raw feature file by removing the original `readmitted` target column
|
| 101 |
+
6. Split the full dataset into train, validation, and test partitions using a 70/15/15 split
|
| 102 |
+
7. Stratified both split steps by `readmit_30d`
|
| 103 |
+
8. Removed identifier columns from modeling features:
|
| 104 |
+
- `encounter_id`
|
| 105 |
+
- `patient_nbr`
|
| 106 |
+
9. Removed target columns from modeling features:
|
| 107 |
+
- `readmitted`
|
| 108 |
+
- `readmit_30d`
|
| 109 |
+
10. Identified categorical and numerical columns using the training split only
|
| 110 |
+
11. Imputed numerical features using the training-set median
|
| 111 |
+
12. One-hot encoded categorical features using categories learned from the training split
|
| 112 |
+
13. Aligned validation and test feature columns to the training feature columns
|
| 113 |
+
14. Normalized column names to avoid special characters such as `<`, `>`, `[`, and `]`
|
| 114 |
+
|
| 115 |
+
## Reproducibility
|
| 116 |
+
|
| 117 |
+
The splits and preprocessing are reproducible using the following settings:
|
| 118 |
+
|
| 119 |
+
- Train/temporary split seed: `42`
|
| 120 |
+
- Validation/test split seed: `42`
|
| 121 |
+
- Split ratio: 70% train, 15% validation, 15% test
|
| 122 |
+
- Stratification variable: `readmit_30d`
|
| 123 |
+
- Numerical imputation: median imputation fit on training split only
|
| 124 |
+
- Categorical encoding: one-hot encoding fit on training split only
|
| 125 |
+
- Unknown categorical levels in validation/test: ignored during encoding
|
| 126 |
|
| 127 |
## Intended Use
|
| 128 |
|
| 129 |
+
This dataset is intended for research on:
|
| 130 |
+
|
| 131 |
+
- Binary clinical prediction
|
| 132 |
+
- Hospital readmission prediction
|
| 133 |
+
- Uncertainty quantification
|
| 134 |
+
- Selective prediction
|
| 135 |
+
- Risk-coverage evaluation
|
| 136 |
+
- Decision-aware evaluation of machine learning models
|
| 137 |
+
|
| 138 |
+
## Out-of-Scope Use
|
| 139 |
+
|
| 140 |
+
This dataset should not be used for direct clinical decision-making, diagnosis, prognosis, or treatment allocation without external validation and appropriate clinical oversight.
|
| 141 |
|
| 142 |
## Limitations
|
| 143 |
|
| 144 |
+
Important limitations include:
|
| 145 |
+
|
| 146 |
+
- Retrospective observational data
|
| 147 |
+
- Potential label noise in administrative readmission labels
|
| 148 |
+
- Missingness in several clinical variables
|
| 149 |
+
- Class imbalance in the 30-day readmission outcome
|
| 150 |
+
- Potential dataset-specific biases
|
| 151 |
+
- Limited generalizability to other hospitals, time periods, or patient populations
|
| 152 |
+
|
| 153 |
+
## Ethical Considerations
|
| 154 |
+
|
| 155 |
+
This dataset is derived from publicly available clinical data. Users should handle it responsibly and avoid using models trained on this dataset for clinical deployment without further validation.
|
| 156 |
+
|
| 157 |
+
## Citation
|
| 158 |
+
|
| 159 |
+
If you use this dataset, please cite the original Kaggle dataset:
|
| 160 |
+
|
| 161 |
+
Diabetic Patients Readmission Prediction:
|
| 162 |
+
https://www.kaggle.com/datasets/saurabhtayal/diabetic-patients-readmission-prediction
|
| 163 |
+
|
| 164 |
+
You may also cite this dataset repository if using this processed version as part of an uncertainty quantification benchmark.
|
| 165 |
+
|
| 166 |
+
## Additional Notes
|
| 167 |
+
|
| 168 |
+
This dataset is part of a multi-dataset benchmark for evaluating uncertainty quantification methods in clinical prediction tasks.
|
cohort.csv
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|
test.csv
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|
test_raw.csv
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
train.csv
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a9c38594d3dea1ba0e16c3be2bf913ce32d95f1f2151ff05a64a01b72c8d8c3d
|
| 3 |
+
size 664800886
|
train_raw.csv
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4af2d4be6198c5529e0676b4ce9450c42bc5e29efe6ff6c43956c146089ef151
|
| 3 |
+
size 12839394
|
validation.csv
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|
validation_raw.csv
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|