Skip to content
ElMAGIC3636Public

About

Audited E. coli AMR data pipeline + leakage-safe ceftazidime S/I/R prediction, tested on studies the model has never seen. Research only, not clinical.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

ResistMap: research-only E. coli ceftazidime resistance prediction

Use: research only Clinical use: no Organism: E. coli Evaluation: study-held-out Code: not yet published

Results · Pipeline · Data audit · Evaluation · Roadmap

ResistMap asks a simple question: how much of E. coli ceftazidime resistance can be predicted, and how much of that survives on a study the model has never seen?

It audits the public BV-BRC / Arcadia data (broken IDs, duplicates, conflicting labels), then trains Dummy and Logistic Regression baselines with study-held-out evaluation. Country and year alone sit near chance (balanced accuracy 0.36); adding AMR gene calls lifts it to about 0.58–0.60. Intermediate stays hard.

Caution

Research code only. No clinical claims. Do not use it for diagnosis or treatment decisions.

Note

Source code and data are not in this repository yet. The scores below are as reported by the project and cannot be reproduced from this repository alone.

Results

Balanced accuracy on unseen studies

Features Balanced accuracy on unseen studies
Reference: 3-class chance 0.33
Country + year 0.36
+ AMR gene calls ≈ 0.58–0.60
  • Country and year barely clear chance.
  • AMR gene calls lift the score, but it remains far from reliable.
  • Intermediate is still the hard class.

Pipeline

flowchart TD
    A[("Public data<br/>BV-BRC / Arcadia")] --> B["Audit<br/>IDs, duplicates, label conflicts"]
    B --> C["Hold out whole studies"]
    C --> D["Dummy baseline"]
    C --> E["Logistic Regression"]
    D --> F(["Score on unseen studies"])
    E --> F
Loading

Data audit

Check Why it matters
Broken IDs Records can be linked to the wrong isolate
Duplicates One isolate on both sides of a split inflates scores
Conflicting labels Different S / I / R calls leave no clear target

Why hold out whole studies

Random split Study-held-out split
Test isolates come from studies also seen in training studies absent from training
Study-specific lab methods and breakpoints can be learned and reused cannot be learned from the test study
Question answered Does it work on more of the same? Does it travel?

Class imbalance in a candidate source

Ceftazidime label counts in a candidate external source

This source is not behind the results above. It illustrates how rare Intermediate can be.

  • Source: EMBL-EBI AMR portal, release 2026-07, CC BY 4.0
  • Changes made: filtered to E. coli and ceftazidime, counted by label, and plotted
  • Caveat: search-result counts read on 28 November 2026. The portal draws heavily on BV-BRC, so overlap must be removed by accession before any use
  • Citation: Dickens E, Derelle R, Beardmore R, et al. A comprehensive AMR genotype-phenotype database (CABBAGE). bioRxiv, 2025. doi:10.1101/2025.11.12.688105

Repository layout

ResistMap/
├── assets/       # banner and charts
├── .gitignore
└── README.md

Roadmap

  • Publish the data audit code
  • Publish training and study-held-out evaluation scripts
  • Add environment file and reproduction steps
  • Report per-study and per-class scores
  • Check candidate external data for overlap by accession
  • Choose a license

About

Audited E. coli AMR data pipeline + leakage-safe ceftazidime S/I/R prediction, tested on studies the model has never seen. Research only, not clinical.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors