Skip to main content
QUICK REVIEW

[Paper Review] A Mask R-CNN approach to counting bacterial colony forming units in pharmaceutical development

Tanguy Naets, Maarten Huijsmans|arXiv (Cornell University)|Mar 9, 2021
Cell Image Analysis TechniquesBiochemistry, Genetics and Molecular Biology10 citations
TL;DR

This paper proposes a Mask R-CNN-based instance segmentation model to automatically count BVG- and BVG+ bacterial colony-forming units (CFUs) in pharmaceutical development. Trained on 101 GSK-annotated Petri dish images, the model achieves 94% mean average precision (mAP) at 50% IoU, significantly reducing manual counting errors and enabling integration into a web-based SPA for lab technicians to verify and refine results with dilution factor support.

ABSTRACT

We present an application of the well-known Mask R-CNN approach to the counting of different types of bacterial colony forming units that were cultured in Petri dishes. Our model was made available to lab technicians in a modern SPA (Single-Page Application). Users can upload images of dishes, after which the Mask R-CNN model that was trained and tuned specifically for this task detects the number of BVG- and BVG+ colonies and displays these in an interactive interface for the user to verify. Users can then check the model's predictions, correct them if deemed necessary, and finally validate them. Our adapted Mask R-CNN model achieves a mean average precision (mAP) of 94\\% at an intersection-over-union (IoU) threshold of 50\\%. With these encouraging results, we see opportunities to bring the benefits of improved accuracy and time saved to related problems, such as generalising to other bacteria types and viral foci counting.

Motivation & Objective

  • To automate the manual, time-consuming, and error-prone task of counting bacterial CFUs in Petri dishes during vaccine development.
  • To address limitations of traditional computer vision methods, such as poor handling of overlapping colonies and imbalanced pixel classes.
  • To develop a robust, production-ready deep learning system integrated into a user-friendly web application for lab technicians.
  • To enable accurate estimation of bacterial quantities with confidence intervals using dilution factor integration.
  • To provide a scalable solution that can be extended to other bacterial species and viral foci counting.

Proposed method

  • Fine-tuned the Matterport implementation of Mask R-CNN for instance segmentation of BVG- and BVG+ CFUs in Petri dish images.
  • Trained the model on 101 annotated GSK images split into 65% training, 15% validation, and 20% test sets.
  • Applied data augmentation techniques, including rotations, to improve generalization with limited training data.
  • Developed a Single-Page Application (SPA) using Vue.js and Vuetify to allow users to upload images, view model predictions, and manually correct CFU counts.
  • Integrated dilution factor input to compute total bacterial counts and confidence intervals from triplicate dilution experiments.
  • Enabled interactive editing of predictions, including validation, deletion, and manual creation of CFUs, with persistent storage of changes.

Experimental results

Research questions

  • RQ1Can a Mask R-CNN instance segmentation model achieve high accuracy in counting overlapping and imbalanced bacterial CFUs in pharmaceutical imaging?
  • RQ2How does model performance compare to human inter-observer variability in CFU counting?
  • RQ3To what extent can a web-based SPA improve workflow efficiency and accuracy in lab-based CFU quantification?
  • RQ4Can the model generalize to other bacterial species or viral foci with minimal retraining?
  • RQ5How effective is data augmentation in improving model robustness when training data is limited?

Key findings

  • The Mask R-CNN model achieved a mean average precision (mAP) of 94% at an intersection-over-union (IoU) threshold of 50%, demonstrating strong detection and segmentation performance.
  • User-to-model variability in CFU counts was significantly lower than user-to-user variability, with MAPE of 33% for BVG+ and 45% for BVG- counts compared to 43% and 68% respectively among users.
  • The model effectively mitigated issues from class imbalance and overlapping colonies, as it does not rely on background or boundary pixel classification.
  • The web-based SPA enabled real-time interaction, allowing users to validate, correct, and export results with dilution factor integration for accurate bacterial load estimation.
  • Data augmentation, particularly rotations, significantly improved model generalization on varied imaging conditions with limited training data.
  • The system demonstrated potential for extension to other bacterial species and viral foci by enabling user-friendly data annotation within the app for future model retraining.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.