An smartphone-based algorithm to measure and model quantity of sleep | IEEE Conference Publication | IEEE Xplore