基于多特征融合的粒子滤波生猪采食行为跟踪

    Automatic tracking of pig feeding behavior based on particle filter with multi-feature fusion

    • 摘要: 针对中国养猪业规模化、集约化迅猛发展过程中,人工观察监测记录生猪生长情况需损耗大量人力和物力,得到数据误差大的问题,该文提出将颜色特征与目标轮廓形心特征融合,基于粒子滤波算法实现生猪采食行为跟踪,当目标跟踪矩形框中心坐标和跟踪目标轮廓形心坐标之间的横坐标偏差大于跟踪目标轮廓横坐标方向的最大值与最小值的差的一半时,或其之间的纵坐标偏差大于跟踪目标轮廓纵坐标方向的最大值与最小值的差一半时,对基于颜色特征粒子滤波算法得到的跟踪矩形框的中心坐标进行二次修正,提高了目标生猪跟踪的可靠性和鲁棒性;通过对比试验,结果表明:该方法能够对目标生猪的采食行为进行自动跟踪、记录和分析,记录的目标生猪一天内的采食次数和采食时间与人工记录结果基本相同,有效跟踪平均精度为93.4%。

       

      Abstract: Abstract: The basic behavioral characteristics of live pigs are mainly shown through daily food intake frequency, water intake frequency, and excretion frequency. These factors indicate the health states of pig growth. Monitoring and analyzing the behavioral characteristics of pigs are important basis to understand their health situations. Currently, we mainly use artificial way to monitor livestock behavior in China. This method consumes large amounts of human labor and energy, and the observed data obtained in this way is subjective. It is difficult to ensure the accuracy and the continuity of the records. We take good advantage of pig detection and tracking technology based on machine vision to monitor the behavior of pigs to evaluate the health status of pigs in time, and to reduce the morbidity and mortality of pigs and increase the slaughtering rate of pigs. It has important practical significance and application value in improving people's confidence in pork quality and increasing the income of farmers. Target tracking technology is the basis of the moving target identification and abnormal behavior tracking, recording and analysis. We research the real-time monitoring of the target pigs foraging based on the particle filter target tracking technology. Particle filter algorithm closely approximates Bayesian filtering algorithm based on Monte Carlo simulation, and it is used in target tracking widely. Conceptually, a particle filter tracker maintains a probability distribution over the state (location, scale, and so on) of the object being tracked. Particle filters represent this distribution as a set of weighted samples, or particles. Each particle represents a possible instantiation of the state of the object. In other words, each particle is a guess representing one possible location of the object being tracked. The set of particles contain more weight at locations where the object being tracked is more likely to be. This weighted distribution is propagated through time using a set of equations known as the Bayesian filtering equations, and we can determine the trajectory of the tracked object by the particle with the highest weight or the weighted mean of the particle set at each time step. In view of the pig behavior characteristics and the actual situation of the farms' video image acquisition, this paper takes a group of pigs raised as detection tracking target. On the basis of analyzing and summarizing in particle filter tracking algorithm, we carried out particle filter target tracking technology for pigs which is based on the color characteristics to achieve the goal of tracking pigs. In order to solve the problems in the color characteristics of particle filter target tracking for pigs, we fused the color characteristics and the target contour centroid feature. The specific methods were as follows: First of all, according to the particle filter tracking algorithm based on single color feature of target tracking on the position of the rectangle coordinates, and the height and width of the target tracking rectangular box, we calculated the center of the target tracking rectangle coordinates. Secondly, we determined the centroid position of moving pigs on the basis of the comparison and analysis of moving target centroid position and the minimum circumscribed rectangle length-width ratio. Finally, according to the target contour centroid location and the center of the tracking target rectangle coordinates, we calculated the amount of deviation between them. When the deviation of target contour centroid and tracking rectangular box was too large, we took a second correction for tracking the target coordinates based on the particle filter algorithm with multi-feature fusion. The improved algorithm presented in this paper updated the tracking rectangular coordinates through the target contour centroid coordinates, and gave the new tracking rectangular box. This paper constructs the target pig tracking system based on particle filter algorithm, achieves a multi-feature fusion particle filter tracking algorithm through area real-time monitoring, and completes the statistics of the target pig's feeding time and food intake frequency. Experiment results prove that this algorithm can automatically accurately track, record and analyze the feeding behaviour of the target pigs, and effectively deal with the problems such as target short-time missing. The feeding frequency and time of the target pigs are almost the same as the manual statistics.

       

    /

    返回文章
    返回