Corridor Safety Modeling Via Segmentation