改进YOLOv5框架在细菌计数方向的研究
Improved YOLOv5 Framework in the Direction of Bacterial Counting
摘要: 水中细菌数量的多少作为衡量水质的重要指标之一,其变化可以间接地反映水体污染程度。水中细菌总数反映了水体被有机物污染的程度。为了能快速、高效、准确地统计出细菌总量,将深度学习引入环境工程中,提出一种基于YOLOv5的细菌计数改进算法。首先对自建细菌数据集使用K-means++聚类算法获得和特征图更加匹配的先验框,之后,在网络中增加一层小目标检测层,提高模型对图像中小目标的敏感度,最后,在骨干网络中C3层后引入一种协调注意力(CA),其不仅能捕获跨通道信息,还能捕获方向感知和位置敏感信息,提高对小目标的识别度,这有助于模型提高对密集预测任务的性能。实验表明,相比于传统的YOLOv5框架算法,改进后的算法在测试集上的平均检测率到达93.04%,提高了7.68%,同时训练损失也更低,验证了增加小目标检测层和注意力机制对细菌图像这种小目标密集检测有较好效果。该算法的引入可以提高细菌计数效率和计数精准度,同时实现对细菌数量的高精度分析,从而进一步深入研究微生物群落的结构、环境污染的程度以及疾病的诊断与治疗等方面,为环境监测提供了有力支持。
Abstract: The number of bacteria in water is one of the important indicators to measure water quality, and the change of bacteria number can indirectly reflect the degree of water pollution. At the same time, the total number of bacteria in water reflects the degree of pollution by organic matter. In order to count the total amount of bacteria quickly, efficiently and accurately, an improved algorithm of bacteria counting based on YOLOv5 is proposed by introducing deep learning into environmental engineering. Firstly, a K-means++ clustering algorithm is used for the self-built bacteria dataset to obtain priori frames that match more closely with the feature map. Secondly, a small target detection layer is added to the network to improve the sensitivity of the model to small targets in images, finally, a coordinated attention (CA) is introduced after the C3 layer in the backbone network, which can capture not only cross-channel information but also orientation-aware and position-sensitive information to improve the recognition of small targets, which helps the model to improve its performance for dense prediction tasks. Experiments show that the improved algorithm achieves an average detection rate of 93.04% on the test set compared to the traditional YOLOv5 framework algorithm, an improvement of 7.68%, as well as a lower training loss, verifying that the addition of the small target detection layer and the attention mechanism is more effective for dense detection of small targets like bacterial images. The introduction of this algorithm can improve the efficiency and accuracy of bacterial counting, and can achieve high precision analysis of bacterial counts, further deepening the study of the structure of microbial communities, the degree of environmental pollution, and the diagnosis and treatment of diseases, providing strong support for environmental monitoring.
文章引用:高新颖, 刘晶雪, 张静, 左兴盛, 张林林. 改进YOLOv5框架在细菌计数方向的研究[J]. 计算机科学与应用, 2024, 14(9): 111-120. https://doi.org/10.12677/csa.2024.149192

参考文献

