How close can a symptom questionnaire get to a diagnosis?
EndoLore began with diagnostic delay: endometriosis can go unrecognised for years, and a shorter path to appropriate care is why this project exists. In the Wet Lab we are working towards a saliva-based test built on an engineered biosensor circuit, still at proof-of-concept stage. In the Dry Lab we asked a parallel, more modest question: could a carefully designed questionnaire, interpreted with machine learning, identify symptom patterns that warrant further clinical assessment?
We designed the questionnaire on purpose, with patient associations, to describe the symptoms of people with and without a diagnosis. Applying machine learning to it was our own team's idea; the literature came afterwards, and we were glad to find studies of the same kind. This page follows the idea through six evolving questions, and offers the Python tools and analysis methods that other teams can adapt. Try the label-error simulator → The questionnaire and who answered →
- Performance belongs to the data, not only to the model. The same symptom model can score very high on one dataset and much lower on another. A result describes a model and a dataset together.
- Who answered, and who the negative group is, matters. Earlier studies often concentrated on particular populations. A person labelled “no diagnosis” is not a confirmed negative, and who sits in that group changes what a score means.
- Machine learning is promising, as one part of a larger diagnostic effort. Symptoms carry real signal, in the published data and in ours. Our results and the published research support using them for triage alongside other evidence, not instead of it.
Could a questionnaire do more than record symptoms?
Endometriosis affects about one in ten women of reproductive age1, and it can go unrecognised for years: studies in several countries report average or median delays of roughly 7 to 10 years between first symptoms and diagnosis2,3,4,5, and a French multicentre study found a total delay of 12 years6. We wanted to understand whether something as accessible as patients' own accounts of their symptoms could help shorten that delay. The diagnostic challenge · Our Human Practices
The questionnaire was built with that purpose, and with patient associations. EndoEspoir Océan Indien, based on La Réunion, told us about its symptom-tracking booklet, developed with regional support to help patients record their symptoms and treatments7. ENDOMIND reviewed our questionnaire in detail, and its feedback showed how questions about periods, contraception or disease stage can miss important details of patients' lives. ENDOMIND, EndoAction and EndoEspoir Océan Indien then helped circulate it to their communities, which is why 647 people answered. We discuss these exchanges and the questionnaire revisions on our Human Practices page, and describe the questions themselves on the questionnaire page.
We first wanted to describe which symptoms people experience, including people without a diagnosis, and to consider how symptom information might complement a future molecular test. A symptom diary can help a patient talk to a clinician, but it does not establish whether that person has endometriosis. Clinical guidance sees a possible role for diaries and questionnaires while noting that there is currently no evidence that they shorten the time to diagnosis8.
Then we asked a further question: could machine learning find patterns in the answers and help identify people who should seek further clinical assessment? That idea was our own. Only afterwards did our literature search show that researchers had explored similar ideas, with encouraging results.
Literature digest and datasets
Published symptom-based models report AUCs between about 0.7 and 0.94. Much of the difference lies in the comparison group: women awaiting surgery, hospital patients, volunteers from the general population, or online respondents who report no diagnosis. These two blocks open to the studies we read, the datasets we tried to reach and the researchers we wrote to. The columns of the digest follow the patient-selection and reference-standard questions of QUADAS-2, the standard tool for judging diagnostic accuracy studies9.
Literature digest: symptom-based prediction studiesEight studies, with who the controls were and how each was validated
| Study | Design and controls | Reported performance | Validation |
|---|---|---|---|
| Nnoaham et al. 2012, WERF WHSS10 | 1,396 symptomatic women scheduled for a first laparoscopy, 19 hospitals, 13 countries, 25-item questionnaire. Controls: women without endometriosis at laparoscopy. | AUC 0.68 for any stage; 0.85 for stage III/IV | Two phases: development, then validation |
| Fauconnier et al. 202111 | 105 histology-confirmed cases and 197 controls from three groups (45 asymptomatic consultation attendees, 66 women with pain or infertility and no endometriosis, 86 population controls). 21 yes/no items. | AUC 0.92 (95% CI 0.87–0.95) | Internal only |
| Chapron et al. 202212 | 2,527 patients at one Paris centre: 1,195 with histology-confirmed endometriosis, 1,332 with no lesions at surgery. Score from pre-operative questionnaires, including family history, infertility, BMI and pain scores. | C-index 0.81 (internal), 0.73 (external, 308 patients) | Internal and external |
| Goldstein and Cohen 202313 | 886 respondents recruited through online groups: 474 reporting a diagnosis, 412 reporting none. Diagnoses are self-reported. The authors note that some respondents without a diagnosis may have undiagnosed endometriosis. 24-symptom AdaBoost model. | AUC 0.94, sensitivity 0.93, specificity 0.95 | 10-fold cross-validation only. A 2024 author correction exists14 |
| Zieliński et al. 202315 | 13,933 questionnaires, gradient-boosted trees (LightGBM) with feature selection, top 20 predictors. | AUC 0.85 (training), 0.82 (test) | Internal split only |
| Bendifallah et al. 202216 | 16 clinical and patient-reported features. Training cohort: 1,126 participants with a diagnosis and 608 without; independent prospective validation cohort: 100 patients (87 diagnosed, 13 without). One predictor was history of surgery for endometriosis, which limits its use for people without a prior diagnosis. | External validation AUC: 0.92 (random forest) and 0.93 (XGBoost); performance varied considerably by algorithm. | Independent prospective cohort (n = 100), with a small comparison group (n = 13). |
| Verket et al. 201917 | 157 respondents reporting surgically confirmed endometriosis, recruited via a patient association, and 156 Oslo residents without a known diagnosis, randomly invited from the population register. Simple adolescent-history questions. | AUC 0.83 (two-factor logistic score) and 0.85 (four-factor LASSO score). | Internal evaluation only; the authors explicitly call for independent external validation. |
| Mishra et al. 2026, SAFE score18 | Adolescent factors from an Australian longitudinal cohort. Training 4,005, internal test 1,335, external test 4,077 (an older birth cohort). Six risk factors. | AUC 0.79, 0.79 and 0.71 | Internal and external |
Three observations shaped our work. Published results depend on the comparison group and how a study is validated. An AUC obtained within one cohort cannot be assumed to hold in another, even when the algorithm is unchanged. Some screening studies use symptoms alone, while others include medical history, clinical findings or prior surgery. For these reasons, we documented recruitment, predictors and reference labels before choosing which model to reproduce.
Earlier iGEM teams
Other iGEM teams have explored both the molecular and computational sides of endometriosis. Rochester's 2020 UteRus project combined menstrual-effluent biomarker detection with a symptom-based machine-learning risk calculator24. GO Paris-Saclay's 2021 EndoSeek focused on blood miRNAs and CRISPR-based detection, alongside computational biomarker selection25. Earlier and later teams have also investigated genetic circuits, multiplexed RNA sensors and therapeutic approaches. We collected relevant projects from different years in a separate guide: Endometriosis at iGEM. Our own software concentrates on how questionnaire-based models behave when populations and diagnostic labels change.
Datasets and tools exploredPublished resources, routes to reuse and our research progress
| Resource | What it contains | Access route stated by the authors | Status for EndoLore |
|---|---|---|---|
| EndoLore questionnaire | 647 self-reported questionnaires, including diagnosed respondents and people without a reported diagnosis. | Collected by our team; only aggregated findings are shared publicly while the data-protection review continues. | Analysed Explore the questionnaire |
| Goldstein and Cohen 202313,26 | 886 responses, 58 yes/no symptom variables, self-reported diagnosis | Public repository; the paper says data are available on request | Used We contacted the authors about our use |
| Reinhardt et al. 202527 | 427 Australian respondents: 143 who answered yes to having been diagnosed and 284 “at-risk undiagnosed” defined by severe menstrual pelvic pain plus another symptom | Open Science Framework repository (view-only link in the paper) | Analysed Independent secondary analyses of comparison-group definitions (Cycle 5). |
| WERF WHSS, Nnoaham et al.10 | 1,396 pre-menopausal women, laparoscopy-confirmed cases and laparoscopy-negative controls, 25-item questionnaire | Oxford-led research cohort; access to individual-level data requires institutional arrangements. | In contact Research reuse discussed with the Oxford team. Integrated Human Practices. |
| Fauconnier et al. 202111 | 105 cases, 197 controls in three subsets, 21-item questionnaire | DEVA is an integrated clinical algorithm protected by a UVSQ patent. Its source records cannot be shared separately; algorithm use could be considered under an appropriate agreement. | In contact Potential scientific collaboration and licensing discussed. Integrated Human Practices. |
| Chapron et al. 202212 | 2,527 patients, histology-confirmed cases and surgically negative controls | On reasonable request to the corresponding author | Author request Availability depends on the corresponding author. |
| Verket et al. 201917 | 157 cases and 156 population controls | Withheld by the authors while analyses were ongoing | Not yet released |
| Mishra et al. 2026 (GELLES)18 | Longitudinal cohort questionnaires and linked health data | Contact the principal investigator; linked health data need ethics and custodian approval | On request |
| Zieliński et al. 2023, code15 | Model code and notebooks. The questionnaire data are third-party and are not included | Public code repository, BSD-3-Clause licence | Code only |
| Imaging, molecular and exposure datasets | Pelvic MRI sets, endometrial gene-expression data, a cohort studying chemical exposures | Public deposits or request-based repositories | Out of scope They contain no questionnaire answers |
What the researchers told us
We exchanged with researchers about the practical and scientific conditions for reusing their work. The Oxford researchers were welcoming and open to discussing data reuse. We reached out late in the iGEM season, however, and completing the necessary institutional data-sharing arrangements was not realistic within our timeline; no individual-level cohort data were transferred. Dr Fauconnier explained that the DEVA algorithm is covered by UVSQ intellectual-property rights, while opening the possibility of collaboration between a clinical score and a molecular biomarker. These discussions also informed how we think about external validation. Details of the exchanges are documented in Integrated Human Practices.
Could we make a symptom-based model work on our own questionnaire, and what would its results really mean?
From our experiments to reusable tools
To answer our questions we built a modular Python workflow for preparing questionnaire data, comparing models and challenging their assumptions. Each investigation left behind scripts, documented decisions or evaluation methods that other teams can adapt. The table shows each component, where it appears on this page and where it stands.
| Component | What it does | Where | Status |
|---|---|---|---|
| Questionnaire processing | A bilingual data dictionary and import scripts for seven questionnaire links, with recruitment-channel tracking, missing-value handling, 13 data checks (including a k-anonymity check) and resubmission detection. | Data, Questionnaire | Done |
| Reproducible benchmark | Reanalysis of the public Goldstein and Cohen data, with a nine-theme mapping to our questionnaire and a symptom-count baseline. | Cycle 1 | Done |
| Label-error simulator | Controlled changes to diagnostic labels (random, mild, atypical), separate tests of errors in training and in evaluation. | Cycles 2 and 3 | Done |
| Interactive simulator | The label-error experiment in your browser, on synthetic data: choose who is missed and where the wrong labels sit. | Cycle 2 | Done |
| Ranking-stability audit | Repeated resampling to test whether a list of top symptoms holds. | Cycle 4 | Done |
| Cross-cohort evaluation | Applies the fitted nine-theme model, without retraining, to 647 EndoLore responses, with comparisons across recruitment channels. | Cycle 5 | Done |
| Alternative models | AdaBoost, logistic regression, random forests and gradient boosting trained on our own answers. | Cycle 6 | Done |
| Quick-start notebook and tests | A notebook that runs the pipeline and a label-error experiment in about two minutes (Jupyter or Google Colab), and automated tests of the core functions. | The code | Done |
Directions for further work. Positive-unlabelled methods could help explore uncertain diagnostic status. Sharing individual-level questionnaire data would require additional data-protection checks; for now, the open materials include the code, variable definitions and synthetic examples.
Designing software that others can use
We wanted the analysis to be reproducible, adaptable and understandable beyond our own team. The table below brings together the choices that make this possible, from documented data formats to controlled experiments and a quick-start notebook.
| Aspect | What our software does | Where to check |
|---|---|---|
| Standards and data formats | The data dictionary is a spreadsheet with controlled vocabularies, allowed values, three separate codes for missing answers and the role of each variable; the code reads it and hard-codes no variable name. Inputs and outputs are plain CSV, TSV and Excel. The variables cover the domains of the WERF EPHect standard questionnaires for endometriosis research (pain, menstrual and reproductive history, hormone use, medical history)28, so a mapping to EPHect is a natural next step. Code, dictionary and documentation are organised along FAIR lines29, and we report with the TRIPOD+AI30 and STARD31 items in mind. | Data, The code |
| Validation by experimental work | Three levels of validation. It reproduces a published result on the original data (AUC 0.977 with all questions; 0.94 published for 24). Its label-error experiments recover a truth known by construction, and we reran them for this page from the code, with the same result. And it was applied to a real questionnaire study of 647 people, designed and circulated with patient associations. | Cycle 1, Cycle 2, Cycle 5 |
| Useful to other projects | Any team that runs a questionnaire next to a diagnostic project can reuse the dictionary format, the data checks, the label-error simulator and the cross-cohort evaluation. Only the dictionary content is specific to endometriosis; the same questions arise for any condition with a long diagnostic delay or self-reported labels. | Adapting it |
| Integration with external tools | Built on the scikit-learn estimator interface32: any scikit-learn classifier can be added to the model list and is then evaluated by the same cross-validation and label-error code. It reads Framaforms exports and Excel files, writes CSV tables that open in any spreadsheet or statistics package, and runs in Jupyter and Google Colab. | The code |
| User-friendly, also for non-experts | Three entry points for three kinds of user: the interactive simulator on this page (nothing to install), a quick-start notebook (about two minutes), and the command line (one command, about a minute on synthetic data). Variables are defined in a spreadsheet, so a team can adapt the questionnaire without touching Python. | Simulator, How to run it |
| Written and documented for future groups | A README with installation, running and a table that maps each wiki result to its script; an architecture diagram (Figure 1); a module map; docstrings that explain the reasoning behind each experiment; pinned dependencies and automated tests. | The code |
| Aid to the wet-lab project | The software defines what the saliva test must achieve to add value: separate endometriosis from other causes among people who already have symptoms, and be evaluated against symptomatic controls recruited through the same routes. | What it means |
The model in one paragraph
We used the same family of method as the published study: AdaBoost, which combines fifty very simple yes or no rules (for example, “does she report pelvic pain?”) into one score between 0 and 133. We also ran logistic regression as a check. We chose simple methods on purpose: we have hundreds of answers, not millions, and we need to see what each symptom contributes. The score is read as a level of concern and a yes or no above a chosen cut-off, for research only.
Human Practices · QuestionnaireExplore the questionnaireWho answered, what the responses revealed about daily life and symptoms, and how feedback from patient associations shaped our next questions.Where the data comes from
Published data. The answers released with the study of Goldstein and Cohen: 886 people, 474 reporting a diagnosis and 412 reporting none, and 58 yes or no symptom variables in the public repository13,26. We used the repository the authors made public. The paper states that data are available on request, and we contacted the authors about our use. The diagnoses in this dataset are self-reported: no laparoscopy or imaging results are available for it, which is also true of our own questionnaire.
Our own data. 647 answers received between 3 July and 10 October 2026, after removing 6 test submissions and 8 duplicates: 242 people reporting a diagnosis and 405 reporting none. The questionnaire went out through seven separate links, so we know how each answer reached us: friends and family, an English-language link, student groups on social media, three patient associations, which helped circulate it, and the very first link, shared widely before each route had its own link. Who answered →
Ethics note: releasing the data
Our questionnaire contains sensitive health information. Removing names does not make a record anonymous when combinations of answers are rare: a person can be recognisable from a few of them34,35. We therefore treat release as a step that needs care, not as a formality.
- A first exploratory privacy check showed that some questionnaire response combinations are uncommon. Combining categories and removing recruitment-channel detail may help, but de-identification requires further evaluation.
- A data-protection review is in progress. No individual-level health responses are published or promised for public release.
- We will keep the associations involved in dissemination informed about any future proposal to share a de-identified extract.
Researchers who want to discuss a de-identified extract can contact the team at univ.lorraine.igem@gmail.com (iGEM UL Team).
What each cohort taught us
We explored several established endometriosis cohorts and discussed data reuse with their researchers (see the literature and data-access digest). This highlighted different routes to collaboration: some datasets require institutional transfer agreements, some tools have intellectual-property restrictions, and other discussions are still open. Meanwhile, we moved the research forward using the available published questionnaire data and our independently recruited EndoLore cohort. We built a reusable workflow to harmonise symptom questions, examine how recruitment and diagnostic labels influence results, and make future cross-cohort comparisons easier when additional data become available.
| Source | What it gave us | Where it enters |
|---|---|---|
| Goldstein and Cohen data (public) | A symptom-only dataset with a known diagnosis label, in which a model can be rebuilt and labels can be changed under control. | Cycles 1, 2, 3, 4 |
| EndoLore questionnaire, 647 answers | A second population, reached through known channels, to test the model without retraining. | Cycles 5 and 6 |
| Researchers and associations | The definition of controls, the sampling and the ethics conditions that a future cohort must meet. | The negative label, Cycle 5 |
Making two questionnaires comparable
The published questionnaire and ours ask different questions, with different answer scales, so a model fitted on one cannot simply be applied to the other. We treated this as a measurement problem and went through it as a design-build-test-learn cycle of its own.
Find the symptoms that both instruments measure, and a rule for each that turns our graded answers into the published yes or no. All cut-points were fixed before any result was seen.
Nine shared symptom themes: period pain, pelvic pain, pain during sex, painful bowel movements, digestive or urinary symptoms that follow the cycle, heavy periods, long periods, irregular cycles and infertility. Our questionnaire grades pain as none, mild, moderate or severe, while the published one asks yes or no, so moderate or severe counts as yes. The 22 model inputs come from our 25 dictionary questions, minus the group label, the disease stage and the diagnostic delay, which would leak the answer.
We recomputed our main results under two other, equally reasonable sets of rules. They changed the AUC against everyone without a diagnosis only between 0.69 and 0.72 (see Limits).
The mapping is a source of uncertainty, but a small one next to the others. Using nine themes instead of all 58 questions costs the published model about 0.03 AUC (Table 7), which we judged an acceptable price for being able to compare at all.
The nine shared themes and their rulesWhich published variable group, which of our questions, and where “yes” starts
| Theme | Published item | Our question | “Yes” when |
|---|---|---|---|
| Period pain | Menstrual pain (dysmenorrhea) | Dysmenorrhée | Moderate or severe |
| Pelvic pain | Pelvic pain | Douleur pelvienne | Moderate or severe |
| Pain during sex | Painful or burning pain during sex | Dyspareunie | Yes |
| Painful bowel movements | Painful bowel movements | Dyschésie | Yes |
| Digestive or urinary | Digestive or GI problems | Symptômes cycliques | Yes |
| Heavy periods | Heavy or extreme menstrual bleeding | Abondance des règles | Heavy |
| Long periods | Long menstruation | Durée des règles | More than 7 days |
| Irregular cycles | Irregular or missed periods | Régularité du cycle | Irregular |
| Infertility | Infertility | Infertilité | Yes |
Our first benchmark
We first checked how much performance is lost when the published symptom set is reduced to the nine themes our questionnaire can measure. We then evaluated the transported model on our own respondents. The comparison below sets up the questions explored in the six cycles.
How to read our results: a short glossaryAUC, sensitivity and specificity, labels, cut-off, contamination, transport
- AUC: how well does the model rank people?
- An AUC of 0.70 means that, when we take one respondent labelled positive and one labelled negative at random, the model ranks the positive respondent higher about 70% of the time, counting ties as half36. AUC measures ranking, not the percentage of correct diagnoses. A random ranking has an expected AUC of 0.50. In the tables, “AUC” always refers to this quantity; the model's own output is called its score.
- Cut-off, sensitivity and specificity
- The cut-off is the score above which the model says “yes”. Sensitivity is the proportion of labelled positives flagged by the model. Specificity is the proportion of labelled negatives not flagged. Both depend on the cut-off; AUC does not.
- Positive and negative labels
- In our questionnaire, positive means the respondent reported an endometriosis diagnosis; negative means they reported none. We call the second group “people without a diagnosis”, not “controls”, because nobody verified it. Neither label was clinically verified by our team, and no reported diagnosis is not proof that endometriosis is absent (next section).
- Contamination
- People who have the disease but sit in the negative group. In our experiments we create it on purpose by moving some positives into the negative group, so that we know the truth. It is a controlled simulation, not evidence about how many real respondents are affected.
- Cross-validation versus transport
- In cross-validation, each prediction is made for a held-out part of the same dataset, using a model trained on the rest. In transport, a model fitted on one dataset is applied without retraining to another. Neither is independent clinical validation37.
- Harmonisation
- Turning the answers of two different questionnaires into the same variables, with written rules, so that one model can be applied to both.
- 95% confidence interval
- For selected comparisons we use resampling to estimate uncertainty. A 95% interval describes the procedure, not a 95% probability that this interval contains the true value, and it does not correct for recruitment bias or uncertain labels.
| Data and comparison | AUC | Sensitivity | Specificity |
|---|---|---|---|
| Published data, all 58 questions | 0.977 | 0.924 | 0.910 |
| Published data, the 9 shared themes | 0.948 | 0.883 | 0.860 |
| Our 647 answers | 0.65–0.70 | 0.955 | 0.180 |
| Our data, both groups from the same channels | 0.70 | 0.773 | 0.408 |
Our data: 242 people reporting a diagnosis and 405 reporting none; the last row compares 22 with 169. The range depends on how unanswered questions are counted.
Read the third row like this: the model flags almost every person with a reported diagnosis (sensitivity 0.955), but also 82% of the people without one (specificity 0.180). The drop from 0.948 to 0.65–0.70 is the real subject of this work. Where it comes from →
What does a “negative” label mean?
A model learns from labels, and a label is a claim about a person. In our data, “positive” means that a respondent reports a diagnosis. “Negative” can mean three different things, and they are easy to confuse:
- The disease was looked for and excluded. This needs a reference test applied to everyone, which is rarely possible in practice.
- The person has no diagnosis. This is a statement about a record, not about a body. It is what a questionnaire can actually collect.
- The person has no diagnosis yet. For endometriosis this is a real category: with delays of several years between first symptoms and diagnosis2,4, a respondent without a diagnosis today may be diagnosed tomorrow.
Even the first reading is less firm than it looks. Surgery is no longer the only route to a diagnosis: current guidance recommends imaging first, notes that a negative imaging result does not exclude endometriosis, and reserves laparoscopy for selected situations8. And women who undergo surgery are already a selected, symptomatic group, so studies that use laparoscopy-negative controls compare patients with a different and harder group than studies that use volunteers from the general population. This spectrum effect is one reason why accuracy depends on the design as well as on the test19,20,21,38.
The disease is also found where nobody looked for it. When women without symptoms have surgery for another reason, such as tubal sterilisation, endometriosis is found in a notable share of them: 11.8% of 465 women in one prospective series, and between 1.4% and 43.3% across earlier reports39. A group defined only by the absence of a diagnosis is therefore expected to contain some people with the disease. Diagnostic research has developed methods for exactly this situation, when the reference standard is imperfect or missing, such as composite reference standards or correction of accuracy estimates40.
In machine-learning terms, our situation is not the standard “positive versus negative” problem. When only the positives are reliably labelled and the rest is a mixture, the problem is called positive-unlabelled learning, and the negatives are better described as unlabelled41. Standard results for this setting assume that the labelled positives are a random sample of all positives42. That assumption is unlikely to hold for us: who gets a diagnosis depends on access to care, on symptom severity and on who knows whom, so the diagnosed are not a random draw from everyone with the disease. More generally, label errors that depend on the person, such as the missed diagnoses of people with milder or atypical symptoms, are harder to handle than errors made at random43.
Philosophically, then, a negative label is a fact about a diagnostic process, not a fact about the person. A model trained on it learns to predict who is diagnosed, and, in an online survey, who was reached, at least as much as who has the disease. We therefore do three things in this work. We say “people without a diagnosis” instead of “controls”. We create label errors on purpose, to measure what they do (Cycle 2). And we compare groups that came through the same channels (Cycle 5), instead of treating any negative group as interchangeable.
Beyond the AUC: Six Steps Toward a Better Understanding
Our work developed across six investigations. We first rebuilt the published model, then deliberately changed recorded labels to observe the effect of known errors. We then examined the stability of symptom rankings, applied the model to our questionnaire cohort, and compared alternative approaches. The controlled experiments show what label errors can do; they cannot tell us which respondents in either real dataset have endometriosis.
The six analyses followed an iterative pattern: formulate a question, implement the experiment, examine the result and refine the next question. We use D, B, T and L in the margins to show this process, consistent with the Design–Build–Test–Learn structure of our Engineering work. The cycles document both the findings and the decisions they prompted.
Can we rebuild the published model?
In shortBefore questioning a model, we checked that we can rebuild it on its own data and get the same score.
Which published study should we start from? We chose Goldstein and Cohen13 because it is the closest match to our own setting: a symptom-only questionnaire, self-reported diagnoses, online recruitment, a simple model, and data that is public. The studies that use surgically confirmed controls are not openly available (see the digest). The first step was to run the model on the authors' own data, to be sure our implementation works before taking it anywhere else. Only then did we ask how much of the result survives when the model uses only the nine themes our own questionnaire also asks about.
The published method on all 58 questions, then on the nine shared themes, each time tested on people the model had not seen (cross-validation). As a yardstick, a score with no model at all: just count how many symptoms each person ticked.
Reducing the questionnaire did not remove all predictive signal in the source cohort. With all 58 published symptom variables, the reconstructed model reached AUC 0.977. Using only the nine symptom themes shared with our questionnaire, it reached 0.948. A much simpler baseline, the total number of symptoms reported, reached 0.905. In a check against 50 randomly chosen nine-question sets, our predefined themes outperformed 49. All these comparisons are on the original cohort: they indicate that nine themes capture much of its signal, not that they will perform equally well in another population.
The rebuild works, so the model we carry forward is a faithful copy. Reducing the questions to nine themes costs about 0.03 AUC, which does not spoil the performance. Most of what the model does is count symptoms. We also noted what the study cannot tell us: it says where its patients were found, but not who the people without a diagnosis are, and the authors themselves note that some may have undiagnosed endometriosis13. The diagnoses are self-reported, since no laparoscopy data are available.
One number from the published data will matter later: only 5% of the people without a diagnosis said they had period pain13.
Do hidden label errors show in the usual numbers?
In shortWe wrongly moved some patients into the “no diagnosis” group, the way a missed diagnosis would, and watched whether the usual AUC notices.
In the published data we know who reports a diagnosis. If we move some of them into the “no” group ourselves, we create the problem where we can measure it, because we know exactly which labels are wrong. We expected realistic errors to be harder to spot than random ones.
Three experiments. First, synthetic data in which the truth is known by construction (100 repeats per level). Second, the published data with cases chosen at random (100 draws per level). Third, the published data with three ways of choosing whom to move, from 0 to 40% of patients: anyone at random, the patients with the mildest symptoms, and atypical patients (symptoms in other organs but little period pain), 12 repeats each. Because we made the errors ourselves, we can compute two AUC values: the one a researcher would see, checked against the changed labels, and the real one, checked against the original labels.
With 40% of patients moved at random, the AUC a researcher sees drops by 0.160, while the real AUC drops by only 0.015. With the mildest patients moved, it is the opposite: the visible AUC moves by 0.012, while the real AUC drops by 0.046.
The number a researcher sees and the real damage can move in opposite directions. But we could not yet tell how much of the change came from the model itself and how much from the way it was being scored. That became Cycle 3.
Whether some “no diagnosis” respondents really have endometriosis cannot be settled from questionnaire answers: that is the whole problem. A simulation cannot settle it either, and we make no claim that any real respondent is affected. What a simulation can do is show what each size and kind of label error would do to the numbers a study reports, so that a reader knows how much a stable or an unstable score can be trusted. It is a controlled experiment on the method, in the spirit of studies of label noise43, not a measurement of the patients.

