Author
Listed:
- Farah Kareem,Syed Umaid Ahmed,Muhammad Farrukh Shahid,M. Hassan Tanveer
(Department of AI and Data Science, FAST National University of Computer and Emerging Sciences (FAST-NUCES), Karachi, Pakistan. Department of Robotics and Mechatronics Engineering, Kennesaw State University, Marietta, GA, USA)
Abstract
The classification of cattle from frontal face images is an important step toward automated livestock management, disease tracking, and optimization of farm productivity. In this study, we compare the performance of three deep learning architectures, Vision Transformer (ViT), Swin Transformer, and ResNet18, for large-scale, multiclass cattle classification. The proposed system is trained and evaluated on a cow dataset from Karachi, Pakistan, which includes approximately 459 distinct classes, making it one of the largest publicly available cow image datasets. All the models were trained and tested in similar experimental conditions, which ensures a fair comparison. The highest classification accuracy was achieved by the Vision Transformer with 96.27%, compared to 95.86% and 94.48% in both ResNet18 and Swin Transformer, respectively. In addition, the ViT model attained a macro precision of 0.94, recall of 0.95, and F1-score of 0.94, while ResNet18 achieved 0.94, 0.95, and 0.94, and Swin Transformer achieved 0.92, 0.93, and 0.92, respectively. The training process converged within 100 epochs, with final training and validation losses of 0.0176 and 0.2420 for ViT, 0.0228 and 0.2172 for ResNet18, and 0.0527 and 0.3159 for Swin Transformer, indicating stable learning behavior across models. The obtained results indicate that transformer-based architectures effectively capture fine-grained facial features in cattle compared to traditional CNNs. In addition, the Top-5 accuracies of all models were more than 99%, which highlights the appropriateness of all models to large-scale, multiclass cattle identification. Hence, the proposed work illustrates that these models can improve classification accuracy, which will aid in accurate livestock tracking, traceability, and help to identify diseases in their early stages, which will eventually increase productivity and the development of sustainable agriculture. The current research also fits in with the United Nations Sustainable Development Goals, SDG 2 (Zero Hunger) and SDG 12 (Responsible Consumption and Production), as it contributes to effective livestock management and sustainable agricultural practices.
Suggested Citation
Farah Kareem,Syed Umaid Ahmed,Muhammad Farrukh Shahid,M. Hassan Tanveer, 2026.
"A Deep Learning Approach for Cattle Classification to Enhance Livestock Monitoring,"
International Journal of Innovations in Science & Technology, 50sea, vol. 8(3), pages 562-573, May.
Handle:
RePEc:abq:ijist1:v:8:y:2026:i:3:p:562-573
Download full text from publisher
Corrections
All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:abq:ijist1:v:8:y:2026:i:3:p:562-573. See general information about how to correct material in RePEc.
If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.
We have no bibliographic references for this item. You can help adding them by using this form .
If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.
For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: Iqra Nazeer (email available below). General contact details of provider: .
Please note that corrections may take a couple of weeks to filter through
the various RePEc services.