cristian-untaru commited on
Commit
614b39f
·
verified ·
1 Parent(s): ab056ba

Update dataset card

Browse files
Files changed (1) hide show
  1. README.md +154 -239
README.md CHANGED
@@ -1,239 +1,154 @@
1
- ---
2
- language:
3
- - en
4
- task_categories:
5
- - text-classification
6
- task_ids:
7
- - multi-class-classification
8
- pretty_name: SymCAT Medical Triage Dataset
9
- tags:
10
- - medical-triage
11
- - symptom-classification
12
- - healthcare
13
- - pre-triage
14
- - symcat-derived
15
- - natural-language-processing
16
- - academic-project
17
- size_categories:
18
- - n<1K
19
- ---
20
-
21
- # SymCAT Medical Triage Dataset
22
-
23
- This repository contains a SymCAT-derived dataset prepared for symptom-based medical pre-triage text classification.
24
-
25
- The dataset was created and processed as part of a bachelor's thesis project by **Cristian Untaru** at the **West University of Timișoara, Faculty of Informatics**.
26
-
27
- ## Dataset Description
28
-
29
- The dataset contains natural-language symptom descriptions labeled into three triage-oriented categories:
30
-
31
- - `self_monitor`
32
- - `consult_gp`
33
- - `urgent`
34
-
35
- Each example is generated from SymCAT-derived condition and symptom information and converted into a text classification format suitable for fine-tuning transformer-based language models.
36
-
37
- The dataset is intended for academic and experimental work on medical pre-triage classification. It is not intended to be used as a standalone clinical dataset or as a source for real-world medical decision-making.
38
-
39
- ## Intended Use
40
-
41
- This dataset can be used for:
42
-
43
- - fine-tuning text classification models for symptom-based pre-triage;
44
- - comparing transformer-based models such as DistilBERT, BioBERT, and RoBERTa;
45
- - academic experiments in natural language processing for healthcare;
46
- - prototyping medical pre-triage assistant systems.
47
-
48
- The dataset was used to fine-tune transformer-based triage classification models in the broader pre-triage assistant project.
49
-
50
- ## Labels
51
-
52
- | Label | Meaning |
53
- |---|---|
54
- | `self_monitor` | The symptoms may be monitored by the patient, assuming no worsening or additional warning signs. |
55
- | `consult_gp` | The patient should consider consulting a general practitioner or a non-emergency medical professional. |
56
- | `urgent` | The symptoms may require urgent medical attention or emergency evaluation. |
57
-
58
- The label mapping is provided in `label_map.json`.
59
-
60
- ## Dataset Splits
61
-
62
- The dataset is provided using stratified train, validation, and test splits.
63
-
64
- | Split | File | Number of examples |
65
- |---|---|---:|
66
- | Train | `train.csv` | 490 |
67
- | Validation | `validation.csv` | 105 |
68
- | Test | `test.csv` | 106 |
69
- | Full dataset | `full.csv` | 701 |
70
-
71
- The split ratio is approximately 70% train, 15% validation, and 15% test.
72
-
73
- ## Class Distribution
74
-
75
- The class distribution in the full dataset is:
76
-
77
- | Class | Number of examples |
78
- |---|---:|
79
- | `self_monitor` | 220 |
80
- | `consult_gp` | 266 |
81
- | `urgent` | 215 |
82
-
83
- Additional dataset statistics:
84
-
85
- | Statistic | Value |
86
- |---|---:|
87
- | Total examples | 701 |
88
- | Duplicate texts | 0 |
89
- | Imbalance ratio | 1.237 |
90
- | SymCAT-derived conditions before final subset selection | 801 |
91
- | Condition-level overrides applied before final subset selection | 75 |
92
-
93
- ## Data Fields
94
-
95
- The CSV files include the following fields:
96
-
97
- | Field | Description |
98
- |---|---|
99
- | `condition_name` | Name of the medical condition associated with the generated example. |
100
- | `condition_slug` | Normalized condition identifier. |
101
- | `symptom_names` | List of symptom names associated with the condition. |
102
- | `symptom_slugs` | Normalized symptom identifiers. |
103
- | `symptom_probabilities` | Symptom probabilities extracted from the SymCAT-derived source. |
104
- | `text` | Natural-language input text used for classification. |
105
- | `num_symptoms` | Number of symptoms included in the generated text. |
106
- | `max_symptom_probability` | Maximum symptom probability for the example. |
107
- | `mean_symptom_probability` | Mean symptom probability for the example. |
108
- | `urgent_score` | Rule-based urgency score used during weak labeling. |
109
- | `gp_score` | Rule-based general-practitioner consultation score used during weak labeling. |
110
- | `self_score` | Rule-based self-monitoring score used during weak labeling. |
111
- | `label` | Final triage label. |
112
- | `override_applied` | Whether a condition-level override was applied during labeling. |
113
-
114
- ## Labeling Methodology
115
-
116
- SymCAT does not provide direct triage labels. Therefore, the triage labels in this dataset were derived using a weak-supervision approach based on symptom-level risk cues and condition-level overrides.
117
-
118
- The labeling process assigns each example to one of three triage categories:
119
-
120
- 1. `urgent`
121
- 2. `consult_gp`
122
- 3. `self_monitor`
123
-
124
- The general logic is:
125
-
126
- - symptoms or conditions associated with emergency warning signs are assigned to `urgent`;
127
- - symptoms that suggest the need for non-emergency medical evaluation are assigned to `consult_gp`;
128
- - lower-risk symptom combinations are assigned to `self_monitor`.
129
-
130
- Condition-level overrides were applied in selected cases where a condition required a stronger triage label than the symptom-level rules alone would suggest.
131
-
132
- This means that the labels are suitable for academic experimentation and model comparison, but they should not be interpreted as clinically validated triage decisions.
133
-
134
- ## Files
135
-
136
- | File | Description |
137
- |---|---|
138
- | `train.csv` | Training split used for fine-tuning. |
139
- | `validation.csv` | Validation split used during model selection and early stopping. |
140
- | `test.csv` | Held-out test split used for final evaluation. |
141
- | `full.csv` | Complete processed dataset before splitting into train, validation, and test files. |
142
- | `label_map.json` | Mapping between labels and numeric class IDs. |
143
- | `dataset_stats.json` | Dataset-level statistics generated during preprocessing. |
144
- | `.gitattributes` | Git LFS configuration automatically used by Hugging Face/Git. |
145
- | `README.md` | Dataset Card documentation. |
146
-
147
- ## Relationship to MedQuAD
148
-
149
- This dataset is separate from MedQuAD.
150
-
151
- The SymCAT-derived dataset in this repository was used for fine-tuning triage classification models. MedQuAD was processed separately in the broader project as a retrieval corpus for contextual medical question-answer information.
152
-
153
- The processed MedQuAD retrieval dataset is available separately as:
154
-
155
- [`cristian-untaru/medquad-retrieval-pretriage`](https://huggingface.co/datasets/cristian-untaru/medquad-retrieval-pretriage)
156
-
157
- Therefore:
158
-
159
- - SymCAT-derived dataset: used for training/fine-tuning triage classifiers;
160
- - MedQuAD retrieval dataset: used for contextual retrieval of medical Q&A information;
161
- - the triage classifier is not fine-tuned on MedQuAD.
162
-
163
- This distinction is important because the SymCAT-derived dataset provides supervised triage labels, while MedQuAD provides medical question-answer context that can be retrieved and displayed alongside the classifier prediction.
164
-
165
- ## How to Load the Dataset
166
-
167
- The dataset can be loaded with the Hugging Face `datasets` library:
168
-
169
- ```python
170
- from datasets import load_dataset
171
-
172
- dataset = load_dataset("cristian-untaru/symcat-medical-triage-dataset")
173
-
174
- print(dataset)
175
- print(dataset["train"][0])
176
- ```
177
-
178
- Expected splits:
179
-
180
- ```text
181
- train
182
- validation
183
- test
184
- ```
185
-
186
- The repository also includes `full.csv`, which contains the complete processed dataset before splitting.
187
-
188
- ## Example Record
189
-
190
- A typical record contains a generated symptom-based text and its corresponding triage label.
191
-
192
- Example structure:
193
-
194
- ```text
195
- text: Condition: Example condition. Patient reports: symptom 1, symptom 2, symptom 3.
196
- label: consult_gp
197
- ```
198
-
199
- The exact fields available in the CSV files are described in the **Data Fields** section.
200
-
201
- ## Related Dataset and Model Repositories
202
-
203
- Related dataset repositories:
204
-
205
- - [`cristian-untaru/symcat-medical-triage-dataset`](https://huggingface.co/datasets/cristian-untaru/symcat-medical-triage-dataset)
206
- - [`cristian-untaru/medquad-retrieval-pretriage`](https://huggingface.co/datasets/cristian-untaru/medquad-retrieval-pretriage)
207
-
208
- Related model repositories:
209
-
210
- - [`cristian-untaru/distilbert-medical-triage`](https://huggingface.co/cristian-untaru/distilbert-medical-triage)
211
-
212
- Additional BioBERT and RoBERTa model repositories may be added separately after training and publication.
213
-
214
- ## Limitations
215
-
216
- This dataset has several important limitations:
217
-
218
- - It is a small academic dataset.
219
- - The labels were produced using weak supervision and rule-based triage logic.
220
- - It should not be treated as a clinically validated triage dataset.
221
- - It does not replace professional medical judgment.
222
- - It does not include patient history, age, vital signs, physical examination findings, comorbidities, medication history, or laboratory results.
223
- - Some generated examples may be simplified and may not reflect the full complexity of real patient descriptions.
224
- - The dataset is intended for academic experimentation and prototype development, not real-world clinical deployment.
225
- - The dataset is derived from SymCAT-based condition and symptom information, and users should verify any source-specific usage requirements before reuse.
226
-
227
- ## Medical Disclaimer
228
-
229
- This dataset is intended only for academic, research, and prototype development purposes.
230
-
231
- It must not be used as the sole basis for medical diagnosis, treatment, triage, or emergency decision-making. In real-world scenarios, medical triage should be performed by qualified healthcare professionals.
232
-
233
- In case of severe, worsening, or life-threatening symptoms, users should contact emergency medical services or a qualified healthcare professional.
234
-
235
- ## Author
236
-
237
- **Cristian Untaru**
238
- Faculty of Informatics
239
- West University of Timișoara
 
1
+ ---
2
+ language:
3
+ - en
4
+ task_categories:
5
+ - text-classification
6
+ task_ids:
7
+ - multi-class-classification
8
+ pretty_name: SymCAT Medical Triage Dataset
9
+ tags:
10
+ - medical-triage
11
+ - symptom-classification
12
+ - healthcare
13
+ - pre-triage
14
+ - symcat-derived
15
+ - natural-language-processing
16
+ - academic-project
17
+ size_categories:
18
+ - n<1K
19
+ ---
20
+
21
+ # SymCAT Medical Triage Dataset
22
+
23
+ ## Dataset Description
24
+
25
+ This repository contains a SymCAT-derived dataset prepared for symptom-based medical pre-triage text classification in the SortMed academic project.
26
+
27
+ The dataset contains English symptom descriptions labeled into three triage-oriented categories:
28
+
29
+ - `self_monitor`
30
+ - `consult_gp`
31
+ - `urgent`
32
+
33
+ It is intended for academic experimentation with transformer-based text classifiers and parameter-efficient fine-tuning methods. It is not a clinically validated medical dataset.
34
+
35
+ ## Dataset Sources and Role
36
+
37
+ The dataset was generated from SymCAT-derived condition and symptom information and converted into a supervised text-classification format.
38
+
39
+ In the SortMed system, this dataset is used for training and evaluating the triage classification models. It is separate from the MedQuAD retrieval dataset, which is used only for retrieving related medical information.
40
+
41
+ ## Dataset Structure
42
+
43
+ | Split | File | Examples |
44
+ |---|---|---:|
45
+ | Train | `train.csv` | 490 |
46
+ | Validation | `validation.csv` | 105 |
47
+ | Test | `test.csv` | 106 |
48
+ | Full dataset | `full.csv` | 701 |
49
+
50
+ ## Label Mapping
51
+
52
+ | Label | ID | Meaning |
53
+ |---|---:|---|
54
+ | `self_monitor` | 0 | Symptoms appear mild and may be monitored, assuming no worsening or additional warning signs. |
55
+ | `consult_gp` | 1 | A general practitioner or non-emergency medical professional should be consulted. |
56
+ | `urgent` | 2 | Symptoms may require urgent medical attention or emergency evaluation. |
57
+
58
+ ## Class Distribution
59
+
60
+ | Class | Examples |
61
+ |---|---:|
62
+ | `self_monitor` | 220 |
63
+ | `consult_gp` | 266 |
64
+ | `urgent` | 215 |
65
+
66
+ Additional statistics:
67
+
68
+ | Statistic | Value |
69
+ |---|---:|
70
+ | Total examples | 701 |
71
+ | Duplicate texts | 0 |
72
+ | Imbalance ratio | 1.237 |
73
+ | SymCAT-derived conditions before final subset selection | 801 |
74
+ | Condition-level overrides applied before final subset selection | 75 |
75
+
76
+ ## Files and Columns
77
+
78
+ | File | Description |
79
+ |---|---|
80
+ | `train.csv` | Training split. |
81
+ | `validation.csv` | Validation split used for checkpoint selection and early stopping. |
82
+ | `test.csv` | Held-out test split used for final evaluation. |
83
+ | `full.csv` | Complete dataset. |
84
+ | `label_map.json` | Mapping between labels and numeric IDs. |
85
+ | `dataset_stats.json` | Dataset statistics used for documentation and reproducibility. |
86
+ | `README.md` | Dataset card documentation. |
87
+
88
+ Main columns include:
89
+
90
+ | Column | Description |
91
+ |---|---|
92
+ | `text` | Natural-language input text used by the classifier. |
93
+ | `label` | Triage class name. |
94
+ | `label_numeric` | Numeric class ID. |
95
+ | `condition_name` | Source condition name, if available. |
96
+ | `symptom_names` | Symptoms associated with the generated example. |
97
+
98
+ ## Preprocessing
99
+
100
+ The dataset was generated from condition and symptom information, then transformed into short English symptom descriptions suitable for text classification.
101
+
102
+ Labels were assigned using deterministic rule-based triage logic designed for academic pre-triage experiments. The labels are weakly supervised and should not be interpreted as expert clinical annotations.
103
+
104
+ ## Intended Use
105
+
106
+ This dataset can be used for:
107
+
108
+ - training medical pre-triage text classifiers;
109
+ - evaluating transformer-based classification models;
110
+ - comparing full fine-tuning with PEFT methods such as LoRA, Bottleneck MLP Adapter, and Frozen Encoder;
111
+ - academic experiments in NLP for healthcare.
112
+
113
+ ## Limitations
114
+
115
+ - The labels are rule-based and not clinically validated.
116
+ - The dataset is small.
117
+ - It may not represent real patient language or demographic diversity.
118
+ - It should not be used as a standalone clinical dataset.
119
+ - It does not include patient history, vital signs, comorbidities, or physical examination findings.
120
+ - It is designed for English text only.
121
+
122
+ ## Related Datasets
123
+
124
+ - [`cristian-untaru/medquad-retrieval-pretriage`](https://huggingface.co/datasets/cristian-untaru/medquad-retrieval-pretriage)
125
+
126
+ ## Related Models
127
+
128
+ ### Full Fine-Tuned Models
129
+
130
+ - [`cristian-untaru/distilbert-medical-triage`](https://huggingface.co/cristian-untaru/distilbert-medical-triage)
131
+ - [`cristian-untaru/biobert-medical-triage`](https://huggingface.co/cristian-untaru/biobert-medical-triage)
132
+ - [`cristian-untaru/roberta-medical-triage`](https://huggingface.co/cristian-untaru/roberta-medical-triage)
133
+ - [`cristian-untaru/biomedbert-medical-triage`](https://huggingface.co/cristian-untaru/biomedbert-medical-triage)
134
+
135
+ ### LoRA Models
136
+
137
+ - [`cristian-untaru/lora-distilbert-medical-triage`](https://huggingface.co/cristian-untaru/lora-distilbert-medical-triage)
138
+ - [`cristian-untaru/lora-biobert-medical-triage`](https://huggingface.co/cristian-untaru/lora-biobert-medical-triage)
139
+ - [`cristian-untaru/lora-roberta-medical-triage`](https://huggingface.co/cristian-untaru/lora-roberta-medical-triage)
140
+ - [`cristian-untaru/lora-biomedbert-medical-triage`](https://huggingface.co/cristian-untaru/lora-biomedbert-medical-triage)
141
+
142
+ ### Bottleneck MLP Adapter Models
143
+
144
+ - [`cristian-untaru/bottleneck-mlp-distilbert-medical-triage`](https://huggingface.co/cristian-untaru/bottleneck-mlp-distilbert-medical-triage)
145
+ - [`cristian-untaru/bottleneck-mlp-biobert-medical-triage`](https://huggingface.co/cristian-untaru/bottleneck-mlp-biobert-medical-triage)
146
+ - [`cristian-untaru/bottleneck-mlp-roberta-medical-triage`](https://huggingface.co/cristian-untaru/bottleneck-mlp-roberta-medical-triage)
147
+ - [`cristian-untaru/bottleneck-mlp-biomedbert-medical-triage`](https://huggingface.co/cristian-untaru/bottleneck-mlp-biomedbert-medical-triage)
148
+
149
+ ### Frozen Encoder Models
150
+
151
+ - [`cristian-untaru/frozen-encoder-distilbert-medical-triage`](https://huggingface.co/cristian-untaru/frozen-encoder-distilbert-medical-triage)
152
+ - [`cristian-untaru/frozen-encoder-biobert-medical-triage`](https://huggingface.co/cristian-untaru/frozen-encoder-biobert-medical-triage)
153
+ - [`cristian-untaru/frozen-encoder-roberta-medical-triage`](https://huggingface.co/cristian-untaru/frozen-encoder-roberta-medical-triage)
154
+ - [`cristian-untaru/frozen-encoder-biomedbert-medical-triage`](https://huggingface.co/cristian-untaru/frozen-encoder-biomedbert-medical-triage)