To decide who counts as “atypical”, we first grouped the 58 questions into themes such as pain, bleeding or digestion, before looking at any result. Letting the computer group the questions by itself does not work here: people who tick many boxes tick many boxes everywhere, so an automatic grouping mostly rediscovers who is diagnosed.
Try it yourself: the label-error simulator
Explore how recording a genuine case as “no diagnosis” changes the apparent performance of a model. Choose which types of cases are missed, whether the errors affect training or evaluation, and how many labels are changed. The chart is calculated live from synthetic data, while the tiles below let you inspect individual examples. The true status is visible only because the simulation creates it. In real questionnaire data, that information is generally unavailable.
Select a tile to inspect the synthetic symptoms and labels.
The simulator illustrates the mechanism; its numbers are not those of the published data or of our cohort. Its code is in software-sim.js on this wiki, and the full experiments are in the repository.
Three patterns appear. When people are missed at random, the reported AUC falls although the model is barely affected: an alarm without damage. When the people with the fewest symptoms are missed, the reported AUC rises: the wrong labels flatter the model. When atypical people are missed, the model loses real accuracy while the reported AUC does not fall. In none of the three does the reported value tell you how clean the labels are.
Does the damage come from training or from scoring?
In shortWrong labels act twice: they teach the model wrongly, and they make the test wrong. We measured the two separately.
In Cycle 2 both effects happened at once. How much does the model really lose when it learns from wrong labels, and how much can wrong labels in the test hide?
We kept a group of people aside that the model never learned from, and compared four situations: wrong labels only while learning, only while scoring, in both, or in neither. Repeated on 25 random splits.
With the mildest patients moved at 40%: wrong labels in training alone lower the real AUC by 0.060, wrong labels in scoring alone change the measured AUC by 0.030, and when both happen at once, as in a real study, the visible loss is only 0.010. The two effects work against each other, so the reported number moves far less than the model's real loss.
A stable reported AUC is often read as a sign that the labels are clean. Our experiment shows it is not: when errors concentrate on mild or atypical patients, the reported AUC can stay almost unchanged while the model's real performance falls. The usual robustness check, changing labels at random, misses this because random errors are the easy kind to see.
While reviewing our own code we found that the cut-off above which the model says “yes” had been fixed using the share of patients before any label was changed. We corrected it and reran the analysis. One conclusion drawn from the earlier run turned into its opposite and was withdrawn. The corrected result is stronger: with realistic errors, the sensitivity a researcher sees shows only about a fifth of the real loss. All numbers on this page come from the corrected code.
| Who is moved | AUC, seen | AUC, real | Sensitivity, seen | Sensitivity, real |
|---|---|---|---|---|
| Anyone at random | −0.159 | −0.016 | −0.325 | −0.331 |
| The mildest patients | −0.009 | −0.053 | −0.068 | −0.327 |
A separate run (10 repeats of 5 test splits). The AUC changes agree with Figure 6 to within 0.01.
Label errors can affect predictions for people whose labels were never changed. After 20% of cases with few symptoms were moved into the comparison group, the model identified only 2% of the remaining mild cases, compared with 18% under an equally large random error. At 40% atypical-case relabelling, it identified 32% of the remaining atypical cases, versus 48% with random errors. The most striking result was that the reported AUC could improve while atypical-case detection worsened: in one comparison, AUC rose from 0.82 to 0.88 as the detected share of remaining atypical cases fell from 48% to 22%. These values come from controlled simulations using the published questionnaire, not from clinical follow-up.
Do published lists of “top symptoms” hold?
In shortStudies like this one publish a list of the most important symptoms. We checked whether such a list stays the same when the sample changes.
Why this matters. Papers in this field often report which symptoms the model relies on most, and clinicians or patients may read such a list as medical insight. But the list comes from importance values computed on one sample. If the ranking changes when the sample changes, it describes the sample as much as the disease. Instability of this kind is a known concern for feature selection44, and label errors can add to it43. We therefore asked whether the list in a published symptom study would survive a change of sample, and whether the errors of Cycles 2 and 3 would make it worse.
If realistic mistakes hide in the AUC, do they also hide in the published list of top symptoms?
We drew 30 different samples from the published data. Each time, we ranked the symptoms by importance and counted how many of the top 5, 10 and 20 kept their place in most samples, first with correct labels, then with errors. This is a simple retention count; a formal stability index could be added in a later version.
With correct labels, 5 symptoms of a top-10 list keep their place. With 40% of the mildest patients moved, only 1 does. And once you know how many symptoms a person ticks, knowing which ones adds little.
A list of top symptoms is fragile even when the labels are perfect, so it should be read as a description of one sample, not as a ranking of causes. With the simulations answering what they could, the next step was to stop simulating and test the model on our own data.
Does the model travel to our questionnaire?
In shortWe used the published model, unchanged, on the people who answered our questionnaire.
The question that matters for EndoLore: what happens when the model meets real people? We changed nothing in it, not even the cut-off, so the result says something about the model and not about our adjustments.
Seven questionnaire links, one per recruitment channel; answers turned into the nine themes with the rules written in advance; four ways of counting unanswered questions; three sets of rules for where “yes” starts.
Against everyone without a diagnosis: AUC 0.65–0.70. Against only those from our three non-patient-group channels: 0.85–0.91. But when both groups came through those same channels: about 0.7.
Who the “no” people are, and where they came from, decides the result more than the model does. Recruiting “no” examples outside patient communities fixes half of the problem. The other half: people with and without a diagnosis must reach the study through the same door.
First look
Compared against all 405 people without a diagnosis, the model reaches an AUC of 0.65–0.70, depending on how unanswered questions are counted. It flags 82% of them as at risk.
People without a diagnosis report many symptoms
In the published data, people without a diagnosis report on average 0.78 of the nine symptom themes. Ours report 4.06. Split by channel, those who came through friends and family, the English link and student groups report about 2. Those who came through patient associations and through the untracked first link report about 5.4: more than the diagnosed patients of the published data (4.92).
Period pain shows it best. Period pain is common: studies report it in 16% to 91% of women of reproductive age45. The 5% in the published data is the unusual number. Among our respondents without a diagnosis, 66% of those from our three other channels report moderate or severe period pain, and 96% of those from patient groups, almost as many as the people reporting a diagnosis (93%).
The full distribution makes the overlap visible. People without a diagnosis who reached us through patient communities report almost exactly as many symptom themes as people with a diagnosis; those reached through other routes report far fewer.
Two clues that have nothing to do with the model point at the same people. 78 people without a diagnosis report both severe period pain and severe pelvic pain, a check we had written in advance. 69 give a specific waiting time for a diagnosis (for example “more than 10 years”), even though they have none; the question was shown to everyone, so some may have read it as the time since their symptoms began. Only 22 people show both clues. Taken together, about 45% of the people without a diagnosis who reached us through patient groups, and about 12% of those from our other channels, look like patients on at least one of the two clues. A clue is not a diagnosis, and we do not claim that any of these respondents has endometriosis. But the clues show that the situation this project set out to study is present in our own data: people with symptoms, not diagnosed.
To see which channels gave usable “no” examples, we first compared, channel by channel, people with and without a diagnosis. The English link had only three patients at the time, so its comparison was meaningless, and we wrongly ranked it worst. Looking only at the people without a diagnosis showed it was in fact our second channel outside patient communities.
Recruitment channels, and a design bias
Using only the people without a diagnosis from our three other channels, the AUC rises to 0.85–0.91. People who answered after we chose those channels reach the same value (0.90), so the choice was not tailored to the data.
0.91 looked like success, and it is almost the published value. That should have been the warning. Most of our patients came through community links (220 of 242) and report 5.9 themes on average; the 22 patients from our other channels report 3.5. So the comparison partly measured which door people came through, not only whether they are ill. Studies that recruit patients and non-patients in different places are known to overestimate how well a test works19,20,21, and the published study has the same structure. Medical imaging offers a well-known parallel: a pneumonia model could identify which hospital system a radiograph came from almost perfectly, and its performance fell at an external site46.
The fair test compares people with and without a diagnosis who came through the same channels: 22 against 169. The AUC is about 0.7, with a 95% interval of 0.58–0.81. Few patients and a wide interval, small by the standards of sample-size guidance for prediction models47, but it lands where the first look did.
| Compared with people without a diagnosis… | With / without | AUC [95% interval] | Specificity |
|---|---|---|---|
| All of them | 242 / 405 | 0.65–0.70 (main 0.70 [0.66–0.74]) | 0.18 |
| From patient groups | 242 / 236 | 0.56 [0.51–0.61] | 0.02 |
| From our three other channels | 242 / 169 | 0.85–0.91 (main 0.91 [0.88–0.93]) | 0.41 |
| Same, answered after the channels were chosen | 242 / 139 | 0.90 [0.87–0.93] | 0.40 |
| Both groups from the same channels | 22 / 169 | 0.70 [0.58–0.81] | 0.41 |
| For reference: the published data | 474 / 412 | 0.948 | 0.86 |
The cut-off did not travel well either, a form of dataset shift48: with the original cut-off, the model correctly leaves alone only 41% of the people without a diagnosis from our three other channels, against 86% on its own data. Most false alarms come from period pain: the model flags 81% of the people who report it, and 17% of those who do not. Using a model across populations calls for checking calibration, not only ranking49. Recalibrating a cut-off for a new population is a standard update, and it improves calibration but not the ranking itself50, which is what we see in the synthetic experiment of Figure 4. External validation often reveals weaker performance than expected: a widely implemented proprietary sepsis model reached an AUC of 0.63 in an independent cohort of 38,455 hospitalisations51.
This cycle is where the analysis and the recruitment shaped each other. How each link was shared decided what the data looked like, and the analysis in turn showed which links were worth pushing. Because people reached through patient groups reported as many symptoms as patients, those sharing the student social-media link later in the survey were asked to avoid endometriosis keywords and groups. That link brought 67 of our 169 “no” examples from outside patient communities. Human Practices →
Another cohort, another definition of “without a diagnosis”
We also explored the open Australian survey dataset published by Reinhardt et al. (2025). It includes six questions about pain and related symptoms, along with self-reported diagnostic status. The authors' original grouping contains 143 diagnosed respondents and 284 symptomatically at-risk respondents without a confirmed self-report of diagnosis; we reproduced their selection using the published R code.
Experiment 1: keep the score, change only the comparison group. We calculated the unweighted mean frequency of six symptoms. Among 471 respondents with a clear yes/no answer and complete symptom items, the score separated 143 reporting a diagnosis from 328 reporting none with AUC 0.809 (95% bootstrap CI 0.762–0.849). Restricting the comparison to 253 highly symptomatic respondents reduced it to AUC 0.761 (0.707–0.812). This change arose without fitting or changing a model.
Experiment 2: what happens to uncertain labels? Adding 31 symptomatically at-risk respondents who answered “I don't know” to the comparison group reduced AUC further, to 0.749 (0.696–0.796). As an additional sensitivity check, a simpler three-symptom score gave AUC 0.704 (0.646–0.760) in the clearly labelled at-risk comparison.

