How to make Smartphone-Assisted Digital Colony Counter and Growth-Curve Analyzer for School Laboratories

1. Introduction

The Smartphone-Assisted Digital Colony Counter and Growth-Curve Analyzer for School Laboratories is an innovative biotechnology project designed to automate the counting of microbial colonies and monitor microbial growth using smartphone imaging and digital image-processing technology.

In conventional microbiology experiments, learners and laboratory technicians manually count microbial colonies growing on agar plates. This process can be time-consuming, particularly when colonies are numerous, closely spaced or difficult to distinguish.

The proposed system uses a smartphone camera to capture images of agar plates. An image-processing application then identifies individual colonies, estimates their number and records the results.

The system can also analyse colony counts collected at different sampling intervals to generate microbial growth curves.

The innovation aims to provide an affordable digital alternative to conventional colony counters, particularly for school laboratories and educational research institutions.

Aquaculture Technologies for Shrimp Farming — RYNAN Technologies
Exactas-UNLP     - Aplicaciones para conteo de colonias en laboratorio
Graphical user interface (GUI) of the automated colony counter. GUI... | Download Scientific Diagram

2. Problem Statement

Manual microbial colony counting has several limitations:

  • It is time-consuming when handling multiple agar plates.
  • Different individuals may produce different counting results.
  • Closely spaced colonies can be difficult to distinguish.
  • Recording and analysing microbial growth data manually can be tedious.
  • Commercial digital colony counters may be expensive for schools.

This project seeks to develop a smartphone-based digital system that improves colony counting, data recording and microbial growth analysis.

3. Objectives

  • To design a smartphone-assisted digital colony counting system.
  • To develop an image-processing algorithm for identifying and counting visible colonies.
  • To determine the accuracy of automated counting compared with manual counting.
  • To develop a digital system for recording microbial growth measurements.
  • To generate growth curves from recorded colony counts.
  • To evaluate the affordability and suitability of the system for school laboratories.

4. Scientific Principle

The project combines three scientific and technological principles.

A. Microbial colony formation

Under suitable laboratory conditions, viable microorganisms can multiply and form visible colonies on solid growth media.

A colony count can provide an estimate of viable colony-forming units (CFU), provided the sample preparation and dilution procedures are appropriate.

B. Digital image processing

The smartphone captures an image of the agar plate.

The application processes the image by:

  • Identifying the circular plate boundary.
  • Separating colonies from the agar background.
  • Detecting individual colony regions.
  • Removing background noise.
  • Counting distinguishable colonies.

C. Microbial growth analysis

Microbial growth can be represented using a growth curve.

LabXchange

The four commonly recognized phases are:

Growth phaseDescription
Lag phaseMicroorganisms adapt to their environment
Exponential phaseRapid multiplication occurs
Stationary phaseGrowth rate balances cell loss
Decline phaseViable population decreases

The system uses recorded colony-count data to generate graphs showing changes in viable counts over time.

5. Materials and Components

Mass Surveilance of C. elegans—Smartphone-Based DIY Microscope and Machine-Learning-Based Approach for Worm Detection | MDPI
ESP32 Development Board – Anu Electronics
Magazine Luiza | Pra você é Magalu!
With This Smartphone Microscope, You Can Play Soccer and Pac-Man With Microbes #makereducation «  Adafruit Industries – Makers, hackers, artists, designers and engineers!
How to photograph your microscope specimens | Live Science
Iluminador LED Ring Light  12 Polegadas  Com Controle de Temperatura RL-12B
ProRock ESP32 WiFi Bluetooth Board ESP-WROOM-32 30-Pin CH340 USB-C 4MB, 5905973208673 • Cena • Opinie - Allegro
ZOOCENTER : Clínica Veterinaria en Girardot, Cundinamarca
Microscope Smartphone Adapter (Customisable) by chrissyhroberts - Thingiverse
ComponentPurpose
SmartphoneCaptures agar plate images
ESP32 (optional)Controls lighting and electronic accessories
LED ring lightProvides consistent illumination
Petri dish holderMaintains fixed imaging position
Black enclosureReduces external light interference
Smartphone standMaintains camera stability
Calibration referenceProvides image scale
LaptopSupports image processing and analysis
PythonSoftware development
OpenCVColony detection and image processing

