Skip to main content

This is a preprint.

It has not yet been peer reviewed by a journal.

The National Library of Medicine is running a pilot to include preprints that result from research funded by NIH in PMC and PubMed.

medRxiv logoLink to medRxiv
[Preprint]. 2025 Feb 19:2025.02.13.25322244. [Version 2] doi: 10.1101/2025.02.13.25322244

Comorbidity analysis and clustering of endometriosis patients using electronic health records

Umair Khan 1,2, Tomiko T Oskotsky 1, Bahar D Yilmaz 3, Jacquelyn Roger 2, Ketrin Gjoni 4, Juan C Irwin 3, Jessica Opoku-Anane 5, Noémie Elhadad 6, Linda C Giudice 3, Marina Sirota 1
PMCID: PMC11844609  PMID: 39990556

Abstract

Endometriosis is a prevalent, complex, inflammatory condition associated with a diverse range of symptoms and comorbidities. Despite its substantial burden on patients, population-level studies that explore its comorbid patterns and heterogeneity are limited. In this retrospective case-control study, we analyzed comorbidities from over forty thousand endometriosis patients across six University of California medical centers using de-identified electronic health record (EHR) data. We found hundreds of conditions significantly associated with endometriosis, including genitourinary disorders, neoplasms, and autoimmune diseases, with strong replication across datasets. Clustering analyses identified patient subpopulations with distinct comorbidity patterns, including psychiatric and autoimmune conditions. This study provides a comprehensive analysis of endometriosis comorbidities and highlights the heterogeneity within the patient population. Our findings demonstrate the utility of EHR data in uncovering clinically meaningful patterns and suggest pathways for personalized disease management and future research on biological mechanisms underlying endometriosis.

Keywords: endometriosis, electronic health records, comorbidities, unsupervised clustering

Introduction

Endometriosis is a chronic and often debilitating inflammatory and systemic condition that affects millions of individuals worldwide.1 It is characterized by the presence of endometrial-like tissue outside the uterus, leading to inflammation, scarring, and adhesions.2 Endometriosis is estimated to affect approximately 10% of reproductive-aged individuals with a uterus, making it a significant public health concern. The condition is associated with a wide range of symptoms, including chronic pelvic pain, infertility, dysmenorrhea, and gastrointestinal disorders, all of which contribute to a substantial burden on patients’ quality of life.3

Despite its prevalence, diagnosing and managing endometriosis remains challenging due in part to wide variability in manifestation. Patients often take years to reach a diagnosis, during which symptoms are frequently misattributed to other conditions and disease can progress.4 Even though many clinicians use clinical judgment to diagnose and initiate treatment, the diagnostic delay is often further influenced by the reliance on surgery for definitive diagnosis. Furthermore, treatment options are complex and response rates are variable. While hormonal therapies and surgical interventions can provide symptom relief, they are associated with side effects and a high likelihood of symptom recurrence.5 Beyond these clinical hurdles, endometriosis imposes a substantial psychosocial burden on patients, who may face stigma, invalidation of their pain, and diminished quality of life.6

Although many smaller studies have provided valuable insights into endometriosis’ heterogeneity710, they often cannot capture broad population-level features that characterize the disease. Electronic health records (EHRs) offer an opportunity to study large patient populations and uncover patterns that may not be apparent in smaller-scale studies.11 By leveraging this data, researchers can identify trends and associations that might otherwise go unnoticed. The application of EHRs to study endometriosis is particularly promising, as it allows for a more comprehensive examination of the disease and its comorbidities in diverse and extensive patient populations.

Prior studies investigating endometriosis using EHRs have highlighted their potential for providing insights into the condition. For instance, Choi et al. analyzed patient information from South Korea’s Health Insurance Review and Assessment data and found 44 ICD-10 codes that were significantly associated with endometriosis.12 Also, Estes et al. examined administrative health claims data from Optum’s Clinformatics DataMart to compare the incidence of mental health outcomes in patients in the United States with and without endometriosis, finding an increased risk for anxiety, depression, and self-directed violence.13 However, these studies focus on specific aspects of the disease, such as particular classes of comorbidities or certain patient subpopulations, and do not attempt to validate their findings across independent data sources. Along similar lines, Urteaga et al. used patient-reported data from a smartphone app to identify subtypes of endometriosis.14 Though not built around structured EHR data, this work demonstrates the utility of data-driven methods in characterizing this complex disease.

In this work, we aim to address these gaps by analyzing the comorbidities of endometriosis patients across multiple medical centers. Specifically, we examine data from the University of California, San Francisco (UCSF), and five other UC medical centers, utilizing odds ratio analysis and unsupervised clustering techniques to identify and characterize patterns of diagnoses associated with endometriosis (Figure 1a). Our analysis compares endometriosis patients with matched controls, considering both pre-endometriosis conditions and diagnoses across the full patient timeline. Clustering is then performed on the endometriosis patients to identify subgroups that may reflect different disease trajectories or phenotypes. This dual focus enables us to capture the overall landscape of endometriosis comorbidities compared to controls, while also examining the heterogeneity within the endometriosis patient population. By uncovering these patterns, we aim to contribute to a more comprehensive understanding of endometriosis, its clinical features, and its impact on patient health.

