At the end of this procedure, a segmentation result that fully matches the demand of the user is returned.
in some complicated cases where segmentation ambiguities exist, the Kalman filter will not converge and keep swapping in two or more states.