Artificial intelligence-based tissue segmentation and cell identification in multiplex-stained histological endometriosis sections

other OA: gold CC-BY-NC-4.0
AI-generated summary by claude@2026-06, 2026-06-09

A machine learning approach for tissue segmentation and a deep learning algorithm for cell identification demonstrated strong performance in the automated histological analysis of multiplex-stained endometriosis sections.

One-sentence paraphrase of the abstract; not a substitute for reading it. No clinical advice. How this works

Abstract

STUDY QUESTION: How can we best achieve tissue segmentation and cell counting of multichannel-stained endometriosis sections to understand tissue composition? SUMMARY ANSWER: A combination of a machine learning-based tissue analysis software for tissue segmentation and a deep learning-based algorithm for segmentation-independent cell identification shows strong performance on the automated histological analysis of endometriosis sections. WHAT IS KNOWN ALREADY: Endometriosis is characterized by the complex interplay of various cell types and exhibits great variation between patients and endometriosis subtypes. STUDY DESIGN, SIZE, DURATION: Endometriosis tissue samples of eight patients of different subtypes were obtained during surgery. PARTICIPANTS/MATERIALS, SETTING, METHODS: Endometriosis tissue was formalin-fixed and paraffin-embedded before sectioning and staining by (multiplex) immunohistochemistry. A 6-plex immunofluorescence panel in combination with a nuclear stain was established following a standardized protocol. This panel enabled the distinction of different tissue structures and dividing cells. Artificial intelligence-based tissue and cell phenotyping were employed to automatically segment the various tissue structures and extract quantitative features. MAIN RESULTS AND THE ROLE OF CHANCE: An endometriosis-specific multiplex panel comprised of PanCK, CD10, α-SMA, calretinin, CD45, Ki67, and DAPI enabled the distinction of tissue structures in endometriosis. Whereas a machine learning approach enabled a reliable segmentation of tissue substructure, for cell identification, the segmentation-free deep learning-based algorithm was superior. LIMITATIONS, REASONS FOR CAUTION: The present analysis was conducted on a limited number of samples for method establishment. For further refinement, quantification of collagen-rich cell-free areas should be included which could further enhance the assessment of the extent of fibrotic changes. Moreover, the method should be applied to a larger number of samples to delineate subtype-specific differences. WIDER IMPLICATIONS OF THE FINDINGS: We demonstrate the great potential of combining multiplex staining and cell phenotyping for endometriosis research. The optimization procedure of the multiplex panel was transferred from a cancer-related project, demonstrating the robustness of the procedure beyond the cancer context. This panel can be employed for larger batch analyses. Furthermore, we demonstrate that the deep learning-based approach is capable of performing cell phenotyping on tissue types that were not part of the training set underlining the potential of the method for heterogenous endometriosis samples. STUDY FUNDING/COMPETING INTEREST(S): All funding was provided through departmental funds. The authors declare no competing interests. TRIAL REGISTRATION NUMBER: N/A.
Full text 36,658 characters · extracted from pmc · 4 sections · click to expand

Intro

