Detection of small intestinal villus of pigs from pathological images using improved YOLOv5s

被引:0
作者
Wang M. [1 ]
Wang A. [1 ]
Xiao D. [1 ]
Xiong Y. [2 ]
Wang L. [2 ]
Li P. [1 ]
Wu Y. [1 ]
机构
[1] College of Mathematics and Informatics, South China Agricultural University, Guangzhou
[2] South China Key Laboratory of Animal Nutrition and Feed, Ministry of Agriculture and Rural Affairs, Institute of Animal Science, Guangdong Academy of Agricultural Sciences, Guangzhou
来源
Nongye Gongcheng Xuebao/Transactions of the Chinese Society of Agricultural Engineering | 2024年 / 40卷 / 05期
关键词
algorithm; object detection; parameter-free attention mechanism; pathological images; pig; pig small intestinal villus; YOLOv5s;
D O I
10.11975/j.issn.1002-6819.202311043
中图分类号
学科分类号
摘要
Object detection of small intestinal villus in pathology images of pigs is of practical use in the agricultural and veterinary fields. However, manual detection cannot fully meet the large-scale production at present, due to the time-consuming, and labor-intensive task. In this study, an improved YOLOv5s model was proposed to rapidly and accurately detect the specific location of small intestinal villus in pathology images. The source of experimental data was taken as the pathology images of small intestinal villus in pigs provided by the Institute of Animal Husbandry, Guangdong Academy of Agricultural Sciences. To train the model, 64 high-resolution images of intact small intestinal villus were also collected and then cropped into 626 images with a size of 640×640. According to the ratio of 8:2, these images were divided into the training and validation sets. Firstly, the spatial pyramid was optimized in the backbone network of YOLOv5s using hybrid pooling in the form of tandem. The feature extraction and representation further improved the detection accuracy. This optimization was used to better capture the feature information at different scales. The model was trained to more accurately learn the content. Secondly, a network module called SimAM (A Simple, Parameter-Free Attention Module) was introduced to combine the attention mechanism and residual connectivity of the Bottleneck. A weighted feature representation was then obtained to weight the feature maps in Bottleneck. Thereby the model was enhanced to perceive the target. Compared with the traditional attention module, the SimAM module featured simplicity without the parameter tuning, leading to a more efficient model and easy to implement. The spatial pyramid and the attention mechanism after improvement were better utilized to enhance the detection performance of small intestinal villus in pigs. This improved approach reduced the model parameters and computation with the high detection accuracy, indicating a more lightweight and efficient model. The enhancing ability to perceive the target was used to more accurately locate and identify small intestinal villus in pathology images. More reliable tools and support were provided in the agricultural and veterinary fields. According to the experimental results, the improved model achieved significant performance in detecting the small intestinal villus in pathology images of pigs. The average precision value reached 92.43%, while the detection speed was 40 frames per second. Compared with the original YOLOv5s model, the improved model reduced the inference time by 1.04 ms per frame without increasing the number of parameters. Also, the average precision was improved by 4.62 percentage points. Compared with other common target detection models, significant advantages were found in the detection accuracy, detection speed, and the number of model parameters. There were significant improvements in both speed and accuracy. The network structure was optimized to introduce an attention mechanism, in order to more accurately detect the small bowel villus in pathology images with the higher detection speed. In addition, the improved model was also more efficient and feasible for practical applications, in terms of the number of parameters. © 2024 Chinese Society of Agricultural Engineering. All rights reserved.
引用
收藏
页码:207 / 215
页数:8
相关论文
共 36 条
  • [1] YANG H, PARUCH L, CHEN X, Et al., Antibiotic application and resistance in swine production in China: Current situation and future perspectives, Frontiers in Veterinary Science, 6, (2019)
  • [2] ROSANOWSKI S M, MAGOURAS I, HO W C, Et al., The challenges of pig farming in Hong Kong: A study of farmers’ perceptions and attitudes towards a pig health and production management service, BMC Veterinary Research, 19, 1, (2023)
  • [3] FOUHSE J M, ZIJLSTRA R T, WILLING B P., The role of gut microbiota in the health and disease of pigs, Animal Frontiers, 6, 3, pp. 30-36, (2016)
  • [4] ZHU H L, LIU Y L, XIE X L, Et al., Effect of L-arginine on intestinal mucosal immune barrier function in weaned pigs after Escherichia coli LPS challenge, Innate Immunity, 19, 3, pp. 242-252, (2013)
  • [5] WANG Meihua, KE Fanhui, LIANG Yun, Et al., 3D attention and Transformer based single image deraining network, Journal of Image and Graphics, 27, 5, pp. 1509-1521, (2022)
  • [6] BURRIN D G, STOLL B., Metabolic fate and function of dietary glutamate in the gut, The American Journal of Clinical Nutrition, 90, 3, pp. 850-856, (2009)
  • [7] PLUSKE J R, HAMPSON D J, WILLIAMS I H., Factors influencing the structure and function of the small intestine in the weaned pig: A review, Livestock Production Science, 51, 1-3, pp. 215-236, (1997)
  • [8] BURRIN D, SANGILD P T, STOLL B, Et al., Translational advances in pediatric nutrition and gastroenterology: New insights from pig models, Annual Review of Animal Biosciences, 8, pp. 321-354, (2020)
  • [9] ZHOU Shuting, XIE Yangyang, DING Sijia, Et al., Observation on the histopathology of epidemic strain of porcine epidemic diarrhea virus in miniature pigs, Shanghai Journal of Agriculture, 33, 4, pp. 3-97, (2017)
  • [10] LIU S, LIU D, SRIVASTAVA G, Et al., Overview and methods of correlation filter algorithms in object tracking, Complex & Intelligent Systems, 7, pp. 1895-1917, (2021)