[1] Zhang, J., Huo, Y.B., Yang, J.L., Wang, X.Z., Yan, B.Y., Du, X.H., Hao, R.Q., Yang, F., Liu, J.X., Liu, L., Liu, Y. and Zhang, H.B. (2022) Automatic Counting of Retinal Ganglion Cells in the Entire Mouse Retina Based on Improved YOLOv5. Zoological Research, 43, 738-749. [Google Scholar] [CrossRef] [PubMed]
[2] 李娇, 葛艳, 刘玉鹏. 基于改进YOLOv5的昏暗小目标交通标志识别[J]. 计算机系统应用, 2023, 32(5): 172-179.
[3] 李冰涛, 李大海. 面向小目标的YOLOv5s安全帽佩戴检测[J]. 计算机系统应用, 2023, 32(8): 221-229.
[4] 张昊, 郑广海, 张鑫, 吕娜. 改进YOLOv5框架的血细胞检测算法[J]. 计算机系统应用, 2023, 32(5): 123-131.
[5] 许竞翔, 欧阳建, 邱懿, 邢博闻. 基于改进YOLOv5的水产养殖细菌性鱼病病原细菌检测算法[J]. 渔业现代化, 2022, 49(2): 60-67.
[6] 张银松, 赵银娣, 袁慕策. 基于改进Faster-RCNN模型的粘虫板图像昆虫识别与计数[J]. 中国农业大学学报, 2019, 24(5): 115-122.
[7] 田枫, 贾昊鹏, 刘芳. 改进YOLOv5的油田作业现场安全着装小目标检测[J]. 计算机系统应用, 2022, 31(3): 159-168.
[8] 许成林, 黄宇博, 赵舵. 改进YOLOv3遥感小目标检测算法[J]. 计算机系统应用, 2023, 32(7): 179-187.
[9] Brugger, S.D., Baumberger, C., Jost, M., Jenni, W., Brugger, U. and Mühlemann, K. (2012) Automated Counting of Bacterial Colony Forming Units on Agar Plates. PLOS ONE, 7, e33695. [Google Scholar] [CrossRef] [PubMed]
[10] Chatterjee, D. and Chaulya, S.K. (2018) Vision Improvement System Using Image Processing Technique for Adverse Weather Condition of Opencast Mines. International Journal of Mining, Reclamation and Environment, 33, 505-516. [Google Scholar] [CrossRef
[11] Chauhan, R., Ghanshala, K.K. and Joshi, R.C. (2018) Convolutional Neural Network (CNN) for Image Detection and Recognition. 2018 First International Conference on Secure Cyber Computing and Communication (ICSCCC), Jalandhar, 15-17 December 2018, 278-282. [Google Scholar] [CrossRef
[12] Chen, W. and Zhang, C. (2008) Bacteria Colony Enumeration and Classification for Clonogenic Assay. 2008 Tenth IEEE International Symposium on Multimedia, Berkeley, 15-17 December 2008, 487-488. [Google Scholar] [CrossRef
[13] Chen, W. and Zhang, C. (2009) An Automated Bacterial Colony Counting and Classification System. Information Systems Frontiers, 11, 349-368. [Google Scholar] [CrossRef
[14] Chen, X., Zhou, X. and Wong, S.T.C. (2006) Automated Segmentation, Classification, and Tracking of Cancer Cell Nuclei in Time-Lapse Microscopy. IEEE Transactions on Biomedical Engineering, 53, 762-766. [Google Scholar] [CrossRef] [PubMed]
[15] Chiang, P., Tseng, M., He, Z. and Li, C. (2015) Automated Counting of Bacterial Colonies by Image Analysis. Journal of Microbiological Methods, 108, 74-82. [Google Scholar] [CrossRef] [PubMed]
[16] Chien, T., Kao, J., Liu, H., Lin, P., Hong, J., Hsieh, H., et al. (2007) Urine Sediment Examination: A Comparison of Automated Urinalysis Systems and Manual Microscopy. Clinica Chimica Acta, 384, 28-34. [Google Scholar] [CrossRef] [PubMed]
[17] Chudasama, D., Patel, T., Joshi, S. and I. Prajapati, G. (2015) Image Segmentation Using Morphological Operations. International Journal of Computer Applications, 117, 16-19. [Google Scholar] [CrossRef
[18] Chunhachart, O. and Suksawat, B. (2016) Construction and Validation of Economic Vision System for Bacterial Colony Count. 2016 International Computer Science and Engineering Conference (ICSEC), Chiang Mai, 14-17 December 2016, 1-5. [Google Scholar] [CrossRef
[19] Clarke, M.L., Burton, R.L., Hill, A.N., Litorja, M., Nahm, M.H. and Hwang, J. (2010) Low‐Cost, High‐Throughput, Automated Counting of Bacterial Colonies. Cytometry Part A, 77, 790-797. [Google Scholar] [CrossRef] [PubMed]
[20] Dash, H.R. and Das, S. (2012) Bioremediation of Mercury and the Importance of Bacterial Mer Genes. International Biodeterioration & Biodegradation, 75, 207-213. [Google Scholar] [CrossRef
[21] 王超, 张运楚, 孙绍涵, 张汉元. 改进YOLOv5算法的钢筋端面检测[J]. 计算机系统应用, 2022, 31(4): 68-80.
[22] 苏鹏, 刘美, 马思群. 基于改进YOLOX-s的安全帽检测[J]. 计算机系统应用, 2023, 32(7): 145-154.
[23] Ma, Y., Liu, H., Ling, C., Zhao, F., Jiang, Y. and Zhang, Y. (2022) Object Detection of Individual Mangrove Based on Improved YOLOv5. Laser & Optoelectronics Progress, 59, Article 1828003.
[24] 顾星, 詹伟达, 崔紫薇, 等. 基于注意力机制的红外目标检测方法[J]. 激光与光电子学进展, 2023, 60(10): 283-290.
[25] 曲海成, 王馨心, 欧阳俊. 基于融合混合域模块与空洞卷积的红外小目标检测[J]. 激光与光电子学进展, 2023, 60(10): 40-52.
[26] 傅扬伟, 张进, 孙珍惜, 等. 面向小目标测量的通道注意力网络与系统设计[J]. 光学精密工程, 2023, 31(6): 962-973.
[27] 张红颖, 贺鹏艺, 彭晓雯. 基于改进高分辨率神经网络的多目标行人跟踪[J]. 光学精密工程, 2023, 31(6): 860-871.
[28] Yang J., Li, H., Du, Y., Mao, Y. and Liu, Q. (2023) A Light Weight Object Detection Algorithm Based on Improved YOLOv5s. Electronics Optics & Control, 30, 24.
[29] 肖振久, 杨玥莹, 孔祥旭. 基于改进YOLOv4的遥感图像目标检测方法[J]. 激光与光电子学进展, 2023, 60(6): 397-405.