IDEAS home Printed from https://ideas.repec.org/a/gam/jdataj/v7y2022i5p68-d822101.html
   My bibliography  Save this article

Unsupervised Few Shot Key Frame Extraction for Cow Teat Videos

Author

Listed:
  • Youshan Zhang

    (Department of Clinical Sciences, College of Veterinary Medicine, Cornell University, Ithaca, NY 14853, USA)

  • Matthias Wieland

    (Department of Population Medicine and Diagnostic Sciences, College of Veterinary Medicine, Cornell University, Ithaca, NY 14853, USA)

  • Parminder S. Basran

    (Department of Clinical Sciences, College of Veterinary Medicine, Cornell University, Ithaca, NY 14853, USA)

Abstract

A novel method of monitoring the health of dairy cows in large-scale dairy farms is proposed via image-based analysis of cows on rotary-based milking platforms, where deep learning is used to classify the extent of teat-end hyperkeratosis. The videos can be analyzed to segment the teats for feature analysis, which can then be used to assess the risk of infections and other diseases. This analysis can be performed more efficiently by using the key frames of each cow as they pass through the image frame. Extracting key frames from these videos would greatly simplify this analysis, but there are several challenges. First, data collection in the farm setting is harsh, resulting in unpredictable temporal key frame positions; empty, obfuscated, or shifted images of the cow’s teats; frequently empty stalls due to challenges with herding cows into the parlor; and regular interruptions and reversals in the direction of the parlor. Second, supervised learning requires expensive and time-consuming human annotation of key frames, which is impractical in large commercial dairy farms housing thousands of cows. Unsupervised learning methods rely on large frame differences and often suffer low performance. In this paper, we propose a novel unsupervised few-shot learning model which extracts key frames from large (∼21,000 frames) video streams. Using a simple L1 distance metric that combines both image and deep features between each unlabeled frame and a few (32) labeled key frames, a key frame selection mechanism, and a quality check process, key frames can be extracted with sufficient accuracy (F score 63.6%) and timeliness (<10 min per 21,000 frames) for commercial dairy farm setting demands.

Suggested Citation

  • Youshan Zhang & Matthias Wieland & Parminder S. Basran, 2022. "Unsupervised Few Shot Key Frame Extraction for Cow Teat Videos," Data, MDPI, vol. 7(5), pages 1-21, May.
  • Handle: RePEc:gam:jdataj:v:7:y:2022:i:5:p:68-:d:822101
    as

    Download full text from publisher

    File URL: https://www.mdpi.com/2306-5729/7/5/68/pdf
    Download Restriction: no

    File URL: https://www.mdpi.com/2306-5729/7/5/68/
    Download Restriction: no
    ---><---

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:gam:jdataj:v:7:y:2022:i:5:p:68-:d:822101. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    We have no bibliographic references for this item. You can help adding them by using this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: MDPI Indexing Manager (email available below). General contact details of provider: https://www.mdpi.com .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.