cluster_segments function

Cluster time segments into behavioral states