Apple Health Deep Analysis
Clinical-grade* health data analysis for Apple Health exports.
Transforms raw Apple Health XML into comprehensive health assessment reports — 21 statistical methods, 30 disease risk screenings, 35+ SVG visualizations, citing 59 peer-reviewed papers. Works with Claude Code, Cursor, Copilot, Codex, Gemini CLI, and 8+ other AI agents.
* "Clinical-grade" refers to the use of peer-reviewed statistical methods and published clinical reference ranges — NOT to regulatory approval or diagnostic validity. This tool is for informational and educational purposes only. It is not a medical device, does not provide medical advice, and has not been validated in clinical trials or cleared by any regulatory body (FDA, CE, etc.). All disease risk screenings are preliminary estimates that require confirmation by a licensed healthcare provider. Do not make medical decisions based solely on this tool's output.
Install
npx skills add labrinyang/apple-health-analysis -y -g
Non-interactive, global install to all supported AI agents. Then say "Analyze my Apple Health data".
Alternative: Claude Code Plugin CLI
claude plugins marketplace add labrinyang/apple-health-analysis
claude plugins install apple-health-analysis
Update
npx skills update
Features
21 Statistical Methods
| Category | Methods | Papers |
|---|
| Causal Inference | Granger Causality, Transfer Entropy, Convergent Cross Mapping | Granger 1969, Schreiber 2000, Sugihara 2012 |
| Nonlinear Dynamics | Sample Entropy, DFA, Poincare Plot, Multiscale Entropy | Richman 2000, Peng 1994, Brennan 2001, Costa 2002 |
| Advanced CGM | LBGI/HBGI, ADRR, CONGA-1/2/4h, GVP, Rate of Change | Kovatchev 2002/2006, McDonnell 2005, Peyser 2018 |
| Circadian | Cosinor Analysis, Interdaily Stability, Intradaily Variability | Cornelissen 2014, Witting 1990 |
| Trend & Change | Mann-Kendall, Bayesian Change Points, CUSUM | Mann 1945, Adams & MacKay 2007 |
| Statistical Rigor | Bootstrap CI, Cohen's d / Hedge's g, Permutation Tests | Efron 1979, Cohen 1988 |
| Composite Models | Biological Age, Fitness Age, Allostatic Load Index | Levine 2013, Nes 2013, McEwen 1998 |
30 Disease Risk Screenings
Each screening uses paper-cited biomarker thresholds and returns a risk score with contributing factors and clinical recommendations.
| Category | Conditions | Key References |
|---|
| Endocrine | Type 2 Diabetes, Hypothyroidism, Hyperthyroidism, Insulin Resistance | Lindstrom 2003 (FINDRISC), Lee 2021, Hall 2018, Battelino 2019 |
| Cardiovascular | CVD, Hypertension, Coronary Artery Disease, Atrial Fibrillation, Heart Failure, POTS | D'Agostino 2008 (Framingham), Krivoshei 2022, Cole 1999 (NEJM), Alonso 2013 (CHARGE-AF) |
| Respiratory | Obstructive Sleep Apnea, COPD | Chung 2008 (STOP-BANG), Zhang 2025 |
| Neurological | Parkinson's (early), Cognitive Decline, Seizure Risk | Adams 2024 (WATCH-PD), Doi 2022 (JAMA), Regalia 2024 |
| Musculoskeletal | Sarcopenia, Fall Risk | Cruz-Jentoft 2019 (EWGSOP2), Apple Walking Steadiness |
| Sleep Disorders | Insomnia, REM Behavior Disorder, Circadian Rhythm Disorder | Stefani 2023, Diago 2024, Morin 2017 |
| Psychiatric | Depression/Circadian Disruption, Anxiety, Chronic Fatigue | Lyall 2018 (Lancet Psych), Chalmers 2014, Escorihuela 2020 |
| Other | Anemia, Hearing Loss, Infection/Fever, Metabolic Syndrome, Vitamin D proxy, Dehydration | Li 2021 (Nature Med), Mishra 2020 (Nature), WHO 2022, Alberti 2006 |
HTML Report (35+ SVG Charts)
Self-contained ~160KB HTML using Claude's design system. Charts and data are pre-rendered; 14 narrative slots are left empty for the AI to fill with personalized clinical interpretation.
Visualizations include:
- Circular gauge dashboard (8 dimensions + overall score)
- 24-hour circadian curves (heart rate + glucose)
- 7×7 cross-metric correlation heatmap
- Weight trajectory with linear regression + projection
- Heart rate zone donut chart
- Blood glucose TIR stacked bar
- Disease risk screening cards (color-coded by severity)
- Biological vs Fitness vs Chronological age comparison
- Sleep architecture donut
- Monthly trend bar charts with sparklines
- Workout type comparison
- Data quality stream table
Clinical Rigor