Development of a computer vision system to detect inactivity in group-housed pigs
Keywords:
Matlab, computer vision, sows, machine vision, depth image, pigs, inactivityAbstract
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.References
[1] Chen Y-R, Chao K, Kim M S. Machine vision technology for agricultural applications. Computers and Electronics in Agriculture, 2002; 36(2): 173–191.
[2] 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.
[3] 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.
[4] 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.
[5] 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.
[6] 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.
[7] Aydin A. Development of an early detection system for lameness of broilers using computer vision. Computers and Electronics in Agriculture, 2017; 136: 140–146.
[8] 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.
[9] Kongsro J. Development of a computer vision system to monitor pig locomotion. Open Journal of Animal Sciences, 2013; 3(3): 7.
[10] Fanselow M S. The postshock activity burst. Animal Learning & Behaviour, 1982; 10(4): 448–454.
[11] 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.
[12] 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.
[13] Hart B L. Biological basis of the behaviour of sick animals. Neuroscience & Biobehavioural Reviews, 1988; 12(2): 123–137.
[14] 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.
[15] 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.
[16] 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.
[17] 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
[18] 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].
[19] Commission E. Animal welfare on the farm. 2001. https://ec.europa.eu/ food/animals/welfare/practice/farm/pigs_en. Accessed on [2018-12-29].
[2] 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.
[3] 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.
[4] 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.
[5] 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.
[6] 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.
[7] Aydin A. Development of an early detection system for lameness of broilers using computer vision. Computers and Electronics in Agriculture, 2017; 136: 140–146.
[8] 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.
[9] Kongsro J. Development of a computer vision system to monitor pig locomotion. Open Journal of Animal Sciences, 2013; 3(3): 7.
[10] Fanselow M S. The postshock activity burst. Animal Learning & Behaviour, 1982; 10(4): 448–454.
[11] 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.
[12] 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.
[13] Hart B L. Biological basis of the behaviour of sick animals. Neuroscience & Biobehavioural Reviews, 1988; 12(2): 123–137.
[14] 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.
[15] 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.
[16] 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.
[17] 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
[18] 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].
[19] Commission E. Animal welfare on the farm. 2001. https://ec.europa.eu/ food/animals/welfare/practice/farm/pigs_en. Accessed on [2018-12-29].
Downloads
Published
2020-03-02
How to Cite
Ojukwu, C. C., Feng, Y., Jia, G., Zhao, H., & Tan, H. (2020). Development of a computer vision system to detect inactivity in group-housed pigs. International Journal of Agricultural and Biological Engineering, 13(1), 42–46. Retrieved from https://ijabe.migration.pkpps03.publicknowledgeproject.org/index.php/ijabe/article/view/5030
Issue
Section
Animal, Plant and Facility Systems
License
IJABE is an international peer reviewed open access journal, adopting Creative Commons Copyright Notices as follows.
Authors who publish with this journal agree to the following terms:
- Authors retain copyright and grant the journal right of first publication with the work simultaneously licensed under a Creative Commons Attribution License that allows others to share the work with an acknowledgement of the work's authorship and initial publication in this journal.
- Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the journal's published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgement of its initial publication in this journal.
- Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) prior to and during the submission process, as it can lead to productive exchanges, as well as earlier and greater citation of published work (See The Effect of Open Access).