skip to main content
10.1145/3579109.3579117acmotherconferencesArticle/Chapter ViewAbstractPublication PagesicvipConference Proceedingsconference-collections
research-article

Crowd-aware Black Pig Detection for Low Illumination

Published: 14 March 2023 Publication History

Abstract

Pig detection is vital to pig farms since it is the basis for counting, weight estimation, and behavior recognition functions. Existing methods focused on white pig detection instead of black pigs because the contrast between white pigs and the background is more evident than black pigs, making black pig detection more challenging. Furthermore, pig farms often suffer from insufficient light, and pigs tend to be stacked together, which makes it hard to detect pigs accurately. To this end, we propose a black pig detection method, based on YOLOV4, robust to both crowd scenes and low-illumination conditions. The method consists of the following parts: 1) generate domain adaptation dataset (DAD) based on style-transfer to optimize the original data distribution, therefore improving the performance of the method for low-illuminated conditions; 2) propose a crowd-aware module (CAM), adapted to YOLOV4 backbone architecture, to generate crowd density maps; 3) develop an adaptive attention module (AAM) to fuse YOLOV4 backbone features with corresponding crowd density map allowing the method robust to pigs in the crowd. The experimental results confirm the feasibility of this method. The mAP value in fully-lighting and poorly-lighting increased to 88.95% and 84.74%, respectively.

References

[1]
Yang Q, Xiao D. A review of video-based pig behavior recognition[J]. Applied Animal Behaviour Science, 2020, 233: 105146.
[2]
Gu X, Song H, Chen J, A review of research on pig behavior recognition based on image processing[J]. International Core Journal of Engineering, 2020, 6(1): 249-254.
[3]
Yang Q, Xiao D, Lin S. Feeding behavior recognition for group-housed pigs with the Faster R-CNN[J]. Computers and electronics in agriculture, 2018, 155: 453-460.
[4]
Kongsro J. Estimation of pig weight using a Microsoft Kinect prototype imaging system[J]. Computers and Electronics in Agriculture, 2014, 109: 32-35.
[5]
Buayai P, Piewthongngam K, Leung C K, Semi-automatic pig weight estimation using digital image analysis[J]. Applied Engineering in Agriculture, 2019, 35(4): 521-534.
[6]
Kashiha M, Bahr C, Ott S, Automatic weight estimation of individual pigs using image analysis[J]. Computers and Electronics in Agriculture, 2014, 107: 38-44.
[7]
Chen G, Shen S, Wen L, Efficient pig counting in crowds with keypoints tracking and spatial-aware temporal response filtering[C]//2020 IEEE International Conference on Robotics and Automation (ICRA). IEEE, 2020: 10052-10058.
[8]
Tian M, Guo H, Chen H, Automated pig counting using deep learning[J]. Computers and Electronics in Agriculture, 2019, 163: 104840.
[9]
Liu Y, Zhang X, Qi W, Prevention and Control Strategies of African Swine Fever and Progress on Pig Farm Repopulation in China[J]. Viruses, 2021, 13(12): 2552.
[10]
Suwannakhun S, Daungmala P. Estimating pig weight with digital image processing using deep learning[C]//2018 14th International Conference on Signal-Image Technology & Internet-Based Systems (SITIS). IEEE, 2018: 320-326.
[11]
Martínez‐Avilés M, Fernández‐Carrión E, López García‐Baones J M, Early detection of infection in pigs through an online monitoring system[J]. Transboundary and emerging diseases, 2017, 64(2): 364-373.
[12]
Sun L, Liu Y, Chen S, Pig detection algorithm based on sliding windows and PCA convolution[J]. IEEE Access, 2019, 7: 44229-44238.
[13]
Zhang L, Gray H, Ye X, Automatic individual pig detection and tracking in pig farms[J]. Sensors, 2019, 19(5): 1188.
[14]
Psota E T, Mittek M, Pérez L C, Multi-pig part detection and association with a fully-convolutional network[J]. Sensors, 2019, 19(4): 852.
[15]
Sa J, Choi Y, Lee H, Fast pig detection with a top-view camera under various illumination conditions[J]. Symmetry, 2019, 11(2): 266.
[16]
Arruda V F, Paixão T M, Berriel R F, Cross-domain car detection using unsupervised image-to-image translation: From day to night[C]//2019 International Joint Conference on Neural Networks (IJCNN). IEEE, 2019: 1-8.
[17]
Zhang S, Tuo H, Hu J, Domain Adaptive YOLO for One-Stage Cross-Domain Detection[C]//Asian Conference on Machine Learning. PMLR, 2021: 785-797.
[18]
Bochkovskiy A, Wang C Y, Liao H Y M. Yolov4: Optimal speed and accuracy of object detection[J]. arXiv preprint arXiv:2004.10934, 2020.
[19]
Yoo J, Uh Y, Chun S, Photorealistic style transfer via wavelet transforms[C]//Proceedings of the IEEE/CVF International Conference on Computer Vision. 2019: 9036-9045.
[20]
Li Y, Fang C, Yang J, Universal style transfer via feature transforms[J]. Advances in neural information processing systems, 2017, 30.
[21]
Wang F, Jiang M, Qian C, Residual attention network for image classification[C]//Proceedings of the IEEE conference on computer vision and pattern recognition. 2017: 3156-3164.
[22]
Woo S, Park J, Lee J Y, Cbam: Convolutional block attention module[C]//Proceedings of the European conference on computer vision (ECCV). 2018: 3-19.
[23]
Torralba A, Russell B C, Yuen J. Labelme: Online image annotation and applications[J]. Proceedings of the IEEE, 2010, 98(8): 1467-1484.
[24]
Duan K, Bai S, Xie L, Centernet: Keypoint triplets for object detection[C]//Proceedings of the IEEE/CVF international conference on computer vision. 2019: 6569-6578.
[25]
Ren S, He K, Girshick R, Faster r-cnn: Towards real-time object detection with region proposal networks[J]. Advances in neural information processing systems, 2015, 28.

Recommendations

Comments

Information & Contributors

Information

Published In

cover image ACM Other conferences
ICVIP '22: Proceedings of the 2022 6th International Conference on Video and Image Processing
December 2022
189 pages
ISBN:9781450397568
DOI:10.1145/3579109
Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than the author(s) must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected].

Publisher

Association for Computing Machinery

New York, NY, United States

Publication History

Published: 14 March 2023

Permissions

Request permissions for this article.

Check for updates

Author Tags

  1. Crowd detection
  2. Domain adaptation
  3. Pig detection

Qualifiers

  • Research-article
  • Research
  • Refereed limited

Funding Sources

  • Sichuan Science and Technology Program of China

Conference

ICVIP 2022

Contributors

Other Metrics

Bibliometrics & Citations

Bibliometrics

Article Metrics

  • 0
    Total Citations
  • 42
    Total Downloads
  • Downloads (Last 12 months)20
  • Downloads (Last 6 weeks)10
Reflects downloads up to 03 Mar 2025

Other Metrics

Citations

View Options

Login options

View options

PDF

View or Download as a PDF file.

PDF

eReader

View online with eReader.

eReader

HTML Format

View this article in HTML Format.

HTML Format

Figures

Tables

Media

Share

Share

Share this Publication link

Share on social media