Design and implementation of a smart toothbrush for individuals with dementia