Abstract
We investigate the use of self-tracking data and unsupervised mixed-membership models to
phenotype endometriosis. Endometriosis is a systemic, chronic condition of women in repro-
ductive age and, at the same time, a highly enigmatic condition with no known biomarkers
to monitor its progression and no established staging. We leverage data collected through a
self-tracking app in an observational research study of over 2,800 women with endometriosis
tracking their condition over a year and a half (456,900 observations overall). We extend a
classical mixed-membership model to accommodate the idiosyncrasies of the data at hand
(i.e., the multimodality of the tracked variables). Our experiments show that our approach
identifies potential subtypes that are robust in terms of biases of self-tracked data (e.g.,
wide variations in tracking frequency amongst participants), as well as to variations in
hyperparameters of the model. Jointly modeling a wide range of observations about par-
ticipants (symptoms, quality of life, treatments) yields clinically meaningful subtypes that
both validate what is already known about endometriosis and suggest new findings.
1. Introduction
Smartphones and mobile applications are a powerful way to connect medical researchers
to individuals. Recent software platforms like Researchkit and ResearchStack facilitate
the use of mobile technology to recruit and consent patients into studies. The first wave
of app-based studies shows that with the right engagement techniques, patients provide
valuable data through their phone that can, shedding new insight into diseases Bot et al.
(2016); Chan et al. (2017). This work contributes to the emerging area of research on
digital phenotyping from patient-generated data, specifically from data collected through
smartphone applications (Hartsell and Heller, 2017; Torous et al., 2018; Zhan et al., 2018).
c⃝ 2018 I. Urteaga, M. McKillop, S. Lipsky-Gorman & N. Elhadad.
arXiv:1811.03431v1 [cs.CY] 6 Nov 2018
Phenotyping Endometriosis
We focus on endometriosis, a condition for which there are no known biomarkers to help
its diagnosis or monitor its progression, and for which subtypes proposed in the literature are
not well established. Using self-tracking data collected through an app designed specifically
for the sake of characterizing endometriosis at scale, we explore the use of unsupervised
Methods
to identify subtypes of the disease that cluster patients based on their signs and
symptoms, quality of life, and treatments.
Phenotypes are important as a first step towards a better understanding of endometrio-
sis, so that better treatment and management of patients can be achieved via phenotype-
based characteristics. We validate our approach through likelihood evaluations of the model
in unseen data, clinical interpretability of identified subtypes by endometriosis experts,
purity assessment on a subset of patient phenotype assignments against clinical experts
clustering, and hypothesis testing against a clinically validated standard questionnaire for
patients with endometriois.
Our experiments show that(1) our approach identifies potential subtypes that are robust
in terms of biases of self-tracked data (e.g., wide variations in tracking frequency amongst
participants), as well as to variations in hyperparameters of the model; and (2) modeling
a wide range of observations about participants (symptoms, quality of life, treatments)
jointly yields clinically meaningful subtypes that both validate what is already known about
endometriosis and suggest new findings.
Endometriosis is a chronic condition estimated to affect 10% of women in reproductive
age (Wheeler, 1989). It is traditionally described as when tissue similar to the endometrium
(lining of the uterus) grows outside the uterine cavity, and forms lesions in the pelvic and
gastro-intestinal areas primarily. It impacts women at a systemic level (Kvaskoff et al.,
2015) and presents with a heavy burden of disease (Simoens et al., 2012).
Despite its high prevalence, endometriosis continues to be a highly enigmatic condition:
there is lack of specificity in the range of signs and symptoms of the disease, and its clinical
characterization is poor (Vercellini et al., 2007). It is understood to be heterogeneous in
nature, and several stages of the disease have been proposed in the literature. Nevertheless,
none correlate with severity of symptoms experienced by patients, nor do they explain the
diversity of symptoms experienced. In fact, subtyping of endometriosis is currently an open
and important research question for the endometriosis community (Johnson et al., 2017).
There is a need for more accurate phenotyping of endometriosis so that better, more
targeted treatments and management strategies can be developed. However, because en-
dometriosis is not well understood from the cinical point of view, traditional phenotyping
approaches that leverage electronic health record data are not appropriate. We instead turn
to patient-generated data towards that goal.
Technical Significance: We contribute to the emerging area of research on unsuper-
vised digital phenotyping from patient-generated data, specifically, by extending mixed-
membership models for multi-modal data collected through smartphone applications. We
show that by jointly modeling multiple types of self-tracking variables, we identify potential
disease subtypes that are robust in terms of biases of self-tracked data, and to variations in
model hyperparameters.
Clinical Relevance: Endometriosis phenotypes are necessary for a better understanding
of the disease, which will lead towards better treatment and management of patients. The
2
Phenotyping Endometriosis
proposed unsupervised approach produces clinically relevant groupings of endometriosis
signs and symptoms. These phenotypes, grouped by the severity of the condition, suggest
novel findings about the disease, as clinically meaningful associations were identified.
2. Data and Materials
The data and materials used in this work are described next. All procedures were reviewed
and approved by our institutional review board under protocol number AAAQ9812.
2.1. Phendo: A Smartphone App to Self-Track Endometriosis
Using participatory design, we designed and developed Phendo, a smartphone app for
women with endometriosis to self-track their condition (McKillop et al., 2016, 2018). The
research app is available for iOS 1 and Android 2 phones. Participants were recruited
through patient advocacy groups and, once enrolled, can self-track a variety of variables.
At the moment level (i.e., as many times in the day as participants desire), they can track
their pain across 39 specific body locations with 15 modifiers (e.g., “cramping” or “twisting”)
and 3 severity levels; any of the 15 gastro-intestinal and genito-urinary issues identified
during design work with 3 severity levels; 21 signs and symptoms commonly identified
by our participants (e.g., “blurry vision”, “hot flashes”, “fatigue”) and their severity; 10
positive mood and affects and 14 negative ones, 3 bleeding patterns (“clots”, “breakthrough
bleeding”, “spotting”), and customized medication intake (see for instance Figure 1, where
2 Aleves were tracked at 7am, and other medications appear in the customized medication
tracking screen).
At the day level, users can track a functional assessment of their day (see question “How
was your day?” in Figure 1) from “great” to “unbearable”, which activities of daily living
were hard to do (customized for endometriosis needs), menstruation patterns, customized
answers for diet items they want to keep track of, customized supplements, customized
exercises, customized hormonal treatments, sexual activity and potential dyspareunia, and
a daily journal.
2.2. Gold-standard data
As part of the profile tab in the Phendo research app, participants can take a standardized
questionnaire designed by the endometriosis research community, called WERF EPHect (Vi-
tonis et al., 2014). The questionnaire represents the gold-standard for clinical characteriza-
tion of endometriosis. It contains information about medical and surgical history, as well
as quality of life related questions.
2.3. Data preprocessing and cohort selection
The data collected for this study contains time-stamped responses from participants about
all the variables tracked in the app. Because the data was collected for a wide range
of variables at the participants’ discretion, it is heterogeneous both in type and quantity
1. Available at https://itunes.apple.com/us/app/phendo/id1145512423
2. Available at https://play.google.com/store/apps/details?id=com.appliedinformaticsinc.phendo
3
Phenotyping Endometriosis
Figure 1: Example screenshots of Phendo, the self-tracking endometriosis app.
across participants, and possibly within a given participant’s timeline as well. As a first
step towards investigating phenotyping of endometriosis, we ignore the temporal aspect of
the condition, and rather aggregate all observations per variables tracked in the app for
each participant.
The following variables from Phendo were included in this study (descriptive self-
tracking statistics are provided in Table 1): (1) pain location, (2) pain description, (3)
pain severity, (4) gastrointestinal and genitourinary (GI/GU) symptoms, (5) their severity,
(6) other symptoms, (7) their severity, (8) period flow, (9) bleeding patterns, (10) sexual ac-
tivity, (11) difficult daily living activities, (12) medications including hormonal treatments,
and (13) quality of life (“How was your day?”).
Question Number of observations
(median/mean/95%percentile/max)
Number of tracked days
(median/mean/95%percentile/max)
Where is the pain 4/29/120/2196 1/6/31/204
Describe the pain 4/27/115/1657 1/6/31/204
How severe is the pain? 2/9/43/527 1/6/31/204
What are you experiencing 1/7/33/544 1/4/17/175
How severe is the symptom 1/5/22/544 1/4/17/175
Describe the flow 0/4/16/176 0/4/16/176
What kind of bleeding 0/3/15/173 0/2/12/77
Describe GI/GU system 1/6/28/317 1/5/20/205
How severe is it 1/6/27/317 1/5/20/205
Describe sex 0/1/3/159 0/1/3/158
Activities 7/36/151/2148 2/7/29/266
How was your day? 3/12/57/458 3/12/57/458
Medications/hormones taken 2/14/60/800 2/9/37/356
Total 35/159/718/6065 19/71/327/458
Table 1: Summary statistics per-tracked question.
We selected a cohort of participants who had self-reported diagnosis of endometriosis,
and had at least one entry in one of the above questions between December 2016 (launch
of the app) and March 2018, resulting in 2,872 participants (corresponding to 456,900
observations total). Among them, 648 had responded to the WERF EPHect questionnaire.
4
Phenotyping Endometriosis
The app provides a fixed set of possible responses to most of the questions (details about
all per-question vocabularies are provided in the appendix). Medications and hormones,
which are inputted as free text in the app, were mapped to a fixed size vocabulary by
identifying their medication classes. The WERF EPHect questionnaire responses contained
binary (yes/no), categorical (e.g., number of laparoscopies) and real numbers (e.g., weight)
answer types. Not all questions were answered by all selected participants. We only use
questions with sufficient number of responses when correlating participants in obtained
phenotypes with their responses.
3. Methods
There are several challenges to address when using self-tracking data for phenotyping an
enigmatic condition. First, because endometriosis is a heterogeneous condition and its
clinical characterization is poor, no gold-standard phenotypes exist. As such, unsupervised
Methods
are well-suited to the task of learning phenotypes. Second, self-tracking data is
heterogeneous (because of the many variables available for self-tracking), inherently noisy,
irregularly spaced due to lack of participant engagement, and may reflect biases of self-
tracking (e.g., participants may track more often when they experience symptoms of disease
or participants may tend not to self-track when they are sick). To account for these issues,
we leverage unsupervised probabilistic methods, and specifically mixed-membership models.
Mixed-membership models are Bayesian generative models used to capture the latent
structure of collections of groups of data. Topic models are their primary example (Blei,
2012), where one is interested in inferring the latent topics of a corpora of documents.
Topic models analyze the statistics of observed words in each document, to capture what
the topics are, and what is each document’s proportion of topics (Blei et al., 2003).
In this work, we cast phenotyping endometriosis with self-tracking data as a probabilistic
topic modeling problem, by considering the set of responses per participant as “documents”,
all coming from the “corpus” of endometriosis patients. As such, each set of observations is
modeled as a mixture model, where the mixture components (the phenotypes) are shared
across the population, but the mixture proportions (the phenotypic profile) vary per par-
ticipant. The mixed-membership model infers phenotypes based on the co-occurrence of
observations across the studied set of participants. That is, “topics” produced by this
technique are groupings of responses to self-tracked variables that describe endometriosis
phenotypes. These models are flexible enough to describe participants with more than one
of these topics (i.e., mixture of phenotypes).
The available self-tracked data however is not a standard document, but a collection
of responses to different questions. Therefore, we extend the mixed-membership model
to accommodate for multi-modal data, in a similar way done by Pivovarov et al. (2015)
for EHR phenotyping. In our case, each modality is an specific question q = 1,··· ,Q ,
with its vocabulary size Vq (see section 2.3 for details). We note that subjects are free to
track whatever questions they want over time and thus, data is highly unbalanced across
participants and tracked variables.
The per-question mixed-membership generative process for each subject s = 1,··· ,S ,
follows:
5
Phenotyping Endometriosis
1. Draw per-subject phenotypic proportions φs∼ DirichletK(φ|α) of dimension K with
hyperparameter α.
2. Draw per-phenotype and per-question response proportions θk,q∼ DirichletVq(θ|βk,q),
for all phenotypes k = 1,··· ,K , and questions q = 1,··· ,Q , with vocabulary size Vq
and hyperparameters βk,q.
3. Draw per-subject observation phenotype assignments zs,n∼ CategoricalK(z|φs), for
n = 1,··· ,Ns.
4. Draw per-subject questions responses xs,n|zs,n,qs,n∼ CategoricalVqs,n(x|θzs,n,qs,n), for
n = 1,··· ,Ns, where qs,n indicates the response n to question q by subject s.
After observing a dataset with Nsq responses per-subject and question, the goal is to
infer the phenotypic proportions φs for each participant, and the set of K phenotypes of
the disease, parameterized per-question by θk,q.
To that end, and due to the conjugacy assumptions in the generative process, we resort
to a collapsed Gibbs sampler that utilizes the following distribution for observation n∗,
givenN previously “seen” data points
p(zs,n∗ =k|xs,n∗,qs,n∗,αN,βN)∝p(zs,n∗ =k|αs,N)p(xs,n∗|qs,n∗,zs,n∗,βk,q,N ),
with
p(zs,n∗ =k|αs,N) = αk,s,N∑K
k=1αk,s,N
,
p(xs,n∗|qs,n∗,zs,n∗,βk,q,N ) =
βk,q,vq ,N
∑Vq
vq =1βk,q,vq ,N
,
(1)
where the parameters for the updated posteriors are of the form
p(φs|ZN,α 0) = DirichletK(φs|αs,N), withαk,s,N =αk,0 +Ns,k ,
p(θk,q|XN,QN,ZN,βk,q,0) = Dirichlet(θk,q|βk,q,N ), withβk,q,vq,N =βk,q,vq,0 +Nk,q,vq .
(2)
Note that for the unsupervised learning of phenotypes, we only consider the self-tracked
data, and leave the WERF EPHect questionnaire data for evaluation purposes.
4. Evaluation
4.1. Experimental Setup
We evaluate and validate the proposed method from different perspectives.
Likelihood of the learned model on unseen data. The quality of the proposed model
(and chosen hyperparameters) is evaluated by held-out data log-likelihood comparisons. We
split our dataset into 80/20 train/test splits, and evaluate the model learned in the training
set with its log-likelihood in the test dataset. We note that computing the log-likelihood of
mixed-membership models is nontrivial, as discussed in Wallach et al. (2009). The results
presented here are based on extending the “left-to-right” method proposed by (Wallach
et al., 2009) to the per-question mixed membership model of section 3.
6
Phenotyping Endometriosis
Clinical interpretability. The enigmatic nature of endometriosis and its poor clinical
characterization makes indispensable the interpretability of the model. We want to under-
stand the specificity of signs and symptoms of the disease for each learned phenotype, as they
are likely to be heterogeneous. For interpretability, we focus our analysis on per-phenotype
variable posteriors. These per-question posteriors reflect not only which responses are more
commonly tracked per phenotype, but also how they correlate with each other.
To allow for easy and visually appealing clinical evaluation, we provide both raw poste-
rior heatmaps and most salient response wordclouds. Due to the different support size for
each considered question, we plot wordclouds conditioned on the vocabulary items that cover
80% of the posterior mass. The maximum font size is fixed equal for all phenotypes within a
question, and the relative size of responses follows the proportions of the conditional prob-
ability ratios. This allows for a more clear identification of the most salient responses and
a principled way of comparing different sized-vocabularies. Both the heatmaps and word
clouds of the posterior variables per phenotypes were provided to endometriosis experts for
review.
Agreement between expert clustering and phenotyping. We randomly selected 30
participants from the cohort, who had at least 30 days of tracked data and had high posterior
probability (above 95% percent) of being assigned to a unique phenotype (10 participants
per phenotype) in the learned model. Note that participants to be evaluated by clinical
experts were selected randomly within each subtype, based on the model’s output only, and
that experts were not involved in this selection process at all. The responses collected from
these patients were reviewed by two clinical experts, who were asked to group them into
three clusters based on their clinical understanding of patient signs and symptoms. The
assignments by the experts and the model are compared, via confusion matrices and cluster
purity metrics.
Associations with standardized questionnaire. We selected a subset of questions
from the WERF EPHect questionnaire for validation purposes, which included responses
about family history of endometriosis, pelvic pain, menstrual characteristics, surgical pro-
cedures, comorbidities, and activities of daily living, as well as general health indicators.
We perform association tests between participants assigned to each phenotype (hard clus-
tering based on learned per-participant phenotypic posteriors) and their responses to the
questions of interest, and report correlations that are significant. Specifically, categorical
question answers were collapsed to ‘yes’ or ‘no’ outcomes for each cluster, producing 2 × 2
contingency tables. Fisher’s exact test (Fisher, 1922) was used for each contingency table
to produce an odds ratio, which represents the likelihood of saying ‘yes’ to a particular
question and being in a particular cluster, versus the odds of saying ‘no’ to that question
and not being in a particular cluster. The average for answers with continuous outcome
questions was computed for each cluster, and compared to the mean of those not in that
particular cluster, using Welchs t-test for unequal variances (Ruxton, 2006). Significance
for Fisher’s exact tests and Welchs t-tests was determined at the 0 .05 level.
4.2. Results
Model Likelihood. We study the proposed model’s phenotyping accuracy via 5-fold
log-likelihood evaluation. As shown in Figure 2, there is a significant improvement of
7
Phenotyping Endometriosis
our method when compared to vanilla LDA, where responses to all questions are modeled
together as a bag-of-words. As we allow for per-question modalities, our method is capable
of capturing discriminative signals in each of the variables, thus distinguishing between
phenotypes (Figure 4). We emphasize the robustness of the inference mechanism with
respect to particular choices of hyperparameters. There is a slight performance improvement
for sparse phenotypes, which we further take advantage of for interpretability purposes.
K = 2, = 0.1, = 0.1
K = 2, = 0.1, = 0.01
K = 2, = 0.1, = 0.001
K = 2, = 0.01, = 0.1
K = 2, = 0.01, = 0.01
K = 2, = 0.01, = 0.001
K = 2, = 0.001, = 0.1
K = 2, = 0.001, = 0.01
K = 2, = 0.001, = 0.001
K = 3, = 0.1, = 0.1
K = 3, = 0.1, = 0.01
K = 3, = 0.1, = 0.001
K = 3, = 0.01, = 0.1
K = 3, = 0.01, = 0.01
K = 3, = 0.01, = 0.001
K = 3, = 0.001, = 0.1
K = 3, = 0.001, = 0.01
K = 3, = 0.001, = 0.001
K = 4, = 0.1, = 0.1
K = 4, = 0.1, = 0.01
K = 4, = 0.1, = 0.001
K = 4, = 0.01, = 0.1
K = 4, = 0.01, = 0.01
K = 4, = 0.01, = 0.001
K = 4, = 0.001, = 0.1
K = 4, = 0.001, = 0.01
K = 4, = 0.001, = 0.001
K = 5, = 0.1, = 0.1
K = 5, = 0.1, = 0.01
K = 5, = 0.1, = 0.001
K = 5, = 0.01, = 0.1
K = 5, = 0.01, = 0.01
K = 5, = 0.01, = 0.001
K = 5, = 0.001, = 0.1
K = 5, = 0.001, = 0.01
K = 5, = 0.001, = 0.001
450000
400000
350000
300000
250000
200000
logp()
Figure 2: 5-fold test data log-likelihood of the proposed method (in red) Vs LDA (in blue).
Interpretability. In this experiment and those to follow, we focus on a selected model
with 3 phenotypes (as models with more subtypes did not capture new discriminating in-
sights) and sparse parameters (α =β = 0.001). The sparsity of the model allows for (i) few
vocabulary items per-question being distinctive for each phenotype, and (ii) having discrim-
inative per-participant phenotypic profiles (i.e., located on the vertices of the probability
simplex and thus strongly clustered).
The proposed model is clinically useful in that, for representing a participant, it allows
for the tracked symptoms to be explained by a mixture of the learned phenotypes. We
show the phenotypic assignments of participants to each learned endometriosis subtype in
Figure 3, and note that they do not correlate with the number of days (or observations)
participants tracked. Although participants in all phenotypes have tracked similar number
of days (39, 43 and 46 on average), participants associated with phenotype 0 have tracked
more observations (on average, 126, 80 and 80, respectively).
8
Phenotyping Endometriosis
0 1 2
k
0
500
1000
1500
2000
2500s
0.0
0.2
0.4
0.6
0.8
1.0
Figure 3: Learned per-participant posterior phenotypic distribution.
We now elaborate on the specificity of signs and symptoms of the disease for each
learned phenotype, based on learned per-question posteriors (Figure 4), and their word-
cloud visualizations (Figures 5 – 17).
Pain is shared across all phenotypes, and its location is most often tracked for pelvic
and lower back areas (Figure 5). The commonality of these pain locations is expected, given
that lower back and pelvic pain are stereotypical for endometriosis (Chiantera et al., 2017).
Phenotype 0, however, has a much wider range of locations in which pain is experienced,
characterized by reports of deep vagina pain, rectal pain, and pain projecting along the legs
(Figure 5). Similarly, certain descriptions of pain are common across phenotypes, such as
deep, aching, and cramping (Figure 6). However, phenotype 0 has a wider range of descrip-
tions of how pain is experienced, besides pain being predominantly characterized as severe
(Figure 7). These characterizations of pain across phenotypes indicate that the burden on
pain is much heavier and severe for phenotype 0, while moderate or mild descriptors are
associated with phenotypes 1 and 2 (this trend is consistent for the majority of questions).
Each phenotype had strong involvement of gastrointestinal symptoms and was char-
acterized by “endo belly” across phenotypes (Figure 8). This is a very common disease
symptom where the abdomen severely bloats (Ek et al., 2015; Luscombe et al., 2009). Phe-
notype 0 is distinctively associated with genitourinary symptoms, like painful and frequent
urination or dysuria. While genitourinary symptoms in endometriosis are known, their
association with a subgroup of patients is novel (Denny and Mann, 2007a).
As for menstrual characteristics (visualized in Figure 10), phenotype 0 reports heavier
flow or menorrhagia. Menorrhagia is a common endometriosis symptom but has not been
associated with a particular subgroup of endometriosis patients (Vercellini et al., 1997).
Moreover, although all phenotypes have tracked spotting or bleeding outside of the pe-
9
Phenotyping Endometriosis
riod (Figure 11), phenotype 0 is also likely to track clots, consistent with descriptions of
menorrhagia (Warner et al., 2004).
Painful sex or dyspareunia is a wieldy known symptom for endometriosis (Denny and
Mann, 2007b). As shown in Figure 12, our model learned that all phenotypes avoided sex.
Furthermore, phenotype 0 is distinguished by the active avoidance of sex, and does not
experience satisfying sex.
General quality of life, as measured by the “How was your day?” question and tracked
daily activities visualized in Figures 16 and 17 respectively, show similar severe, moderate,
and mild patterns for each phenotype. All phenotypes have manageable days, though bad
days are more present for phenotype 0. Even if there are common difficulties associated
with activities of daily living across phenotypes, phenotype 0 has a wider range of tracked
problems.
Medications and hormones clearly discriminate the patients by severity of disease, as
shown in Figure 13. Phenotype 2 does not take medications, or may take a combination of
hormonal medications like birth control pills (BCPs). BCPs are often used as a first line
treatment for endometriosis symptoms (Schrager et al., 2013). Phenotype 1 takes BCPs
as well, but is further characterized by its use of analgesics. In stark contrast, phenotype
0 has heavy medication use, taking anti-depressants and strong pain medications,including
narcotics, neuropathic pain medications and opioids.
Other symptoms of endometriosis, which were collected via the “What else are you
experiencing?” question shown in Figure 14, reflect the chronic nature of endometriosis.
Fatigue, mental fogginess, and headache occur across all phenotypes and are similar to
other complex chronic conditions like chronic fatigue syndrome. These symptoms are also
characteristic of low grade inflammation (Holgate et al., 2011; Louati and Berenbaum, 2015).
10
Phenotyping Endometriosis
0 1 2
k
bones_paincervix_paindeep_vagina_paindiaphragm_painhead_paininner_thighs_painintestines_painjoints_painleft_arm_painleft_breast_painleft_leg_painleft_lower_back_painleft_outer_hip_painleft_ovary_painleft_pelvis_painleft_ribs_painleft_shoulder_painleft_side_abdomen_painlegs_painlower_back_painlower_chest_painneck_painpelvis_painrectum_painright_arm_painright_breast_painright_leg_painright_lower_back_painright_outer_hip_painright_ovary_painright_pelvis_painright_ribs_painright_shoulder_painright_side_abdomen_painupper_abdomen_painupper_chest_painuterus_painvagina_entrance_painwhole_abdomen_pain
0.0
0.2
0.4
0.6
0.8
1.0
(a) Where is the pain.
0 1 2
k
aching_pain
burning_pain
cramping_pain
deep_pain
dull_pain
nauseating_pain
pressure_pain
pulling_pain
pulsating_pain
radiating_pain
sharp_pain
shooting_pain
stabbing_pain
throbbing_pain
twisting_pain
0.0
0.2
0.4
0.6
0.8
1.0 (b) Describe the pain.
0 1 2
k
mild_pain
moderate_pain
severe_pain
0.0
0.2
0.4
0.6
0.8
1.0 (c) How severe is the pain?
0 1 2
k
blood_in_stool
cant_urinate
constipation
diarrhea
endo_belly
frequent_urination
gas
heartburn
mouth_sores
nausea
painful_bowel_movement
painful_urination
stomach_upset
uncomfortably_full
vomiting
0.0
0.2
0.4
0.6
0.8
1.0
(d) Describe GI/GU system.
0 1 2
k
mild_GI
moderate_GI
severe_GI
0.0
0.2
0.4
0.6
0.8
1.0 (e) How severe is it.
0 1 2
k
heavy_flow
light_flow
medium_flow
0.0
0.2
0.4
0.6
0.8
1.0 (f) Describe the flow.
0 1 2
k
breakthrough_bleeding
clots
no_bleeding
spotting
0.0
0.2
0.4
0.6
0.8
1.0
(g) What kind of bleeding.
0 1 2
k
avoided_sex
bleeding_from_sex
no_sex
painful_after_sex
painful_during_sex
sex_felt_good
0.0
0.2
0.4
0.6
0.8
1.0 (h) Describe sex.
0 1 2
k
no_med_hormones
estrogen/progestin
nsaids
noclass
progestin
analgesic
antidepressant
analgesic/narcotic
narcotic
neuropathic_pain_medication
0.0
0.2
0.4
0.6
0.8
1.0 (i) Medications/hormones taken.
0 1 2
k
allergies
asthma
blurry_vision
chest_pressure
dizziness
eczema
fatigue
fever
headache
hives
hot_flash
itchy
mentally_foggy
noise_sensitivity
numbness
rash
ringing_in_ears
sinus_congestion
sweaty
swelling
touch_sensitivity
0.0
0.2
0.4
0.6
0.8
1.0
(j) What are you experiencing.
0 1 2
k
mild_symptoms
moderate_symptoms
severe_symptoms
0.0
0.2
0.4
0.6
0.8
1.0 (k) How severe is the symptom.
0 1 2
k
bad_day
good_day
great_day
manageable_day
unbearable_day
0.0
0.2
0.4
0.6
0.8
1.0
(l) How was your day?
0 1 2
k
climb_stairs
eat
get_dressed
get_out_of_bed
have_sex
housework
jump
kneel
lie_down
lift
no_trouble
prepare_food
run
shop
shower
sit_down
sleep
socialize
stand
stretch
use_toilet
walk
work
0.0
0.2
0.4
0.6
0.8
1.0 (m) Activities
Figure 4: Visualization of per-question posteriors for learned endometriosis phenotypes.
11
Phenotyping Endometriosis
(a) Phenotype k = 0
(b) Phenotype k = 1
(c) Phenotype k = 2
Figure 5: Where is the pain.
(a) Phenotype k = 0
(b) Phenotype k = 1
(c) Phenotype k = 2
Figure 6: Describe the pain.
(a) Phenotype k = 0
(b) Phenotype k = 1
(c) Phenotype k = 2
Figure 7: How severe is the pain.
12
Phenotyping Endometriosis
(a) Phenotype k = 0
(b) Phenotype k = 1
(c) Phenotype k = 2
Figure 8: Describe GI/GU system.
(a) Phenotype k = 0
(b) Phenotype k = 1
(c) Phenotype k = 2
Figure 9: How severe is it.
(a) Phenotype k = 0
(b) Phenotype k = 1
(c) Phenotype k = 2
Figure 10: Describe the flow.
(a) Phenotype k = 0
(b) Phenotype k = 1
(c) Phenotype k = 2
Figure 11: What kind of bleeding.
(a) Phenotype k = 0
(b) Phenotype k = 1
(c) Phenotype k = 2
Figure 12: Describe sex.
13
Phenotyping Endometriosis
(a) Phenotype k = 0
(b) Phenotype k = 1
(c) Phenotype k = 2
Figure 13: Medications/hormones taken.
(a) Phenotype k = 0
(b) Phenotype k = 1
(c) Phenotype k = 2
Figure 14: What are you experiencing.
(a) Phenotype k = 0
(b) Phenotype k = 1
(c) Phenotype k = 2
Figure 15: How severe is the symptom.
14
Phenotyping Endometriosis
(a) Phenotype k = 0
(b) Phenotype k = 1
(c) Phenotype k = 2
Figure 16: How was your day?
(a) Phenotype k = 0
(b) Phenotype k = 1
(c) Phenotype k = 2
Figure 17: Activities
Clustering agreement. Table 2 shows the agreement between the learned model’s pos-
terior assignments and those determined by two different experts, with purity values of 0 .6
and 0.73 for the first and second experts, respectively. The expert assignments to model’s
phenotype 0 (the severe case) were the most accurate, while deciding between the other
two phenotypes was deemed to be harder. As a matter of fact, both experts raised several
concerns about needing more data to make more informed decisions, as they had difficulties
distinguishing between non-severe endometriosis cases.
Phenotype Expert 1
0 1 2
0 8 2 0
1 3 5 2
2 3 2 5
Model
Phenotype Expert 2
0 1 2
0 7 1 2
1 1 8 1
2 0 7 3
Model
Table 2: Phenotype confusion matrices.
Consequently, both experts were asked to discriminate between severe and non-severe
cases, for which results are shown in Table 3, with purities of 0 .73 and 0.87 respectively.
Association with gold-standard questionnaire. We now summarize our results on
how the learned phenotypes associate with responses to the WERF EPHect questionnaire.
In general, severity and quality of life indicators of endometriosis as specified by WERF
standards align well with how our model discriminates patients.
15
Phenotyping Endometriosis
Severe case Expert 1
Yes No
Yes 8 2
No 6 14Model
Severe case Expert 1
Yes No
Yes 7 3
No 1 19Model
Table 3: Severe case confusion matrices.
Overall, phenotype 0 (severe phenotype) is associated with a heavier burden of dis-
ease. It shows correlation with a number of comorbidities such as anxiety (odds ratio,
OR=1.62), depression or mood disorders (OR=1.57), migraine (OR=2.27), high blood pres-
sure (OR=1.69), and polycystic ovary syndrome PCOS (OR=1.81). It is also associated
with painful bladder problems like interstitial cystitis (OR=2.28), which did not occur in
patients in other phenotypes. Symptoms of these comorbidities are salient in the obtained
posteriors (see for example, how the severe phenotype is characterized by painful urina-
tion). Furthermore, women with endometriosis are known to exhibit these comorbidities:
anxiety, depression, and other mood disorders (Pope et al., 2015), migraines (Yang et al.,
2012), high blood pressure (Mu et al., 2017), PCOS (Holoch et al., 2014), and painful
urination/interstitial cystitis (Chung et al., 2005).
Participants assigned to phenotype 0 also show an important reduction in quality of life,
as compared to those in other phenotypes. Patients within this subtype were 3.25 more likely
to rate their health as poor. Patients within the severe phenotype are more likely (OR=1.70)
to report problems regarding going to work or carrying out activities of daily living as
well. These participants had also higher odds of experiencing limitations with vigorous
activities such as running (OR=2.06), moderate activities like housework (OR=3.45), lifting
(OR=3.86), climbing even one flight of stairs (OR=4.42), bending (OR=3.52), walking just
one block (OR=5.47), dressing, as well as bathing (OR=10.67). Problems with productivity
and reduced quality of life among endometriosis patients has been previously reported
(Shabanov et al., 2017).
The surgical burden of the disease is most evident for those subjects assigned to pheno-
type 0. Participants in this group had significantly higher number of laparoscopies (mean
1.67) as compared to those in phenotypes 1 and 2 (mean 1.36). Consistent with the ex-
isting literature (Ballard et al., 2006), patients also reported seeing several doctors before
diagnosis, with phenotype 0 being associated with the highest number of doctors seen
(mean=6.16), versus those in other phenotypes (mean=4.59).
Several other associations were consistent with current disease knowledge. The severe
phenotype had 10.86 times higher odds of having mild endometriosis (Stage 2) as compared
to phenotypes 1 and 2, and the mild phenotype had 0.48 times lower odds of having a surgery
where no endometriosis was found as compared to phenotypes 0 (severe) and 1 (moderate).
While these results might seem counterintuitive, they confirm the lack of correlation between
patient experience and existing staging of disease as discussed in the literature (Vercellini
et al., 2007). In addition, the odds of having an extremely regular period were 0.47 times
lower in phenotype 0 (severe phenotype) compared to others. Such menstrual irregularity
has been shown to be associated with endometriosis before (Signorello et al., 1997).
16
Phenotyping Endometriosis
Finally, associations were also found that may indicate differences in the etiology of the
disease among the different phenotypes. Those in phenotype 2 had 2.50 times higher odds
of having a sister with endometriosis than others. Many different causes of endometriosis
have been proposed including heritable tendencies, but the exact etiology remains unclear
(Cramer and Missmer, 2004). The set of proposed underlying causes of the diseases high-
lights the need for reducing the heterogeneity of clinical presentation of symptoms, and our
approach seems promising for reducing this heterogeneity. Finally, we found no significant
correlations between phenotypes and age, race, or time-to-diagnosis.
5. Conclusion
This paper contributes to research in digital phenotyping from self-tracking data. Our joint
modeling of multiple types of self-tracking variables through mixed-membership models
show that we can produce robust, clinically meaningful groupings of self-tracked variables.
These phenotypes, along with participant clustering, suggest novel findings about disease.
In the case of endometriosis, a particularly enigmatic condition with a dire need for phe-
notyping and subtyping, our methods identified three clusters of patients roughly grouped
by the severity of their condition. Further, clinically meaningful novel associations beyond
what is currently known about the disease were identified. Endometriosis phenotypes are
necessary as a first step towards a better understanding of the pathophysiologic mechanisms
of the disease, which will lead towards better treatment and management of patients based
on learned phenotypic characteristics.
Future work should include modeling the temporality of signs and symptoms of en-
dometriosis, particularly since it is estrogen dependent and thus linked to the menstrual
cycle. Nevertheless, the analysis in this study already shed novel insight and demonstrates
the value of patient-generated data in medical research.
Acknowledgments
The authors thank the study participants and acknowledge the many endometriosis advo-
cacy groups that helped in recruiting them. This work was supported by the Endometriosis
Foundation of America, the National Science Foundation award SCH 1344668, and the Na-
tional Library of Medicine award T15 LM007079. We also thank Dr. Shadi Safar Gholi and
Dr. Arnold Advincula for their time and expertise.
References
Karen Ballard, Karen Lowton, and Jeremy Wright. What’s the delay? A qualitative study
of women’s experiences of reaching a diagnosis of endometriosis. Fertility and sterility ,
86(5):1296–1301, 2006.
David M. Blei. Probabilistic Topic Models. Communications of the ACM , 55(4):77–84,
April 2012. ISSN 0001-0782.
David M Blei, Andrew Y Ng, and Michael I Jordan. Latent Dirichlet allocation. Journal
of machine Learning research, 3(Jan):993–1022, 2003.
17
Phenotyping Endometriosis
Brian M Bot, Christine Suver, Elias Chaibub Neto, Michael Kellen, Arno Klein, Christopher
Bare, Megan Doerr, Abhishek Pratap, John Wilbanks, E Ray Dorsey, et al. The mPower
study, Parkinson disease mobile data collected using ResearchKit. Scientific data , 3:
160011, 2016.
Yu-Feng Yvonne Chan, Pei Wang, Linda Rogers, Nicole Tignor, Micol Zweig, Steven G
Hershman, Nicholas Genes, Erick R Scott, Eric Krock, Marcus Badgeley, et al. The
Asthma Mobile Health Study, a large-scale clinical observational study using ResearchKit.
Nature biotechnology, 35(4):354, 2017.
Vito Chiantera, Elene Abesadze, and Sylvia Mechsner. How to understand the complexity
of endometriosis-related pain. Journal of Endometriosis and Pelvic Pain Disorders , 9(1):
30–38, 2017.
Maurice K Chung, Rosemary P Chung, and David Gordon. Interstitial cystitis and en-
dometriosis in patients with chronic pelvic pain: The “Evil Twins” Syndrome. JSLS:
Journal of the Society of Laparoendoscopic Surgeons , 9(1):25, 2005.
Daniel W Cramer and Stacey A Missmer. Epidemiology of endometriosis. In Endometriosis
in Clinical Practice, pages 79–94. CRC Press, 2004.
Elaine Denny and Christopher H. Mann. A clinical overview of endometriosis: a misunder-
stood disease. British journal of nursing , 16(18):1112–1116, 2007a.
Elaine Denny and Christopher H. Mann. Endometriosis-associated dyspareunia: the impact
on women’s lives. BMJ Sexual & Reproductive Health , 33(3):189–193, 2007b.
Malin Ek, Bodil Roth, Per Ekstr¨ om, Lil Valentin, Mariette Bengtsson, and Bodil Ohlsson.
Gastrointestinal symptoms among endometriosis patient’s: A case-cohort study. BMC
Women’s Health, 15(1):59, 2015.
Ronald A Fisher. On the interpretation of χ2 from contingency tables, and the calculation
of P. Journal of the Royal Statistical Society , 85(1):87–94, 1922.
L Hartsell and K Heller. Preliminary fatigue subtype discovery from the MS mosaic study.
In Multiple Sclerosis Journal , volume 23, pages 734–735, 2017.
Stephen T Holgate, Anthony L Komaroff, Dennis Mangan, and Simon Wessely. Chronic
fatigue syndrome: understanding a complex illness. Nature Reviews Neuroscience, 12(9):
539, 2011.
Kristin J Holoch, Ricardo F Savaris, David A Forstein, Paul B Miller, H Lee Higdon III,
Creighton E Likes, and Bruce A Lessey. Coexistence of polycystic ovary syndrome and
endometriosis in women with infertility. Journal of Endometriosis and Pelvic Pain Dis-
orders, 6(2):79–83, 2014.
Neil P Johnson, Lone Hummelshoj, G David Adamson, J¨ org Keckstein, Hugh S Taylor,
Mauricio S Abrao, Deborah Bush, Ludwig Kiesel, Rulla Tamimi, Kathy L Sharpe-Timms,
et al. World Endometriosis Society consensus on the classification of endometriosis. Hu-
man Reproduction, 32(2):315–324, 2017.
18
Phenotyping Endometriosis
Marina Kvaskoff, Fan Mu, Kathryn L Terry, Holly R Harris, Elizabeth M Poole, Leslie
Farland, and Stacey A Missmer. Endometriosis: a high-risk population for major chronic
diseases? Human reproduction update, 21(4):500–516, 2015.
Karine Louati and Francis Berenbaum. Fatigue in chronic inflammation-a link to pain
pathways. Arthritis research & therapy, 17(1):254, 2015.
Georgina M Luscombe, Robert Markham, Mirari Judio, Ariadna Grigoriu, and Ian S Fraser.
Abdominal bloating: an under-recognized endometriosis symptom. Journal of Obstetrics
and Gynaecology Canada, 31(12):1159–1171, 2009.
Mollie McKillop, Natalie Voigt, Rebecca Schnall, and No´ emie Elhadad. Exploring self-
tracking as a participatory research activity among women with endometriosis. Journal
of Participatory Medicine, 2016.
Mollie McKillop, Lena Mamykina, and No´ emie Elhadad. Designing in the Dark: Eliciting
Self-tracking Dimensions for Understanding Enigmatic Disease. In Proceedings of the
2018 CHI Conference on Human Factors in Computing Systems , page 565. ACM, 2018.
Fan Mu, Janet Rich-Edwards, Eric B Rimm, Donna Spiegelman, John P Forman, and
Stacey A Missmer. Association Between Endometriosis and Hypercholesterolemia or
HypertensionNovelty and Significance. Hypertension, 70(1):59–65, 2017.
Rimma Pivovarov, Adler J. Perotte, Edouard Grave, John Angiolillo, Chris H. Wiggins,
and Nomie Elhadad. Learning probabilistic phenotypes from heterogeneous EHR data.
Journal of Biomedical Informatics , 58:156 – 165, 2015. ISSN 1532-0464.
Carley J Pope, Verinder Sharma, Sapna Sharma, and Dwight Mazmanian. A systematic
review of the association between psychiatric disturbances and endometriosis. Journal of
Obstetrics and Gynaecology Canada , 37(11):1006–1015, 2015.
Graeme D Ruxton. The unequal variance t-test is an underused alternative to Student’s
t-test and the Mann–Whitney U test. Behavioral Ecology, 17(4):688–690, 2006.
Sarina Schrager, Julianne Falleroni, and Jennifer Edgoose. Evaluation and treatment of
endometriosis. Am Fam Physician, 87(2):107–113, 2013.
S Shabanov, JM Wenger, S Seidler, M Bolmont, F Bianchi-Demicheli, and N Pluchino.
When sex hurts the couple: the case of endometriosis. Revue medicale suisse , 13(554):
612–616, 2017.
Lisa B Signorello, Bernard L Harlow, Daniel W Cramer, Donna Spiegelman, and Joseph A
Hill. Epidemiologic determinants of endometriosis: a hospital-based case-control study.
Annals of epidemiology, 7(4):267–274, 1997.
Steven Simoens, Gerard Dunselman, Carmen Dirksen, Lone Hummelshoj, Attila Bokor, Iris
Brandes, Valentin Brodszky, Michel Canis, Giorgio Lorenzo Colombo, Thomas DeLeire,
et al. The burden of endometriosis: costs and quality of life of women with endometriosis
and treated in referral centres. Human Reproduction, 27(5):1292–1299, 2012.
19
Phenotyping Endometriosis
John Torous, Patrick Staples, Ian Barnett, Luis R Sandoval, Matcheri Keshavan, and Jukka-
Pekka Onnela. Characterizing the clinical relevance of digital phenotyping data quality
with applications to a cohort with schizophrenia. npj Digital Medicine , 1(1):15, 2018.
P. Vercellini, L. Fedele, G. Aimi, G. Pietropaolo, D. Consonni, and P.G. Crosignani. As-
sociation between endometriosis stage, lesion type, patient characteristics and severity of
pelvic pain symptoms: a multivariate analysis of over 1000 patients. Human Reproduc-
tion, 22(1):266–271, 2007.
Paolo Vercellini, Olga De Giorgi, Giorgio Aimi, Stefania Panazza, Anna Uglietti, and
Pier Giorgio Crosignani. Menstrual characteristics in women with and without en-
dometriosis. Obstetrics & Gynecology, 90(2):264–268, 1997.
Allison F Vitonis, Katy Vincent, Nilufer Rahmioglu, Amelie Fassbender, Germaine M Buck
Louis, Lone Hummelshoj, Linda C Giudice, Pamela Stratton, G David Adamson, Chris-
tian M Becker, et al. World Endometriosis Research Foundation Endometriosis Phenome
and biobanking harmonization project: II. Clinical and covariate phenotype data collec-
tion in endometriosis research. Fertility and sterility, 102(5):1223–1232, 2014.
Hanna M Wallach, Iain Murray, Ruslan Salakhutdinov, and David Mimno. Evaluation
Methods
for Topic Models. In Proceedings of the 26th Annual International Conference
on Machine Learning , ICML ’09, pages 1105–1112, New York, NY, USA, 2009. ACM.
ISBN 978-1-60558-516-1.
Pamela E Warner, Hilary OD Critchley, Mary Ann Lumsden, Mary Campbell-Brown, Anne
Douglas, and Gordon D Murray. Menorrhagia I: measured blood loss, clinical features,
and outcome in women with heavy periods: a survey with follow-up data. American
Journal of Obstetrics & Gynecology , 190(5):1216–1223, 2004.
JM Wheeler. Epidemiology of endometriosis-associated infertility. The Journal of repro-
ductive medicine, 34(1):41–46, 1989.
Meng-Han Yang, Peng-Hui Wang, Shuu-Jiun Wang, Wei-Zen Sun, Yen-Jen Oyang, and
Jong-Ling Fuh. Women with endometriosis are more likely to suffer from migraines: a
population-based study. PLoS One, 7(3):e33941, 2012.
Andong Zhan, Srihari Mohan, Christopher Tarolli, Ruth B Schneider, Jamie L Adams,
Saloni Sharma, Molly J Elson, Kelsey L Spear, Alistair M Glidden, Max A Little, et al.
Using Smartphones and Machine Learning to Quantify Parkinson Disease Severity: The
Mobile Parkinson Disease Score. JAMA neurology, 2018.
20
Phenotyping Endometriosis
Appendix A.
Vocabulary for each tracked question:
• Where is the pain : bones pain, cervix pain, deep vagina pain, diaphragm pain,
head pain, inner thighs pain, intestines pain, joints pain, left arm pain, left breast pain,
left leg pain, left lower back pain, left outer hip pain, left ovary pain, left pelvis pain,
left ribs pain, left shoulder pain, left side abdomen pain, legs pain, lower back pain,
lower chest pain, neck pain, pelvis pain, rectum pain, right arm pain, right breast pain,
right leg pain, right lower back pain, right outer hip pain, right ovary pain, right pelvis pain,
right ribs pain, right shoulder pain, right side abdomen pain, upper abdomen pain,
upper chest pain, uterus pain, vagina entrance pain, whole abdomen pain
• Describe the pain: aching pain, burning pain, cramping pain, deep pain, dull pain,
nauseating pain, pressure pain, pulling pain, pulsating pain, radiating pain, sharp pain,
shooting pain, stabbing pain, throbbing pain, twisting pain
• How severe is the pain? : mild pain, moderate pain, severe pain
• What are you experiencing: allergies, asthma, blurry vision, chest pressure, dizzi-
ness, eczema, fatigue, fever, headache, hives, hotflash, itchy, mentally foggy, noise sensitivity,
numbness, rash, ringing in ears, sinus congestion, sweaty, swelling, touch sensitivity
• How severe is the symptom: mild symptoms, moderate symptoms, severe symptoms
• Describe the flow : heavy flow, light flow, medium flow
• What kind of bleeding : breakthrough bleeding, clots, no bleeding, spotting
• Describe GI/GU system : blood in stool, cant urinate, constipation, diarrhea,
endo belly, frequent urination, gas, heartburn, mouth sores, nausea, painful bowel movement,
painful urination, stomach upset, uncomfortably full, vomiting
• How severe is it: mild GI, moderate GI, severe GI
• Describe sex: avoided sex, bleeding from sex, no sex, painful after sex, painful during sex,
sex felt good
• Activities: climb stairs, eat, get dressed, get out of bed, have sex, housework, jump,
kneel, lie down, lift, no trouble, prepare food, run, shop, shower, sit down, sleep,
socialize, stand, stretch, use toilet, walk, work
• How was your day?: bad day, good day, great day, manageable day, unbearable day
• Medications/hormones taken: adrenergic agonists, amphetamine, analgesic, anal-
gesic/narcotic, analgesic/nsaids, analgesic/opioids, anesthetic, anorectic, anti-inflammatory,
antiacid, antiacid/nsaids, antibiotics, anticholinergic, anticoagulant, anticonvulsant,
antidepressant, antidiabetic medication, antidiarrheal, antiemetic, antihistamine, an-
tihypertensive, antipsychotic, antispasmodic, antispasmodic/sedative, anxiolytic, anx-
iolytic/anesthetic/muscle relaxant, barbituate, barbituate/analgesic, beta blocker, bron-
chodilator, calcium channel blocker, cough medicine, decongestant, diuretic, dopamine agonist,
21
Phenotyping Endometriosis
estrogen, estrogen/progestin, gonadotropin-releasing hormone agonist, gonadotropin-
releasing hormone antagonist, hormone based chemotherapy, hormone replacement therapy,
human chorionic gonadotropin, human follicle stimulating hormone, laxative, muscle relaxant,
narcotic, narcotic/nsaids, neuropathic pain medication, no med hormones, noclass,
nonbenzodiazepine hypnotic, nsaids, opioids, progestin, sedative, statin, steroid, stim-
ulant, thyroid hormones, topical anti-tumor medication, triptan, vasoconstrictor, vi-
tamin a derivative
22
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.