A Deep Learning Framework for Automatic Diagnosis in Lung Cancer