Skip to main content
Advertisement
Browse Subject Areas
?

Click through the PLOS taxonomy to find articles in your field.

For more information about PLOS Subject Areas, click here.

  • Loading metrics

An artificial intelligence approach for investigating multifactorial pain-related features of endometriosis

  • Amber C. Kiser,

    Roles Conceptualization, Data curation, Formal analysis, Software, Visualization, Writing – original draft, Writing – review & editing

    Affiliation Department of Biomedical Informatics, University of Utah, Salt Lake City, Utah, United States of America

  • Karen C. Schliep,

    Roles Conceptualization, Data curation, Writing – review & editing

    Affiliation Department of Family and Preventative Medicine, University of Utah, Salt Lake City, Utah, United States of America

  • Edgar Javier Hernandez,

    Roles Formal analysis, Software, Writing – review & editing

    Affiliations Department of Biomedical Informatics, University of Utah, Salt Lake City, Utah, United States of America, Department of Human Genetics, Utah Center for Genetic Discovery, University of Utah, Salt Lake City, Utah, United States of America

  • C. Matthew Peterson,

    Roles Conceptualization, Investigation, Writing – review & editing

    Affiliation Department of Obstetrics and Gynecology, Division of Reproductive Endocrinology and Infertility, University of Utah, Salt Lake City, Utah, United States of America

  • Mark Yandell,

    Roles Conceptualization, Methodology, Supervision, Writing – original draft, Writing – review & editing

    Affiliation Department of Human Genetics, Utah Center for Genetic Discovery, University of Utah, Salt Lake City, Utah, United States of America

  • Karen Eilbeck

    Roles Conceptualization, Supervision, Writing – original draft, Writing – review & editing

    keilbeck@genetics.utah.edu

    Affiliation Department of Biomedical Informatics, University of Utah, Salt Lake City, Utah, United States of America

Abstract

Endometriosis is a debilitating, chronic disease that is estimated to affect 11% of reproductive-age women. Diagnosis of endometriosis is difficult with diagnostic delays of up to 12 years reported. These delays can negatively impact health and quality of life. Vague, nonspecific symptoms, like pain, with multiple differential diagnoses contribute to the difficulty of diagnosis. By investigating previously imprecise symptoms of pain, we sought to clarify distinct pain symptoms indicative of endometriosis, using an artificial intelligence-based approach. We used data from 473 women undergoing laparoscopy or laparotomy for a variety of surgical indications. Multiple anatomical pain locations were clustered based on the associations across samples to increase the power in the probability calculations. A Bayesian network was developed using pain-related features, subfertility, and diagnoses. Univariable and multivariable analyses were performed by querying the network for the relative risk of a postoperative diagnosis, given the presence of different symptoms. Performance and sensitivity analyses demonstrated the advantages of Bayesian network analysis over traditional statistical techniques. Clustering grouped the 155 anatomical sites of pain into 15 pain locations. After pruning, the final Bayesian network included 18 nodes. The presence of any pain-related feature increased the relative risk of endometriosis (p-value < 0.001). The constellation of chronic pelvic pain, subfertility, and dyspareunia resulted in the greatest increase in the relative risk of endometriosis. The performance and sensitivity analyses demonstrated that the Bayesian network could identify and analyze more significant associations with endometriosis than traditional statistical techniques. Pelvic pain, frequently associated with endometriosis, is a common and vague symptom. Our Bayesian network for the study of pain-related features of endometriosis revealed specific pain locations and pain types that potentially forecast the diagnosis of endometriosis.

Introduction

Endometriosis is a debilitating, chronic disease, estimated to affect 11% of reproductive-age women [1]. While it is primarily characterized by the presence of endometrial-like tissue outside the uterus, it is a complex disease, involving multiple anatomical systems and sites [2, 3]. Diagnosis of endometriosis is difficult, with delays of up to 12 years reported [2]. Vague, nonspecific symptoms with multiple differential diagnoses contribute to this challenge. Misdiagnosis is common, with one study reporting 63% of affected women were told there was nothing wrong by at least one physician before ultimately receiving a diagnosis of endometriosis [4]. Additionally, the gold standard of diagnosis requires laparoscopic surgery—an invasive and potentially costly procedure [3, 5]. Long diagnostic delays can significantly impact the quality of life for affected women, leading to higher incidence of depression, reduced social activity, and increased healthcare costs [5]. Thus, earlier diagnosis and treatment are essential to improving the quality of life for these patients, especially by minimizing pain and treating infertility.

Pain is potentially an indicator of multiple health problems, not just endometriosis. Pelvic pain affects 80–98% of women with endometriosis [4, 6]; however, this common pain type manifests in several other disorders, including uterine fibroids, ovarian cysts, pelvic adhesions, and infectious diseases [712]. In some cases, chronic pelvic pain cannot be attributed to any clinical pathology, even after diagnostic laparoscopy [13]. Women with endometriosis often experience multiple types of pain, including dysmenorrhea (painful menstrual cramps), dyspareunia (pain with intercourse), chronic pelvic pain, dysuria (pain with urination), and dyschezia (pain with bowel movements) [14, 15]. Endometriosis-associated pain manifests in complex types, patterns, and intensities.

