How AI could help people with dementia piece together the past