Maintaining identity

How can we best understand the person beneath the dementia or the individual inside their frailty?