• Laser & Optoelectronics Progress
  • Vol. 58, Issue 22, 2215007 (2021)
Fangfang Xue, Yueming Wang, and Qi Li*
Author Affiliations
  • School of Information Engineering, Inner Mongolia University of Science and Technology, Baotou, Inner Mongolia 014010, China
  • show less
    DOI: 10.3788/LOP202158.2215007 Cite this Article Set citation alerts
    Fangfang Xue, Yueming Wang, Qi Li. Recognition of Cattle Daily Behavior Based on Spatial Relationship of Feature Parts[J]. Laser & Optoelectronics Progress, 2021, 58(22): 2215007 Copy Citation Text show less
    Schematic diagram of the technical solution
    Fig. 1. Schematic diagram of the technical solution
    Structure diagram of the YOLOv5s model
    Fig. 2. Structure diagram of the YOLOv5s model
    Schematic diagram of the angle between feature parts
    Fig. 3. Schematic diagram of the angle between feature parts
    Structure of the fully connected neural network
    Fig. 4. Structure of the fully connected neural network
    Labeling of feature parts
    Fig. 5. Labeling of feature parts
    Training results of the YOLOv5s model. (a) Loss curve; (b) precision; (c) recall; (d) mAP
    Fig. 6. Training results of the YOLOv5s model. (a) Loss curve; (b) precision; (c) recall; (d) mAP
    Detection results of cattle feature parts
    Fig. 7. Detection results of cattle feature parts
    Sample image of the cattle behavior. (a) Standing behavior; (b) lying behavior; (c) feeding behavior
    Fig. 8. Sample image of the cattle behavior. (a) Standing behavior; (b) lying behavior; (c) feeding behavior
    Training curve of the fully connected neural network model. (a) Loss curve; (b) accuracy curve
    Fig. 9. Training curve of the fully connected neural network model. (a) Loss curve; (b) accuracy curve
    No.Characteristics value meaning
    1--3width of the target box of cattle, body and head (cattle_w, body_w, head_w)
    4--6height of the target box of cattle, body and head (cattle_h, body_h, head_h)
    7distance from head to tail (headtotail_dis)
    8--18distance from head to joint, knee and hoof (headtojoint_dis1-3, headtoknee_dis1-4, headtohoof_dis1-4)
    19--29distance from tail to joint, knee and hoof (tailtojoint_dis1-3, tailtoknee_dis1-4, tailtohoof_dis1-4)
    30--40angle between the head and joint, knee, and hoof relative to the tail (head-tail-joint_ang1-3, head-tail-knee_ang1-4, head-tail-hoof_ang1-4)
    41--51angle between the tail and joint, knee and hoof relative to the head (tail- head-joint_ang1-3, tail- head-knee_ang1-4, tail- head-hoof_ang1-4)
    Table 1. Vector format of feature part spatial relationship
    Recognition categorymAPCattleBodyHeadTailJointHoofKnee
    AP90.994.094.997.287.784.491.187.2
    Table 2. Training accuracy of the YOLOv5s model unit: %
    Standardized processingDropout processingAll behaviorStandingLyingFeeding
    ××96.296.896.295.3
    ×96.796.498.790.6
    ×97.297.298.795.3
    97.797.610095.3
    Table 3. Classification accuracy of fully connected neural network model unit: %
    Standardized processingAll behaviorStandingLyingFeeding
    ×91.991.793.690.6
    96.797.696.293.8
    Table 4. Classification accuracy of decision tree model unit: %
    BehaviorStandingLyingFeeding
    Real time /s232.1262.488.3
    Predicted time /s238.0262.083.0
    Relative error /%2.54-0.15-6.00
    Table 5. Statistics of cattle behavior time
    Fangfang Xue, Yueming Wang, Qi Li. Recognition of Cattle Daily Behavior Based on Spatial Relationship of Feature Parts[J]. Laser & Optoelectronics Progress, 2021, 58(22): 2215007
    Download Citation