Identifying additional clinical indications of endometriosis holds promise for facilitating a shift from surgical diagnosis to less-invasive methods, decreasing the diagnostic delay without increasing the incidence of misdiagnosis [3]. Some previous studies examining pain in endometriosis have focused on types of pain [2, 16, 17]; in contrast, others have investigated possible relationships between anatomical locations of pain and the location of endometrial lesions although results were inconclusive [18, 19]. The dataset used in this study was previously analyzed with traditional statistical analysis techniques. The data contained meaningful associations; however, the granularity of the 155 anatomical pain sites made it difficult to interpret these preliminary results. Thus, further investigation with more advanced data science methods was warranted.

The objective for this study was to apply advanced data mining and artificial intelligence (AI) methods to delve deeper into the relationships between pain-related features, subfertility, and gynecological diagnoses, including endometriosis. We sought to demonstrate the capability of AI to perform analyses and discover associations that are more difficult to conduct using traditional statistical methods. This preliminary model was created to show the potential for AI to help expedite endometriosis diagnosis, using clinical factors in unsupervised clustering and Bayesian networks.

Materials and methods

Data collection

Data were previously collected from January 24, 2007, until August 7, 2009, as part of the ENDO (Endometriosis, Natural History, Diagnosis, and Outcomes) Study conducted in Salt Lake City, Utah, and San Francisco, California and described previously [1]. Institutional review board approval (Institutional Review Board, University of Utah) and written informed consent from all participants was obtained. The operative cohort included 473 women undergoing laparoscopy or laparotomy for various surgical indications, including pelvic pain (44%), pelvic mass (16%), irregular menses (13%), fibroids (10%), tubal ligation (10%) and infertility (7%). To prevent recall bias, women who had a prior surgical diagnosis of endometriosis were excluded. Women were also excluded if they were: pregnant, currently breastfeeding for 6 months or more, given injectable hormones within the past 2 years, or diagnosed with cancer other than non-melanoma skin cancer.

Gynecological pathology assessment

Surgeons completed a standardized operative report immediately after surgery to capture gynecologic and pelvic pathology. Endometriosis was diagnosed using the clinical gold standard of surgically visualized disease [5, 20, 21] while its severity was based upon the revised American Society for Reproductive Medicine’s (rASRM) staging criteria [20]. We used the standardized operative form to assess endometriosis typology: superficial endometriosis, ovarian endometriomas, and deep infiltrating endometriosis [22].

Pain evaluation

Prior to surgery, participants answered in-depth survey questions regarding their pain experiences. Women were asked whether they experienced pain lasting greater than 6 months that was either cyclic (i.e., painful menstrual cramps not relieved by over-the-counter medications) or chronic (i.e., pain located in or near the bladder or vaginal canal not associated with menses). They rated different sources of pain on an 11-point visual analog scale (VAS) with 0 denoting no pain to 10 denoting the most severe pain imaginable using a standardized questionnaire [23]. To evaluate subfertility, participants indicated if they had ever tried to get pregnant for more than 6 months or sought treatment for infertility. We discretized the responses to create the clinical features represented in S1 Table. We determined the most appropriate pain threshold to dichotomize the data by identifying the pain threshold that maximized the specificity of the Bayesian network. Participants answered all questions, resulting in no missing data. Additionally, prior to surgery, participants indicated on a computerized anatomical map where they felt pain regularly. The VAS and anatomical map were adapted from the Pelvic Pain Assessment Form created by the International Pelvic Pain Society [24, 25].

Clustering pain map sites

The anatomical pain map comprised 155 total sites (60 front / 60 back / 35 perineal). We performed neighbor-joining (NJ) clustering to aggregate similar pain sites [26]. The NJ algorithm is an agglomerative, or bottom-up, clustering method that groups similar data points based on a given distance metric. We used the Jaccard distance metric to quantify similarities between sites [27]. We employed the commonly used “elbow” method to determine the appropriate number of clusters by plotting the number of clusters against a given threshold (the maximum distance separating the sites within each cluster) [28]. To perform NJ clustering, we used the R package DECIPHER, version 2.22.0 [29]. The neighbor-joining algorithm produced an unrooted, non-ultrametric tree. We used the threshold determined by the elbow method to create the clusters. To reduce extraneous variables, grouped anatomical locations where fewer than 5% of participants (N<25) indicated they felt pain were removed from further analysis.

Bayesian network

Bayesian networks, a form of AI, are directed graphs that model conditional dependencies between variables [30, 31]. Each node in the network represents a variable with an attached conditional probability table, while each edge in the network represents a conditional dependency between nodes. Using these conditional dependencies and Bayesian inference, a query of the network can return the probability of an event conditioned upon the presence or absence of other variables in the network. Bayesian networks can model multiple dependencies between variables, account for non-additive risk propagation, and serve as a form of explainable AI [32].

We developed a Bayesian network using diagnoses and symptoms, including pain types (generated from the survey questions), pain locations (generated from the clustering), and subfertility. The structure of the network was learned from the data, using a hill-climbing algorithm, which iteratively improved the Bayesian Information Criterion (BIC) score until a local maxima was reached [33]. The conditional probability tables were learned from the data using Bayesian posterior estimation. We developed the network using the R package, bnlearn, version 4.7 [34]. For visualization as an undirected graph, the network was moralized. To moralize a network, an undirected edge was added between the parents of each node, after which all directional arrows were dropped [35].