Figure 1.

Figure 1.

Study overview. (a) Overview of study design. Endometriosis patients were selected from electronic medical records by diagnoses. We then (1) compute odds ratios for comorbidities by comparing against matched controls, and (2) identify groupings of endometriosis patients using unsupervised clustering. (b) Details of patient selection process. We select cases using the “endometriosis” concepts from the OMOP concept hierarchy, and match against controls from the non-endometriosis population using propensity score matching on both demographic and healthcare utilization covariates.

Methods

Patient selection and timeline definition

Patients were selected from two separate de-identified EHR databases, both of which conform to the Observational Medical Outcomes Partnership15 (OMOP) Common Data Model16 (CDM) schema. We initially performed our analysis using UCSF’s records, which run from 1988 and comprise over 5.5 million patients. We then expanded our scope to the University of California’s Health Data Warehouse (UCHDW), which aggregates medical records from over 8 million patients seen at six University of California medical centers, spanning 2012 to the present day. We explicitly excluded UCSF patients from our UCHDW queries to avoid patient overlap (Figure 1b).

We defined endometriosis cases as patients who at any point in their medical history were assigned at least one of the 49 standard Systematized Nomenclature of Medicine (SNOMED) condition IDs descended from “endometriosis” in OMOP’s concept hierarchy (Supplementary Table 1). Conversely, we identified a background population by selecting patients who have at least one condition and were never diagnosed with endometriosis. We selected controls via 1:1 propensity score matching against cases on age, gender, race, and ethnicity (and location for UCHDW patients) using the MatchIt17 package in R (version 4.5.5, nearest neighbor method) (Supplementary Figure 1). We also selected groups of healthcare utilization matched controls by adding number of visits and record duration as additional covariates for matching. These utilization-matched controls were used to filter significant associations, as explained in the following sections.

Our initial analysis considers all diagnoses across any given patient’s record. To examine the pattern of comorbidities observed prior to endometriosis, we repeat the following methods using only patients with conditions assigned prior to their first endometriosis diagnosis, and their matched controls. We restrict the condition set to those that appear in the record before the first endometriosis condition, or conditions assigned at any time to the remaining matched controls.

Association analysis

For each of the SNOMED conditions ever assigned to a patient, we calculated the odds ratio between cases and controls and computed a p-value by the hypergeometric test (or Fisher’s exact test if any counts were less than five). To determine significantly enriched conditions, we compared the p-values against a Bonferroni-corrected threshold with = 0.05.

To ensure our significantly enriched conditions are robust to variation in the selected control patients, we repeat this process across thirty separately selected control groups. We then aggregate results by computing the mean odds ratio and a new p-value, defined as twice the mean p-value across the thirty control iterations.18

In addition, we account for healthcare utilization in our analysis by repeating the procedure using control groups matched on utilization covariates, as described in the previous section. A condition is considered significant if it is first identified in the non-utilization-matched comparison and remains significant after adjusting for healthcare utilization. This approach eliminates conditions that appear significant solely due to increased healthcare interactions, while minimizing false protective associations from control patients with higher overall healthcare needs.

Clustering and cluster enrichment

To identify clusters of endometriosis patients, we first construct a matrix where each row represents an endometriosis patient, and each column represents a condition. An entry is set to 1 if the corresponding patient has the given condition, and 0 otherwise. To identify clusters, we applied principal component analysis to this matrix to reduce each patient’s representation down to 1,000 dimensions, explaining ~80% of the variance. We then constructed a neighborhood graph and applied the Leiden community detection algorithm19 using scanpy20. To examine each of the resulting clusters, we perform the odds ratio analysis procedure described previously, with the “cases” being endometriosis patients in the cluster under consideration and the “controls” being patients in all other clusters. We then identify significantly enriched conditions that are exclusive to each cluster.

Comparing data sources

We compared both the association and clustering analyses across the two data sources. For the association analysis, we first found the intersection of significantly enriched conditions across the two data sources and then computed the Pearson correlation coefficient and associated p-value between the log-odds ratios of those conditions. For the clustering analysis, we matched each cluster found at UCSF to the UCHDW cluster with the most overlapping significant conditions (Figure 3a), if there was one, and visualized the results as a bipartite graph. Note that only clusters that have overlapping conditions between the two data sources are visualized in the graphs.

Figure 3.

Figure 3.

Clustering overview and results, all conditions. (a) Overview of clustering process. From the initial matrix of diagnoses, a nearest neighbors graph is constructed based on patient-to-patient distances. The Leiden algorithm is then applied to this graph. Each cluster from UCSF is matched to the UC-wide cluster with the greatest proportion of overlapping significantly enriched conditions. (b) Visualization of clusters computed using all diagnoses overlaid on two-dimensional UMAP representations of endometriosis patients, at UCSF and UC-wide. (c) Concordance between UCSF and UC-wide clusters. Node and edge properties map to cluster characteristics as specified in the legend.

