id stringlengths 9 9 | primary stringclasses 12
values | alternate stringclasses 12
values | urgency stringclasses 2
values | ambiguous bool 2
classes |
|---|---|---|---|---|
t_ctrb06c | Gastroenterology | Start with a GP | routine | false |
t_eafr6g4 | Start with a GP | null | routine | false |
t_drz1ixk | Cardiology | Start with a GP | routine | false |
t_cghgqjy | ENT | Start with a GP | soon | false |
t_do3q6ve | Start with a GP | null | routine | false |
t_dqd4bpe | Neurology | Start with a GP | routine | false |
t_ecvv9u8 | Cardiology | null | soon | false |
t_f9i4lge | ENT | Neurology | routine | false |
t_ecls7cc | Neurology | Start with a GP | routine | false |
t_ghn48dw | Urology | Start with a GP | soon | false |
t_cwwvr4n | ENT | Start with a GP | soon | false |
t_cktrrpb | Mental health | null | routine | false |
t_fbdm1j5 | Start with a GP | Orthopedics | soon | true |
t_cwbpbmg | Orthopedics | Start with a GP | soon | false |
t_eauq34v | Orthopedics | null | routine | false |
t_dmv3u1t | Start with a GP | Gastroenterology | routine | false |
t_ec5oedz | Eye care | Neurology | routine | false |
t_ebs5g21 | Start with a GP | null | routine | false |
t_dmzn9mo | Start with a GP | Dentistry | soon | true |
t_cxg3c9h | Mental health | Start with a GP | routine | false |
t_dai4ybt | ENT | null | routine | false |
t_eb9cypd | Urology | null | routine | false |
t_dbp9x2j | Orthopedics | Start with a GP | routine | false |
t_dbeag14 | Eye care | null | routine | false |
t_chnd5po | Eye care | Neurology | routine | false |
t_fc9iv21 | Dentistry | ENT | routine | false |
t_cli8j6g | Eye care | Start with a GP | soon | false |
t_eaidgrt | Gastroenterology | Start with a GP | soon | false |
t_cuicg6s | Orthopedics | Start with a GP | soon | false |
t_ggug8ji | Mental health | null | routine | false |
t_domy5yc | Dermatology | null | routine | false |
t_fagalu9 | Mental health | Start with a GP | soon | false |
t_cizdn8p | Cardiology | Start with a GP | routine | false |
t_cm69eno | Start with a GP | ENT | routine | false |
t_dbe35e0 | Mental health | Start with a GP | routine | false |
t_dozqpt5 | Eye care | null | routine | false |
t_daujuvs | ENT | Start with a GP | soon | false |
t_cvfnfpq | Neurology | Start with a GP | routine | false |
t_f933i93 | Dermatology | null | routine | false |
t_ecwgw93 | ENT | Start with a GP | routine | false |
t_dmr9zb7 | Gastroenterology | Start with a GP | routine | false |
t_fana8oo | Cardiology | Start with a GP | soon | false |
t_e9rx44w | Urology | Start with a GP | routine | false |
t_eb8x2i2 | Orthopedics | null | soon | false |
t_clmf1vv | Start with a GP | null | routine | false |
t_ci24kc1 | Start with a GP | Cardiology | soon | true |
t_cibleb1 | ENT | null | routine | false |
t_dnu6xp4 | Start with a GP | Cardiology | soon | true |
t_cg5gli5 | ENT | Dentistry | routine | false |
t_cfgovqj | Start with a GP | Cardiology | routine | false |
t_dbosmn9 | Mental health | null | routine | false |
t_dpdme5w | Urology | null | routine | false |
t_dqe3xl8 | ENT | null | soon | false |
t_cju6tw6 | Dermatology | Urology | routine | false |
t_cwpk8d8 | Orthopedics | Neurology | soon | false |
t_j0kig9p | Urology | Start with a GP | soon | false |
t_dbtf6yw | Gastroenterology | Start with a GP | soon | false |
t_drdd8vo | Start with a GP | Cardiology | soon | false |
t_daapgns | Dermatology | null | routine | false |
t_dqnf8sn | Ob-Gyn | Start with a GP | routine | false |
t_cmyvqn5 | ENT | null | soon | false |
t_ghgupu0 | Ob-Gyn | Start with a GP | soon | false |
t_dp994q0 | Ob-Gyn | null | routine | false |
t_e9ja5bc | ENT | null | routine | false |
t_d9p1fpl | Start with a GP | Gastroenterology | routine | false |
t_cl1ux1e | Start with a GP | Ob-Gyn | routine | true |
t_dp2mwwk | Gastroenterology | Dentistry | routine | false |
t_cvnbh2v | Ob-Gyn | null | routine | false |
t_cjkc3sw | Neurology | Start with a GP | routine | false |
t_cy3sa22 | Orthopedics | null | routine | false |
t_cvat486 | Neurology | null | soon | false |
t_dmxd8oi | Cardiology | Start with a GP | routine | false |
t_dnuma29 | Start with a GP | Cardiology | routine | true |
t_cilwo2a | Ob-Gyn | Start with a GP | routine | false |
t_doirnfo | Start with a GP | Mental health | routine | true |
t_ecj2qnr | Gastroenterology | Dentistry | routine | false |
t_cxejkk9 | Start with a GP | null | routine | false |
t_dpn89nk | Orthopedics | Start with a GP | soon | false |
t_cwz8rvd | ENT | null | routine | false |
t_cm65btk | Orthopedics | Start with a GP | routine | false |
t_dnh17m5 | Ob-Gyn | null | routine | false |
t_fasc27j | Start with a GP | null | soon | false |
t_cmi36uk | Ob-Gyn | Start with a GP | soon | false |
t_cih3y0t | Cardiology | Start with a GP | routine | false |
t_cj7ocwg | Neurology | null | soon | false |
t_izam2id | Mental health | Start with a GP | soon | false |
t_ci976l4 | Gastroenterology | Start with a GP | soon | false |
t_cyfzu5c | Dermatology | null | routine | false |
t_doyc691 | Eye care | null | soon | false |
t_cxfw5b6 | Gastroenterology | Start with a GP | soon | false |
t_cld2mwj | Gastroenterology | Start with a GP | routine | false |
t_cjr8omf | Mental health | null | soon | false |
t_fafi40g | Neurology | null | soon | false |
t_cm7glk7 | Cardiology | Start with a GP | routine | false |
t_ecxqeec | Start with a GP | Neurology | soon | true |
t_daogays | Orthopedics | null | routine | false |
t_fa2k3lx | Orthopedics | null | soon | false |
t_cjk54v3 | Gastroenterology | null | soon | false |
t_cmc6313 | ENT | Dentistry | routine | false |
t_ck1b4lm | Orthopedics | Start with a GP | routine | false |
End of preview. Expand in Data Studio
Doc Compass routing labels
Which kind of doctor to book, for 734 real patient posts from r/AskDocs. These are the labels used to train and test the Doc Compass router (CMU 24-679, Project 1, Akshara N.S. and Sohum Goel).
Post ids and labels only, no post text. The posts are real people's health questions, so we do not redistribute them. The text comes from stellalisy/MediQ_AskDocs; scripts/prepare_data.py in the GitHub repo downloads it and joins it to these ids.
Fields
| Field | Values |
|---|---|
id |
The post's MediQ_AskDocs id root (the part of MediQ's id before the first -) |
primary |
The kind of doctor to book: one of 11 specialties or Start with a GP. In the emergency split it is Emergency; in skip it is Skip |
alternate |
Optional second label that would also be reasonable |
urgency |
routine, soon or emergency; empty for Skip |
ambiguous |
True when the labeller couldn't really decide |
The 11 specialties: Dermatology, Orthopedics, ENT, Gastroenterology, Neurology, Urology, Ob-Gyn, Mental health, Cardiology, Eye care, Dentistry. What each covers is in docs/label-set.md.
Splits
| Split | Posts | How it's drawn |
|---|---|---|
train |
362 | Mostly posts a router trained on public data rated likely for each label, so rare specialties have examples, plus random posts |
validation |
50 | Random posts only, fixed in advance, so it has the same label mix as test |
test |
115 | A plain random sample |
emergency |
54 | Labelled Emergency: kept out of the router, used to test the emergency check |
skip |
153 | Not a "which doctor" question (medication or lab-result questions, already under a specialist) |
Splits are by post; no post is in two splits.
How the data was made
- Posts: MediQ_AskDocs real posts (10,366 unique after removing repeats; its synthetic folder is skipped). Reddit handles and links removed; posts of 25β400 words kept; 734 drawn with a fixed seed (24679).
- Labels: drafted by an AI assistant from a written guideline (the label scopes and 22 published emergency warning signs from MedlinePlus and the CDC) and reviewed by the authors.
- No augmentation of these posts. The public set used for stage-1 training (Patient Comments and Specialist Types, Mendeley Data, CC BY 4.0) is separate and not included here.
Exploratory data analysis
| Label | Train | Validation | Test | Total |
|---|---|---|---|---|
| Start with a GP | 88 | 22 | 47 | 157 |
| ENT | 42 | 2 | 10 | 54 |
| Gastroenterology | 29 | 6 | 11 | 46 |
| Neurology | 29 | 2 | 14 | 45 |
| Orthopedics | 27 | 3 | 9 | 39 |
| Ob-Gyn | 27 | 6 | 6 | 39 |
| Dermatology | 28 | 1 | 5 | 34 |
| Urology | 22 | 3 | 5 | 30 |
| Eye care | 29 | 0 | 1 | 30 |
| Mental health | 20 | 2 | 1 | 23 |
| Cardiology | 14 | 2 | 5 | 21 |
| Dentistry | 7 | 1 | 1 | 9 |
| Total | 362 | 50 | 115 | 527 |
| Split | Posts | Words per post, median (IQR) | Range | Ambiguous | With an alternate | Urgency |
|---|---|---|---|---|---|---|
| train | 362 | 130 (95β209) | 27β394 | 31 | 211 | 235 routine, 127 soon |
| validation | 50 | 150 (111β237) | 52β398 | 1 | 38 | 28 routine, 22 soon |
| test | 115 | 153 (102β215) | 28β395 | 9 | 103 | 65 routine, 50 soon |
| emergency | 54 | 155 (102β222) | 51β373 | 44 | 40 | 54 emergency |
| skip | 153 | 134 (84β214) | 28β385 | 0 | 0 | β |
What stands out:
- "Start with a GP" dominates: 30% of all routable posts, 41% of test. Any router has to beat "always answer GP" (40.9% top-1 on test).
- Rare labels: Dentistry has 9 posts in total, and Eye care, Mental health and Dentistry have one test post each, so per-label test scores for them mean little.
- Train is shaped, validation and test are not: the targeted draw gives train more rare-specialty posts than real posts have, which is why Eye care is 29 in train but 1 in test.
- 21% of the drawn posts (153 of 734) are Skip: many AskDocs posts are not a which-doctor question.
- Emergency is over-labelled: the guideline said to choose Emergency when unsure, and 44 of the 54 are marked ambiguous.
Licence and terms
- These labels: CC BY-NC 4.0.
- The posts are MediQ_AskDocs (MIT on its dataset card) and were written by Reddit users; Reddit's terms restrict training models on its content. We used the researcher-released dataset and did not scrape Reddit. Non-commercial use only.
Intended use and limits
- For: training and testing which-doctor routing on patient-written text, in coursework and research.
- Not for: diagnosis, triage or emergency detection, or any decision about a real person's care.
- Limits: the labels are not clinically validated, and there is no inter-annotator agreement score. English only; r/AskDocs posters are self-selected, posted 2013β2021, and the routing assumes US outpatient care.
- Ethics: don't try to identify the people who wrote these posts, and don't quote posts verbatim.
More
- Full data card:
docs/data-card.md - Results on these splits:
docs/routing-results.md - Trained router:
akshara-ns/doc-compass
- Downloads last month
- 21