Interpretation. The published dataset was collected to study endometriosis knowledge, not to validate a screening test. Its at-risk subgroup is selected using the symptom questions themselves, making the AUC comparison partly conditional on how people were selected. The survey is a convenience sample with self-reported status. We therefore use these experiments only to illustrate how comparison-group definitions and uncertain labels affect a metric, not as external clinical validation of Goldstein or EndoLore. Original dataset and R code (OSF); see our reproduction and licensing notes, analysis script and aggregate results. Participant-level records are not redistributed because the OSF deposit declares no dataset licence.
Could a different approach do better?
In shortWe trained four kinds of models directly on our own answers, to see whether a different method does better, and looked at what a different way of treating the labels could add.
If the published model struggles on our data, would a model trained on our data do better, or is the difficulty elsewhere?
Four common methods, from a simple weighted score to large collections of decision trees, trained on our answers and tested on people they had not seen. Three sets of questions; two choices of “no” examples; the same comparisons as in Cycle 5; and a check of whether any difference is larger than chance.
With the same nine themes, no new model beats the published one. Using more questions helps a little, but not more than chance could explain. And the nine-theme versions of the new models, tested on the published data, reach AUCs of 0.86–0.94.
The hard part is the data, not the method. The published data is easy to separate, so every model looks good there. Our “no” group contains people who look like patients, so no model looks good here.
We first checked whether other published models could simply be reused. Those we looked at either need clinical or blood measurements that our questionnaire does not ask for, or do not share a usable model or dataset (see the digest). So “other models” here means models trained on our own answers.
With the same nine themes, the new models reach AUCs of 0.66–0.71 against 0.70 for the published one, and 0.63–0.67 against 0.70 in the fair, same-channel test. With more questions they reach 0.70–0.78 in that test, but the gain is within chance: for one of them, a 95% interval from −0.07 to +0.14 around a gain of 0.03. With all 22 questions, part of the small gain comes from age, because the student channel brought people who are almost all under 25. Against people from patient groups, no model goes above 0.61.
A different way of treating the labels
Changing the algorithm does not change what the labels mean. A more fundamental alternative is to stop treating “no diagnosis” as “no disease” and to learn from the diagnosed respondents and an unlabelled remainder, as positive-unlabelled methods do41,42. We did not implement this in the present season: it is the approach our data most clearly point to, and it is described in our directions for further work. Because the simulator of Cycles 2 and 3 already provides a known-truth test bed, it can be used to check such a method before it is applied to real respondents.
Symptoms carry real signal.
Alone, they cannot confirm who has endometriosis.
That is where a different kind of evidence can help.
Back to the question
We asked what happens to a model when its “no” examples cannot be fully trusted. The answer has three parts. The usual checks do not notice. The result depends more on who the people without a diagnosis are than on which model is used. And switching to another method does not fix it.
Our results also show that a questionnaire does carry real information: it separates people with a whole picture of symptoms from people without one (AUC 0.948 on the published data, and about 0.7 in our fair, same-channel comparison). Machine learning on symptoms is therefore promising, as one component of a larger diagnostic effort: a way to help decide who should be assessed further, alongside imaging and clinical judgement8. What it cannot do alone is tell, among people who all have symptoms, who has endometriosis and who does not.
Together, these findings help us define how to evaluate complementary molecular readouts alongside symptom histories, especially among people whose symptoms overlap with other conditions.
What the Dry Lab hands to the Wet Lab
Our analysis turns into three requirements for the evaluation of any biological test, including ours:
- Test it where symptoms do not help. The value of a biological marker is to separate endometriosis from other causes among people who already have symptoms. Its controls should therefore include symptomatic people, not only healthy volunteers.
- Recruit cases and controls through the same routes, and report the route of every sample, so that the result does not measure the door.
- Grade the reference standard. Record how each diagnosis was made (surgery, imaging, clinical), and treat “no diagnosis” as unlabelled rather than negative.
Five lessons for teams who run a questionnaire
- Give every recruitment channel its own link. Without it, most of what this page shows would have been invisible.
- Judge your “no” group by looking at that group alone, not with a measure that also depends on the patients.
- Recruit patients and non-patients through the same doors, or part of what you measure is the door.
- Write your rules down before you look at the results, then check that other reasonable rules give the same picture.
- Say where your “no” group came from. It matters more than anything else in this kind of study, and it is the detail studies most often leave out.
What we decided, and what supports each claim
Two tables for readers who want to check our reasoning: a log of the decisions that changed our work, and a map from each main claim to the evidence behind it.
How the investigation changed
| What we observed | How we responded |
|---|---|
| Recruitment routes influence comparison groups. | We used separate questionnaire links and repeated analyses within comparable channels. |
| Random and symptom-dependent label errors behave differently. | Every simulation included a random-error reference, and we separated training errors from evaluation errors. |
| Evaluation choices affect conclusions. | We audited threshold handling and recomputed results after correcting the procedure. |
| Strong performance on source data may not transfer. | We harmonised symptom themes and evaluated a frozen model on the EndoLore responses. |
| Other teams need more than a numerical score. | We prepared reusable code, variable definitions, worked examples and an interactive explanation. |
Claim-to-evidence map
| Claim | Evidence | Where | Limit |
|---|---|---|---|
| We reproduced the published model | AUC 0.977 on all 58 questions and 0.948 on nine themes, against 0.94 reported for 24 questions. | Figure 3, Table 7 | Same data; self-reported labels. |
| A stable AUC does not show that labels are clean | Random errors lower the visible AUC by 0.160 and the real one by 0.015; errors on the mildest patients move the visible AUC by 0.012 and the real one by 0.046. | Figures 4, 5, 6, Table 8 | Simulation. The pattern of realistic errors is our assumption. |
| Published lists of top symptoms are fragile | 5 of a top-10 list keep their place with correct labels, 1 with 40% of the mildest patients moved. | Figure 7 | A retention count, not a formal stability index. |
| The model does not travel unchanged | AUC 0.65–0.70 and specificity 0.18 on our 647 answers. | Table 7, Table 9 | Two questionnaires with different scales; self-reported labels. |
| Who is in the negative group changes the result | AUC 0.56 against patient-group respondents, 0.91 against the three other channels, 0.70 in the same-channel test. | Figure 11, Table 9 | Only 22 patients in the same-channel test; wide interval (0.58–0.81). |
| Another algorithm does not fix it | No new model beats the published one with the same themes; gains with more questions are within chance. | Figure 12 | Trained on the same labels. |
| Symptoms carry signal but do not settle the diagnosis | AUC 0.948 on the published data; about 0.7 in the fair comparison on ours. | Table 7 | No clinical validation. |
Strengths, and the scope of our conclusions
Why the results can be trusted
- Rules before results. All the rules for turning answers into themes were written down before any result, and two other sets of rules give the same picture (AUC 0.69 to 0.72 against everyone without a diagnosis, 0.87 to 0.91 against the three other channels).
- A comparison for every simulation. Every experiment with errors made on purpose includes a random version, so the differences come from the kind of error, not from how many there are.
- Checked against later data. The list of channels outside patient communities was fixed on 28 September; people who answered later give the same result (0.90).
- Uncertainty shown. Every comparison comes with an interval, and every analysis choice we had to make (missing answers, cut-points) is shown as a range.
- Reproducible. Every experiment on the published and synthetic data can be rerun from the code; we reran the synthetic one for this page and obtained the same curves.
Within what scope
- A research tool. It evaluates models; it does not diagnose anyone. Endometriosis is diagnosed by imaging and, in selected cases, laparoscopy8.
- Self-reported labels. Diagnoses are self-reported in the published dataset and in ours; no surgical or imaging confirmation was available for either. Our simulations show what label errors would do; they do not measure how many respondents are undiagnosed, and the mild and atypical patterns are our own, explicit assumptions.
- One fair comparison, still small. The same-channel test rests on 22 patients (interval 0.58 to 0.81). A larger cohort recruited through shared routes is the most useful next step, and the code is ready to run on it.
- Two questionnaires, one mapping. The published questionnaire asks yes or no and ours grades pain; the mapping is documented and tested with three rule sets, and neither questionnaire distinguishes deep from superficial pain or bladder from bowel involvement.
- A self-selected cohort. Our respondents without a diagnosis are not a sample of the general population, and the student channel is young (64 of 67 under 25). This is why we compare like with like, and report the channel of every result.
- Ranking, not calibration. We assessed how well models rank people; the cut-off does not travel (specificity 0.41 here, 0.86 on the published data), and calibration on a new population remains to be assessed49.
Where the code lives, and how to use it
The pipeline is written in Python 3 and uses pandas, NumPy, scikit-learn and scipy for questionnaire harmonisation, model evaluation and simulation. The code is in our iGEM Software repository, with installation instructions, automated tests and a quick-start notebook.
Repository. gitlab.igem.org/2026/software/lorraine-university/endolore. Individual questionnaire responses are not part of the repository (see the ethics note).
What is in it
| Role | Modules | Used in |
|---|---|---|
| Reading and checking the data | config (reads the dictionary), ingest (seven exports, two languages), validate (controls C-01 to C-13, including k-anonymity), encode (three kinds of missing answer, leakage guard) | Data |
| Models and evaluation | model, eda, unsupervised, other_models | Cycles 1 and 6 |
| Published data and the shared themes | goldstein, groups, themes_vs_count, reduction_cost | Cycle 1 |
| Label-error experiments | synth, contamination, contamination_controlled, contamination_split, threshold_audit | Cycles 2 and 3 |
| Stability | stability | Cycle 4 |
| Reuse on a new cohort | transport | Cycle 5 |
| Entry points | run, notebooks/EndoLore_quickstart.ipynb, tests/ | All |
How to run it
Three ways in, from no installation to the full pipeline.
- In this page. The label-error simulator runs in your browser.
- In a notebook. Open
notebooks/EndoLore_quickstart.ipynbin Jupyter, or upload it to Google Colab: it fetches the code, generates synthetic data, runs the 13 controls, cross-validates three models and runs a small label-error experiment, in about two minutes. - From the command line, as below. On synthetic data the pipeline takes about a minute; the tests take a few seconds.
git clone https://gitlab.igem.org/2026/software/lorraine-university/endolore.git cd endolore python -m venv .venv && source .venv/bin/activate pip install -r requirements.txt # exact versions we tested python demo.py # one-command demo on synthetic data, about a minute pytest -q # automated checks cd src python run.py --fast # pipeline on synthetic data python contamination.py # label-error experiment (synthetic) python goldstein.py # published-data analyses (needs the external data)
Each script prints a summary and saves its results as CSV files in out/. The data checks report what they accepted, corrected or rejected, and random seeds are fixed, so a rerun gives the same numbers. The README lists, for every result on this page, the script that produces it.
Adapting it to your own questionnaire
Describe your variables, their allowed values and their role (model input, label or excluded) in the dictionary workbook, which non-programmers can edit in a spreadsheet. Give each recruitment channel its own link and register it in the workbook. Then run python run.py --input your_export.csv: the checks, the encoder, the models and the label-error experiments run on your data. To try another algorithm, add any scikit-learn classifier to model.build_models().
The page in six lines
- The question. Can a symptom questionnaire, read with machine learning, help identify who should be assessed for endometriosis?
- What we built. A documented, tested Python toolkit that checks questionnaire data, rebuilds a published model, tests it under controlled label errors and applies it to a new cohort, with a notebook and an in-browser simulator for non-programmers.
- What we found. A published AUC of 0.948 on nine shared themes becomes about 0.70 on our respondents in a like-for-like comparison, and the result depends on who the people without a diagnosis are.
- What it means. Symptoms carry real signal and suit triage as part of a larger diagnostic effort, but a stable AUC does not prove clean labels and symptoms alone do not settle the diagnosis.
- What comes next. A larger cohort recruited through shared routes and with graded diagnoses, the release of the anonymised data, and a positive-unlabelled model, for which the simulator already provides a test bed.
- What you can reuse. The data dictionary and checks, the label-error experiments, the stability audit and the cross-cohort evaluation, under the MIT licence, plus the questionnaire design lessons on the questionnaire page.
- [1]World Health Organization. Endometriosis, fact sheet. 15 October 2025. who.int
- [2]Nnoaham KE, Hummelshoj L, Webster P, et al. Impact of endometriosis on quality of life and work productivity: a multicenter study across ten countries. Fertil Steril. 2011;96(2):366–373.e8. doi:10.1016/j.fertnstert.2011.05.090
- [3]Staal AHJ, van der Zanden M, Nap AW. Diagnostic delay of endometriosis in the Netherlands. Gynecol Obstet Invest. 2016;81(4):321–324. doi:10.1159/000441911
- [4]Hudelist G, Fritzer N, Thomas A, et al. Diagnostic delay for endometriosis in Austria and Germany: causes and possible consequences. Hum Reprod. 2012;27(12):3412–3416. doi:10.1093/humrep/des316
- [5]Ghai V, Jan H, Shakir F, Haines P, Kent A. Diagnostic delay for superficial and deep endometriosis in the United Kingdom. J Obstet Gynaecol. 2020;40(1):83–89. doi:10.1080/01443615.2019.1603217
- [6]Aubry G, Bencharif C, Vesale E, et al. Délais et parcours des patientes atteintes d'endométriose en France : une étude multicentrique [Delays and pathways for patients with endometriosis in France: a multicenter study]. Gynecol Obstet Fertil Senol. 2023;51(2):117–122. doi:10.1016/j.gofs.2022.11.006
- [7]EndoRéunion. Prise en charge de l'endométriose à La Réunion. Describes EndoEspoir Océan Indien's paper symptom-tracking booklet. endoreunion.re
- [8]Becker CM, Bokor A, Heikinheimo O, et al. ESHRE guideline: endometriosis. Hum Reprod Open. 2022;2022(2):hoac009. doi:10.1093/hropen/hoac009
- [9]Whiting PF, Rutjes AWS, Westwood ME, et al. QUADAS-2: a revised tool for the quality assessment of diagnostic accuracy studies. Ann Intern Med. 2011;155(8):529–536. doi:10.7326/0003-4819-155-8-201110180-00009
- [10]Nnoaham KE, Hummelshoj L, Kennedy SH, Jenkinson C, Zondervan KT; World Endometriosis Research Foundation Women's Health Symptom Survey Consortium. Developing symptom-based predictive models of endometriosis as a clinical screening tool: results from a multicenter study. Fertil Steril. 2012;98(3):692–701.e5. doi:10.1016/j.fertnstert.2012.04.022
- [11]Fauconnier A, Drioueche H, Huchon C, et al. Early identification of women with endometriosis by means of a simple patient-completed questionnaire screening tool: a diagnostic study. Fertil Steril. 2021;116(6):1580–1589. doi:10.1016/j.fertnstert.2021.07.1205
- [12]Chapron C, Lafay-Pillet MC, Santulli P, et al. A new validated screening method for endometriosis diagnosis based on patient questionnaires. EClinicalMedicine. 2022;44:101263. doi:10.1016/j.eclinm.2021.101263
- [13]Goldstein A, Cohen S. Self-report symptom-based endometriosis prediction using machine learning. Sci Rep. 2023;13:5499. doi:10.1038/s41598-023-32761-8
- [14]Author Correction: Self-report symptom-based endometriosis prediction using machine learning. Sci Rep. 2024;14:10443.
- [15]Zieliński K, Drabczyk D, Kunicki M, Drzyzga D, Kloska A, Rumiński J. Evaluating the risk of endometriosis based on patients' self-assessment questionnaires. Reprod Biol Endocrinol. 2023;21:102. doi:10.1186/s12958-023-01156-9
- [16]Bendifallah S, Puchar A, Suisse S, et al. Machine learning algorithms as new screening approach for patients with endometriosis. Sci Rep. 2022;12:639. doi:10.1038/s41598-021-04637-2
- [17]Verket NJ, et al. Development of a prediction model to aid primary care physicians in early identification of women at high risk of developing endometriosis: cross-sectional study. BMJ Open. 2019;9(12):e030346.
- [18]Mishra GD, Baneshi MR, Mortlock S, et al. Development of an early prediction model for endometriosis risk: the simplified adolescent factors for endometriosis (SAFE) score. EClinicalMedicine. 2026;93:103806. doi:10.1016/j.eclinm.2026.103806
- [19]Lijmer JG, Mol BW, Heisterkamp S, et al. Empirical evidence of design-related bias in studies of diagnostic tests. JAMA. 1999;282(11):1061–1066. doi:10.1001/jama.282.11.1061
- [20]Rutjes AWS, Reitsma JB, Vandenbroucke JP, Glas AS, Bossuyt PMM. Case-control and two-gate designs in diagnostic accuracy studies. Clin Chem. 2005;51(8):1335–1341. doi:10.1373/clinchem.2005.048595
- [21]Ransohoff DF, Feinstein AR. Problems of spectrum and bias in evaluating the efficacy of diagnostic tests. N Engl J Med. 1978;299(17):926–930. doi:10.1056/NEJM197810262991705
- [22]Urteaga I, McKillop M, Elhadad N. Learning endometriosis phenotypes from patient-generated data. NPJ Digit Med. 2020;3:88. doi:10.1038/s41746-020-0292-9
- [23]Rosenbloom BN, Di Renna T, Nella A, et al. Screening for endometriosis: a scoping review of screening measures that could support early diagnosis. BMC Womens Health. 2025;25:353. doi:10.1186/s12905-025-03866-1
- [24]iGEM Team Rochester. Endometriosis Risk Calculator, software page. iGEM 2020. 2020.igem.org/Team:Rochester/Software
- [25]iGEM Team GO Paris-Saclay (EndoSeek). Human Practices. iGEM 2021. 2021.igem.org/Team:GO_Paris-Saclay/Human_Practices
- [26]Cohen S. Public repository accompanying [13]: 886 respondents, 58 symptom variables. github.com/shani-co/-Deeplearning-Endo
- [27]Reinhardt A, et al. Understanding endometriosis knowledge among diagnosed and symptomatically at-risk individuals in Australia. npj Womens Health. 2025;3:46. doi:10.1038/s44294-025-00096-6
- [28]Vitonis AF, Vincent K, Rahmioglu N, et al. World Endometriosis Research Foundation Endometriosis Phenome and Biobanking Harmonization Project: II. Clinical and covariate phenotype data collection in endometriosis research. Fertil Steril. 2014;102(5):1223–1232. doi:10.1016/j.fertnstert.2014.07.1244
- [29]Wilkinson MD, Dumontier M, Aalbersberg IJ, et al. The FAIR Guiding Principles for scientific data management and stewardship. Sci Data. 2016;3:160018. doi:10.1038/sdata.2016.18
- [30]Collins GS, Moons KGM, Dhiman P, et al. TRIPOD+AI statement: updated guidance for reporting clinical prediction models that use regression or machine learning methods. BMJ. 2024;385:e078378. doi:10.1136/bmj-2023-078378
- [31]Bossuyt PM, Reitsma JB, Bruns DE, et al. STARD 2015: an updated list of essential items for reporting diagnostic accuracy studies. BMJ. 2015;351:h5527. doi:10.1136/bmj.h5527
- [32]Pedregosa F, Varoquaux G, Gramfort A, et al. Scikit-learn: machine learning in Python. J Mach Learn Res. 2011;12:2825–2830.
- [33]Freund Y, Schapire RE. A decision-theoretic generalization of on-line learning and an application to boosting. J Comput Syst Sci. 1997;55(1):119–139.
- [34]Sweeney L. k-anonymity: a model for protecting privacy. Int J Uncertain Fuzziness Knowl Based Syst. 2002;10(5):557–570.
- [35]Rocher L, Hendrickx JM, de Montjoye YA. Estimating the success of re-identifications in incomplete datasets using generative models. Nat Commun. 2019;10:3069. doi:10.1038/s41467-019-10933-3
- [36]Hanley JA, McNeil BJ. The meaning and use of the area under a receiver operating characteristic (ROC) curve. Radiology. 1982;143(1):29–36. doi:10.1148/radiology.143.1.7063747
- [37]Steyerberg EW, Harrell FE. Prediction models need appropriate internal, internal-external, and external validation. J Clin Epidemiol. 2016;69:245–247. doi:10.1016/j.jclinepi.2015.04.005
- [38]Mulherin SA, Miller WC. Spectrum bias or spectrum effect? Subgroup variation in diagnostic test evaluation. Ann Intern Med. 2002;137(7):598–602. doi:10.7326/0003-4819-137-7-200210010-00011
- [39]Tissot M, Lecointre L, Faller E, et al. Clinical presentation of endometriosis identified at interval laparoscopic tubal sterilization: prospective series of 465 cases. J Gynecol Obstet Hum Reprod. 2017;46(8):647–650. doi:10.1016/j.jogoh.2017.05.003
- [40]Reitsma JB, Rutjes AWS, Khan KS, et al. A review of solutions for diagnostic accuracy studies with an imperfect or missing reference standard. J Clin Epidemiol. 2009;62(8):797–806. doi:10.1016/j.jclinepi.2009.02.005
- [41]Bekker J, Davis J. Learning from positive and unlabeled data: a survey. Mach Learn. 2020;109:719–760. doi:10.1007/s10994-020-05877-5
- [42]Elkan C, Noto K. Learning classifiers from only positive and unlabeled data. In: Proceedings of the 14th ACM SIGKDD International Conference on Knowledge Discovery and Data Mining. 2008:213–220.
- [43]Frénay B, Verleysen M. Classification in the presence of label noise: a survey. IEEE Trans Neural Netw Learn Syst. 2014;25(5):845–869. doi:10.1109/TNNLS.2013.2292894
- [44]Nogueira S, Sechidis K, Brown G. On the stability of feature selection algorithms. J Mach Learn Res. 2018;18(174):1–54. jmlr.org/papers/v18/17-514.html
- [45]Ju H, Jones M, Mishra G. The prevalence and risk factors of dysmenorrhea. Epidemiol Rev. 2014;36:104–113.
- [46]Zech JR, Badgeley MA, Liu M, et al. Variable generalization performance of a deep learning model to detect pneumonia in chest radiographs: a cross-sectional study. PLoS Med. 2018;15(11):e1002683. doi:10.1371/journal.pmed.1002683
- [47]Riley RD, Ensor J, Snell KIE, et al. Calculating the sample size required for developing a clinical prediction model. BMJ. 2020;368:m441. doi:10.1136/bmj.m441
- [48]Moreno-Torres JG, Raeder T, Alaiz-Rodríguez R, Chawla NV, Herrera F. A unifying view on dataset shift in classification. Pattern Recognit. 2012;45(1):521–530. doi:10.1016/j.patcog.2011.06.019
- [49]Van Calster B, McLernon DJ, van Smeden M, Wynants L, Steyerberg EW. Calibration: the Achilles heel of predictive analytics. BMC Med. 2019;17:230. doi:10.1186/s12916-019-1466-7
- [50]Janssen KJM, Moons KGM, Kalkman CJ, et al. Updating methods improved the performance of a clinical prediction model in new patients. J Clin Epidemiol. 2008;61(1):76–86. doi:10.1016/j.jclinepi.2007.04.018
- [51]Wong A, Otles E, Donnelly JP, et al. External validation of a widely implemented proprietary sepsis prediction model in hospitalized patients. JAMA Intern Med. 2021;181(8):1065–1070. doi:10.1001/jamainternmed.2021.2626