Visualizations

We applied the Uniform Manifold Approximation and Projection (UMAP) algorithm21 to the diagnosis matrix like the one used for the clustering analysis but including all endometriosis patients and their closest matched controls, to visualize the comorbidity structure. We used Cytoscape22 to construct the bipartite graph visualizations and associated legends for the clustering comparison between the two data sources. All other illustrations were created with BioRender, and all other data visualizations were generated using matplotlib.23 To annotate SNOMED concepts with ICD chapter labels for visualization, we used the SNOMED CT to ICD-10-CM Map provided in the Unified Medical Language System created by the National Library of Medicine.24

Results

Patient characteristics

We identified a total of 19,059 endometriosis patients at UCSF and an additional 24,453 endometriosis patients across UCHDW (Table 1). These patients had a mean age of 52.6 years at UCSF and 46.5 years in the UCHDW. In both data sources, endometriosis patients were predominantly white (51.7% at UCSF, 53.9% in the UCHDW) with “Asian” and “other” being the next two most common classifications. Similarly, most patients (76.1% at UCSF, 71.8% in the UCHDW) were identified as not Hispanic or Latino. Most of our UCHDW patients come from records at two large centers (44.6% and 24.8%, respectively) with the remaining being split across the three other centers.

Table 1.

Patient characteristics at UCSF and across the other UC medical centers analyzed.

UCSF UC-wide
total (n) 19059 24453
age (mean, sd) 52.6 (sd 14.3) 46.5 (sd 11.9)
gender
 female 18995 (99.6%) 24411 (99.8%)
 male 36 (0.2%) 34 (0.1%)
 unknown 21 (0.1%) 6 (0.0%)
 other 7 (0.0%) 2 (0.0%)
race
 white 9859 (51.7%) 13168 (53.9%)
 Asian 2980 (15.6%) 2767 (11.3%)
 other 2327 (12.2%) 3170 (13.0%)
 unknown 2150 (11.3%) 2628 (10.7%)
 Black or African American 1105 (5.8%) 1404 (5.7%)
 Native Hawaiian or Other Pacific Islander 491 (2.6%) 121 (0.5%)
 American Indian or Alaska Native 147 (0.8%) 112 (0.4%)
 multirace - 1083 (4.4%)
ethnicity
 Not Hispanic or Latino 14502 (76.1%) 17560 (71.8%)
 unknown 2570 (13.5%) 2378 (9.7%)
 Hispanic or Latino 1987 (10.4%) 4515 (18.5%)
location
 UC center #1 - 10901 (44.6%)
 UC center #2 - 6069 (24.8%)
 UC center #3 - 3638 (14.9%)
 UC center #4 - 2986 (12.2%)
 UC center #5 - 859 (3.5%)

Association analysis across the full condition set identifies diverse range of comorbidities, consistent across multiple medical centers

When considering the full condition set, our analysis revealed 661 significantly enriched (aggregated adjusted p-value < 0.05) comorbidities at UCSF spanning across nearly all ICD chapters (Figure 2a), reflecting the diverse clinical presentations associated with endometriosis (Supplementary Table 2). Among the most significantly enriched conditions were uterine adenomyosis (OR = 181), pelvic peritoneal adhesions (OR = 51.1), non-inflammatory disorders of the female genital organs (OR = 30.2), pain in female pelvis (OR = 26.3), and cyst of ovary (OR = 16), all of which were also significant in the UCHDW (Figure 2b). We also see significant enrichments for female infertility (OR = 5) and general autoimmune disease (OR = 4.3), consistent with prior literature on endometriosis-associated infertility25 and systemic inflammation26. Interestingly, we identified several conditions less commonly reported in smaller studies, including migraines2729 (OR = 4), gastroesophageal reflux disease30 (OR = 3.6), asthma31 (OR = 2.5), and vitamin D deficiency32 (OR = 3.8). We found that 302 conditions of these conditions (45% of the complete set) were significantly enriched in the UCHDW data as well (Supplementary Table 3), with statistically significant correlation of the log-odds ratios (Pearson r = 0.864 and p = 2.38 × 10^−91) (Figure 2c).

Figure 2.

Figure 2.

Comorbidity analysis and validation. (a) Manhattan plots of comorbidities observed at UCSF, organized by ICD chapter. (b) Strip plots of top twenty comorbidities (by aggregate p-value) observed at UCSF, showing computed odds ratios across thirty replicate control groups. (c) Comparison to UC-wide analysis, showing number of significant overlapping comorbidities and concordance of odds ratios for overlapping conditions.

Association analysis across the pre-endometriosis condition set emphasizes genitourinary conditions

