中文

Data & Code

Data & Code

This page is not a flat resource dump. It helps you quickly decide whether you need public datasets, starter code, a baseline route, or a reproducibility checklist right now.

What do you need most right now?

A realistic starter path for new researchers

Option A: build a transparent baseline first

Use self-tracked or history-based data, build calendar / history baselines, and make the evaluation protocol unusually clear. This is often more defensible than a weak wearable model on noisy labels.

Option B: wearable proof of concept

Use a dataset such as mcPHASES to test temperature and cardiovascular features, but avoid overclaiming broad generalization from a small cohort.

Option C: clinically anchored small cohort

If you can collect your own data, a modest but well-labelled cohort may be more scientifically valuable than a larger weakly labelled convenience sample.

Option D: evaluation-method paper

Work on irregularity subgrouping, metric standardization, or label-definition comparison is itself a meaningful contribution in this field.

Dataset chooser

Dataset Best for What it can answer What it should not answer Main risk
mcPHASES AI / DS researchers building wearable proofs of concept How multimodal physiological signals align with menstrual-health labels Large-scale product-level generalization Small sample size and substantial preprocessing complexity
Kaggle menstrual cycle tables Developers and data newcomers who need a fast baseline Tabular cleaning, feature engineering, grouped evaluation Strong clinical or wearable conclusions Dataset provenance, label quality, and preprocessing need extra checking
Marquette Menstrual Cycle Data Researchers interested in historical cycle structure and fertility-awareness records Non-wearable cycle structure and longitudinal historical patterns Modern consumer wearable validation Collection context differs from modern app ecosystems

Public access does not mean consistent quality. Always document label source, missingness, cohort filters, and whether the dataset resembles deployment reality or a more controlled study setting.

Kaggle and mcPHASES are two very different starting points

The Kaggle route

  • Good for fast onboarding, simple baselines, and feature engineering practice
  • Main value: understanding cleaning and grouped evaluation
  • Should not be over-read as strong clinical or wearable evidence

The mcPHASES route

  • Good for wearable signal processing and multimodal alignment
  • Main value: method validation rather than scale claims
  • Closer to physiological questions, but with much higher data-processing complexity

Starter code and teaching-oriented entry points

Kaggle teaching case

A low-friction baseline case for understanding data cleaning, feature handling, and why GroupKFold matters in this area.

Open teaching case

Note: this repo currently ships the teaching page only. The original notebook and local export files are not bundled with the website snapshot.

mcPHASES processing workflow

This is the more wearable-oriented route. The main challenge is not the model, but aligning temperature, HRV, hormone-linked events, and calendar data.

View GitHub repository

Curated open repositories

iurteaga/menstrual_cycle_analysis

Generative modelling that explicitly handles adherence and missingness. Useful for understanding real-world mHealth structure.

Link

cilab-ufersa/period_cycle_prediction

LSTM / GRU-based cycle-length forecasting. A useful reference for standard sequence-model baselines.

Link

lenakmeth/MenstruatioNN

A straightforward RNN implementation for multi-step prediction, useful for medical readers learning how sequence models are framed.

Link

nhaboudal/MenstrualCycle_SleepReadiness_Predictor

An example of using Oura Ring and Natural Cycles data to explore physiological shifts across cycle phases.

Link

Why the most influential datasets are usually not fully open

Large app and consumer wearable studies have shaped the field, but the underlying longitudinal data are rarely available for open download. The usual reasons are privacy, commercial ownership, consent scope, and the sensitivity of reproductive-health data.

Reproducibility checklist

For app developers, this is the minimum credibility bar. For AI / DS researchers, it is the minimum validity bar. For medical readers, it is the quickest way to judge whether an algorithmic claim is trustworthy.

  1. State the prediction target clearly: next bleed, ovulation day, fertile window, or phase.
  2. State the label rule clearly: for example LH onset, LH peak, or peak + 1 day.
  3. Specify what information is available at prediction time to avoid leakage.
  4. Prefer subject-wise split or GroupKFold when claiming generalization.
  5. Report both continuous error and window-based accuracy where appropriate.
  6. Describe missingness and adherence rather than silently removing hard samples.
  7. State whether the cohort is regular-only, mixed, or explicitly irregular.
After this page