Skip to main content
Future Microbiology logoLink to Future Microbiology
editorial
. 2025 Oct 10;20(15):993–995. doi: 10.1080/17460913.2025.2572907

Data limitations hinder the development of AI-based decision support for the treatment of antibiotic-resistant bacteria

Anna Johnning a,b,c, Styrbjörn Käll d,e, Erik Kristiansson a,b,✉
PMCID: PMC12667673  PMID: 41071030

Our ability to treat and prevent bacterial infections with antibiotics is a cornerstone of modern healthcare. Diseases caused by antibiotic-resistant bacteria are, therefore, recognized as one of the most serious threats to human health worldwide. When treating an infected patient, time is often of the essence, as quickly administering an effective drug lowers the risk of transmission, prolonged illness, and death. Ideally, the selected drug should also precisely target the causative pathogen to minimize the selection for resistance to broad-spectrum antibiotics.

Diagnostics provide the treating physician with vital information for choosing the most suitable therapy. However, the urgency of life-threatening infections may require immediate action before complete diagnostic results are available. This practice, a form of “empirical treatment”, increases patient mortality and morbidity and leads to unnecessary antibiotic use [1]. The WHO has therefore highlighted that timely and accurate diagnosis is one of the pillars in tackling the resistance crisis [2].

Accurate diagnosis of bacterial infections can be difficult due to the high diversity of bacterial pathogens and their constant adaptation to strong antibiotic selection pressures. Conventional cultivation-based diagnostics, in particular antimicrobial susceptibility testing, are limited by the growth rate of the bacteria, and complete results for complex resistance profiles may, thus, take days to complete. Whole-genome sequencing and targeted genotypic assays (e.g., polymerase chain reaction) – which identify specific genetic changes that give rise to resistance – are used as complements, but they are highly specific and/or slow, and still too expensive to use at a large scale [3]. Combining available diagnostic results from various sources with patient information to select the most suitable treatment can, therefore, be challenging.

Recently, artificial intelligence (AI) has been recognized as a promising way to improve the diagnosis of infections caused by antibiotic-resistant bacteria [4]. AI enables the development of data-driven methods that do not rely on explicit assumptions about their internal mechanisms. In contrast to many conventional approaches, AI-based methods have a much larger number of parameters, which enables them to capture greater complexity and describe intricate phenomena, such as the often convoluted relationship between diagnostic results, patient symptoms, and clinical outcomes. In particular, AI-based methods can learn from thousands of prior infections and patient outcomes to provide evidence-based guidance for selecting the most appropriate therapy strategy. Therefore, adopting AI-based decision support systems in clinical settings holds promise for reducing patient morbidity and mortality caused by multiresistant bacteria and for promoting more sustainable use of antibiotics by facilitating the substitution of broad-spectrum antibiotics with more narrow-spectrum alternatives [5].

The potential of using AI-based methods to leverage clinically relevant data to improve the treatment of bacterial infections has recently been demonstrated. Kanjilal et al. [6] developed a decision algorithm that utilized electronic health records, particularly prior antibiotic exposure and infections with antibiotic-resistant bacteria, to guide the treatment of urinary tract infections. Based on a test cohort of 3,629 patients, they showed improved treatment of bacterial infections, leading to a 67% reduction in the use of second-line antibiotics compared to clinicians. Stracy et al. [7] predicted the emergence of treatment-induced resistance at the patient level. Using data from more than 140,000 patients, they demonstrated that AI guidance resulted in more than a 70% reduction of the risk for the emergence of resistance during treatment. AI-based methods have also improved the interpretation of diagnostic test results, including predicting resistance phenotypes from DNA sequencing data [8,9] and mass spectrometry data [10]. More recently, deep learning techniques, for example, transformers – the core component used in chatbots and AlphaFold – have offered new ways to integrate different types of clinical data [11].

These, and other, AI-based methods have shown great potential; however, few are yet in use in clinical settings. Indeed, before AI-based methods can be established in routine diagnostics, they must be deemed trustworthy by demonstrating acceptable performance and fairness, as outlined by the EU and WHO guidelines [12,13]. This is an intricate task, especially when used to guide the treatment of antibiotic-resistant bacteria.

