Development of a computer vision system to detect inactivity in group-housed pigs

Christopher Chijioke Ojukwu, Yaoze Feng, Guifeng Jia, Haitao Zhao, Hequn Tan

Abstract


Excessive inactivity in farm animals can be an early indication of illness. Traditional way for detecting excessive inactivity in pigs relies on manual inspection which can be laborious and especially time-consuming. This paper proposed a computer vision system that could detect inactivity of individual pigs housed in group pens which is potential in alarming the farmer of the animals concerned. The system recorded sequential depth images for the animals in a pen and implemented a proposed image processing and logic analysis scheme named as ‘DepInact’ to keep track of the inactive time of group-housed individual pigs over time. To verify the robustness and accuracy of the developed system, a total of 656 pairs of corresponding depth data and color images, consecutively taken 4 s apart from each other, were attained. The verification process involved manually identifying all pigs using the color images captured. The results of identification of all pigs that were inactive for more than the preset period of time by DepInact were compared to those by manual inspection through the color images captured. An accuracy of 85.7% was achieved using the verification data, thus demonstrating that the developed system is a viable alternative to manual detection of inactivity of group-housed pigs. Nevertheless, more research is still needed to improve the accuracy of the developed system.
Keywords: Matlab, computer vision, sows, machine vision, depth image, pigs, inactivity
DOI: 10.25165/j.ijabe.20201301.5030

Citation: Ojukwu C C, Feng Y Z, Jia G F, Zhao H T, Tan H Q. Development of a computer vision system to detect inactivity in group-housed pigs. Int J Agric & Biol Eng, 2020; 13(1): 42–46.

Keywords


Matlab, computer vision, sows, machine vision, depth image, pigs, inactivity

Full Text:

PDF

References


Chen Y-R, Chao K, Kim M S. Machine vision technology for agricultural applications. Computers and Electronics in Agriculture, 2002; 36(2): 173–191.

Amraei S, Abdanan Mehdizadeh S, Salari S. Broiler weight estimation based on machine vision and artificial neural network. British Poultry Science, 2017; 58(2): 200–205.

Mortensen A K, Lisouski P, Ahrendt P. Weight prediction of broiler chickens using 3D computer vision. Computers and Electronics in Agriculture, 2016; 123: 319–326.

Lao F, Brown-Brandl T, Stinn J P, Liu K, Teng G, Xin H. Automatic recognition of lactating sow behaviours through depth image processing. Computers and Electronics in Agriculture, 2016; 125: 56–62.

Ahrendt P, Gregersen T, Karstoft H. Development of a real-time computer vision system for tracking loose-housed pigs. Computers and Electronics in Agriculture, 2011; 76(2): 169–174.

Aydin A, Cangar O, Ozcan S E, Bahr C, Berckmans D. Application of a fully automatic analysis tool to assess the activity of broiler chickens with different gait scores. Computers and Electronics in Agriculture, 2010; 73(2): 194–199.

Aydin A. Development of an early detection system for lameness of broilers using computer vision. Computers and Electronics in Agriculture, 2017; 136: 140–146.

Silvera A M, Knowles T G, Butterworth A, Berckmans D, Vranken E, Blokhuis HJ. Lameness assessment with automatic monitoring of activity in commercial broiler flocks. Poultry Science, 2017; 96(7): 2013–2017.

Kongsro J. Development of a computer vision system to monitor pig locomotion. Open Journal of Animal Sciences, 2013; 3(3): 7.

Fanselow M S. The postshock activity burst. Animal Learning & Behaviour, 1982; 10(4): 448–454.

Abou-Ismail U A, Burman O H P, Nicol C J, Mendl M. Let sleeping rats lie: Does the timing of husbandry procedures affect laboratory rat behaviour, physiology and welfare? Applied Animal Behaviour Science. 2008; 111(3): 329–341.

Burrell A M, Altman J. The effect of the captive environment on activity of captive cotton-top tamarins (Saguinus oedipus). Journal of Applied Animal Welfare Science: JAAWS, 2006; 9(4): 269–276.

Hart B L. Biological basis of the behaviour of sick animals. Neuroscience & Biobehavioural Reviews, 1988; 12(2): 123–137.

Mendl M, Burman O H P, Paul E S. An integrative and functional framework for the study of animal emotion and mood. Proceedings Biological Sciences, 2010; 277(1696): 2895–2904.

Dalm S, de Visser L, Spruijt B M, Oitzl M S. Repeated rat exposure inhibits the circadian activity patterns of C57BL/6J mice in the home cage. Behavioural Brain Research, 2009; 196(1): 84–92.

Fureix C, Meagher R K. What can inactivity (in its various forms) reveal about affective states in non-human animals? A review. Applied Animal Behaviour Science, 2015; 171: 8–24.

Zhao K, Bewley J M, He D, Jin X. Automatic lameness detection in dairy cattle based on leg swing analysis with an image processing technique. Computers and Electronics in Agriculture, 2018; 148: 226–236. https://doi.org/10.1016/j.compag.2018.03.014

Eddins S. The Watershed Transform: Strategies for Image Segmentation. MathWorks, 2002. https://www.mathworks.com/company/newsletters/ articles/the-watershed-transform-strategies-for-image-segmentation.html. Accessed on [2018-12-29].

Commission E. Animal welfare on the farm. 2001. https://ec.europa.eu/ food/animals/welfare/practice/farm/pigs_en. Accessed on [2018-12-29].




Copyright (c) 2020 International Journal of Agricultural and Biological Engineering

Creative Commons License
This work is licensed under a Creative Commons Attribution 4.0 International License.

2023-2026 Copyright IJABE Editing and Publishing Office