Lightweight cow face recognition algorithm based on few-shot learning for edge computing application

2021 
Abstract . Dairy cows often suffer from heat stress problems due to extreme levels of humidity and temperature. Heat stress contributes to the decrease in the feed and drink intake, fertility, breathing rate, and milk production of dairy cows. With the use of modern technology, these behaviors can be automatically monitored by farm owners, thereby ensuring the health of the dairy cows. This research presents a lightweight algorithm for cow face recognition tailored for edge computing application. The proposed algorithm was implemented in an automated dairy cow feeding behavior monitoring system made up of embedded imaging devices. By edge computing, the system can be installed in a dairy farm with improved scalability, efficiency, and data security. A lightweight cow face image recognition convolutional neural network (CNN) model was optimized and trained using few-shot learning (FSL) with a testing accuracy of 0.90. A method in FSL, called embedding learning, was used to enable the cow face recognition model to adapt based on newly acquired training samples. Embeddings were generated that represent lower dimension vectors extracted by the model from the cow face images. In the reduced dimension, the L2 distance of each embedding represented the similarity of each image sample with the support of triplet loss. This research overcomes the non-convergence issue in model training through adaptive training methods that can create a similarity space between embeddings. The techniques in this research may also be applied in other fields that require adaptive face recognition methods.
    • Correction
    • Source
    • Cite
    • Save
    • Machine Reading By IdeaReader
    0
    References
    0
    Citations
    NaN
    KQI
    []