Dataset Viewer
Auto-converted to Parquet Duplicate
subject
string
cgm_all_mean
list
cgm_home_mean
list
ctru_cgm
list
ctru_venous
list
home_cgm_1
list
home_cgm_2
list
ir_class
int64
ir_regression
float64
beta_class
int64
beta_regression
float64
S01
null
null
null
[ 109.09906847503368, 107.82282070906707, 109.12066301443285, 115.50922688416199, 129.27530949808008, 149.1838163633874, 166.72105567504238, 190.64398771054093, 213.9628874790182, 226.98139039243796, 231.502393807491, 231.9643754206257, 231.84887234259335, 233.0415806602957, 232.0017729509...
null
null
1
194
0
2.108505
S02
null
null
null
[ 105.48452816032876, 103.66263960609892, 100.45638487950116, 96.6450240560241, 101.66232220258274, 121.07599339462354, 141.06076018142414, 159.20703274916644, 172.00091932197515, 176.37534740807055, 176.88054104524412, 179.0755526678495, 184.93745176691837, 194.14902554197639, 200.7979149...
null
null
1
166
1
1.048645
S06
null
null
null
[ 107.78811807129512, 102.59050208349035, 100.85540589198523, 105.63801315403879, 118.36416297074773, 137.49799498476446, 153.90619794933417, 166.42577449430226, 176.6924002104182, 185.58051346950208, 190.74093319495802, 190.09431954572545, 185.8643170712999, 180.46254638486377, 172.749547...
null
null
0
63
0
3.215476
S07
null
null
null
[ 85.88971019650421, 86.53038361865445, 87.48617076507834, 89.31686594810743, 93.56098583230501, 102.68697251205175, 119.19616530017039, 136.3017886615397, 147.94486053116535, 149.9040055910362, 141.87239989234965, 126.01119071320102, 110.43885887006702, 102.17328576874999, 97.872621633972...
null
null
0
60
0
2.585
S09
null
null
null
[ 78.52423668484613, 82.50302325140883, 87.84113357555403, 95.49735161698129, 104.82830214385875, 114.87183101034843, 125.05386045833454, 134.62436670894573, 140.88700558155497, 141.17359192415935, 134.93592995322277, 122.66252124960062, 106.86866748324778, 90.6389096400856, 77.30794588080...
null
null
0
61
0
2.997541
S11
null
null
null
[ 74.11785511290205, 75.90374981269593, 77.35291561848395, 78.43675905602973, 80.35922833017518, 84.46134595592446, 90.70401098322205, 96.71068287291956, 101.87749256738637, 105.79985503251166, 106.40177082011527, 102.4266388689211, 97.5668660793382, 95.52979416155974, 95.13349610322987, ...
null
null
0
58
1
1.330603
S13
null
null
null
[ 96.69623673411137, 94.98448111031138, 94.14062053190749, 95.441778362435, 101.80199123798651, 114.73405209470498, 130.06407908461392, 146.56948621620342, 158.74655967264897, 162.13413860985813, 162.27761518821663, 165.18706020579322, 168.72470600691082, 169.32310817630787, 165.8439537141...
null
null
1
247
1
0.837146
S14
null
null
null
[ 91.91661687387843, 90.3800612654629, 89.08174316025186, 88.22097474704411, 87.84136695701594, 88.02314495121601, 89.61386113865508, 94.62877845189868, 102.47430767787594, 112.03868397659646, 123.21146121687764, 135.07944617479708, 142.51713854666545, 141.480657189011, 136.46490467899935,...
null
null
0
54
1
0.734722
S19
null
null
null
[ 100.90066777405616, 99.04972800245535, 100.33973744783697, 106.79748463773711, 115.99311534190741, 125.33827400164965, 135.42996916813257, 145.06702819412567, 151.5920162065983, 152.81321958264817, 149.22079859156662, 142.3464302654236, 135.20598479521, 130.61210218773718, 129.0803085541...
null
null
0
40
0
1.933125
S21
null
null
null
[ 97.4329016115455, 96.63491576558445, 97.45721102949338, 100.82615849909774, 104.89248921404523, 107.64041028848888, 109.81109686292945, 114.40037777742481, 121.60179723383922, 130.45990224509956, 138.87295937872454, 144.98935110101215, 149.10420391878492, 152.04933034899656, 154.65654290...
null
null
1
233
1
0.721674
S23
null
null
null
[ 77.2914351662628, 76.99140209840472, 75.85869712693867, 74.08031638304772, 75.92192813707943, 83.84890291461079, 91.49965149696708, 98.79011262143099, 105.232649357438, 109.99091008184983, 113.69016344307482, 117.46862437499139, 123.05467268181172, 131.34581382256394, 139.3258910052061, ...
null
null
1
168
1
0.526786
S26
null
null
null
[ 113.86662136125884, 110.48905193718085, 107.49256433807761, 105.49987641841074, 106.1002501505892, 110.60065489337113, 118.40250976945366, 128.9522912855687, 141.11995500978813, 153.52666375816418, 164.56509461381913, 173.2540915057766, 181.3456514795952, 190.15808296492213, 196.54178681...
null
null
1
130
1
0.4425
S27
null
null
null
[ 73.08237051334324, 72.78519756986059, 72.25268030254013, 71.60534091014398, 72.38716768183403, 76.31364986659396, 84.21345738296465, 95.5556294203562, 107.3485006927252, 117.28518778274737, 128.10928214409802, 141.87019292720342, 152.7901251984934, 155.13918528983066, 151.2062886788046, ...
null
null
0
57
1
1.492105
S28
null
null
null
[ 119.3222491685951, 114.12683499253934, 110.86785176335472, 111.54465815964812, 118.40832378697, 130.72126322690653, 139.95800612066938, 150.33051886410578, 162.93015465802296, 176.52057109432707, 188.09370260678529, 196.05869445544656, 206.26525836362603, 223.43979130682393, 240.37486480...
null
null
1
129
1
0.672093
S32
null
null
null
[ 112.67637750903809, 111.58268882513775, 114.27077868684287, 122.9649119793575, 133.65929894628027, 143.33382714877015, 158.02980179851423, 179.96738080249716, 202.57956285683377, 219.00917301223507, 228.91415468734766, 234.0983000893032, 238.43367821123783, 245.1505328564851, 252.8435302...
null
null
1
152
1
1.346546
S35
null
null
null
[ 87.62230836252078, 87.50574235111182, 88.4682953039292, 91.84227889761397, 99.97277565846576, 113.09007241640569, 124.76675359646497, 136.14691842341136, 145.91891050188602, 152.4445667230298, 158.0497039743911, 165.0750846310053, 171.95727302144877, 176.65332061913594, 179.1064255232932...
null
null
1
173
1
1.072977
S36
null
null
null
[ 92.52281263750876, 94.07775911662884, 96.99609806000959, 102.64307999857375, 112.39138772989256, 126.47680605634561, 141.30542598225747, 154.90046330360408, 165.4287004899918, 171.6597169290038, 175.35604345585773, 178.85890426489064, 183.8313455392819, 191.37099013119214, 200.9919455798...
null
null
1
141
1
0.75266
S38
null
null
null
[ 125.1163937235541, 122.49401600824181, 122.3962276542035, 127.63512866356857, 142.17286160188843, 167.31962176990876, 192.95176247910734, 209.7060602978047, 218.15897194368407, 221.69136631405203, 225.28607050872156, 232.76160569778875, 241.67731112997535, 248.6575824165284, 252.84622254...
null
null
1
276
1
0.736957
S41
null
null
null
[ 119.16756674691175, 118.36755615023868, 119.94592627667492, 125.83061676519881, 136.14780291826506, 150.02664613597594, 166.3020898141307, 187.82980245505289, 207.3535452313047, 217.30487215095536, 220.8704891624459, 222.0828001219553, 217.60184857624176, 204.81513629173605, 191.39235822...
null
null
1
264
1
0.899716
S42
null
null
null
[ 88.60124520621423, 88.22600570627104, 91.8472084742872, 102.58167269522812, 120.02772522208366, 142.41467686195276, 165.81680139798794, 186.0687373429216, 202.9661315647694, 216.88418666356753, 226.35785463979124, 229.76780834888697, 226.71785466574642, 218.20431984357677, 209.5704736294...
null
null
0
86
0
2.090407
S44
null
null
null
[ 100.77746686865679, 96.42177897044003, 95.55904287606101, 100.93980901980458, 112.34502235774411, 126.74416821080769, 137.71422826097842, 152.6246015893094, 169.0346485841292, 181.28997875514366, 185.57496621371726, 180.1646446912876, 169.85792179792605, 160.67613942387376, 157.006502701...
null
null
1
254
1
0.90502
S45
null
null
null
[ 92.69593907291829, 91.77211786799543, 94.57418502616315, 103.1260360409105, 112.64359492732058, 118.71527143691276, 124.8867842992088, 132.61267844650183, 131.7939708902526, 114.38846188503551, 91.79400713256274, 77.50942518082493, 73.99733051578843, 80.01017683849051, 90.49597877227605,...
null
null
0
60
0
4.4775
S49
null
null
null
[ 92.20604701454022, 93.8899505004135, 97.84229108760044, 105.93041488331923, 118.41730401840628, 134.48994295417089, 150.40238328154328, 161.56131510734292, 166.18320183346322, 164.11041871179478, 158.6459089304885, 153.17399150438501, 147.94392081882302, 142.9240799499453, 140.0944313666...
null
null
0
107
0
2.573832
S50
null
null
null
[ 113.89735592205561, 112.44436576067469, 114.14178725056341, 121.59632382843743, 135.23984607279635, 154.37011345577793, 175.74702937953745, 195.4317690198278, 211.6958737552933, 223.55235966227804, 230.5935309022817, 233.22626084748256, 234.53641162761755, 237.0717775010432, 238.54889248...
null
null
0
75
0
2.004
S55
null
null
null
[ 65.94717853751479, 68.15538355868372, 73.37164990123895, 83.95087226692915, 99.63527887895266, 114.92570330327365, 112.67211300153045, 98.10056824794331, 83.7637220265443, 79.62573445085361, 84.67224748859284, 94.34796524313252, 100.91235850623774, 98.25127616737339, 89.94131281840856, ...
null
null
0
47
0
3.272872
S57
null
null
null
[ 85.11685195251273, 87.2391629676892, 89.0276112614007, 91.08756684484852, 97.78133065989945, 111.18123130494389, 123.68980978573329, 136.1876710768724, 147.67900565397676, 156.0399966404192, 159.7582449615214, 158.5417083923679, 156.36835430514523, 156.6796742307703, 156.50124673797845, ...
null
null
0
51
0
2.882353
S58
null
null
null
[ 112.66664729188443, 109.6291606124554, 107.54411024192801, 107.58102285019058, 111.77778655107801, 121.06662431889852, 132.9617731645267, 149.26030010302833, 166.08607358899047, 178.58779695627774, 185.55974765496345, 187.39343111419038, 187.2236905631711, 188.28849388914927, 191.4949698...
null
null
1
191
1
0.984424

CGM-JEPA Downstream Evaluation Splits

Labeled cohort splits used to evaluate CGM encoders on two binary metabolic outcomes — insulin resistance and β-cell dysfunction — in the paper CGM-JEPA: Learning Consistent Continuous Glucose Monitor Representations via Predictive Self-Supervised Pretraining.

Downstream-only. For the unlabeled pretraining corpus (Stanford + Colas), see CRUISEResearchGroup/CGM-JEPA-Pretraining. For pretrained encoder weights, see CRUISEResearchGroup/CGM-JEPA.

Quick start

Option 1 — datasets library (recommended for analysis / fine-tuning)

from datasets import load_dataset
ds = load_dataset("CRUISEResearchGroup/CGM-JEPA-Downstream")
# DatasetDict({
#   train:      Dataset({features: ['subject', 'ctru_venous', 'ctru_cgm', ...,
#                                   'ir_class', 'ir_regression',
#                                   'beta_class', 'beta_regression'],
#                       num_rows: 27}),
#   validation: Dataset({..., num_rows: 17})
# })

The two splits share a canonical 11-column schema (subject + 6 modality Sequence(Value('float64')) + 4 label fields). Modalities the train cohort doesn't have are None rather than empty — only ctru_venous is populated in the train split.

Option 2 — original nested JSON (used by the code repo's eval pipeline)

huggingface-cli download CRUISEResearchGroup/CGM-JEPA-Downstream \
  --repo-type dataset --local-dir Dataset_Open

Then from the code repository:

# Reproduce all 3 evaluation regimes × 2 endpoints (Tables 1–6)
python scripts/run_all_eval.py

Files

File Subjects Size Role
train.parquet 27 ~30 KB Initial cohort in datasets-friendly tabular form (one row per subject).
validation.parquet 17 ~110 KB Validation cohort in datasets-friendly tabular form.
train_split.json 27 ~45 KB Same data as train.parquet, in the nested JSON layout the code repo's data_loaders/ expects.
validation_split.json 17 ~146 KB Same data as validation.parquet, nested JSON layout.

The two cohorts are subject-disjoint by construction: subjects appearing in both upstream groups were removed from the validation cohort during preprocessing.

Schema

Both files use the same nested-JSON structure:

{
  "S01": {                                  // subject identifier
    "x": {
      "ctru_venous":  [<float>, …],         // sequence of glucose values (mg/dL)
      "ctru_cgm":     [<float>, …],         //   (validation cohort only)
      "home_cgm_1":   [<float>, …],         //   "
      "home_cgm_2":   [<float>, …],         //   "
      "cgm_home_mean":[<float>, …],         //   mean of home_cgm_1 & home_cgm_2
      "cgm_all_mean": [<float>, …]          //   mean of ctru_cgm, home_cgm_1, home_cgm_2
    },
    "y": {
      "ir":   {"class": 0|1, "regression": <float>},   // SSPG-derived
      "beta": {"class": 0|1, "regression": <float>}    // DI-derived
    }
  },
  "S02": { ... },
  ...
}

Extract methods (x sub-keys)

Key Availability Description
ctru_venous train + validation In-clinic venous OGTT glucose trajectory
ctru_cgm validation only In-clinic CGM trajectory recorded during the same OGTT
home_cgm_1 validation only First free-living home-CGM window
home_cgm_2 validation only Second free-living home-CGM window
cgm_home_mean validation only Subject-level mean of home_cgm_1 and home_cgm_2
cgm_all_mean validation only Subject-level mean of all three CGM modalities

The initial cohort was defined to have OGTT venous data only (no matching CGM), so train_split.json contains a single ctru_venous field per subject.

Labels (y sub-keys)

Field Type Source Threshold
ir.class binary {0, 1} SSPG (Steady-State Plasma Glucose) 1 = insulin-resistant, 0 = insulin-sensitive
ir.regression float SSPG numeric value mg/dL
beta.class binary {0, 1} DI (Disposition Index) 1 = β-cell dysfunction, 0 = normal β-cell function
beta.regression float DI numeric value dimensionless

A class value of -1 indicates a missing or unannotated label. Threshold definitions follow Metwally et al. (2025).

Class distribution

Cohort n IR=1 (resistant) IR=0 (sensitive) β=1 (dysfunction) β=0 (normal)
Initial (train_split) 27 14 13 16 11
Validation (validation_split) 17 7 10 6 11

Both labels are reasonably balanced; the paper reports stratified 2-fold cross-validation over 20 random iterations (40 paired evaluations per cell).

Evaluation regimes (paper Tables 1–6)

The two splits support all three deployment regimes evaluated in the paper:

Regime Train on Test on
Cohort generalization (venous) train_split × ctru_venous validation_split × ctru_venous
Venous → home-CGM transfer validation_split × ctru_venous validation_split × cgm_home_mean
In-domain home CGM validation_split × cgm_home_mean validation_split × cgm_home_mean

All regimes are orchestrated by scripts/run_all_eval.py.

How this corpus was built

The splits were assembled by scripts/preprocess_dataset.py in the code repository, from a single upstream source:

  • Stanford CGM Study (Metwally et al. 2025, Nature Biomedical Engineering) — data distributed through the Metabolic_Subphenotype_Predictor repository under the MIT license.

Cohort assignment is based on the exp_type column in filtered_metabolic_tests.csv:

  • Subjects with exp_type = venous_without_matching_cgm_and_without_planned_athome_cgminitial cohort.
  • Subjects with exp_type = venous_with_matching_cgm_and_with_planned_athome_cgmvalidation cohort.
  • Subjects appearing in both groups are removed from the validation cohort to keep them subject-disjoint.

All glucose trajectories were smoothed onto a 5-min grid via cubic smoothing splines (scipy.interpolate.make_smoothing_spline(lam=0.35)); sensor "Low"/"High" strings were replaced with the empirical numeric min/max.

Intended use

  • Linear-probe / fine-tuning evaluation of CGM encoders on metabolic-subphenotype prediction.
  • Cross-cohort generalization and cross-modality transfer experiments.
  • Method comparison on a small but clinically labeled CGM corpus.

License & attribution

Released under the MIT license, inherited from the upstream Metabolic_Subphenotype_Predictor repository (Metwally et al. 2025, Nature Biomedical Engineering). Please cite both the original Stanford study and our CGM-JEPA paper when using these splits.

Citation

Citation block to be filled once the CGM-JEPA paper has a stable venue / arXiv link.

Code repository

https://github.com/cruiseresearchgroup/CGM-JEPA

Downloads last month
39