[Paper Review] Beef Cattle Instance Segmentation Using Fully Convolutional Neural Network
This paper proposes MaskSplitter, a novel instance segmentation framework that enhances fully convolutional networks (FCN8s) to perform end-to-end instance segmentation without region proposal networks (RPNs) or bounding boxes. By leveraging pixelwise sigmoid and Euclidean losses to refine mask predictions based on overlap analysis with ground truth, the method achieves a +8% mAP improvement over Mask R-CNN on a challenging beef cattle CCTV dataset, demonstrating strong generalization in real-world farming conditions.
We present an instance segmentation algorithm trained and applied to a CCTV recording of beef cattle during a winter finishing period. A fully convolutional network was transformed into an instance segmentation network that learns to label each instance of an animal separately. We introduce a conceptually simple framework that the network uses to output a single prediction for every animal. These results are a contribution towards behaviour analysis in winter finishing beef cattle for early detection of animal welfare-related problems.
Motivation & Objective
- To develop a real-time, RPN-free instance segmentation method for beef cattle in low-resource, dynamic farm environments.
- To address the challenge of high variability in cattle posture and occlusion in CCTV footage, which hinders generalization of existing models.
- To improve instance segmentation performance on non-benchmark datasets by refining FCN outputs using ground truth overlap analysis.
- To demonstrate that a simple, lightweight architecture can outperform complex state-of-the-art models like Mask R-CNN on domain-specific, real-world data.
- To enable practical applications in animal welfare monitoring, such as early lameness detection and behavior analysis.
Proposed method
- The framework extends FCN8s with a lightweight head network that predicts three types of mask representations: one good (overlaps exactly one animal), and two types of bad masks (overlapping multiple animals or being overlapped by multiple masks).
- It uses a novel loss function combining pixelwise sigmoid loss and Euclidean distance loss to refine mask predictions based on overlap with ground truth masks.
- The network architecture includes separate fully connected layers for each mask type, enabling classification of prediction quality during training.
- The method performs overlap analysis between predicted masks and ground truth to determine mask quality and guide training without requiring bounding boxes or region proposals.
- The framework is trained end-to-end on both benchmark datasets (MS COCO, Pascal VOC) and a custom beef cattle CCTV dataset, with minimal additional parameters (~187,000).
- The approach is generalizable to any image-vs-background problem where score maps are produced by a backbone network.
Experimental results
Research questions
- RQ1Can a lightweight, RPN-free instance segmentation framework outperform state-of-the-art models like Mask R-CNN on a real-world, challenging cattle monitoring dataset?
- RQ2How effective is the proposed overlap-based mask refinement mechanism in improving instance segmentation accuracy without bounding box predictions?
- RQ3To what extent can a shallow FCN8s backbone with the MaskSplitter head generalize to domain-shifted data like farm CCTV footage?
- RQ4Does the use of a multi-type mask prediction head (good, bad1, bad2) improve segmentation performance compared to standard mask prediction heads?
- RQ5Can the framework be effectively fine-tuned on limited, domain-specific data without requiring extensive data augmentation or model ensembling?
Key findings
- On the custom beef cattle CCTV dataset, the FCN8s + MaskSplitter framework achieved a mean average precision (mAP) that was 8.1 percentage points higher than the best-performing Mask R-CNN model, demonstrating superior generalization.
- The method outperformed both full and head-only fine-tuned Mask R-CNN on the same dataset, with mAP exceeding the best Mask R-CNN result by over 8%.
- On the MS COCO 2017 dataset, the framework achieved competitive results despite using a shallower backbone (FCN8s) compared to ResNet-101 used in Mask R-CNN, indicating strong feature learning efficiency.
- The framework achieved an AP@0.5 IoU of 67.8% on the cattle dataset, significantly outperforming the best Mask R-CNN result (65.2%) under the same training conditions.
- The ablation study confirmed that the addition of the MaskSplitter head with overlap-based loss significantly improved performance, validating its design choice over standard FCN8s.
- The model achieved high performance without data augmentation techniques like flipping or rotation, indicating robustness to domain shift.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.