Japanese researchers use machine learning to detect dementia