Endometriosis is a gynaecological condition that casts a heavy burden on the health-related quality of life of individual patients, as well as our society. Although affecting around 1 in 10 women of childbearing age, it has historically lacked appropriate attention in research and clinical practice. Possible symptoms include dysmenorrhea, pelvic pain, and infertility ( Horne and Missmer, 2022 ). Current treatment options are limited to contraceptive hormone therapy, pain and inflammation management, and surgical excision. However, these interventions are often unsatisfying as they only address the symptoms and are mostly incompatible with a wish to conceive ( Kalaitzopoulos et al. , 2021 ). Endometriosis is defined by the presence of functioning implants of epithelial and stromal cells outside the uterine cavity, which closely resemble uterine endometrium. These lesions are generally divided into three categories based on their location. Superficial peritoneal lesions (PE) are found on the peritoneal surface epithelium. Deep lesions (DE) infiltrate fibromuscular tissue and are defined by a depth of >5 mm. Endometrioma (OMA) present as ovarian cysts that are often filled with tar-like fluid containing debris. In addition, there are anecdotal reports of endometriosis affecting the lungs or skin ( Machairiotis et al. , 2013 ; Raffi et al. , 2019 ). To this point, the pathological examination of endometriosis focuses on the macroscopic aspect of lesions, such as their location, and the histopathology including confirmation of endometrial stroma, endometrial glands, signs of haemorrhage, and exclusion of rare (pre)malignant changes. However, this approach neglects that not only with respect to localization but also with respect to the cellular level, endometriosis is highly heterogenous ( Colgrave et al. , 2021 ). Besides epithelial and stromal cells, endometriotic lesions usually comprise myofibroblasts, mesothelial cells, and a variety of subsets of myeloid and lymphoid cells ( Tan et al. , 2022 ). Furthermore, lesions trigger neovascularization ( Laschke and Menger, 2018 ; Chung and Han, 2022 ) and neurogenesis ( Asante and Taylor, 2011 ). In these aspects, endometriotic lesions share many characteristics with tumours and their cellular microenvironment. Arguably, a better understanding of the heterogeneity and how it relates to disease progression, symptoms and therapy response may improve the clinical management of the disease and promote the development of new therapeutic options. In cancer, multiplex immunohistochemistry (IHC) in combination with machine learning-based image analysis approaches is increasingly employed to investigate the spatial interplay of cell types ( Gorris et al. , 2022 ; Rojas et al. , 2022 ; van Dam et al. , 2022 ; Zidane et al. , 2023 ). By comparison, in endometriosis, the use of multiplex IHC in combination with advanced cell image analysis protocols is still in its infancy. Recently, McKinnon et al. (2022) used the open-source software QuPath to quantify epithelial and stromal cells in endometriotic lesions stained by conventional IHC. The study by Tan et al. (2022) used imaging mass cytometry to visualize the composition of stromal, epithelial, and immune cells in several lesions, but without further computer-aided image analysis. Machine learning algorithms reach their limits of accurately identifying individual cells in tissues with high cell density, which is frequently found in an inflammatory context. The abovementioned QuPath software uses a combination of image pre-processing to enhance cell boundaries, cell- and cell-boundary detection and image segmentation, supported by machine learning algorithms ( Bankhead et al. , 2017 ). Also inForm is a proprietary automated image analysis software package, which provides tissue segmentation as well as cell segmentation algorithms for multiplex-stained images. Users manually annotate tissue categories for training, the software displays segmentation results and accuracy, allowing for iterative refinement. We have been using this software particularly for its tissue segmentation algorithm ( van Wilpe et al. , 2021 ; Bakkerus et al. , 2024 ). The cell segmentation-associated challenges have been resolved by the deep-learning-based ImmuNet algorithm developed to analyse the immune landscape in solid tumours ( Sultan et al. , 2023 ). ImmuNet is trained to identify the position and identity of cells. However, it is not a segmentation algorithm that splits the image into individual cells. By comparison, software packages such as QuPath or inForm segment the image into areas that are assigned to individual cells. Such algorithms carry a risk of over- and undersegmentation, thereby yielding erroneous cell numbers. Regarding a number of similarities between cancer and endometriosis tissues in their cellular composition and tissue structure, endometriosis research should greatly benefit from the transfer of methods applied in the analysis of tumour tissue. Here, we developed a multiplex immunofluorescence (IF) panel targeting six markers of endometriosis-related tissue substructures. To visualize epithelium, stroma, and fibrosis, we used PanCK, CD10, and α-SMA, respectively. Calretinin was used to identify mesothelial cells. CD45 was used as pan-immune marker, and Ki67 was used as proliferation marker. With this at hand, we performed cell classification using an ImmuNet algorithm that had been trained on cancer tissue. Furthermore, we performed tissue segmentation with inForm to compare the proportions of epithelium, stroma, and fibrosis per sample, and to assess the immune-cell densities in these tissue substructures, comparing inForm and ImmuNet. The results lay the foundation for a large-scale machine learning-based histological analysis of endometriotic lesions, to better understand and tackle heterogeneity within these subtypes.

Results

