Download README.md from GoldenCheetah/gcclean_test: direct link, hf CLI and curl.
- Browser
- Download file 24.2 kB
-
https://huggingface.co/datasets/GoldenCheetah/gcclean_test/resolve/main/README.md
- Command line
-
hf download hf://datasets/GoldenCheetah/gcclean_test/README.md
-
curl -L -o README.md https://huggingface.co/datasets/GoldenCheetah/gcclean_test/resolve/main/README.md
license: cc0-1.0
pretty_name: GCclean
task_categories:
- other
size_categories:
- 1B<n<10B
tags:
- cycling
- power meter
- time series
- sports science
- golden cheetah
- parquet
configs:
- config_name: activities
data_files: data/activities/*.parquet
default: true
- config_name: athletes
data_files: data/athletes/*.parquet
- config_name: athlete_years
data_files: data/athlete_years/*.parquet
- config_name: manifest
data_files: data/manifest/*.parquet
- config_name: timeseries
data_files: data/timeseries/*.parquet
Test slice, not the release. The
activities,athletesandathlete_yearstables are complete;timeseriesandmanifesthold 17 of the 1,869 athletes in 2 part files (part-00000,part-00001), chosen to include 34 rides whose start time, offset or sport differ from GoldenCheetah/opendata-test. File counts and sizes below describe the full release.
GCclean
GCclean is a cleaned cohort of second-by-second (1 Hz) cycling data from the Golden Cheetah Open Data project (GCOD; Liversedge 2018, OSF doi:10.17605/OSF.IO/6HFPZ). GCOD holds ride files that GoldenCheetah users chose to share. GCclean keeps the cycling rides with power and the athlete-years that pass the build's screening, trims each ride to its active window, and ships the result as 58 Parquet part files of per-second rows, each athlete whole in one file, with four metadata tables. The dataset is about 30 GB.
| count | |
|---|---|
| athletes | 1,869 |
| athlete-years | 4,032 |
| rides | 780,523 |
| one-second samples | 5,436,415,075 |
| ride years | 2005 to 2020 |
| timeseries part files | 58 (29,850,222,061 bytes) |
| dataset, all files | 29,883,966,623 bytes (about 30 GB) |
Counts are read from the deposited tables: manifest (athletes, and the sums of
n_rides and n_samples), athlete_years (athlete-years) and activities (rides).
- Paper: Data descriptor in preparation.
- Version: v1.0.0
- Code: https://github.com/mpuchowicz/gcclean_test, tagged release
v1.0.0-test, MIT licence - Licence: CC0 1.0 (Creative Commons Zero), matching GCOD
- Source data: Golden Cheetah Open Data, CC0 1.0 (OSF project 6hfpz), doi:10.17605/OSF.IO/6HFPZ;
the 6,581 athlete zips were downloaded on 12-13 April 2026, and
manifest.gcod_zip_sha256identifies the zip each partition was built from - Contact: questions and problem reports through GitHub issues at https://github.com/mpuchowicz/gcclean/issues or this repository's Discussions tab
What the cleaning does
In outline (the paper is the reference for each step, and the code is the definition):
- Inventory and keys. Each GCOD athlete archive is read, each ride's GoldenCheetah CSV is paired with its JSON summary, and rides that cannot be read or paired are excluded by named reason.
- Ride filters. Rides with a non-cycling activity label are removed (a declared list of 105 labels, matched on the trimmed lower-case label; see the data dictionary for what this rule cannot detect). Corrupt or over-long rides are excluded at source, duplicates are removed, and flat-line and spike artifacts are screened.
- Athlete-year cuts. Whole athlete-years are removed by a sequence of cuts on data coverage and physiological plausibility of the season's power-duration profile.
- Active window. A two-state hidden Markov model labels each second as live pedalling or
not. Each ride is trimmed to the window from its first to its last live pedalling, and
time_srestarts at 0. - Mean-power floor. A ride is removed when its average power over the active window is below 0.5 W/kg of the athlete-year's body mass, unless its maximal mean power comes within 10% of the athlete-year's best at any of 28 durations from 1 s to 7200 s. The delivered set holds 129 rides below 0.5 W/kg kept only by that protection. 170 were kept by it at the floor gate itself, and the later exclusions, athlete-year recount and final recheck removed 41 of them.
The companion channels (distance, heart rate, cadence, altitude) are not cleaned: they ship
raw where recorded and null where not. Validity screening of those channels, and of year of
birth, is left to the user.
Athlete-years removed, by stage, from the build's cohort-status ledger (20,953 athlete-years of 6,480 athletes entered; 4,032 remain):
| stage | athlete-years removed | reasons |
|---|---|---|
| body mass (Cut 0) | 764 | no recorded weight (735), weight out of range (29) |
| ride count (Cut 1) | 15,965 | too few qualifying rides (15,801), or too few after a later ride removal (164) |
| low power floor (Cut 2) | 106 | season power below the MAD floor |
| low volatility (Cut 3) | 11 | |
| high volatility (Cut 5) | 5 | |
| plausibility recount | 67 | too few rides after the plausibility removals |
| spike recheck | 3 | too few rides after the final spike recheck |
Cut 4 (physiological ceiling) removes rides, not whole athlete-years; athlete_years carries
the rides it and Cut 5 removed per athlete-year.
Files and layout
data/timeseries/part-00000.parquet ... part-00057.parquet one row per second; each athlete whole in one file
data/athletes/athletes.parquet one row per athlete
data/athlete_years/athlete_years.parquet one row per athlete-year
data/activities/activities.parquet one row per ride
data/manifest/manifest.parquet one row per athlete
data_dictionary.md the meaning of every column, with counts from this build
RELEASE_MANIFEST.json the SHA-256 and size of every file, and each athlete's part file
A ride's 1 Hz rows run from its first to its last live pedalling, stops included; is_live
marks the pedalled seconds. The ride-count rule (Cut 1) counts ride duration including stops,
so filter on is_live for time actually pedalled.
The layout follows GoldenCheetah OpenData's own Hugging Face upload: one folder per table, one
configuration per folder, activities the default. timeseries is a flat folder of part files
of about 500 MB, as in GoldenCheetah OpenData's own layout. Athletes are in athlete_id order and
each athlete sits whole in one part file, named in manifest.part_file. Rows are sorted by
athlete_id, activity_id and time_s.
| table | rows |
|---|---|
timeseries |
5,436,415,075 |
activities |
780,523 |
athlete_years |
4,032 |
athletes |
1,869 |
manifest |
1,869 |
The characterization tables the paper draws on are a separate dataset, GoldenCheetah/gcclean-characterization, versioned on its own.
The full text for every column, including how missing values and GoldenCheetah's default
values appear, is in data_dictionary.md. The tables below summarise it. Types are the stored
Parquet types.
timeseries (per second)
Rows are sorted by athlete_id, activity_id and time_s. The repack wrote them in that order and read every part file back
in that order against the sealed rows. Each athlete's rows are contiguous within one part file.
| column | type | unit | meaning |
|---|---|---|---|
athlete_id |
string | athlete key | |
activity_id |
string | ride key within the athlete: GoldenCheetah's CSV file name for the ride without .csv, which is the ride's local start time (YYYY_MM_DD_HH_MM_SS) |
|
year |
int64 | the ride's year; joins athlete_years |
|
time_s |
float32 | s | seconds from the start of the active window: whole seconds at 1 Hz, stored as Float32 to match GoldenCheetah OpenData |
power_w |
float32 | W | power; recording-gap seconds are zero-filled (see is_gap) |
power_wkg |
float32 | W/kg | power_w divided by the athlete-year's median_body_mass_kg; never null |
distance_m |
float32 | m | cumulative distance (GoldenCheetah's km x 1000, 6 significant digits); null where not recorded |
hr_bpm |
float32 | beats/min | heart rate, raw; null where not recorded |
cadence_rpm |
float32 | rev/min | cadence, raw; null where not recorded |
altitude_m |
float32 | m | altitude, raw, may be negative; null where not recorded |
is_gap |
uint8 | 0/1 | 1 = the second was a recording gap and its power was zero-filled |
is_live |
uint8 | 0/1 | 1 = the hidden Markov model labelled the second as live pedalling; a model label, not a sensor reading |
null means the device recorded no value. It is not 0 and not NaN. Aggregations such as
mean() skip nulls, so filter or impute on purpose. Present values are not screened:
hr_bpm can be 0 and altitude_m can be negative.
athletes (one row per athlete)
| column | type | unit | meaning |
|---|---|---|---|
athlete_id |
string | athlete key | |
gender |
string | GCOD's raw value (M or F), the same column as in GoldenCheetah OpenData |
|
yob |
int64 | year | year of birth as GCOD records it, not range-checked (this build ranges from 0 to 2098); age by racing convention is ride year minus yob |
sex |
string | GCclean's normalized gender: male (1,830 athletes) or female (39); unknown does not occur |
GoldenCheetah defaults an unset birth date to 1 January 2000, and 2000 is over-represented in
yob (122 athletes, against 13 for 1999 and 7 for 2001). An unset profile cannot be told
apart from a real 2000 birth.
athlete_years (one row per athlete-year)
| column | type | unit | meaning |
|---|---|---|---|
athlete_id |
string | athlete key | |
year |
int64 | calendar year | |
n_rides_removed_cut4 |
int64 | rides | rides Cut 4 (physiological ceiling) removed from the athlete-year; the cut removes the ride setting a failing season best, repeatedly, until the year passes, with no cap |
n_rides_removed_cut5 |
int64 | rides | rides Cut 5 (high volatility) removed from the athlete-year, the same way; filter on these two columns to leave out heavily cleaned years |
median_body_mass_kg |
float64 | kg | median of the self-reported profile weight over the athlete-year's rides; the divisor of power_wkg |
This is an aggregate of the weight in the athlete's GoldenCheetah profile, not a measured weight. GoldenCheetah pre-fills new profiles with 75 kg, and 75.0 kg is over-represented (191 athlete-years, against 76 at 74.0 and 80 at 76.0).
activities (one row per ride)
| column | type | unit | meaning |
|---|---|---|---|
athlete_id, activity_id |
string | ride key | |
start_time_utc |
timestamp[us, UTC] | the ride's start in UTC, parsed from the ride JSON's date | |
utc_offset_minutes |
int16 | min | local start time (activity_id) minus start_time_utc |
sport |
string | activity label as GoldenCheetah recorded it, not normalised; "" is GoldenCheetah's own stored blank, null means the source lacked it |
|
data_flags |
string | GoldenCheetah's 15-position channel-presence string, shipped as is, or ""; never null |
|
has_timeseries |
bool | true: every shipped activity has its 1 Hz rows in timeseries |
|
year |
int64 | the ride's year (UTC; a ride started near New Year can fall in the adjacent year of its local activity_id) |
|
active_start_offset_s |
int64 | s | seconds from the recording's start to the first shipped second; wall-clock time of a row is start_time_utc + active_start_offset_s + time_s |
duration_capped |
bool | the recording was longer than 24 h and only its 24 h window with the most work was used | |
json_mmp_confirm_status |
string | the ride's 1 Hz maximal mean power against GoldenCheetah's own for it: passed, diverged or unverifiable; a flag, no ride is removed on it |
|
date |
string | the ride's start date and time as the source records it (for example 2017/01/31 17:36:44 UTC); null where the source lacks it |
|
data_key_present |
bool | true when the source record carries a channel string; tells the two kinds of "" in data_flags apart |
|
active_mean_wkg |
float64 | W/kg | average power over the active window, recording gaps left out; the mean-power floor's statistic |
active_measured_s |
int64 | s | seconds with recorded power behind active_mean_wkg |
floor_mmp_protected |
bool | true when the ride came within 10% of the athlete-year's best maximal mean power at some duration | |
live_mean_frac_mmp1200 |
float64 | fraction | average over live-pedalling seconds divided by the athlete-year's 20-minute maximal mean power; for comparison with an earlier build's gate |
historical_pct_gate_cut |
bool | true when live_mean_frac_mmp1200 is below 0.18, that is, the earlier build would have removed the ride |
The 15 positions of data_flags are T time, D distance, S speed, P power, H heart rate,
C cadence, N torque, A altitude, G GPS, L slope, W headwind, E temperature, V left/right
balance, O muscle oxygen, R running dynamics. They describe GoldenCheetah's source file, not
the shipped series. An R flag can indicate running recorded under a cycling or blank label;
421 shipped rides carry it and are not removed.
manifest (one row per athlete)
| column | type | unit | meaning |
|---|---|---|---|
athlete_id |
string | athlete key | |
n_rides |
int64 | rides in the athlete's partition | |
n_samples |
int64 | rows in the athlete's partition | |
total_duration_s |
int64 | s | total active-window duration |
size_bytes |
int64 | bytes | size of the athlete's sealed per-athlete partition, from which its rows were repacked |
part_sha256 |
string | SHA-256 of the athlete's sealed per-athlete partition (the code's output, before repacking) | |
gcod_zip_sha256 |
string | SHA-256 of the GCOD athlete zip the partition was built from | |
part_file |
string | the data/timeseries/ part file that holds the athlete's rows |
Keys and joins
- Per-second rows and
activitiesjoin on (athlete_id,activity_id). - Per-second rows and
athlete_yearsjoin on (athlete_id,year). athletesandmanifestjoin onathlete_id.
Parquet settings
Every file was written with GoldenCheetah OpenData's conventions writers (conventions 0.4) and
carries their goldencheetah file metadata naming the dataset and table. timeseries: zstd
level 15, dictionary encoding on the string columns, BYTE_STREAM_SPLIT on every float column
(time_s and the measurements, power_wkg included), row groups of 1,000,000 rows. The other
tables: zstd level 9, dictionary encoding, row groups of 100,000 rows. All files use
content-defined chunking and a page index, and were written with pyarrow 23.0.1.
Readers need a Parquet library that supports BYTE_STREAM_SPLIT. <PLACEHOLDER: minimum reader
versions known to work (pyarrow, polars, DuckDB)>
How to load
polars
import polars as pl
root = "hf://datasets/GoldenCheetah/gcclean" # or a local download
seconds = pl.scan_parquet(f"{root}/data/timeseries/*.parquet")
rides = pl.scan_parquet(f"{root}/data/activities/*.parquet")
ay = pl.scan_parquet(f"{root}/data/athlete_years/*.parquet")
one_season = (
seconds
.filter((pl.col("athlete_id") == "<an athlete_id>") & (pl.col("year") == 2018))
.join(rides.select("athlete_id", "activity_id", "sport", "data_flags"),
on=["athlete_id", "activity_id"], how="left")
.collect()
)
real_hr = one_season.drop_nulls("hr_bpm") # only the seconds with a recorded heart rate
Keep the query lazy and filter before collect(): the full per-second table is about 5.4
billion rows.
pandas
import pandas as pd
manifest = pd.read_parquet("data/manifest/manifest.parquet")
a = "<an athlete_id>"
f = manifest.loc[manifest.athlete_id == a, "part_file"].item()
part = pd.read_parquet(f"data/timeseries/{f}", filters=[("athlete_id", "==", a)]) # one athlete
activities = pd.read_parquet("data/activities/activities.parquet")
merged = part.merge(activities, on=["athlete_id", "activity_id"], how="left")
pandas reads whole files into memory, so read one athlete at a time. Float columns read as float32 with NaN where the Parquet value is null.
Hugging Face datasets
from datasets import load_dataset
rides = load_dataset("GoldenCheetah/gcclean", split="train") # activities (default)
seconds = load_dataset("GoldenCheetah/gcclean", "timeseries", split="train", streaming=True)
The default configuration is activities; each table is its own configuration. Use
streaming=True for timeseries: a non-streaming load converts all 30 GB to Arrow on local disk. <PLACEHOLDER: check this call
against the published repository; not yet run>
Provenance and reproducibility
This code produced these outputs. The deposited files are the output of the GCclean submission code at https://github.com/mpuchowicz/gcclean, run under a wrap seal:
- seal tag
gcclean/gcclean_submission/data-locked-2026-11-17, commit39e69b64; - code of record: repository tree
704e90a689ccf864ae8ed1549a8fbdae4f628b52(lab commit8f44f61500ccabbb4237fca6098a77cc9d4d6ecd), Python 3.14.3, dependencies pinned inuv.lock(sha256641ac5c7...48fbb); - command:
uv run --frozen python -m gcclean all --gcod <zips dir> --out <out dir>.
The pipeline runs in parts, and each part's outputs were made by that part's code at the commit its record names. The seal reused a part only when its code at the code of record is the same program: changed files may differ only in comments and docstrings (the same Python syntax tree), and the seal record lists them. The seal hashed the inputs (6,581 files) and the environment, and fingerprinted every output (4,017 files).
Checks at the seal. The same seal ran proof/verify_seal.py against all outputs, and all
eight checks passed: real-data invariants on this run's build and deposit (the cut chains
reconcile with each cut's manifest; every table a cut reads equals the one rebuilt from the rides
live at that cut; nothing removed reappears; at the final state no athlete-year fails Cuts 2 to 5
on its live rides; the final recheck's cuts are replayed pass by pass; the deposit's counts equal
the final state), the deposit's conformance to this layout (column names and dtypes, every
part_sha256 against its file, one config per folder), and a code record: every function the
submission keeps from the earlier audited pipeline is identical to it, or is declared as an edit
with its reason. proof/verify_seal.py is not part of the code repository; the seal record that holds its
result is.
To confirm a downloaded file is the shipped one, recompute its SHA-256 and compare it with its
entry in RELEASE_MANIFEST.json. The part files repack the sealed per-athlete partitions value
for value, in the row order above. Every part file was read back and compared exactly with the
sealed rows, and manifest.part_sha256 names the sealed partition each athlete's rows came
from. gcod_zip_sha256 links each partition to the GCOD zip it was built from.
The paper's tables and figures
Each table and figure in the paper and the files it is drawn from. data/<name> is a table in
the companion dataset GoldenCheetah/gcclean-characterization, built from this release. The
others are outputs of the code, written under <out>/ by python -m gcclean all, and are in
neither dataset.
| paper | files |
|---|---|
| Figure 1 (cohort flow) | data/cohort_flow_table |
| Figure 2 (cohort MMP, cut vs surviving) | <out>/phase_a/cohort_mmp_before_gcod.parquet, data/per_athlete_mmp_wkg_28anchor |
| Figure 3 (cumulative intensity) | data/cumulative_duration_per_athlete, data/cumulative_duration_athletes, data/cumulative_duration_cohort |
| Figure 4 (FPCA modes) | data/fpca_basis, data/fpca_variance_explained |
| Figure 5 (OmPD fits) | data/per_athlete_ompd_params |
| Figure 6 (FPC scores) | data/fpc_scores_per_athlete |
| Figure 7 (reference percentiles) | data/reference_wkg_pointwise_percentiles (Reference Table B) |
| Figure 8 (V3 parameter ranges) | data/v3_param_range_check, data/v3_published_reference_values |
| Table 1 (corpus and cohort) | <out>/phase_a/descr_corpus_totals.parquet, descr_athlete_characteristics.parquet, descr_ride_metrics.parquet |
| Table 2 (score and parameter summaries) | data/per_athlete_fpc_score_descriptives, data/per_athlete_ompd_param_descriptives |
| Reference Tables A, B, C | data/reference_fpc_score_percentiles, data/reference_wkg_pointwise_percentiles, data/reference_ompd_param_percentiles |
| Supplementary Table S1 (HMM review) | <out>/validation/hmm_review/hmm_calibration_deposited.parquet, hmm_annotator_icc.parquet, hmm_review_verdicts.parquet |
| Supplementary Table S2 (removal by sex) | <out>/validation/cohort_flow_sex/cohort_flow_sex_tests.parquet |
| Supplementary Table S3 (column dictionary) | the column tables in this card |
| Supplementary Figure S1 (HMM windows) | the paper's supplementary PDF, drawn from the hand-marked rides |
Ethics and privacy
- GCOD contains ride files that GoldenCheetah users opted in to share as open data (Liversedge 2018). GCclean adds no new data collection.
- No GPS coordinates are shipped; the per-second files hold only time, distance, power, heart rate, cadence and altitude.
- No names or other self-reported identifiers are shipped. Athletes are identified by
athlete_id, which is GCOD's own anonymous identifier, the name of the athlete's archive without.zip, carried through unchanged. sexandyobare shipped as GCOD provides them, andathlete_yearscarries a body-mass aggregate. Ride start dates and times ship as recorded, indateand inactivity_id.- GCclean is a cleaned subset of GCOD with no new data collection or linkage to other sources. See the GoldenCheetah OpenData release's terms.
Limitations
Training data, not controlled tests. Rides are everyday training and racing recorded by athletes' own devices. Efforts are not standardised, and maximal efforts are not guaranteed.
Power-meter quality. Power meters differ by make, calibration and zero-offset practice, and the build has no record of the meter used. Screening removes gross artifacts, not calibration bias.
Body mass is locked per athlete-year.
power_wkgdivides by one median self-reported weight per athlete-year. Weight changes inside a year are not tracked, and GoldenCheetah's 75 kg default is over-represented and cannot be told apart from a real 75 kg.Year of birth is unscreened.
yobis shipped exactly as GCOD reports it, without validation. Of 1,869 athletes:- 2 have
yob0, and 3 in all are below 1920 (0, 0, 1893); - 203 are above 2010, 193 of them 2047-2098, which looks like a century error (1947-1998), and 200 are after the athlete's first ride year;
- the range is 0 to 2098, and 1,663 fall in a plausible 1920-2010;
- there is an excess at 2000 from unset profiles.
No shipped table derives age from
yob; anyone computing age should screen it first.- 2 have
Labels. The non-cycling filter reads the activity label only. Running or other activity recorded under a cycling, blank or unreviewed label can remain.
Active window and live pedalling are model output.
is_liveand the window trim come from a hidden Markov model, not from a sensor.Companion channels are raw. Heart rate, cadence, altitude and distance are not cleaned.
Cohort. GCOD users are self-selected GoldenCheetah users; 39 of 1,869 athletes are female.
Citation
Data descriptor in preparation.
Dataset:
Puchowicz MJ, Rothschild JA. GCclean v1.0.0. Hugging Face; 2026. https://huggingface.co/datasets/GoldenCheetah/gcclean
Source data:
Liversedge M. GoldenCheetah OpenData Project. OSF; 2018. doi:10.17605/OSF.IO/6HFPZ