6. System Design

The proposed system consists of four main sections.

Frontiers | Inexpensive Apparatus for High-Quality Imaging of Microbial Growth on Agar Plates

Section 1: Image acquisition unit

A smartphone is positioned above the agar plate using a fixed stand. Controlled LED illumination helps produce consistent images.

Section 2: Image-processing unit

The application analyses the captured image and separates visible colonies from the background.

Section 3: Colony counting unit

The software identifies distinguishable colony regions and calculates their number.

Section 4: Growth-curve analysis unit

The recorded counts are stored with their corresponding sampling dates or time intervals. The software generates graphs to show changes in viable colony counts.

7. How the System Works

Efficient microbial colony growth dynamics quantification with ColTapp, an automated image analysis application | Scientific Reports

The operating procedure is as follows:

  • Prepare an approved, supervised microbiology demonstration using an appropriate non-pathogenic educational reference material.
  • Capture the plate image using the smartphone.
  • Transfer the image to the digital counting application.
  • The application detects the agar plate boundary.
  • The image is converted into a suitable colour or grayscale representation.
  • Image segmentation separates visible colonies from the background.
  • The algorithm identifies individual colony regions.
  • The system displays the estimated colony count.
  • The result is stored in a digital database.
  • Repeated measurements are used to generate growth-analysis graphs.

For school safety, use commercially prepared educational reference images or professionally prepared, sealed demonstration materials. Do not culture unknown environmental or clinical microorganisms, open incubated plates or attempt to identify pathogens using this device.

8. Software Development

The project can use the following technologies:

Software/toolApplication
PythonMain programming language
OpenCVImage processing
NumPyNumerical calculations
MatplotlibGrowth-curve plotting
StreamlitUser interface
SQLiteData storage
MIT App InventorOptional Android interface

Proposed application features

News - New dataLink pro | INTERSCIENCE

The application should include:

  • Upload or capture an agar plate image.
  • Automatic plate boundary detection.
  • Colony identification and counting.
  • Manual correction of counting errors.
  • Display of total detected colonies.
  • Recording of sample identification codes.
  • Growth-curve visualization.
  • Exporting results into CSV or PDF reports.

9. Image Processing Algorithm

The project can use OpenCV to identify visible colony regions.

The proposed processing stages are:

Step 1: Image acquisition

Capture a high-resolution image under consistent lighting.

Step 2: Image enhancement

Improve image contrast and reduce unwanted background variations.

Step 3: Image segmentation

Separate colony regions from the agar background using colour thresholds or adaptive thresholding.

Step 4: Noise removal

Apply morphological image-processing techniques to remove small unwanted objects.

Step 5: Colony detection

Use connected-component analysis or watershed segmentation to identify individual colonies.

Step 6: Counting

Calculate the number of detected colony regions.

Step 7: Result display

Display the processed image with detected regions highlighted and the estimated count.

10. Growth-Curve Analysis

The system can record colony-count observations from approved reference datasets at different time points.

An example of the data structure is:

ObservationTime pointRecorded count
A0 hours12
B2 hours24
C4 hours48
D6 hours85
E8 hours120

These are illustrative software test values, not experimental growth results.

The application can also calculate the percentage change between observations:

\%\text{ Change}=\frac{N_2-N_1}{N_1}\times100

Where:

  • = Initial recorded count.
  • = Subsequent recorded count.

Important: Colony counts from separate plates represent viable colony-forming units under the specified conditions. They are not automatically equivalent to direct measurements of total microbial population. A true growth curve requires carefully controlled sampling and an appropriate microbiological method.

11. Experimental Evaluation

The effectiveness of the system can be assessed using reference images containing known colony counts.

Evaluation parameterMethod
Counting accuracyCompare automated and reference counts
PrecisionAnalyse repeated images
Processing speedMeasure time per image
Detection sensitivityTest images with different colony densities
Image consistencyCompare images under controlled lighting
User friendlinessEvaluate application usability
CostCompare with commercial colony counters

A useful accuracy calculation is:

\text{Accuracy}=
\left(1-\frac{|A-R|}{R}\right)\times100

Where:

  • = Automated count.
  • = Reference count.

This calculation is suitable when the reference count is greater than zero.

12. Innovation and Expected Outcomes

Aquaculture Technologies for Shrimp Farming — RYNAN Technologies
Contador de colonias digital - Scan® 300 - Interscience - electrónico / automático
Info | Growth Curves USA
Exactas-UNLP     - Aplicaciones para conteo de colonias en laboratorio
The real Skin Microbiome experts | Beiersdorf
Paper highlights advantages of automated digital colony counters
NEJM (@NEJM) on X
Nytt sykehus – femstjernes high tech
Enzyscreen - Growth Profiler
Aquaculture products — RYNAN Aquaculture
Automatic colony counter - Scan® 4000 - INTERSCIENCE - compact / digital
Microbiology Plate Reader, BioTek LogPhase 600 | Agilent

The project is expected to deliver:

  • An affordable smartphone-based colony counting prototype.
  • Automated identification of visible colonies.
  • Digital storage of laboratory observations.
  • Automatic generation of growth curves.
  • Reduced dependence on manual counting.
  • Improved accessibility of image-analysis technology in school laboratories.

13. Further Innovation to Improve KSEF Competitiveness

The project can be enhanced through the following features.

A. Artificial Intelligence Colony Recognition

Train an image-classification model to distinguish colonies from unwanted background particles and improve detection of overlapping colonies.

B. Automatic Colony Size Analysis

Measure the approximate diameter and area of detected colony regions.

C. Digital Laboratory Records

Develop a dashboard that stores images, counts, sample codes and analysis reports.

D. Automatic Image Quality Control

The application can reject images with poor lighting, blurred focus or incomplete plate visibility.

E. Low-Cost Imaging Chamber

Construct a compact imaging enclosure using locally available materials, a smartphone holder and controlled LED lighting.

14. Estimated Project Budget

Indicative prototype budget in Kenya shillings; excludes laboratory facilities and professional microbiological testing.

ItemEstimated cost (KES)
Smartphone stand500
LED lighting500
Imaging enclosure materials1,000
ESP32 (optional)800
Connecting wires and accessories300
Calibration reference materials500
Software developmentFree/open-source
Miscellaneous500
Estimated total4,100

The smartphone and computer are assumed to be available.

15. Safety Considerations

Because the project involves microbiological concepts:

  • Use only approved non-pathogenic educational reference materials.
  • Prefer digital reference images for algorithm development.
  • Any live culture work must be performed under qualified laboratory supervision using institutionally approved procedures.
  • Keep prepared demonstration plates sealed.
  • Never open, smell or touch microbial cultures.
  • Dispose of microbiological materials through approved laboratory procedures.
  • mbeva

    Dominic Mbeva is a science teacher, experienced researcher, innovator, and creative technologist with expertise in STEM education, digital media, and scientific research. As a Kenya Science and Engineering Fair (KSEF) advisor and projects manager, he mentors young scientists, guiding them in developing award-winning innovations. He is also an IC Technorat, leading advancements in science and technology. Beyond education, Dominic is a skilled photographer and video editor, using visual storytelling to make science more engaging. His philosophy, “If you take care of minutes, hours will take care of themselves,” reflects his belief in consistent effort, strategic thinking, and innovation to drive success in both research and creativity.

    Related Posts

    How to make Osmolarity and Electrolyte Optimization of Locally Sourced Oral Rehydration Formulations

    1. Introduction The Osmolarity and Electrolyte Optimization of Locally Sourced Oral Rehydration Formulations is an innovative research project investigating how locally available ingredients can be used to develop affordable oral…

    Read more

    How to make biofilm-Disrupting Efficacy of Organic Acid–Essential Oil Blends on Food-Contact Surfaces

    1. Introduction The Biofilm-Disrupting Efficacy of Organic Acid–Essential Oil Blends on Food-Contact Surfaces is an innovative food-safety research project investigating the potential of naturally derived antimicrobial substances to reduce microbial…

    Read more

    Leave a Reply

    Your email address will not be published. Required fields are marked *