When considering the pre-endometriosis condition set, our analysis revealed 106 significantly enriched (aggregated adjusted p-value < 0.05) comorbidities at UCSF (Supplementary Table 4). These conditions span a narrower range of ICD chapters, with most enriched conditions falling into those spanning the genitourinary system, related symptoms, and neoplasms (Figure 2a). Among the most significantly enriched conditions were cyst of ovary (OR = 6.6), dysmenorrhea (OR = 8.3), female genital organ symptoms (OR = 4.9), disorder of female genital organs (OR = 4.3), and pain in female pelvis (OR = 15.2) (Figure 2b). We also see a significant enrichment for increased cancer antigen 125 (OR = 17.9), consistent with prior literature describing the relationship between this biomarker and endometriosis.33 Interestingly, the association between migraines and endometriosis remained significant even prior to the diagnosis of endometriosis (OR = 2). We found that 34 of these conditions (32% of the complete set) were significantly enriched in the UCHDW data as well (Supplementary Table 5), with statistically significant correlation of the log-odds ratios (Pearson r = 0.865 and p = 4.00 × 10^−11) (Figure 2c). The pre-endometriosis analysis in the UCHDW dataset found several notable negative associations, with odds ratios less than one, including hyperlipidemia (OR = 0.67) and mixed hyperlipidemia (OR = 0.67).

Clustering analysis identifies endometriosis patient subpopulations

Our unsupervised clustering analysis identified distinct subpopulations of endometriosis patients, characterized by shared diagnosis patterns. Specifically, we identified 21 clusters in the UCSF cohort and 26 clusters in the UCHDW cohort when analyzing the full condition set (Figure 3b). Similarly, the pre-endometriosis condition set yielded 31 clusters at UCSF and 41 clusters in the UCHDW cohort (Figure 4a). These clusters revealed diverse patterns of comorbidities, with some clusters being dominated by autoimmune disorders, others by pregnancy complications, and still others by psychiatric conditions. Annotation of clusters suggested biologically and clinically meaningful subgroupings, which may reflect underlying heterogeneity in the disease’s pathophysiology or healthcare utilization patterns. Comparing cluster concordance across our two independent datasets, we saw UC-wide clusters highlighted by pregnancy and cancer-related conditions when considering all diagnoses (Figure 3c), and pregnancy and urinary tract conditions when considering pre-endometriosis diagnoses (Figure 4b). Clusters at UCSF also highlighted a number of other disease categories, including skin disorders, renal disorders, and mental health conditions.

Figure 4.

Figure 4.

Clustering results, pre-endometriosis conditions. (a) Visualization of clusters computed using pre-endometriosis diagnoses overlaid on two-dimensional UMAP representations of endometriosis patients, at UCSF and UC-wide. (b) Concordance between UCSF and UC-wide clusters. Node and edge properties map to cluster characteristics as specified in the legend. (c) Alluvial plot showing change in cluster membership when considering pre-endometriosis and all diagnoses at UCSF.

In addition to a strong concordance of associations when comparing pre-endometriosis diagnoses to all diagnoses (Supplementary Figure 3), analysis of the patient clusters at UCSF reveals that certain groups of patients remain consistently clustered across both condition sets (Figure 4c). This suggests that these groups of patients, initially assigned to pre-endometriosis clusters associated with hyperlipidemia, mental health conditions, pregnancy, and anemia, might experience similar clinical trajectories after their endometriosis diagnosis.

Discussion

Our analysis of comorbidities in endometriosis patients highlights findings that align closely with previous investigations. Many of the observed associations between endometriosis and its comorbidities, such as chronic pain conditions34 and gastrointestinal diseases35, are consistent with established literature. In addition, our analysis identified several less-frequently reported associations, demonstrating the power of this data-driven approach. For instance, the protective associations with hyperlipidemia and mixed hyperlipidemia in the UCHDW dataset are particularly interesting in the context of a body of literature identifying statins as potential therapeutic avenues for endometriosis3639, since patients with these conditions are likely taking statins as treatment. Similarly, the repeated appearance of migraines as a significant association, both before and after endometriosis diagnosis, underscores the emerging concept of repurposing drugs from comorbidities to treat endometriosis pain – in a recent study, Fattori et al. showed that a migraine drug decreased disease burden and pain in a mouse model of endometriosis.40 These results provide further evidence of the broad and multifaceted clinical impact of endometriosis, underscoring the importance of a comprehensive approach to its management.

Notably, many of these associations replicated across two separate data sources and time periods, reinforcing the robustness of our findings. This replication suggests that the observed patterns are not artifacts of a single dataset or limited to a specific population but instead represent generalizable trends across diverse healthcare environments. Such consistency enhances the credibility of our results and their relevance to broader patient populations.

