WENG Jiajie,MAO Zhanhua.Design of livestock virtual electronic fence based on deep learning[J].Agricultural Engineering,2024,14(4):41-45. DOI: 10.19998/j.cnki.2095-1795.2024.04.007
Citation: WENG Jiajie,MAO Zhanhua.Design of livestock virtual electronic fence based on deep learning[J].Agricultural Engineering,2024,14(4):41-45. DOI: 10.19998/j.cnki.2095-1795.2024.04.007

Design of Livestock Virtual Electronic Fence Based on Deep Learning

  • In response to issue of livestock crossing boundaries in pastures and limitations of traditional electronic fences in preventing such occurrences, a virtual electronic fence was designed based on improved version of YOLOv5.Initially, YOLOv5s model was used as foundation, and transfer learning and addition of an ECA attention module were performed.Subsequently, the model was trained using PyTorch framework and evaluated.Compared to original YOLOv5s, improved YOLOv5s achieved 0.2, 1.3, and 0.7 percentage points increase in precision, recall, and mAP for cattle detection, respectively, while reducing single-frame inference total time by 0.5 ms.Finally, improved model was converted to RKNN format and deployed on an NPU-equipped RK3588 development board to accelerate model's inference speed.Results showed that, application of deep learning technology and ROI delineation technology has successfully designed a virtual electronic fence for livestock, optimized management system of smart ranches, improved management efficiency, reduced management costs, and has certain practical value.
  • loading

Catalog

    Turn off MathJax
    Article Contents

    /

    DownLoad:  Full-Size Img  PowerPoint
    Return
    Return