patient_id int64 | split large_string | eligible bool | severe_within_5y int8 | age_at_index float64 | sex large_string | income int64 | marital large_string | race large_string | ethnicity large_string | county large_string | n_events_before_index int64 | died_before_index bool |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | train | true | 0 | 32.85 | F | 116,206 | M | white | nonhispanic | Worcester County | 154 | false |
2 | train | true | 0 | 41.07 | M | 545,578 | D | native | nonhispanic | Essex County | 44 | false |
3 | train | false | 0 | 50.11 | M | 23,434 | M | white | nonhispanic | Norfolk County | 93 | true |
7 | train | true | 0 | 43.21 | M | 7,881 | M | asian | hispanic | Bristol County | 37 | false |
15 | train | true | 0 | 31.61 | F | 78,886 | M | asian | nonhispanic | Norfolk County | 101 | false |
19 | test | true | 0 | 50.11 | M | 23,434 | M | white | nonhispanic | Norfolk County | 98 | false |
20 | test | true | 0 | 54.39 | F | 167,027 | M | white | nonhispanic | Worcester County | 115 | false |
21 | train | false | 0 | 47.98 | F | 4,662 | D | white | nonhispanic | Barnstable County | 195 | true |
23 | train | true | 1 | 57.12 | F | 93,144 | S | white | nonhispanic | Plymouth County | 72 | false |
24 | train | true | 0 | 37.5 | F | 133,095 | M | white | hispanic | Hampshire County | 201 | false |
27 | test | true | 0 | 52.07 | F | 69,292 | S | white | hispanic | Essex County | 95 | false |
28 | test | false | 0 | 57.14 | M | 67,537 | M | white | nonhispanic | Bristol County | 88 | false |
32 | train | true | 0 | 39.36 | M | 136,240 | M | white | hispanic | Nantucket County | 33 | false |
33 | train | true | 0 | 59.58 | M | 275,035 | M | white | nonhispanic | Bristol County | 104 | false |
34 | test | true | 0 | 47.98 | F | 4,662 | S | white | nonhispanic | Barnstable County | 73 | false |
35 | train | true | 0 | 33.27 | M | 132,900 | M | white | nonhispanic | Worcester County | 74 | false |
39 | train | false | 0 | 51.96 | F | 51,434 | S | black | nonhispanic | Worcester County | 113 | true |
41 | test | true | 0 | 30.72 | F | 16,194 | M | white | nonhispanic | Hampden County | 101 | false |
42 | test | true | 0 | 35.74 | F | 37,980 | S | black | nonhispanic | Middlesex County | 126 | false |
47 | train | true | 0 | 52.89 | F | 42,572 | D | white | nonhispanic | Bristol County | 162 | false |
49 | train | true | 0 | 49.22 | M | 133,436 | M | white | nonhispanic | Middlesex County | 40 | false |
50 | test | true | 0 | 43.99 | F | 110,361 | M | white | nonhispanic | Middlesex County | 219 | false |
53 | train | true | 0 | 49.91 | F | 147,031 | D | white | nonhispanic | Worcester County | 152 | false |
55 | train | true | 0 | 58.62 | M | 78,464 | D | white | nonhispanic | Bristol County | 132 | false |
56 | train | false | 0 | 59.93 | M | 72,644 | S | white | nonhispanic | Middlesex County | 59 | true |
57 | test | true | 0 | 43.59 | M | 46,052 | D | white | nonhispanic | Essex County | 62 | false |
58 | train | true | 0 | 44.54 | M | 60,646 | M | white | nonhispanic | Hampden County | 56 | false |
59 | train | false | 0 | 47.66 | M | 73,055 | M | white | nonhispanic | Middlesex County | 104 | false |
61 | train | true | 0 | 31.58 | M | 143,635 | M | black | nonhispanic | Norfolk County | 30 | false |
63 | train | true | 1 | 45.47 | M | 129,616 | S | white | nonhispanic | Worcester County | 82 | false |
64 | train | false | 0 | 48.95 | M | 32,685 | M | white | nonhispanic | Worcester County | 74 | false |
68 | train | true | 0 | 49.44 | M | 61,619 | S | white | hispanic | Worcester County | 39 | false |
73 | train | true | 0 | 44.41 | M | 131,494 | S | black | nonhispanic | Norfolk County | 54 | false |
74 | train | true | 0 | 44.36 | F | 21,329 | S | white | nonhispanic | Bristol County | 155 | false |
75 | test | true | 0 | 38.91 | M | 48,228 | M | white | nonhispanic | Essex County | 42 | false |
76 | test | true | 0 | 30.54 | F | 65,678 | M | white | nonhispanic | Barnstable County | 99 | false |
82 | train | false | 0 | 37.11 | F | 77,016 | null | white | nonhispanic | Norfolk County | 262 | true |
85 | test | true | 0 | 45.47 | M | 129,616 | M | white | nonhispanic | Worcester County | 28 | false |
87 | train | true | 0 | 51.63 | F | 44,149 | M | white | nonhispanic | Bristol County | 88 | false |
88 | train | true | 0 | 42.41 | M | 44,122 | M | white | nonhispanic | Middlesex County | 72 | false |
90 | test | true | 0 | 37.11 | F | 77,016 | M | white | nonhispanic | Norfolk County | 27 | false |
92 | train | true | 0 | 54.97 | M | 10,229 | W | white | nonhispanic | Middlesex County | 95 | false |
93 | test | true | 0 | 46.49 | F | 95,599 | M | white | nonhispanic | Plymouth County | 50 | false |
97 | train | true | 0 | 46.76 | F | 32,855 | M | white | nonhispanic | Hampden County | 109 | false |
106 | train | true | 0 | 49.44 | M | 29,835 | S | black | nonhispanic | Worcester County | 39 | false |
107 | train | true | 0 | 47.84 | M | 109,644 | M | white | nonhispanic | Middlesex County | 100 | false |
113 | train | true | 0 | 41.58 | M | 303,194 | M | white | nonhispanic | Worcester County | 68 | false |
114 | train | false | 0 | 45.16 | F | 76,614 | null | white | nonhispanic | Worcester County | 106 | true |
117 | train | true | 0 | 33.1 | F | 115,199 | S | white | nonhispanic | Bristol County | 44 | false |
118 | train | false | 0 | 40.9 | F | 193,990 | M | white | nonhispanic | Plymouth County | 214 | true |
119 | train | true | 0 | 46.76 | M | 47,714 | M | white | hispanic | Norfolk County | 115 | false |
121 | train | false | 0 | 38.86 | M | 17,572 | D | black | nonhispanic | Suffolk County | 144 | false |
123 | train | false | 0 | 57.36 | M | 93,215 | W | black | nonhispanic | Worcester County | 234 | true |
124 | train | true | 0 | 55.64 | M | 98,051 | W | white | nonhispanic | Essex County | 63 | false |
125 | train | true | 0 | 45.16 | F | 76,614 | M | white | nonhispanic | Worcester County | 61 | false |
126 | train | false | 1 | 57.59 | M | 93,969 | M | white | hispanic | Middlesex County | 969 | false |
129 | train | true | 0 | 31.75 | M | 163,088 | W | white | nonhispanic | Worcester County | 57 | false |
131 | test | true | 0 | 38.63 | M | 114,626 | S | white | nonhispanic | Worcester County | 71 | false |
132 | train | true | 0 | 50.17 | M | 99,676 | D | black | nonhispanic | Bristol County | 105 | false |
134 | train | true | 0 | 30.33 | M | 4,398 | S | black | nonhispanic | Suffolk County | 23 | false |
138 | train | true | 1 | 58.89 | M | 130,654 | M | white | nonhispanic | Middlesex County | 95 | false |
139 | train | true | 0 | 57.38 | M | 27,764 | M | white | nonhispanic | Essex County | 104 | false |
143 | train | true | 0 | 50.86 | M | 101,220 | M | white | nonhispanic | Middlesex County | 114 | false |
144 | test | true | 0 | 44.51 | F | 30,113 | S | white | nonhispanic | Plymouth County | 62 | false |
149 | train | true | 0 | 43.26 | M | 54,992 | S | white | nonhispanic | Middlesex County | 40 | false |
151 | test | true | 0 | 41.59 | M | 102,473 | M | white | nonhispanic | Bristol County | 39 | false |
153 | train | true | 1 | 54.75 | M | 89,507 | S | white | nonhispanic | Norfolk County | 130 | false |
154 | test | true | 0 | 30.19 | M | 199,117 | M | white | nonhispanic | Norfolk County | 71 | false |
155 | test | true | 0 | 32.91 | M | 46,175 | D | white | nonhispanic | Essex County | 42 | false |
157 | test | true | 0 | 40.62 | M | 41,883 | M | white | nonhispanic | Middlesex County | 67 | false |
158 | test | true | 0 | 46.82 | M | 92,521 | M | white | nonhispanic | Franklin County | 42 | false |
159 | train | false | 0 | 57.46 | F | 998,229 | S | white | nonhispanic | Middlesex County | 335 | true |
160 | test | true | 0 | 43.35 | F | 13,192 | S | white | hispanic | Essex County | 54 | false |
168 | train | true | 0 | 51.01 | M | 817,424 | M | white | nonhispanic | Norfolk County | 86 | false |
169 | train | true | 0 | 31.72 | F | 58,208 | M | white | hispanic | Norfolk County | 93 | false |
172 | train | true | 0 | 35.24 | F | 68,211 | S | white | nonhispanic | Worcester County | 201 | false |
174 | test | true | 0 | 35.62 | F | 387,570 | S | black | nonhispanic | Middlesex County | 110 | false |
176 | train | true | 0 | 47.02 | M | 86,598 | W | white | hispanic | Hampshire County | 111 | false |
181 | test | true | 0 | 48.25 | M | 84,054 | S | white | nonhispanic | Bristol County | 113 | false |
182 | test | true | 0 | 45.15 | M | 15,350 | M | white | nonhispanic | Worcester County | 80 | false |
183 | test | false | 0 | 39.33 | F | 159,366 | null | white | nonhispanic | Suffolk County | 88 | true |
187 | train | false | 0 | 56.38 | M | 131,568 | M | white | nonhispanic | Bristol County | 126 | true |
188 | train | true | 0 | 32.41 | F | 23,365 | M | white | nonhispanic | Bristol County | 66 | false |
190 | test | true | 0 | 33.68 | M | 79,603 | M | white | nonhispanic | Middlesex County | 35 | false |
191 | test | true | 0 | 39.24 | M | 95,616 | S | white | nonhispanic | Middlesex County | 50 | false |
193 | train | true | 0 | 50.05 | M | 107,491 | M | white | nonhispanic | Worcester County | 63 | false |
196 | train | false | 0 | 39.88 | F | 198,661 | null | white | nonhispanic | Middlesex County | 26 | true |
197 | train | true | 0 | 38.65 | M | 11,165 | M | white | nonhispanic | Hampden County | 27 | false |
201 | test | true | 0 | 44.37 | M | 33,288 | M | black | nonhispanic | Suffolk County | 122 | false |
211 | test | true | 0 | 36.5 | M | 106,380 | M | white | nonhispanic | Essex County | 50 | false |
212 | train | false | 0 | 43.3 | M | 982,363 | M | asian | nonhispanic | Middlesex County | 51 | true |
214 | train | true | 0 | 34.68 | F | 1,367 | M | black | nonhispanic | Bristol County | 146 | false |
215 | train | false | 0 | 36.38 | F | 11,962 | M | asian | nonhispanic | Suffolk County | 139 | false |
216 | train | false | 0 | 51.07 | F | 69,430 | M | white | nonhispanic | Middlesex County | 108 | false |
217 | train | true | 0 | 45.5 | M | 7,240 | M | white | nonhispanic | Barnstable County | 43 | false |
218 | train | false | 0 | 36.38 | M | 26,477 | null | white | nonhispanic | Middlesex County | 92 | true |
219 | train | true | 0 | 56.38 | M | 131,568 | S | white | nonhispanic | Bristol County | 72 | false |
228 | train | true | 0 | 31.86 | F | 99 | M | white | nonhispanic | Hampden County | 145 | false |
231 | train | true | 0 | 33.56 | F | 142,549 | M | white | nonhispanic | Middlesex County | 55 | false |
232 | train | true | 0 | 43 | F | 55,148 | D | black | nonhispanic | Franklin County | 95 | false |
synthea-workshop-data
Workshop data for Transformer Architectures for Computational Social Science (ICSC 2026, Oxford). A 50,000-patient subsample of a locally generated Synthea population (Massachusetts, ages 35–65, 10 years of history each), split 40,000 train / 10,000 test.
These are not real patients. Synthea is a rule-based simulator. Any structure recovered from this data reflects the generator's rules rather than epidemiology, and no result here says anything about human health.
| File | What it is |
|---|---|
sequences.parquet |
One integer-coded event sequence per patient |
cohort.parquet |
One row per patient: labels, background attributes, split |
raw-sample.parquet |
500 patients with human-readable event descriptions |
vocabulary.csv |
1036 tokens — 5 special, 46 background, the rest event types |
severe-codes.csv |
The 38-code composite defining the severe-disease outcome |
person-embeddings.npz |
Precomputed frozen encoder embeddings, so Colab skips a forward pass |
The downstream task is severe-disease onset, not mortality — mortality leaked catastrophically. The base rate is 5.7%, so report average precision alongside AUC, and score every model against a trivial baseline of age plus record volume.
Pairs with the model at carlomarxx/synthea-bert.
Published from carlomarxdk/workshop-transformers at
commit ffae814.
- Downloads last month
- -