Analysis of long-term abnormal behaviors for early detection of cognitive decline