Principled Deep Learning for Healthcare Applications