Machine learning for activity pattern detection · Study