Firstly, AI-based methods rely less on explicit assumptions and prior knowledge and must instead be trained and evaluated on data. This makes them highly dependent on datasets of sufficient quality and quantity, and too few data points or uncertain data can lead to inadequate performance. The required data volumes, however, depend on the type of AI method and the number of its parameters. Successful examples in the literature often use data from hundreds of thousands of infections [7,11], although there are examples demonstrating that smaller datasets can still yield relevant results [6]. Large datasets are often, fully or partially, extracted from routine diagnostics and aggregated over time and/or between laboratories. One major challenge here is the lack of standardization. In cultivation-based antimicrobial susceptibility testing, for example, zone diameters and minimum inhibitory concentrations are interpreted based on clinical breakpoints, which may vary between guidelines (e.g., EUCAST and CLSI) and evolve over time [14]. The testing strategy—i.e., which antibiotics to test for which pathogens – also varies between hospitals, further complicating data aggregation. Additionally, measurements from MALDI-TOF, which is commonly used to type the pathogens and detect specific resistance phenotypes, depend on the platform and the referenced database [15].

Furthermore, it is essential that AI-based methods are evaluated on data excluded from the training process. Performance is usually measured using various metrics, such as accuracy, sensitivity, and specificity. However, for evaluating antimicrobial resistance, the major error (ME) rate, i.e., the proportion of incorrectly identified sensitive isolates, and the very major error (VME) rate, i.e., the proportion of incorrectly identified resistant isolates, are often preferred. An important culprit when evaluating the performance of assessing resistance phenotypes is the often substantial class imbalance between antibiotics. Indeed, some antibiotics are commonly tested in routine diagnostics, such as first-line penicillins, while other antibiotics may only be tested under specific circumstances (e.g., colistin). The rate of resistance also varies significantly between patient categories and across different populations worldwide. Certain combinations of antibiotics, patient groups, and resistance phenotypes are rare, which can impair performance [16]. Therefore, AI-based methods for guiding the treatment of bacterial infections must be properly evaluated for each pathogen and resistance phenotype. It is, furthermore, necessary to critically assess performance across relevant patient groups to ensure it is overall satisfactory and fair.

Finally, the performance of AI-based methods must be evaluated using data that accurately reflects the patient population on which it will be applied. Data generation is often limited by practical constraints, which can lead to biases toward demographic factors and regional pathogen characteristics. Bias may also arise from patient enrollment strategies, measurement-specific parameters, and other technical factors. An AI-based method adapted to data from one hospital may, therefore, not be generalizable and, thus, perform poorly when applied in other healthcare settings. Furthermore, bacterial pathogens are constantly evolving, creating novel strains carrying new configurations of resistance determinants. It is, thus, important that the evaluation is performed on representative patient populations that include data on sufficiently recent infections. There are still only a few studies that explore the negative effects of the limited generalizability of AI-based methods for guiding the treatment of bacterial infections; however, highly significant effects have been reported for other diseases, such as cancer [17].

The development of AI-based methods to guide the treatment of antibiotic-resistant infections is hindered by the shortage of large, standardized diagnostic datasets. Efforts to compile new, comprehensive data sources are, therefore, urgently needed. Large volumes of clinical data are critical to ensure that AI-based methods can be appropriately trained and validated for use in routine diagnostics. Clinical information reflecting both patient and pathogen diversity globally is necessary to ensure that AI-based approaches are generalizable and, thus, applicable in different health care settings. Indeed, we argue that the availability of openly accessible high-quality data, preferably shared under FAIR principles, would catalyze the evaluation and, thus, the adaptation of AI-based decision support systems in clinical practice. This is necessary to efficiently meet the ever-increasing burden of antibiotic-resistant bacteria.

Funding Statement

This work was supported by the Swedish Research Council [2023-01685, 2024-06177], Joint Programming Initiative on Antimicrobial Resistance (JPIAMR) [2023-01685, 2023-01689], and the SciLifeLab & Wallenberg Data Driven Life Science Program [KAW2024.0159].

Author contributions

Anna Johnning: Conceptualization, Writing – original draft, Writing – review & editing.

Styrbjörn Käll: Conceptualization, Writing – review & editing.

Erik Kristiansson: Conceptualization, Writing – original draft, Writing – review & editing.

Disclosure statement

The authors have no relevant affiliations or financial involvement with any organization or entity with a financial interest in or financial conflict with the subject matter or materials discussed in the manuscript. This includes employment, consultancies, honoraria, stock ownership or options, expert testimony, grants or patents received or pending, or royalties

Writing assistance

No writing assistance was utilized in the production of this manuscript

Reviewer disclosures

Peer reviewers on this manuscript have no relevant financial or other relationships to disclose.

