Classification of Dog and Cat Images using the CNN Method

Teguh Adriyanto(1); risky aswi ramadhani(2*); Risa Helilintar(3); Aidina Ristyawan(4);

(1) Universitas Nusantara PGRI Kediri
(2) Universitas Nusantara PGRI Kediri
(3) Universitas Nusantara PGRI Kediri
(4) Universitas Nusantara PGRI Kediri
(*) Corresponding Author



Blind people can be defined as those people who are unable to see objects or pictures around them with their eyes. This inability becomes an issue for them when dealing with objects or images in front of them. These problems lead to the novelty of this study that is to recognize objects or images around blind people with the CNN algorithm. Dogs and cats were used as objects in this study. These object recognitions used Deep Learning, a relatively new science in the field of machine learning. Deep learning works like the human brain's ability to recognize an object. In this study, the objects that were used were pictures of a dog and a cat. This study used 3 types of data, namely training, validation, and testing data. The data training consisted of dog data with a total of 1000 images and cat data with a total of 1000 images. Data validation consisted of 500 dog data  and 500 cat data. The CCN architecture employed 3 convolution layers. The layer was convolution 1 using 16 filters of kernel size 3x3, the second convolution using 32 filters of  kernel size 3x3 and the third using 64 filters of kernel size 3x3. While the data testing consisted of 51dog data and 27 cat data. The method used to analyze the image was CNN. The input was an image with a size of 150x150 pixels with 3 channels, namely R, G, and B. This classification went through a performance test with the Confusion Matrix and it obtained 45% precision, 45% recall and 45% f1-score. From these results it can be concluded that the accuracy values should be improved.


Cat; CNN; Classification; Dog; Image.


Full Text:


Article Metrics

Abstract view: 63 times
PDF view: 9 times

Digital Object Identifier




D. Rocha, V. Carvalho, E. Oliveira, J. Goncalves, and F. Azevedo, “MyEyes-automatic combination system of clothing parts to blind people: First insights,” 2017 IEEE 5th Int. Conf. Serious Games Appl. Heal. SeGAH 2017, Jun. 2017, doi: 10.1109/SEGAH.2017.7939298.

K. B. Lee and H. S. Shin , “On certain integrals of Lipschitz-Hankel type involving products of Bessel functions,” International Conference on Deep Learning and Machine Learning in Emerging Applications. Turkey, 2019.

W.L Hakim, F. Rezaiz , A.S. Nur and M. Panahi, “Convolutional neural network (CNN) with metaheuristic optimization algorithms for landslide susceptibility mapping in Icheon, South Korea,” Journal of Environmental Management., vol. 3045, Marc 2022.

M.R. Asegaf and A.T. Wibowo, Klasifikasi Spesies Tanaman Monstera Berdasarkan Citra Daun Menggunakan Metode Convolutional Neural Network (Cnn), . E-Proceeding of Engineering vol. 8, 2021, pp. 4195–4215.

T. Bariyah, M.A. Rayidi and N. Ngatini,” Convolutional Neural Network untuk Metode Klasifikasi Multi-Label pada Motif Batik”,, vol. 20, 2021, pp. 155–165

E.N. Arrofiqoh, and Harintaka, “Implementasi Metode Convolutional Neural Network Untuk Klasifikasi Tanaman Pada Citra Resolusi Tinggi”, Geomatika, Vol.24, 2018.

Z.F. Abror “Klasifikasi Citra Kebakaran Dan Non Kebakaran Menggunakan Convolutional Neural Network”, Jurnal Ilmiah Teknologi Dan Rekayasa, Vol.24, 2018.

H.N. Falah and K.K Purnamasari,” Implementasi Convolutional Neural Network Pada Pengenalan Tulisan Tangan”, 2019.

K. Jhang and J. Cho,” CNN Training for Face Photo based Gender and Age Group Prediction with Camera”, International Conference on Artificial Intelligence in Information and Communication, Japan,2019.

M. Martin, B. Sciolla, M. Sdika, P Quetin and P. Delachartre,” Segmentation of neonates cerebral ventricles with 2D CNN in 3D US data: suitable training-set size and data augmentation strategies”, 2019.

R.A. Ramadhani, I.K.G.D. Putra, M. Sudarma, and I.A.D. Giriantari “A new technology on translating Indonesian spoken language into Indonesian sign language system”, IJECE, Vol.11, No.4, 2021.

M. T. Pavlova, "A Comparison of the Accuracies of a Convolution Neural Network Built on Different Types of Convolution Layers," 2021 56th International Scientific Conference on Information, Communication and Energy Systems and Technologies (ICEST), 2021, pp. 81-84, doi: 10.1109/ICEST52640.2021.9483569.

M. Mody, M. Mathew, S. Jagannathan, A. Redfern, J. Jones and T. Lorenzen, "CNN inference: VLSI architecture for convolution layer for 1.2 TOPS," 2017 30th IEEE International System-on-Chip Conference (SOCC), 2017, pp. 158-162, doi: 10.1109/SOCC.2017.8226028.

P. Thanapol, K. Lavangnananda, P. Bouvry, F. Pinel and F. Leprévost, "Reducing Overfitting and Improving Generalization in training Convolutional Neural Network (CNN) under limited sample sizes in image recognition," 2020 - 5th International Conference on Information Technology (InCIT), 2020, pp. 300-305, doi: 10.1109/InCIT50588.2020.9310787.

A. Gavrilov, A. Jordache, M. Vasdani and J. Deng, "Convolutional Neural Networks: estimating relations in the ising model on overfitting," 2018 IEEE 17th International Conference on Cognitive Informatics & Cognitive Computing (ICCI*CC), 2018, pp. 154-158, doi: 10.1109/ICCI-CC.2018.8482067.


  • There are currently no refbacks.

Copyright (c) 2022 risky aswi ramadhani, Teguh Adriyanto, Risa Helilintar, Aidina Ristyawan

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.