Development of a computer vision system to monitor pig locomotion
Jørgen Kongsro
Norsvin, Hamar, Norway.
DOI: 10.4236/ojas.2013.33038   PDF    HTML   XML   3,787 Downloads   6,484 Views   Citations


Avoiding lameness or leg weakness in pig production is crucial to reduce cost, improve animal welfare and meat quality. Detection of lameness detection by the use of vision systems may assist the farmer or breeder to obtain a more accurate and robust measurement of lameness. The paper presents a low-cost vision system for measuring the locomotion of moving pigs based on motion detection, frame-grabbing and multivariate image analysis. The first step is to set up a video system based on web camera technology and choose a test area. Secondly, a motion detection and data storage system are used to build a processing system of video data. The video data are analyzed measuring the properties of each image, stacking them for each animal and then analyze these stacks using multivariate image analysis. The system was able to obtain and decompose information from these stacks, where components could be extracted, representing a particular motion pattern. These components could be used to classify or score animals according to this pattern, which might be an indicator of lameness. However, further improvement is needed with respect to standardization of herding, test area and tracking of animals in order to have a robust system to be used in a farm environment.

Share and Cite:

Kongsro, J. (2013) Development of a computer vision system to monitor pig locomotion. Open Journal of Animal Sciences, 3, 254-260. doi: 10.4236/ojas.2013.33038.

Conflicts of Interest

The authors declare no conflicts of interest.


[1] Fukawa, K. and Kusuhara, S. (2000) The genetic and non-genetic aspects of leg weakness and osteochondrosis in pigs. Asian Australasian Journal of Animal Sciences, 14, 114-122.
[2] Grondalen, T. (1974) Incidence and realtionship to skeletal lesion, feed level, protein and mineral supply, exercise and exterior conformation. Acta Veterinaria Scandinavica, 15, 555.
[3] Aydin, A., Cangar, O., Eren Ozcan, S., Bahr, C. and Berckmans, D. (2010) Application of a fully automatic analysis tool to assess the activity of broiler chickens with different gait scores. Computers and Electronics in Agriculture, 73, 194-199. doi:10.1016/j.compag.2010.05.004
[4] Calabotta, D. and Kornegay, E. (1982) Restricted energy intake and elevated calcium and phosphorus intake for gilts during growth. II. Gait characteristics analyzed from 16-MM motion picture photography. Journal of Animal Science, 55, 1395-1404.
[5] Deshazer, J.A., Moran, P., Onyango, C.M., Randall, J.M. and Schofield, C.P. (1988) Imaging systems to improve stockmanship in pig production. AFRC Institute of Engineering Research, Silsoe.
[6] Lundeheim, N. (1987) Genetic analysis of osteochondrosis and leg weakness in the swedish pig progeny testing scheme. Acta Agriculturae Scandinavica, 37, 159-173. doi:10.1080/00015128709436552
[7] Huang, J., Wium, H., Qvist, K.B. and Esbensen, K.H. (2003) Multi-way methods in image analysis—Relationships and applications. Chemometrics and Intelligent Laboratory Systems, 66, 141-158. doi:10.1016/S0169-7439(03)00030-3
[8] Johansen, J., Egelandsdal, B., Roe, M., Kvaal, K. and Aastveit, A.H. (2007) Calibration models for lamb carcass composition analysis using Computerized Tomography (CT) imaging. Chemometrics and Intelligent Laboratory Systems, 87, 303-311. doi:10.1016/j.chemolab.2007.03.009
[9] Lavrsen, K. (2012) Motion, a software motion detector.
[10] Dropbox (2012) Dropbox Inc.
[11] MATLAB Version 7.14 (2012) Image Processing Toolbox Version 8.0, Statistics Toolbox 8.0, 1984-2011 The MathWorks, Inc.
[12] Otsu, N. (1979) A threshold selection method from gray-level histograms. IEEE Transactions on Systems, Man, and Cybernetics, 9, 62-66.
[13] Wang, Y., Yang, W., Winter, P. and Walker, L. (2008) Walk-through weighing of pigs using machine vision and an artificial neural network. Biosystems Engineering, 100, 1117-1251. doi:10.1016/j.biosystemseng.2007.08.008

Copyright © 2023 by authors and Scientific Research Publishing Inc.

Creative Commons License

This work and the related PDF file are licensed under a Creative Commons Attribution 4.0 International License.