References

  • 1.Friedman ND, Temkin E, Carmeli Y.. The negative impact of antibiotic resistance. Clin Microbiol Infect. 2016;22(5):416–422. doi: 10.1016/j.cmi.2015.12.002 [DOI] [PubMed] [Google Scholar]
  • 2.National Action Plans and Monitoring and Evaluation (NPM) . People-centred approach to addressing antimicrobial resistance in human health: wHO core package of interventions to support national action plans. World Health Organization; 2023. Available from: https://www.who.int/publications/i/item/9789240082496 [Google Scholar]
  • 3.Banerjee R, Komarow L, Virk A, et al. Randomized trial evaluating clinical impact of RAPid IDentification and susceptibility testing for gram-negative bacteremia: RAPIDS-GN. Clin Infect Dis. 2021;73(1):e39–e46. doi: 10.1093/cid/ciaa528 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 4.Cesaro A, Hoffman SC, Das P, et al. Challenges and applications of artificial intelligence in infectious diseases and antimicrobial resistance. Npj Antimicrob Resist. 2025;3(2). doi: 10.1038/s44259-024-00068-x [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 5.de la Lastra JMP, Wardell SJT, Pal T, et al. From data to decisions: leveraging artificial intelligence and machine learning in combating antimicrobial resistance – a comprehensive review. J Med Syst. 2024;48(1):71. doi: 10.1007/s10916-024-02089-5 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 6.Kanjilal S, Oberst M, Boominathan S, et al. A decision algorithm to promote outpatient antimicrobial stewardship for uncomplicated urinary tract infection. Sci Transl Med. 2020;12(568):eaay5067. doi: 10.1126/scitranslmed.aay5067 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 7.Stracy M, Snitser O, Yelin I, et al. Minimizing treatment-induced emergence of antibiotic resistance in bacterial infections. Science. 2022;375(6583):889–894. doi: 10.1126/science.abg9868 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 8.Kaixin H, Meyer F, Deng ZL, et al. Assessing computational predictions of antimicrobial resistance phenotypes from microbial genomes. Brief Bioinform. 2024;25(3):bbae206. doi: 10.1093/bib/bbae206 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 9.Hagerman D, Johnning A, Naeem R, et al. Optimizing gene-based testing for antibiotic resistance prediction. Proc AAAI Conf Artif Intell. 2025;39(27):28033–28041. doi: 10.1609/aaai.v39i27.35021 [DOI] [Google Scholar]
  • 10.Weis C, Cuénod A, Rieck B, et al. Direct antimicrobial resistance prediction from clinical MALDI-TOF mass spectra using machine learning. Nat Med. 2022;28(1):164–174. doi: 10.1038/s41591-021-01619-9 [DOI] [PubMed] [Google Scholar]
  • 11.Yang Z, Mitra A, Liu W, et al. TransformEHR: transformer-based encoder-decoder generative model to enhance prediction of disease outcomes using electronic health records. Nat Commun. 2023;12(1):7857. doi: 10.1038/s41467-023-43715-z [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 12.European Parliament and the Council . Regulation 2024/1689 (Artificial Intelligence Act) of 13 June 2024 laying down harmonised rules on artificial intelligence. 2024. Available from: https://eur-lex.europa.eu/eli/reg/2024/1689/oj
  • 13.World Health Organization . Regulatory considerations on artificial intelligence for health. World Health Organization; 2023. Available from: https://iris.who.int/handle/10665/373421 [Google Scholar]
  • 14.Giske CG, Turnidge J, Cantón R, et al. Eucast steering committee. Update from the European Committee on Antimicrobial Susceptibility Testing (EUCAST). J Clin Microbiol. 2022;60(3):e0027621. doi: 10.1128/JCM.00276-21 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 15.Gant MS, Chamot-Rooke J. Present and future perspectives on mass spectrometry for clinical microbiology. Microbes Infect. 2024;26(7):105296. doi: 10.1016/j.micinf.2024.105296 [DOI] [PubMed] [Google Scholar]
  • 16.Megahed FM, Chen YJ, Megahed A, et al. The class imbalance problem. Nat Methods. 2021;18(11):1270–1272. doi: 10.1038/s41592-021-01302-4 [DOI] [PubMed] [Google Scholar]
  • 17.McKinney SM, Sieniek M, Godbole V, et al. International evaluation of an AI system for breast cancer screening. Nature. 2020;577(7788):89–94. doi: 10.1038/s41586-019-1799-6 [DOI] [PubMed] [Google Scholar]

Articles from Future Microbiology are provided here courtesy of Taylor & Francis

RESOURCES