Object Detection of Suckling Piglets Based on Jetson Nano and YOLO v5

被引:0
|
作者
Ding Q. [1 ]
Liu L. [2 ,3 ]
Chen J. [1 ]
Tai M. [2 ]
Shen M. [2 ,3 ]
机构
[1] College of Engineering, Nanjing Agricultural University, Nanjing
[2] College of Artificial Intelligence, Nanjing Agricultural University, Nanjing
[3] Jiangsu Smart Animal Husbandry Equipment Technology Innovation Center, Nanjing
关键词
Edge computing; Embedded terminal; Jetson Nano; Object detection; Suckling piglets; YOLO v5;
D O I
10.6041/j.issn.1000-1298.2022.03.029
中图分类号
学科分类号
摘要
The deployment of piglet target detection model at the edge of the device is an important basis for fine management of piglets during lactation. Recognition of suckling piglets under complex environments is a difficult task, and deep learning methods are usually used to solve this problem. However, the object detection model of piglets based on deep learning often needs high computer force support, which is difficult to deploy in the field. To solve these problems, a object detection model of suckling piglets based on embedded terminal deployment was proposed, which made the deployment of piglet object detection system more flexible. A database was established by using images of suckling piglets with a data volume of 14000 pieces. The training set, test set, and validation set were divided by 8:1:1. The YOLO v5s, YOLO v5m, YOLO v5l, and YOLO v5x deep learning networks were trained to extract the characteristics of suckling piglets, and the corresponding piglets detection model was established to conduct object detection for suckling piglets. The Conv, BN, Activation Function layer, the same tensor and operation part of the network were fused, and the Concat layer was deleted to quantify the network structure and reduce the computational force demand of the model during operation. An embedded device Jetson Nano was used to infer the modified model to realize the deployment of piglet target detection model in the embedded terminal. The experimental results showed that the average running time of the optimized YOLO v5s, YOLO v5m, YOLO v5l, and YOLO v5x models were 65 ms, 170 ms, 315 ms and 560 ms, respectively, but the detection accuracy was dropped to 96.8%, 97.0%, 97.0% and 96.6%, respectively. The optimized YOLO v5s model can implement real-time detection of suckling piglets on embedded devices, which can lay a foundation for the edge computing model of piglets detection and provide technical support for precision breeding. © 2022, Chinese Society of Agricultural Machinery. All right reserved.
引用
收藏
页码:277 / 284
页数:7
相关论文
共 22 条
  • [1] PENG Yankun, YANG Qinghua, WANG Wenxiu, Online detection and classification of pork moisture based on near-infrared spectra, Transactions of the Chinese Society for Agricultural Machinery, 49, 3, pp. 347-353, (2018)
  • [2] ZHANG Haifeng, Market function and social significance of "insurance+futures" mode of live pigs, China Swine Industry, 15, 6, pp. 20-22, (2020)
  • [3] NASIRAHMADI A, HENSEL O, EDWARDS S A, Et al., A new approach for categorizing pig lying behaviour based on a delaunay triangulation method, Animal, 11, 1, pp. 131-139, (2017)
  • [4] NASIRAHMADI A, HENSEL O, EDWARDS S A, Et al., Automatic detection of mounting behaviours among pigs using image analysis, Computers and Electronics in Agriculture, 124, pp. 295-302, (2016)
  • [5] VIAZZI S, ISMAYILOVA G, OCZAK M, Et al., Image feature extraction for classification of aggressive interactions among pigs, Computers and Electronics in Agriculture, 104, pp. 57-62, (2014)
  • [6] YANG Q, XIAO D, LIN S., Feeding behavior recognition for group-housed pigs with the Faster R-CNN, Computers and Electronics in Agriculture, 155, pp. 453-460, (2018)
  • [7] CHEN C, ZHU W, STEIBEL J, Et al., Classification of drinking and drinker-playing in pigs by a video-based deep learning method, Biosystems Engineering, 196, pp. 1-14, (2020)
  • [8] KASHIHA M, BAHR C, OTT S, Et al., Automatic monitoring of pig locomotion using image analysis, Livestock Science, 159, pp. 141-148, (2014)
  • [9] MATTHEWS S G, MILLER A L, PLOTZ T, Et al., Automated tracking to measure behavioural changes in pigs for health and welfare monitoring, Scientific Reports, 7, 1, pp. 1-12, (2017)
  • [10] NAVARRO-JOVER J M, ALCANIZ-RAY M A, GOMEZ V, Et al., An automatic colour-based computer vision algorithm for tracking the position of piglets, Spanish Journal of Agricultural Research, 7, 3, pp. 535-549, (2009)