Skip to main content
NIHPA Author Manuscripts logoLink to NIHPA Author Manuscripts
. Author manuscript; available in PMC: 2025 Oct 15.
Published in final edited form as: Proc SPIE Int Soc Opt Eng. 2025 Apr 10;13413:1341310. doi: 10.1117/12.3047040

Cross-organ Deployment of EOS Detection AI without Retraining: Feasibility and Limitation

Yifei Wu a, Juming Xiong b, Tianyuan Yao a, Ruining Deng a, Junlin Guo a, Jialin Yue b, Naweed Chowdhury c, Yuankai Huo a,b
PMCID: PMC12520199  NIHMSID: NIHMS2115900  PMID: 41098621

Abstract

Chronic rhinosinusitis (CRS) is characterized by persistent inflammation in the paranasal sinuses, leading to typical symptoms of nasal congestion, facial pressure, olfactory dysfunction, and discolored nasal drainage, which can significantly impact quality-of-life. Eosinophils (Eos), a crucial component in the mucosal immune response, have been linked to disease severity in CRS. The diagnosis of eosinophilic CRS typically uses a threshold of 10–20 eos per high-power field (HPF). However, manually counting Eos in histological samples is laborious and time-intensive, making the use of AI-driven methods for automated evaluations highly desirable. Interestingly, eosinophils are predominantly located in the gastrointestinal (GI) tract, which has prompted the release of numerous deep learning models trained on GI data. This study leverages a CircleSnake model initially trained on upper-GI data to segment Eos cells in whole slide images (WSIs) of nasal tissues. It aims to determine the extent to which Eos segmentation models developed for the GI tract can be adapted to nasal applications without retraining. The experimental results show promising accuracy in some WSIs, although, unsurprisingly, the performance varies across cases. This paper details these performance outcomes, delves into the reasons for such variations, and aims to provide insights that could guide future development of deep learning models for eosinophilic CRS.

Keywords: Eosinophils, CircleSnake, Chronic Rhinosinusitis, Deep Learning

1. INTRODUCTION

Chronic rhinosinusitis (CRS) is a multifactorial disease influenced by both genetic and environmental factors contributions and is among the most common chronic illnesses globally.1, 2 Patients with allergic rhinitis chronic sinusitis often experience nasal congestion, facial pressure, olfactory dysfunction, and discolored nasal drainage, which can significantly impact quality-of-life.3 Eosinophils (Eos), a type of white blood cell, play a critical role in the immune response in certain endotypes of CRS, with elevated Eos levels suggestive of more severe disease.4, 5

Currently, counting Eos in pathological tissue slices is a manual, time-consuming task for pathologists. However, deep learning models can automate this process, extracting features from images and achieving high accuracy and sensitivity through extensive data training. This reduces human intervention and uncovers complex features and patterns, improving diagnostic accuracy. Modern deep learning models also offer real-time image processing capabilities with hardware accelerators such as GPUs and TPUs, providing immediate diagnostic support in urgent medical settings and enhancing medical efficiency and patient outcomes. Additionally, these models are often designed to generalize well across different contexts within a specific image modality. Through techniques like transfer learning, these models can be adapted to new domains, significantly reducing the development time and cost for new models.

Interestingly, eosinophils are predominantly located in the gastrointestinal (GI) tract, which has prompted the release of numerous deep learning models6, 7 trained on GI data. For example, previous work has shown the effectiveness of the CircleSnake model8–11 in medical image segmentation tasks, particularly for eosinophilic esophagitis (EoE). CircleSnake is an end-to-end circle contour deformation-based segmentation method that has proven successful in detecting spherical medical objects. The model, trained on segmenting Eos cells in whole slide images (WSIs) of EoE patients, achieved high accuracy and efficiency.10, 11These promising results suggested the potential for applying the CircleSnake model to other medical imaging contexts, such as nasal tissues(Fig. 1).

Figure 1:

Figure 1:

The goal of this study is to determine whether and under what conditions the pre-trained CircleSnake model for eosinophil detection can be directly applied to other parts of the body, such as from the esophagus to the nose.

In this paper, we extend the application of the CircleSnake model to the detection of Eos cells in nasal tissues, leveraging the pre-trained model developed for EoE. We aim to evaluate the model’s performance in this new context and identify the specific conditions under which it excels or encounters challenges. Our analysis involves categorizing the results into three groups to illustrate the conditions under which the model performs well and when it does not, highlighting the model’s limitations.

