Predicting polycystic ovary syndrome (PCOS) with machine learning algorithms from electronic health records

Zahra Zad, Victoria S. Jiang, Amber T. Wolf, Taiyao Wang, J. Jojo Cheng, Ioannis Ch. Paschalidis, Shruthi Mahalingaiah

TL;DR

This paper introduces machine learning models that can predict Polycystic Ovary Syndrome (PCOS) using electronic health records (EHRs) from an at-risk population. These models show promise for earlier diagnosis and intervention, potentially reducing long-term health consequences and healthcare costs.

What Problem Does This Paper Address?

Polycystic Ovary Syndrome (PCOS) is a common endocrine disorder affecting reproductive-aged women, but it's often underdiagnosed due to its varied symptoms and the need for exclusion of other conditions. This delay in diagnosis can lead to serious long-term health issues like endometrial hyperplasia, infertility, metabolic syndrome, diabetes, and cardiovascular disease. Existing predictive models for PCOS are often limited to fertility clinic populations. This study aims to develop and evaluate machine learning models using EHR data from a broader, at-risk outpatient population to facilitate earlier and more accurate diagnosis.

Methods

The researchers developed four predictive models (Model I-IV) using various machine learning techniques, including logistic regression, support vector machines, gradient boosted trees (specifically LightGBM), and random forests. A key innovation is the development of an "MLP score" derived from a multilayer perceptron neural network that captures non-linear relationships between reproductive hormones (FSH, LH, SHBG, estradiol). This MLP score was then used as a feature in the predictive models. They also employed statistical feature selection (SFS) and recursive feature elimination (RFE) to identify the most informative variables and create parsimonious models. Model performance was evaluated using AUC (Area Under the ROC Curve) and weighted-F1 scores.

Datasets

The study utilized a retrospective cohort of 30,601 female patients aged 18-45 years from the Boston Medical Center (BMC) Clinical Data Warehouse (CDW) between October 2003 and December 2016. Patients were considered "at-risk" if they had any of the following in their EHR: a pelvic ultrasound, androgen lab assessment or symptoms of androgen excess, an ICD-9 code for irregular periods, or a PCOS diagnosis. Exclusion criteria included concurrent endocrinopathies.

Key Insights and Ideas

  • Non-linear hormone relationships matter: The MLP score, which captures non-linear relationships between reproductive hormones, significantly improved the performance of linear models, highlighting the importance of considering these complex interactions.
  • EHR data can predict PCOS: Machine learning models can effectively predict PCOS using readily available data in electronic health records, even in an at-risk outpatient population.
  • "Lean" PCOS is a diagnostic challenge: The study identified factors like normal BMI and normal blood pressure as positive predictors for undiagnosed PCOS (Models II and III), suggesting these patients might represent a "lean" phenotype that is harder to diagnose and could benefit from predictive tools.
  • Socioeconomic factors might play a role: While insurance status was dropped due to missing data, the authors noted that a high percentage of patients with missing insurance had PCOS, hinting at potential socioeconomic barriers affecting diagnosis.

Key Results

  • High predictive accuracy: The Gradient Boosted Trees (GBT) models achieved the highest performance, with AUCs ranging from 80.4% to 85.2% across the four models.
  • MLP score improves linear models: Incorporating the MLP score into linear models (LR-L2-MLP score) improved AUCs for Models I, II, III, and IV from 79%, 72%, 73%, and 75% to 82%, 78%, 77%, and 79%, respectively.
  • Significant predictors identified: Key positive predictors for PCOS diagnosis included the MLP score and obesity. Negative predictors included pregnancy (gravidity and positive pregnancy test), normal BMI, smoking, and Hispanic race.
  • Model applicability: The models are applicable to patients with a high suspicion for PCOS who interact with the healthcare system.

Limitations and Future Work

  • At-risk population: The models were developed using an at-risk population, not the general population, so their performance on unselected populations needs further validation.
  • Model validation: The authors emphasize the need for model validation in other hospital-based populations and across different health systems.
  • AMH exclusion: Anti-Müllerian hormone (AMH) was not included as a predictive variable because it was not widely utilized during the study's data extraction window (ICD-9 codes). Future studies could incorporate this.
  • Multi-imputation: While multi-imputation was explored, it did not significantly improve performance and led to a loss of interpretability, so it was not used in the final models.
  • Future research: The authors suggest future work on applying these models to predict other downstream health risks associated with PCOS and expanding validation to broader patient populations.

Summary updated

BibTeX
@misc{zad2023predicting,
  author = {Zahra Zad and Victoria S. Jiang and Amber T. Wolf and Taiyao Wang and J. Jojo Cheng and Ioannis Ch. Paschalidis and Shruthi Mahalingaiah},
  title = {{Predicting polycystic ovary syndrome (PCOS) with machine learning algorithms from electronic health records}},
  year = {2023},
  url = {https://openreview.net/forum?id=0zN3qC19Zp},
}
Figure