Artificial intelligence is helping to transform the way elderly people are cared for