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.
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.
The four commonly recognized phases are:
| Growth phase | Description |
|---|---|
| Lag phase | Microorganisms adapt to their environment |
| Exponential phase | Rapid multiplication occurs |
| Stationary phase | Growth rate balances cell loss |
| Decline phase | Viable population decreases |
The system uses recorded colony-count data to generate graphs showing changes in viable counts over time.
5. Materials and Components
| Component | Purpose |
|---|---|
| Smartphone | Captures agar plate images |
| ESP32 (optional) | Controls lighting and electronic accessories |
| LED ring light | Provides consistent illumination |
| Petri dish holder | Maintains fixed imaging position |
| Black enclosure | Reduces external light interference |
| Smartphone stand | Maintains camera stability |
| Calibration reference | Provides image scale |
| Laptop | Supports image processing and analysis |
| Python | Software development |
| OpenCV | Colony detection and image processing |
6. System Design
The proposed system consists of four main sections.
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
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/tool | Application |
|---|---|
| Python | Main programming language |
| OpenCV | Image processing |
| NumPy | Numerical calculations |
| Matplotlib | Growth-curve plotting |
| Streamlit | User interface |
| SQLite | Data storage |
| MIT App Inventor | Optional Android interface |
Proposed application features
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:
| Observation | Time point | Recorded count |
|---|---|---|
| A | 0 hours | 12 |
| B | 2 hours | 24 |
| C | 4 hours | 48 |
| D | 6 hours | 85 |
| E | 8 hours | 120 |
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 parameter | Method |
|---|---|
| Counting accuracy | Compare automated and reference counts |
| Precision | Analyse repeated images |
| Processing speed | Measure time per image |
| Detection sensitivity | Test images with different colony densities |
| Image consistency | Compare images under controlled lighting |
| User friendliness | Evaluate application usability |
| Cost | Compare 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
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.
| Item | Estimated cost (KES) |
|---|---|
| Smartphone stand | 500 |
| LED lighting | 500 |
| Imaging enclosure materials | 1,000 |
| ESP32 (optional) | 800 |
| Connecting wires and accessories | 300 |
| Calibration reference materials | 500 |
| Software development | Free/open-source |
| Miscellaneous | 500 |
| Estimated total | 4,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.






