pebble
  • Tutorials
  • Get the SDK
  • Guides
  • Documentation
  • PebbleOS
  • Mobile App
  • Examples
  • Index 01
  • Community
  • Blog
  • More
Privacy
Cookies
Publish

PebbleOS

  • Overview
  • Start here
    • Getting started guide
  • Pebble Firmware
    • Overview
    • Playground
    • Application SDK
  • Development
    • The pbl CLI
    • Build system
    • Samples
    • Emulator and simulator
    • Testing
    • Debugging
    • Conventions
  • System
    • Architecture overview
    • Kernel
    • Drivers
    • Subsystems
    • Libraries
      • C library
      • Utilities
      • Bluetooth utilities
      • Fuel gauge
      • Kraepelin
      • van Hees
      • Shared definitions
    • Third-party
  • Hardware
    • Boards
    • Board Add-ons
    • Programmers
  • Community
    • Contribution Guidelines
  • Reference
    • Reference
    • Kconfig options

van Hees

van Hees tells sleep minutes apart with the method of van Hees et al., A Novel, Open Access Method to Assess Sleep Duration Using a Wrist-Worn Accelerometer (PLOS ONE, 2015). It looks at the posture of the wrist rather than at how much it moves, unlike the sleep threshold of Kraepelin.

Directory

lib/vanhees

Header

pbl/vanhees/vanhees.h

Kconfig

CONFIG_VANHEES, selected by the code that uses it

API

API reference

Classification

For each 5 second epoch, the median of each axis gives the angle of the Z axis, perpendicular to the skin, to the horizontal plane. A posture change is a difference of more than 5 degrees between the angles of two successive epochs. A minute is a sleep minute when it lies entirely in a period of at least 5 minutes without posture change.

It only classifies minutes: Kraepelin builds sleep sessions out of them, with the same not-worn detection. The exceptions that depend on the VMC do not apply: the wrist angle alone decides. Restful sleep is still found from the filtered VMC, as the method has no notion of it.

Generated from PebbleOS 12b6c531f. This page is maintained in the pebbleos repository: docs/libraries/vanhees.md.