Machine learning for medical images analysis