Laser & Optoelectronics Progress, Volume. 58, Issue 22, 2215007(2021)

Recognition of Cattle Daily Behavior Based on Spatial Relationship of Feature Parts

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
    Figures & Tables(14)
    Schematic diagram of the technical solution
    Structure diagram of the YOLOv5s model
    Schematic diagram of the angle between feature parts
    Structure of the fully connected neural network
    Labeling of feature parts
    Training results of the YOLOv5s model. (a) Loss curve; (b) precision; (c) recall; (d) mAP
    Detection results of cattle feature parts
    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
    • Table 1. Vector format of feature part spatial relationship

      View table

      Table 1. Vector format of feature part spatial relationship

      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 2. Training accuracy of the YOLOv5s model unit: %

      View table

      Table 2. Training accuracy of the YOLOv5s model unit: %

      Recognition categorymAPCattleBodyHeadTailJointHoofKnee
      AP90.994.094.997.287.784.491.187.2
    • Table 3. Classification accuracy of fully connected neural network model unit: %

      View table

      Table 3. Classification accuracy of fully connected neural network 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 4. Classification accuracy of decision tree model unit: %

      View table

      Table 4. Classification accuracy of decision tree model unit: %

      Standardized processingAll behaviorStandingLyingFeeding
      ×91.991.793.690.6
      96.797.696.293.8
    • Table 5. Statistics of cattle behavior time

      View table

      Table 5. Statistics of cattle behavior time

      BehaviorStandingLyingFeeding
      Real time /s232.1262.488.3
      Predicted time /s238.0262.083.0
      Relative error /%2.54-0.15-6.00
    Tools

    Get Citation

    Copy Citation Text

    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

    EndNote(RIS)BibTexPlain Text
    Save article for my favorites
    Paper Information

    Category: Machine Vision

    Received: Jan. 11, 2021

    Accepted: Feb. 12, 2021

    Published Online: Nov. 10, 2021

    The Author Email: Qi Li (richey@imust.edu.cn)

    DOI:10.3788/LOP202158.2215007

    Topics