Improving the quality of life for dementia patients through progressive detection, treatment, and care