Performance analysis

We evaluated the performance of the network to predict diagnoses using sensitivity, specificity, and precision. The network was bootstrapped, and out-of-bag samples were used to calculate the performance metrics. We calculated the mean and 95% confidence intervals for the performance metrics after 1000 iterations of bootstrapping.

We evaluated the relative risk (RR) of a postoperative diagnosis, given the presence of a single symptom by querying the Bayesian network. To demonstrate the potential of the Bayesian network to model relationships between variables, we queried the network for the RR of a postoperative diagnosis, given multiple symptoms. The network was bootstrapped for 1000 iterations to obtain the mean and 95% confidence intervals for each RR. We calculated the RR using the R package, gRain, version 1.3.6 [35].

Sensitivity analyses

To compare the Bayesian network analysis with traditional statistical analysis, we evaluated the significance of pain-related features as they related to the postoperative diagnoses using Fisher’s exact test. We adjusted the p-values to control for the false discovery rate. We used Boschloo’s exact test to evaluate pairwise comparisons for any significant associations [36].

To further demonstrate the advantages of the Bayesian network, we performed an inverted analysis. We queried the net for the RR of subfertility given different diagnoses, defined as the risk of subfertility when a diagnosis is present compared to the risk of subfertility when no pathology is present.

We evaluated the ability of the Bayesian network to discriminate between rASRM stages, categorized as early-stage endometriosis (rASRM stages I and II) or late-stage endometriosis (rASRM stages III and IV), as well as endometriosis typology, categorized as superficial or deep infiltrating (DIE) and endometriomas [22]. We queried the net for the RR of a postoperative diagnosis as previously described. We used the independent samples t-test to evaluate if the RR between each stage or typology were significantly different. We adjusted the p-values to control for the false discovery rate.

Results

Cohort description

Postoperative diagnoses included: endometriosis (n = 190; 40.2%), normal pelvis (n = 122; 25.8%), uterine fibroids (n = 59; 12.5%), benign ovarian cysts (n = 52; 11.0%), and other gynecological pathologies (n = 50; 10.6% [pelvic adhesions (n = 37), congenital Müllerian anomalies (n = 10) and neoplasm (n = 3)]) [1]. S1 Fig illustrates the distribution of VAS pain scores for each pain type.

Clustering

Collecting the pain data at a very granular level and then clustering pain locations based on participant responses enabled the grouping of pain locations. The elbow method determined 15 clusters with a threshold of 0.6375 as the maximum distance separating the sites within each cluster was optimal for this data (S2 Fig). A polar dendrogram visualizes the clustering in S3 Fig. This data-driven approach generated clusters that nonuniformly divided the anatomical landscape. The clusters could be categorized in several ways, including singular (cluster 1—front of neck), discontinuous (cluster 12—front of both arms), encapsulated (cluster 2—urethra), asymmetrical (cluster 8—sternum and arm) or anteroposterior (clusters 3 and 4—abdomen and back) (see Fig 1).

thumbnail
Fig 1. Anatomical map of pain location clusters.

Colors on the anatomical map denote clustered locations of self-reported pain. The anatomical map used in the ENDO study was modified from the International Pelvic Pain Society.

https://doi.org/10.1371/journal.pone.0297998.g001

The underlying anatomy could explain some of the apparent symmetry and asymmetry. For example, while cluster 7 (breasts) was symmetrical, clusters 6 and 9 (right and left epigastrium) were asymmetrical. This could be explained by the underlying anatomy of the abdomen, as the liver and gallbladder lie on the right side and the head of the pancreas and spleen on the left side. Clusters 5 (right hypochondrium and arm) and 8 (sternum and arm) were both non-contiguous and asymmetrical. Cluster 14 encompassed multiple non-contiguous sites, including the lower limbs, inner thighs, upper back, and waist. The elbow chart indicated this cluster included the least informative sites, as splitting this cluster would not result in much information gain. S2 Table describes the clusters.

Bayesian network

The final Bayesian network, represented in Fig 2, included 18 nodes after pruning noninformative variables. For endometriosis diagnosis, the sensitivity of the network was 0.814 [95% CI 0.807, 0.821], the specificity was 0.421 [95% CI 0.413, 0.430], and the precision was 0.490 [95% CI 0.487, 0.493]. In the univariable analysis, the presence of any symptom, including chronic pelvic pain, subfertility, and dyspareunia, increased the RR of endometriosis (p-value < 0.001) (Table 1).

thumbnail
Fig 2. Bayesian network for pain-related features of endometriosis.

Nodes correspond to pain-related features, subfertility, and diagnosis while the lines represent conditional dependencies between the features. Pain types are outlined in blue, while pain locations are outlined in pink. The color of the node indicates the proximity to the diagnosis node, including 1st, 2nd, 3rd, and 4th degree connections. The net has been moralized.

https://doi.org/10.1371/journal.pone.0297998.g002

thumbnail
Table 1. Relative risk of a diagnosis given a pain type or location.

