Automated Image Analysis for Detection of Coccidia in Poultry

Isaac Kellogg, David L. Roberts, Rocio CrespoAnimals 2024 · DOI

TL;DR

This paper introduces an AI-powered system using Mask R-CNN for automated detection, speciation, and sporulation status determination of Eimeria oocysts in poultry. This approach promises to significantly speed up diagnostics, reduce human error, and provide crucial information for managing coccidiosis, a major poultry disease.

What Problem Does This Paper Address?

Coccidiosis, caused by Eimeria parasites, is a significant economic burden on the poultry industry, leading to reduced growth rates, diarrhea, and even death. Effective control hinges on accurately identifying the Eimeria species and quantifying the number of oocysts. Current methods rely on manual microscopic examination by highly skilled technicians or veterinarians, which is time-consuming, labor-intensive, and prone to human error. Crucially, existing methods, including molecular and digital image analysis, often fail to distinguish between sporulated (infectious) and non-sporulated (non-infectious) oocysts, a vital piece of information for disease management and vaccine efficacy assessment.

Methods

The researchers developed an automated system leveraging the Mask R-CNN deep learning architecture for instance segmentation. This approach allows for the detection and delineation of individual oocysts within an image. The core of their method involved:

  • Data Preparation: Preparing samples using a flotation solution and then using an automated cell counter to acquire high-resolution images.
  • Manual Labeling: A crucial step involved manually labeling oocysts in a subset of images using the LabelMe tool. This labeling included identifying the Eimeria species (E. acervulina, E. maxima, E. tenella) and whether each oocyst was sporulated or non-sporulated, creating six distinct classes.
  • Data Augmentation: To expand the training dataset, they employed rotation and cropping techniques, significantly increasing the number of training samples.
  • Model Training: A Mask R-CNN model was trained using the augmented dataset. They utilized the PixelLib library and Matterport's Mask-RCNN model with MS COCO pre-trained weights. Key training parameters included a learning rate of 0.01, learning momentum of 0.95, and a batch size of 3 over 250 epochs.
  • Performance Evaluation: Model performance was assessed using Mean Relative Percentage Difference (mRPD) to compare automated counts against manual counts. Pearson correlation coefficients and Bland-Altman plots were used for further visualization and agreement analysis.

Datasets

The study utilized a custom dataset created from microscopy images of Eimeria oocysts.

  • Initial Dataset: Comprised of 110 images containing samples of E. acervulina, E. maxima, and E. tenella oocysts, including negative samples.
  • Augmented Dataset: After data augmentation (rotations and crops), this dataset expanded to 2928 file pairs for training and 732 file pairs for validation.
  • Field-Quality Samples: The study also incorporated samples prepared from commercial poultry fecal samples spiked with oocysts from three different vaccine types, aiming to mimic real-world conditions.

Key Insights and Ideas

  • Sporulation Status is Key: The ability to differentiate sporulated from non-sporulated oocysts is a critical advancement. This information directly relates to infectivity and can inform vaccine strategies and disease outbreak predictions.
  • Mask R-CNN's Suitability: The Mask R-CNN architecture proved effective for instance segmentation, allowing for precise identification and counting of individual oocysts, even in complex images.
  • Species-Specific Performance: The model performed best on E. maxima, likely due to its larger size and distinct morphology, making it easier for the AI to discern. E. acervulina, being the smallest, presented more challenges.
  • Data Augmentation's Impact: The extensive data augmentation was crucial for creating a robust training dataset from a relatively smaller initial set, improving the model's generalization capabilities.
  • The Importance of Image Quality: The authors highlight that high-resolution, in-focus images are paramount for accurate AI model performance, especially for differentiating smaller oocysts.

Key Results

  • Overall Agreement: The multi-species model achieved a mean RPD of 5.64%, indicating a slight overcount compared to manual counts across all groups.
  • Individual Group Performance: Mean RPDs for individual groups ranged from -33.37% to 52.72%.
  • Speed and Efficiency: The automated model significantly reduced analysis time compared to manual methods.
  • Sporulation Differentiation: The model successfully differentiated sporulated from non-sporulated oocysts, a novel capability.
  • Species Accuracy: The model showed high agreement for E. maxima (99.79% within 95% confidence interval) and good agreement for E. acervulina (99.5%) and E. tenella (96.18%) in single-species models.
  • Multi-Species Challenges: The multi-species model showed moderate agreement (92.32% outside 95% confidence interval) and struggled more with differentiating non-sporulated E. acervulina and E. tenella.

Limitations and Future Work

  • Image Resolution: The authors acknowledge that image resolution, particularly for smaller oocysts like E. acervulina, contributed to poorer correlation. Higher-resolution imaging is suggested for improvement.
  • Sample Size: The limited number of non-sporulated E. acervulina and E. tenella oocysts in the training dataset likely impacted the model's performance on these specific classes.
  • Handling of Empty Samples: The current software rejected images with no oocysts, a limitation that needs further investigation and solutions.
  • Future Directions:
    • Expanding the model to include other Eimeria species, especially those with similar morphology.
  • Developing models for turkey coccidia, which are notoriously difficult to differentiate.
  • Further validation with larger datasets and diverse sample types.
  • Exploring higher-resolution imaging techniques.
  • Investigating methods to handle samples devoid of oocysts.

Summary updated

Abstract

Coccidiosis, caused by the protozoan <i>Eimeria</i> sp., is one of the most common and costly diseases impacting the poultry industry. To establish effective control measures, it is essential to identify these protozoa. Typical methods for identifying and determining the severity of the protozoal infection include intestinal lesion scoring or enumeration of the protozoal oocysts in fecal samples. Standard analysis methods require highly skilled technicians or veterinarians to manually identify and manually enumerate these protozoal parasites. This process is labor intensive, time-consuming, and susceptible to human error. None of the current methods available, including molecular flow cytometry or even digital image analysis, can determine if an oocyst is sporulated or not. Oocysts are not infectious until they sporulate. The goal of this study was to design an automated model using Artificial Intelligence (AI) to expedite the process of enumeration, improve the efficiency and accuracy of the species identification, and determine the ability of the oocysts to infect. To this end, we trained and evaluated computer vision models based on the Mask RCNN neural network architecture. A model was trained to detect and differentiate three species and to determine sporulation for each (totaling six detection groups). This model achieved a mean relative percentage difference (RPD) of 5.64%, representing a slight overcount compared to manual counts, averaging across all groups. The mean RPD for each group individually fell within a range from -33.37% to 52.72%. These results demonstrate that these models were speedy and had high agreement with manual counts, with minimal processing of field-quality samples. These models also could differentiate the sporulation status of the oocysts, providing critical diagnostic information for potential field applications.
BibTeX
@inproceedings{kellogg2024automated,
  author = {Isaac Kellogg and David L. Roberts and Rocio Crespo},
  title = {{Automated Image Analysis for Detection of Coccidia in Poultry}},
  booktitle = {Animals},
  year = {2024},
  doi = {10.3390/ani14020212},
}
Figure