Application of computer vision for automated detection of different lesions in pig lungs: An exploratory study

Accurate classification of lung lesions at necropsy is crucial for guiding the diagnostic process and ensuring effective management of porcine respiratory diseases. Post-mortem inspection of the lungs during slaughter also provides valuable insights into disease occurrence, offering useful feedback on the efficacy of on-farm prevention and control strategies. However, manual assessment protocols may be impaired by high slaughtering speeds and low inter-rater agreement, which limits continuous data collection and hinders comparability. Artificial intelligence, particularly computer vision (CV), may offer a promising alternative. This study aimed to train and test a commercial CV model for segmenting both anatomical structures and lesions in pig lungs. Overall, 1742 lungs were collected at slaughter, examined macroscopically, and photographed laterally. Two veterinarians with expertise in swine pathology manually annotated the acquired images to outline anatomical (i.e., lung, heart, lung lobes), pathological (i.e., bronchopneumonia, fibrinous pleuropneumonia, chronic pleuritis), and artefactual (i.e., parenchymal laceration, bronchoinhalation of blood) classes, forming the reference dataset for model training and testing. Model performance in segmenting these classes varied by confidence threshold, with sensitivity (36-84 %), positive predictive value (62-93 %) and F1 score (52-78 %) indicating imperfect yet improvable performance. Overall, anatomical structure segmentation outperformed lesion detection, likely due to class imbalance in the training dataset and the complexity of pulmonary pathology. Integrating standardized and real-time detection of lung lesions via digital imaging could improve respiratory health surveillance, thereby enhancing the role of abattoirs as strategic epidemiological observatories.

Authors

Institutions

Publication Details

Journal
Preventive Veterinary Medicine
Published
2025-09-04
DOI
https://doi.org/10.1016/j.prevetmed.2025.106672
Primary Topic
Microbial infections and disease research
Type
article
Field-Weighted Citation Impact
0.00

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Application of computer vision for automated detection of different lesions in pig lungs: An exploratory study

Giorgio Bontempi, M. Recchia, Sergio Ghidini, A Maisano et al.
Preventive Veterinary Medicine
Microbial infections and disease research
article

Application of computer vision for automated detection of different lesions in pig lungs: An exploratory study

Giorgio Bontempi, M. Recchia, Sergio Ghidini, A Maisano, Adriana Ianieri, Giovanni Santucci, Eugenio Scanziani, Lis Alban, Federico Scali, Giovanni Loris Alborali, Claudia Romeo, Chiara Allegri, Emanuela Zanardi, Sara Panseri, Camilla Recordati, Simone Canesi, L. Sala, Lucia Scuri
article en

Abstract

Accurate classification of lung lesions at necropsy is crucial for guiding the diagnostic process and ensuring effective management of porcine respiratory diseases. Post-mortem inspection of the lungs during slaughter also provides valuable insights into disease occurrence, offering useful feedback on the efficacy of on-farm prevention and control strategies. However, manual assessment protocols may be impaired by high slaughtering speeds and low inter-rater agreement, which limits continuous data collection and hinders comparability. Artificial intelligence, particularly computer vision (CV), may offer a promising alternative. This study aimed to train and test a commercial CV model for segmenting both anatomical structures and lesions in pig lungs. Overall, 1742 lungs were collected at slaughter, examined macroscopically, and photographed laterally. Two veterinarians with expertise in swine pathology manually annotated the acquired images to outline anatomical (i.e., lung, heart, lung lobes), pathological (i.e., bronchopneumonia, fibrinous pleuropneumonia, chronic pleuritis), and artefactual (i.e., parenchymal laceration, bronchoinhalation of blood) classes, forming the reference dataset for model training and testing. Model performance in segmenting these classes varied by confidence threshold, with sensitivity (36-84 %), positive predictive value (62-93 %) and F1 score (52-78 %) indicating imperfect yet improvable performance. Overall, anatomical structure segmentation outperformed lesion detection, likely due to class imbalance in the training dataset and the complexity of pulmonary pathology. Integrating standardized and real-time detection of lung lesions via digital imaging could improve respiratory health surveillance, thereby enhancing the role of abattoirs as strategic epidemiological observatories.

Preventive Veterinary MedicineVol. 245
University of Parma (IT), University of Milan (IT), Istituto Zooprofilattico Sperimentale della Lombardia e dell'Emilia Romagna "Bruno Ubertini" (IT), Danish Agriculture and Food Council (DK)
Ministero della Salute
Openalex Percentile: Top 78%
Microbial infections and disease research
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.