real-time cohort segmentation