Clinical AI with honest measurement
Summary
An AI system that reads every call to Línea de Ayuda Origen, a national mental health helpline in Mexico, the way an experienced counselor would, and a blind validation study that says how close it gets. Agreement with expert counselors on high-risk calls: 81.6% on 129 calls, with the confidence interval and the human ceiling published next to it. First measurement at month nine of a 24-month engagement; the system is in production.
Context and constraints
Línea de Ayuda Origen, run by Fundación Origen, handles tens of thousands of calls a year. Every call carries mental health data, so the work falls under Mexican privacy law and under the helpline's own duty of care. Three things were not negotiable: clinical judgment decides and the AI only suggests and pre-fills; the AI never speaks to the caller; raw audio and transcripts never leave the client's controlled environment.
The problem, and where it started
Each call was logged by hand in a legacy CRM. Leadership could not answer what actually reaches the line (reasons for calling, types of violence, level of risk), could not be certain that no serious call slips through, and owed its funder a verifiable number: does an AI read a call with the quality of an experienced counselor? The contractual bar was 80% agreement.
The baseline was unmeasured. The historical archive was not linked to the CRM, so there was no ground truth to score against. Before anything could be promised, the team had to prove that a ground truth could be built.
My role
The system has four parts: data pipeline, risk detector, clinical validation portal and measurement harness. I designed and built them and wrote the governing documents (study manual, variable dictionary, committee instrument, results report), as technical counterpart to the helpline's operations lead and its director, who set the requirements. Nine of the helpline's counselors did the labeling; the classification instrument was agreed with them, not imposed. The client's leadership reviews every result before it reaches the funder.
Decisions, and what was turned down
- Build a ground truth on new calls, blind. Nine counselors labeled stratified samples without seeing the AI's answer, in balanced blocks, with a shared core of calls that everyone labels. Discarded: scoring against the historical archive, which had no reliable labels.
- Binary risk as the primary metric. High risk versus not high risk, weighted by stratum. Discarded: exact agreement on the full scale, because neighboring risk levels are confused by the experts themselves. Exact and within-one-level figures are reported alongside, not hidden.
- Publish the human ceiling next to the AI's number. Experts agree exactly with each other on 43.6% of calls, weighted kappa 0.727. Discarded: a report that says "81.6%" alone, which misleads in both directions.
- Keep every labeler in the result. Excluding the two counselors who agreed least with the AI would have lifted the figure to 83.1%. Rejected: on the shared core those two were among the most aligned with their peers. There was no statistical basis, only convenience.
- Separate risk from violence in the instrument. Level of risk is what the agreement requires; types and modalities of violence are what the team needs to operate. Conflating them had inflated the first detector.
Result
| Measure | Value | How it was obtained |
|---|---|---|
| Agreement AI vs. expert, high risk | 81.6%, 95% interval 73.8 to 89.3 | 129 blind-labeled calls, binary definition, stratum weights |
| Within one level; exact | 93.7%; 56.6% | Same sample, full risk scale |
| Sensitivity; specificity | 85.4%; 60.5% | The system over-alerts rather than misses; the counselor dismisses false positives |
| Human ceiling | Kappa 0.727; 43.6% exact agreement among nine experts | Shared core of the labeling design |
| Corpus | 30,173 historical recordings transcribed, 99.99% of the batch; anti-PII check closed with zero residues | Self-hosted speech-to-text on ephemeral GPU; two-layer anonymization, rules plus a language-model pass |
The point estimate clears the 80% target. The lower bound of the interval does not. The results report says exactly that, with no rounding in its own favor. A second measurement, targeting 90% sustained, is the next milestone. Source: the project's reproducible concordance harness and its first results report, delivered to the client and accepted; the data and label files stay outside this site by design.
What did not work
The first version of the detector was alarmist. It over-flagged the highest risk level, partly because risk and violence were tangled in one instrument. Version 2.2 reclassified the whole corpus and cut the top-level flags to a third. And 26.8% of sampled calls could not be classified at all, not because of the model but because overlapping voices defeated transcription. That finding opened a speaker-separation workstream that is still in progress.
Try it
The arithmetic behind the table runs in your browser in the concordance calculator: set the sample size, the observed agreement, the target and the human ceiling, and watch the interval and the verdict move. The data there is synthetic; the method is the one in the study. The results table above, with its interval and its human ceiling, remains the artifact.
What is not disclosed
The funder of the study is not named. No person is named: counselors, coordinators and directors appear only as roles and counts. No cost, vendor or infrastructure detail of the client appears here.
How this maps to Canadian frameworks
In Ontario, a helpline's call records would be personal health information under PHIPA. The Information and Privacy Commissioner's recent guidance for AI in hospitals asks for a governance committee, a privacy impact assessment, data minimization and a human in the loop: here that is the client's committee that reviews every result, a two-layer anonymization closed with zero residues, and the rule that clinical judgment decides. Health Canada's guidance for machine-learning-enabled medical devices asks for transparent performance and a plan for change; the frozen test set, the versioned prompts and the published interval with its human ceiling are that discipline applied to decision support before anyone calls it a device.