ML algorithms for image analysis