Containts code for real-time workflow segmentation