A deep learning based framework for diagnosis of mild cognitive impairment