I got an Apple Watch last year (as a birthday gift to myself). As a data enthusiastic, I am always eager to learn more about myself with data. Now I have the chance. I exported the data from my Apple Watch, which generated a 250MB XML file, and decided to play with it a little bit.
The 'export.xml' file unzipped from the Apple Watch export has two parts:
- Records Data
This includes all your health records (all the 'HKQuantityTypeIdentifier' objects) like energy burned, heart rate, stand time, body mass, etcs. -- basically those you will see in your 'Health' APP. - Workout Data This includes all the workout records (all the 'HKWorkoutActivityType' objects from the 'Activity' APP, like the type, duration, distance, and energy burned.
- Daily Summary Data
This includes a daily stats summary from the 'Activity' App, basically your move/exercise/stand hour target vs. actual.
Of course the dataset will not be posted in this repo due to data privacy, but you can always find a snapshot in the code :)
- Apple Watch Export Data Extraction
This notebook is on how to extract the data from the exported XML file and convert to pandas dataframes and csv files. - Heart Rate Data EDA
This notebook focus on understanding, analyzing, and visualizing the heart rate data extrated. It looked at the relationship and difference among heart rate, resting heart rate, and walking heart rate records, and explored the pattern of the heart rates during weekdays/weekends and on different hours of a day. - Energy Data EDA
This notebook focus on understanding, analyzing, and visualizing the energy burned data extrated. It tried to understand the granularity of each record, looked at the difference beetween Basal Energy Burned and Active Energy Burned, explored their trend over time, and pattern on different time of day and on different weekdays.
Below is a list of questions I am interested to look at:
- What is my typical heart rate looks like, how it is distributed, and how it differs while resting / walking / workout?
- How is my energy burned elevating (my daily move target has increased multiple times since I've been doing routine workout now)? Relationship between heart rate and energy burned?
- How different my life pattern is during weekday vs. weekends from the perspective of these health metrics?
- How is my workout records trending? Given the same workout form every day (well, Ring Fit Adventure on Switch for me in the past three months), am I playing longer? Am I getting used to it looking at the hear rate and energy burned during the workout?