Animals (May 2023)

A Fine-Grained Image Classification Approach for Dog Feces Using MC-SCMNet under Complex Backgrounds

  • Jinyu Liang,
  • Weiwei Cai,
  • Zhuonong Xu,
  • Guoxiong Zhou,
  • Johnny Li,
  • Zuofu Xiang

DOI
https://doi.org/10.3390/ani13101660
Journal volume & issue
Vol. 13, no. 10
p. 1660

Abstract

Read online

In a natural environment, factors such as weathering and sun exposure will degrade the characteristics of dog feces; disturbances such as decaying wood and dirt are likely to make false detections; the recognition distinctions between different kinds of feces are slight. To address these issues, this paper proposes a fine-grained image classification approach for dog feces using MC-SCMNet under complex backgrounds. First, a multi-scale attention down-sampling module (MADM) is proposed. It carefully retrieves tiny feces feature information. Second, a coordinate location attention mechanism (CLAM) is proposed. It inhibits the entry of disturbance information into the network’s feature layer. Then, an SCM-Block containing MADM and CLAM is proposed. We utilized the block to construct a new backbone network to increase the efficiency of fecal feature fusion in dogs. Throughout the network, we decrease the number of parameters using depthwise separable convolution (DSC). In conclusion, MC-SCMNet outperforms all other models in terms of accuracy. On our self-built DFML dataset, it achieves an average identification accuracy of 88.27% and an F1 value of 88.91%. The results of the experiments demonstrate that it is more appropriate for dog fecal identification and maintains stable results even in complex backgrounds, which may be applied to dog gastrointestinal health checks.

Keywords