Analyzing and classifying MRI images using robust mathematical modeling