You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
*An all-in-one, offline R toolkit for endurance analytics — from FIT/TCX/GPX & Strava exports to core models (ACWR, EF, Pa:Hr decoupling, PB, Exposure) with built-in QC & uncertainty.*
7
+
*An offline, reproducible R toolkit for endurance-exercise data: from FIT/TCX/GPX & Strava archives to validated models (ACWR, EF, pa:hr decoupling, PB, exposure), with built-in QC and uncertainty estimation.*
**Athlytics** is a powerful R package for analyzing your endurance training data from **local Strava exports**. It provides a complete, **offline** toolkit to transform your raw data into meaningful insights about fitness, fatigue, and performance.
51
+
**Athlytics** is a research-oriented R package for the longitudinal analysis of endurance training. It operates entirely on **local Strava exports** (or FIT/TCX/GPX files), avoiding API dependencies to ensure **privacy**and long-term **reproducibility**.
52
52
53
-
Designed for athletes, coaches, and sports scientists, Athlytics standardizes the entire analysis process—from loading your data to generating publication-quality plots. Because it works **offline** without needing API keys, your data remains completely **private** and your workflows are **stable and reproducible** forever.
53
+
The package standardizes the workflow from data ingestion and quality control to model estimation and uncertainty quantification. Implemented endpoints include **acute-to-chronic workload ratio (ACWR)**, **aerobic efficiency (EF)**, and **cardiovascular decoupling (pa:hr)**, alongside personal-best and exposure profiles suitable for **single-subject** and **cohort** designs. All functions return tidy data, facilitating statistical modeling and figure generation for academic reporting.
54
54
55
55
<br>
56
56
<divalign="center">
@@ -62,17 +62,13 @@ Designed for athletes, coaches, and sports scientists, Athlytics standardizes th
62
62
63
63
## ✨ Key Features
64
64
65
-
* ✅ **100% Local and Private**: Works directly with your Strava ZIP export. No data is ever uploaded, and no internet connection or API keys are needed. You have full control over your information.
65
+
* ✅ **Reproducible by design** – Fully offline; no API keys. Deterministic pipelines suitable for longitudinal studies.
66
+
* ✅ **Validated metrics** – Implements ACWR, EF, and decoupling commonly used in exercise physiology; integrated **QC** checks.
67
+
* ✅ **Uncertainty-aware** – Functions return estimates with variance/intervals where applicable, enabling principled inference.
68
+
* ✅ **Cohort support** – Built-in helpers for multi-athlete datasets and percentile-band references.
69
+
* ✅ **Tidy outputs** – Consistent, analysis-ready tibbles for downstream modeling and figure pipelines.
66
70
67
-
* ✅ **All-in-One Analysis Pipeline**: Handles everything from loading and cleaning raw data to calculating advanced metrics and creating visualizations. No more patching together different tools.
68
-
69
-
* ✅ **Robust Scientific Metrics**: Implements widely used metrics for performance analysis, including Acute-to-Chronic Workload Ratio (ACWR), Aerobic Efficiency (EF), and Cardiovascular Decoupling, with built-in quality checks.
70
-
71
-
* ✅ **Powerful Cohort Analysis**: Purpose-built for comparing multiple athletes. Easily load data for a team or group and benchmark an individual's progress against the cohort.
72
-
73
-
* ✅ **Reproducible and Shareable**: Because the workflow is self-contained, your analysis scripts are easy to share and will produce the same results every time, making it ideal for reliable, long-term tracking.
74
-
75
-
***
71
+
---
76
72
77
73
## 📦 Installation
78
74
@@ -91,16 +87,15 @@ install.packages("Athlytics")
91
87
remotes::install_github("HzaCode/Athlytics")
92
88
```
93
89
94
-
***
95
-
90
+
---
96
91
### 🚀 Quick Start
97
92
98
93
99
94
### 📥 Step 1: Export Your Strava Data
100
95
101
96
1. Navigate to **[Strava Settings → My Account](https://www.strava.com/settings/profile)**.
102
97
2. Under "Download or Delete Your Account," click **"Get Started"** and then **"Request Your Archive"**.
103
-
3. You will receive an email with a download link (it may take a little while).
98
+
3. You'll receive an email with a download link — this sometimes takes a few hours.
104
99
4. Download the ZIP file (e.g., `export_12345678.zip`). **There is no need to unzip it.**
@@ -163,23 +158,49 @@ Measure your endurance by analyzing how much your heart rate "drifts" upward dur
163
158
<em><ahref="https://hezhiang.com/Athlytics/reference/calculate_decoupling.html">Learn more about Decoupling...</a></em>
164
159
</p>
165
160
166
-
***
161
+
---
162
+
163
+
## 📐 Methods & Validation
164
+
165
+
This release implements widely used constructs in endurance-exercise analytics:
166
+
-**ACWR**: rolling acute (e.g., 7-day) vs chronic (e.g., 28-day) load ratios with smoothing options.
167
+
-**Aerobic Efficiency (EF)**: output (pace/power) relative to effort (heart rate) over time.
168
+
-**Cardiovascular Decoupling (pa:hr)**: drift between pace/power and heart rate during steady efforts.
169
+
170
+
We provide input validation, outlier handling, and activity-level QC filters (e.g., minimal duration, HR plausibility ranges). For cohort summarization, Athlytics computes percentile bands and supports stratification by sport, sex, or other covariates when available.
171
+
172
+
---
173
+
174
+
## 🔁 Reproducibility & Data Privacy
175
+
176
+
Analyses are file-based and fully **offline**, ensuring privacy of personally identifiable training data. We recommend:
177
+
1) Versioning your Strava ZIP archives;
178
+
2) Pinning Athlytics and dependent package versions;
179
+
3) Archiving code and rendered artifacts (e.g., via Zenodo) with a clear computational environment manifest.
180
+
181
+
---
167
182
168
183
## 📝 Citation
169
184
170
-
If you use **Athlytics** in your research, please cite the software. We also recommend citing the original methodological papers for any metrics used (see documentation for references).
185
+
If you use **Athlytics** in academic work, please cite the software as well as the original methodological sources for specific metrics.
171
186
172
187
```bibtex
173
188
@software{athlytics2025,
174
-
title = {Athlytics: A Computational Framework for Longitudinal Analysis of Exercise Physiology},
189
+
title = {Athlytics: A Reproducible Framework for Endurance Data Analysis},
175
190
author = {Zhiang He},
176
191
year = {2025},
177
192
version = {1.0.0},
178
193
url = {https://github.com/HzaCode/Athlytics}
179
194
}
180
195
```
181
196
182
-
***
197
+
---
198
+
199
+
## ⚖️ Ethical Considerations
200
+
201
+
Athlytics processes personal training records. Ensure appropriate consent for cohort analyses, de-identify outputs where required, and comply with local IRB/ethics and data-protection regulations.
***💡 Suggest a Feature**: [Start a Discussion](https://github.com/HzaCode/Athlytics/discussions)
190
211
***🔧 Submit a Pull Request**: We appreciate your help in improving Athlytics.
191
212
213
+
---
214
+
215
+
## 🙏 Acknowledgements
192
216
217
+
The author acknowledges the helpful feedback from the pyOpenSci community, and the constructive suggestions provided by Professors [Benjamin S. Baumer](https://github.com/beanumber) and [Iztok Fister Jr.](https://github.com/firefly-cpp), as well as the developers of the referenced R packages. We also thank the endurance-analytics and open-source communities for constructive feedback on data quality, modeling choices, and reproducibility practices.
0 commit comments