Machine learning identifies likelihood of developing dementia