Cohort selection for clinical trials using deep learning models