Through unsupervised clustering, we identified distinct subpopulations of endometriosis patients characterized by unique patterns of comorbidities. These clusters reveal novel insights into the heterogeneity of endometriosis, suggesting that patients may fall into clinically meaningful subgroups based on their associated diagnoses. Importantly, some of these subpopulations also replicated across different datasets and time periods, further supporting the validity of our approach. These findings may serve as a foundation for future studies aiming to tailor treatments or management strategies to specific patient subgroups. For instance, these subgroups may be associated with differing patterns of drug utilization, providing a starting point for examining patient outcomes.

Our study has several strengths worth highlighting. First, the use of data from multiple medical centers and time periods allows for a more comprehensive and generalizable analysis of endometriosis and its comorbidities. Second, the robust control replication method employed in our analyses mitigates the risk of false-positive associations, which is often a concern with studies of this nature. Finally, our use of EHR data provides a valuable perspective on real-world population patterns, which can inform clinical practice and policy.

Limitations of the study

As with any research leveraging EHRs, our analysis is subject to inherent data issues, including missingness, patients moving between healthcare systems, and coding differences across institutions. Additionally, our selection criteria were deliberately permissive, as we defined endometriosis cases based on EHR-documented diagnoses rather than surgically confirmed cases. While this approach maximized the size and diversity of our sample, it may have introduced misclassification bias. Moreover, the case-control design of our study precludes any conclusions about causality or temporality in the observed associations. Our analysis is also geographically constrained, being limited to medical centers in California, which may limit the applicability of our findings to other regions or populations. In particular, populations with limited access to care or inadequate insurance coverage may experience very different outcomes.

Despite these limitations, our study provides valuable insights into the comorbidities and heterogeneity of endometriosis. By leveraging data from multiple institutions and time periods, employing robust statistical analysis methods, and considering the impact of healthcare utilization patterns on EHR data, we address several of the challenges inherent to EHR-based research. Our findings contribute to a growing body of evidence that underscores the complexity of endometriosis and highlights the potential for EHR data to advance our understanding of this condition on a population level.

Conclusions

Our study provides a comprehensive analysis of endometriosis comorbidities using large-scale EHR data from multiple medical centers. By comparing endometriosis patients to matched controls, we captured both the broad range of associated comorbidities and the specific patterns preceding diagnosis. Importantly, our clustering analysis revealed meaningful subgroups within the endometriosis patient population, highlighting the heterogeneity of the condition and suggesting potential pathways for personalized management strategies.

The replication of key findings across two independent datasets reinforces the robustness and generalizability of our results. This consistency underscores the value of leveraging EHR data to study complex, heterogeneous conditions like endometriosis at scale. However, our findings also emphasize the challenges inherent in analyzing real-world data, such as biases introduced by healthcare utilization patterns and limitations in diagnostic coding.

Looking ahead, our work lays a foundation for future studies to explore further relationships between endometriosis and its comorbidities, as well as the biological mechanisms underlying the observed heterogeneity. Integrating genomic, clinical, and patient-reported data with EHR-based findings may further enhance our understanding and ultimately support the development of targeted diagnostic tools and treatment strategies, including with novel machine learning approaches. By advancing knowledge of endometriosis and its comorbidities, this research contributes to ongoing efforts to improve patient care, reduce diagnostic delays, and address the significant burden of this disease.

Resource availability

Lead contact

Requesters for further information and resources should be directed to and will be fulfilled by the lead contact, Marina Sirota (marina.sirota@ucsf.edu).

Materials availability

This study did not generate any new materials.

Data and code availability

The data that support the findings of this study are not openly available to individuals unaffiliated with UCSF due to the sensitivity of medical records, with the exception of collaborators. Individuals not affiliated with UCSF may set up an official collaboration with a UCSF-affiliated investigator by reaching out to the lead contact, Marina Sirota (marina.sirota@ucsf.edu). UCSF-affiliated individuals may contact UCSF’s Clinical and Translational Science Institute (ctsi@ucsf.edu) or the UCSF’s Information Commons team for more information (info.commons@ucsf.edu). UC-wide data is only available to UC researchers who have completed analyses in their respective UC first and have provided justification for scaling their analyses across UC health centers. Censored code for the analysis and visualizations in this study can be found at https://github.com/khanu263/comorbidities-clustering-endo.

Supplementary Material

Supplement 1

Document S1. Supplementary Figures 1–3.

media-1.docx (3.5MB, docx)
Supplement 2

Supplementary Table 1. Excel file containing SNOMED concepts used to define endometriosis patients.

media-2.xlsx (18.5KB, xlsx)
Supplement 3

Supplementary Table 2. Excel file containing conditions significantly associated with endometriosis at UCSF across the full patient timeline, across thirty control iterations and after filtering through the healthcare utilization-adjusted analysis.

media-3.xlsx (60.6KB, xlsx)
Supplement 4

Supplementary Table 3. Excel file containing conditions significantly associated with endometriosis across both the UCSF UCHDW datasets, using the full patient timeline.

media-4.xlsx (37.9KB, xlsx)
Supplement 5

