Added a segmentation score calculation for composition.