{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,5,29]],"date-time":"2026-05-29T12:26:23Z","timestamp":1780057583798,"version":"3.54.0"},"reference-count":58,"publisher":"MDPI AG","issue":"7","license":[{"start":{"date-parts":[[2022,3,31]],"date-time":"2022-03-31T00:00:00Z","timestamp":1648684800000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/"}],"funder":[{"DOI":"10.13039\/501100003621","name":"Ministry of Science ICT and Future Planning","doi-asserted-by":"publisher","award":["2021-DD-SB-0533-01"],"award-info":[{"award-number":["2021-DD-SB-0533-01"]}],"id":[{"id":"10.13039\/501100003621","id-type":"DOI","asserted-by":"publisher"}]}],"content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["Sensors"],"abstract":"<jats:p>Knowing the number of pigs on a large-scale pig farm is an important issue for efficient farm management. However, counting the number of pigs accurately is difficult for humans because pigs do not obediently stop or slow down for counting. In this study, we propose a camera-based automatic method to count the number of pigs passing through a counting zone. That is, using a camera in a hallway, our deep-learning-based video object detection and tracking method analyzes video streams and counts the number of pigs passing through the counting zone. Furthermore, to execute the counting method in real time on a low-cost embedded board, we consider the tradeoff between accuracy and execution time, which has not yet been reported for pig counting. Our experimental results on an NVIDIA Jetson Nano embedded board show that this \u201clight-weight\u201d method is effective for counting the passing-through pigs, in terms of both accuracy (i.e., 99.44%) and execution time (i.e., real-time execution), even when some pigs pass through the counting zone back and forth.<\/jats:p>","DOI":"10.3390\/s22072689","type":"journal-article","created":{"date-parts":[[2022,3,31]],"date-time":"2022-03-31T21:34:29Z","timestamp":1648762469000},"page":"2689","update-policy":"https:\/\/doi.org\/10.3390\/mdpi_crossmark_policy","source":"Crossref","is-referenced-by-count":35,"title":["EmbeddedPigCount: Pig Counting with Video Object Detection and Tracking on an Embedded Board"],"prefix":"10.3390","volume":"22","author":[{"ORCID":"https:\/\/orcid.org\/0000-0003-0590-3682","authenticated-orcid":false,"given":"Jonggwan","family":"Kim","sequence":"first","affiliation":[{"name":"Info Valley Korea Co., Ltd., Anyang-si 14067, Korea"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Yooil","family":"Suh","sequence":"additional","affiliation":[{"name":"Info Valley Korea Co., Ltd., Anyang-si 14067, Korea"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Junhee","family":"Lee","sequence":"additional","affiliation":[{"name":"Info Valley Korea Co., Ltd., Anyang-si 14067, Korea"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-6589-7694","authenticated-orcid":false,"given":"Heechan","family":"Chae","sequence":"additional","affiliation":[{"name":"Info Valley Korea Co., Ltd., Anyang-si 14067, Korea"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0003-3969-2879","authenticated-orcid":false,"given":"Hanse","family":"Ahn","sequence":"additional","affiliation":[{"name":"Department of Computer Convergence Software, Korea University, Sejong 30019, Korea"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Yongwha","family":"Chung","sequence":"additional","affiliation":[{"name":"Department of Computer Convergence Software, Korea University, Sejong 30019, Korea"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Daihee","family":"Park","sequence":"additional","affiliation":[{"name":"Department of Computer Convergence Software, Korea University, Sejong 30019, Korea"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"1968","published-online":{"date-parts":[[2022,3,31]]},"reference":[{"key":"ref_1","unstructured":"OECD (2022, January 03). Meat Consumption (Indicator). Available online: https:\/\/www.oecd-ilibrary.org\/agriculture-and-food\/meat-consumption\/indicator\/english_fa290fd0-en."},{"key":"ref_2","first-page":"1","article-title":"Precision Livestock Farming: An International Review of Scientific and Commercial Aspects","volume":"5","author":"Banhazi","year":"2012","journal-title":"Int. J. Agric. Biol."},{"key":"ref_3","doi-asserted-by":"crossref","first-page":"15","DOI":"10.1016\/j.sbsr.2016.11.004","article-title":"Recent Advances in Wearable Sensors for Animal Health Management","volume":"12","author":"Neethirajan","year":"2017","journal-title":"Sens. Bio-Sens. Res."},{"key":"ref_4","unstructured":"Tullo, E., Fontana, I., and Guarino, M. (2013, January 12). Precision Livestock Farming: An Overview of Image and Sound Labelling. Proceedings of the 6th European Conference on Precision Livestock Farming, ECPLF 2013, Leuven, Belgium."},{"key":"ref_5","first-page":"23","article-title":"A Brief Review of the Application of Machine Vision in Livestock Behaviour Analysis","volume":"7","author":"Tscharke","year":"2016","journal-title":"J. Agric. Inform."},{"key":"ref_6","doi-asserted-by":"crossref","first-page":"104700","DOI":"10.1016\/j.livsci.2021.104700","article-title":"A Review of Deep Learning Algorithms for Computer Vision Systems in Livestock","volume":"253","author":"Oliveira","year":"2021","journal-title":"Livest. Sci."},{"key":"ref_7","doi-asserted-by":"crossref","first-page":"43","DOI":"10.1016\/j.tvjl.2016.09.005","article-title":"Early Detection of Health and Welfare Compromises through Automated Detection of Behavioural Changes in Pigs","volume":"217","author":"Matthews","year":"2016","journal-title":"Vet. J."},{"key":"ref_8","doi-asserted-by":"crossref","first-page":"012096","DOI":"10.1088\/1755-1315\/69\/1\/012096","article-title":"Review of Automatic Detection of Pig Behaviours by using Image Analysis","volume":"69","author":"Han","year":"2017","journal-title":"IOP Conf. Ser. Earth Environ. Sci."},{"key":"ref_9","first-page":"1481","article-title":"A Cost-Effective Pigsty Monitoring System based on a Video Sensor","volume":"8","author":"Chung","year":"2014","journal-title":"KSII Trans. Internet Inf. Sys."},{"key":"ref_10","doi-asserted-by":"crossref","first-page":"26","DOI":"10.1016\/j.compag.2015.05.004","article-title":"An Approach based on Digital Image Analysis to Estimate the Live Weights of Pigs in Farm Environments","volume":"115","author":"Wongsriworaphon","year":"2015","journal-title":"Comput. Electron. Agric."},{"key":"ref_11","doi-asserted-by":"crossref","first-page":"88","DOI":"10.1016\/j.biosystemseng.2013.06.011","article-title":"Foreground Detection using Loopy Belief Propagation","volume":"116","author":"Tu","year":"2013","journal-title":"Biosyst. Eng."},{"key":"ref_12","doi-asserted-by":"crossref","first-page":"141","DOI":"10.1016\/j.livsci.2013.11.007","article-title":"Automatic Monitoring of Pig Locomotion using Image Analysis","volume":"159","author":"Kashiha","year":"2014","journal-title":"Livest. Sci."},{"key":"ref_13","doi-asserted-by":"crossref","unstructured":"Zhu, Q., Ren, J., Barclay, D., McCormack, S., and Thomson, W. (2015, January 26\u201328). Automatic Animal Detection from Kinect Sensed Images for Livestock Monitoring and Assessment. Proceedings of the 2015 IEEE International Conference on Computer and Information Technology, Liverpool, UK.","DOI":"10.1109\/CIT\/IUCC\/DASC\/PICOM.2015.172"},{"key":"ref_14","doi-asserted-by":"crossref","first-page":"21407","DOI":"10.3390\/s150921407","article-title":"Illumination and Reflectance Estimation with its Application in Foreground","volume":"15","author":"Tu","year":"2015","journal-title":"Sensors"},{"key":"ref_15","doi-asserted-by":"crossref","first-page":"53","DOI":"10.1016\/j.compag.2015.11.008","article-title":"An Automatic Splitting Method for the Adhesive Piglets Gray Scale Image based on the Ellipse Shape Feature","volume":"120","author":"Lu","year":"2016","journal-title":"Comput. Electron. Agric."},{"key":"ref_16","doi-asserted-by":"crossref","unstructured":"Kim, J., Chung, Y., Choi, Y., Sa, J., Kim, H., Chung, Y., Park, D., and Kim, H. (2017). Depth-based Detection of Standing-Pigs in Moving Noise Environments. Sensors, 17.","DOI":"10.3390\/s17122757"},{"key":"ref_17","doi-asserted-by":"crossref","first-page":"59","DOI":"10.1016\/j.compag.2018.06.043","article-title":"Model-based Detection of Pigs in Images under Sub-Optimal Conditions","volume":"152","author":"Brunger","year":"2018","journal-title":"Comput. Electron. Agric."},{"key":"ref_18","doi-asserted-by":"crossref","first-page":"108876","DOI":"10.1155\/2018\/1083876","article-title":"A Multiobjective Piglet Image Segmentation Method based on an Improved Noninteractive GrabCut Algorithm","volume":"2018","author":"Kang","year":"2018","journal-title":"Adv. Multimed."},{"key":"ref_19","doi-asserted-by":"crossref","first-page":"28","DOI":"10.1016\/j.biosystemseng.2019.02.018","article-title":"Group-Housed Pig Detection in Video Surveillance of Overhead Views using Multi-Feature Template Matching","volume":"181","author":"Li","year":"2019","journal-title":"Biosyst. Eng."},{"key":"ref_20","doi-asserted-by":"crossref","unstructured":"Nasirahmadi, A., Sturm, B., Edwards, S., Jeppsson, K., Olsson, A., M\u00fcller, S., and Hensel, O. (2019). Deep Learning and Machine Vision Approaches for Posture Detection of Individual Pigs. Sensors, 19.","DOI":"10.3390\/s19173738"},{"key":"ref_21","doi-asserted-by":"crossref","unstructured":"Psota, E., Mittek, M., Perez, L., Schmidt, T., and Mote, B. (2019). Multi-Pig Part Detection and Association with a Fully-Convolutional Network. Sensors, 19.","DOI":"10.3390\/s19040852"},{"key":"ref_22","doi-asserted-by":"crossref","first-page":"44229","DOI":"10.1109\/ACCESS.2019.2907748","article-title":"Pig Detection Algorithm based on Sliding Windows and PCA Convolution","volume":"7","author":"Sun","year":"2019","journal-title":"IEEE Access"},{"key":"ref_23","doi-asserted-by":"crossref","unstructured":"Seo, J., Ahn, H., Kim, D., Lee, S., Chung, Y., and Park, D. (2020). EmbeddedPigDet\u2014Fast and Accurate Pig Detection for Embedded Board Implementations. Appl. Sci., 10.","DOI":"10.3390\/app10082878"},{"key":"ref_24","doi-asserted-by":"crossref","first-page":"105391","DOI":"10.1016\/j.compag.2020.105391","article-title":"Automatically Detecting Pig Position and Posture by 2D Camera Imaging and Deep Learning","volume":"174","author":"Riekert","year":"2020","journal-title":"Comput. Electron. Agric."},{"key":"ref_25","doi-asserted-by":"crossref","unstructured":"Br\u00fcnger, J., Gentz, M., Traulsen, I., and Koch, R. (2020). Panoptic Segmentation of Individual Pigs for Posture Recognition. Sensors, 20.","DOI":"10.3390\/s20133710"},{"key":"ref_26","doi-asserted-by":"crossref","unstructured":"Ahn, H., Son, S., Kim, H., Lee, S., Chung, Y., and Park, D. (2021). EensemblePigDet: Ensemble Deep Learning for Accurate Pig Detection. Appl. Sci., 11.","DOI":"10.3390\/app11125577"},{"key":"ref_27","doi-asserted-by":"crossref","unstructured":"Zuo, S., Jin, L., Chung, Y., and Park, D. (2014, January 1\u20134). An Index Algorithm for Tracking Pigs in Pigsty. Proceedings of the International Conference on Industrial Electronics and Engineering, Pune, India.","DOI":"10.2495\/ICIEE140931"},{"key":"ref_28","doi-asserted-by":"crossref","first-page":"56","DOI":"10.1016\/j.compag.2016.04.026","article-title":"Automatic Recognition of Lactating Sow Behaviors through Depth Image Processing","volume":"125","author":"Lao","year":"2016","journal-title":"Comput. Electron. Agric."},{"key":"ref_29","doi-asserted-by":"crossref","first-page":"295","DOI":"10.1016\/j.compag.2016.04.022","article-title":"Automatic Detection of Mounting Behaviours among Pigs using Image Analysis","volume":"124","author":"Nasirahmadi","year":"2016","journal-title":"Comput. Electron. Agric."},{"key":"ref_30","doi-asserted-by":"crossref","first-page":"131","DOI":"10.1017\/S1751731116001208","article-title":"A New Approach for Categorizing Pig Lying Behaviour based on a Delaunay Triangulation Method","volume":"11","author":"Nasirahmadi","year":"2017","journal-title":"Animal"},{"key":"ref_31","doi-asserted-by":"crossref","first-page":"17582","DOI":"10.1038\/s41598-017-17451-6","article-title":"Automated Tracking to Measure Behavioural Changes in Pigs for Health and Welfare Monitoring","volume":"7","author":"Matthews","year":"2017","journal-title":"Sci. Rep."},{"key":"ref_32","doi-asserted-by":"crossref","first-page":"453","DOI":"10.1016\/j.compag.2018.11.002","article-title":"Feeding Behavior Recognition for Group-Housed Pigs with the Faster R-CNN","volume":"155","author":"Yang","year":"2018","journal-title":"Comput. Electron. Agric."},{"key":"ref_33","doi-asserted-by":"crossref","first-page":"108049","DOI":"10.1109\/ACCESS.2019.2933060","article-title":"Automated Individual Pig Localisation, Tracking and Behaviour Metric Extraction using Deep Learning","volume":"7","author":"Cowton","year":"2019","journal-title":"IEEE Access"},{"key":"ref_34","doi-asserted-by":"crossref","first-page":"1859","DOI":"10.1017\/S1751731115001342","article-title":"Development of Automatic Surveillance of Animal Behaviour and Welfare using Image Analysis and Machine Learned Segmentation Techniques","volume":"9","author":"Nilsson","year":"2015","journal-title":"Animal"},{"key":"ref_35","doi-asserted-by":"crossref","first-page":"81","DOI":"10.1016\/j.biosystemseng.2016.08.018","article-title":"Automatic Estimation of Number of Piglets in a Pen during Farrowing, using Image Analysis","volume":"151","author":"Oczak","year":"2016","journal-title":"Biosyst. Eng."},{"key":"ref_36","doi-asserted-by":"crossref","first-page":"104840","DOI":"10.1016\/j.compag.2019.05.049","article-title":"Automated Pig Counting using Deep Learning","volume":"163","author":"Tian","year":"2019","journal-title":"Comput. Electron. Agric."},{"key":"ref_37","doi-asserted-by":"crossref","unstructured":"Chen, G., Shen, S., Wen, L., Luo, S., and Bo, L. (August, January 31). Efficient Pig Counting in Crowds with Keypoints Tracking and Spatial-Aware Temporal Response Filtering. Proceedings of the 2020 IEEE International Conference on Robotics and Automation (ICRA), Paris, France.","DOI":"10.1109\/ICRA40945.2020.9197211"},{"key":"ref_38","doi-asserted-by":"crossref","first-page":"106296","DOI":"10.1016\/j.compag.2021.106296","article-title":"Automatic Counting and Positioning of Slaughter Pigs within the Pen using a Convolutional Neural Network and Video Images","volume":"188","author":"Jensen","year":"2021","journal-title":"Comput. Electron. Agric."},{"key":"ref_39","unstructured":"(2021, November 28). Jetson Nano Developer Kit. Available online: https:\/\/developer.nvidia.com\/embedded\/jetson-nano-developer-kit."},{"key":"ref_40","unstructured":"Bochkovskiy, A., Wang, C., and Liao, H. (2020). Yolov4: Optimal Speed and Accuracy of Object Detection. arXiv."},{"key":"ref_41","doi-asserted-by":"crossref","unstructured":"Wojke, N., Bewley, A., and Paulus, D. (2017, January 17\u201320). Simple online and realtime tracking with a deep association metric. Proceedings of the 2017 IEEE International Conference on Image Processing (ICIP), Beijing, China.","DOI":"10.1109\/ICIP.2017.8296962"},{"key":"ref_42","doi-asserted-by":"crossref","unstructured":"Girshick, R., Donahue, J., Darrell, T., and Malik, J. (2014). Rich feature hierarchies for accurate object detection and semantic segmentation. arXiv.","DOI":"10.1109\/CVPR.2014.81"},{"key":"ref_43","doi-asserted-by":"crossref","unstructured":"Girshick, R. (2016). Fast R-CNN. arXiv.","DOI":"10.1109\/ICCV.2015.169"},{"key":"ref_44","doi-asserted-by":"crossref","first-page":"1137","DOI":"10.1109\/TPAMI.2016.2577031","article-title":"Faster R-CNN: Towards Real-Time Object Detection with Region Proposal Networks","volume":"39","author":"Ren","year":"2017","journal-title":"IEEE Trans. Pattern Anal. Mach. Intell."},{"key":"ref_45","doi-asserted-by":"crossref","unstructured":"Redmon, J., Divvala, S., Girshick, R., and Farhadi, A. (2016). You Only Look Once: Unified, Real-Time Object Detection. arXiv.","DOI":"10.1109\/CVPR.2016.91"},{"key":"ref_46","doi-asserted-by":"crossref","unstructured":"Liu, W., Anguelov, D., Erhan, D., Szegedy, C., Reed, S., Fu, C., and Berg, A. (2016). Ssd: Single shot multibox detector. arXiv.","DOI":"10.1007\/978-3-319-46448-0_2"},{"key":"ref_47","unstructured":"Lucas, B., and Kanade, T. (1981, January 24\u201328). An iterative image registration technique with an application to stereo vision. Proceedings of the 7th IJCAI, Vancouver, BC, Canada."},{"key":"ref_48","doi-asserted-by":"crossref","unstructured":"Bewley, A., Ge, Z., Ott, L., Ramos, F., and Upcroft, B. (2016). Simple online and realtime tracking. arXiv.","DOI":"10.1109\/ICIP.2016.7533003"},{"key":"ref_49","unstructured":"(2021, November 28). NVIDIA TensorRT. Available online: https:\/\/developer.nvidia.com\/tensorrt."},{"key":"ref_50","unstructured":"Li, H., Kadav, A., Durdanovic, I., Samet, H., and Graf, H. (2016). Pruning filters for efficient convnets. arXiv."},{"key":"ref_51","doi-asserted-by":"crossref","unstructured":"Bochinski, E., Eiselein, V., and Sikora, T. (September, January 29). High-speed tracking-by-detection without using image information. Proceedings of the 2017 14th IEEE International Conference on Advanced Video and Signal Based Surveillance (AVSS), Lecce, Italy.","DOI":"10.1109\/AVSS.2017.8078516"},{"key":"ref_52","doi-asserted-by":"crossref","first-page":"83","DOI":"10.1002\/nav.3800020109","article-title":"The hungarian method for the assignment problem","volume":"2","author":"Kuhn","year":"1955","journal-title":"Nav. Res. Logist. Q."},{"key":"ref_53","doi-asserted-by":"crossref","first-page":"20","DOI":"10.1007\/BF02834632","article-title":"Mahalanobis distance","volume":"4","author":"McLachlan","year":"1999","journal-title":"Resonance"},{"key":"ref_54","doi-asserted-by":"crossref","unstructured":"Wojke, N., and Bewley, A. (2018). Deep cosine metric learning for person re-identification. arXiv.","DOI":"10.1109\/WACV.2018.00087"},{"key":"ref_55","unstructured":"(2021, November 28). Hanwha Surveillance Camera. Available online: https:\/\/www.hanwhasecurity.com\/product\/qno-6012r\/."},{"key":"ref_56","unstructured":"(2021, December 10). Top-View Person Detection Open Datasets. Available online: https:\/\/github.com\/ucuapps\/top-view-multi-person-tracking."},{"key":"ref_57","unstructured":"Schulzrinne, H., Rao, A., and Lanphier, R. (2021, November 28). Real-Time Streaming Protocol (RTSP). Available online: https:\/\/www.hjp.at\/doc\/rfc\/rfc2326.html."},{"key":"ref_58","first-page":"91","article-title":"Multiple object tracking performance metrics and evaluation in a smart room environment. In Proc. of IEEE International Workshop on Visual Surveillance, in conjunction with ECCV","volume":"90","author":"Bernardin","year":"2006","journal-title":"Citeseer"}],"container-title":["Sensors"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/www.mdpi.com\/1424-8220\/22\/7\/2689\/pdf","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,10,10]],"date-time":"2025-10-10T22:47:22Z","timestamp":1760136442000},"score":1,"resource":{"primary":{"URL":"https:\/\/www.mdpi.com\/1424-8220\/22\/7\/2689"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2022,3,31]]},"references-count":58,"journal-issue":{"issue":"7","published-online":{"date-parts":[[2022,4]]}},"alternative-id":["s22072689"],"URL":"https:\/\/doi.org\/10.3390\/s22072689","relation":{},"ISSN":["1424-8220"],"issn-type":[{"value":"1424-8220","type":"electronic"}],"subject":[],"published":{"date-parts":[[2022,3,31]]}}}