Yongfeng Li’s research while affiliated with Beijing Academy of Agriculture and Forestry Sciences and other places

What is this page?


This page lists works of an author who doesn't have a ResearchGate profile or hasn't added the works to their profile yet. It is automatically generated from public (personal) data to further our legitimate goal of comprehensive and accurate scientific recordkeeping. If you are this author and want this page removed, please let us know.

Publications (9)


The flowchart of the research.
Schematic of the video recording process.
Flowchart of the model training process.
The system’s flow chart for predicting calf standing and lying time in the real environment.
Training curves, training loss, and validation performance. Epochs refers to the number of times the entire dataset is passed through the neural network during training. Multiple epochs are often required to adequately train the model and optimise its performance on the dataset.

+5

Analysis and Comparison of New-Born Calf Standing and Lying Time Based on Deep Learning
  • Article
  • Full-text available

April 2024

·

84 Reads

·

2 Citations

·

·

·

[...]

·

Wensheng Wang

Simple Summary In the process of calf rearing, it is inevitable to encounter issues of illness and death among calves. Often, due to the inability to detect sicknesses such as diarrhoea in a timely fashion, these sicknesses lead to the calves’ demise. This research starts from the practical application needs, and proposes the development of a monitoring system using deep learning technology to monitor the daily standing and lying behaviour of calves to predict their condition and adaptation to the environment. By analysing the standing and lying time of calves, the system can provide early warnings about calves’ condition and health status. This research helps to promptly grasp calves’ condition and growth status, thereby improving their welfare and management, enhancing the health condition of reared calves, ensuring the quality and safety of meat and milk, and reducing production costs. This research method also offers a new idea for the construction of smart ranches, as the construction of precision and smart ranches is not only a demand of consumers but also an inevitable direction for the development of the breeding industry. Abstract Standing and lying are the fundamental behaviours of quadrupedal animals, and the ratio of their durations is a significant indicator of calf health. In this study, we proposed a computer vision method for non-invasively monitoring of calves’ behaviours. Cameras were deployed at four viewpoints to monitor six calves on six consecutive days. YOLOv8n was trained to detect standing and lying calves. Daily behavioural budget was then summarised and analysed based on automatic inference on untrained data. The results show a mean average precision of 0.995 and an average inference speed of 333 frames per second. The maximum error in the estimated daily standing and lying time for a total of 8 calf-days is less than 14 min. Calves with diarrhoea had about 2 h more daily lying time (p < 0.002), 2.65 more daily lying bouts (p < 0.049), and 4.3 min less daily lying bout duration (p = 0.5) compared to healthy calves. The proposed method can help in understanding calves’ health status based on automatically measured standing and lying time, thereby improving their welfare and management on the farm.

Download

Fig. 1 Tongue rolling behaviour of Holstein cows (photos taken in the experimental study)
Fig. 4 Model statistics of the general behaviours of dairy cows during the experiment procedure. The other time = 24 h -eating time -lying time, including idle standing time and milking time for cows, etc.; Food time = eating time + rumination time. HT, cows with high tongue rolling frequency behaviour; MT, cows with medium tongue rolling frequency behaviour; LT, cows with low tongue rolling frequency behaviour; CON, cows without tongue rolling behaviour. * means P < 0.05
Evaluation of Holstein cows with different tongue-rolling frequencies: stress immunity, rumen environment and general behavioural activity

August 2023

·

99 Reads

·

1 Citation

Journal of Animal Science and Biotechnology

