Automatic detection of sleep macrostructure based on bed sensors | IEEE Conference Publication | IEEE Xplore