5
views
0
recommends
+1 Recommend
1 collections
    0
    shares
      • Record: found
      • Abstract: found
      • Article: found
      Is Open Access

      Real-time digital dermatitis detection in dairy cows on Android and iOS apps using computer vision techniques

      research-article

      Read this article at

      Bookmark
          There is no author summary for this article yet. Authors can add summaries to their articles on ScienceOpen to make them more accessible to a non-specialist audience.

          Abstract

          The aim of the study was to deploy computer vision models for real-time detection of digital dermatitis (DD) lesions in cows using Android or iOS mobile applications. Early detection of DD lesions in dairy cows is crucial for prompt treatment and animal welfare. Android and iOS apps could facilitate routine and early DD detection in cows’ feet on dairy and beef farms. Upon detecting signs of DD, dairy farmers could implement preventive and treatment methods, including foot baths, topical treatment, hoof trimming, or quarantining cows affected by DD to prevent its spread. We applied transfer-learning to DD image data for 5 lesion classes, M0, M4H, M2, M2P, and M4P, on pretrained YOLOv5 model architecture using COCO-128 pretrained weights. The combination of localization loss, classification loss, and objectness loss was used for the optimization of prediction performance. The custom DD detection model was trained on 363 images of size 416 × 416 pixels and tested on 46 images. During model training, data were augmented to increase model robustness in different environments. The model was converted into TFLite format for Android devices and CoreML format for iOS devices. Techniques such as quantization were implemented to improve inference speed in real-world settings. The DD models achieved a mean average precision (mAP) of 0.95 on the test dataset. When tested in real-time, iOS devices resulted in Cohen’s kappa value of 0.57 (95% CI: 0.49 to 0.65) averaged across the 5 lesion classes denoting the moderate agreement of the model detection with human investigators. The Android device resulted in a Cohen’s kappa value of 0.38 (95% CI: 0.29 to 0.47) denoting fair agreement between model and investigator. Combining M2 and M2P classes and M4H and M4P classes resulted in a Cohen’s kappa value of 0.65 (95% CI: 0.54 to 0.76) and 0.46 (95% CI: 0.35 to 0.57), for Android and iOS devices, respectively. For the 2-class model (lesion vs. non-lesion), a Cohen’s kappa value of 0.74 (95% CI: 0.63 to 0.85) and 0.65 (95% CI: 0.52 to 0.78) was achieved for iOS and Android devices, respectively. iOS achieved a good inference time of 20 ms, compared to 57 ms on Android. Additionally, we deployed models on Ultralytics iOS and Android apps giving kappa scores of 0.56 (95% CI: 0.48 to 0.64) and 0.46 (95% CI: 0.37 to 0.55), respectively. Our custom iOS app surpassed the Ultralytics apps in terms of kappa score and confidence score.

          Abstract

          Custom iOS apps were the better edge devices for real-time digital dermatitis (DD) detection as compared to custom Android and the Ultralytics apps. iOS apps performed well in recognizing DD lesions in real-time in dairy farms and therefore can be used for early detection of DD.

          Related collections

          Most cited references17

          • Record: found
          • Abstract: not found
          • Book Chapter: not found

          SSD: Single Shot MultiBox Detector

            Bookmark
            • Record: found
            • Abstract: found
            • Article: not found

            Faster R-CNN: Towards Real-Time Object Detection with Region Proposal Networks

            State-of-the-art object detection networks depend on region proposal algorithms to hypothesize object locations. Advances like SPPnet and Fast R-CNN have reduced the running time of these detection networks, exposing region proposal computation as a bottleneck. In this work, we introduce a Region Proposal Network (RPN) that shares full-image convolutional features with the detection network, thus enabling nearly cost-free region proposals. An RPN is a fully convolutional network that simultaneously predicts object bounds and objectness scores at each position. The RPN is trained end-to-end to generate high-quality region proposals, which are used by Fast R-CNN for detection. We further merge RPN and Fast R-CNN into a single network by sharing their convolutional features---using the recently popular terminology of neural networks with 'attention' mechanisms, the RPN component tells the unified network where to look. For the very deep VGG-16 model, our detection system has a frame rate of 5fps (including all steps) on a GPU, while achieving state-of-the-art object detection accuracy on PASCAL VOC 2007, 2012, and MS COCO datasets with only 300 proposals per image. In ILSVRC and COCO 2015 competitions, Faster R-CNN and RPN are the foundations of the 1st-place winning entries in several tracks. Code has been made publicly available. Extended tech report
              Bookmark
              • Record: found
              • Abstract: found
              • Article: not found

              Histological and bacteriological evaluation of digital dermatitis in cattle, with special reference to spirochaetes and Campylobacter faecalis.

              Tissue samples from the feet of slaughtered cattle exhibiting different stages of digital dermatitis were sectioned and stained with haematoxylin and eosin and silver staining techniques. Three morphological variations of spirochaetes were observed, whereas control samples from feet which were macroscopically negative for digital dermatitis were also negative for spirochaetes. In an immunofluorescence test, Campylobacter faecalis was found to be abundant on superficial wound smears from the classical ulceration of digital dermatitis.
                Bookmark

                Author and article information

                Contributors
                Journal
                Transl Anim Sci
                Transl Anim Sci
                tranas
                Translational Animal Science
                Oxford University Press (US )
                2573-2102
                2025
                05 February 2025
                05 February 2025
                : 9
                : txae168
                Affiliations
                School of Veterinary Medicine, University of Wisconsin-Madison , Madison, WI 53706, USA
                School of Veterinary Medicine, University of Wisconsin-Madison , Madison, WI 53706, USA
                School of Veterinary Medicine, University of Wisconsin-Madison , Madison, WI 53706, USA
                School of Veterinary Medicine, University of Wisconsin-Madison , Madison, WI 53706, USA
                Author notes
                Corresponding author: dopfer@ 123456wisc.edu
                Article
                txae168
                10.1093/tas/txae168
                11829201
                39959562
                24189d67-ded4-4bfd-baa6-ff91a22c0947
                © The Author(s) 2025. Published by Oxford University Press on behalf of the American Society of Animal Science.

                This is an Open Access article distributed under the terms of the Creative Commons Attribution License ( https://creativecommons.org/licenses/by/4.0/), which permits unrestricted reuse, distribution, and reproduction in any medium, provided the original work is properly cited.

                History
                : 15 December 2023
                : 16 January 2025
                : 15 February 2025
                Page count
                Pages: 14
                Categories
                Animal Health and Well Being
                AcademicSubjects/SCI00960

                animal welfare,app deployment,cattle,computer vision,deep learning,yolo

                Comments

                Comment on this article