The contribution of this study is threefold:

  • We conduct the initial study to evaluate the effectiveness of directly applying an AI developed for Eos identification in upper GI tissues to nasal tissues without any retraining.

  • A thorough quantitative and qualitative analysis is conducted to identify specific conditions that affect the model’s accuracy, such as staining intensity.

  • This study offers insights for the future development of AI for Eos detection in nasal tissue. Given that performance fluctuates with global intensity variations, diversifying data collection and employing digital staining technology could help close the gap, leading to a more generalizable AI for Eos detection.

2. METHOD

CircleSnake8–11 has been released as a state-of-the-art method on Eos detection for the esophagus (Fig. 2), whose superior performance is obtained from the optimal design for detecting circle shape objects. In this study, we directly apply the esophagus-trained CircleSnake approach to segment the Eos cells on nasal tissue. By defining an input image I∈RW×H×3 with size W×H,12 the Circle Proposal Localization Network (CPL Network) generates the location of the center of each object in a heat map Yˆ∈[0,1]WR×HR×C, in which C and R represents the amount of candidate class and the down-sampling factor respectively. Yˆxyc describes the probability the lesion center belongs to class c, and Yˆxyc=1 stands for the center in the heat map while Yˆxyc=0 for the background. The target center point is presented in the form of a two-dimensional Gaussian kernel:13

Yxyc=exp-x-p~x2+y-p~y22σp2 (1)

where (p~x,p~y) is the coordinate of the down-sampled truth center points and σp represents the kernel standard deviation, and through which we can calculate the training loss Lk as:14

Lk=-1N∑xyc1-YˆxycαlogYˆxycifYxyc=11-YxycβYˆxycαlog1-Yˆxycotherwise (2)

where α and β are both hyper-parameters.

Figure 2:

Figure 2:

A pipeline of the CircleSnake segmentation model’s network structure. The initial boundary forms a circular contour after verification by CircleSnake. Through a graph convolutional network (GCN), the outline eventually transforms into the final circular boundary of the eosinophil cell.

By selecting n top peaks whose values are no less than its neighbors from all directions, the center points are defined as Pˆ=xˆi,yˆii=1nˆ. The offset (δxˆi,δyˆi) can be computed from the offset prediction loss Loff. The center coordinate and radius of the bounding circle are calculated as:

Pˆ=xˆi+δxˆi,yˆi+δyˆii=1nˆRˆ=Rˆxˆi,yˆi (3)

where radius prediction Rˆ∈RWR×HR×1 is optimized by:

Lradius=1N∑k=1NRˆpˆk-rk (4)

where rk represents the ground truth radius of object k. And the overall objective for Circle Object Detection is:

Ldet=Lk+λradiusLradius+λoffLoff (5)

Following the definitions from Zhou et al,12 λradius=0.1 and λoff=1.

Based on the Circle object detection above, the bounding circle related to each object can be determined and the initial contour proposal will be drawn by the circle representation. To ensure the simplicity and consistency of the circle contour, it avoids some complicated deformation and extreme octagon proposals based on poles. N sample points xicircle∣i=1,2,…,N are selected isometrically starting at the top-most point x1circle. Similarly, we sample N vertices along the boundary uniformly to generate the ground truth contour. N is set to 128.15

Based on the N-vertices contour above, we first generate feature vectors for every vertex. Combining a vertex xicircle and its feature maps Fxicircle, we create the correlated input features ficircle, and we treat the features as a one-dimensional discrete signal f:Z→RD. Circular convolutional neural network is used on feature learning, as shown in the Fig. 2. The signal is defined as:

fNcircle*ki=∑j=-rrfNcirclei+jkj (6)

where operator * is the standard convolution and k:[-r,r]→RD stands for a learnable kernel function. The kernel size is set to 9 based on.15

CircleSnake is implemented through the graph convolutional network (GCN), which includes backbone, fusion and prediction. The features are connected by eight ”CirConv-Bn-ReLU” layers and circular convolutions layers ”CirConv” and retransmissioned through the 1×1 convolutional and max pooling layer. Eventually, the prediction head covers three 1×1 convolutional layers and writes the offsets of the vertex. The loss function is given by:

Liter=1N∑i=1Nl1xicircle-xigt (7)

where xigt stands for the ground truth boundary point while xicircle represents the deformed contour point. The deformation is accomplished in 3 iterations, regressing all the N offsets based on.15

3. EXPERIMENTAL DESIGN

