Analysis and comparative study of machine learning techniques to handle brain image segmentation on medical images