Efficient and robust deep learning for medical imaging and natural language processing