Patients were recruited from an on-going prospective observational study enrolling CRS patients who are undergoing endoscopic sinus surgery after failing initial medical therapy for CRS consisting of topical and oral nasal steroids and high-volume saline irrigations. All patients underwent bilateral maxillary antrostomies, total sphenoethmoidectomy, and frontal sinusotomies. Patients with cystic fibrosis, ciliary dyskinesia, autoimmune diseases, or immunodeficiency were excluded from enrollment. The experimental dataset contained 200 hematoxylin and eosin-stained WSIs with 20x objective lens gaining from 30 different patients and a table recording the maximum number of Eos in one HPF in the related image and the mean value over 5 HPFs selected from the highest density regions of the WSI by a board-certified head and neck pathologist.

Patches of 1024 × 1024 resolution are extracted from WSIs using QuPath and the meta-data information of each image was recorded into a correlated COCO-format json file. We loaded the pre-trained CircleSnake model and began the testing process which would extract the annotations on each pixel. The details of the annotations were saved into a geojson file which could be loaded in QuPath and counted by CircleSnake.

4. RESULTS

The reading between deep learning (CircleSnake) and human experts are presented in Fig. 3. The quantitative correlation results are presented in Fig. 4, with the Pearson correlation coefficient.16 The correlation results are listed in Table. 1, showing that the r value>0.6 for different hyper-parmeters. Such correlations are significant (p-value<0.05) For qualitative visulization, we categorized the cases into three groups: above, below, and near the confidence interval region, as shown in Fig. 5, to discern the general pattern from each group.

Figure 3:

Figure 3:

The bar chart displays a comparison between counts obtained by human experts and those generated by the CircleSnake model. Each bar represents the average number of eosinophilic cells in the top five regions with the highest cell counts within a single high-power field (HPF) across all tissue sections for each patient. The CircleSnake model’s data is shown in blue bars, while the data from the pathologists is depicted in orange bars. The data is arranged in ascending order based on the counts from the pathologists, while the threshold is set to 0.15.

Figure 4:

Figure 4:

This scatter plot illustrates the comparison between human and machine counts. The blue line represents the linear regression, and the blue points indicate the coordinates of the counts, while the shaded region around the regression line depicts the confidence interval.

Table 1:

Pearson Correlation Results between Human and Machine Reads.

Pearson Correlation
Performance Metrics r value p value
Threshold (ct_score) 0.3 0.2 0.15 0.1 0.3 0.2 0.15 0.1
Mean (of Top-5) Counting 0.621 0.653 0.655 0.627 0.000015 0.000083 0.000085 0.000108
Maximum Counting 0.591 0.637 0.639 0.601 0.000580 0.000251 0.000144 0.000267

Figure 5:

Figure 5:

This figure shows the visualization of all WSIs in the same location as Fig. 4. The observations and interpretation are presented in the discussion section.

5. DISCUSSION

This study demonstrates that the CircleSnake deep learning model, initially trained for EoE, has various performances in detecting Eos in nasal tissue scenarios. This paper performs both qualitative and quantitative analyses to assess such feasibility, and more important, the limitations.

Fig. 5 shows the visualization of all WSIs in the same location as Fig. 4. In this section, we summarize our observations and interpretation. First, images near the regression line (9–12) include a few medium-sized tissue regions that are relatively scattered and stained darker. Interestingly, these images seem to exhibit a pattern where the background luminance of the WSIs is substantially darker. For the first group (1–4), the tissues blocks are mostly exceedingly numerous and dispersed. For the second group (5–8), the staining is typically lighter than other groups, making a different appearance from the training data. These findings suggest that future efforts to narrow the performance gap should focus on implementing super-resolution techniques and digital stain normalization methods to minimize variations between tissue samples.

ACKNOWLEDGMENTS

This research was supported by NIH R01DK135597 (Huo), DoD HT9425-23-1-0003 (HCY), NIH NIDDK DK56942 (ABF) and the Burroughs Wellcome Fund (NIC). This work was also supported by Vanderbilt Seed Success Grant, Vanderbilt Discovery Grant, and VISE Seed Grant. This project was supported by The Leona M. and Harry B. Helmsley Charitable Trust grant G-1903-03793 and G-2103-05128. This research was also supported by NIH grants R01EB033385, R01DK132338, REB017230, R01MH125931, and NSF 2040462. We extend gratitude to NVIDIA for their support by means of the NVIDIA hardware grant.