https://doi.org/10.1371/journal.pone.0297998.t001

As shown in Table 2, the combination of multiple symptoms increased the RR of endometriosis while decreasing the RR of other diagnoses. However, the absence of subfertility decreased the RR of endometriosis and increased the RR of other diagnoses, most notably benign ovarian cysts.

thumbnail
Table 2. Relative risk of a diagnosis given multiple pain types or locations.

https://doi.org/10.1371/journal.pone.0297998.t002

A web application to explore and query the Bayesian network is deployed to a public server: amber-kiser.shinyapps.io/ENDO-pain-app. We developed and deployed the application using the R package shiny, version 1.7.1 [37]. The S7S10 Figs contain screenshots and instructions for how to access the application.

Sensitivity analyses

The first sensitivity analysis allowed us to compare the performance of our Bayesian network against a more traditional statistical method, Fisher’s exact test, used in previous studies of endometriosis [23]. Fisher’s exact test identified nine clinical features significantly associated with endometriosis, including dysmenorrhea, dyspareunia, chronic pelvic pain, subfertility, ovulation pain, pain in epigastrium (Cluster 6), dyschezia, pain in sternum (Cluster 8), and pain in subscapular region (Cluster 11). S3 Table provides the full results from Fisher’s exact test and Boschloo’s exact test for pairwise comparisons.

In the second sensitivity analysis, we performed an inverted analysis, where the diagnoses and symptoms were reversed, to further demonstrate the advantages of using a Bayesian network. We found that the RR of subfertility was highest with a diagnosis of endometriosis. The RR of subfertility was most decreased when a normal pelvis was present; however, having a diagnosis of benign ovarian cysts or uterine fibroids decreased the RR of subfertility. The results are illustrated in the forest plot in S6 Fig.

In our final sensitivity analysis, we evaluated the ability of the net to discriminate between rASRM stage and endometriosis typology. Results are presented in S4 and S5 Tables. The RRs for early-stage endometriosis were statistically different from the RRs for late-stage endometriosis in 8 out of 17 cases. The RRs for superficial endometriosis were statistically different from the RR for DIE or endometriomas in 16 out of 17 cases. This demonstrates the potential for discrimination between stages or typology. However, more data from each category would be required to develop a network for this purpose.

Discussion

We used a combined approach of clustering and Bayesian networks to demonstrate the power of AI to discover associations between pain-related features, subfertility, and endometriosis. The network identified the transitive relationships between postoperative diagnoses and pain-related features (Tables 1 and 2). The presence of any pain increased the RR of endometriosis compared with benign ovarian cysts, uterine fibroids, other gynecological pathology, or a normal pelvis.

To date, several studies have focused on the relationship between pain and diagnosis, but relatively few have tried to understand how specific anatomical locations and types of pain combine to forecast endometriosis. The few studies incorporating anatomical locations of pain have usually attempted to relate pain to endometrial lesion location with inconclusive results [18, 19]. In 2010, Ballard et al. conducted a study of women with chronic pelvic pain to evaluate how specific symptoms and descriptions of pain can facilitate endometriosis diagnosis [38]. They included an anatomical pain map and grouped 100 sites into 15 areas, although no description was provided of how this grouping was determined. None of the anatomical areas of pain were significantly associated with endometriosis in their study, as women with endometriosis and women with a normal pelvis felt pain indiscriminately.

In our study, we saw a similar trend for some pain locations. While a higher number of women with endometriosis reported pain in the lower abdominal and pelvic region (61.6%), half of the women with a normal pelvis also reported pain in these regions. Despite this, with our Bayesian network analysis, we demonstrated that pain in certain anatomical locations can significantly increase the RR of endometriosis. We found that the combination of specific anatomical locations of pain with specific types of pain enables greater diagnostic discrimination.

The Bayesian network identified pain in the epigastrium, subscapular region, sternum, and right hypochondrium as significant for an endometriosis diagnosis. While previous literature has not associated these pain locations with pelvic endometriosis, pain in comparable locations has been reported in thoracic or diaphragmatic endometriosis [3942]. Piccus et al. found that diaphragmatic endometriosis patients reported pain in the chest, upper abdomen, shoulder, and upper back [43]. Other reports describe diaphragmatic endometriosis in patients with right chest, shoulder, and hypochondrium pain [44, 45]. Pain in the epigastrium, subscapular region, sternum, and right hypochondrium could accelerate the diagnosis by indicating potential extrapelvic endometriosis; however, this finding will need to be validated in future research.

The symptoms of endometriosis, including dyschezia and abdominal pain, are also common to irritable bowel syndrome (IBS) and constipation. Several studies have shown an association between endometriosis and IBS [14, 46]. However, it is not known if this association is due to misdiagnosis or a true comorbidity. Dyschezia was an important pain type in our study as it was associated with an increased RR of endometriosis and significantly associated with endometriosis in the sensitivity analysis. Future studies can potentially differentiate endometriosis from IBS or other conditions like fibromyalgia, interstitial cystitis, and myofascial pain.

