TL;DR
This paper presents the first large-scale study predicting pregnancy using real-world mobile health tracking data from over 65,000 women. By leveraging LSTM networks combined with long-term user history embeddings, the researchers successfully stratified users by pregnancy probability and developed a novel perturbation technique to extract interpretable, biologically valid fertility trends from deep learning models.
What Problem Does This Paper Address?
For decades, fertility and pregnancy prediction relied on small, meticulously curated clinical studies. While accurate, these studies are hard to scale, expensive, and typically feature highly filtered, homogeneous populations.
The explosion of women’s health tracking apps offers a massive "data bounty," but utilizing this data introduces major technical hurdles:
- Scale: Traditional Bayesian and Markov Chain Monte Carlo (MCMC) fertility models do not scale to millions of data points.
- Noise and Missing Data: Unlike clinical trial participants, app users log data irregularly. Critical indicators like basal body temperature (BBT) or sexual activity are frequently left blank.
- Population Diversity: App users represent a messy, unfiltered global population with varying health profiles and motivations.
The authors set out to determine whether it is computationally feasible to predict pregnancy using this noisy, self-reported, large-scale mobile data.
Methods
The authors framed the task as a binary classification problem: predicting whether a user will log a positive pregnancy test based on data from the first 24 days of a single menstrual cycle. They developed and compared four distinct models:
- Logistic Regression: An interpretable baseline utilizing 2,771 features (coefficients for each feature on each cycle day).
- Standard LSTM: A recurrent network processing 24 timesteps (one per cycle day) to capture daily dynamics.
- LSTM + BMS Fertility Model: An architecture that embeds the traditional generative Barrett-Marshall and Schwartz (BMS) fertility model—which assumes each act of intercourse contributes independently to pregnancy—directly into the LSTM framework.
- LSTM + User Embeddings: The top-performing architecture. It uses a secondary "history LSTM" to ingest the previous 180 days of a user's background data. This creates a static user embedding vector that is concatenated with the current cycle's daily features.
Model Interpretability Technique
To peer inside the "black box" of the LSTMs, the authors used a perturbation method. For a given binary feature (like unprotected sex) on a specific day, they computed the model's predicted probability with the feature set to 1 versus set to 0. Averaging this difference across the test set revealed the exact time-dependent impact of that behavior.
Datasets
The study utilized a de-identified dataset from Clue, a popular women’s health tracking app.
- Scope: 79,423,281 symptom logs across 105,265 cycles from 65,276 unique women.
- Labels: 16,580 positive pregnancy cycles and 88,685 negative cycles (ground truth determined by user-logged pregnancy test results).
- Features: 110 binary features (e.g., mood, energy, cramps, sexual activity categorized as protected, unprotected, or withdrawal) and 3 continuous features (BBT, resting heart rate, body weight).
Key Insights and Ideas
- History Matters: Incorporating a 180-day user history embedding significantly boosted predictive power. A user who has logged unprotected sex for months without conceiving has a different underlying fertility profile than someone in their first cycle of trying; the user embedding successfully captures this latent context.
- Rigid Priors Can Hurt Machine Learning: Interestingly, forcing the LSTM to adhere to the strict mathematical assumptions of the traditional BMS fertility model decreased performance. Purely data-driven deep learning architectures handle the noise and missingness of real-world mobile data better than rigid biological equations.
- Association $\neq$ Causation in Logged Data: The models learned that protected sex was negatively associated with pregnancy. Biologically, protected sex doesn't reduce fertility below baseline; rather, it serves as a proxy for the user's intent to avoid pregnancy, highlighting how behavioral data acts as a confounding variable.
Key Results
- Predictive Performance: Because pregnancy is an inherently stochastic process, a perfect AUC is impossible. The LSTM + User Embeddings model achieved the highest performance with an AUC of 0.67.
- Meaningful Stratification: The model successfully separated high-risk and low-risk groups. Over the course of 6 menstrual cycles, women in the top 10% of predicted probabilities had an 89% chance of becoming pregnant, compared to just a 27% chance for those in the bottom 10%.
| Model | AUC | Single Cycle $p_{preg}$ (Top 10% vs Bottom 10%) | Six Cycle $p_{preg}$ (Top 10% vs Bottom 10%) |
|---|---|---|---|
| Logistic Regression | 0.63 | 28% vs 5% | 86% vs 26% |
| Standard LSTM | 0.65 | 30% vs 4% | 88% vs 23% |
| LSTM + BMS | 0.64 | 29% vs 4% | 87% vs 22% |
| LSTM + User Embeddings | 0.67 | 30% vs 5% | 89% vs 27% |
- Biological Validation: The interpretability curves perfectly mirrored established clinical literature: the impact of unprotected sex sharply peaked during the "fertile window" (roughly 14 days before the cycle ends).
Limitations and Future Work
- Missing Data Bias: The dataset relies entirely on voluntary logging. Users often forget to log sex or fail to report final pregnancy test outcomes, creating a potential false-negative bias.
- Lack of Causal Inference: The current models map correlations. Future iterations must disentangle behavioral intent from biological capability to provide true actionable recommendations.
- Clinical Applications: The authors suggest these models could be extended to identify early signs of infertility, allowing women to seek medical interventions and specialist referrals much faster than the standard one-year waiting period typically recommended by doctors.
Summary updated