Sort:
Open Access Issue
Cow-YOLO: Automatic cow mounting detection based on non-local CSPDarknet53 and multiscale neck
International Journal of Agricultural and Biological Engineering 2024, 17(3): 193-202
Published: 30 June 2024
Abstract PDF (1.9 MB) Collect
Downloads:152

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
Dempster Shafer distance-based multi-classifier fusion method for pig cough recognition
International Journal of Agricultural and Biological Engineering 2024, 17(4): 245-254
Published: 31 August 2024
Abstract PDF (2.3 MB) Collect
Downloads:29

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.

Issue
Automatic Detection Method of Dairy Cow Lameness from Top-view Based on the Fusion of Spatiotemporal Stream Features
Smart Agriculture 2024, 6(4): 18-28
Published: 30 July 2024
Abstract PDF (1.8 MB) Collect
Downloads:78
Objective

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.

Methods

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.

Results and Discussions

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.

Conclusions

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.

Issue
Real-Time Monitoring Method for Cow Rumination Behavior Based on Edge Computing and Improved MobileNet v3
Smart Agriculture 2024, 6(4): 29-41
Published: 30 July 2024
Abstract PDF (39.3 MB) Collect
Downloads:165
Objective

Real-time monitoring of cow ruminant behavior is of paramount importance for promptly obtaining relevant information about cow health and predicting cow diseases. Currently, various strategies have been proposed for monitoring cow ruminant behavior, including video surveillance, sound recognition, and sensor monitoring methods. However, the application of edge device gives rise to the issue of inadequate real-time performance. To reduce the volume of data transmission and cloud computing workload while achieving real-time monitoring of dairy cow rumination behavior, a real-time monitoring method was proposed for cow ruminant behavior based on edge computing.

Methods

Autonomously designed edge devices were utilized to collect and process six-axis acceleration signals from cows in real-time. Based on these six-axis data, two distinct strategies, federated edge intelligence and split edge intelligence, were investigated for the real-time recognition of cow ruminant behavior. Focused on the real-time recognition method for cow ruminant behavior leveraging federated edge intelligence, the CA-MobileNet v3 network was proposed by enhancing the MobileNet v3 network with a collaborative attention mechanism. Additionally, a federated edge intelligence model was designed utilizing the CA-MobileNet v3 network and the FedAvg federated aggregation algorithm. In the study on split edge intelligence, a split edge intelligence model named MobileNet-LSTM was designed by integrating the MobileNet v3 network with a fusion collaborative attention mechanism and the Bi-LSTM network.

Results and Discussions

Through comparative experiments with MobileNet v3 and MobileNet-LSTM, the federated edge intelligence model based on CA-MobileNet v3 achieved an average Precision rate, Recall rate, F1-Score, Specificity, and Accuracy of 97.1%, 97.9%, 97.5%, 98.3%, and 98.2%, respectively, yielding the best recognition performance.

Conclusions

It is provided a real-time and effective method for monitoring cow ruminant behavior, and the proposed federated edge intelligence model can be applied in practical settings.

Open Access Issue
Pig Sound Analysis: A Measure of Welfare
Smart Agriculture 2022, 4(2): 19-35
Published: 30 June 2022
Abstract PDF (688.8 KB) Collect
Downloads:423

Pig welfare is closely related to the economical production of pig farms. With regard to pig welfare assessment, pig sounds are significant indicators, which can reflect the quality of the barn environment, the physical condition and the health of pigs. Therefore, pig sound analysis is of high priority and necessary. In this review, the relationship between pig sound and welfare was analyzed. Three kinds of pig sounds are closely related to pig welfare, including coughs, screams, and grunts. Subsequently, both wearable and non-contact sensors were briefly described in two aspects of advantages and disadvantages. Based on the advantages and feasibility of microphone sensors in contactless way, the existing techniques for processing pig sounds were elaborated and evaluated for further in-depth research from three aspects: sound recording and labeling, feature extraction, and sound classification. Finally, the challenges and opportunities of pig sound research were discussed for the ultimate purpose of precision livestock farming (PLF) in four ways: concerning sound monitoring technologies, individual pig welfare monitoring, commercial applications and pig farmers. In summary, it was found that most of the current researches on pig sound recognition tasks focused on the selection of classifiers and algorithm improvement, while fewer research was conducted on sound labeling and feature extraction. Meanwhile, pig sound recognition faces some challenging problems, involving the difficulty in obtaining the audio data from different pig growth stages and verifying the developed algorithms in a variety of pig farms. Overall, it is suggested that technologies involved in the automatic identification process should be explored in depth. In the future, strengthen cooperation among cross-disciplinary experts to promote the development and application of PLF is also nessary.

Total 5