Research on Pig Breed Identification Algorithm Based on Image Segmentation and Pattern Recognition Technology

This paper discusses the application of image segmentation and pattern recognition technology in pig breed identification, and proposes a new framework combining NAM-YOLO algorithm and case segmentation network YOLACT. We first adopted the target detection network YOLOv5 for target positioning. The experimental results show that the preliminary application of YOLOv5 in the identification of pig breeds has achieved remarkable results. However, in practice, there are still some challenges, such as missing detection (not detecting all pigs) and false detection (incorrectly identifying non-pig objects as pigs). These problems are usually caused by a change in the size of the target and a shift in the position of the detection box. To solve these problems, this paper proposes a NAM-YOLO algorithm based on the improved normalized attention mechanism. By introducing the normalized attention mechanism to enhance the adaptability of the model to different scale targets, the false detection rate and missing detection rate are effectively reduced. In addition, the position error of the detection frame is corrected by boundary extension technique to ensure that each individual can be correctly identified. After the initial inspection, we divided the entire image into several small images and processed these small images using the YOLACT instance segmentation network to achieve accurate segmentation of individual pigs. The ability of YOLACT to generate instance masks directly from images without relying on additional segmentation modules or complex training processes makes it ideal for the individual pig segmentation task in this study. By applying YOLACT to the small images obtained above, it is possible to achieve fine segmentation of each individual pig, so as to obtain more accurate morphological characteristics information. To sum up, the framework based on NAM-YOLO and YOLACT proposed in this paper shows good potential in solving complex problems in pig breed identification, the recognition accuracy is significantly higher than that of traditional methods based on artificial features, and it can maintain high stability under different lighting conditions and shooting angles.

Authors

Institutions

Publication Details

Published
2025-04-23
DOI
https://doi.org/10.1109/acctcs66275.2025.00153
Primary Topic
Traditional Chinese Medicine Studies
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Research on Pig Breed Identification Algorithm Based on Image Segmentation and Pattern Recognition Technology

Miao Yu, Yanghong Qin
Traditional Chinese Medicine Studies
article

Research on Pig Breed Identification Algorithm Based on Image Segmentation and Pattern Recognition Technology

Miao Yu, Yanghong Qin
article en

Abstract

This paper discusses the application of image segmentation and pattern recognition technology in pig breed identification, and proposes a new framework combining NAM-YOLO algorithm and case segmentation network YOLACT. We first adopted the target detection network YOLOv5 for target positioning. The experimental results show that the preliminary application of YOLOv5 in the identification of pig breeds has achieved remarkable results. However, in practice, there are still some challenges, such as missing detection (not detecting all pigs) and false detection (incorrectly identifying non-pig objects as pigs). These problems are usually caused by a change in the size of the target and a shift in the position of the detection box. To solve these problems, this paper proposes a NAM-YOLO algorithm based on the improved normalized attention mechanism. By introducing the normalized attention mechanism to enhance the adaptability of the model to different scale targets, the false detection rate and missing detection rate are effectively reduced. In addition, the position error of the detection frame is corrected by boundary extension technique to ensure that each individual can be correctly identified. After the initial inspection, we divided the entire image into several small images and processed these small images using the YOLACT instance segmentation network to achieve accurate segmentation of individual pigs. The ability of YOLACT to generate instance masks directly from images without relying on additional segmentation modules or complex training processes makes it ideal for the individual pig segmentation task in this study. By applying YOLACT to the small images obtained above, it is possible to achieve fine segmentation of each individual pig, so as to obtain more accurate morphological characteristics information. To sum up, the framework based on NAM-YOLO and YOLACT proposed in this paper shows good potential in solving complex problems in pig breed identification, the recognition accuracy is significantly higher than that of traditional methods based on artificial features, and it can maintain high stability under different lighting conditions and shooting angles.

Chongqing Three Gorges University (CN)
Openalex Percentile: Top 63%
Traditional Chinese Medicine Studies
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Research on Pig Breed Identification Algorithm Based on Image Segmentation and Pattern Recognition Technology — Miao Yu, Yanghong Qin · (2025) | TGRS Research Map | TGRS