Attention-driven Diagnosis: Enhancing Chicken Disease Prediction from Fecal Imagery

2026

Full text Open access: Gold Metadata (CSL-JSON)
DOI 10.9734/jerr/2026/v28i51884
Data confidence 70 medium
How this score is calculated

It is built from checkable properties of the record itself: whether the article has a DOI, how many independent sources confirmed its data, whether the required fields are filled in, and how recent the latest confirmation is. Disagreement between sources and a missing identifier lower it. A value of 80 or above means the record was published without further checking; 60 to 79 means it is published at reduced confidence, with a manual check advisable. A record verified by an editor by hand is never pushed below 90 by a recalculation. This scores our data about the article, not the article itself.

Abstract

Background: Poultry farming is essential for food security, but traditional disease detection is inefficient, making AI-driven CNN models a powerful solution for accurate and automated diagnosis. Aims: This study aims to develop and evaluate an enhanced deep learning-based framework for the automated classification of poultry diseases using fecal images to address the limitations of traditional manual inspection. Study Design: The research utilizes a comparative experimental design, evaluating two distinct deep learning architectures; ResNet50 and Vision Transformer (ViT) on a multiclass dataset. Methodology: A dataset of 8,067 annotated fecal images representing four classes (Coccidiosis, Healthy, Newcastle Disease, and Salmonella) was partitioned using a stratified 80/20 split. Both models were initialized with pretrained ImageNet weights and subjected to selective fine-tuning (unfreezing the last two layers of ResNet50 and the last two encoder blocks of ViT) alongside data augmentation and 5-fold cross-validation. Results: The Vision Transformer (ViT) outperformed the ResNet50 model, achieving a state-of-the-art accuracy of 96.16% and a macro F1-score of 0.96, compared to 94.49% accuracy and a 0.94 F1-score for ResNet50. Notably, ViT showed superior performance in detecting Newcastle Disease (NCD), increasing recall to 0.91, a 6% improvement over ResNet50. Conclusion: The results demonstrate that while traditional CNNs like ResNet50 provide strong baselines, transformer-based architectures excel at capturing global contextual relationships, making them more robust for accurate real-time poultry disease diagnostics. Our code is available on https://github.com/NedumCares/Chicken-Disease-Prediction.