A new piece of simple technology armed with a complex algorithm could give dementia patients freedom to wander unattended while…