Segmentation Function Confidence Scoring Algorithm