Early prediction and severity classification of dementia