Related Experiment Video
Updated: Oct 12, 2025

Characterization of a Pathogenic Escherichia coli Strain Derived from Oreochromis spp. Farms Using Whole-Genome Sequencing
Published on: December 23, 2022
Machine learning for identifying resistance features of Klebsiella pneumoniae using whole-genome sequence single
Wenjia Liu1, Nanjiao Ying1,2, Qiusi Mo1
1College of Automation, Hangzhou Dianzi University, Hangzhou, Zhejiang, 310018, PR China.
Abstract:
Introduction. Klebsiella pneumoniae, a gram-negative bacterium, is a common pathogen causing nosocomial infection. The drug-resistance rate of K. pneumoniae is increasing year by year, posing a severe threat to public health worldwide. K. pneumoniae has been listed as one of the pathogens causing the global crisis of antimicrobial resistance in nosocomial infections. We need to explore the drug resistance of K. pneumoniae for clinical diagnosis. Single nucleotide polymorphisms (SNPs) are of high density and have rich genetic information in whole-genome sequencing (WGS), which can affect the structure or expression of proteins. SNPs can be used to explore mutation sites associated with bacterial resistance.Hypothesis/Gap Statement. Machine learning methods can detect genetic features associated with the drug resistance of K. pneumoniae from whole-genome SNP data.Aims. This work used Fast Feature Selection (FFS) and Codon Mutation Detection (CMD) machine learning methods to detect genetic features related to drug resistance of K. pneumoniae from whole-genome SNP data.Methods. WGS data on resistance of K. pneumoniae strains to four antibiotics (tetracycline, gentamicin, imipenem, amikacin) were downloaded from the European Nucleotide Archive (ENA). Sequence alignments were performed with MUMmer 3 to complete SNP calling using K. pneumoniae HS11286 chromosome as the reference genome. The FFS algorithm was applied to feature selection of the SNP dataset. The training set was constructed based on mutation sites with mutation frequency >0.995. Based on the original SNP training set, 70% of SNPs were randomly selected from each dataset as the test set to verify the accuracy of the training results. Finally, the resistance genes were obtained by the CMD algorithm and Venny.Results. The number of strains resistant to tetracycline, gentamicin, imipenem and amikacin was 931, 1048, 789 and 203, respectively. Machine learning algorithms were applied to the SNP training set and test set, and 28 and 23 resistance genes were predicted, respectively. The 28 resistance genes in the training set included 22 genes in the test set, which verified the accuracy of gene prediction. Among them, some genes (KPHS_35310, KPHS_18220, KPHS_35880, etc.) corresponded to known resistance genes (Eef2, lpxK, MdtC, etc). Logistic regression classifiers were established based on the identified SNPs in the training set. The area under the curves (AUCs) of the four antibiotics was 0.939, 0.950, 0.912 and 0.935, showing a strong ability to predict bacterial resistance.Conclusion. Machine learning methods can effectively be used to predict resistance genes and associated SNPs. The FFS and CMD algorithms have wide applicability. They can be used for the drug-resistance analysis of any microorganism with genomic variation and phenotypic data. This work lays a foundation for resistance research in clinical applications.
Insights
Machine learning effectively predicts antimicrobial resistance genes in Klebsiella pneumoniae using whole-genome SNP data. This approach aids in clinical diagnosis and combating the growing threat of antimicrobial resistance.
Area of Science:
- Microbiology
- Genomics
- Bioinformatics
Background:
- Klebsiella pneumoniae is a major cause of nosocomial infections with increasing antimicrobial resistance.
- Rising drug resistance rates pose a significant global public health threat.
- Whole-genome sequencing (WGS) and single nucleotide polymorphisms (SNPs) offer insights into bacterial resistance mechanisms.
Purpose of the Study:
- To apply machine learning methods, specifically Fast Feature Selection (FFS) and Codon Mutation Detection (CMD), to identify genetic features associated with K. pneumoniae drug resistance from WGS SNP data.
- To explore the potential of machine learning for predicting antimicrobial resistance in K. pneumoniae.
Main Methods:
- WGS data from K. pneumoniae strains resistant to tetracycline, gentamicin, imipenem, and amikacin were analyzed.
- SNP calling was performed using MUMmer 3 with K. pneumoniae HS11286 as a reference.
- FFS was used for feature selection, and CMD identified resistance genes, with logistic regression classifiers built for prediction.
Main Results:
- Machine learning algorithms predicted 28 resistance genes from the training set and 23 from the test set, with high accuracy (22 common genes).
- Identified genes included known resistance genes like Eef2, lpxK, and MdtC.
- Logistic regression classifiers achieved high AUC values (0.912-0.950), demonstrating strong predictive ability for bacterial resistance.
Conclusions:
- Machine learning, utilizing FFS and CMD algorithms, is a powerful tool for predicting antimicrobial resistance genes and associated SNPs in K. pneumoniae.
- These methods are broadly applicable to diverse microorganisms with genomic and phenotypic data.
- This research provides a foundation for clinical applications in antimicrobial resistance analysis.
Related Concept Videos
Modern Molecular Taxonomy
Applications of Molecular Taxonomy
Methods of Classification and Identification

