Expert annotation and agreement¶
Blind annotation¶
Reviewer accounts act as annotators (app/annotations.py, Blind expert annotation in the workbench). annotation_task returns the transcript, the opportunities (cue, delivered event, response window), the critical rules and the anchor domains, with every automated status removed. Annotators record, as a clinician or native speaker:
- each opportunity as
taken,not_taken,not_availableorunassessable; - domain ratings on 0–2;
- whether each critical rule applies or an unsafe action occurred.
An annotation is marked not blind if its author had already opened automated evidence for that encounter (dashboard drill-downs are audited with the encounters they reveal). The report uses blind annotations only.
Agreement report¶
agreement_report compares automated output with blind expert labels (app/agreement.py, pure functions):
| Statistic | Definition |
|---|---|
| Evidence precision / recall | Automated taken vs expert taken, over opportunities both sides judged available; with false credit and missed credit counts |
| Safety-flag sensitivity | Share of expert-identified unsafe actions the deterministic rules caught |
| Domain weighted kappa | Quadratic-weighted Cohen's kappa, automated state (0–2) vs expert rating |
| ICC(A,1) between experts | Two-way random, absolute agreement, single rater, on encounter×domain rows rated by every expert |
| Intervals | Percentile 95% cluster bootstrap resampling learners (1000 resamples, fixed seed) |
The implementations are tested against references: ICC on Shrout & Fleiss (1979) data gives 0.29, and weighted kappa matches scikit-learn. Each report lists its assumptions. Agreement with experts is necessary but not sufficient evidence of validity.