Implementation of YOLOv8 Instance Segmentation for Automatic Counting and Identification of Multispecies Bacterial Colony
DOI:
https://doi.org/10.25126/jitecs.2026112666Abstract
This study introduces the implementation of YOLOv8 instance segmentation model, for automating the quantification and identification of multispecies bacterial colonies. In microbiological research, accurate counting and rapid identification of various species within colonies are essential. YOLOv8's real-time capabilities and high accuracy make it particularly well-suited for this task. We demonstrate its efficacy in accurately detecting and segmenting individual bacterial colonies, even when they comprise multispecies like Bacillus subtilis, Escherichia coli, Pseudomonas aeruginosa, and Staphylococcus aureus. This innovation streamlines the labor-intensive processes of colony counting and species identification. To improve precision, we incorporate post-processing techniques to handle overlapping colonies, significantly enhancing accuracy compared to manual counting methods. Our proposed method exhibits superior performance and provides a valuable tool for microbiologists and researchers, expediting bacterial colony analysis. In this study, we fine-tuned hyperparameters to achieve the best mean average precision (mAP) for masks and bounding boxes. We used a primary and a secondary dataset for training. The hyperparameter modifications, including using an Adam optimizer with a learning rate of 0.01 and an epoch value of 50, resulted in mAP values of 90%. These findings underscore the importance of optimizing the optimizer type, learning rate, and the number of epochs, revealing their impact on the model's performance in automating bacterial colony quantification and identification.
Downloads
References
1. A. D. Balomenos, P. Tsakanikas, Z. Aspridou, A. P. Tampakaki, K. P. Koutsoumanis, and E. S. Manolakos, “Image analysis driven single-cell analytics for systems microbiology,” BMC Systems Biology, vol. 11, no. 1, Apr. 2017. doi: 10.1186/s12918-017-0399-z.
2. D. Nie, E. A. Shank, and V. Jojic, “A deep framework for bacterial image segmentation and classification,” in Proceedings of the 6th ACM Conference on Bioinformatics, Computational Biology and Health Informatics, Sep. 2015. doi: 10.1145/2808719.2808751.
3. A. Ferrari, S. Lombardi, and A. Signoroni, “Bacterial colony counting with Convolutional Neural Networks in Digital Microbiology Imaging,” Pattern Recognition, vol. 61., pp. 629–640, Jan. 2017. doi: 10.1016/j.patcog.2016.07.016.
4. B. Zieliński, A. Plichta, K. Misztal, P. Spurek, M. Brzychczy-Włoch, and D. Ochońska, “Deep learning approach to bacterial colony classification,” PLOS ONE, vol. 12, no. 9, p. e0184554, Sep. 2017. doi: 10.1371/journal.pone.0184554.
5. S. Majchrowska et al., “AGAR a microbial colony dataset for deep learning detection.” arXiv, 2021. doi: 10.48550/ARXIV.2108.01234.
6. R. S. Passa, S. Nurmaini, and D. P. Rini, “YOLOv8 Based on Data Augmentation for MRI Brain Tumor Detection,” Scientific Journal of Informatics, vol. 10, no. 3, pp. 363-370, 2023.
7. K. Simonyan and A. Zisserman, “Very Deep Convolutional Networks for Large-Scale Image Recognition.” arXiv, 2014. doi: 10.48550/ARXIV.1409.1556.
8. J. Terven and D. Cordova-Esparza, “A Comprehensive Review of YOLO Architectures in Computer Vision: From YOLOv1 to YOLOv8 and YOLO-NAS,” arXiv, 2023, doi: 10.48550/ARXIV.2304.00501.
9. C. Feng, Y. Zhong, Y. Gao, M. R. Scott, and W. Huang, “TOOD: Task-aligned One-stage Object Detection.” arXiv, 2021. doi: 10.48550/ARXIV.2108.07755.
10. X. Yue, K. Qi, X. Na, Y. Zhang, Y. Liu, and C. Liu, “Improved YOLOv8-Seg Network for Instance Segmentation of Healthy and Diseased Tomato Plants in the Growth Stage,” Agriculture, vol. 13, no. 8, p. 1643, Aug. 2023. doi: 10.3390/agriculture13081643.
11. L. Bottou, “Stochastic Gradient Descent Tricks,” Lecture Notes in Computer Science. Berlin Heidelberg: Springer, pp. 421–436, 2012. doi: 10.1007/978-3-642-35289-8_25.
12. R. M. Gower, N. Loizou, X. Qian, A. Sailanbayev, E. Shulgin, and P. Richtarik, “SGD: General Analysis and Improved Rates,” arXiv, 2019, doi: 10.48550/ARXIV.1901.09401.
13. E. Hassan, M. Y. Shams, N. A. Hikal, and S. Elmougy, “The effect of choosing optimizer algorithms to improve computer vision tasks: a comparative study,” Multimedia Tools and Applications, vol. 82, no. 11, pp. 16591–16633, Sep. 2022. doi: 10.1007/s11042-022-13820-0.
14. D. P. Kingma and J. Ba, “Adam: A Method for Stochastic Optimization.” arXiv, 2014. doi: 10.48550/ARXIV.1412.6980.
15. B. S. S. Rao and B. S. Rao, "An Effective WBC Segmentation and Classification Using MobilenetV3–ShufflenetV2 Based Deep Learning Framework," IEEE Access, vol. 11, pp. 27739-27748, 2023, doi: 10.1109/ACCESS.2023.3259100
16. Z. Ning, X. Wu, J. Yang, and Y. Yang, “MT-YOLOv5: Mobile terminal table detection model based on YOLOv5,” Journal of Physics: Conference Series, vol. 1978, no. 1, p. 012010, Jul. 2021. doi: 10.1088/1742-6596/1978/1/012010.
17. K. He, X. Zhang, S. Ren, and J. Sun, “Deep Residual Learning for Image Recognition.” arXiv, 2015. doi: 10.48550/ARXIV.1512.03385.
18. A. Nikfarjam, J. D. Ransohoff, A. Callahan, V. Polony, and N. H. Shah, “Profiling off-label prescriptions in cancer treatment using social health networks,” JAMIA Open, vol. 2, no. 3, pp. 301–305, Jul. 2019. doi: 10.1093/jamiaopen/ooz025.
19. W. Zhao, F. Chen, H. Huang, D. Li, and W. Cheng, “A New Steel Defect Detection Algorithm Based on Deep Learning,” Computational Intelligence and Neuroscience, vol. 2021, pp. 1–13, Mar. 2021. doi: 10.1155/2021/5592878.
20. C. Zhang, S. Bengio, M. Hardt, B. Recht, and O. Vinyals, “Understanding deep learning (still) requires rethinking generalization,” Communications of the ACM, vol. 64, no. 3, pp. 107–115, Feb. 2021. doi: 10.1145/3446776.
21. M. Cowan, T. Moreau, T. Chen, and L. Ceze, “Automating Generation of Low Precision Deep Learning Operators.” arXiv, 2018. doi: 10.48550/ARXIV.1810.11066.
Published
Versions
- 2026-09-22 (2)
- 2026-09-07 (1)
Issue
Section
License
Copyright (c) 2026 Journal of Information Technology and Computer Science

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
Creative Common Attribution-ShareAlike 4.0 International (CC BY-SA 4.0)
Authors who publish with this journal agree to the following terms:
- Authors retain copyright and grant the journal right of first publication with the work simultaneously licensed under a Creative Commons Attribution License that allows others to share the work with an acknowledgement of the work's authorship and initial publication in this journal.
- Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the journal's published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgement of its initial publication in this journal.
- Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) prior to and during the submission process, as it can lead to productive exchanges, as well as earlier and greater citation of published work (See The Effect of Open Access).








