PEMAR: A pervasive middleware for activity recognition with smart phones | IEEE Conference Publication | IEEE Xplore