Supplementary Table 4. Excel file containing conditions significantly associated with endometriosis at UCSF using only pre-endometriosis diagnoses, across thirty control iterations and after filtering through the healthcare utilization-adjusted analysis.

media-5.xlsx (35.6KB, xlsx)
Supplement 6

Supplementary Table 5. Excel file containing conditions significantly associated with endometriosis across both the UCSF UCHDW datasets, using only pre-endometriosis diagnoses.

media-6.xlsx (26.7KB, xlsx)

Acknowledgements

The authors would like to thank Parker Grosjean, Duncan Muir, Chimno Nnadi, Michael Keiser, Stacey Missmer, Christina Theodoris, Tony Capra, and all members of the Sirota Lab for insightful conversations and guidance throughout the preparation of this work. This manuscript was supported by the Eunice Kennedy Shriver National Institute for Child Health and Human Development, P01HD106414 (UK, TTO, JCI, JO, LCG, MS), and the National Institute of General Medical Sciences, T32GM067547 (UK) and T32GM142516 (KG).

Footnotes

Declaration of interests

L.C.G. is a consultant to Myovant Sciences, Gensyta Pharma, Celmatix, NextGen Jane, and Chugai Pharmaceutical Co. The remaining authors declare no competing interests.

Declaration of generative AI and AI-assisted technologies in the writing process

During the preparation of this work the authors used ChatGPT 4o (released May 13, 2024 by OpenAI) in order to turn section outlines into complete initial drafts, and for refining language and improving readability. After using this tool, the authors reviewed and edited the content as needed, and we take full responsibility for the content of the publication.

