The modern pig farming industry tends to scale up and intensify, and the aggressive behavior among gregarious pigs occurs frequently, which seriously affects their health and production, and economic benefit. An end-to-end anchor-free temporal localization framework is proposed to automatically detect aggressive behavior among gregarious pigs, its occurrence and their time periods by means of surveillance videos. The model first extracted the representative aggressive behavior from the surveillance video by I3D feature extraction network, and then input the features into the temporal pyramid network to obtain multi-scale temporal information, and finally used coarse prediction to obtain the initial nomination, and used fine prediction to refine the obtained coarse nomination, and the coarse prediction regressed the frame position of the action interval, the offset from the start and end of the action, and the occurrence of the action by the temporal convolution network. The fine prediction refined the boundary positions and obtained the final prediction results by activation-guided learning and boundary contrast learning. In order to train and validate the proposed model, a video dataset containing 174 videos of different durations and 464 temporal annotations for the detection of aggressive behavior among gregarious pigs was constructed. The experimental results showed that the model could achieve a recall rate of 79.1% at average tIoU when the number of nominations was 100, and detected 90 min of original surveillance video containing 10 segments of aggressive behaviors, and the prediction results could cover all real instances, which could better detect the aggressive behavior among gregarious pigs. This study can provide a reference for modern pig farms to achieve intelligent analysis and healthy breeding.
- Article type
- Year
- Co-author
Open Access
Issue
Open Access
Issue
Cows mounting behavior is a significant manifestation of estrus in cows. The timely detection of cows mounting behavior can make cows conceive in time, thereby improving milk production of cows and economic benefits of the pasture. Existing methods of mounting behavior detection are difficult to achieve precise detection under occlusion and severe scale change environments and meet real-time requirements. Therefore, this study proposed a Cow-YOLO model to detect cows mounting behavior. To meet the needs of real-time performance, YOLOv5s model is used as the baseline model. In order to solve the problem of difficult detection of cows mounting behavior in an occluded environment, the CSPDarknet53 of YOLOv5s is replaced with Non-local CSPDarknet53, which enables the network to obtain global information and improves the model’s ability to detect the mounting cows. Next, the neck of YOLOv5s is redesigned to Multiscale Neck, reinforcing the multi-scale feature fusion capability of model to solve difficulty detection under dramatic scale changes. Then, to further increase the detection accuracy, the Coordinate Attention Head is integrated into YOLOv5s. Finally, these improvements form a novel cow mounting detection model called Cow-YOLO and make Cow-YOLO more suitable for cows mounting behavior detection in occluded and drastic scale changes environments. Cow-YOLO achieved a precision of 99.7%, a recall of 99.5%, a mean average precision of 99.5%, and a detection speed of 156.3 f/s on the test set. Compared with existing detection methods of cows mounting behavior, Cow-YOLO achieved higher detection accuracy and faster detection speed in an occluded and drastic scale-change environment. Cow-YOLO can assist ranch breeders in achieving real-time monitoring of cows estrus, enhancing ranch economic efficiency.
Open Access
Issue
High precision pig cough recognition and low computational cost is of great importance for the realization of early warning of pig respiratory diseases. Numerous researchers have improved the recognition rate of pig cough sounds to a certain extent from feature selection and feature fusion perspectives. However, there is still a margin for the improvement in the accuracy and complexity of existing methods. Meanwhile, it is challenging to further enhance the precision of a single classifier. Therefore, this study proposed a multi-classifier fusion strategy based on Dempster Shafer distance (DS-distance) algorithm to increase the classification accuracy. Considering the engineering implementation, the machine learning with low computational complexity for fusion was chosen. First, three metrics of accuracy and diversity between classifiers were defined, including overall accuracy (OA), double fault (DF), and overall accuracy and double fault (OADF), for selecting the base classifiers. Subsequently, a two-step base classifier selection approach based on these metrics was proposed to make an optimized selection of features and classifiers. Finally, the proposed DS-distance algorithm was used to fuse the selected base classifiers to create a classification. The sound data collected in the pig barn verified the proposed algorithm. The experimental results revealed that the overall recognition accuracy of the proposed method could reach 98.76%, which was better than the existing methods. This study has achieved a high recognition accuracy through ensembled machine learning with low computational complexity. The proposed method provided an efficient way for the quick establishment of high precision pig cough recognition model in practice.
As a major contributor to methane production in agriculture, there is a need for a suitable methane inhibitor to reduce ruminant methane emissions and minimize the impact on the climate. This work aimed to explore the influence of cordycepin on rumen fermentation, gas production, microbiome and their metabolites. A total of 0.00, 0.08, 0.16, 0.32, and 0.64 g L–1 cordycepin were added into fermentation bottles containing 2 g total mixed ration for in vitro ruminal fermentation, and then the gas produced and fermentation parameters were measured for each bottle. Samples from the 0 and 0.64 g L–1 cordycepin addition were selected for 16S rRNA gene sequencing and metabolome analysis. The result of this experiment indicated that the addition of cordycepin could linearly increase the concentration of total volatile fatty acid, ammonia nitrogen, the proportion of propionate, valerate, and isovalerate, and linearly reduce ruminal pH and methane, carbon dioxide, hydrogen and total gas production, as well as the methane proportion, carbon dioxide proportion and proportion of butyrate. In addition, there was a quadratic relationship between hydrogen and cordycepin addition. At the same time, the relative abundance of Succiniclasticum, Prevotella, Rikenellaceae_RC9_gut_group, NK4A214_group, Christensenellaceae_R_7_group, unclassified_F082, Veillonellaceae_UCG_001, Dasytricha, Ophryoscolex, Isotricha, unclassified_Eukaryota, Methanobrevibacter, and Piromyces decreased significantly after adding the maximum dose of cordycepin. In contrast, the relative abundance of Succinivibrio, unclassified_Succinivibrionaceae, Prevotellaceae_UCG_001, unclassified_Lachnospiraceae, Lachnospira, Succinivibrionaceae_UCG_002, Pseudobutyrivibrio, Entodinium, Polyplastron, unclassified_Methanomethylophilaceae, Methanosphaera, and Candidatus_Methanomethylophilus increased significantly. Metabolic pathways such as biosynthesis of unsaturated fatty acids and purine metabolism and metabolites such as arachidonic acid, adenine, and 2´-deoxyguanosine were also affected by the addition of cordycepin. Based on this, we conclude that cordycepin is an effective methane emission inhibitor that can change the rumen metabolites and fermentation parameters by influencing the rumen microbiome, thus regulating rumen methane production. This experiment may provide a potential theoretical reference for developing Cordyceps byproduct or additives containing cordycepin as methane inhibitors.
The detection of lameness in dairy cows is an important issue that needs to be solved urgently in the process of large-scale dairy farming. Timely detection and effective intervention can reduce the culling rate of young dairy cows, which has important practical significance for increasing the milk production of dairy cows and improving the economic benefits of pastures. Due to the low efficiency and low degree of automation of traditional manual detection and contact sensor detection, the mainstream cow lameness detection method is mainly based on computer vision. The detection perspective of existing computer vision-based cow lameness detection methods is mainly side view, but the side view perspective has limitations that are difficult to eliminate. In the actual detection process, there are problems such as cows blocking each other and difficulty in deployment. The cow lameness detection method from the top view will not be difficult to use on the farm due to occlusion problems. The aim is to solve the occlusion problem under the side view.
In order to fully explore the movement undulations of the trunk of the cow and the movement information in the time dimension during the walking process of the cow, a cow lameness detection method was proposed from a top view based on fused spatiotemporal flow features. By analyzing the height changes of the lame cow in the depth video stream during movement, a spatial stream feature image sequence was constructed. By analyzing the instantaneous speed of the lame cow's body moving forward and swaying left and right when walking, optical flow was used to capture the instantaneous speed of the cow's movement, and a time flow characteristic image sequence was constructed. The spatial flow and time flow features were combined to construct a fused spatiotemporal flow feature image sequence. Different from traditional image classification tasks, the image sequence of cows walking includes features in both time and space dimensions. There would be a certain distinction between lame cows and non-lame cows due to their related postures and walking speeds when walking, so using video information analysis was feasible to characterize lameness as a behavior. The video action classification network could effectively model the spatiotemporal information in the input image sequence and output the corresponding category in the predicted result. The attention module Convolutional Block Attention Module (CBAM) was used to improve the PP-TSMv2 video action classification network and build the Cow-TSM cow lameness detection model. The CBAM module could perform channel weighting on different modes of cows, while paying attention to the weights between pixels to improve the model's feature extraction capabilities. Finally, cow lameness experiments were conducted on different modalities, different attention mechanisms, different video action classification networks and comparison of existing methods. The data was used for cow lameness included a total of 180 video streams of cows walking. Each video was decomposed into 100-400frames. The ratio of the number of video segments of lame cows and normal cows was 1:1. For the feature extraction of cow lameness from the top view, RGB images had less extractable information, so this work mainly used depth video streams.
In this study, a total of 180 segments of cow image sequence data were acquired and processed, including 90lame cows and 90 non-lame cows with a 1:1 ratio of video segments, and the prediction accuracy of automatic detection method for dairy cow lameness based on fusion of spatiotemporal stream features reaches 88.7%, the model size was 22 M, and the offline inference time was 0.046 s. The prediction accuracy of the common mainstream video action classification models TSM, PP-TSM, SlowFast and TimesFormer models on the data set of automatic detection method for dairy cow lameness based on fusion of spatiotemporal stream features reached 66.7%, 84.8%, 87.1% and 85.7%, respectively. The comprehensive performance of the improved Cow-TSM model in this paper was the most. At the same time, the recognition accuracy of the fused spatiotemporal flow feature image was improved by 12% and 4.1%, respectively, compared with the temporal mode and spatial mode, which proved the effectiveness of spatiotemporal flow fusion in this method. By conducting ablation experiments on different attention mechanisms of SE, SK, CA and CBAM, it was proved that the CBAM attention mechanism used has the best effect on the data of automatic detection method for dairy cow lameness based on fusion of spatiotemporal stream features. The channel attention in CBAM had a better effect on fused spatiotemporal flow data, and the spatial attention could also focus on the key spatial information in cow images. Finally, comparisons were made with existing lameness detection methods, including different methods from side view and top view. Compared with existing methods in the side-view perspective, the prediction accuracy of automatic detection method for dairy cow lameness based on fusion of spatiotemporal stream features was slightly lower, because the side-view perspective had more effective cow lameness characteristics. Compared with the method from the top view, a novel fused spatiotemporal flow feature detection method with better performance and practicability was proposed.
This method can avoid the occlusion problem of detecting lame cows from the side view, and at the same time improves the prediction accuracy of the detection method from the top view. It is of great significance for reducing the incidence of lameness in cows and improving the economic benefits of the pasture, and meets the needs of large-scale construction of the pasture.
京公网安备11010802044758号