Sheep Pulmonary Image Recognition (SPIRO): an explainable deep learning framework for macroscopic assessment of ovine pulmonary lesions

Accurate detection and classification of pulmonary diseases in sheep are critical for ensuring animal welfare, food safety, and effective disease surveillance in abattoir settings. In this study, we propose a two-stage, explainable, histopathology-informed deep learning framework for the automated classification of ovine lung lesions. The dataset comprises 1,052 sheep lung images, annotated through a dual-level diagnostic process involving macroscopic inspection and histopathological confirmation, and classified…

Sheep Pulmonary Image Recognition (SPIRO): an explainable deep learning framework for macroscopic assessment of ovine pulmonary lesions
"Capillaritis-Acute hemorrhage - Milk allergy Case 107" by Pulmonary Pathology is licensed under CC BY-SA 2.0. To view a copy of this license, visit https://creativecommons.org/licenses/by-sa/2.0/.

In brief

Researchers built an image-based system that first locates the lung in a photograph and then sorts it into healthy, inflammatory, or neoplastic categories. It was trained and tested on 1,052 sheep lung images labeled through macroscopic inspection and histopathological confirmation.

The work matters because abattoir lung assessment supports animal welfare, food safety, and disease surveillance, and an automated, interpretable tool could make it more objective. The results are a feasibility demonstration, and performance on healthy and inflammatory lungs was clearly weaker than on tumors.

Main points

  1. The dataset contained 1,052 sheep lung images, each labeled as healthy, inflammatory, or neoplastic.
  2. VGG16, VGG19, ResNet50, and EfficientNetB0 were benchmarked, and EfficientNetB0 had the highest standalone performance.
  3. Neoplastic lesions reached precision 0.98, recall 0.99, and F1 0.99.
  4. Healthy and inflammatory lungs scored F1 values of 0.83 and 0.82, respectively.
  5. Grad-CAM maps indicated predictions were mainly driven by diagnostically relevant lung regions.

The gain

A YOLOv11 plus EfficientNetB0 pipeline classified ovine lungs as healthy, inflammatory, or neoplastic with 90% test accuracy, supporting objective post-mortem assessment for abattoir surveillance.

The rundown

The framework has two stages: YOLOv11 localizes lung regions, and EfficientNetB0 classifies the cropped images. Four convolutional network architectures were compared under identical conditions before the best one was chosen.

The pipeline reached an overall test accuracy of 90% and a weighted F1-score of 0.88. Tumor detection was strongest, while distinguishing healthy from inflammatory lungs was less accurate.

Interpretability was assessed with Grad-CAM visualizations, which suggested the model focused on relevant pulmonary areas. The authors propose potential uses in abattoir surveillance, veterinary pathology, and flock health monitoring.

Sources

  1. Peer-reviewedThe Veterinary Journal2026-10-14

The debate