File size: 6,169 Bytes
29aeb0b |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 |
---
language:
- en
license: cc0-1.0
task_categories:
- text-generation
tags:
- medical
- clinical
- adverse-events
- instruction-tuning
- alpaca
pretty_name: Adverse Event Symptom Narrative Generation Dataset
size_categories:
- n>1M
---
# Adverse Event Symptom Narrative Generation Dataset
## Dataset description
A dataset of VAERS symptom narratives and diagnostic (laboratory) findings transformed into instruction-tuning format (Alpaca) to finetune conditional and unconditional generative models.
This dataset contains 2,649,322 training examples derived from VAERS (Vaccine Adverse Event Reporting System) data for the years 1990-2025.
The data has been transformed into instruction-tuning format (Alpaca) suitable for fine-tuning language models on clinical adverse event reporting.
### Dataset summary
- **Task**: Clinical text generation from structured patient and vaccine information
- **Language**: English
- **Output field**: SYMPTOM_TEXT
- **Patient history included**: No
- **Format**: Alpaca instruction-tuning format
- **Years covered**: 1990-2025
- **Total examples**: 2,649,322
### Key features
- **Automatic deduplication**: One training example per VAERS_ID (consolidates multiple vaccines per patient)
- **Manufacturer exclusion**: Vaccine manufacturers excluded to avoid brand bias
- **List preservation**: Vaccines and symptoms preserved as lists for multiple-value fields
- **Quality filtering**: Records with empty output fields excluded
## Data structure
Each example contains three fields following the Alpaca format:
- **instruction**: Task description for the model
- **input**: Structured patient and vaccine information including:
- Age (years)
- Sex
- Vaccine(s) administered (multiple vaccines joined with commas)
- Symptoms (multiple symptoms joined with commas, MedDRA versions filtered)
- Patient history (optional, if `include_history=True`)
- **output**: Clinical narrative text from VAERS reports
### Data fields
| Field | Type | Description |
|-------|------|-------------|
| instruction | string | Task instruction for the model |
| input | string | Structured patient/vaccine information (newline-separated) |
| output | string | Clinical narrative (SYMPTOM_TEXT) |
### Internal data representation
While the published dataset uses Alpaca format (string fields), the internal processing preserves structured data:
- `vaccines_list`: List of vaccine types (e.g., ["COVID19", "FLU"])
- `symptoms_list`: List of symptoms (e.g., ["Headache", "Fatigue", "Myalgia"])
- `manufacturers_list`: List of manufacturers (excluded from training data)
- `dose_series_list`: List of dose numbers
### Example Record
```json
{
"instruction": "Generate a clinical symptom description based on the patient and vaccine information provided",
"input": "Age: 0.2\nSex: F\nVaccine: DTP\nSymptoms: Agitation",
"output": "Loud intense cry with screaming for 1 1/2 hrs. Seen next day, child normal."
}
```
## Source data
This dataset is derived from the CDC VAERS (Vaccine Adverse Event Reporting System) public data, available at:
https://vaers.hhs.gov/data.html
VAERS is a national early warning system to detect possible safety problems in U.S.-licensed vaccines. The system is co-managed by the CDC and FDA.
### Data processing
The raw VAERS data consists of three CSV files per year:
- VAERSDATA: Patient demographics and clinical narratives
- VAERSVAX: Vaccine administration details
- VAERSSYMPTOMS: Coded symptoms using MedDRA terminology
Processing steps:
1. **Loading**: CSV files loaded with automatic encoding detection (supports UTF-8, Latin-1, Windows-1252)
2. **Joining**: Tables joined by VAERS_ID
3. **Deduplication**: Multiple vaccines per patient consolidated into single training example
4. **Filtering**: MedDRA version numbers removed, empty outputs excluded, manufacturers excluded
5. **Transformation**: Converted to Alpaca instruction-tuning format
## Intended use
### Primary use cases
- Fine-tuning language models for clinical adverse event reporting
- Training models to generate clinical narratives from structured patient data
- Research in medical natural language generation
- Development of clinical documentation assistance tools
### Out-of-scope use
- Clinical decision-making without expert oversight
- Automated diagnosis or treatment recommendations
- Replacement for professional medical judgment
## Limitations and biases
### Data limitations
- **Reporting bias**: VAERS is a passive surveillance system; not all adverse events are reported
- **Causality**: VAERS reports do not establish causal relationships between vaccines and adverse events
- **Completeness**: Not all fields are complete in every report
- **Temporal coverage**: Dataset covers years 1990-2025
### Potential biases
- **Reporting patterns**: Healthcare providers and vaccine manufacturers are required to report certain events, while patient reporting is voluntary
- **Media influence**: Increased reporting following media coverage of vaccine-related events
- **Temporal bias**: Reporting practices and data quality have evolved over time
## Ethical considerations
- This dataset contains information about adverse events following vaccination
- Reports in VAERS do not establish causation
- Models trained on this data should not be used for medical decision-making without appropriate expert oversight
- Users should be aware of the limitations of passive surveillance data
## License
This dataset is derived from U.S. government public data and is available under the Creative Commons Zero (CC0) license.
## Citation
If you use this dataset, please cite the original VAERS data source:
```
Vaccine Adverse Event Reporting System (VAERS)
Centers for Disease Control and Prevention (CDC) and Food and Drug Administration (FDA)
Available at: https://vaers.hhs.gov/data.html
```
## Dataset Creation
**Created**: 2025-11-10
**Tool**: VAERS Fine-Tuning Preprocessor
**Repository**: https://github.com/chrisvoncsefalvay/vaers-ft-preprocessor
**Processing configuration**:
- Output field: SYMPTOM_TEXT
- Include history: No
- Years processed: 1990-2025
- Total examples: 2,649,322
|