1. Introduction
Dogs are one of the first domesticated animals in the world and are widely bred for their docile temperament. Living with a pet dog can relieve stress [
1] and even provide medical psychological support [
2]. Therefore, people pay more and more attention to the health and physical condition of dogs [
3,
4]. In the breeding process, if the dog is sick and not treated in time, the breeder will suffer both economic and spiritual losses [
5]. Therefore, it is very important to discover the dog’s condition in time and take treatment measures in advance. Due to the complex and changeable breeding environment or the different physical levels of dogs, dogs are often affected by parasitic infections [
6], gastrointestinal biota disorders (dysbiosis) [
7], stress disorders [
8], etc., often accompanied by various gastrointestinal diseases [
9], such as irritable bowel syndrome [
10], chronic enteropathy [
11], chronic diarrhea [
12], etc. Observing the shape and consistency of their feces can reveal the characteristics of gut microbes [
13], which can help breeders and veterinarians judge the dog’s intestinal status [
14], and provide feedback on the abnormal health of the dog’s gastrointestinal tract.
At present, the analysis methods of feces include: experimental analysis, manual detection, machine learning, and deep learning. Experimental analysis can comprehensively detect the microorganisms and chemical components in feces [
15], but it can only rely on professional equipment and medical laboratories [
16], and the detection cost is high. The vast majority of methods are manual inspection, which is usually visually judged by a veterinarian on the shape, size, quality, and color of a fecal sample [
17]. Based on this information, veterinarians can give early warning of potential crises in dogs’ intestinal health and provide dogs with targeted food menus [
18]. The PURINA FECAL SCORING CHART [
19] and the WALTHAM™ Faeces Scoring System [
20] are the most common stool scoring manuals. Stool score can reflect intestinal health [
21]. According to them, novices can also classify dog feces, but certain experience in judging is also required, because the manual only provides individual pictures for reference [
22]. However, manual stool analysis still requires a significant amount of time, even when scored according to the manual. Analyzing feces day in and day out is embarrassing, unsanitary, labor-intensive, and difficult for the owner to maintain [
23,
24]. In addition, because of the inconsistency of classification standards, human subjective judgment will also affect the accuracy of classification [
22]. With the development of computer technology, many researchers have introduced machine learning methods into the field of healthcare [
25]. This makes it possible to automatically classify images of dog feces. Humans automatically classify input feces images by manually designing features. This approach greatly speeds up the scoring of stools. However, handcrafted features are complex and have limited detection accuracy. The deep learning that emerged later, its end-to-end network structure simplifies manual feature design and further improves the accuracy and speed of classification. This paper will provide a reference for the automatic classification task of dog feces by image classification technology based on deep learning. The method in this paper can provide a priori screening before a comprehensive diagnosis by a veterinarian, and achieve an initial early warning of gastrointestinal diseases in dogs [
26]. In the absence of a veterinarian, or for an owner without a medical background, the method in this paper can also be used to evaluate the dog’s feces and make targeted food adjustments [
27].
The present FGVC (Fine-Grained Visual Categorization) of dog feces (
Figure 1) has three problems that need to be addressed: (1) Natural environment can cause qualitative changes in feces. Dog feces are usually seen in outdoor areas. Freshly ejected feces have distinct characteristics; however, when exposed to natural settings such as wind drying, sunshine, and rain, the available information for identification is loss. This makes it difficult to gather enough information for standard network down-sampling operations [
28,
29]. (2) Misidentification of things as dog excrement. The environment in which feces are located is complex and diverse. In terms of morphological trait (shape, color, etc.), dead leaves, dirt, and broken limbs are similar to dog excrement. These items can be particularly disruptive to the categorization process when they exist simultaneously [
30]. (3) Less interclass variation in dog feces. When a dog is moderately unwell, its feces are comparable to healthy ones. Only a very experienced veterinarian can correctly anticipate a dog’s illness at this time [
31]. This can make checking a dog’s health condition considerably more costly.
To address the issue that the features of degraded dog feces are hard to retain via down-sampling, we propose a MADM method that combines the advantages of convolution and pooling operations. The method parallelizes multiple convolution and maximum pooling while concatenating an attention mechanism. Such a connected structure collects global features and enhances the scale variety of local features. As a result, the down-sampled feces information is fully represented, and critical information is highlighted. Despite being transformed by harsh natural environments such as air-drying, MADM can keep its fine traits to the best of its ability.
To solve the issue of false identification of dog feces, we propose a novel attention mechanism CLAM based on the properties of dog feces that filters background interference and improves the network model’s awareness to fecal properties. We propose a novel attention mechanism CLAM based on the properties of dog feces that filters background interference and overcomes the problem of false identification of dog feces. Because feces are separated from the ground at different heights, their spatial distribution differs. Moreover, CLAM has a cross structure that can swiftly perceive spatial information and provides auxiliary network features. Based on CA’s location weight assignment strategy [
32], CLAM concentrates spatial attention by embedding global and local information into feature channels along horizontal and vertical directions, respectively. This helps the network to focus on the given objects while minimizing the interference of other redundant inputs.
To overcome the inter-class similarity problem of dog feces, we propose a brand new SCM Block. Specifically, we combine the previous CLAM and MADM to construct a new feature extraction unit, recreate the ResNeSt backbone network, and compose SCMNet. Such a design is end-to-end without additional computational overhead for complex backgrounds in images. SCMNet improves the network’s ability to express stool information by aggregating CLAM attention weights and MADM multi-scale features. It boosts the accuracy of ResNeSt’s adaptation to dog feces.
The research contributions of this paper can be summarized as follows:
For the first time, we collected a dataset of 1623 images of dog feces (DFML). According to the suggestion of Zuofu Xiang [
33,
34], a member of the Institute of Evolutionary Ecology and Conservation Biology, Central South University of Forestry and Technology, the dataset divides dog feces into four categories: diarrhea, lack of water, normal, and soft stool, providing a reference for the gastrointestinal diagnosis of dogs.
In order to address the challenges of dog feces image identification, we suggest the MC-SCMNet network, which is designed as follows:
We design a multi-scale attention down-sampling module (MADM) to address the problem of losing critical characteristics owing to the degradation of dog feces. It enables the network to keep fecal texture details to the maximum extent possible while also fighting the impacts of fecal feature degradation.
We design a coordinate location attention mechanism (CLAM) to minimize the interference of similar items on dog feces identification. Its unique cross structure is able to filter noisy signals while highlighting fecal feature values in the attention map.
We design a SCM-Block to establish a new backbone network SCMNet to address the problem of classification mistakes caused by slight variations across dog feces categories. This block combines CLAM’s spatial attention information and MADM’s multi-scale features, improving the fusion efficiency of dog feces characteristics.
We employ depthwise separable convolution (DSC) to compensate for the increase in parameter number and minimize network training time and hardware costs while improving MC-SCMNet flexibility.
This approach achieved an average recognition accuracy of 88.27% and an score of 88.91% on DFML data. In comparison to other approaches, MC-SCMNet showed the best accuracy and pertinence in the categorization of dog feces in natural contexts. This serves as a prototype for the application of deep learning technology to the categorization of dog feces, helping farmers to swiftly check the intestinal health of their dogs.
2. Related Works
The problem of classifying dog feces is a typical fine-grained visual classification (FGVC) problem [
35]. FGVC focuses on samples of the same or closely related subordinate categories and is more specific than standard image classification hierarchies. For example, classifying different vehicle models [
36], dog breeds [
37], fruit types [
38], citrus surface defects [
39], etc. Fine-grained image classification has undergone long-term development, transitioning from machine learning methods to deep learning.
In recent years, researchers have applied complex machine learning [
40,
41,
42,
43,
44,
45,
46,
47,
48,
49] to the field of fine-grained image classification, which provides a reference for our research. In terms of agriculture, Chen et al. [
28] used a tomato leaf disease recognition method based on the combination of ABCKBWTR and B-ARNet, and achieved a recognition accuracy of about 89%. Li et al. [
50] proposed a FWDGAN method combining the deep features of ResNet and the global features of InceptionV1. This method achieved high recognition accuracy in tomato disease recognition. Deng et al. [
51] integrated DenseNet-121, SE-ResNet-50, and ResNeSt-50 to diagnose six types of rice diseases, with an average accuracy of 91%. In the related field of stool, Saboo et al. [
52] used machine learning (ML) analysis to find that the fecal microbiota was strongly correlated with the severity of liver cirrhosis. Ludwig et al. [
53] used machine learning to classify infant feces, achieving 77.0% of manual detection. Hwang et al. [
54] used a support vector machine (SVM) classifier to classify feces in colonoscopy videos based on color features, and the performance average accuracy of Sensitivity and Specificity reached 88.89 and 91.35, respectively. Liao et al. [
55] developed a stool diagnostic system, which can achieve 100% and 99.2% recognition accuracy in color and features of stool images. Zhou et al. [
56] proposed a hierarchical convolutional neural network architecture to train stool shapes. Their method also incorporated machine learning, and finally achieved 84.4% accuracy and 84.2% latency reduction on human stool classification. Leng et al. [
57] achieved a classification accuracy of 98.4% on a self-built dataset of five stool classifications through a lightweight shallow CNN. Choy et al. [
58] used ResNext-50 to classify human feces for monitoring and diagnosis of human diseases, achieving an accuracy of 94.35%.
However, the previous investigations are primarily focused on a single background interference, and the classification subject is merely human excrement, which is not extensible. Furthermore, applying solely deep learning components does not explore the relationship between stool features and network structure, and it is incapable of coping with more complex background interference. Therefore, this paper extends the target to dog feces, and selects ResNeSt as the benchmark network to broaden the application range of FGVC.
4. Results and Analysis
This section is divided into ten subsections: (1) Experimental environment and preparation; (2) Evaluation indicators; (3) Hyperparameter selection; (4) Data validation methods and tests; (5) Ablation experiment; (6) Analysis of performance experiments; (7) Comparison with other state-of-the-art methods; (8) Statistical test; (9) Model visualization; and (10) Workflow for a practical application. We tested and compared the models in many aspects. The results show that MC-SCMNet handles the problems of qualitative changes in dog feces in the natural environment, misdetection of objects similar to it, and tiny variability between classes.
4.1. Experimental Environment and Preparation
To prevent different experimental conditions from influencing MC-SCMNet results, all experiments in this paper are done in the same hardware and software environment. The main hardware devices used in this experiment are NVIDIA GeForce RTX 3070 Ti and 12th Gen Intel(R) Core (TM) i9-12900H 2.50 GHz CPU (Legion Y9000P|AH7H). The main software devices need to be compatible with the specific hardware.
Table 3 depicts the particular experimental environment of this work. Considering the hardware performance and training effect, this paper sets the experimental batch to 130, employs the Adam optimizer, the learning rate is 0.0001, and the batch size is set to 8.
4.2. Evaluation Indicators
In this paper, we evaluate the performance of the model by accuracy, precision, recall,
, parameter size, and training time.
where
is true positive: prediction is positive, actuality is also positive;
is false positive: predicted positive, actual negative;
is true negative: predicted negative, actually negative;
is false negative: predicted negative, actual positive. The inter-class average of model accuracy and recall is calculated using the weighted-average strategy [
61]. The parameter is used to measure the model size and operating cost. Training time indicates the model’s training speed.
4.3. Hyperparameter Selection
In
Section 3.3.3, we mentioned the different effects of hyperparameters on the model. In order to explore the optimal performance combination, we test the impacts of various radix and cardinal models, and the experimental results are listed in
Table 4.
According to the experimental results, the network performs best when radix = 2 and cardinal = 1. Therefore, the combination of radix = 2 and cardinal = 1 was used for all subsequent experiments in this paper.
4.4. Data Validation Methods and Tests
We put the data-augmented images, a total of 3246 dog fecal photos in four categories, into the model training while keeping the other experimental settings constant. The picture size has been standardized at 224 × 224. The 5-fold cross-validation approach is utilized for training in this paper. First, the images are split into five equal pieces at random. Then, five repeat trials were set up to train four pieces in sequence, leaving one to test the model. The model’s ultimate performance is measured using the average of five experimental outcomes. This strategy efficiently avoids the contingency of model training while improving experiment accuracy and dependability.
We utilize this strategy to train ResNet50, ResNeSt50, and MC-SCMNet, as shown in
Figure 4, and their average accuracy is 80.22%, 83.70%, and 88.24%, respectively. MC-SCMNet’s accuracy is much higher than that of the original models ResNet50 and ResNeSt50. To further validate the performance of our model, we retrained ResNet50, ResNeSt50, and MC-SCMNet using the images before data augmentation; the resulting accuracy was 71.30%, 74.69%, and 77.30%, respectively. Experiments demonstrate that our model outperforms ResNet50 (+5.86%, +8.02%) and ResNeSt50 (+2.47%, +4.54%) on both the original and augmented datasets. Furthermore, as the number of data images increases, so does the improvement in accuracy.
The MC-SCMNet model can achieve an average accuracy of 88.24% after training with five-fold cross-validation. Fold 1’s accuracy is 88.27%, which is the closest to the average accuracy.
Figure 5 depicts the training procedure. The accuracy and loss of the validation set and training set tend to converge as the number of training iterations increases in the figure. MC-SCMNet’s training accuracy reaches 97.11% after 130 epochs.
4.5. Ablation Experiment
We present MADM and CLAM modules, build SCM-Block, and apply DSC to the models in this paper. To test their effectiveness, we chose four metrics to conduct ablation experiments on the model: Block, Attention, Conv, and under-sampling.
Table 5 displays the experimental outcomes.
Table 5 shows a total of 14 experimental schemes. Schemes 1 and 2 are the basic models ResNet50 and the baseline ResNeSt50, respectively. Schemes 8 and 14 are the intermediary models SCMNet and MC-SCMNet, respectively.
When comparing Scheme 4 and Schemes 1–3, it is shown that Split-Attention + CLAM can execute feature extraction better, with a considerably higher accuracy than no attention (+5.55%), Split-Attention (+2.16%), and Split-Attention + CA (+1.54%). When comparing Schemes 5–7 and Schemes 2–4, it is discovered that DSC significantly decreases the amount of network parameters (−8.861 M) while maintaining same identification accuracy. When Schemes 2 and 8 are compared, it is shown that SCM-Block can better filter the interference information in the feature fusion stage of the model, decrease feature information loss, and greatly enhance model accuracy (+3.70%). When comparing Schemes 8 and 9, we discovered that employing MADM allows us to better focus on the model’s tiny information during the down-sampling phase. Schemes 8–14 completely depict the effect of MADM, CLAM, and DSC on SCM-Block on the model. In Scheme 14, MC-SCMNet has an accuracy of 88.27% and greatly surpasses ResNet50 (+8.02%) and ResNeSt50 (+4.63%).
4.6. Analysis of Performance Experiments
4.6.1. Comparison with Other Basic Classification Networks
In terms of average accuracy, we compare MC-SCMNet with SCMNet and some basic networks: AlexNet, VGG, Googlenet, ResNet, and ResneSt. To clearly depict the curve values, we apply the same level of high-dimensional smoothing and fitting to them. After processing, the average accuracy of the MC-SCMNet and SCMNet networks, as well as the AlexNet, VGG, Googlenet, ResNet, and ResneSt networks, are depicted in
Figure 6 by red, blue, orange, purple, green, brown, and black dotted lines. We can clearly observe that the accuracy of the SCMNet network model is substantially greater than that of the ResNeSt model after 130 epochs. This demonstrates that SCM-Block has a considerable effectiveness in properly identifying stool types.
Table 6 displays their accuracies on different types of data. We constructed the MC-SCMNet model, which has the maximum accuracy in diarrhea (93.65%), normal (85.71%), and soft stool (84.71%). However, the model’s accuracy on water-deficient stool (92.06%) is somewhat lower than that of SCMNet (93.65%) and ResNeSt-50 (93.12%). This is because water-deficient and normal stool samples have similar features, and the number is much higher than that of diarrhea and soft stools. ResNeSt and SCMNet’s data extraction stage (deep-stem) pays insufficient attention to location information and down-sampling details. This enables the identification of a large number of normal-type feces with similar characteristics as dry. As a result, the water-deficient type’s accuracy is artificially high, while the normal type’s accuracy is low.
4.6.2. The Model’s Evaluation Parameters and the Confusion Matrix
As indicated in
Table 7, we also compared the MC-SCMNet model under each classification to the initial model ResNet50 and the basic model ResNeSt50.
Figure 7 depicts the confusion matrix of different categories of the MC-SCMNet model and the original models.
The accuracy of ResNet50 ranges from 71% to 88%, with an average accuracy of 80.79%; the recall ranges from 71% to 89%, with an average recall of 81.16%. The model’s value is 80.98%, and its accuracy is 80.25%. The accuracy of ResNeSt50 ranges from 76% to 93%, with an average accuracy of 84.13%; the recall ranges from 76% to 90%, with an average recall of 84.05%. The model’s value is 84.09%, and its accuracy is 83.64%.
MC-SCMNet, on the other hand, maintains a precision rate of 84% to 94%, with an average precision rate of 88.89%; and a recall rate of 85% to 95%, with an average recall rate of 88.93%. The model’s value is 88.91%, and its accuracy rate is 88.27%. The testing results show that MC-SCMNet can distinguish the feces features of each category accurately and increases the lower bound of accuracy and recall. The metrics shown above are much higher than ResNet50 and ResNeSt50. It thoroughly demonstrates that MC-SCMNet is effective.
4.7. Comparison with Other State-of-the-Art Methods
In order to better assess MC-SCMNet’s classification ability in dog feces. It is compared to ResNeXt50 [
48], B-ARNet [
28], DMS-Robust Alexnet [
62], Swin-transformer [
63], and CA-MSNet [
64].
Table 8 shows that the recognition accuracy of MC-SCMNet in each category is higher than that of other state-of-the-art methods. The network’s SCM-Block combines CLAM for spatial information and MADM for small information utilizing the Split-Attention approach. This raises the computational cost while also improving network performance, resulting in a long training time (3 h 31 min 38 s). As a result, in the future, we will employ more lightweight strategies to improve the network’s categorization performance and training speed.
4.8. Statistical Test
In order to rule out the randomness and chance of our experimental data, we use SPSS to conduct One-way ANOVA of variance on the experimental data in
Table 6 and
Table 8 [
65], the experimental results are shown in
Table 9. We first made a null hypothesis (
) that all performance indicators were equal and any small gains or losses observed were not statistically significant, and made a valid hypothesis (
) that the observed gains or losses are statistically significant. Finally, set
. The results show:
so reject
. Therefore, we believe that there are significant differences between these groups, and that MC-SCMNet is superior to the current common mainstream methods, and is pertinent to feces.
4.9. Model Visualization
In order to more intuitively observe the concentration of the MC-SCMNet model, we produced a heat map using the Gradient-based Classification Activation (Grad-CAM) method and assessed the model in conjunction with the original image.
Figure 8 shows the extracted feature layers of the MC-SCMNet model, the original model ResNet50, and the basic model ResNeSt50 for comparison.
We can observe in the MC-SCMNet model that after layer 1 training, the network’s attention is somewhat divergent, focused on detailed information. Following layer 2 training, the network pays more attention to the features of the darker portions while also paying attention to the model’s details. The network begins to focus on the edge boundaries of objects in the picture after layer 3 training. Following layer 4 training, the network completes picture feature extraction and concentrates all attention on the dog feces region. After layer 1 training, the attention of the ResNet50 and ResNeSt50 models is concentrated on a narrow local area, and the entire attention to the image is lost. After layer 2 training, ResNet50 concentrates on observing weeds and water stains; the ResNeSt50 model’s attention begins to diverge, focusing more on water stains and excrement. Following layer 3 and layer 4 training, the two models concentrate on detecting ground water spots.
ResNet50 and ResNeSt50 highlight erroneous interference information based on the findings stated above. During the model training process, MC-SCMNet pays close attention to the characteristics of location information and down-sampling details, which filters out the influence of similar items and highlights the properties of feces. As a result, MC-SCMNet is more adapted to dog feces identification than ResNeSt50 and ResNet50.
To examine the reliability of MC-SCMNet in dog feces categorization further, we visually compared it to AlexNet, VGG-16, GoogleNet, ResNet-50, ResNeXt-50, and ResNeSt-50 models.
Figure 9 depicts the experimental outcomes. We discovered, via observation, that the distractors in the image contributed to the incorrect attention of other categorization algorithms to some extent. MC-SCMNet, on the other hand, may totally suppress the expression of background information and specifically focus on the feces section, boosting feces classification accuracy.
4.10. Workflow for a Practical Application
We demonstrated the actual workflow of MC-SCMNet as shown in
Figure 10. In the actual use of pet dog owners and veterinarians, they can take images of dog feces in any environment through cameras or mobile phones, upload them to the cloud, and pass them to the trained MC-SCMNet model for classification. After being processed by this method, they can observe the stool sorting results on computer monitors or mobile phones. The results can help veterinarians diagnose the dog’s intestinal health status, and can also preliminarily judge the dog’s gastrointestinal health status for the owner to improve the dog’s diet in a targeted manner.
5. Discussion
In this work, we propose a fine-grained image classification approach for dog feces using MC-SCMNet under complex backgrounds and confirm the effectiveness of MC-SCMNet. In this section, we discuss the use and application value of MC-SCMNet in many aspects and explore how to improve the application of MC-SCMNet in dog feces classification work based on MC-SCMNet and the DFML dataset.
In the process of raising dogs, dogs are easily affected by parasitic infections [
6], gastrointestinal biota disorder [
7], stress disorders [
8], etc., and produce abnormal feces such as diarrhea [
12] or hard stool [
66]. Different from the manual method of classifying feces by the PURINA FECAL SCORING CHART [
19] and the WALTHAM™ Faeces Scoring System [
20], novices who cannot distinguish feces can also accurately classify dog feces through MC-SCMNet. In actual use, owners or veterinarians only need to take pictures of dog feces and upload them, and MC-SCMNet can automatically obtain the classification results end-to-end, and provide early warning of the dog’s intestinal health [
26]. In the future, we should aim to deploy this approach to edge devices [
67] for veterinarians and pet owners.
The results of this study show that the MC-SCMNet model outperforms other classification models in terms of overall classification accuracy under the same experimental setting. Moreover, because we use DSC instead of standard convolution, the total training time of MC-SCMNet is only increased by 16 min and 36 s compared with the original model ResNeSt50 [
49]. Although MC-SCMNet has achieved a good balance in time and accuracy compared with ResNeSt, there is still a lot of room for improvement in the time of 3 h 31 min 38 s. Therefore, we will work on developing more lightweight strategies in the future to continuously improve the operational efficiency of the network.
In the performance experiments in
Table 6, MC-SCMNet’s accuracy on water-deficient stool (92.06%) is somewhat lower than that of SCMNet (93.65%) and ResNeSt-50 (93.12%). However, it has the maximum accuracy in diarrhea (93.65%), normal (85.71%), and soft stool (84.71%). This shows that MC-SCMNet has no obvious bias in the process of recognizing feces, and has stable classification performance. However, the lack of recognition accuracy also reflects the insufficient amount of data contained in our DFML dataset and the lack of coverage of data categories. To alleviate this situation, we will expand more categories in the future to improve the generalization ability of the model. Since the dataset only contains a small number of samples, this paper uses data augmentation to alleviate the overfitting problem of the network and improve the accuracy of the model, but the improvement effect is limited, not as good as the actual image. Therefore, we plan to extend the DFML dataset in the future to improve model performance.
MC-SCMNet has a good and accurate classification effect on dog feces. However, in practical applications, the results of dog feces classification cannot accurately correspond to certain gastrointestinal diseases. When the dog’s feces have been diagnosed as abnormal by MC-SCMNet for a long time, the owner needs to contact the veterinarian for further diagnosis [
26,
31]. Therefore, in future work, we should record some characteristics of dogs while taking pictures of dog feces in time, and conduct a certain degree of biochemical analysis on the health of dogs’ gastrointestinal tract without affecting the health of dogs [
31]. In this way, the direct correlation between the dog feces and the dog’s gastrointestinal health can be established, and the adequacy and reliability of the work can be improved.
6. Conclusions
The dog feces classification model proposed in this paper significantly improves the performance of fine-grained dog feces classification in complex backgrounds. In the absence of a dataset, we built our own DFML dataset for the first time, and proposed MC-SCMNet based on ResNeSt. First, we propose a multi-scale attention down-sampling module, MADM. It expands the information scale and has learnable parameters while focusing on the salient features of feces. This further improves the model’s fecal feature extraction performance. Then, we propose CLAM. It filters the background information interference in the image through bidirectional weight encoding, making the network focus on the target hotspot. Finally, in the feature fusion stage, we combined the characteristics of the above two sub-modules to form the SCM-Block. We use this Block to build a new backbone network SCMNet, which improves the fusion efficiency of the model for dog feces features. Considering the computational cost and training time, we use DSC to reduce the amount of network parameters while maintaining the performance of the model. The experimental results show that MC-SCMNet solves the problems of information loss and false classification in dog feces recognition. Compared to other standard classification models, it achieves the highest accuracy (88.27%) and is more targeted in the fine-grained classification of dog feces.
In summary, the work in this paper could monitor the health of dogs. The method can provide an initial screening of fecal status to aid veterinary diagnosis when a dog’s feces are abnormal. This can improve the efficiency of the veterinary work while providing an initial warning to the pet dog owner.