The body size parameter of cattle is an important index reflecting the growth and development and health condition of cattle. The traditional manual contact measurement is not only a large workload and difficult to measure, but also prone to problems such as affecting the normal life habits of cattle. In this paper, we address this problem by proposing a contactless body size measurement method for cattle based on machine vision. Firstly, the cattle is confined to a fixed space using a position-limiting device, and images of the body of the cattle are taken from three directions: top, left, and right, using multiple cameras. Secondly, the image is segmented using a fuzzy clustering algorithm based on neighborhood adaptive local spatial information improvement, and the image is processed to extract the contour images of the top view and side view. The key points of body measurements were extracted using interval division and curvature calculation for the side view images, and the key point information was extracted using skeleton extraction and pruning for the top view images, which realized the measurements of body height(BH), rump height(RH), body slanting length(BSL), and abdominal circumference(AC) parameters of the cattle. The correlation between body size and weight data obtained by contactless methods was investigated and the modeled using one-factor linear regression, one-factor nonlinear regression, multivariate stepwise regression, RBF network fitting, BP neural network fitting, support vector machine, and particle swarm optimization-based support vector machine methods, respectively. Information on body size parameters was collected from 137 cattles, and the results showed that the maximum errors between the measured and actual values of BH, RH, BSL and AC were 5.0%, 4.4%, 3.6%, and 5.5%, respectively. Correlation of BH, RH, BSL and AC with weight obtained by non-contact methods was > 0.75. The BH parameter can be selected in the single-factor growth monitoring. The multi-body scale can reflect the growth status of cattle more comprehensively, in which RH, BSL and AC are important detection parameter; the multi-factor nonlinear model can reflect the growth characteristics of cattle more comprehensively. The contactless measurement method proposed in the paper can effectively improve the work efficiency and reduce the stress reaction of cattle, which is a long-term and effective monitoring method, and is of great significance in promoting accurate and welfare cattle rearing.
Read full abstract