Skip to content
Classify sleep from heart rate and acceleration via Apple Watch
Branch: master
Clone or download
Olivia Walch Olivia Walch
Olivia Walch and Olivia Walch OJW - Fixed link formatting in the README files
Latest commit b73bdc4 Oct 24, 2019


This code uses scikit-learn to classify sleep based on acceleration and photoplethymography-derived heart rate from the Apple Watch.

Getting Started

This code uses Python 3.7.


Data collected using the Apple Watch is available on PhysioNet: link

The MESA dataset is available for download at the National Sleep Research Resource

Features + figures

All raw data are cleaned and features are generated in

The file can be used to generate figures showing classifier performance.


This software is open source and under an MIT license.

You can’t perform that action at this time.