Combining Deep Features with Classical Discriminants: High-Accuracy Animal Classification Using ResNet-18 and LDA.

Authors

  • Elif Akarsu Ataturk University
  • Tevhit Karacalı Faculty of Engineering, Department of Electric and Electornics Engineering, Atatürk University, Erzurum, Türkiye

Abstract

In this study, ResNet-18 is used as a pre-training model for classifying images from an 8-class animal dataset. ResNet-18, a deep learning model from the "Residual Networks" architecture, utilizes residual connections to overcome the gradient vanishing problem, making it highly efficient for training deep networks. The final layer of ResNet-18 generates 1000 high-level features that represent key patterns in the images, which are crucial for tasks like transfer learning and feature extraction. The dataset consists of eight animal classes (cat, cow, deer, dog, goat, hen, rabbit, and sheep), and 1000-dimensional features are extracted from each image using ResNet-18. These features are grouped into sets of 30, 40, or 60 to create balanced feature vectors for classification. The features are then processed using Linear Discriminant Analysis (LDA), a technique that reduces dimensionality while maximizing class separability. LDA helps the model differentiate between the animal classes effectively. The model's performance is assessed using a confusion matrix, revealing an accuracy rate of 95.6%. Most misclassifications occur between visually similar classes, such as "rabbit" and "cat," while distinct classes like "cow" and "hen" are well separated. Additionally, t-SNE is used to visualize the feature distribution in a lower-dimensional space, showing clear clustering and minimal class overlap, which indicates that the model has learned to extract discriminative features for each class. In conclusion, the study demonstrates the effectiveness of combining ResNet-18 for feature extraction with LDA for classification. The t-SNE plot and confusion matrix confirm that the model successfully differentiates between classes, highlighting the quality of the learned features and the model's high classification performance.

Downloads

Published

2025-12-17

How to Cite

Combining Deep Features with Classical Discriminants: High-Accuracy Animal Classification Using ResNet-18 and LDA. (2025). International Journal of Innovative Research and Reviews, 9(2), 67-72. https://www.injirr.com/article/view/253