Background The tongue-rolling behaviour of cows is regarded as an outward sign of stressed animals in a low welfare status. The primary aim of this observational study was to evaluate the association between the frequency of tongue-rolling behaviour and its physiological function. The secondary aim was to explore the relationship between general activities and the frequency of tongue-rolling behaviour of cows. A total of 126 scan sampling behavioural observations were collected over 7 d on 348 Holstein cows with the same lactation stage in the same barn. The tongue-rolling frequency was defined as the number of tongue-rolling observations as a percentage to the total observations per individual cow. According to their tongue-rolling frequency, the cows were grouped into the CON (no tongue-rolling), LT (frequency 1%), MT (frequency 5%), and HT (frequency 10%) groups. Six cows from each group were randomly selected for sampling. Serum samples, rumen fluid, milk yield, and background information were collected. The general behaviour data during 72 continuous hours of dairy cows, including eating time, rumination time, food time (eating time + rumination time), and lying time, were recorded by the collar sensor. Results Cortisol ( P = 0.012), γ-hydroxybutyric acid ( P = 0.008), epinephrine ( P = 0.030), and dopamine ( P = 0.047) levels were significantly higher in tongue-rolling groups than in the CON group. Cortisol levels and tongue-rolling frequency had a moderate positive correlation (linearly r = 0.363). With the increase in tongue-rolling frequency, the rumen pH decreased first and then increased ( P = 0.013), comparing to the CON group. HT cows had significantly less food time than CON cows ( P = 0.035). The frequency of tongue-rolling had a moderate negative relationship with rumination time ( r = −0.384) and food time ( r = −0.492). Conclusions The tongue-rolling behaviour is considered as a passive coping mechanism, as the stress response in cows with high tongue-rolling frequency increased. Food intake and rumination activities were all closely related to the occurrence of tongue-rolling behaviour.




Behavior Classification and Analysis of Grazing Sheep on Pasture with Different Sward Surface Heights Using Machine Learning

July 2022

·

788 Reads

·

19 Citations

Simple Summary The monitoring and analysis of sheep behavior can reflect their welfare and health, which is beneficial for grazing management. For automatic classification and the continuous monitoring of grazing sheep behavior, wearable devices based on inertial measurement unit (IMU) sensors are important. The accuracy of different machine learning algorithms was compared, and the best one was used for the continuous monitoring and behavior classification of three grazing sheep on pasture with three different sward surface heights. The results showed that the algorithm automatically monitored the behavior of grazing sheep individuals and quantified the time of each behavior. Abstract Behavior classification and recognition of sheep are useful for monitoring their health and productivity. The automatic behavior classification of sheep by using wearable devices based on IMU sensors is becoming more prevalent, but there is little consensus on data processing and classification methods. Most classification accuracy tests are conducted on extracted behavior segments, with only a few trained models applied to continuous behavior segments classification. The aim of this study was to evaluate the performance of multiple combinations of algorithms (extreme learning machine (ELM), AdaBoost, stacking), time windows (3, 5 and 11 s) and sensor data (three-axis accelerometer (T-acc), three-axis gyroscope (T-gyr), and T-acc and T-gyr) for grazing sheep behavior classification on continuous behavior segments. The optimal combination was a stacking model at the 3 s time window using T-acc and T-gyr data, which had an accuracy of 87.8% and a Kappa value of 0.836. It was applied to the behavior classification of three grazing sheep continuously for a total of 67.5 h on pasture with three different sward surface heights (SSH). The results revealed that the three sheep had the longest walking, grazing and resting times on the short, medium and tall SHH, respectively. These findings can be used to support grazing sheep management and the evaluation of production performance.


Classification and Analysis of Multiple Cattle Unitary Behaviors and Movements Based on Machine Learning Methods

April 2022

·

157 Reads

·

28 Citations

Simple Summary Traditionally, farmers are unable to pay enough attention to individual livestock. An increasing number of sensors are being used to monitor animal behavior, early disease detection, and evaluation of animal welfare. In this study, we used machine learning algorithms to identify multiple unitary behaviors and movements of dairy cattle recorded by motion sensors. We also investigated the effect of time window on the performance of unitary behaviors classification and discussed the necessity of movement analysis. This study shows a feasible way to explore more detailed movements based on the result of unitary behaviors classification. Low-cost sensors provide remote monitoring of animal behaviors to help producers comprehensively and accurately identify the health status of individual livestock in real-time. Abstract The behavior of livestock on farms is the primary representation of animal welfare, health conditions, and social interactions to determine whether they are healthy or not. The objective of this study was to propose a framework based on inertial measurement unit (IMU) data from 10 dairy cows to classify unitary behaviors such as feeding, standing, lying, ruminating-standing, ruminating-lying, and walking, and identify movements during unitary behaviors. Classification performance was investigated for three machine learning algorithms (K-nearest neighbors (KNN), random forest (RF), and extreme boosting algorithm (XGBoost)) in four time windows (5, 10, 30, and 60 s). Furthermore, feed tossing, rolling biting, and chewing in the correctly classified feeding segments were analyzed by the magnitude of the acceleration. The results revealed that the XGBoost had the highest performance in the 60 s time window with an average F1 score of 94% for the six unitary behavior classes. The F1 score of movements is 78% (feed tossing), 87% (rolling biting), and 87% (chewing). This framework offers a possibility to explore more detailed movements based on the unitary behavior classification.


