Published October 30, 2025 | Version 1.0.0
Model Open

Recreation and Enhancement of MSDeepAMR: A Deep Learning Approach for Antimicrobial Resistance Prediction from MALDI-TOF Mass Spectrometry Data

Description

Trained Deep Learning Models for Antimicrobial Resistance Prediction from MALDI-TOF Mass Spectrometry

This archive contains trained neural network models for predicting antibiotic resistance from MALDI-TOF mass spectrometry data across three clinically important bacterial pathogens.

Models Included (~6-7 GB) (Just Download rar files only)

E. coli-Ceftriaxone Models:

  • Baseline model (MSDeepAMR architecture)
  • Attention-enhanced model (Squeeze-and-Excitation blocks)
  • Hyperparameter-optimized model
  • 5-model ensemble (seeds: 42, 123, 456, 789, 1024)

K. pneumoniae-Ceftriaxone Models:

  • Baseline model - Attention model (paper parameters)
  • Species-specific optimized models (dropout 0.35)
  • 5-model ensemble

S. aureus-Oxacillin Models:

  • Baseline model
  • Species-specific optimized models (LR 3×10⁻⁴)
  • 5-model ensemble

Model Architecture

  • Type: 1D Convolutional Neural Network
  • Input: 6,000 m/z bins (2000-20000 Da, 3 Da bin width)
  • Framework: TensorFlow 2.19 / Keras
  • Format: HDF5 (.h5 files)
  • Total Parameters: ~25.2M per model

Performance Results

Species Antibiotic AUROC Paper Target Achievement
E. coli Ceftriaxone 0.901 0.87 103.6% ✅
K. pneumoniae Ceftriaxone 0.808 0.82 98.5%
S. aureus Oxacillin 0.907 0.93 97.5%

Usage

  1.  Download models from this archive (~6-7 GB)
  2. Clone repository:
git clone https://github.com/Muhammad-Lukman/MSDeepAMR_Recreation_Enhancement_project.git 
  1. Extract models to models/ folder in repository root
  2. Load models in Python: 
from tensorflow import keras model = keras.models.load_model('models/ecoli/5_ensemble/model_seed42.h5')

File Structure

models/
├── ecoli/
│   ├── 1_baseline/final_model_ecoli_ceftriaxone.h5
│   ├── 2_attention/final_attention_model.h5
│   ├── 3_optimized/final_optimized_model.h5
│   └── 5_ensemble/
│       ├── model_seed42.h5
│       ├── model_seed123.h5
│       ├── model_seed456.h5
│       ├── model_seed789.h5
│       └── model_seed1024.h5
├── kpneumoniae/
│   ├── 1_baseline/
│   ├── 2_attention_paper_params/
│   └── 3b_optimized/
│       ├── single_best_model.h5
│       └── ensemble/ (5 models)
└── saureus/
    ├── baseline/
    └── ensemble/ (5 models)

Data Availability

 Preprocessed training data is available in the GitHub repository via Git LFS:

Raw MALDI-TOF data from DRIAMS database: 

  • Source: https://doi.org/10.5061/dryad.bzkh1899q 
  • Database: DRIAMS-A (Weis et al., 2022)

Citation

If you use these models, please cite:

This dataset:

Weis, Caroline; Cuénod, Aline; Rieck, Bastian et al. (2025). 
DRIAMS: Database of Resistance Information on Antimicrobials and MALDI-TOF Mass Spectra [Dataset].
Dryad. https://doi.org/10.5061/dryad.bzkh1899q

GitHub repository:

@software{muhammadlukman2025msdeepamr,
  author       = {Lukman, Muhammad},
  title        = {Recreation and Enhancement of MSDeepAMR: A Deep Learning Approach for Antimicrobial Resistance Prediction from MALDI-TOF Mass Spectrometry Data},
  year         = 2025,
  url          = {https://github.com/Muhammad-Lukman/MSDeepAMR_Recreation_Enhancement_project}
}

Original MSDeepAMR paper:

@article{lopez2024msdeepamr,
  author       = {López-Cortés, X. A. and Manríquez-Troncoso, J. M. and 
                  Hernández-García, R. and Peralta, D.},
  title        = {MSDeepAMR: antimicrobial resistance prediction based on 
                  deep neural networks and transfer learning},
  journal      = {Frontiers in Microbiology},
  volume       = {15},
  pages        = {1361795},
  year         = {2024},
  doi          = {10.3389/fmicb.2024.1361795}
}

Related Resources

Technical Requirements

  • Python 3.8+
  • TensorFlow 2.19.0
  • 16GB RAM recommended
  • GPU recommended for inference (CPU compatible)

Contact

 

Files

Files (13.2 GB)

Name Size
md5:4f8133f59254446607192c5e8bb8f6d6
2.1 GB Download
md5:567a65dee5300abc31a4a1cecaaf7f49
302.6 MB Download
md5:655ee78db2b94abc096287951f560ab5
302.6 MB Download
md5:d13876bf4ef05c8565fe49d88d72e142
302.6 MB Download
md5:e596b271a0bfdb1bc9b071019d4e0aaa
302.6 MB Download
md5:0e4f663eef4f6aa9ef9d329469e6f66b
302.6 MB Download
md5:85a31be035a36ad2d86dd11f086344c1
302.4 MB Download
md5:261600a04676d726581a5498023f1a2e
302.6 MB Download
md5:764c26f0715496f0f1453d44145aef23
302.4 MB Download
md5:1f37def5edf0f850a171389b7638b28e
302.1 MB Download
md5:d0b678292cab142d1a8ecb2bb569452c
302.1 MB Download
md5:0f44ca82b3c4f6195105c479f5596863
302.1 MB Download
md5:7ed1865d8d921f63f2b089eae9ed63b5
4.5 GB Download
md5:ec577c3f1bf1e599c86282f3b864ac82
302.6 MB Download
md5:ae47500f7a2db661f90765c446807a43
302.6 MB Download
md5:5f02899bcc1c3597562494fa6da4d325
302.6 MB Download
md5:394d2bb176e6b68e9dd11f9802dc6d25
302.6 MB Download
md5:82d0ef06164e01d4f86031aeb0540457
302.6 MB Download
md5:b99bc5e7bd6bf9cc150fdeac93b376e3
302.6 MB Download
md5:440a33631d886fb50b77b59269f3acab
302.6 MB Download
md5:73091374d81e079c9f0c2d58c13adfd8
1.2 GB Download

Additional details

Dates

Submitted
2025-10-31

References