Robust and explainable poultry disease classification via MaxViT with attention-guided visualization

Poultry farming plays a crucial role in global food security, yet it faces significant challenges from infectious diseases such as Coccidiosis, Salmonella, and Newcastle disease, which can lead to substantial economic losses. Existing deep learning models often encounter issues like class imbalance, poor generalization across different datasets, and a lack of interpretability. To address these limitations, we propose a novel hybrid deep learning framework based on the MaxViT architecture. This framework combines MBConv blocks with both block-wise and grid-based self-attention mechanisms, allowing it to effectively capture local and global features in complex fecal images. In our study, we utilized two publicly available poultry fecal image datasets, consisting of 8,067 and 6,812 images, respectively. Each dataset includes four classes: Coccidiosis, Salmonella, Newcastle disease, and Healthy. To tackle the severe class imbalance, we applied data augmentation techniques. We evaluated the models using various metrics, including accuracy, F1-score, specificity, PR AUC, and MCC, under 10-fold cross-validation. Our proposed MaxViT model achieved impressive accuracy scores of 99.54% and 98.96% on the two datasets, outperforming ViT-B/16, ViT-L/32, DeiT-S, and T2T-ViT-14 across all metrics. Additionally, we integrated Grad-CAM to provide visual explanations of the model's decisions, thereby enhancing transparency and applicability in veterinary settings. This study introduces a deployable, interpretable, and highly accurate framework for intelligent poultry disease diagnosis, effectively addressing critical limitations found in previous research.

Institutions

Publication Details

Journal
Zenodo (CERN European Organization for Nuclear Research)
Published
2025-04-30
DOI
https://doi.org/10.5281/zenodo.17156813
Primary Topic
Geochemistry and Geologic Mapping
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Robust and explainable poultry disease classification via MaxViT with attention-guided visualization

Zenodo (CERN European Organization for Nuclear Research)
Geochemistry and Geologic Mapping
article

Robust and explainable poultry disease classification via MaxViT with attention-guided visualization

article en

Abstract

Poultry farming plays a crucial role in global food security, yet it faces significant challenges from infectious diseases such as Coccidiosis, Salmonella, and Newcastle disease, which can lead to substantial economic losses. Existing deep learning models often encounter issues like class imbalance, poor generalization across different datasets, and a lack of interpretability. To address these limitations, we propose a novel hybrid deep learning framework based on the MaxViT architecture. This framework combines MBConv blocks with both block-wise and grid-based self-attention mechanisms, allowing it to effectively capture local and global features in complex fecal images. In our study, we utilized two publicly available poultry fecal image datasets, consisting of 8,067 and 6,812 images, respectively. Each dataset includes four classes: Coccidiosis, Salmonella, Newcastle disease, and Healthy. To tackle the severe class imbalance, we applied data augmentation techniques. We evaluated the models using various metrics, including accuracy, F1-score, specificity, PR AUC, and MCC, under 10-fold cross-validation. Our proposed MaxViT model achieved impressive accuracy scores of 99.54% and 98.96% on the two datasets, outperforming ViT-B/16, ViT-L/32, DeiT-S, and T2T-ViT-14 across all metrics. Additionally, we integrated Grad-CAM to provide visual explanations of the model's decisions, thereby enhancing transparency and applicability in veterinary settings. This study introduces a deployable, interpretable, and highly accurate framework for intelligent poultry disease diagnosis, effectively addressing critical limitations found in previous research.

Zenodo (CERN European Organization for Nuclear Research)
American University (US), University of Alabama in Huntsville (US)
Zero hunger
Openalex Percentile: Top 34%
Geochemistry and Geologic Mapping
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Robust and explainable poultry disease classification via MaxViT with attention-guided visualization · Zenodo (CERN European Organization for Nuclear Research) (2025) | TGRS Research Map | TGRS