Simple SummaryCurrently, more and more people keep dogs, and the gastrointestinal diseases of pet dogs have brought great losses to families. However, the condition of the dog’s feces is closely related to the health of its stomach and intestines. We can know the intestinal condition of dogs in advance by scoring dog feces, and implement measures such as food adjustments. The PURINA FECAL SCORING CHART and the WALTHAM™ Faeces Scoring System are good at scoring dog feces visually, but some scoring experience is required. Therefore, this paper proposes an artificial intelligence method to automatically classify the condition of dog feces by combining their classification criteria with the assistance of animal experts. This method can achieve an accuracy of 88.27%, improving the diagnostic efficiency of veterinarians.AbstractIn 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 anF1value 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.