NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Towards Edge Artificial Intelligence for Predicting Antimicrobial Resistance in Mycobacterium tuberculosis

Nishat Tasnim, Faisal Ahmed, Rokan Uddin FaruquiarXiv 2026

TL;DR

This paper introduces a lightweight machine learning approach to predict antibiotic resistance in Tuberculosis (TB) directly on "edge" devices—think laptops in remote clinics rather than massive server farms. By condensing complex genomic data into simple "DNA word counts" (4-mers), the authors achieved an average 0.82 AUROC across 20 different antibiotics while maintaining a tiny computational footprint.

What Problem Does This Paper Address?

Tuberculosis remains a global health crisis, and the rise of antimicrobial resistance (AMR) makes it even deadlier. The gold standard for testing drug resistance is "culture-based," which involves literally growing the bacteria in a lab—a process that takes four to six weeks. In that time, a patient might receive the wrong treatment, fueling the spread of resistant strains.

While we can now sequence genomes quickly, the software used to analyze that data for resistance is usually "heavy." It often requires high-performance computing clusters or a reliable high-speed internet connection to send data to a cloud server. In many high-burden, low-resource settings, neither is a guarantee. The authors tackle this by asking: Can we build a model small and fast enough to run at the point of care, even on a modest laptop?

Methods

The researchers moved away from computationally expensive pipelines that look for specific mutations (like SNPs). Instead, they used k-mer frequency encoding.

Imagine the DNA sequence as a long book with no spaces. A "4-mer" is simply any four-letter "word" (e.g., ATGC, CGTA). Since there are only four DNA bases (A, C, G, T), there are exactly $4^4 = 256$ possible 4-letter words.

  1. Feature Extraction: They slide a window across the entire genome, counting how often each of these 256 words appears.
  2. Normalization: They divide these counts by the total number of words to get a relative frequency. This turns a massive, variable-length genome into a tidy, fixed-length 256-dimensional vector.
  3. Classification: They fed these vectors into a Random Forest (RF) classifier. They trained 20 separate models—one for each antibiotic—using class weighting to handle the fact that susceptible cases usually far outnumber resistant ones in the data.

Datasets

The study utilized data from the Bacterial and Viral Bioinformatics Resource Center (BV-BRC).

  • Scope: 755 genome sequences covering 20 different antibiotics.
  • Scale: Over 1.3 million records (329,980 resistant and 1,069,517 susceptible).
  • Evaluation: They used a rigorous 5-fold cross-validation and an independent test set of 155 genomes that the model never saw during training.

Key Insights and Ideas

  • Dimensionality Reduction is King: By using 4-mers, they reduced the feature space by several orders of magnitude compared to traditional methods. This is the "secret sauce" that allows the model to run on edge hardware.
  • The "Sweet Spot" of $k$: The authors chose $k=4$ because it captures enough biological context to be predictive but stays small enough (256 features) to remain "lightweight." Larger $k$ values (like $k=11$) lead to exponential growth in features and sparse matrices that bog down edge devices.
  • Asymmetric Performance: The models were generally better at identifying susceptible isolates than resistant ones. This is a common hurdle in medical ML; when the "resistant" class is rare, the model has fewer examples to learn from.

Key Results

The approach proved that "lightweight" doesn't have to mean "low performance." * Predictive Power: The model achieved an average AUROC of 0.82 on the independent test set. Performance was particularly strong for first-line drugs like Isoniazid (0.89 AUROC) and Rifampin (0.88 AUROC). * Edge Feasibility: On a standard Intel i5 laptop, the model was impressively lean: * Storage: Only 16.20 MB. * Latency: A mean inference time of just 71.57 ms per sample. * Memory: It used only ~55 MB of RAM.

Fig. 1: ROC curves for 20 antibiotics evaluated on the inde- pendent test set.

As seen in Figure 1, the model shows excellent discriminative performance for drugs like Cycloserine and Clofazimine (curves hugging the top-left), while struggling more with drugs like Delamanid where data was likely scarcer.

Limitations and Future Work

The primary bottleneck isn't the math—it's the data. For newer or repurposed drugs (like Para-aminosalicylic acid), the model's performance dipped significantly. This is because there simply aren't enough recorded resistant samples for the model to learn the patterns effectively.

The authors plan to address this "data scarcity" by expanding their training sets with larger public repositories (like CRyPTIC) and exploring more advanced "cost-sensitive" learning strategies to better handle the imbalance between resistant and susceptible samples.

Summary updated

BibTeX
@misc{tasnim2026towards,
  author = {Nishat Tasnim and Faisal Ahmed and Rokan Uddin Faruqui},
  title = {{Towards Edge Artificial Intelligence for Predicting Antimicrobial Resistance in Mycobacterium tuberculosis}},
  year = {2026},
  eprint = {2611.29143},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.29143},
}
Figure