Unobtrusive in-home detection of time spent out-of-home with applications to loneliness and physical activity