The architecture of endometriosis lesions is commonly recognized as a composite of three tissue substructures, namely epithelium, stroma, and fibrotic tissue. In this work, we were interested in the proportions of these tissue substructures within endometriotic lesions, as well as the densities of immune cells and in particular proliferating cells in these areas. Answering these two questions required the establishment of a multiplex IHC panel and a two-step machine learning-based image analysis. This protocol combined the segmentation of tissue subtypes by inForm, followed by the identification of immune cells by ImmuNet. The multiplex panel was comprised of six cell-phenotypic markers along with the DAPI nuclear counterstain. The selection of antibodies was determined based on tissue subtypes within endometrial lesions. CD45 was included as a pan-immune marker and Ki67 for detection of proliferating cells ( Table 1 ). In multiplex IHC, antibodies are applied successively following heat-induced removal of the prior antibody. Since the resistance of epitopes to repeated heating may differ, the order of antibodies within the multiplex protocol has to be established as has the optimal dilution for each antibody ( Gorris et al. , 2018 ). We followed a stream-lined protocol which led us to the optimized panel via a well-defined standard operating procedure ( Fig. 1 ). Initially, the staining intensity and specificity of all six antibodies were determined on both control tissues and a single deep endometriosis (DE) sample through IHC-DAB stainings. The final IHC-DAB stainings served as templates throughout all IF monoplex and multiplex stainings to visually assess their staining quality. The optimal antibody dilutions were found by closely comparing the stained DE sample with the respective control ( Fig. 2 ) and adjusting the dilution and repeating the staining when necessary. Vimentin and CD10 are both common markers for endometriosis stroma. However, vimentin showed poor distinction between stroma and fibrotic tissue ( Fig. 2 ). Therefore, we selected CD10 for our panel. CK7 is widely used to stain endometrial epithelium. Still, we decided to replace it by PanCK. This change was motivated by our earlier experience with the PanCK antibody, which we consistently use to visualize epithelium at 1/1000 dilution along with Opal 780 in other multiplex panels and which has to be used last in the multiplex procedure. There may be concerns that the PanCK also stains mesothelia. However, comparison of the IHC-DAB ( Fig. 2 ) and pseudo-H-DAB ( Supplementary Fig. S2 ) stainings demonstrates that PanCK is a viable alternative. Close inspection only showed some very minor overlap in some samples. However, we also found only little mesothelium in our samples. Thus, this particular choice may be worth revisiting in the future. For the remaining five antibodies, the optimal dilutions for IF were determined through repeated manual IF stainings, at increasing dilutions and using the Opal 650 fluorophore. Flowchart summarizing the workflow in general terms, of creating and optimizing the 7-plex multiplex panel for endometriosis lesions. The final panel features PanCK, CD10, α-SMA, calretinin, CD45, and Ki67 and uses DAPI as nuclear counterstain. Rhomboids depict in-/outputs. Rectangles depict operations. Diamonds depict decision points. DE, deep endometriosis; IHC, immunohistochemistry; DAB = 3,3′-diaminobenzidine; Ab, antibody; IF, immunofluorescence; OPAL, opal fluorophores. Overview of the IHC-DAB (immunohistochemistry—3,3′-diaminobenzidine) stainings for one deep endometriosis (DE) lesion. Control stainings were performed on mesothelioma for calretinin, colon for α-SMA and CK7, and tonsil for the other targets. To determine the optimal incubation order, for each of the five antibodies (CD10, α-SMA, calretinin, CD45, and Ki67) three staining sets were executed, subjected to either one, three, or five consecutive heating cycles, following the automated IF protocol. Finally, for matching the used antibodies with the available Opal fluorophores, we drew upon previous experience within the research group. After an initial multiplex experiment, one subsequent adjustment was made, culminating in the final composition of the multiplex panel ( Table 1 , Fig. 3 , Supplementary Fig. S2 ). With the finalized multiplex panel at hand, nine samples including four DE lesions, four OMA and one PE lesion were sectioned and stained with HE and the multiplex panel. Multiplex staining of a deep endometriosis (DE) sample. Unmixed channels and complete multiplex image with colour scheme as indicated for the individual channels. For tissue segmentation, we first defined our visual concept of an endometriotic lesion containing the main tissue subtypes of epithelium, stroma and fibrosis ( Fig. 4 ). The cell-free lumen and the non-specifically stained background were assigned to the ‘blank’ category. For each histological section based on the multiplex staining, we made a manual pre-selection of the parts containing fibrotic tissue, endometriosis stroma and endometriosis epithelium that excluded approximately half of the tissue on the PE and DE lesions, whereas for the OMA lesions nearly the whole tissue was included ( Supplementary Fig. S3 ). Concept of our understanding of an endometriosis lesion, and the derived tissue segmentation into three subtypes and the ‘blank’ category. Representative example of the automatic tissue segmentation in inForm. The bottom left picture shows manual annotations used as ground truth for training. The bottom right picture depicts the automated segmentation and assignment to the four tissue categories, blank = yellow, PanCK + epithelium = red, CD10 + stroma = green, α-SMA + tissue = blue. Tissue segmentation was performed in inForm, by several iterations of annotating tissue and training the segmenter, up to an accuracy above 95%. This accuracy is reported automatically by inForm and indicates that the pixels in the training regions are classified with 95% accuracy. The number of annotations that was required per category, to achieve this result was two for ‘Blank’, two for CD10 + stroma, three for PanCK + epithelium and six for α-SMA + tissue ( Fig. 4 ). The subsequent tissue segmentation in inForm assigned areas of varying sizes to the ‘blank’ category, excluding them from the segmented tissue. As a consequence, the proportion of tissue that was available for segmentation for OMA was much larger than for DE and the PE lesion ( Table 2 , Supplementary Fig. S4 ). Absolute areas of regions of interest (ROIs) and total segmented tissues (epithelium + stroma + fibrosis) in mm 2 . DE, deep lesions; OMA, ovarian endometrioma; PE, superficial peritoneal. So far, the performance of cell identification of ImmuNet and inForm of 7-plex stains was compared on tumour tissue, demonstrating the superior accuracy of ImmuNet ( van der Hoorn et al. , 2024 ). Here, the cell identification of ImmuNet was visually assessed for correct phenotyping and compared with the inForm phenotyping of CD45 + cells. The procedure of cell segmentation in inForm is described in Supplementary Fig. S1 . ImmuNet showed a satisfying phenotyping, whereas in line with van der Hoorn et al. (2024) inForm showed hypersegmentation (identifying more cells than visible) as well as hyposegmentation (failing to identify visible cells) ( Fig. 5 ). Overall, the image analysis workflow was developed and compared against other options along a well-defined procedure ( Fig. 6 ). Comparison of identification of CD45 + cells (cyan) with ImmuNet and inForm. CD45 + cells identified in ImmuNet are indicated by white dots, in inForm by red dots; other cells identified by inForm are indicated by blue dots. Examples of areas in which inForm yields hyper- and hyposegmentation respectively, in comparison to ImmuNet. Flowchart summarizing the workflow starting from the nine endometriosis formalin-fixed paraffin-embedded (FFPE) samples to the final tissue segmentation and cell identification using InForm, and ImmuNet. The ImmuNet cell identification was compared to that of inForm. The inForm tissue segmentation was used to assess the proportion of tissue subtypes per lesions, and also combined with ImmuNet’s cell identification to derive cell densities per tissue subtype. Rhomboids depict in-/ouputs. Rectangles depict operations. Diamonds depict decision points. Colour codes correspond to the mode of processes, yellow = manual, blue = InForm, magenta = ImmuNet. Finally, we applied the integrated workflow to extract the number of immune cells (CD45 + ) and the fraction of proliferating immune cells (CD45 + /Ki67 + ) for the various tissue subtypes. The ImmuNet cell identifications for all CD45 + immune cells and the part of Ki67 + cells were obtained using an ImmuNet instance trained on tumour tissue, without any further fine-tuning on endometriosis tissue. Combined with the tissue segmentation data from inForm the densities of cells for the total lesions and per tissue category could be analysed. In spite of the limited size of the data set, the difference between the groups of DE and OMA lesions was tested for significance. To determine whether equal or unequal variances should be assumed the ratio of variances was calculated. A ratio below 4 indicated the presence of equal variances. The lowest P -value of 0.11 was found for the proportion of epithelium, which was higher in deep endometriosis lesions in comparison to endometrioma. Except for one DE sample, all lesions were composed of more than 60% fibrotic tissue. The fraction of fibrotic tissue and epithelium showed a relatively small variation amongst the OMA lesions. All other percentages varied considerably across the individual samples ( Fig. 7 ). For the OMA lesions, the density of CD45 + cells in fibrotic tissue was similar to the total density, which is in line with the high fibrotic tissue content. DE and OMA lesions also showed a similar content of CD45 + cells in epithelium. What stands out is the relatively high proportion of Ki67-positive CD45 + cells in the epithelium and stroma of OMA lesions. Overall, the fraction of proliferating CD45 cells was highest in epithelium ( Fig. 8 ). Percentage of tissue compartment areas of the total segmented areas for all nine samples. ( A ) Epithelium as determined by PanCK staining, ( B ) stroma as determined by CD10 staining, and ( C ) fibrotic tissue as determined by α-SMA staining. Solid lines indicate mean, dashed lines indicate upper standard deviation, combined for the DE and OMA samples. Two-tailed t -test for unequal variances performed for all three graphs. The lowest found P -value is reported. Immune cell densities and percentages. ( A – D ) Densities of CD45 + immune cells in (A) total tissue, (B) PanCK-positive epithelium, (C) CD10-positive stroma, and (D) α-SMA-positive fibrotic tissue. ( E – H ) Percentages of CD45 + /Ki67 + proliferating immune cells in (E) total tissue, (F) PanCK-positive epithelium, (G) CD10-positive stroma, and (H) α-SMA-positive fibrotic tissue. Solid line indicates mean, dashed line indicates upper standard deviation, combined for the DE and OMA samples. t -test had been performed to compare DE and OMA groups in all graphs. The lowest found P -value is reported.

