How to Analyze Apple Health Data with AI (Claude, ChatGPT)
Your iPhone holds years of biometric data. AI models can unlock the insights hidden inside. Here is the step-by-step workflow to safely export, clean, and analyze your health history.
Export → AirDrop → Analyze with Claude, ChatGPT, or any AI.
Why Apple Health + AI is a Superpower
Apple Health is incredible at collecting data, but terrible at explaining it. It gives you raw numbers: "Resting Heart Rate: 58 bpm." But it doesn't answer the questions that actually matter:
- "Is my sleep quality declining because of my late-night workouts?"
- "How does my heart rate recovery this year compare to last year?"
- "What is the correlation between my step count and my deep sleep?"
Large Language Models (LLMs) like Claude 3.5 Sonnet and ChatGPT-4o are excellent at pattern recognition. If you feed them your health data, they act like a team of data scientists working on your personal biology.
The Problem: Data Formats
You can't just take a screenshot of your Health app and send it to ChatGPT. AI models need structured data—specifically CSV (Comma Separated Values) or JSON files.
Apple's native export tool dumps a massive, messy XML file (`export.xml`) that often crashes Excel and is too large for most AI context windows. You need a bridge.
Privacy Warning: Never upload raw health data to a public AI model without anonymizing it first. Remove names, birthdates, and exact location coordinates if present. Our export tool does this automatically.
Step 1: Export to Clean CSV
Use the Health Data Export AI Analyzer app to convert your Apple Health data into clean, AI-ready CSV files. Unlike the native export, this tool:
- Splits data by category (e.g., `workouts.csv`, `sleep.csv`, `heart_rate.csv`).
- Formats timestamps for easy AI parsing.
- Aggregates millions of data points into daily/weekly summaries to fit context windows.
Get the Export Tool
Download for iOSStep 2: The "Physician" Prompts
Once you have your `health_metrics.csv` or `workouts.csv`, upload it to Claude.ai or ChatGPT Plus. Use these specific prompts to get high-value insights.
Use this to find long-term trends in your baseline health.
I am uploading my daily health metrics CSV exported from Apple Health.
Act as an expert physiologist and data scientist.
Analyze the data for the last 12 months.
Please identify:
1. Three positive trends in my cardiovascular health (Resting HR, HRV, VO2 Max).
2. Two negative trends or anomalies I should be aware of.
3. The correlation between my Sleep Duration and my Resting Heart Rate the next day.
4. Visualize the trend of my Step Count vs. Active Energy Burned.
Output the results in a concise "Medical Executive Summary" format.
Great for finding what ruins your sleep.
Attached is my sleep analysis data and workout data.
I want to optimize for Deep Sleep and REM cycles.
Based on the data:
1. Does late-night exercise (workouts after 8 PM) correlate with lower sleep scores?
2. What is my optimal "bedtime window" based on my wake-up consistency?
3. Calculate my average sleep debt for the past month compared to an 8-hour baseline.
Advanced: Using Python for Local Analysis
If you prefer not to upload data to the cloud, you can use local LLMs (like Llama 3) or Python scripts. Our export format is perfectly structured for `pandas` analysis.
import pandas as pd
import matplotlib.pyplot as plt
# Load your exported data
df = pd.read_csv('heart_rate.csv')
# Convert date to datetime
df['startDate'] = pd.to_datetime(df['startDate'])
# Plot 30-day moving average of Resting Heart Rate
df.set_index('startDate')['value'].rolling(window=30).mean().plot()
plt.title('30-Day Trend: Resting Heart Rate')
plt.show()
Start Analyzing Today
Your health data is the most valuable dataset you own. Don't let it sit in a silo. Export it, clean it, and let AI help you understand your own biology.
Ready to unlock your data?
Get the specialized export tool that formats everything for AI instantly.