In the first sensitivity analysis, we compared the features significantly associated with endometriosis using Fisher’s exact test and the Bayesian network. When comparing these results, the nine features identified as significant in Fisher’s exact test increased the RR of endometriosis in the Bayesian network. However, we also identified other features, including abdominal pain, dysuria, and pain in the right hypochondrium that increased the RR of endometriosis when included in the Bayesian network, but were not significant in Fisher’s exact test. These results demonstrate the ability of the net to uncover previously undetected relationships that would be considered insignificant in our data using traditional statistical methods.

Further evidence of the benefits of an AI-based analysis was demonstrated in the multivariable analysis (Table 2). Combining multiple pain-related features and subfertility added discrimination power, allowing the Bayesian network to differentiate between endometriosis and other diagnoses. This multivariable analysis would be more difficult to perform using traditional statistical methods as it is much harder to consider the combined contributions of several variables, especially when those are not necessarily additive.

Prior uses of graphical models and Bayesian networks in endometriosis research include investigations of risk factors and treatment efficacy [4749]. However, we are aware of no other studies that have implemented Bayesian networks to evaluate pain-related features of endometriosis, as most have used logistic regression to investigate clinical features of endometriosis. Unlike regression-based models, Bayesian networks can be used for univariable or multivariable analysis while considering the relationships between variables, and importantly they are explainable and handle missing data [32].

We acknowledge that our study has limitations. While we tried avoiding bias in the study population, we only included women who were undergoing laparoscopy or laparotomy for a surgical indication, potentially excluding some asymptomatic women. The study population was predominantly white, well-educated women with access to healthcare. In future studies, we could use additional, external, and more diverse data to validate these results. External validation using large, heterogeneous data will be vital prior to clinical implementation. Future studies could explore factors that mediate pain experiences, including pain medications and psychological conditions, like anxiety and depression. Pain duration as well as pain description (i.e., sharp, dull, radiating) are potentially important variables to include in future studies along with family history of endometriosis and response to previous hormonal treatment. With additional data, we could investigate comorbidities that may alter pain presentation in endometriosis, including irritable bowel syndrome and constipation.

Conclusions

Clustering anatomical pain sites and developing a Bayesian network, a form of AI, to study pain-related features of endometriosis demonstrated that combining specific pain locations with pain types may be useful for the diagnosis of endometriosis. We demonstrated that differing combinations of pain-related features resulted in differing RRs among women with endometriosis, benign ovarian cysts, uterine fibroids, other gynecological pathology, and a normal pelvis. These results suggest the use of AI can provide novel insights. We built a prototype web application to demonstrate the potential of the Bayesian network to assist in diagnosis after external validation. A recent qualitative study of endometriosis-related pain suggested that looking beyond cyclical pain to other pain experiences may lead to faster diagnosis and more effective treatment [15]. Our Bayesian network, incorporating a variety of pain-related features of endometriosis, advances this goal.

Supporting information

S1 Table. Clinical features with corresponding survey questions.

These questions were used to determine the presence of specific clinical features in participants of the ENDO study. (Buck Louis GM, Hediger ML, Peterson CM, et al. Incidence of endometriosis by study population and diagnostic method: the ENDO study. Fertil Steril. 2011;96(2):360–365).

https://doi.org/10.1371/journal.pone.0297998.s001

(PDF)

S2 Table. Clustered pain map areas.

Clusters were grouped as described in the methods. Location lists the anatomical sites included in each cluster. Asterisks in the Custer ID column denote clusters with N<25 participants.

https://doi.org/10.1371/journal.pone.0297998.s002

(PDF)

S3 Table. Characteristics of the study sample by postoperative diagnosis.

This table presents a univariate analysis done with traditional statistical techniques. Significant differences were assessed using Fisher’s Exact Test. P-value adjusted for the false discovery rate. Pairwise comparisons for any significant associations were evaluated with Boschloo’s Exact Test. a,b,c,d,e,fSignificantly different pairwise values p-value < 0.05.

https://doi.org/10.1371/journal.pone.0297998.s003

(PDF)

S4 Table. Relative risk of an endometriosis rASRM stage, given a symptom.

For the definition of relative risk (RR), see S4 Fig. Mean estimates with 95% confidence intervals are shown in parentheses. Significant differences were assessed using the independent samples t-test. P-value adjusted for the false discovery rate. * p-value < 0.05; *** p-value < 0.001.

https://doi.org/10.1371/journal.pone.0297998.s004

(PDF)

S5 Table. Relative risk of an endometriosis typology, given a symptom.

For the definition of relative risk (RR), see S4 Fig. Mean estimates with 95% confidence intervals are shown in parentheses. Significant differences were assessed using the independent samples t-test. P-value adjusted for the false discovery rate. * p-value < 0.05; *** p-value < 0.001.

https://doi.org/10.1371/journal.pone.0297998.s005

(PDF)

S1 Fig. Distribution of VAS pain scores.

The distribution of VAS pain scores for each pain type. We determined a pain threshold of 1 was most appropriate for dichotomization of pain scores (see S1 Table).

https://doi.org/10.1371/journal.pone.0297998.s006

(TIF)

S2 Fig. The elbow method identifies 15 clusters as optimal.

The elbow method requires identifying the point in the chart where a sharp bend, or “elbow,” occurs. This is determined to be the optimal number of clusters that are informative. The threshold represents the maximum distance separating sites within each cluster. In this chart, an elbow can be identified at 15 clusters, corresponding to a threshold of 0.6375.