Five regions of interest of eyes for temperature measurement.
Mean (A) and maximum temperature (B) of left and right eyes obtained at five regions of interest (ROIs). Data are graphed using the least square mean ± standard error of the interaction (ROI by side). MC, medial canthus; LC, lateral canthus; EB, eyeball; WE, whole eye; LS, lacrimal sac.
Evaluation of the Best Region for Measuring Eye Temperature in Dairy Cows Exposed to Heat Stress

March 2022

·

187 Reads

·

18 Citations

Eye temperature (ET) has long been used for predicting or indicating heat stress in dairy cows. However, the region of interest (ROI) and temperature parameter of the eye have not been standardized and various options were adopted by previous studies. The aim of this study was to determine the best ROI for measuring ET as the predictor of heat stress in dairy cows in consideration of repeatability and validity. The ET of 40 lactating Holstein dairy cows was measured using infrared thermography. The mean and maximum temperature of five ROIs—medial canthus (MC), lateral canthus, eyeball, whole eye (WE), and lacrimal sac (LS)—were manually captured. The results show that the ET of left eyes was slightly higher than that of right eyes. The ET taken in MC, WE, and LS within 2 min had a moderate to substantial repeatability. The maximum temperature obtained at the LS had the highest correlation coefficients with respiration rate and core body temperature (all p < 0.001). Therefore, the maximum temperature of LS should be considered by future studies that want to use ET as the predictor or indicator of heat stress in dairy cows.


CattleFaceNet: A cattle face identification approach based on RetinaFace and ArcFace loss

February 2022

·

857 Reads

·

85 Citations

Computers and Electronics in Agriculture

Cattle identification is crucial to be registered for breeding association, food quality tracing, disease prevention and control and fake insurance claims. Traditional non-biometrics methods for cattle identification is not really satisfactory in providing reliability due to theft, fraud, and duplication. In this study, a computer vision technique was proposed to facilitate precision animal management and improve livestock welfare. This paper presents a novel face identification framework by integrating light-weight RetinaFace-mobilenet with Additive Angular Margin Loss (ArcFace), namely CattleFaceNet. RetinaFace-mobilenet is designed for face detection and location, and ArcFace is adopted to strengthen the within-class compactness and also between-class discrepancy during training. Experiments on real-word scenarios dataset prove that RetinaFace-mobilenet achieves superior detection performance and significantly accelerates the computation time against RetinaNet. Three loss functions utilized in human face recognition combined with RetinaFace-mobilenet are compared and results indict that the proposed CattleFaceNet outperforms others with identification accuracy of 91.3% and processing time of 24 frames per second (FPS). This research work demonstrates the potential candidate of CattleFaceNet for livestock identification in real time in practical production scenarios.


Evaluation of Deep Learning for Automatic Multi-View Face Detection in Cattle

October 2021

·

391 Reads

·

49 Citations

Individual identification plays an important part in disease prevention and control, traceability of meat products, and improvement of agricultural false insurance claims. Automatic and accurate detection of cattle face is prior to individual identification and facial expression recognition based on image analysis technology. This paper evaluated the possibility of the cutting-edge object detection algorithm, RetinaNet, performing multi-view cattle face detection in housing farms with fluctuating illumination, overlapping, and occlusion. Seven different pretrained CNN models (ResNet 50, ResNet 101, ResNet 152, VGG 16, VGG 19, Densenet 121 and Densenet 169) were fine-tuned by transfer learning and re-trained on the dataset in the paper. Experimental results showed that RetinaNet incorporating the ResNet 50 was superior in accuracy and speed through performance evaluation, which yielded an average precision score of 99.8% and an average processing time of 0.0438 s per image. Compared with the typical competing algorithms, the proposed method was preferable for cattle face detection, especially in particularly challenging scenarios. This research work demonstrated the potential of artificial intelligence towards the incorporation of computer vision systems for individual identification and other animal welfare improvements.

