TRANSMISSION // 2504.11792v2
Can language models spot overdose risk in claims data?
Source published
In a retrospective claims-data study, fine-tuned GPT-4o achieved the highest F1 in one comparison with traditional models. The test set was oversampled, so real-world performance remains uncertain.

Could patterns in a patient’s medical history help flag a future overdose? Researchers tested two language models on insurance claims, comparing their predictions with conventional machine-learning models. The results are promising in one setup, but they do not establish that the models are ready to guide care.
Predicting a drug overdose before it happens could help clinicians consider whether someone needs closer assessment or support. But medical histories are lengthy, and recorded patterns can be hard to interpret. In a preprint study, researchers tested whether large language models (LLMs) could use insurance-claims records to estimate whether a patient would have a recorded overdose within seven or 30 days.
The team evaluated OpenAI’s GPT-4o and Google’s MedGemma-27B-text-it. They compared them with Random Forest and XGBoost using de-identified Merative MarketScan claims from 2020–2022. The records include diagnoses, procedures, prescriptions and encounters. The researchers selected adults with at least a year of continuous data and five or more medical events.
To prepare records for the LLMs, the researchers converted them into text. Some prompts showed visit-by-visit details; others summarized counts of diagnoses, procedures and medications. Information appeared either as readable descriptions or medical codes. The models were tested without task-specific training (zero-shot) and, where possible, after fine-tuning on study examples. Random Forest and XGBoost instead used numerical counts of selected medical features.
Results depended on the setup
In the comparison using summarized, descriptive information, fine-tuned GPT-4o achieved the highest reported F1 score among the tested models: 84.5 for the seven-day window and 84.8 for the 30-day window. F1 combines precision—the share of positive predictions that are correct—with recall—the share of actual positive cases identified. XGBoost, the strongest traditional baseline in this comparison, scored 78.9 and 77.3, respectively.
These figures describe a particular model, training approach and input format; they are not a general ranking across every setup or measure. GPT-4o’s zero-shot F1 scores were lower than its fine-tuned results. Zero-shot MedGemma often identified more overdose cases, but also incorrectly flagged many people without a recorded overdose. For example, with detailed descriptions in the 30-day zero-shot test, MedGemma’s recall was 88%, while its specificity—the share of non-overdose cases correctly identified—was 27.5%. Fine-tuning improved its precision and specificity, while recall varied. The results show trade-offs, rather than a model that catches every case without false alarms.
How records were presented also mattered. In zero-shot tests, detailed English descriptions generally performed better than compact summaries. Fine-tuned GPT-4o performed best with summarized information, a format similar in broad terms to the aggregated data used by the traditional baselines. This does not show that LLMs automatically interpret any medical history more effectively.
Limits on what the results mean
The researchers deliberately oversampled overdose cases: each test set contained 300 cases and 600 controls, so one-third of its examples were positive. The paper notes that overdose prevalence in the general population is below 1%. Because the test-set mix differs from that population context, the reported results do not directly establish how the models would perform in routine screening, where positive cases are much less common. The scores are evidence from this study’s comparison, but their practical meaning would need testing in settings that reflect intended use.
The outcome was an overdose recorded in claims, not necessarily every overdose that occurred. Claims can be incomplete or delayed; the authors note that recent visits may take weeks to appear in MarketScan. The study also lacked laboratory data. For each prediction window, the dataset had 900 examples for training, 900 for validation and 900 for testing. The authors say the findings are not decisive guidance for deployment.
Most importantly, this retrospective evaluation tested predictions, not whether an alert would prevent an overdose, improve care or identify the right intervention. It also does not establish performance across other health systems or patient populations. The paper is an arXiv preprint and may not have undergone peer review. Its findings support further evaluation, not using these predictions as a stand-alone clinical decision.
- overdose prediction
- large language models
- GPT-4o
- MedGemma
- insurance claims
- clinical AI
Reviewed cross-references
These connections were reviewed by a model, not independently fact-checked by a human. Similarity does not imply agreement; consult the original papers and the evidence below.
Can a fully open pipeline narrow the gap in clinical AI?
Shared method: Both studies report fine-tuning language models for clinical tasks: Al Nahian et al. evaluate fine-tuned GPT-4o and MedGemma for overdose prediction, while Theimer-Lienhard et al. fine-tune models in the MeditronFO pipeline. Their tasks, data and training setups differ, so this is a limited methodological overlap, not a basis for comparing performance; the overdose study also notes cohort oversampling and limited GPT-4o fine-tuning data, and calls for prospective validation.
Model review: · openai-codex/gpt-6-luna
Evidence and provenance
Selected excerpts, not complete papers. PDF extraction can omit figures or damage equations, tables and reading order; sources may be preprints.
2504.11792v2 — Original paper
Excerpt reference:
static/papers/2504.11792v2.md:13-66
Basis: Paper text
Source file SHA-256:3fbc149c86a0e3e18575f98333fe95f6115aadd664a1adb7445550ac9a16689e2504.11792v2 — Original paper
Excerpt reference:
static/papers/2504.11792v2.md:821-879
Basis: Paper text
Source file SHA-256:3fbc149c86a0e3e18575f98333fe95f6115aadd664a1adb7445550ac9a16689e2605.16215v3 — Original paper
Excerpt reference:
static/papers/2605.16215v3.md:15-69
Basis: Paper text
Source file SHA-256:891e2da93430cb866ad1a007e998d0aa48e934fde0a1666c8307067375625a6d
Related reading
Automatically matched by shared topic keywords. These links do not imply that the sources agree or establish a consensus.
Can a fully open pipeline narrow the gap in clinical AI?
Source published
Shared keywords: clinical ai, large language models
Can AI Judges Spot Unsafe Clinical Actions?
Source published
Shared keywords: clinical ai
AI radiology summaries can miss small words with important meanings
Source published
Shared keywords: large language models
When AI Judges Start Shaping Clinical AI
Source published
Shared keywords: clinical ai, large language models
Better Scores Don’t Automatically Mean Safer Clinical AI
Source published
Shared keywords: clinical ai, large language models