https://doi.org/10.1371/journal.pone.0297998.s007

(TIF)

S3 Fig. Polar dendrogram of anatomical sites used to produce 15 pain locations.

The neighbor-joining algorithm produced an unrooted tree. For visualization as a dendrogram, this tree has been rooted at the midpoint.

https://doi.org/10.1371/journal.pone.0297998.s008

(TIF)

S4 Fig. Univariate relative risk.

(A) When evaluating the relative risk given a single pain-related feature, relative risk is defined as the absolute risk of having a diagnosis given the presence of a pain type or location compared to the absolute risk of having a diagnosis given the absence of a pain type or location. (B) For example, the relative risk of endometriosis when dyspareunia is present is calculated from the absolute risk of endometriosis when dyspareunia is present divided by the absolute risk of endometriosis when dyspareunia is absent.

https://doi.org/10.1371/journal.pone.0297998.s009

(TIF)

S5 Fig. Multivariate relative risk.

(A) When evaluating the relative risk in the presence or absence of multiple pain-related features, relative risk is defined as the absolute risk of having a diagnosis given the presence or absence of a pain type or location compared to the absolute risk of having a diagnosis given the opposite condition(s). (B) For example, the relative risk of endometriosis when pain in the epigastrium and dyspareunia are present and subfertility is absent is calculated from the absolute risk of endometriosis when pain in the epigastrium and dyspareunia are present and subfertility is absent divided by the absolute risk of endometriosis when pain in the epigastrium and dyspareunia are absent and subfertility is present.

https://doi.org/10.1371/journal.pone.0297998.s010

(TIF)

S6 Fig. Differential contribution of key exposures to the relative risk of subfertility.

Relative risk of subfertility given a specific diagnosis. This forest plot illustrates the relative risk of subfertility, defined as the absolute risk of subfertility when a specific diagnosis is present compared to the absolute risk of subfertility when a specific diagnosis is absent. Error bars represent the 95% confidence intervals. Values to the right of the dotted line indicate an increased relative risk, whereas values to the left indicate a decreased relative risk.

https://doi.org/10.1371/journal.pone.0297998.s011

(TIF)

S7 Fig. Landing page of the Bayes Net Explorer app.

The Bayes Net Explorer app visualizes the calculated Bayesian network and allows users to run any combination of queries, accessible at amber-kiser.shinyapps.io/ENDO-pain-app.

https://doi.org/10.1371/journal.pone.0297998.s012

(TIF)

S8 Fig. A query performed using the Bayes Net Explorer.

The probability and relative risk of postoperative diagnoses are returned, given the presence of ovulation pain.

https://doi.org/10.1371/journal.pone.0297998.s013

(TIF)

S9 Fig. A multimorbid query performed using the Bayes Net Explorer.

The probability and relative risk of postoperative diagnoses are returned, given the presence of ovulation pain and absence of subfertility.

https://doi.org/10.1371/journal.pone.0297998.s014

(TIF)

S10 Fig. An inverted query performed using the Bayes Net Explorer.

The probability and relative risk of subfertility is returned, given the presence of an endometriosis diagnosis, dyspareunia, and chronic pelvic pain.

https://doi.org/10.1371/journal.pone.0297998.s015

(TIF)

Acknowledgments

The authors would like to thank Evan Christensen for his assistance in proofreading and editing the manuscript.

