Using Intelligent Agents to Assist in Daily Activities of Patients with Dementia