Two-stages of segmentation to improve accuracy of deep learning models based on dairy cow morphology

Amril Mutoi Siregar, Yohanes Aris Purwanto, Sony Hartono Wijaya, Nahrowi Nahrowi


Computer vision deals with image-based problems, such as deep learning, classification, and object detection. This study classifies the quality of dairy parents into three, namely high, medium, and low based on morphology by focusing on Bogor Indonesia farms. The morphological images used are the side and back of dairy cows and the challenge is to determine the optimal accuracy of the model for it to be implemented into an automated system. The 2-step mask region-based convolutional neural network (mask R-CNN) and Canny segmentation algorithm were continuously used to classify the convolutional neural network (CNN) in order to obtain optimal accuracy. When testing the model using training and testing ratios of 90:10 and 80:20, it was evaluated in terms of accuracy, precision, recall, and F1-score. The results showed that the highest model produced an accuracy of 85.44%, 87.12% precision, 83.79% recall, and 84.94% F1-score. Therefore, it was concluded that the test result with 2-stages of segmentation was the best.


canny edge detection; convolution neural network; dairy cow morphology; deep learning; mask region-based convolutional neural network segmentation;

Full Text:



Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.

International Journal of Electrical and Computer Engineering (IJECE)
p-ISSN 2088-8708, e-ISSN 2722-2578

This journal is published by the Institute of Advanced Engineering and Science (IAES) in collaboration with Intelektual Pustaka Media Utama (IPMU).