Citations (7)


... Vázquez-Diosdado et al (2024) have also used an AdaBoost ensemble learning algorithm to classify calves' play and non-play behaviours and achieved an overall accuracy greater than 94%. Zhang et al (2024) have classified between healthy calves and sick calves (with diarrhoea) using YOLOv8n deep learning model. Features such as standing time, lying time, number of lying bouts, and average bout duration (using video feeds) have been used for the model training, and the model achieved a mean average precision of 0.995. ...

Reference:

A Comparison of Deep Learning and Established Methods for Calf Behaviour Monitoring
Analysis and Comparison of New-Born Calf Standing and Lying Time Based on Deep Learning

... This intervention notably increased milk fat, protein, and energy-corrected milk yields. In another approach, Shu et al. [75] used machine learning models, particularly ANN, to predict physiological responses such as respiration rate and vaginal temperature under heat stress. ANN demonstrated superior predictive accuracy, allowing farms to optimise cooling strategies like sprinklers, reducing operational costs by minimising water and energy use. ...

Predicting physiological responses of dairy cows using comprehensive variables
  • Citing Article
  • April 2023

Computers and Electronics in Agriculture

... Untuk mendukung pengambilan keputusan dalam manajemen hewan, sangat penting untuk fokus pada pengumpulan data secara real-time dari peternakan [33]. Identifikasi domba individu di peternakan dan perilaku mereka yang berbeda sangat penting untuk memantau kesehatan dan praktik peternakan lainnya [34]. Peneliti sebelumnya telah mengembangkan sistem pelacakan otomatis berbasis radar gelombang milimeter yang menawarkan pemantauan hewan secara akurat dan real-time [35]. ...

Behavior Classification and Analysis of Grazing Sheep on Pasture with Different Sward Surface Heights Using Machine Learning

... However, their use for specifically detecting JM events poses challenges due to the limited discriminatory power of the signals captured for this purpose . A variety of approaches have been explored, including the use of accelerometers (Tani et al., 2013;Oudshoorn et al., 2013;Bloch et al., 2023), accelerometers and gyroscopes (referred to as IMUs) (Andriamandroso et al., 2015;Li et al., 2022), and accelerometers, gyroscopes, and magnetometers (referred to as inertial and magnetic measurement units) . ...

Classification and Analysis of Multiple Cattle Unitary Behaviors and Movements Based on Machine Learning Methods

... In other studies, the infrared thermography of eyes has widely been reported as a tool for the detection of thermal conditions related to inflammation [13], dehorning [19], castration [20] and disease detection [13,14]. Recently, Shu et al. [41] reported the eye to be the best region for measuring thermal variation in order to assess the heat stress response in dairy cattle. Similarly, in our study, the rise in the IRT-Eye temperature in the cattle during the HOT period confirms the potential of the IRT-Eye to be used as a useful tool (in addition to rectal and rumen temperature) for assessing thermal variations in cattle experiencing hot environmental temperatures. ...

Evaluation of the Best Region for Measuring Eye Temperature in Dairy Cows Exposed to Heat Stress

... Cosine similarity is then used to capture directional and absolute value differences between cattle face vectors, enhancing network robustness [29]. Xu et al. introduced an innovative cattle face recognition framework called CattleFaceNet [30], which combines a lightweight RetinaFace-mobilenet model with an additive angular margin loss (ArcFace). RetinaFace-mobilenet, originally designed for human face detection and localization, was successfully applied to cattle face recognition, with ArcFace enhancing intra-class compactness and inter-class separation during training. ...

CattleFaceNet: A cattle face identification approach based on RetinaFace and ArcFace loss

Computers and Electronics in Agriculture

... One of the main challenges in CNN-based animal identification is ensuring that models focus on biometric features (e.g., facial patterns, body structure) rather than on background features [32]. Previous studies have shown that animal recognition models trained in one environment often fail under changed conditions, suggesting that CNNs learn datasetspecific artifacts rather than biologically relevant animal recognition features [33]. This issue necessitates the use of explanation techniques when training the model to understand which image regions contribute most to classification decisions. ...

Evaluation of Deep Learning for Automatic Multi-View Face Detection in Cattle