ORIGINAL RESEARCH article
Front. Artif. Intell.
Sec. AI in Food, Agriculture and Water
Volume 8 - 2025 | doi: 10.3389/frai.2025.1632344
Enhancing AI microscopy for foodborne bacterial classification using adversarial domain adaptation to address optical and biological variability
Provisionally accepted- 1Michigan State University, East Lansing, United States
- 2University of California, Davis, Davis, California, United States
Select one of your emails
You have multiple emails registered with Frontiers:
Notify me on publication
Please enter your email address:
If you already have an account, please login
You don't have a Frontiers account ? You can register here
AI-enabled microscopy is emerging for rapid bacterial classification, yet its utility remains limited in dynamic or resource-limited settings due to imaging variability. This study aims to enhance the generalizability of AI microscopy using domain adaptation techniques. Six bacterial species, including three Gram-positive (Bacillus coagulans, Bacillus subtilis, Listeria innocua) and three Gram-negative (Escherichia coli, Salmonella Enteritidis, Salmonella Typhimurium), were grown into microcolonies on soft tryptic soy agar plates at 37°C for 3-5 h. Images were acquired under varying microscopy modalities and magnifications. Domain-adversarial neural networks (DANNs) addressed single-target domain variations and multi-DANNs (MDANNs) handled multiple domains simultaneously. EfficientNetV2 backbone provided fine-grained feature extraction suitable for small targets, with few-shot learning enhancing scalability in data-limited domains. The source domain contained 105 images per species (n = 630) collected under optimal conditions (phase contrast, 60× magnification, 3-h incubation). Target domains introduced variations in modality (brightfield, BF), lower magnification (20×), and extended incubation (20×-5h), each with < 5 labeled training images per species (n ≤ 30) and test datasets of 60-90 images. DANNs improved target domain classification accuracy by up to 54.5% for 20× (34.4% to 88.9%), 43.3% for 20×-5h (40.0% to 83.3%), and 31.7% for BF (43.4% to 73.3%), with minimal accuracy loss in the source domain. MDANNs further improved accuracy in the BF domain from 73.3% to 76.7%. Feature visualizations by Grad-CAM and t-SNE validated the model's ability to learn domain-invariant features across conditions. This study presents a scalable and adaptable framework for bacterial 1 Bhattacharya et al.classification, extending the utility of microscopy to decentralized and resource-limited settings where imaging variability often challenges performance.
Keywords: AI microscopy, Bacterial classification, Domain adaptation, deep learning, Foodborne bacteria
Received: 21 May 2025; Accepted: 17 Jul 2025.
Copyright: © 2025 Bhattacharya, Wasit, Earles, Nitin and Yi. This is an open-access article distributed under the terms of the Creative Commons Attribution License (CC BY). The use, distribution or reproduction in other forums is permitted, provided the original author(s) or licensor are credited and that the original publication in this journal is cited, in accordance with accepted academic practice. No use, distribution or reproduction is permitted which does not comply with these terms.
* Correspondence: Jiyoon Yi, Michigan State University, East Lansing, United States
Disclaimer: All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article or claim that may be made by its manufacturer is not guaranteed or endorsed by the publisher.