References

  • 1.Zondervan KT, Becker CM, Missmer SA. Endometriosis. N Engl J Med. 2020;382(13):1244–1256. doi: 10.1056/NEJMra1810764 [DOI] [PubMed] [Google Scholar]
  • 2.Zondervan KT, Becker CM, Koga K, Missmer SA, Taylor RN, Viganò P. Endometriosis. Nat Rev Dis Primer. 2018;4(1):1–25. doi: 10.1038/s41572-018-0008-5 [DOI] [PubMed] [Google Scholar]
  • 3.Nnoaham KE, Hummelshoj L, Webster P, et al. Impact of endometriosis on quality of life and work productivity: a multicenter study across ten countries. Fertil Steril. 2011;96(2):366–373.e8. doi: 10.1016/j.fertnstert.2011.05.090 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 4.Ballard K, Seaman H, De Vries C, Wright J. Can symptomatology help in the diagnosis of endometriosis? Findings from a national case–control study—Part 1. BJOG Int J Obstet Gynaecol. 2008;115(11):1382–1391. doi: 10.1111/j.1471-0528.2008.01878.x [DOI] [PubMed] [Google Scholar]
  • 5.Becker CM, Gattrell WT, Gude K, Singh SS. Reevaluating response and failure of medical treatment of endometriosis: a systematic review. Fertil Steril. 2017;108(1):125–136. doi: 10.1016/j.fertnstert.2017.05.004 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 6.Simoens S, Dunselman G, Dirksen C, et al. The burden of endometriosis: costs and quality of life of women with endometriosis and treated in referral centres. Hum Reprod. 2012;27(5):1292–1299. doi: 10.1093/humrep/des073 [DOI] [PubMed] [Google Scholar]
  • 7.Kvaskoff M, Mu F, Terry KL, et al. Endometriosis: a high-risk population for major chronic diseases? Hum Reprod Update. 2015;21(4):500–516. doi: 10.1093/humupd/dmv013 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 8.Pearce CL, Templeman C, Rossing MA, et al. Association between endometriosis and risk of histological subtypes of ovarian cancer: a pooled analysis of case–control studies. Lancet Oncol. 2012;13(4):385–394. doi: 10.1016/S1470-2045(11)70404-1 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 9.Nielsen NM, Jørgensen KT, Pedersen BV, Rostgaard K, Frisch M. The co-occurrence of endometriosis with multiple sclerosis, systemic lupus erythematosus and Sjögren syndrome. Hum Reprod. 2011;26(6):1555–1559. doi: 10.1093/humrep/der105 [DOI] [PubMed] [Google Scholar]
  • 10.Caserta D, Mallozzi M, Pulcinelli FM, Mossa B, Moscarini M. Endometriosis allergic or autoimmune disease: pathogenetic aspects - a case control study. Clin Exp Obstet Gynecol. 2016;43(3):354–357. doi: 10.12891/ceog2122.2016 [DOI] [PubMed] [Google Scholar]
  • 11.Casey JA, Schwartz BS, Stewart WF, Adler NE. Using Electronic Health Records for Population Health Research: A Review of Methods and Applications. Annu Rev Public Health. 2016;37:61–81. doi: 10.1146/annurev-publhealth-032315-021353 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 12.Choi EJ, Cho SB, Lee SR, et al. Comorbidity of gynecological and non-gynecological diseases with adenomyosis and endometriosis. Obstet Gynecol Sci. 2017;60(6):579–586. doi: 10.5468/ogs.2017.60.6.579 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 13.Estes SJ, Huisingh CE, Chiuve SE, Petruski-Ivleva N, Missmer SA. Depression, Anxiety, and Self-Directed Violence in Women With Endometriosis: A Retrospective Matched-Cohort Study. Am J Epidemiol. 2021;190(5):843–852. doi: 10.1093/aje/kwaa249 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 14.Urteaga I, McKillop M, Elhadad N. Learning endometriosis phenotypes from patient-generated data. Npj Digit Med. 2020;3(1):1–14. doi: 10.1038/s41746-020-0292-9 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 15.OHDSI – Observational Health Data Sciences and Informatics. Accessed December 19, 2024. https://ohdsi.org/ [Google Scholar]
  • 16.OMOP Common Data Model. Accessed December 19, 2024. https://ohdsi.github.io/CommonDataModel/index.html [Google Scholar]
  • 17.Ho D, Imai K, King G, Stuart EA. MatchIt: Nonparametric Preprocessing for Parametric Causal Inference. J Stat Softw. 2011;42:1–28. doi: 10.18637/jss.v042.i08 [DOI] [Google Scholar]
  • 18.Vovk V, Wang R. Combining p-values via averaging. Published online October 8, 2019. doi: 10.48550/arXiv.1212.4966 [DOI] [Google Scholar]
  • 19.Traag VA, Waltman L, van Eck NJ. From Louvain to Leiden: guaranteeing well-connected communities. Sci Rep. 2019;9(1):5233. doi: 10.1038/s41598-019-41695-z [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 20.Wolf FA, Angerer P, Theis FJ. SCANPY: large-scale single-cell gene expression data analysis. Genome Biol. 2018;19(1):15. doi: 10.1186/s13059-017-1382-0 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 21.McInnes L, Healy J, Melville J. UMAP: Uniform Manifold Approximation and Projection for Dimension Reduction. Published online September 18, 2020. doi: 10.48550/arXiv.1802.03426 [DOI] [Google Scholar]
  • 22.Shannon P, Markiel A, Ozier O, et al. Cytoscape: A Software Environment for Integrated Models of Biomolecular Interaction Networks. Genome Res. 2003;13(11):2498–2504. doi: 10.1101/gr.1239303 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 23.Hunter JD. Matplotlib: A 2D Graphics Environment. Comput Sci Eng. 2007;9(3):90–95. doi: 10.1109/MCSE.2007.55 [DOI] [Google Scholar]
  • 24.SNOMED CT to ICD-10-CM Map. Accessed December 19, 2024. https://www.nlm.nih.gov/research/umls/mapping_projects/snomedct_to_icd10cm.html [Google Scholar]
  • 25.Bulletti C, Coccia ME, Battistoni S, Borini A. Endometriosis and infertility. J Assist Reprod Genet. 2010;27(8):441–447. doi: 10.1007/s10815-010-9436-1 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 26.Shigesi N, Kvaskoff M, Kirtley S, et al. The association between endometriosis and autoimmune diseases: a systematic review and meta-analysis. Hum Reprod Update. 2019;25(4):486–503. doi: 10.1093/humupd/dmz014 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 27.Tietjen GE, Conway A, Utley C, Gunning WT, Herial NA. Migraine is associated with menorrhagia and endometriosis. Headache. 2006;46(3):422–428. doi: 10.1111/j.1526-4610.2006.00290.x [DOI] [PubMed] [Google Scholar]
  • 28.Miller JA, Missmer SA, Vitonis AF, Sarda V, Laufer MR, DiVasta AD. Prevalence of migraines in adolescents with endometriosis. Fertil Steril. 2018;109(4):685–690. doi: 10.1016/j.fertnstert.2017.12.016 [DOI] [PubMed] [Google Scholar]
  • 29.Wu Y, Wang H, Chen S, et al. Migraine Is More Prevalent in Advanced-Stage Endometriosis, Especially When Co-Occuring with Adenomoysis. Front Endocrinol. 2022;12:814474. doi: 10.3389/fendo.2021.814474 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 30.Shi Z, Li Z, Wang K, Yang F. The causal role of gastroesophageal reflux disease in endometriosis: a bidirectional Mendelian randomization study. Front Med. 2024;11. doi: 10.3389/fmed.2024.1440157 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 31.Adewuyi EO, Mehta D, International Endogene Consortium (IEC), 23andMe Research Team, Nyholt DR. Genetic overlap analysis of endometriosis and asthma identifies shared loci implicating sex hormones and thyroid signalling pathways. Hum Reprod. 2022;37(2):366–383. doi: 10.1093/humrep/deab254 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 32.Kahlon BK, Simon-Collins M, Nylander E, Segars J, Singh B. A systematic review of vitamin D and endometriosis: role in pathophysiology, diagnosis, treatment, and prevention. FS Rev. 2023;4(1):1–14. doi: 10.1016/j.xfnr.2022.11.005 [DOI] [Google Scholar]
  • 33.Muyldermans M, Cornillie FJ, Koninckx PR. CA125 and endometriosis. Hum Reprod Update. 1995;1(2):173–187. doi: 10.1093/humupd/1.2.173 [DOI] [PubMed] [Google Scholar]
  • 34.Bloski T, Pierson R. Endometriosis and Chronic Pelvic Pain. Nurs Womens Health. 2008;12(5):382–395. doi: 10.1111/j.1751-486X.2008.00362.x [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 35.Ek M, Roth B, Ekström P, Valentin L, Bengtsson M, Ohlsson B. Gastrointestinal symptoms among endometriosis patients—A case-cohort study. BMC Womens Health. 2015;15:59. doi: 10.1186/s12905-015-0213-2 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 36.Esfandiari N, Khazaei M, Ai J, et al. Effect of a statin on an in vitro model of endometriosis. Fertil Steril. 2007;87(2):257–262. doi: 10.1016/j.fertnstert.2006.06.040 [DOI] [PubMed] [Google Scholar]
  • 37.Gibran L, Maranhão RC, Abrão MS, Baracat EC, Podgaec S. Could statins constitute a novel treatment for endometriosis? Systematic review of the literature. Eur J Obstet Gynecol Reprod Biol. 2014;179:153–158. doi: 10.1016/j.ejogrb.2014.05.028 [DOI] [PubMed] [Google Scholar]
  • 38.Vitagliano A, Noventa M, Quaranta M, Gizzo S. Statins as Targeted “Magical Pills” for the Conservative Treatment of Endometriosis: May Potential Adverse Effects on Female Fertility Represent the “Dark Side of the Same Coin”? A Systematic Review of Literature. Reprod Sci. 2016;23(4):415–428. doi: 10.1177/1933719115584446 [DOI] [PubMed] [Google Scholar]
  • 39.Dillon GA, Stanhewicz AE, Serviente C, Flores VA, Stachenfeld N, Alexander LM. Seven days of statin treatment improves nitric-oxide mediated endothelial-dependent cutaneous microvascular function in women with endometriosis. Microvasc Res. 2022;144:104421. doi: 10.1016/j.mvr.2022.104421 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 40.Fattori V, Zaninelli TH, Rasquel-Oliveira FS, et al. Nociceptor-to-macrophage communication through CGRP/RAMP1 signaling drives endometriosis-associated pain and lesion growth in mice. Sci Transl Med. 2024;16(772):eadk8230. doi: 10.1126/scitranslmed.adk8230 [DOI] [PubMed] [Google Scholar]

Associated Data

This section collects any data citations, data availability statements, or supplementary materials included in this article.

Supplementary Materials

Supplement 1

Document S1. Supplementary Figures 1–3.

media-1.docx (3.5MB, docx)
Supplement 2

Supplementary Table 1. Excel file containing SNOMED concepts used to define endometriosis patients.

media-2.xlsx (18.5KB, xlsx)
Supplement 3

Supplementary Table 2. Excel file containing conditions significantly associated with endometriosis at UCSF across the full patient timeline, across thirty control iterations and after filtering through the healthcare utilization-adjusted analysis.

media-3.xlsx (60.6KB, xlsx)
Supplement 4

Supplementary Table 3. Excel file containing conditions significantly associated with endometriosis across both the UCSF UCHDW datasets, using the full patient timeline.

media-4.xlsx (37.9KB, xlsx)
Supplement 5

Supplementary Table 4. Excel file containing conditions significantly associated with endometriosis at UCSF using only pre-endometriosis diagnoses, across thirty control iterations and after filtering through the healthcare utilization-adjusted analysis.

media-5.xlsx (35.6KB, xlsx)
Supplement 6

Supplementary Table 5. Excel file containing conditions significantly associated with endometriosis across both the UCSF UCHDW datasets, using only pre-endometriosis diagnoses.

media-6.xlsx (26.7KB, xlsx)

Data Availability Statement

The data that support the findings of this study are not openly available to individuals unaffiliated with UCSF due to the sensitivity of medical records, with the exception of collaborators. Individuals not affiliated with UCSF may set up an official collaboration with a UCSF-affiliated investigator by reaching out to the lead contact, Marina Sirota (marina.sirota@ucsf.edu). UCSF-affiliated individuals may contact UCSF’s Clinical and Translational Science Institute (ctsi@ucsf.edu) or the UCSF’s Information Commons team for more information (info.commons@ucsf.edu). UC-wide data is only available to UC researchers who have completed analyses in their respective UC first and have provided justification for scaling their analyses across UC health centers. Censored code for the analysis and visualizations in this study can be found at https://github.com/khanu263/comorbidities-clustering-endo.


Articles from medRxiv are provided here courtesy of Cold Spring Harbor Laboratory Preprints

RESOURCES