Deep Learning, Mining, and Collaborative Clustering to Identify Flexible Daily Activities Patterns
Abstract
:1. Introduction
2. Related Work
3. Aim and Research Contribution
- Definition of flexible daily routines incorporating elements of slight variation as opposed to state-of-the-art approaches which consider the routine as a rather rigid sequence of activities. The elements of variation are related to the sequence of activities in a routine as well as the timespan of the activities.
- Identification of frequent behavior patterns using the Gap-BIDE algorithm and considering the elements of variations and sub-routines in activities sequence (i.e., night, morning, afternoon, and evening) for increased pattern mining flexibility.
- Address the time-related elements of variability in daily routine by using K-means algorithms and Hierarchical Clustering Agglomerative algorithms onto activities timespan vectors having as similarity metrics the dynamic time warping and Manhattan distance.
- A prototype to monitor and detect the daily living activities based on smartwatch data using a deep learning architecture and the InceptionTime model for which the highest accuracy was achieved.
4. Flexible Daily Routines
4.1. Frequent Activities Sequences
4.2. Activity Time Related Variability
Algorithm 1: Collaborative Clustering |
Inputs:—timespan of activities for all days and all periods of the dataset |
Outputs:—activity sequence representing the baseline. |
Begin |
|
End |
5. Experimental Results
5.1. Activity of Daily Living Detection
5.2. Daily Routine Detection
6. Discussion and Conclusions
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Conflicts of Interest
References
- Number of People Over 60 Years Set to Double by 2050; Major Societal Changes Required. Available online: https://www.who.int/news/item/30-09-2015-who-number-of-people-over-60-years-set-to-double-by-2050-major-societal-changes-required (accessed on 15 April 2022).
- Maresova, P.; Krejcar, O.; Barakovic, S.; Husic, J.B.; Lameski, P.; Zdravevski, E.; Chorbev, I.; Trajkovik, V. Health–Related ICT Solutions of Smart Environments for Elderly–Systematic Review. IEEE Access 2020, 8, 54574–54600. [Google Scholar] [CrossRef]
- Anghel, I.; Cioara, T.; Moldovan, D.; Antal, M.; Pop, C.D.; Salomie, I.; Pop, C.B.; Chifu, V.R. Smart Environments and Social Robots for Age-Friendly Integrated Care Services. Int. J. Environ. Res. Public Health 2020, 17, 3801. [Google Scholar] [CrossRef]
- Kruk, M.E.; Gage, A.D.; Arsenault, C.; Jordan, K.; Leslie, H.H.; Roder-DeWan, S.; Adeyi, O.; Barker, P.; Daelmans, B.; Doubova, S.V.; et al. High-quality health systems in the Sustainable Development Goals era: Time for a revolution. Lancet Glob. Health 2018, 6, e1196–e1252. [Google Scholar] [CrossRef] [Green Version]
- Chifu, V.R.; Pop, C.B.; Demjen, D.; Socaci, R.; Todea, D.; Antal, M.; Cioara, T.; Anghel, I.; Antal, C. Identifying and Monitoring the Daily Routine of Seniors Living at Home. Sensors 2022, 22, 992. [Google Scholar] [CrossRef]
- Bakalos, N.; Voulodimos, A.; Doulamis, N.; Doulamis, A.; Ostfeld, A.; Salomons, E.; Caubet, J.; Jimenez, V.; Li, P. Protecting Water Infrastructure From Cyber and Physical Threats: Using Multimodal Data Fusion and Adaptive Deep Learning to Monitor Critical Systems. IEEE Signal Processing Mag. 2019, 36, 36–48. [Google Scholar] [CrossRef]
- Lentzas, A.; Vrakas, D. Non-intrusive human activity recognition and abnormal behavior detection on elderly people: A review. Artif. Intell. Rev. 2020, 53, 1975–2021. [Google Scholar] [CrossRef]
- Li, S.; Lee, D.H. Learning daily activity patterns with probabilistic grammars. Transportation 2017, 44, 49–68. [Google Scholar] [CrossRef]
- Van Kasteren, Y.; Bradford, D.; Zhang, Q.; Karunanithi, M.; Ding, H. Understanding Smart Home Sensor Data for Ageing in Place Through Everyday Household Routines: A Mixed Method Case Study. JMIR mHealth uHealth 2017, 5, e52. [Google Scholar] [CrossRef]
- Camp, N.; Lewis, M.; Hunter, K.; Johnston, J.; Zecca, M.; Di Nuovo, A.; Magistro, D. Technology Used to Recognize Activities of Daily Living in Community-Dwelling Older Adults. Int. J. Environ. Res. Public Health 2021, 18, 163. [Google Scholar] [CrossRef]
- Uddin, M.Z.; Khaksar, W.; Torresen, J. Ambient Sensors for Elderly Care and Independent Living: A Survey. Sensors 2018, 18, 2027. [Google Scholar] [CrossRef] [Green Version]
- Bozdog, I.A.; Daniel-Nicusor, T.; Antal, M.; Antal, C.; Cioara, T.; Anghel, I.; Salomie, I. Human Behavior and Anomaly Detection using Machine Learning and Wearable Sensors. In Proceedings of the 2021 IEEE 17th International Conference on Intelligent Computer Communication and Processing (ICCP), Cluj-Napoca, Romania, 28–30 October 2021; pp. 383–390. [Google Scholar] [CrossRef]
- Miranda-Duro, M.C.; Nieto-Riveiro, L.; Groba, B.; Canosa, N. Monitoring of Older Adults’ Daily Activity and Sleep with Xiaomi Mi Band 2. Eng. Proc. 2021, 7, 50. [Google Scholar] [CrossRef]
- Sepesy Maučec, M.; Donaj, G. Discovering Daily Activity Patterns from Sensor Data Sequences and Activity Sequences. Sensors 2021, 21, 6920. [Google Scholar] [CrossRef]
- Enshaeifar, S.; Zoha, A.; Markides, A.; Skillman, S.; Acton, S.T.; Elsaleh, T.; Hassanpour, M.; Ahrabian, A.; Kenny, M.; Klein, S.; et al. Health management and pattern analysis of daily living activities of people with dementia using in-home sensors and machine learning techniques. PLoS ONE 2018, 13, e0195605. [Google Scholar] [CrossRef] [Green Version]
- Zekri, D.; Delot, T.; Thilliez, M. Sylvain Lecomte and Mikael Desertot, A Framework for Detecting and Analyzing Behavior Changes of Elderly People over Time Using Learning Techniques. Sensors 2020, 20, 7112. [Google Scholar] [CrossRef]
- Pazhoumand-Dar, H.; Leisa, J. Armstrong and Amiya Kumar Tripathy, Detecting deviations from activities of daily living routines using kinect depth maps and power consumption data. J. Ambient Intell. Humaniz. Comput. 2020, 11, 1727–1747. [Google Scholar] [CrossRef]
- Lee, J.; Melo, N. Habit Representation Based on Activity Recognition. Sensors 2020, 20, 1928. [Google Scholar] [CrossRef] [Green Version]
- Li, C.; William, K.C.; Liu, J.; Joseph, K. Ng, Automatic Extraction of Behavioral Patterns for Elderly Mobility and Daily Routine Analysis. ACM Trans. Intell. Syst. Technol. 2018, 9, 1–26. [Google Scholar] [CrossRef]
- Ionescu, R.T.; Khan, F.S.; Georgescu, M.-I.; Shao, L. Object-Centric Auto-Encoders and Dummy Anomalies for Abnormal Event Detection in Video. In Proceedings of the 2019 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Long Beach, CA, USA, 15–20 June 2019; pp. 7834–7843. [Google Scholar] [CrossRef] [Green Version]
- Zerkouk, M.; Chikhaoui, B. Spatio-Temporal Abnormal Behavior Prediction in Elderly Persons Using Deep Learning Models. Sensors 2020, 20, 2359. [Google Scholar] [CrossRef] [Green Version]
- Nath, R.K.; Thapliyal, H. Machine Learning-Based Anxiety Detection in Older Adults Using Wristban Sensors and Context Feature. SN Comput. Sci. 2021, 2, 359. [Google Scholar] [CrossRef]
- Arifoglu, D.; Bouchachia, A. Detection of Abnormal Behaviour for Dementia Sufferers using Convolutional Neural Networks. Artif. Intell. Med. 2019, 94, 88–95. [Google Scholar] [CrossRef]
- Arifoglu, D.; Bouchachia, A. Activity Recognition and Abnormal Behaviour Detection with Recurrent Neural Networks. Procedia Comput. Sci. 2017, 110, 86–93. [Google Scholar] [CrossRef]
- Hela, S.; Amel, B.; Badran, R. Early anomaly detection in smart home: A causal association rule-based approach. Artif. Intell. Med. 2018, 91, 57–71. [Google Scholar] [CrossRef]
- Eisa, S.; Moreira, A. A Behaviour Monitoring System (BMS) for Ambient Assisted Living. Sensors 2017, 17, 1946. [Google Scholar] [CrossRef] [Green Version]
- Sánchez, V.G.; Lysaker, O.M.; Skeie, N. Human behaviour modelling for welfare technology using hidden Markov models. Pattern Recognit. Lett. 2020, 137, 71–79. [Google Scholar] [CrossRef]
- Lin, B.; Diane, J.C. Analyzing Sensor-Based Individual and Population Behavior Patterns via Inverse Reinforcement Learnin. Sensors 2020, 20, 5207. [Google Scholar] [CrossRef]
- Aran, O.; Sanchez-Cortes, D.; Do, M.; Gatica-Perez, D. Anomaly Detection in Elderly Daily Behavior in Ambient Sensing Environments. In Lecture Notes in Computer Science, Proceedings of the Human Behavior Understanding, HBU 2016, Amsterdam, The Netherlands, 16 October 2016; Chetouani, M., Cohn, J., Salah, A., Eds.; Springer: Cham, Switzerland, 2016; Volume 9997, pp. 51–67. [Google Scholar] [CrossRef] [Green Version]
- Mshali, H.; Lemlouma, T.; Magoni, D. Adaptive monitoring system for e-health smart homes. Pervasive Mob. Comput. 2018, 43, 1–19. [Google Scholar] [CrossRef] [Green Version]
- Shahid, Z.K.; Saguna, S.; Åhlund, C. Detecting Anomalies in Daily Activity Routines of Older Persons in Single Resident Smart Homes: Proof-of-Concept Study. JMIR Aging 2022, 5, e28260. [Google Scholar] [CrossRef]
- Avni-Babad, D. Routine and feelings of safety, confidence, and well-being. Br. J. Psychol. 2011, 102, 223–244. [Google Scholar] [CrossRef]
- Li, C.; Yang, Q.; Wang, J.; Li, M. Efficient Mining of Gap-Constrained Subsequences and Its Various Applications. ACM Trans. Knowl. Discov. Data 2012, 6, 2. [Google Scholar] [CrossRef]
- The Daily Schedule of an in-Home Caregiver. Available online: https://www.choosecomforthome.com/the-daily-schedule-of-an-in-home-caregiver/ (accessed on 15 April 2022).
- Gary, M.W.; Yoneda, K.; Hayajneh, T. Smartphone and Smartwatch-Based Biometrics Using Activities of Daily Living. IEEE Access 2019, 7, 133190–133202. [Google Scholar] [CrossRef]
- Van Kuppevelt, C.D.; Meijer, F.; Huber, A.; van der Ploeg, S.; Georgievska, V.T.; van Hees, M. Automated deep learning on time series. SoftwareX 2020, 12, 100548. [Google Scholar] [CrossRef]
Abbreviation | Unit or Term |
---|---|
Activity i. | |
frequency of occurrence of a length of activity | |
Ratio between the timespan of an activity and the timespan of the same activity in the cluster centroid | |
Sub routine corresponding to a period of the day | |
Low and High thresholds for the variation of the timespan of an activity | |
end time of the activities in a specific period of the day | |
start time of the activities in a specific period of the day | |
distance within the cluster | |
ADL | Activities of Daily Living |
c | number of clusters |
CNN | Convolutional Neural Network |
d(ci, cj) | distance between the centroids of the two clusters, ci and cj |
d(Xi)/d(Xj) | the distances between all frequent daily activity patterns in the cluster Xi, respectively Xj, and the centroids of those clusters |
days | number of days from which the routine is extracted |
DBSCAN | Density-based spatial clustering of applications with noise |
filtredDays | Set of days containing frequent sequence of activities |
HMM | Hidden Markov models |
length | the length of some sequence of activities |
LTSM | Long Short-Term Memory |
timespan | Average duration of an activity. |
WHO | World Health Organization |
α | Percentage value that can be adjusted based on the experimental results |
Cluster of activities i | |
Davies-Bouldin Index | |
Dunn index | |
the average distance between the frequent daily activities pattern i and the other frequent patterns in the same cluster | |
the smallest average distance between the frequent pattern i and the frequent patterns in the other clusters, of which i is not part | |
Activity corresponding to clusters’ centroids | |
Routine for a day | |
activity sequence representing the baseline | |
timespan of activities for all days and all periods of the dataset | |
variable | Specifies if an activity is mandatory or not. |
Specific day period. It can be night, morning, afternoon, or evening. | |
Silhouette score | |
distance between the cluster , and the cluster |
Ref. | Method | ADL Features | Flexibility | Routine Definition | Solution Features |
---|---|---|---|---|---|
[16] | DBSCAN algorithm | Activity start time, duration | Not considered | Sequence of activities | Single routine, deviations are not considered |
[17] | FMR–AD algorithm & fuzzy rules | Activity frequency, regularity | Not considered | Sequence of activities and their frequency | Single routine, deviations detection |
[14] | Partition Around Medoids algorithm | Activity label | Not considered | Sequence of activities | A single rigid routine |
[18] | Fourier series representation combined with K-means | Activity label, activity duration | Activities time-related variability | Sequence of activities and associated durations | Three routines correspond to morning, afternoon, and night. |
[19] | Weighted kernel k-means algorithm & nominal matrix factorization method | Activity label | Not considered | Sequence of activities | A set of routines for the monitoring period |
[27] | Hidden Markov models combined with Baum–Welch algorithm and Viterbi algorithm | Activity label, location, posture of the person, activity duration | Not considered | Sequence of activities, associated durations, and locations | A single routine |
[28] | Markov Decision Process combined with relative entropy inverse reinforcement learning | Sensor’s locations, sensors activation time | Not considered | Trajectory vector extracted based on the sensor’s locations and sensors activation time | A single rigid routine represented as a trajectory vector |
[26] | Transition probability matrix | Time spent by a person in a particular room | Not allowed | State transition model where states are the home’s rooms, and the connections are the transitions | Normal mobility behavior of a person and deviations from it |
[30] | Grey model with a Markovian model | Activity frequency, activity duration | Variability related to the duration and frequency of activities | Sequence of activities, associated durations, and frequency | A single routine |
[29] | Probabilistic spatio-temporal model combined with K-means | The location of the subject and the sensor activation timespan | Not allowed | Sequence of location events, start time, end time, and location label | Two rigid behavioral patterns; Normal and deviations from it |
[31] | Shapiro-Wilk test combined with a non-parametrical statistical method | Time duration and frequency of visiting the rooms | Variability related to the duration | Activity’s duration and transitions between the rooms | Single routine |
Our solution | Deep learning, GAP-BIDE algorithm, collaborative clustering | ADL timespan, start time, end time | Variability related to Activities time, sequence gaps variability | Sequence of four sub-routines corresponding to each period of the day | A single flexible routine composed of mandatory activities, optional activities, alternative variants of activities |
Period | Time |
---|---|
Night | 00:00:00 PM–06:59:59 AM |
Morning | 07:00:00 AM–11:59:59 AM |
afternoon | 12:00:00 AM–6:59:59 PM |
Evening | 7:00:00 PM–11:59:59 PM |
Number of Clusters | Dunn Index | Davies-Bouldin Index | Distribution of Elements in Clusters |
---|---|---|---|
2 | 0.49747 | 0.50333 | Cluster 0: 11 elements; Cluster 1: 3 elements |
3 | 0.75388 | 0.47348 | Cluster 0: 3 elements; Cluster 1: 8 elements Cluster 2: 3 elements |
4 | 0.76397 | 0.37467 | Cluster 0: 8 elements; Cluster 1: 2 elements Cluster 2: 3 elements; Cluster 3: 1 element |
5 | 0.46472 | 0.457 | Cluster 0: 3 elements; Cluster 1: 4 elements Cluster 2: 4 elements; Cluster 3: 1 element Cluster 4: 2 elements |
6 | 0.46472 | 0.36311 | Cluster 0: 4 elements; Cluster 1: 4 elements Cluster 2: 2 elements; Cluster 3: 1 element Cluster 4: 2 elements; Cluster 5: 1 element |
Clustering Configuration | Routine Coverage Value |
---|---|
Collaborative Clustering (Union) | 89.63% |
K-Means | 77.44% |
Agglomerative Clustering | 88.41% |
Nr Clusters | Execution Time (s) | |
---|---|---|
Agglomerative Clustering | K-Means | |
2 | 0.01 | 1.49 |
3 | 0.02 | 1.17 |
4 | 0.02 | 1.00 |
5 | 0.03 | 1.20 |
6 | 0.02 | 1.42 |
Data Set Size (Days) | Execution Time (s) |
---|---|
400 | 1.19 |
300 | 0.62 |
200 | 0.23 |
Parameters Varied | Average Values | ||||
---|---|---|---|---|---|
Window Size | Stride | Number of Models | Accuracy | Loss | Learning Rate |
200 | 50 | 15 | 0.945 | 0.143 | 0.003 |
200 | 50 | 15 | 0.936 | 0.164 | 0.025 |
600 | 30 | 30 | 0.977 | 0.059 | 0.015 |
600 | 35 | 30 | 0.979 | 0.054 | 0.012 |
600 | 40 | 10 | 0.978 | 0.059 | 0.015 |
600 | 50 | 40 | 0.976 | 0.063 | 0.011 |
900 | 30 | 35 | 0.978 | 0.056 | 0.008 |
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations. |
© 2022 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
Chifu, V.R.; Pop, C.B.; Rancea, A.M.; Morar, A.; Cioara, T.; Antal, M.; Anghel, I. Deep Learning, Mining, and Collaborative Clustering to Identify Flexible Daily Activities Patterns. Sensors 2022, 22, 4803. https://doi.org/10.3390/s22134803
Chifu VR, Pop CB, Rancea AM, Morar A, Cioara T, Antal M, Anghel I. Deep Learning, Mining, and Collaborative Clustering to Identify Flexible Daily Activities Patterns. Sensors. 2022; 22(13):4803. https://doi.org/10.3390/s22134803
Chicago/Turabian StyleChifu, Viorica Rozina, Cristina Bianca Pop, Alexandru Miron Rancea, Andrei Morar, Tudor Cioara, Marcel Antal, and Ionut Anghel. 2022. "Deep Learning, Mining, and Collaborative Clustering to Identify Flexible Daily Activities Patterns" Sensors 22, no. 13: 4803. https://doi.org/10.3390/s22134803
APA StyleChifu, V. R., Pop, C. B., Rancea, A. M., Morar, A., Cioara, T., Antal, M., & Anghel, I. (2022). Deep Learning, Mining, and Collaborative Clustering to Identify Flexible Daily Activities Patterns. Sensors, 22(13), 4803. https://doi.org/10.3390/s22134803