Capturing heterogeneity in repeated measures data by fusion penalty