Materials

The study protocol was assessed by the METC-Oost Nederland, medical ethics review committee and judged not to be subjected to the Dutch Act on Medical Research Involving Human Subjects. Endometriotic tissue was obtained from adult patients undergoing surgery for the treatment of suspected endometriosis. Tissue used for control IHC-stainings was provided from the Department of Pathology (Radboudumc, Nijmegen, The Netherlands) and obtained from patients undergoing surgery for other indications. Patients either did not opt-out from the research use of their tissue, if operated before April 2022, or if operated later provided informed consent. Sections of 4 µm thickness were prepared from formalin-fixed paraffin-embedded (FFPE) tissue blocks. The sections were transferred on a floating water bath to stretch and minimize creases and captured on either normal glass (VWR, cat# 631-1553, China) for haematoxylin/eosin (HE) staining, or coated Superfrost glass (Epredia, cat# J1800AMNZ, The Netherlands) for IHC and multiplex IF staining. After capturing, excess water was shaken off by hand and the slides were allowed to further drip off in a vertical position. Next, the slides were dried at 57°C for 1 h and subsequently dried at 37°C overnight. HE stainings were performed manually. Sections were deparaffinized in two xylene (Scharlab, cat# XI00551000, Spain) baths for 5 min, followed by dipping in 3 baths of 99% ethanol (J.T. Baker, cat# 8025, Poland), followed by a running water bath. The slides were then stained in haematoxylin for 5 min, followed by 10 min running water bath, followed by 5 min eosin, and again rinsed for an instant in a running water bath. The slides were then dipped in three baths of 99% ethanol and two baths of xylene, and finally mounted with mounting medium (Tissue-Tek, cat# 1408, Poland). IHC with 3,3′-diaminobenzidine (DAB; Dako Omnis, cat# DM827, Singapore) was performed manually. Sections were deparaffinized as above. Next, the sections were subjected to endogenous peroxidase blocking for 10 min, using 3 wt% hydrogen peroxide (Boom, cat# 76051800.1000, The Netherlands) in Tris-buffered saline with Tween20 (TBST; Dako, cat# DM831, Singapore). Next, sections were rinsed in TBST for 10 min on a shaking plate. Heat-induced epitope retrieval (HIER) was performed using Tris/EDTA buffer (Dako Omnis, cat# DM848, Singapore) at pH 9. The sections were microwaved for 2.5 min at 800 W, followed by 10 min at 180 W. Next, the sections were rinsed in TBST for 5 min on a shaking plate. The sections were then surrounded by a hydrophobic PAP pen, and 150 µl of 1% bovine serum albumin in TBST were pipetted on the tissue for a pre-incubation of 10 min. The fluid was shaken off and the sections were incubated with the primary antibodies, at the respective dilutions ( Table 1 ), for 60 min. All antibody incubations were conducted at room temperature in a dark, enclosed box. After fluid removal and rinsing, the sections were incubated with an anti-mouse and anti-rabbit secondary antibody (Dako Omnis, cat# SM802, Singapore) for 30 min. After rinsing, the DAB chromogen was applied, one drop per slide, and incubated for 10 min, followed by rinsing for 1 min in running water. Counterstaining was performed with haematoxylin for 30 s, followed by a running water bath. The sections were then dipped in three baths of 99% ethanol and two baths of xylene, and finally mounted with mounting medium. Antibodies used for both immunohistochemistry-3,3′-diaminobenzidine (IHC-DAB) and immunofluorescence (IF) stainings, and their determined optimal dilution. The first six antibodies are listed in the order of the final multiplex panel. For PanCK, no IHC-DAB was performed. CK7 was replaced by PanCK for the IF stainings. Vimentin was dropped in favour of CD10 as stromal marker. End. = Endometriosis. Country codes compliant to ISO 3166. Sections were deparaffinized as above. They were then washed in TBST for 2 min with agitation. HIER was performed as above, followed by washing with TBST for 2 min with agitation. The fluid was shaken off and the sections were surrounded by a hydrophobic PAP pen. Pre-incubation, antibody incubation, and subsequent rinsing were performed as stated above. The sections were then incubated with a secondary antibody (Akoya BioSciences, Opal Polymer HRP, cat# ARH1001EA, USA) for 30 min. After rinsing for 10 min, 100 µl of the Opal 650 fluorophore (Akoya Biosciences, cat# FP1496001KT) was applied at 1/50 dilution for 10 min. The sections were rinsed and mounted with DAPI Fluoromount-G (SouthernBiotech, cat# 0100-20, USA), and dried in the dark. Automated IF protocols were performed for the monoplex stainings with increasing number of HIER cycles as well as for the multiplex stainings with the finalized multiplex panel. For this, we employed the Opal 7-color Automation IHC Kit (Akoya Biosciences, cat# NEL871001KT) on the BOND RX IHC & ISH Research Platform (Leica Biosystems, USA) as described earlier ( Gorris et al. , 2023 ; Sultan et al. , 2023 ). HIER was conducted using Bond Epitope Retrieval 2 (Leica Biosystems, AR9640) at 95°C for 20 min. Blocking was done using an antibody diluent (included in kit) for 10 min. Primary antibodies were incubated for 1 h and secondary antibodies for 30 min. The respective antibody to Opal fluorophore combinations are listed in Table 1 . For the staining with PanCK combined with Opal 780 the slides were first incubated with the Opal TSA-DIG reagent for 10 min, then washed and then incubated with the Opal 780 fluorophore at 1/25 dilution for 60 min. Finally, the slides were counterstained with DAPI and mounted using Fluoromount-G (SouthernBiotech, cat# 0100-01, USA). The quality of the IF stainings was assessed for the similarity of the signal to the respective IHC-DAB stainings and the autoexposure time as a measure of staining intensity. The autoexposure time was measured using the Vectra Polaris 1.0 Automated Quantitative Pathology Imaging System (Akoya Biosciences). Images were scanned using the Vectra Polaris image scanner (Akoya Biosciences). Relevant region of interests (ROIs) were pre-selected based on HE stainings of the neighbouring serial section to contain only fibrotic tissue, endometriosis stroma, and endometriosis epithelium. Regions containing only fat cells or healthy tissue where endometriosis was growing onto, for example, normal ovarian or bowel structures, were excluded. For this purpose, on PhenoChart Whole Slide Viewer (Akoya Biosciences) ROIs were drawn, which were automatically divided into square tiles. Tiles including non-relevant parts like fat tissue were removed. Within the relevant ROI tiles, 3 to 12 tiles per slide were further used as training images to train the tissue- and cell-segmentation algorithms in the inForm 2.4—Tissue Finder Advanced Image Analysis Software (Akoya Biosciences). We performed the tissue segmentation in inForm such that it would replicate the hierarchical tissue architecture of the glandular structures within endometriotic lesions. The analysis was hierarchical in the sense that a tissue substructure was assigned based on the dominant cell type. Four tissue categories were trained by successively providing manual annotations, assessing the segmentation over all training images, adding more annotations and retraining. The ‘Blank’ category was trained on cell-void background. The tissue segmenter was restricted to use only the components of DAPI, CD10, α-SMA, and PanCK and autofluorescence, CD45, Calretinin and Ki67 were omitted to achieve a segmentation agnostic to these signals. The minimum segment size was set to 2000 pixels. This caused that any smaller segments that would be assigned to a given category, were assigned to the adjacent larger segment. In inForm, the cell identification is performed in two steps, by an initial nucleus segmentation, followed by phenotyping of the assigned cell categories ( Supplementary Fig. S1 ). Fine-tuning of the nucleus segmentation was achieved by limiting the relevant component to the DAPI counterstain, setting the relative nucleus intensity to 0.60, the splitting sensitivity to 0.20, the minimum nucleus size to 30 and the ‘Fill Nuclear Holes’ function to <30. Cell refinement after segmentation was not performed. To train the phenotype identification, a total of 110 CD45 + and 110 other cells were manually annotated, across the bulk of all training images. ImmuNet is a segmentation free machine-learning algorithm which provides the cell location and phenotype, but no information about cell shape. It had been originally designed to phenotype immune cells in cell dense tissue environments, where other algorithms, including inForm tend to struggle ( Sultan et al. , 2023 ; van der Hoorn et al., 2024 ). The resulting data are similar to flow cytometry output, but with added spatial information and is indeed provided in Flow Cytometry Standard (FCS) format. It can therefore be analysed for marker (co-)expression or lack thereof and used to determine the abundance of cells of interest in the whole tissue, or when combined with tissue segmentation data, per tissue category. Here we used an instance of the ImmuNet network ( Gorris et al. , 2022 ) specifically trained to recognize proliferation with Ki67 on lymphocytes (CD3 + and CD20 + ) and tumour cells. To recognize CD45 + cells in our samples we used the network’s CD3 channel. Ki67 signal in our samples was recognized by the network’s Ki67 channel. We used this network without any fine-tuning and being totally naïve to the endometriosis tissue to analyse our batch of nine samples. We then performed a manual gating on the identified cells to discern for CD45 and Ki67 positivity. This gating was then used on all nine samples to derive counts of CD45 + /Ki67 − as well as CD45 + /Ki67 + cells. The groups of four DE and OMA samples were compared by means of two-tailed t -test for either equal or unequal variances. Equal variances were assumed if the factor of the greater to the lesser variance was <4.

Discussion

In this pioneering study, we introduced the combination of multiplex staining and machine-learning-based tissue segmentation and cell identification to endometriosis research using a panel of samples that covered the prominent lesion types. Cell detection was performed with the ImmuNet algorithm, a deep learning AI image algorithm that was trained on multiplex images of tumours. No further training was performed for application to the endometriosis samples which is denoted as a zero-shot approach. At the same time, we present a fully optimized multiplex panel that reports on the most important cells in endometriotic lesions. Implementation of the antibody panel and validation of the image analysis workflow proceeded along well-defined workflows ( Figs 1 and 6 ). In the clinical presentation of endometriosis, which is predominantly a disease presenting with dysmenorrhoea, chronic pelvic pain, and/or subfertility, fibrosis is a key pathological component, influencing both the tissue structure and progression of lesions. Fibrotic tissue, driven by myofibroblast activity and excessive collagen deposition, has been proposed to lead to entrapment of nerves, causing the chronic pain associated with the condition ( Vissers et al. , 2024 ). Thus, not only the presence of epithelial and stromal cells but also fibrotic tissue seems to be a prerequisite in the formation of clinically relevant endometriosis. The machine learning-based tissue segmentation approach based on multiplex IHC we explored here provides a complementary avenue to analyse the distribution and severity of fibrosis in endometriotic lesions. By accurately segmenting fibrotic regions and identifying cell types within these areas, this technique has the potential to achieve insights that can inform therapeutic approaches for managing chronic pain and the impact fibrosis in endometriosis has on fertility. Further developments, including the implementation of additional markers and more fine-grained tissue segmentation approaches, can leverage the potential of this technology in endometriosis even further in the future. The protocol we used for multiplex staining validated antibody dilutions, matching of fluorophores and the optimal sequence of successive antibody incubations. To visualize endometriosis stroma, we initially compared vimentin with CD10. Vimentin had been used early in endometriosis research ( Nisolle et al. , 1995 ; Klemmt et al. , 2006 ) but has since been succeeded by CD10 ( Arafah et al. , 2021 ; Bergman-Larsson et al. , 2022 ) because of its higher specificity for endometrial stromal cells. Our comparison confirmed this notion and supported the choice for CD10 ( Fig. 2 ). CK7 is an established marker for endometrial epithelium ( Jiang et al. , 2013 ; Istrate-Ofiţeru et al. , 2022 ). PanCK is a broad spectrum cytokeratin marker containing the monoclonal AE1/AE3 and 5D3 antibodies, of which the latter also stains CK7 ( Lin et al. , 2011 ) and thus endometrial epithelium ( Fig. 3 ). We decided to replace CK7 for PanCK because of our group’s experience with these antibodies in other multiplex panels ( van der Woude et al. , 2022 ). As detailed above, we only observed very little overlap of calretinin and PanCK-positive structures. Thus, we consider this decision a valid choice. A subset of our panel, complemented with markers to probe for lymph vessels and vascularization was employed for multiplex IHC of endometrium and myometrium of patients with adenomyosis ( Harmsen et al. , 2022 ). In addition to demonstrating the value of simultaneous quantification of key tissue structures, the combination of tissue segmentation with cell identification, as conducted here, provides a deeper understanding of cell densities in relation to tissue substructure as demonstrated for dividing immune cells. The analysis of the stained and scanned samples started with the manual selection of ROIs that only contained glandular structures comprising epithelium and stroma, and adjacent fibrosis. This pre-selection was useful as it allowed for the categorization of all α-SMA + tissue, surrounding CD10 + and PanCK + tissue, as fibrosis. An alternative would be to add more tissue categories to the tissue segmenter to capture any irrelevant tissue fragments that would not fit into the three categories, plus the ‘blank’ category. However, this approach proved to be difficult as adding more than four tissue categories exceeded the available computing power during training of the inForm segmenter. In the future, it will be important to further define standards on how to perform the manual pre-selection. Histological sections of endometriosis lesions are very heterogenous and the proportion of epithelium to stroma to fibrotic tissue can vary strongly. We manually preselected those parts of the sections that contained fibrotic tissue, endometriosis stroma and endometriosis epithelium, thereby excluding fatty tissue. Given the heterogeneity of lesions in terms of size, which is further affected by processing during acquisition of the biopsy and histological procedures, analyses with respect to cell numbers per area per tissue type are more informative than total cell counts ( McKinnon et al. , 2022 ). One drawback on relying on the cytosolic α-SMA signal for fibrosis segmentation was the presence of unstained perforations in cell sparse parts that originally contained collagen deposits. These areas tended to be assigned to the ‘blank’ category, trained on cell void background ( Supplementary Fig. S5 ). Fibrosis is characterized by α-SMA + myofibroblasts that produce collagen at a rate exceeding its breakdown. In endometriosis, this collagen production proceeds in the absence of intervention ( Huang et al. , 2022 ). Fibrotic regions can increase in collagen and other extracellular matrix proteins over time ( Wynn, 2007 ). It is therefore possible that the area of such blank spaces might correlate with lesion age or severity of symptoms ( Odagiri et al. , 2009 ; Zhang et al. , 2016 ). Future developments should thus aim to also quantitate these tissue parts. Possibilities could be (i) the inclusion of a collagen marker in the panel or (ii) a collagen-specific Masson’s trichrome staining of an adjacent section to derive the fibrosis outline. We saw that after tissue segmentation, the combined tissue areas of epithelium, stroma and fibrosis, were less amongst the DE and PE lesions ( Table 2 ). This means that effectively less tissue was available for the consecutive cell identification, compared to the OMA lesions. This could be attributed to a higher amount of fat tissue within the DE and PE lesions, which laid within the selected ROIs and hence was not removed during the manual pre-selection. In the analysis of CD45 + cell density, the DE2 lesion spiked out with a high density in the total and fibrotic tissue ( Fig. 8 ). At closer examination of the staining, we observed several CD45 + cell-dense nodes, resembling tertiary follicular structures (TLS). However, the density of proliferative Ki67 + /CD45 + cells was the lowest in the DE2 lesion ( Fig. 8 ). The observation of TLS in an endometriotic lesion has been reported earlier. TLS are composed of B- and T-cells ( Tan et al. , 2022 ). For a better understanding and comparison between lesions, it might be beneficial to regard TLS and infiltrating immune cells separately. This could be achieved by filtering out TLS from the multiplex image using the CD45 channel, for example by including a separate category for high-density CD45 + regions, before continuing with the tissue and cell segmentation. In this study, we were interested in distinguishing the main histological structures of endometriosis lesions. Future studies should zoom in more on the frequency and distribution of various immune cells. We will particularly be interested in addressing macrophage (subsets) as these have been implicated in the progression as well as resolution of fibrotic changes ( Gorris et al. , 2023 ). The ImmuNet cell segmentation was performed using a version that was previously trained to recognize immune cells in tumours, stained with a different antibody panel. No additional training was performed, meaning that the network was naïve to our endometriosis samples. The ability of ImmuNet to perform cell phenotyping on tissue types that were not part of its training set underlines the potential of the method for heterogenous endometriosis samples. The fundamental superiority of ImmuNet above inForm, in the accuracy of cell detection has been proven earlier in the work of van der Hoorn ( van der Hoorn et al. , 2024 ). Based on this, we visually assessed ImmuNet’s performance on our stainings. Taken together, we have taken the first step in the combination of multiplex staining with machine learning-based cell detection in endometriosis research. Starting from the solid base of our optimized multiplex panel we were able to distinguish main tissue subtypes and perform a quantification of cells within these areas. Furthermore, we gained valuable insights for future refinements of the presented protocol such as specific identification of collagen-rich structures and tertiary follicular structures.

Text is read by the "Ask this paper" AI Q&A widget below. Extraction quality varies by source — PMC NXML preserves structure cleanly, OA-HTML may include some navigation residue, and OA-PDF can have broken hyphenation. The publisher copy (via DOI) is the canonical version.

My notes (saved in your browser only)

Ask this paper AI returns verbatim quotes from the full text · source: pmc

Answers must be backed by verbatim quotes from this paper's full text. Hallucinated quotes are dropped automatically; if no verbatim passage answers the question, we say so. How this works

Condition tags

endometriosis

MeSH descriptors

Artificial Intelligence Artificial Intelligence Artificial Intelligence Artificial Intelligence Artificial Intelligence Artificial Intelligence Artificial Intelligence Artificial Intelligence Artificial Intelligence Artificial Intelligence Artificial Intelligence Artificial Intelligence Artificial Intelligence Endometriosis Endometriosis Endometriosis Endometriosis Endometriosis Endometriosis Endometriosis

Citation neighborhood (no data yet)

We don't have any in-corpus citations linked to this paper yet. This is a recent paper (2025) — citers typically take a year or two to land, and the OpenAlex reference graph may still be filling in.

Source provenance

europepmc
last seen: 2026-06-12T06:13:51.797165+00:00
pmc
last seen: 2026-05-13T20:22:03.195721+00:00
pubmed
last seen: 2026-05-20T00:32:00.971885+00:00
unpaywall
last seen: 2026-05-11T08:34:28.763810+00:00
License: CC-BY-NC-4.0 · commercial use OK · attribution required
Courtesy of the U.S. National Library of Medicine