A NASNetMobile-Based Deep Learning Framework for Cat and Dog Recognition
Main Article Content
Abstract
Animal recognition has emerged as a non-invasive approach that is increasingly adopted in various applications, including smart farming and image-based animal identification. This study proposes a Convolutional Neural Network (CNN)-based animal recognition system for classifying two companion animal species, namely cats and dogs. The experiments were conducted using the Kashtanka Pets (Animal Recognition) dataset, which consists of 400 images, including 200 cat images and 200 dog images. Prior to model training, the dataset underwent several preprocessing steps, including image resizing, pixel value normalization, contrast enhancement, and image augmentation to improve data diversity and reduce the risk of overfitting. The proposed model employs a transfer learning approach using the NASNetMobile architecture as the feature extractor, followed by a customized classification head for binary classification. The network was trained using the Adam optimizer with the categorical cross-entropy loss function and evaluated using accuracy, confusion matrix, precision, recall, and F1-score. Experimental results demonstrate that the proposed model achieved an overall test accuracy of 70%, while maintaining relatively balanced precision, recall, and F1-score across both classes. The confusion matrix analysis further indicates that misclassification errors were distributed relatively evenly between the cat and dog classes.The findings suggest that the transfer learning-based CNN is capable of effectively extracting discriminative visual features for animal recognition, although there remains considerable room for improving classification performance. Therefore, the proposed approach provides a promising foundation for the development of more robust image-based multi-species animal recognition systems.
Downloads
Article Details
Section

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
How to Cite
References
[1]. H. K. Kuehl and T. Burghardt, “Animal biometrics: Quantifying and detecting phenotypic appearance,” Trends in Ecology & Evolution, vol. 28, no. 7, pp. 432–441, 2013. DOI: 10.1016/j.tree.2013.02.013.
[2]. S. Kumar and S. K. Singh, “Visual animal biometrics: Survey,” IET Biometrics, vol. 6, no. 3, pp. 139–156, 2017. DOI: 10.1049/iet-bmt.2016.0017.
[3]. C. Shorten and T. M. Khoshgoftaar, “A survey on image data augmentation for deep learning,” Journal of Big Data, vol. 6, art. no. 60, 2019. DOI: 10.1186/s40537-019-0197-0.
[4]. R. Chen, R. Little, L. Mihaylova, and R. Delahay, “Wildlife surveillance using deep learning methods,” Ecology and Evolution, vol. 9, no. 17, pp. 9453–9466, 2019. DOI: 10.1002/ece3.5410.
[5]. A. Hitelman, Y. Edan, A. Godo, R. Berenstein, J. Lepar, and I. Halachmi, “Biometric identification of sheep via a machine-vision system,” Computers and Electronics in Agriculture, vol. 194, art. no. 106713, 2022. DOI: 10.1016/j.compag.2022.106713.
[6]. H. Nguyen, S. J. Maclagan, T. D. Nguyen, T. Nguyen, D. S. Phung, and R. C. Stone, “Animal recognition and identification with deep convolutional neural networks for automated wildlife monitoring,” in Proc. IEEE Int. Conf. Data Science and Advanced Analytics (DSAA), 2017. DOI: 10.1109/DSAA.2017.31.
[7]. F. Chollet, Deep Learning with Python, 2nd ed. Shelter Island, NY, USA: Manning Publications, 2021. ISBN: 978-1-61729-686-4.
[8]. Y. LeCun, Y. Bengio, and G. Hinton, “Deep learning,” Nature, vol. 521, no. 7553, pp. 436–444, 2015. DOI: 10.1038/nature14539.
[9]. B. Zoph, V. Vasudevan, J. Shlens, and Q. V. Le, “Learning transferable architectures for scalable image recognition,” in Proc. IEEE/CVF Conf. Computer Vision and Pattern Recognition (CVPR), 2018, pp. 8697–8710. DOI: 10.1109/CVPR.2018.00907.
[10]. C. Szegedy, W. Liu, Y. Jia, P. Sermanet, S. Reed, D. Anguelov, D. Erhan, V. Vanhoucke, and A. Rabinovich, “Going deeper with convolutions,” in Proc. IEEE Conf. Computer Vision and Pattern Recognition (CVPR), 2015, pp. 1–9. DOI: 10.1109/CVPR.2015.7298594.
[11]. D. P. Kingma and J. Ba, “Adam: A method for stochastic optimization,” in Proc. International Conference on Learning Representations (ICLR), 2015. DOI: 10.48550/arXiv.1412.6980.
[12]. J. Kim, J. Ko, and C. Kwon, “Comparison of fine grained classification of pet images using image processing and CNN,” Journal of Broadcast Engineering, vol. 26, no. 2, pp. 175–183, 2021. DOI: 10.5909/JBE.2021.26.2.175.
[13]. E. Okafor, “Deep learning for animal recognition,” Ph.D. dissertation, University of Groningen, Groningen, The Netherlands, 2019. ISBN: 978-94-034-1459-1.
[14]. [14] P. Sykora, P. Kamencay, R. Hlavata, and R. Hudec, “Overview and comparison of deep neural networks for wildlife recognition using infrared images,” AI, vol. 5, no. 4, pp. 2801–2828, 2024. DOI: 10.3390/ai5040135.
[15]. D. Schneider et al., “Recognition of European mammals and birds in camera trap images using deep neural networks,” IET Computer Vision, 2024. DOI: 10.1049/cvi2.12294.