Research on Enhanced Dynamic Pig Counting Based on YOLOv8n and Deep SORT.

Sensors (Basel)

Guangdong-Hong Kong-Macao Greater Bay Area Artificial Intelligence Application Technology Research Institute, Shenzhen Polytechnic University, Shenzhen 518055, China.

Published: April 2025


Category Ranking

98%

Total Visits

921

Avg Visit Duration

2 minutes

Citations

20

Article Abstract

Pig counting is an essential activity in the administration of pig farming. Currently, manual counting is inefficient, costly, and unsuitable for systematic analysis. However, research on dynamic pig counting encounters challenges, including inadequate detection accuracy stemming from crowding, occlusion, deformation, and low-light conditions. Target tracking issues characterized by poor accuracy, frequent identity confusion, and false positive trajectories ultimately lead to diminished accuracy in the final counting outcomes. Given these existing limitations, this paper proposes an enhanced algorithm based on the YOLOv8n+Deep SORT model. The ELA attention mechanism, GSConv, and VoVGSCSP lightweight convolution modules are introduced in YOLOv8n, which improve detection accuracy and speed for pig target recognition. Additionally, Deep SORT is enhanced by integrating the DenseNet feature extraction network and CIoU matching algorithm, improving the accuracy and stability of target tracking. Experimental results indicate that the improved Deep SORT-P pig tracking algorithm attains MOTA and MOTP values of 89.2% and 90.4%, respectively, reflecting improvements of 4.2% and 1.7%, while IDSW is diminished by 25.5%. Finally, counting experiments were performed on videos of pigs traversing the farm passage using both the original and improved algorithms. The improved YOLOv8n-EGV+Deep SORT-P algorithm achieved a counting accuracy of 92.1%, reflecting a 17.5% improvement over the original algorithm. Meanwhile, the improved algorithm presented in this study successfully attained stable dynamic pig counting in practical environments, offering valuable data and references for research on dynamic pig counting.

Download full-text PDF

Source
http://www.ncbi.nlm.nih.gov/pmc/articles/PMC12073802PMC
http://dx.doi.org/10.3390/s25092680DOI Listing

Publication Analysis

Top Keywords

pig counting
20
dynamic pig
16
counting
9
pig
8
deep sort
8
detection accuracy
8
target tracking
8
accuracy
6
algorithm
6
enhanced dynamic
4

Similar Publications

Gastrointestinal parasites in pigs in Brazil: prevalence, risk factors, diagnosis, and extension activities.

Parasitol Res

September 2025

Laboratório de Parasitologia, Instituto Biomédico, Universidade Federal Fluminense (UFF), Bloco E, 5º Andar, 510-525,Outeiro São João Batista S/N, Niterói, Rio de Janeiro, 24020-141, Brazil.

Brazil is a major pig-producing country with production systems that include both industrial and family farms. In these facilities, parasitic diseases present an obstacle to production. This study aimed to estimate the prevalence and risk factors of the gastrointestinal parasites that infect pigs as well as to provide information for producers through extension activities.

View Article and Find Full Text PDF

Drug delivery to the central nervous system (CNS) is primarily hindered by the blood-brain barrier (BBB). To address this, mucoadhesive formulations have been designed to prolong residence time at the application site. In this study, we comprehensively characterized the physicochemical and mucoadhesive properties of hyaluronic acid tyramine (HATA) photocrosslinked hydrogels using rheological methods, nanoindentation, contact angle goniometry, and advanced confocal microscopy.

View Article and Find Full Text PDF

Animal welfare and meat quality: The impact of on-farm slaughter on Cinta senese pigs.

Meat Sci

September 2025

Department of Agriculture, Food and Environment, University of Pisa, via del Borghetto 80, 56124 Pisa, Italy; Center for Research in Agricultural and Environmental Sciences, University of Pisa, via Vecchia di Marina, 6 - 56122 San Piero a Grado, Pisa, Italy; Research Center of Nutraceutical and Food

This study evaluated the effects of on-farm slaughter (OF) compared to traditional slaughter (TS) on animal welfare, meat quality, and microbiological safety in Cinta senese pigs reared outdoors. Forty pigs were slaughtered using both methods across different seasons, allowing for the analysis of environmental influences via the Temperature-Humidity Index (THI). Blood parameters (cortisol, LDH, CPK), carcass and meat microbial loads, and technological meat quality traits were assessed.

View Article and Find Full Text PDF

The number of thoracolumbar vertebrae (NTLV) and the number of ribs (NR) are economically important traits in pigs due to their influence on carcass length and meat yield. Although is an established key gene, it fails to fully account for population-level variation in vertebral count, necessitating a further exploration of its genetic mechanisms. Given the efficacy of crossbred populations in mapping the genetic determinants of phenotypic variation, we analyzed 439 pigs from a Landrace × Yorkshire cross.

View Article and Find Full Text PDF

Rationale And Objectives: Advances in computed tomography (CT) have enabled myocardial extracellular volume (ECV) quantification, but the optimal post-contrast timing for CT-derived ECV remains undefined. In this preclinical study using a swine model, we aimed to determine the optimal post-contrast acquisition time for photon-counting CT (PCCT)-derived ECV using cardiac magnetic resonance (CMR) as the reference standard.

Materials And Methods: Twenty-three CMR and PCCT scans were performed on infarcted swine, and nine scans on healthy controls.

View Article and Find Full Text PDF