Pig-ear detection from the thermal infrared image based on improved YOLOv8n

被引:5
|
作者
Han, Hui [1 ,2 ]
Xue, Xianglong [2 ]
Li, Qifeng [2 ]
Gao, Hongfeng [1 ]
Wang, Rong [2 ]
Jiang, Ruixiang [2 ]
Ren, Zhiyu [2 ]
Meng, Rui [2 ]
Li, Mingyu [2 ]
Guo, Yuhang [2 ]
Liu, Yu [2 ]
Ma, Weihong [2 ]
机构
[1] Henan Univ Sci & Technol, Coll Informat Engn, Luoyang 471023, Henan, Peoples R China
[2] Beijing Acad Agr & Forestry Sci, Informat Technol Res Ctr, Beijing Agr Sci Bldg 11,Shuguang Garden Middle Rd, Beijing 100097, Peoples R China
来源
INTELLIGENCE & ROBOTICS | 2024年 / 4卷 / 01期
关键词
Thermal infrared image; YOLOv8n; target detection; convolution; MHSA; loss function; BODY-TEMPERATURE; THERMOGRAPHY; CATTLE;
D O I
10.20517/ir.2024.02
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
In the current pig scale breeding process, considering the low accuracy and speed of the infrared thermal camera automatic measurement concerning the pig body surface temperature, this paper proposes an improved algorithm for target detection of the pig ear thermal infrared image based on the YOLOv8n model. The algorithm firstly replaces the standard convolution in the CSPDarknet-53 and neck network with Deformable Convolution v2, so that the convolution kernel can adjust its shape according to the actual situation, thus enhancing the extraction of input features; secondly, the Multi-Head Self-Attention module is integrated into the backbone network, which extends the sensory horizons of the backbone network; finally, the Focal-Efficient Intersection Over Union loss function was introduced into the loss of bounding box regression, which increases the Intersection Over Union loss and gradient of the target and, in turn, improves the accuracy of the bounding box regression. Apart from that, a pig training set, including 3,000 infrared images from 50 different individual pigs, was constructed, trained, and tested. The performance of the proposed algorithm was evaluated by comparing it with the current mainstream target detection algorithms, such as Faster-RCNN, SSD, and YOLO families. The experimental results showed that the improved model achieves 97.0%, 98.1% and 98.5% in terms of Precision, Recall and mean Average Precision, which are 3.3, 0.7 and 4.7 percentage points higher compared to the baseline model. At the same time, the detection speed can reach 131 frames per second, which meets the requirement of real-time detection. The research results show that the improved pig ear detection method based on YOLOv8n proposed in this paper can accurately locate the pig ear in thermal infrared images and provide a reference and basis for the subsequent pig body temperature detection.
引用
收藏
页码:20 / 38
页数:19
相关论文
共 50 条
  • [31] Detection of coal gangue based on MSRCR algorithm and improved lightweight YOLOv8n
    Hong, Yan
    Pan, Ruixian
    Su, Jingming
    Pang, Rong
    INTERNATIONAL JOURNAL OF COAL PREPARATION AND UTILIZATION, 2024,
  • [32] Improved YOLOv8n for Gated Imaging Object Detection Algorithm
    Tian, Qing
    Wang, Ying
    Zhang, Zheng
    Yang, Qiang
    Computer Engineering and Applications, 61 (02): : 124 - 134
  • [33] A lightweight weed detection model for cotton fields based on an improved YOLOv8n
    Wang, Jun
    Qi, Zhengyuan
    Wang, Yanlong
    Liu, Yanyang
    SCIENTIFIC REPORTS, 2025, 15 (01):
  • [34] An Improved Fire and Smoke Detection Method Based on YOLOv8n for Smart Factories
    Zhang, Ziyang
    Tan, Lingye
    Robert, Tiong Lee Kong
    SENSORS, 2024, 24 (15)
  • [35] CAMLLA-YOLOv8n: Cow Behavior Recognition Based on Improved YOLOv8n
    Jia, Qingxiang
    Yang, Jucheng
    Han, Shujie
    Du, Zihan
    Liu, Jianzheng
    ANIMALS, 2024, 14 (20):
  • [36] Improved lightweight flame smoke detection algorithm for YOLOv8n
    Zhang, Yu
    Xiao, Xia
    Wang, Weiling
    Wang, Chunyu
    Jin, Xin
    Wang, Yue
    39TH YOUTH ACADEMIC ANNUAL CONFERENCE OF CHINESE ASSOCIATION OF AUTOMATION, YAC 2024, 2024, : 1544 - 1549
  • [37] Detection of Traffic Signs Based on Lightweight YOLOv8n
    Liu, Shihong
    Li, Shiwei
    2024 5TH INTERNATIONAL CONFERENCE ON COMPUTER ENGINEERING AND APPLICATION, ICCEA 2024, 2024, : 1200 - 1204
  • [38] PCB Surface Defect Detection based on YOLOv8n
    You, Rui
    Wang, Zhifeng
    IAENG International Journal of Computer Science, 2024, 51 (12) : 2017 - 2025
  • [39] FP-YOLOv8: Surface Defect Detection Algorithm for Brake Pipe Ends Based on Improved YOLOv8n
    Rao, Ke
    Zhao, Fengxia
    Shi, Tianyu
    SENSORS, 2024, 24 (24)
  • [40] A Novel Foreign Object Detection Method in Transmission Lines Based on Improved YOLOv8n
    Liu, Yakui
    Jiang, Xing
    Xu, Ruikang
    Cui, Yihao
    Yu, Chenhui
    Yang, Jingqi
    Zhou, Jishuai
    CMC-COMPUTERS MATERIALS & CONTINUA, 2024, 79 (01): : 1263 - 1279