References

  1. 1. Buck Louis GM, Hediger ML, Peterson CM, Croughan M, Sundaram R, Stanford J, et al. Incidence of endometriosis by study population and diagnostic method: the ENDO study. Fertil Steril. 2011 Aug;96(2):360–5. pmid:21719000
  2. 2. Agarwal SK, Antunez-Flores O, Foster WG, Hermes A, Golshan S, Soliman AM, et al. Real-world characteristics of women with endometriosis-related pain entering a multidisciplinary endometriosis program. BMC Womens Health. 2021 Jan;21(1):19. pmid:33413295
  3. 3. Taylor HS, Kotlyar AM, Flores VA. Endometriosis is a chronic systemic disease: clinical challenges and novel innovations. Lancet. 2021 Feb;397(10276):839–52. pmid:33640070
  4. 4. Greene R, Stratton P, Cleary SD, Ballweg ML, Sinaii N. Diagnostic experience among 4,334 women reporting surgically diagnosed endometriosis. Fertil Steril. 2009 Jan;91(1):32–9. pmid:18367178
  5. 5. Agarwal SK, Chapron C, Giudice LC, Laufer MR, Leyland N, Missmer SA, et al. Clinical diagnosis of endometriosis: a call to action. Am J Obstet Gynecol. 2019 Apr;220(4):354.e1–354.e12. pmid:30625295
  6. 6. Maddern J, Grundy L, Castro J, Brierley SM. Pain in Endometriosis. Front Cell Neurosci. 2020 Oct;14:590823. pmid:33132854
  7. 7. De La Cruz MSD, Buchanan EM. Uterine fibroids: diagnosis and treatment. Am Fam Physician. 2017 Jan;95(2):100–7. pmid:28084714
  8. 8. Giuliani E, As-Sanie S, Marsh EE. Epidemiology and management of uterine fibroids. Int J Gynaecol Obstet. 2020 Apr;149(1):3–9. pmid:31960950
  9. 9. Tayob Y, Adams J, Jacobs HS, Guillebaud J. Ultrasound demonstration of increased frequency of functional ovarian cysts in women using progestogen-only oral contraception. BJOG. 1985 Oct;92(10):1003–9. pmid:3902074
  10. 10. Abduljabbar HS, Bukhari YA, Al Hachim EG, Alshour GS, Amer AA, Shaikhoon MM, et al. Review of 244 cases of ovarian cysts. Saudi Med J. 2015 Jul;36(7):834–8. pmid:26108588
  11. 11. van den Beukel BA, de Ree R, van Leuven S, Bakkum EA, Strik C, van Goor H, et al. Surgical treatment of adhesion-related chronic abdominal and pelvic pain after gynaecological and general surgery: a systematic review and meta-analysis. Hum Reprod Update. 2017 May;23(3):276–88. pmid:28333221
  12. 12. Curry A, Williams T, Penny ML. Pelvic inflammatory disease: diagnosis, management, and prevention. Am Fam Physician. 2019 Sep;100(6):357–64. pmid:31524362
  13. 13. Kang S-B, Chung HH, Lee H-P, Lee JY, Chang YS. Impact of diagnostic laparoscopy on the management of chronic pelvic pain. Surg Endosc. 2007 Jun;21(6):916–9. pmid:17103271
  14. 14. Ballard KD, Seaman HE, de Vries CS, Wright JT. Can symptomatology help in the diagnosis of endometriosis? Findings from a national case-control study—Part 1. BJOG. 2008 Oct;115(11):1382–91. pmid:18715240
  15. 15. Drabble SJ, Long J, Alele B, O’Cathain A. Constellations of pain: a qualitative study of the complexity of women’s endometriosis-related pain. Br J Pain. 2021 Aug;15(3):345–56. pmid:34377460
  16. 16. Conroy I, Mooney SS, Kavanagh S, Duff M, Jakab I, Robertson K, et al. Pelvic pain: what are the symptoms and predictors for surgery, endometriosis and endometriosis severity. Aust N Z J Obstet Gynaecol. 2021 Oct;61(5):765–72. pmid:34028794
  17. 17. Kor E, Mostafavi SRS, Mazhin ZA, Dadkhah A, Kor A, Arvanagh SH, et al. Relationship between the severity of endometriosis symptoms (dyspareunia, dysmenorrhea and chronic pelvic pain) and the spread of the disease on ultrasound. BMC Res Notes. 2020 Nov;13(1):546. pmid:33239095
  18. 18. Hsu AL, Sinaii N, Segars J, Nieman LK, Stratton P. Relating pelvic pain location to surgical findings of endometriosis. Obstet Gynecol. 2011 Aug;118(2 Pt 1):223–30. pmid:21775836
  19. 19. Renner SP, Boosz AS, Burghaus S, Maihöfner C, Beckmann MW, Fasching PA, et al. Visual pain mapping in endometriosis. Arch Gynecol Obstet. 2012 Sep;286(3):687–93. pmid:22569716
  20. 20. American Society for Reproductive Medicine. Revised American Society for Reproductive Medicine classification of endometriosis: 1996. Fertil Steril. 1997 May;67(5):817–21. pmid:9130884
  21. 21. Kennedy S, Bergqvist A, Chapron C, D’Hooghe T, Dunselman G, Greb R, et al. ESHRE guideline for the diagnosis and treatment of endometriosis. Hum Reprod. 2005 Oct;20(10):2698–704. pmid:15980014
  22. 22. Byun J, Peterson CM, Backonja U, Taylor RN, Stanford JB, Allen-Brady KL, et al. Adiposity and endometriosis severity and typology. J Minim Invasive Gynecol. 2020 Jan;27(7):1516–23. pmid:31927045
  23. 23. Schliep KC, Mumford SL, Peterson CM, Chen Z, Johnstone EB, Sharp HT, et al. Pain typology and incident endometriosis. Hum Reprod. 2015 Oct;30(10):2427–38. pmid:26269529
  24. 24. Pelvic Pain Assessment Form [Internet]. Burnsville (MN): The International Pelvic Pain Society. 2008 [cited 2015 Apr 22]. Available from: https://www.pelvicpain.org/
  25. 25. Pelvic Pain Assessment Form [Internet]. Burnsville (MN): The International Pelvic Pain Society. 2008 [cited 2023 Dec 28]. Available from: https://endometriosis.ucsf.edu/sites/g/files/tkssra1076/f/wysiwyg/IPPS%20assessment%20form_fillable.pdf
  26. 26. Saitou N, Nei M. The neighbor-joining method: a new method for reconstructing phylogenetic trees. Mol Biol Evol. 1987 Jul;4(4):406–25. pmid:3447015
  27. 27. Hier DB, Kopel J, Brint SU, Wunsch DC 2nd, Olbricht GR, Azizi S, et al. Evaluation of standard and semantically-augmented distance metrics for neurology patients. BMC Med Inform Decis Mak. 2020 Aug;20(1):203. pmid:32843023
  28. 28. Bholowalia P, Kumar A. EBK-Means: a clustering technique based on elbow method and k-means in WSN. Int J Comput Appl [Internet]. 2014 Nov [cited 2023 Dec 15];105(9):17–24. Available from: https://www.ijcaonline.org/archives/volume105/number9/18405-9674
  29. 29. Wright ES. Using DECIPHER v2. 0 to analyze big biological sequence data in R. R J. 2016 Aug;8(1):352–9.
  30. 30. Scutari M, Denis J-B. Bayesian networks: with examples in R. Boca Raton: CRC Press; 2021.
  31. 31. Pearl J. Probabilistic reasoning in intelligent systems: networks of plausible inference. Cambridge (MA): Morgan Kaufmann Publishers, Inc.; 1988.
  32. 32. Wesołowski S, Lemmon G, Hernandez EJ, Henrie A, Miller TA, Weyhrauch D, et al. An explainable artificial intelligence approach for predicting cardiovascular outcomes using electronic health records. PLOS Digit Health. 2022 Jan;1(1). pmid:35373216
  33. 33. Gámez JA, Mateo JL, Puerta JM. Learning Bayesian networks by hill climbing: efficient methods based on progressive restriction of the neighborhood. Data Min Knowl Discov. 2011 Jan;22(1):106–48.
  34. 34. Scutari M. Learning Bayesian networks with the bnlearn R Package. J Stat Softw. 2010;35(3):1–22.
  35. 35. Højsgaard S. Graphical independence networks with the gRain package for R. J Stat Softw. 2012 Feb;46:1–26.
  36. 36. Boschloo RD. Raised conditional level of significance for the 2 × 2-table when testing the equality of two probabilities. Stat Neerl. 1970;24(1):1–9.
  37. 37. Chang W, Cheng J, Allaire JJ, Sievert C, Schloerke B, Xie Y, et al. shiny: web application framework for R [Internet]. Vienna: R Foundation; 2021 [cited 2023 Dec 15]. Available from: https://CRAN.R-project.org/package=shiny
  38. 38. Ballard K, Lane H, Hudelist G, Banerjee S, Wright J. Can specific pain symptoms help in the diagnosis of endometriosis? A cohort study of women with chronic pelvic pain. Fertil Steril. 2010 Jun;94(1):20–7. pmid:19342028
  39. 39. Mangal R, Taskin O, Nezhat C, Franklin R. Laparoscopic vaporization of diaphragmatic endometriosis in a woman with epigastric pain: a case report. J Reprod Med. 1996 Jan;41(1):64–6. pmid:8855079
  40. 40. Hussein M, Albakri M, Ismail S, Alabbas A, Al Hyassat S. Recurrent chest pain as a rare presentation of extra-pelvic endometriosis. Clin Case Rep. 2021 Jul;9(7):e04413. pmid:34267902
  41. 41. Keijzer S, Oosterhuis W, Hazelbag HM, Meuleman T. Pathological diagnosis of thoracic endometriosis. BMJ Case Rep. 2021 Aug;14(8):e243258. pmid:34404651
  42. 42. Soares T, Oliveira MA, Panisset K, Habib N, Rahman S, Klebanoff JS, et al. Diaphragmatic endometriosis and thoracic endometriosis syndrome: a review on diagnosis and treatment. Horm Mol Biol Clin Investig [Internet]. 2021 Feb;43(2):137–43. pmid:34704688
  43. 43. Piccus R, Mann C, Sutcliffe RP. Diagnosis and treatment of diaphragmatic endometriosis: results of an international patient survey. Eur J Obstet Gynecol Reprod Biol. 2021 May;260:48–51. pmid:33740695
  44. 44. Redwine DB. Diaphragmatic endometriosis: diagnosis, surgical management, and long-term results of treatment. Fertil Steril. 2002 Feb;77(2):288–96. pmid:11821085
  45. 45. Seoud AA, Saleh MM, Yassin AH. Endometriosis: a possible cause of right shoulder pain. Clin Exp Obstet Gynecol. 2010;37(1):19–20. pmid:20420273
  46. 46. Chiaffarino F, Cipriani S, Ricci E, Mauri PA, Esposito G, Barretta M, et al. Endometriosis and irritable bowel syndrome: a systematic review and meta-analysis. Arch Gynecol Obstet. 2021 Jan;303(1):17–25. pmid:32949284
  47. 47. Roy A, Perkins NJ, Buck Louis GM. Assessing chemical mixtures and human health: use of Bayesian belief net analysis. J Environ Prot. 2012 Jun;3(6):462–8. pmid:23125944
  48. 48. Dong S, Zhang J, Zhai F, Zhao X, Qin X. Comparative efficacy and safety of traditional Chinese patent medicine for endometriosis: a Bayesian network meta-analysis protocol. Medicine. 2019 Jul;98(29):e16473. pmid:31335707
  49. 49. Wang J, Westveld AH, Welsh AH, Parker M, Loong B. Analysis of survey on menstrual disorder among teenagers using Gaussian copula model with graphical lasso prior. PLoS One. 2021 Mar;16(3):e0248340. pmid:33735289