← Back to Explore

Computer Vision For Bacterial Gram Stain Classification

CWSF · 2026 Disease & Illness Gold Medal

Thumbnail supplied by the source for Computer Vision For Bacterial Gram Stain Classification

Overview

Antibiotic resistance is one of the most urgent crises in global health, and the first step in fighting it is correctly identifying whether a bacterium is Gram-positive or Gram-negative — a distinction that directly determines which antibiotics will work. Manual microscopy interpretation is slow, subjective, and inaccessible in resource-limited settings. This project developed four progressively optimized convolutional neural networks (CNNs) trained on 8,000 labeled Gram-stained microscopy images. The final model hit 98.33% test accuracy, and I reproduced that result across two independent runs. These results put us ahead of the 94.9% benchmark reported by Smith et al. (Harvard Medical School, 2018) and the 95.1% benchmark reported by Hee Kim et al.(Heidelberg University, 2023). Grad-CAM visualization confirms the model learns genuine bacterial features, rather than background or other artifacts in the slide. This demonstrates that reliable, automated Gram stain classification is achievable without specialized equipment or proprietary data.

Awards (2)

  • Gold Medal
  • Selected for CWSF 2026

Competition history

  • CWSF 2026 Disease & Illness

Related projects

Closest projects by meaning, across every fair and year in the corpus.

Source: ProjectBoard / Youth Science Canada

Save projects to your library

Sign in with Google to keep track of projects you find interesting, organized into folders. Browsing stays public.

Continue with Google