| Literature DB >> 35590962 |
Zhenwei Yu1, Yuehua Liu2,3, Sufang Yu4, Ruixue Wang5, Zhanhua Song1, Yinfa Yan1, Fade Li1, Zhonghua Wang6, Fuyang Tian1.
Abstract
The feeding behaviour of cows is an essential sign of their health in dairy farming. For the impression of cow health status, precise and quick assessment of cow feeding behaviour is critical. This research presents a method for monitoring dairy cow feeding behaviour utilizing edge computing and deep learning algorithms based on the characteristics of dairy cow feeding behaviour. Images of cow feeding behaviour were captured and processed in real time using an edge computing device. A DenseResNet-You Only Look Once (DRN-YOLO) deep learning method was presented to address the difficulties of existing cow feeding behaviour detection algorithms' low accuracy and sensitivity to the open farm environment. The deep learning and feature extraction enhancement of the model was improved by replacing the CSPDarknet backbone network with the self-designed DRNet backbone network based on the YOLOv4 algorithm using multiple feature scales and the Spatial Pyramid Pooling (SPP) structure to enrich the scale semantic feature interactions, finally achieving the recognition of cow feeding behaviour in the farm feeding environment. The experimental results showed that DRN-YOLO improved the accuracy, recall, and mAP by 1.70%, 1.82%, and 0.97%, respectively, compared to YOLOv4. The research results can effectively solve the problems of low recognition accuracy and insufficient feature extraction in the analysis of dairy cow feeding behaviour by traditional methods in complex breeding environments, and at the same time provide an important reference for the realization of intelligent animal husbandry and precision breeding.Entities:
Keywords: DRN-YOLO; dairy cow; deep learning; edge computing; feeding behaviour recognition
Mesh:
Year: 2022 PMID: 35590962 PMCID: PMC9102446 DOI: 10.3390/s22093271
Source DB: PubMed Journal: Sensors (Basel) ISSN: 1424-8220 Impact factor: 3.576
Parameters of NVIDIA JetsonTX2.
| Items | Parameters |
|---|---|
| GPU | NVIDIA PascalTM architecture with 256 CUDA cores |
| CPU | Dual-core Denver2 64-bit CPU and quad-core ARM A57 Complex |
| Video encoding/decoding | 4 K × 2 K 60 Hz encoding (HEVC); 4 K × 2 K 60 Hz decoding (12-bit support) |
| Video memory | 8 GB 128-bit LPDDR4 59.7 GB/s |
| Display | 2 DSI ports, 2 DP 1.2/HDMI 2.0 ports/eDP 1.4 ports |
| CSI | CSI support for up to 6 cameras (2 channels) CSI2 D-PHY 1.2 (2.5 Gbps per channel) |
| PCIE | Gen 2|1 × 4 + 1 × 1 or 2 × 1 + 1 × 2 |
| Data storage | 32 GB eMMC, SDIO, SATA |
| Other | CAN, UART, SPI, I2C, I2S, GPIO |
| Connectable | 1 Gigabit Ethernet, 802.11ac WLAN, Bluetooth |
| Mechanical | 50 mm × 87 mm (400-pin compatible board-to-board connector) |
Figure 1NVIDIA JetsonTX2 structure.
Figure 2Equipment Installation Location. 1. ZED camera (top) 2. Cattle pen 3. ZED camera (front). 4. NVIDIA JetsonTX2.
Figure 3Dairy cow feeding behaviour. (a) Cow feeding behaviour from front; (b) Cow feeding behaviour from top.
Number of datasets labelled with cow feeding behaviour.
| Shooting Direction | Number of Training Datasets | Number of Test Datasets | Number of Feeding Behaviours | Number of Chewing Behaviours | Number of Pushing Behaviours |
|---|---|---|---|---|---|
| Front | 4484 | 758 | 5684 | 792 | 1613 |
| Top | 4320 | 726 | 6958 | 960 | 1946 |
Note: The number of training sets and the number of test sets were the number of pictures for training and testing, and the number of feeding behaviours, chewing behaviours, and pushing behaviours were the number of labelled boxes for feeding behaviour, chewing behaviour and pushing behaviour in the training and test sets.
Figure 4DRN-YOLO structure.
Figure 5DRNet block structure. (a) DRN block; (b) CBL.
Figure 6SPP structure.
Figure 7DRN-YOLOv4 model workflow.
Figure 8Impact of learning rate. (a) Learning rate 0.1; (b) Learning rate 0.01; (c) Learning rate 0.001.
Figure 9The results of DRN-YOLO identification. (a) Recognition results collected from the front; (a) Recognition results collected from the front; (b) Recognition results taken from top.
Figure 10DRN-YOLO missing detection. (a) Incomplete shot; (b) Obscured from each other.
The results of training on the dataset from the front-shot dairy cows’ feeding behaviour.
| YOLOv4 | DRNet | Four-Feature Scale | SPP | mAP (%) | Precision (%) | Recall (%) | F1-Score |
|---|---|---|---|---|---|---|---|
| √ | 95.13 | 95.46 | 94.69 | 95.07 | |||
| √ | √ | 95.86 | 96.03 | 95.24 | 95.63 | ||
| √ | √ | √ | 96.27 | 96.42 | 95.75 | 96.08 | |
| √ | √ | 96.16 | 96.24 | 95.53 | 95.88 | ||
| √ | √ | √ | 96.58 | 96.72 | 96.17 | 96.44 | |
| √ | √ | √ | √ | 96.91 | 97.16 | 96.51 | 96.83 |
The results of training on the dataset from the above-shot dairy cows’ feeding behaviour.
| YOLOv4 | DRNet | Four-Feature Scale | SPP | mAP (%) | Precision (%) | Recall (%) | F1-Score |
|---|---|---|---|---|---|---|---|
| √ | 95.01 | 95.17 | 94.98 | 95.07 | |||
| √ | √ | 95.53 | 95.73 | 95.03 | 95.38 | ||
| √ | √ | √ | 95.97 | 96.12 | 95.48 | 95.80 | |
| √ | √ | 95.69 | 95.96 | 95.26 | 95.61 | ||
| √ | √ | √ | 96.08 | 96.44 | 95.70 | 96.07 | |
| √ | √ | √ | √ | 96.49 | 96.84 | 96.25 | 96.54 |
Figure 11The features of dairy cow feeding behaviour.
Figure 12Training loss curves. (a) Training loss curve of the front; (b) Training loss curve of the top.
Figure 13F1-score curves. (a) F1-score training data from front; (b) F1-score training data from top.
Figure 14mAP curves. (a) mAP curve of training data from front; (b) mAP curve of training data from top.
The results of testing on the dataset from the front-shot dairy cows’ feeding behaviour.
| Model | Precision (%) | Recall (%) | F1-Score (%) | Time (ms) | |
|---|---|---|---|---|---|
| YOLOv4 | 95.46 | 94.69 | 95.13 | 95.07 | 31.17 |
| SSD | 95.34 | 95.08 | 95.14 | 95.21 | - |
| Faster RCNN | 97.11 | 96.50 | 96.88 | 96.80 | 160 |
| DRN-YOLO(OURS) | 97.16 | 96.51 | 96.91 | 96.83 | 22.65 |
The results of testing on the dataset from the above-shot dairy cows’ feeding behaviour.
| Model | Precision (%) | Recall (%) | F1-Score (%) | Time (ms) | |
|---|---|---|---|---|---|
| YOLOv4 | 95.17 | 94.98 | 95.01 | 95.07 | 31.17 |
| SSD | 95.14 | 94.96 | 95.04 | 95.04 | - |
| Faster RCNN | 96.81 | 96.21 | 96.43 | 96.51 | 160 |
| DRN-YOLO(OURS) | 96.84 | 96.25 | 96.49 | 96.55 | 22.65 |