---
title: "van Hees"
canonical_url: https://developer.repebble.com/pebbleos/docs/libraries/vanhees/
last_updated: 2026-11-24
sdk_version: 4.44
---
# van Hees

Source: https://developer.repebble.com/pebbleos/docs/libraries/vanhees/

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](https://developer.repebble.com/pebbleos/docs/libraries/kraepelin.md).

| 

 | 

 |
| --- | --- |
| 

Directory

 | 

`lib/vanhees`

 |
| 

Header

 | 

`pbl/vanhees/vanhees.h`

 |
| 

Kconfig

 | 

`CONFIG_VANHEES`, selected by the code that uses it

 |
| 

API

 | 

[API reference](https://developer.repebble.com/pebbleos/apidoc/d1/ded/group__vanhees.html)

 |

## 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](https://developer.repebble.com/pebbleos/docs/libraries/kraepelin.md) 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](https://github.com/coredevices/pebbleos/commit/12b6c531f9e0c2f39fe4e9bb2886314697128f08). This page is maintained in the pebbleos repository: [docs/libraries/vanhees.md](https://github.com/coredevices/pebbleos/blob/12b6c531f9e0c2f39fe4e9bb2886314697128f08/docs/libraries/vanhees.md).