REFERENCES

  • [1].Bousquet J, Akdis CA, Scadding GK, Skoner DP, Becker AB, Oh JW, de Jong ERS, and et al. , “Allergic rhinitis,” Nature Reviews Disease Primers 6(1), 95 (2020). [DOI] [PubMed] [Google Scholar]
  • [2].D’Aiuto V, Mormile I, Granata F, Romano A, Casa FD, D’Onofrio C, Marzio V, Mignogna G, Califano L, de Paulis A, and Rossi FW, “Eosinophilic patterns in patients with seasonal allergy affected by bronchial asthma and rhinitis/rhinosinusitis: Efficacy of benralizumab in patients with the persistent pattern,” Journal of Clinical Medicine 13(3), 754 (2024). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • [3].Kennedy R, “Mechanisms and comparative treatments of allergic rhinitis including phototherapy,” Allergies 4(1), 2 (2024). [Google Scholar]
  • [4].Ahlstrom-Emanuelsson C, Greiff L, Andersson M, Persson C, and Erjefält J, “Eosinophil degranulation status in allergic rhinitis: observations before and during seasonal allergen exposure,” European Respiratory Journal 24(5), 750–757 (2004). [DOI] [PubMed] [Google Scholar]
  • [5].Kämpe M, Stolt I, Lampinen M, Janson C, Stålenheim G, and Carlson M, “Patients with allergic rhinitis and allergic asthma share the same pattern of eosinophil and neutrophil degranulation after allergen challenge,” Clinical and Molecular Allergy 9(1), 3 (2011). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • [6].Czyzewski T, Daniel N, Collins MM, Osswald GA, Caldwell JM, Rothenberg ME, and Yang GY, “Machine learning approach for biopsy-based identification of eosinophilic esophagitis reveals importance of global features,” IEEE Open Journal of Engineering in Medicine and Biology (2021). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • [7].Daniel N et al. , “Pecnet: A deep multi-label segmentation network for eosinophilic esophagitis biopsy diagnostics,” arXiv preprint arXiv:2103.02015 (2021). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • [8].Yang H, Deng R, Lu Y, Zhu Z, Chen Y, Roland JT, Lu L, Landman BA, Fogo AB, and Huo Y, “Circlenet: Anchor-free glomerulus detection with circle representation,” in [International Conference on Medical Image Computing and Computer-Assisted Intervention], 35–44, Springer; (2020). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • [9].Nguyen EH, Yang H, Deng R, Lu Y, Zhu Z, Roland JT, Lu L, Landman BA, Fogo AB, and Huo Y, “Circle representation for medical object detection,” IEEE Transactions on Medical Imaging (2021). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • [10].Xiong J, Nguyen EH, Liu Y, Deng R, Tyree RN, Correa H, Hiremath G, Fogo AB, and Huo Y, “Circlesnake: Instance segmentation with circle representation,” arXiv preprint arXiv:2403.11507 (2024). [Google Scholar]
  • [11].Liu Y, Deng R, Xiong J, Tyree RN, Correa H, Hiremath G, Wang Y, and Huo Y, “Eosinophils instance object segmentation on whole slide imaging using multi-label circle representation,” CoRR abs/2308.08974 (2023). Proceedings of SPIE Medical Imaging 2024: Digital and Computational Pathology, vol. 12933, 129330I, 2024. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • [12].Zhou X, Wang D, and Krähenbühl P, “Objects as points,” arXiv preprint arXiv:1904.07850 (2019). [Google Scholar]
  • [13].Law H and Deng J, “Cornernet: Detecting objects as paired keypoints,” in [Proceedings of the European Conference on Computer Vision (ECCV)], 734–750 (2018). [Google Scholar]
  • [14].Lin T-Y, Goyal P, Girshick R, He K, and Dollár P, “Focal loss for dense object detection,” in [Proceedings of the IEEE International Conference on Computer Vision (ICCV)], 2980–2988 (2017). [Google Scholar]
  • [15].Peng S, Jiang W, Pi H, Li X, Bao H, and Zhou X, “Deep snake for real-time instance segmentation,” in [Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition], 8533–8542 (2020). [Google Scholar]
  • [16].Huo Y, Terry JG, Wang J, Nair S, Lasko TA, Freedman BI, Carr JJ, and Landman BA, “Fully automatic liver attenuation estimation combining cnn segmentation and morphological operations,” Medical Physics (2019). [DOI] [PMC free article] [PubMed] [Google Scholar]

RESOURCES