A study of machine learning and deep learning models for solving medical imaging problems