# AutoTox: AI-Powered Toxicology Interpretation, Deployed at UTMB

> **Deployed in production · UTMB Clinical Pathology**
> AI-assisted toxicology interpretation, live in the clinical pathology workflow at UTMB — turning a 15-minute manual sign-out into a 5-minute review, and lifting a four-person team from ~50 to ~500 cases a week.

**Shipped 2024** · James Weatherhead & Gladson John, lead engineers, under Peter McCaffrey, MD.

| | |
|---|---|
| Faster sign-out | **66%** (15 → 5 min) |
| Review throughput | **10×** (50 → 500 cases/week) |
| Idea to production | **5 weeks** |
| Metrics read per case | **40+** |

- Retool case study: https://retool.com/blog/how-utmb-improved-diagnostics-ai
- Demo video: https://www.youtube.com/watch?v=Di7O9hJg1aM

---

Most clinical AI never leaves the demo. AutoTox is in the daily workflow at a hospital — drafting toxicology interpretations that a pathologist verifies and signs out.

I co-led engineering on AutoTox with Gladson John, under **Dr. Peter McCaffrey** (Director of Pathology Informatics at the John Sealy Diagnostic Center; Chief AI Officer, UTMB). It went from idea to production in **five weeks** — a timeline McCaffrey called "unheard of." The details below are drawn from UTMB's Retool case study.

## The problem: a slow, manual sign-out

Toxicology sign-out is a reading task that doesn't scale. For every case, a pathologist works through **more than 40 quantitative metrics** alongside the patient's demographics and medication list, then writes an interpretation — roughly **15 minutes per case**.

UTMB's four-person pathology team could clear only about **50 cases a week** that way, and demand kept climbing. The bottleneck wasn't judgment; it was the time it takes a human to read 40 numbers, over and over, without missing one.

## What we built

AutoTox is a decision-support tool wired into the live clinical pathology workflow. It pulls each case's results, asks a large language model to draft a plain-language interpretation, and hands the pathologist a single screen to review, correct, and sign out — without any patient data leaving UTMB's governed environment.

### How a case flows through it

1. **Extract.** A Python job runs a SQL query that pulls the case's toxicology results out of UTMB's medical record system into a PostgreSQL database.
2. **Interpret.** AutoTox sends those results to OpenAI GPT models through a private, HIPAA-compliant Azure backend, which returns a simplified report summary in seconds.
3. **Review.** The pathologist sees a case list with metadata, the raw test results, and the AI's interpretive text side by side — then verifies the findings and leaves feedback on the AI output.
4. **Sign out.** Verified results flow back into the medical record.

```
  Urine tox panel
         │
         ▼
  Python + SQL  ───►  PostgreSQL          ┐
         │                                │  all inside UTMB's
         ▼                                │  security perimeter
  OpenAI GPT  (private, HIPAA Azure)      │  (self-hosted Retool)
         │                                │
         ▼                                │
  Plain-language summary  (seconds)       ┘
         │
         ▼
  Pathologist reviews + verifies  ───►  Medical record
```

The model drafts; a pathologist decides.

## The human stays in the loop

Every AI-generated report is **verified and validated by a pathologist before it is signed out**. The model never has the last word — it produces a first draft that a licensed physician confirms or corrects.

That design also turns the AI's stamina into a safety feature. Because it reads all 40-plus levels on every single case, AutoTox surfaces **errors a human skimming that many numbers might miss** — so the tool didn't just speed sign-out up, it improved accuracy.

## The results

| Metric | Before | With AutoTox |
|---|---|---|
| Sign-out time per case | ~15 min | ~5 min (66% faster) |
| Cases reviewed per week | ~50 | ~500 (10×) |
| Toxicology metrics per case | 40+ read by hand | 40+ read automatically, every case |
| Idea to production | — | 5 weeks |

> "It looks professional, it's easy to use, it's interactive, it doesn't go down."
> — End-user feedback, from the Retool case study

## Built to run inside a hospital

Getting AI into a clinical workflow is mostly a governance problem, not a modeling one. AutoTox runs on a **self-hosted Retool** front end with a Python and PostgreSQL data layer, and reaches OpenAI GPT models only through a **private Azure backend**.

Self-hosting is what made that acceptable: it kept the whole system inside UTMB's security perimeter and compliant with both HIPAA and internal protocols. Protected health information never touches an un-governed endpoint — the same boundary condition that drives my dissertation research on privacy-preserving clinical LLMs (https://james.jcweatherhead.com/research/).

## Why it matters

AutoTox is the kind of clinical AI I care about building: not a proof of concept, but a tool clinicians actually use, that saves real time, and that keeps a physician accountable for every result. The pattern — extract structured data, let a model draft the tedious interpretive layer, and put an expert in front of the output — generalizes to a lot of high-volume interpretive sign-outs beyond toxicology.

## The team

- **Peter McCaffrey, MD** — Director of Pathology Informatics, John Sealy Diagnostic Center; Chief AI Officer, UTMB
- **Gladson John** — lead engineer
- **James Weatherhead** — lead engineer

## Read more

- **Case study:** How UTMB Improved Diagnostic Testing for Thousands of Patients Using AI (Retool, 2024) — https://retool.com/blog/how-utmb-improved-diagnostics-ai
- **Demo & discussion:** AutoTox on YouTube — https://www.youtube.com/watch?v=Di7O9hJg1aM

Facts and figures on this page are drawn from UTMB's Retool case study, "How the University of Texas Medical Branch Improved Diagnostic Testing for Thousands of Patients Using AI" (2024).

---

*AutoTox is a clinical decision-support tool. Every interpretation is reviewed and verified by a licensed pathologist before sign-out; the system does not make autonomous diagnostic decisions.*
