Next Article in Journal
State Transition for Statistical SLAM Using Planar Features in 3D Point Clouds
Next Article in Special Issue
Enabling Efficient Communications with Resource Constrained Information Endpoints in Smart Homes
Previous Article in Journal
Using Eye Tracking to Assess Gaze Concentration in Meditation
Previous Article in Special Issue
HABITAT: An IoT Solution for Independent Elderly
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

A Context-Aware Accurate Wellness Determination (CAAWD) Model for Elderly People Using Lazy Associative Classification

Faculty of Computing and Engineering Sciences, Shaheed Zulfikar Ali Bhutto Institute of Science and Technology (SZABIST), Islamabad 44000, Pakistan
*
Author to whom correspondence should be addressed.
Sensors 2019, 19(7), 1613; https://doi.org/10.3390/s19071613
Submission received: 11 January 2019 / Revised: 4 March 2019 / Accepted: 5 March 2019 / Published: 3 April 2019
(This article belongs to the Special Issue Internet of Things for Smart Homes)

Abstract

:
Wireless Sensor Network (WSN) based smart homes are proving to be an ideal candidate to provide better healthcare facilities to elderly people in their living areas. Several currently proposed techniques have implementation and usage complexities (such as wearable devices and the charging of these devices) which make these proposed techniques less acceptable for elderly people, while the behavioral analysis based on visual techniques lacks privacy. In this paper, a context-aware accurate wellness determination (CAAWD) model for elderly people is presented, where behavior monitoring information is extracted by using simple sensor nodes attached to household objects and appliances for the analysis of daily, frequent behavior patterns of elderly people in a simple and non-obtrusive manner. A contextual data extraction algorithm (CDEA) is proposed for the generation of contextually comprehensive behavior-training instances for accurate wellness classification. The CDEA presents an activity’s spatial–temporal information along with behavioral contextual correlation aspects (such as the object/appliance of usage and sub-activities of an activity) which are vital for accurate wellness analysis and determination. As a result, the classifier is trained in a more logical manner in the context of behavior parameters which are more relevant for wellness determination. The frequent behavioral patterns are classified using the lazy associative classifier (LAC) for wellness determination. The associative nature of LAC helps to integrate spatial–temporal and related contextual attributes (provided by CDEA) of elderly behavior to generate behavior-focused classification rules. Similarly, LAC provides high accuracy with less training time of the classifier, includes minimum-support behavior patterns, and selects highly accurate classification rules for the classification of a test instance. CAAWD further introduces the ability to contextually validate the authenticity of the already classified instance by taking behavioral contextual information (of the elderly person) from the caregiver. Due to the consideration of spatial–temporal behavior contextual attributes, the use of an efficient classifier, and the ability to contextually validate the classified instances, it has been observed that the CAAWD model out-performs currently proposed techniques in terms of accuracy, precision, and f-measure.

1. Introduction

With the advancements in modern healthcare facilities, it has been observed that humans’ life expectancy is on the rise [1]. As a result, there will be increased population of elderly people in the near future. Elderly people are more prone to critical diseases (such as cardiovascular disease, arthritis, osteoporosis, hypertension, and Alzheimer’s disease to name a few) which results in limited physical activity [2].
There is a need for constant monitoring of elderly people to provide required daily healthcare and, more importantly, to counter critical emergency healthcare situations. Constant monitoring is an expensive solution in terms of money and time because a dedicated caregiver is required.
Today’s modern society is technology driven. More advanced and smarter technologies are emerging to provide optimum solutions to complex problems. There is a requirement for smart, ambient framework which provides constant monitoring of elderly people for independent living (no caregiver), accurate analysis of behavioral patterns for wellness determination, prompt emergency alarms to remote caregivers, and predictions of future healthcare requirements, as depicted in Figure 1.
An ideal and comprehensive wellness determination framework must have some vital features which ensure the compatibility of the wellness determination mechanism with elderly behavior, such as being easy to use, employing efficient monitoring technology, and having high accuracy in terms of quality. Comprehensive smart ambiance features of wellness determination are portrayed in Figure 2. Elderly people will be more comfortable when their privacy is ensured. Seamless and less complicated monitoring mechanisms will help them to perform their physical activities in a more natural and comfortable manner, thus increasing the acceptance of the smart solutions. These smart solutions should be ideally provided in the living areas of these individuals to ensure the cost-effective and smart solutions are within the reach of every needy individual. Most importantly, these smart-ambiance, wellness-determination solutions should be highly accurate to save precious lives and avoid emergency situations.
Due to these challenges, wellness determination is an active research domain. Several researchers have proposed different wellness determination techniques based on different monitoring technologies. Many researchers proposed wellness determination frameworks on the behavioral monitoring of elderly people, which are based on wearable sensors [3,4]. Wearable sensors-based proposed solutions either monitor vital parameters of the human body or behavioral patterns. Deviation in these features results in determining the wellness of elderly people [5]. Many elderly people are not comfortable wearing sensors constantly; they might forget that they are wearing sensors or forget to charge them, as they are battery operated. As a result, generally elderly people show less acceptability towards wearable sensor-based solutions [6]. Image processing is another research domain which lacks acceptability, as constant visual monitoring lacks privacy [7].
A substantial amount of research work has been done on behavioral monitoring for wellness determination of elderly people [8,9,10]. Numerous wellness classification-based techniques (models and frameworks) have been proposed. These proposed classification models and frameworks are based on artificial intelligence (AI), data mining, and statistical and machine learning-based techniques [5,8,11,12]. Bayesian classifiers have been proposed for wellness determination on behavioral monitoring [8,13]. Similarly, several models have been proposed which are based on the hidden Markov model (HMM) [5,14]. Most of these proposed solutions do not focus on the behavioral monitoring and wellness aspects of individuals, such as the correlation of an activity with its sub-activities, location of an activity, and the time and duration of the activity [15]. Less attention has been given to association mining for wellness determination by researchers, however, association mining is either employed for preprocessing [8,10,11] to analyze frequent behavioral patterns, or for wellness determination classification [12]. Association mining generates global search classification rules on given training data, which are useful in the class prediction [16,17]. However, association mining results in a huge amount of classification rules and, while in pruning phase, many useful rules are pruned. Similarly, fixed support and confidence values for classification rule generation ignores activities with fewer occurrences.
Most of the existing proposed solutions do not consider the temporal and spatial correlation of an activity for better behavioral analysis. Considering these activity parameters will help to translate elderly behavior from the real world to a digital environment for analysis. Association mining provides correlation analysis, but at the cost of a large number of association rules, which results in longer training times of classifiers. Similarly, important correlation rules are ignored in correlation analysis due to low support. In this paper, context-aware accurate wellness determination (CAAWD) is proposed, which aims to provide highly precise and accurate healthcare wellness monitoring, along with the assurance of individual privacy and acceptability (adequacy) consideration to elderly people, which is a weakness in wearable sensors-based and image processing-based wellness solutions. To achieve high classification accuracy and precision, the lazy associative classifier (LAC) technique is employed. The contributions of CAAWD are as follows:
  • Spatial–temporal and related contextual parameters correlation of activities of daily living (ADLs) for better behavioral-pattern analysis;
  • Introduction of CDEA ensures inclusion of behavioral contextual information for logical training of the classifier for accurate wellness determination;
  • Fewer high-quality associative classification rules for efficient classification;
  • Rule generation at minimum-support values to ensure that, even with fewer occurrences, training data is not ignored for useful rules;
  • Ability to contextually validate the classified instances by introducing caregiver contextual information for elderly people.
The remainder of this paper is arranged as follows: Section 2 discusses literature review on wellness determination in WSN based smart homes and ADL concept and associative classifiers; Section 3 discusses CAAWD; Section 4 presents the experimental setup and results discussion; Section 5 presents the conclusion.

2. Related Work

Wellness determination of elderly people in WSN smart homes has recently gained the attention of researchers. Several techniques, models, and frameworks have been proposed from different domains, such as statistical, machine learning, artificial intelligence (AI), and data mining techniques [5,8,11,12]. This section discusses the critical analysis (contributions and limitations) of the existing proposed solutions.
Wellness of an individual or elderly person can be determined on the basis of the (ADLs) performed [18]. The ADLs concept was introduced by Katz as an aged illness study index. ADLs patterns help one understand the daily routines of elderly people; any deviation from the pre-defined threshold values helps to analyze the wellbeing. The literature review is conceptually divided into ADLs and existing literature of wellness determination of elderly people.

2.1. Activities of Daily Living (ADLs)

ADLs are the activities which are performed by people on a daily basis as their routine activities. More importantly, these activities are the activities which are being performed without any assistance. The ADLs index is a concept introduced by Katz [18] to rank the adequacy of an individual to perform ADLs. The ADLs are associated with elderly people and patients. To measure the healthcare and monitoring requirements of an elderly person or a patient, a parameter is introduced known as the ADLs index. This ADLs index helps to determine what type of healthcare and monitoring is required.
Most of the smart homes projects and labs for elderly healthcare are designed to analyze ADLs for a better understanding of the behavioral patterns, such as Laboratoire d’Intelligence Ambiante pour la Reconnais- sance d’Activite’s (LIARA) Lab [19] and Center for Advanced Studies for Adaptive Systems (CASAS) smart home project [20], to name a few. These labs, with the help of sensors, identify ADLs of elderly people and, via WSN, ADLs data is stored in a central repository for analysis purposes.
The ADLs consist of some basic routine activities [18], such as eating, bathing, dressing, self-hygiene, walking, and continence. Different analysis models extend ADLs according to certain requirements, for example, watching TV, eating snacks, and outdoor activities to name a few, according to the experimental setup. However, the majority of the literature utilizes the same ADLs for behavior analysis purpose.
In [15] a model was proposed on spatial–temporal correlation analysis for the evaluation of complex ADLs. This model highlights the importance of analyzing ADLs on the basis of temporal and spatial correlations of the ADLs, i.e., where and when these ADLs are performed. Temporal and spatial correlations help to analyze the behavioral patterns of elderly people. An ADLs activity is composed of several sub-activities; sequential association and correlation of sub-activities within an activity leads to better behavioral-pattern recognition of an elderly person. Ideally, the features shown in Figure 3 are useful to understand ADLs as behavior-related contextual information of an individual for wellness determination.

2.2. Elderly People Wellness Determination and ADLs Detection Classification

In this section, existing proposed models and frameworks are critically reviewed to understand their strengths and limitations.
Supervised probabilistic models are proposed [5,11,12,14,21,22], either for wellness determination or activity discovery of the elderly in smart environments. These proposed solutions are based on the Markovian model and the hidden Markov model (HMM). Markovian and HMM models have the limitation of learning a long range of dependencies in sequence [23]. ADLs are composed of sub-activities and individuals have specific sequential patterns of conducting activities. As a result, Markovian- and HMM-based proposed systems might not give the desired accuracy in analyzing and classifying long, sequential behavioral activities.
Bayesian-based classifiers are employed for wellness determination and activity detection [8,24,25]. In [8], the author analyzed elderly people’s behavior using electric appliance’s power consumption patterns. The behavior of an individual was observed from the power consumption patterns in their living area. Behavioral activities were identified and frequent patterns were discovered regarding the power consumption data. However, electric power consumption patterns do not cover many ADLs, such as toileting, walking, and so on. Similarly, another Bayesian classifier-based solution was proposed in [24], where frequent pattern-mining for behavioral activity analysis was used as preprocessing for the Bayesian classifier. However, Bayesian classifiers have an inability to deal with the attribute dependence [26] and when considering behavioral analysis, ADLs attribute dependence is vital.
Formal concept analysis (FCA) was employed for elderly wellness determination and activity detection in smart ambiance, respectively [27]. Behavioral analysis of an individual was based on the correlation of a specific activity with the sequence of sub-activities in wellness determination and activity detection. However, the concept lattice size can be exponentially large while conducting such analyses, as reported in [28]. Similarly, in concept generation, there is no technical way to be sure that all unique concepts are generated.
An artificial neural network (ANN)-based model was proposed for classification of wellness determination [29]. Frequent pattern-mining was employed to determine the behavioral patterns of an elderly person as preprocessing to an ANN classifier. However, ANN-based classifiers are difficult to retrain, as individual behavior changes with different factors (such as events, weather change, and so on); accommodating such behavior changes would be difficult in such proposed techniques.
In [10], Finite Automata (FA) was proposed to find the disease evolution by monitoring the changing behavior of a patient. Frequent pattern-mining was used to identify frequent behavioral patterns to form Extended Finite Automata (EFA) for activity recognition. However, the conditions of state transitions are fixed. Any slight change in behavior can lead to a false alarm of the wellness of an individual.
Another association rule mining-based ADLs determination-classification model for elderly people was proposed in [16]. This proposed model claimed to determine complex ADLs with high accuracy.
In fact, associative classifiers have not received much attention in WSN-based smart homes wellness determination, due to their tendency to generate a large number of rules. However, associative classifiers have been proved to be potential candidates in other healthcare domains for their high accuracy, as compared to other classifiers [30,31]. Associative classifiers provide high accuracy; during testing phases a global best approach is followed to identify the appropriate classification rule for the test instance, while other classifiers (such as decision trees) follow a greedy approach (local best), as reported in [17]. However, associative classifiers take a large amount of training time, as there is a large number of association rules. Another limitation associated with associative classifiers is that, in the pruning phase, many useful, infrequently occurring rules are pruned [17,32], as they don’t fulfil the minimum support (fixed parameter) criteria.

2.3. Associative Classifiers

Data classification consists of two phases, i.e., the training phase, where the classifier is built using training instances and the testing phase, where test instances are classified. Most of the classifiers adopt the eager learning approach, where a classification model is constructed on the provided dataset (training data) and test instances or tuples are classified using the constructed model [32]. Another approach is lazy learning, which exhibits the following three characteristics:
  • Deferring the training phase until the request is made, i.e., test instance;
  • Classification of the instance is based on the specific training part of the whole dataset;
  • Intermediate results and constructed rules projections are discarded.
Due to a global best approach for the identification of classification rules, associative classifiers have shown high accuracy and precision in different domains, such as heart disease prediction [30], image processing classification [31], and complex ADL detection in smart environments [16]. Similarly, in associative classifiers, classification rules are presented in a simple IF–THEN (i.e., IF A THEN B) manner and specific rules can be updated easily without retraining of the whole model—a change in behavior of an elderly person can also be updated easily. These results inspired us to implement associative classifiers for wellness determination of elderly people in smart environments.
Associative classifiers also work in two phases like other eager learning classifiers. The first phase consists of the training part, where the classifier is trained on the extracted correlated rules based on threshold parameter (support and confidence). A large number of classification rules are extracted by using any association-mining algorithm such as Apriori, FP-growth, or any other algorithm. The training phase is not complete until the pruning of a large set of rules has been done. Various pruning techniques include statistical technique (Chi-square) χ2 [33], database coverage [34], pessimistic error estimation [35], lazy pruning [17], conflicting rules, and redundant rules. The next phase is the testing phase, where test instances are classified.
However, there are a couple of weaknesses in associative classifiers, such as a large number of association rule generations for the training of the classifiers as reported in [17]. Another weakness is the fixed support parameter for the identification of highly correlated rules. Support is not a potential approach [32], as important instances of low support are ignored. Similarly, in the pruning phase many useful rules are pruned, which affects the overall classification accuracy.

2.3.1. Lazy Associative Classifiers (LAC)

LAC was proposed in [17]. It has two-phase training and testing. In the first phase, as an associative classifier, it needs to extract the association rules by using an association mining algorithm. LAC uses Frequent Pattern (FP) Growth association mining algorithm due to its advantages over other similar algorithms. The extracted rules are stored in an FP-tree for efficient retrieval when needed. Rule pruning is not done, as it follows the lazy approach. In the second part, as the test instance arrives at the classifiers for the classification, projections of classification rules are made on the basis of the attributes on test instances from the already derived association rules. Lazy pruning is carried out for these projected rules for minimum pruning of classification rules to avoid the pruning of useful rules. These rules are partitioned into three sets [32]:
  • Used rules (UD): These are the rules from the training data instances which have classified the test instance at least once.
  • Sparse rules (SD): These are the rules which are not used for the classification of any test instance but later turn out to be useful for classification.
  • Wrong rules (WD): These are the rules which have incorrectly classified the training instances. These rules are pruned.
Ranking of the used and sparse rules is done based on the information gain value [32]. Test instance is classified based on the rules having the highest information gain.

3. Context-Aware Accurate Wellness Determination Model

The CAAWD aims to provide accurate wellness determination of the elderly living in smart environments. The core feature of the CAAWD is quality, i.e., to have more accurate wellness determination classification of the elderly people. Wellness determination accuracy of the proposed model is improved by converting raw behavior monitoring sensor data into a more meaningful way to ensure the proper training of the model. Ambient information, such as spatial–temporal behavior attributes, is introduced in the CAAWD to define the behavior of an individual in better manner. CAAWD training was done in a comprehensive manner by including low-occurrence behavior routine instances, as these instances are the part of behavior routine. Additionally, classified instances are further validated by the contextual information provided by the caregiver.

3.1. Formal Definition of the Concepts in CAAWD Model

The CAAWD is based on the LAC. Formal definitions of the concepts are presented for better understanding of the overall working of CAAWD. CAAWD utilizes the concept of temporal correlation of activities of daily living (ADLs) as proposed in [15]. The definitions of the concepts and correlation rules are as follow:
Definition 1.
The data of interest D is defined by k attributes A1, A2, …, Ak, temporal value T and class attribute C, where temporal value T is a set of discretized time value of activities.
Definition 2.
The training tuple TRD belongs to D, TRD ϵ D, whose class attribute value is known.
Definition 3.
The testing tuple TSD belongs to D, TSD ϵ D, whose class attribute value is unknown.
Definition 4.
Association rule is defined as X → Y, where X is antecedent and Y is consequent.
Definition 5.
Class association rule (CAR) is defined as A → C, where A is a single feature attribute i.e., A ϵ D (A1, A2, …, Ak) and T, Where C is a class label.
Definition 6.
The relative support (ϴ) of the CAR (A → C) is calculated as (X C) in D.
Definition 7.
A CAR is a frequent pattern if
ϴ = | X | | D | ϴ ,
where ϴ is the minimum support.
Definition 8.
Entropy H(A) of pattern defined by k values is defined as
H ( A ) =   i = 1 k P ( A ) i . log 2 ( P ( A ) i ) ,
where P is representing the probability of an event.
Definition 9.
Information gain (IG) of a CAR. CAR is represented by A which is a random single feature (attribute) from D i.e., A ϵ D (A1, A2, …, Ak)
I G ( C A ) = H ( C ) H ( C A ) ,
where (C) is representing class feature (attribute), H(C) is the entropy and H(C/A) is conditional entropy.
Definition 10.
Used rule set (UD) is a set of all frequent CARs, which are used at least once for the classification.
Definition 11.
Sparse rule set (SD) is a set of all frequent CARs, which are not used for the classification of any training data instance, but become useful to classify test instance data, which used rules have not.
Definition 12.
Wrong rule set (WD) is a set of all frequent CARs, which have incorrectly classified the training instances.
Definition 13.
Projected training set (PTS) consists of (UD), (SD), and (WD); frequent CARs are ranked on the basis of ascending IG values in these subsets.
Definition 14.
ABi is an Abnormal classified instance by the data classification module. ABi classification is based on the training of the behavior routine of an individual. Where ACT represents an activity and Sub_ACT represents sub activity.
ABi = {Start_time, Object, Location, Sub_ACT, ACT, Duration, Class: Abnormal}i
Definition 15.
Cj is a context defined by the caregiver for a particular elderly person. Cj ϵ ACTj, ACTj is a predefined activity performed by an elderly person.
Cj = {Frequency_ACTj_Range, Duration_ACTj_Range, Start_time_ACTj_Range}
Frequency_ACTj_Range defines the range of how frequently an activity is being performed, Duration_ACTj_Range defines the range of duration (in seconds) of an activity, and Start_time_ACTj_Range is the range of the start time of an activity.
The conceptual design of the CAAWD is depicted in Figure 4. It consists of following modules:
  • Contextual data extraction (CDE) module;
  • Classification (LAC) module;
  • Behavioral analysis (BA) module;
  • Caregiver alarm module.
A common smart home environment setup consists [12] of binary sensors installed in household objects and daily-used appliances. These sensors are installed to analyze the behavioral patterns of elderly people. These sensors send ON/OFF states along with main sensor identities (SAID) and temporal values with the help of wireless sensor network (WSN) to the central server for further analysis. These sensor states help to analyze the ADLs of the elderly person living independently in the smart environment.
As discussed earlier in Section 2.1, a behavior pattern of an individual has contextual parameters, such as sub-activities and temporal and location correlation (ambient contextual information) with the behavior pattern. These behavioral contextual parameters have vital significance for the inference of frequent behavioral patterns of an individual. Considering the significance, ambient contextual information is introduced for better learning of the behavior routines of an elderly person. Spatial–temporal contextual information correlation with other contextual parameters (e.g., duration, object used, sub-activities) of the performed activity is of greater importance while learning and classifying an elderly behavior for wellness determination. This is a major contribution of CAAWD, which improves the wellness determination accuracy to a greater extent.

3.2. Contextual Data Extraction (CDE) Module

Sensor data is transmitted to the server in raw form i.e., 0 s and 1 s, to represent ON and OFF states of the appliances and household objects along the SID. CDE converts these binary values into labeled behavior instances so that correlation mining can be applied at the server. For example, an activity of cooking meal by an elderly woman is taking place in the kitchen, as shown in Figure 5. From her cooking activity, the following information will be extracted by using CDE for context awareness:
  • Start time of the activity;
  • Object used for the activity;
  • Location of the activity;
  • Sub-activity;
  • Duration of an activity;
  • Activity;
  • Class (normal/Abnormal).
This main activity will be accomplished by the set of multiple sub-activities, such as utensil selection, cutting or chopping of food, turning on stove, etc. The sequence of these sub-activities in an ADL is important to understand the behavioral pattern of an individual. The start and end times of each sub-activity are represented by a sensor or multiple sensors activation (ON) and deactivation (OFF). The time spent in each state (in case of overlapped activities), is recorded in 24 h time format.
The location of an ADL is identified from the SAID. Analysis server has mapping of all the sensors according to the installation location; a specific SAID represents a specific location and ADL. Sub-activities are also identified with the help of sub-activity sensor ID (SSID) at the server. Sub-activities will only be recognized at the server if SAID is active (ON), thus behavior patterns (ADLs) of an elderly person can be uniquely analyzed with respect to sub-activities at the server. The duration attribute is only considered for the main activity (ADL) not for the sub-activity. For CAAWD, basic ADLs are considered, which are discussed in Section 4.
Contextual data was extracted and presented in Table 1 as dataset instances for the discussed example of Figure 5.
A contextual data extraction algorithm (CDEA) is proposed for generating contextually comprehensive training instances for better training of classifiers and hence more accurate wellness classification.
Algorithm 1 Contextual data extraction algorithm (CDEA)
Input: Sensor identities (SAID, SSID, ACTST, ACTET), where SAID is the main activity, SSID is the sub-activity identities, ACTST and ACTET are the activation and deactivation time of SAID (representing a main activity) respectively.
Output: Comprehensive training tuple (Time ^ Location ^ ACT ^ S_ACT ^ Dur_ACT → Class)
1: IF (SAID== ON state)
2:  IF (SAID == i)
3:     Location = Loci ^ Activity = ACTi ^ Object = Obji
4:  IF (SSID == j)
5:     Sub_Act = S_ACTj
6: IF (SAID == OFF state)
7:        Dur_ACTi = |ACTET − ACTST|
8:    ELSE  Dur_ACTi = undetermined
9:  Time = ACTST
10: RETURN Training tuple (TRD)
CDEA has prior knowledge of all the sensors identities and their locations (spatial contextual information) of installation. When a sensor senses an activity, it transmits the ON state to the sink along its SAID. The CDEA at the sink identifies the main activity based on SAID (as sensors are installed in specific household objects or appliances, which are representing specific activities) and the activity location. Behavior routine patterns of an elderly person are signified with the help of contextual information (location and object of usage) of an activity for better training of the classifier. As discussed earlier, it is important to correlate sub-activities with main activities for better training of the classifier. For this purpose, sensors representing main activities (SAID) are differentiated from sensors representing sub-activities (SSID). The duration of a main activity is calculated from the activation time (ACTST) until the deactivation time (ACTET) of the SAID. The duration of an activity will remain “undetermined” until deactivation of the SAID is observed. Finally, temporal contextual information (activity start time) is introduced in the training instance. CDEA will return a comprehensive training instance (TRD) that defines an activity wellness pattern in a logical manner. CDEA generates comprehensive training instances, as these instances are representing the contextual behavior patterns with respect to spatial information (location), temporal information (time), duration of an activity, object used for an activity, and correlation of main activity with sub-activity.
CDEA is proposed, keeping in mind the working mechanism of associative classifiers. The classifier will generate frequent patterns in a more understandable manner, which will not only be used for wellness determination but can also be utilized in behavioral analysis by an expert or caregiver. Similarly, the introduction of behavioral contextual information by CDEA is ideal while considering LAC projection-based classification, where vital contextual information is introduced as wellness parameters/attributes. When a test instance arrives for classification with any abnormal attributes (e.g., abnormal activity time, longer or shorter duration of an activity, out of sequence activities or any other), classification rules will be projected according to behavior attributes and the classifier will determine the wellness based on these contextually defined rules.

3.3. Classification Module

This section explains the wellness determination classification process. For CAAWD, LAC is preferred as it gives better accuracy and precision than its other counterparts as reported in [23,31], but it has never been proposed and evaluated for wellness determination of elderly people living in smart environments. To the best of our knowledge, it was proposed and evaluated for the first time for the wellness determination of elderly people in WSN smart homes. This section also discusses the relation of information gain and low-support value for better CAR generation for the training of LAC and class prediction.
Association mining was performed on the preprocessed and prepared comprehensive training dataset D based on defined threshold ϴ′. As a result of association mining, a CARs dataset was generated and stored as shown in Figure 4 (step 4). CARs were the set of frequent behavior patterns of an elderly person, for example, an elderly person’s frequent sleeping pattern concerns them going to sleep at around 22:30 h. This pattern would be considered as a CAR when a test instance arrives to determine whether it is a normal or abnormal test pattern. The CAR dataset is partitioned in to UD, WD, and SD, as discussed in Section 2.3.1. Table 2 represents sample CARs to understand the significance of CDEA.
As the TSD test instance arrives at the classifier, the classifier requests (based on the attributes of TSD) PTS to the database D where CARs are stored, as shown in Figure 4 (step 6 and 7). On reply of PTS, PTS contains UD, i.e., used CARs dataset, SD, i.e., sparse CARs dataset, and WD, i.e., wrong CARs dataset. WD is pruned based on the lazy pruning techniques. An important point to consider is that projected CARs will have those rules which have test instance attributes, thus a more concise set of rules. CARs in UD and SD are ranked on the basis of information gain (IG). The test instance will be classified on the basis of the highest IG of a CAR from the UD, or if required from the SD. LAC pseudocode is presented as:
Algorithm 2 LAC
Input: Set of Rule Set of CARs (D) and set of test instance (TSD)
Output: Classified instance
  1: D (set of RuleSet of CARs)
  2:  TSD (set of Test instance)
  3:  ti ϵ TSD
  4:  Let PTS be the projection of D based on the features of ti
  5:  (UD||SD) ϵ PTS//, where UD is the set of used rules and SD is the set of sparse rules
  6:  Sort CARs based on the information gain of PTS
  7:  Classify the ti based on the highest information gain from PTS
To achieve better accuracy and precision of the classifier, CARs ranking is based on IG. Mathematical proof is presented to understand the relationship of IG with ϴ or a mined CAR from [36].
Let a pattern, i.e., CAR, be defined by a single feature A. The IG of this CAR defined by A is defined in Equation (3) in Section 4.1.
We need to limit the IG and H(C/A) functions by defining the upper and lower bounds. Let IG (C/A)UP be the upper boundary of information gain of the pattern and H(C/A)LOW be the lower boundary of conditional entropy.
I G ( C A ) u p = H ( C ) H l o w ( C A )
The support of pattern CAR (by a random feature A) is defined by ϴ. H(C/A)LOW is the conditional probability, which can be defined with the help of Definition 10. For simplification, certain assumptions are considered. These assumptions are: A ϵ {0,1} and C is the class attribute which is binary, so C ϵ {0,1}. Let P(c = 1/a = 1) = q, P(c = 1) = p, and P(a = 1) = ϴ . Where p and q are variables, then
( C / A ) = a { 0 , 1 } P ( a )   . c { 0 , 1 } P ( c a ) log P ( c a ) ,
H ( C / A ) = ϴ   q   l o g   ( q ) ϴ ( 1 q ) log ( 1 q ) + ( ϴ q p ) log p ϴ q 1 ϴ + ( ϴ ( 1 q ) ( 1 p ) ) log ( 1 p )   ϴ ( 1 q ) 1 ϴ .
Taking the partial derivative H(C/A)LOW with respect to ϴ ,
H ( C A ) q = 1 ϴ = log p ϴ 1 ϴ p 1 1 ϴ 1 p 1 ϴ = log p 1 1 ϴ log 1 0 .
This mathematical analysis discusses the relationship of information gain (IG) with the support ( ϴ ) . The larger the value of H(C/A)LOW, the smaller the value of ϴ and (IG). Thus, the low-frequency patterns are bound by small value of (IG) and ϴ . The minimum value of ϴ ensures the inclusion of low-frequency patterns for greater importance for the higher accuracy and precision of the classification.
CDEA’s comprehensive training instances (CARs) ensure the inclusion of vital contextual information for wellness determination by the classifier. Projection based classification of LAC along with CDEA helps CAAWD to achieve higher wellness accuracy. Wellness determination based on the contextual behavior information is highlighted in CAAWD for better accuracy.

3.4. Behavior Analysis (BA) Module

Test instances classified as “normal” are provided to the caregiver; abnormal-classified (ABi) cases will be provided as input to the “behavior analysis” module, according to Definition 14. This module analyzes ABi based on the contextual information Cj provided by the caregiver, according to Definition 15. Based on the analysis, abnormal-classified instances will finally be observed as normal or abnormal. The classifier can classify a given test instance as abnormal but contextually it can be normal, or vice versa. For example, a CAR based on the behavior routine and a test instance is shown in Table 3 and Table 4.
According to the classifier generated CAR, this test instance would be considered as an abnormal activity, according to the provided training data. The contextual information in the behavior analysis module would help to correct the test instance from abnormal to normal, as this contextual information is not part of the regular behavior routine, but recommended by the caregiver/expert. The caregiver defines the context according to Definition 15 for each activity. The proposed algorithm (context awareness (CA)) is presented below.
Algorithm 3 Context Awareness (CA)
Input: Abnormal classified instance (ABi) and context (Cj)
Output: Context aware classified instance (CACI)
1:
ABi = {Start_timei, Objecti, Locationi, Sub_ACTi, ACTi, Durationi, Class: Abnormal}//Definition 14
2:
 Cj = {Frequency_ACTj_Range, Duration_ACTj_Range, Start_time_ACTj_Range}// Definition 15
3:
IF (ACT == ACTi)
4:
   Frequency_ACTi = Frequency_ACTi ++
5:
IF (DurationiϵDuration_ACTj_Range AND Start_timeiϵStart_time_ACTj_Range AND Frequency_ACTiϵFrequency_ACTj_Range)
6:
             Class = Normal
7:
        ELSE Class = Abnormal
The abnormally classified instance is analyzed by the proposed algorithm (CA). According to Definition 15, behavioral context is provided by the caregiver with respect to frequency, start time, and duration of an activity. CA will check the abnormally classified instance with respect to these three defined pieces of contextual information (i.e., frequency, duration and start time of main activity) using (AND) logic. If an abnormally classified instance violates any contextual information it will remain as abnormal, otherwise it will be made normal. This is another major contribution of the CAAWD, as all classification models use training data for classification, however, in such application areas (such as healthcare and wellness determination) requirements change with the passage of time and training data is not sufficient for accurate wellness determination.

3.5. Caregiver Alarm Module

A remote caregiver will be continuously monitoring the wellness of an elderly person and, in case of abnormal classified activity, an alarm will be generated and the caregiver will be notified of the description of the abnormal behavior, such as long sleep durations, the usual behavioral pattern, the stationary position of an individual, and any activities being performed in abnormal locations (for example, sleeping in the living room). Temporal attributes of an observed behavior pattern helps in the identification of abnormal behavior. If an elderly person is in the habit of taking a nap on the sofa (living room) in the afternoon (15:30 to 16:45), this behavior pattern will be observed in the frequent behavior patterns and will be treated as a CAR. Supposing the same elderly person is sleeping on the sofa (living room) at 23:40 to 4:30, this pattern will deviate temporally from the frequent pattern and result in the abnormality. Such information will be sent to the remote caregiver for a better understanding of the elderly person’s health situation; this information will be significant for the caregiver to suggest the type of medical assistance and services required before any critical emergency situation can occur. CAAWD analyzes the frequent behavior routine patterns of an elderly person and determines the wellness.

4. Experimentation

In this section of dataset descriptions, the evaluation of the CAAWD and comparison of the CAAWD with the exiting proposed models and techniques has been conducted.

4.1. Ordonez’s ADL Dataset

This dataset [12] consists of ten individuals performing ADLs in a similar four room smart home environment for fourteen days. These smart environments are equipped with binary sensors for the behavioral monitoring of the individual. The description of ADLs and sensors for the two subjects is given in Table 5.

4.2. Evaluation Metric

This subsection explains the selected parameters for the evaluation of the CAAWD. As discussed earlier, the efficacy of the CAAWD is based on how accurate the wellness of the elderly can be determined. Wellness determination has been evaluated for accuracy, precision, and f-measure metrics. The CAAWD handles the binary classification of normal or abnormal behavior of the elderly person. Training instances are balanced by using class balancing preprocessing techniques.
Accuracy explains the ratio of correctly predicted instances over the total number of the instances that are evaluated by the classifier. Mathematically, accuracy is explained in Equation (8).
A c c u r a c y = T P + T N T P + T N + F P + F N
The f-measure represents the weighted average of the precision and recall metrics. Mathematically, the f-measure is explained in Equation (9).
F M e a s u r e = 2 × P r e c i s i o n   ×   R e c a l l P r e c i s i o n + R e c a l l
Precision and recall are mathematically defined in Equations (10) and (11), respectively.
P r e c i s i o n = T P   T P + F P ,
R e c a l l = T P T P + F N .

4.3. Experimental Setup

This section describes the experimental setup adopted in the current article. In this research article, the dataset is utilized for the experimentation, as discussed earlier. The proposed algorithm CDEA, LAC, and CA have been implemented in JAVA programming language over the computer system, which serves as the analysis server (CAAWD). Microsoft Structured Query Language (SQL) database is used for storing the original unprocessed dataset and training dataset D, including CARs. Dataset instances are provided to the CDEA to produce contextually comprehensive training instances; these training instances are stored in the database (D). LAC utilizes these training instances for the generation of CARs, as discussed earlier. Similarly, contextual information provided by the caregiver is also stored in the database; 10-fold cross validation has been adopted for the experiment evaluation of the CAAWD. The results are discussed in a later section.

4.4. Results and Analysis

The CAAWD has been evaluated on accuracy, precision, recall, and f-measure metric against existing proposed techniques [5,37]. The existing proposed techniques [5,37] have utilized datasets [12], however [5] has been evaluated on accuracy, while [37] has been evaluated on f-measure.
In Figure 6, wellness determination accuracies of ten individuals/subjects (Ordonez’s dataset) have been determined by utilizing CAAWD and compared against the existing proposed technique [5]. It has been observed that CAAWD is performing better in nine out of ten subjects (i.e., individuals) referred as Sub in Figure 6, due to its associative approach in classification rules generation and global search for the classification. Introduction of ambient contextual information (time and location) and activity contextual information (duration, object, and sub-activity) improves the wellness determination learning ability of the classifier in a more logical manner. CDEA and LAC enhance the accuracies over the power of association mining of an activity’s contextual information. The comprehensive training set preparation by the CDEA improves overall wellness determination over the inclusion of low-support training instances and the introduction of strong associated activity parameters-based CARs.
In Figure 7, the wellness determination is evaluated in terms of f-measure. For performance evaluation of CAAWD, the f-measure was determined and compared against the f-measure value observed in [37]. In [37], only one individual-A (Ordonez dataset) f-measure was determined. F-measure considers both precision and recall evaluation metrics. CAAWD performance has been evaluated with and without CDEA in Figure 8.
CAAWD determines strong associations between spatial–temporal and other activity contextual parameters by using CDEA. These associations help in the generation of better classification rules. Inclusion of contextual information (by CDEA) ideally fits in with the working mechanism of LAC. The lazy approach uses three sets of rules, as discussed in Section 3.1; with the large number of association classification rules, projection of test instance attributes yield more accurate and highly correlated wellness determination classification rules. As a result, we can observe better accuracy while CAAWD utilizes CDEA.
In Table 6, classification parameters (precision, recall, and f-measure) are presented for each individual.
For the context aware validation, we have generated 2000 behavior anomalies for each elderly person and experimented with CAAWD for the proposed behavior analysis (BA) module validation. Of these 2000 anomalies, 1000 are “normal” and 1000 are “abnormal”. Out of 1000 “abnormal” activities, 500 are contextually “normal” and 500 are contextually “abnormal”. Table 7 represents the possible behavior anomaly examples and possible reasons.
The LAC classifier classifies these generated instances for ten subjects as normal/abnormal and is represented as in Table 8.
For validation of the behavioral analysis (BA) module, only abnormally classified instances are considered and the following contextual information has been utilized, as shown in Table 9.
The following results of ten subjects have been observed. Their accuracy, precision, recall, and f-measure values were calculated and are presented in Table 10. Table 11 presents the comparison of the weighted (accuracy, precision, recall, and f-measure) values of CAAWD and the existing proposed technique [5].
It has been observed that the BA module has successfully introduced contextual information and, with the analysis of each abnormal instance, it has classified with higher accuracy according to the provided contextual information. It has also been observed that accuracy has fallen due to the violation of contextual conditions provided for validation. The weighted accuracy and precision of the technique proposed in [5] is observed as 95.1% and 94.9%. We have observed promising results, as CAAWD has successfully outperformed the weighted accuracy and precision of the technique proposed in [5], as presented in Table 10.
One of the inherited limitations of the associative classifiers is that associative classifiers take longer to build a classification model. LAC has been analyzed with respect to the time taken to build the classification model (seconds) in Table 11. These experiments have been conducted on a core i5 processor and a 4 GB RAM computer system on Ordonez’s dataset. The average time to build a model (seconds) is presented in Table 12.
It is observed that LAC has a shorter classification model building time than WAC (associative classifier), but is longer than Naïve Bayesian and C 4.5, due to its lazy classification approach.

4.5. Discussion

It has been observed that CAAWD performs better in accuracy, precision, recall, and f-measure by utilizing dataset [12], when compared against the existing proposed techniques. However, CAAWD needs to be analyzed in a real smart home environment. CAAWD is based on location specific activity; this limitation can be eliminated by utilizing wearable sensors which will help in identifying the other ADLs, however, such datasets should be provided for further investigation. LAC’s model training time is better than other associative classifiers because of its lazy classification approach, however, other classification models, such as C 4.5 and Naïve Bayesian, have better training time than LAC. CAAWD determines the wellness of an elderly person using behavior pattern analysis; CAAWD needs to be further investigated in several contextual scenarios, such as weather change, web usage, and the medical vital parameters of an elderly person. Similarly, outdoor monitoring of elderly people needs to be integrated for a comprehensive wellness determination.

5. Conclusions

In this research article, a model for accurate wellness determination of elderly people living alone in smart homes was proposed. The CAAWD aims to provide healthcare monitoring of elderly people, along with the prime object of higher wellness determination classification accuracy and precision for better healthcare. Activities of daily living (ADLs) are monitored via WSN to understand the normal and abnormal behavioral patterns of an individual living in a smart home environment. The contextual data extraction (CDE) module was introduced in CAAWD to highlight the significance of a behavior’s spatial–temporal information (time and location), along with activity associated contextual information (duration, object, and sub-activity) for wellness determination. CDEA generates comprehensive behavior training instances for better training of the classifier; wellness determination is based on significant wellness contextual parameters (time, location, duration, object, and sub-activity). CAAWD employs the lazy associative classifier (LAC) for the first time for the wellness determination of elderly people. The association mining process in LAC generates highly correlated class association rules (CARs). The lazy approach ensures less pruning of useful CARs and the introduction of minimum support behavior patterns. Based on normal and abnormal behavioral patterns, wellness is determined by CARs. CAAWD’s behavior analysis module further analyzes the abnormally classified instances of the contextual information provided by the caregiver, as classification models are trained on the limited provided information and the behavior of individuals changes with time and healthcare requirements. Upon abnormal classification of a behavioral pattern, an alarm is generated to the remote caregiver to avoid emergency situations. CAAWD is evaluated over a benchmark dataset and compared with existing proposed techniques. It has been observed that CAAWD outperformed the compared techniques over the dataset in terms of accuracy, precision, and f-measure.
The current study could be extended to accommodate the changing behavioral patterns of elderly people with extrinsic contextual information, such as caregiver input, emotions, and important events, as future directions for the existing model.

Author Contributions

Conceptualization, A.M. and F.S.U., methodology: A.M. and F.S.U.; resources: F.S.U.; software: F.S.U.; supervision: A.M.; data curation, F.S.U.; writing—original draft preparation, F.S.U.; validation: A.M. and F.S.U.; writing—review and editing: A.M. and F.S.U.

Funding

This research received no external funding.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. U.N.O. Good Health and Wellbeing and Why It Matters. Available online: http://www.un.org/sustainabledevelopment/health/ (accessed on 13 October 2017).
  2. Der Wiel, A.B.V.; Gussekloo, J.; De Craen, A.J.; Van Exel, E.; Bloem, B.R.; Westendorp, R.G. Common chronic diseases and general impairments as determinants of walking disability in the oldest-old population. J. Am. Geriatr. Soc. 2002, 50, 1405–1410. [Google Scholar] [CrossRef]
  3. Pires, P.; Mendes, L.; Mendes, J.; Rodrigues, R.; Pereira, A. Integrated e-healthcare system for elderly support. Cogn. Comput. 2016, 8, 368–384. [Google Scholar] [CrossRef]
  4. Healey, J.; Logan, B. Wearable wellness monitoring using ecg and accelerometer data. In Proceedings of the Ninth IEEE International Symposium on Wearable Computers, Osaka, Japan, 18–21 October 2005; pp. 220–221. [Google Scholar]
  5. Forkan, A.R.M.; Khalil, I.; Tari, Z.; Foufou, S.; Bouras, A. A context-aware approach for long-term behavioural change detection and abnormality prediction in ambient assisted living. Pattern Recognit. 2015, 48, 628–641. [Google Scholar] [CrossRef]
  6. Steele, R.; Lo, A.; Secombe, C.; Wong, Y.K. Elderly persons’ perception and acceptance of using wireless sensor networks to assist healthcare. Int. J. Med. Inform. 2009, 78, 788–801. [Google Scholar] [CrossRef] [PubMed]
  7. Wang, J.; Zhang, Z.; Li, B.; Lee, S.; Sherratt, R. An enhanced fall detection system for elderly person monitoring using consumer home networks. IEEE Trans. Consum. Electron. 2014, 60, 23–29. [Google Scholar] [CrossRef]
  8. Yassine, A.; Singh, S.; Alamri, A. Mining Human Activity Patterns from Smart Home Big Data for Health Care Applications. IEEE Access 2017, 5, 13131–13141. [Google Scholar] [CrossRef]
  9. Suryadevara, N.K.; Mukhopadhyay, S.C. Determining wellness through an ambient assisted living environment. IEEE Intell. Syst. 2014, 29, 30–37. [Google Scholar] [CrossRef]
  10. Saives, J.; Pianon, C.; Faraut, G. Activity discovery and detection of behavioral deviations of an inhabitant from binary sensors. IEEE Trans. Autom. Sci. Eng. 2015, 12, 1211–1224. [Google Scholar] [CrossRef]
  11. Eisa, S.; Moreira, A. A Behaviour Monitoring System (BMS) for Ambient Assisted Living. Sensors 2017, 17, 1946. [Google Scholar] [CrossRef]
  12. Ordónez, F.J.; de Toledo, P.; Sanchis, A. Activity recognition using hybrid generative/discriminative models on home environments using binary sensors. Sensors 2013, 13, 5460–5477. [Google Scholar] [CrossRef]
  13. Marufuzzaman, M.; Reaz, M.; Ali, M.; Rahman, L. A Time Series Based Sequence Prediction Algorithm to Detect Activities of Daily Living in Smart Home. Methods Inf. Med. 2015, 54, 262–270. [Google Scholar] [PubMed]
  14. Chen, Y.-C.; Peng, W.-C.; Huang, J.-L.; Lee, W.-C. Significant correlation pattern mining in smart homes. ACM Trans. Intell. Syst. Technol. 2015, 6, 35. [Google Scholar] [CrossRef]
  15. Ujager, F.S.; Mahmood, A.; Khatoon, S.; Imran, M.; Abdullah, U. Evaluation of Wellness Detection Techniques using Complex Activities Association for Smart Home Ambient. Int. J. Adv. Comput. Sci. Appl. 2016, 7, 243–253. [Google Scholar]
  16. Wen, J.; Zhong, M.; Wang, Z. Activity recognition with weighted frequent patterns mining in smart environments. Expert Syst. Appl. 2015, 42, 6423–6432. [Google Scholar] [CrossRef]
  17. Veloso, A.; Meira, W., Jr.; Zaki, M.J. Lazy associative classification. In Proceedings of the Sixth International Conference on Data Mining, ICDM’06, Hong Kong, China, 18–22 December 2006. [Google Scholar]
  18. Katz, S. Studies of illness in the aged. The index of ADL: A standardized measure of biological and psychosocial function. JAMA 1963, 185, 914–919. [Google Scholar] [CrossRef] [PubMed]
  19. Laboratoire d’Intelligence Ambiante pour la Reconnais- sance d’Activite’s (LIARA) Lab. Available online: http://www.uqac.ca/liara/index.htm (accessed on 11 October 2017). (In French).
  20. Center for Advanced Studies for Adaptive Systems (CASAS) Smart Home Project. Available online: http://ailab.wsu.edu/casas/ (accessed on 11 October 2017).
  21. Suryadevara, N.K.; Mukhopadhyay, S.C.; Wang, R.; Rayudu, R.K. Forecasting the behavior of an elderly using wireless sensors data in a smart home. Eng. Appl. Artif. Intell. 2013, 26, 2641–2652. [Google Scholar] [CrossRef]
  22. Meng, L.; Miao, C.; Leung, C. Towards online and personalized daily activity recognition, habit modeling, and anomaly detection for the solitary elderly through unobtrusive sensing. Multimed. Tools Appl. 2017, 76, 10779–10799. [Google Scholar] [CrossRef]
  23. Bengio, Y.; Frasconi, P. Diffusion of credit in Markovian models. In Advances in Neural Information Processing Systems; MIT Press: Cambridge, MA, USA, 1995. [Google Scholar]
  24. Moutacalli, M.T.; Bouzouane, A.; Bouchard, B. The behavioral profiling based on times series forecasting for smart homes assistance. J. Ambient Intell. Humaniz. Comput. 2015, 6, 647–659. [Google Scholar] [CrossRef]
  25. Nazerfard, E.; Cook, D.J. CRAFFT: An activity prediction model based on Bayesian networks. J. Ambient Intell. Humaniz. Comput. 2015, 6, 193–205. [Google Scholar] [CrossRef] [PubMed]
  26. Domingos, P.; Pazzani, M. On the optimality of the simple Bayesian classifier under zero-one loss. Mach. Learn. 1997, 29, 103–130. [Google Scholar] [CrossRef]
  27. Hao, J.; Bouzouane, A.; Gaboury, S. Complex behavioral pattern mining in non-intrusive sensor-based smart homes using an intelligent activity inference engine. J. Reliab. Intell. Environ. 2017, 3, 99–116. [Google Scholar] [CrossRef]
  28. Lindig, C. Fast concept analysis. In Working with Conceptual Structures-Contributions to ICCS; Shaker Verlag: Herzogenrath, Germany, 2000; pp. 152–161. [Google Scholar]
  29. Bourobou, S.T.M.; Yoo, Y. User activity recognition in smart homes using pattern clustering applied to temporal ANN algorithm. Sensors 2015, 15, 11953–11971. [Google Scholar] [CrossRef] [PubMed]
  30. Singh, J.; Kamra, A.; Singh, H. Prediction of heart diseases using associative classification. In Proceedings of the 2016 5th International Conference on Wireless Networks and Embedded Systems (WECON), Rajpura, India, 14–16 October 2016. [Google Scholar]
  31. Dua, S.; Singh, H.; Thompson, H.W. Associative classification of mammograms using weighted rules. Expert Syst. Appl. 2009, 36, 9250–9259. [Google Scholar] [CrossRef] [PubMed]
  32. Baralis, E.; Chiusano, S.; Garza, P. A lazy approach to associative classification. In Proceedings of the IEEE International Conference on Data Mining, ICDM 2002, Maebashi City, Japan, 9–12 December 2002. [Google Scholar]
  33. Snedecor, G.W. The comparison of two samples. In Statistical Methods; Iowa State University Press: Ames, IA, USA, 1989; pp. 83–106. [Google Scholar]
  34. Ma, B.L.W.H.Y.; Liu, B. Integrating classification and association rule mining. In Proceedings of the Fourth International Conference on Knowledge Discovery and Data Mining, New York, NY, USA, 27–31 August 1998. [Google Scholar]
  35. Witten, I.H.; Frank, E.; Trigg, L.E.; Hall, M.A.; Holmes, G.; Cunningham, S.J. Weka: Practical Machine Learning Tools and Techniques with Java Implementations; University of Waikato: Hamilton, New Zealand, 1999. [Google Scholar]
  36. Cheng, H.; Yan, X.; Han, J.; Hsu, C.-W. Discriminative frequent pattern analysis for effective classification. In Proceedings of the IEEE 23rd International Conference on Data Engineering, Istanbul, Turkey, 15–20 April 2007. [Google Scholar]
  37. Gayathri, K.; Elias, S.; Ravindran, B. Hierarchical activity recognition for dementia care using Markov Logic Network. Pers. Ubiquitous Comput. 2015, 19, 271–285. [Google Scholar] [CrossRef]
Figure 1. Ambiance for elderly healthcare services.
Figure 1. Ambiance for elderly healthcare services.
Sensors 19 01613 g001
Figure 2. Vital features of smart ambiance elderly healthcare.
Figure 2. Vital features of smart ambiance elderly healthcare.
Sensors 19 01613 g002
Figure 3. Activities of daily living (ADL) behavioral contextual characteristics for wellness determination.
Figure 3. Activities of daily living (ADL) behavioral contextual characteristics for wellness determination.
Sensors 19 01613 g003
Figure 4. Context aware accurate wellness determination (CAAWD) model for elderly people.
Figure 4. Context aware accurate wellness determination (CAAWD) model for elderly people.
Sensors 19 01613 g004
Figure 5. Elderly woman cooking in a smart environment.
Figure 5. Elderly woman cooking in a smart environment.
Sensors 19 01613 g005
Figure 6. Wellness accuracy of CAAWD against the proposed technique [5] on Ordonez’s dataset.
Figure 6. Wellness accuracy of CAAWD against the proposed technique [5] on Ordonez’s dataset.
Sensors 19 01613 g006
Figure 7. F-measure of CAAWD against the proposed technique [37] on Ordonez’s dataset.
Figure 7. F-measure of CAAWD against the proposed technique [37] on Ordonez’s dataset.
Sensors 19 01613 g007
Figure 8. Wellness accuracies of CAAWD with and without utilizing CDEA.
Figure 8. Wellness accuracies of CAAWD with and without utilizing CDEA.
Sensors 19 01613 g008
Table 1. Data instances representation of single sensor value by Contextual Data Extraction Module.
Table 1. Data instances representation of single sensor value by Contextual Data Extraction Module.
SAIDStart Time (24 h)ObjectLocationSub ActivityADLDuration (min)Class
0311:30StoveKitchenCabinetCook-Normal
0311:30StoveKitchenCabinetCook-Normal
0311:31StoveKitchenCooktopCook-Normal
--------
0311:35StoveKitchen-Cook5Normal
Table 2. Generated class association rules (CARs).
Table 2. Generated class association rules (CARs).
SAIDStart Time (24 h) ObjectLocationSub ActivityDuration (min)ADLClass
0616:30Sofa ChairLiving Room-45TVNormal
062:30ShowerToilet-200-Abnormal
107:33ShowerToiletWash Basin15ShowerNormal
016:15Door--35WalkNormal
Table 3. Class Association Rule.
Table 3. Class Association Rule.
SAIDStart Time (24 h)ObjectLocationSub ActivityDuration (min)ADLClass
1323:30BedBedroom-7:45SleepingNormal
Table 4. Test instance.
Table 4. Test instance.
SAIDStart Time (24 h)ObjectLocationSub ActivityDuration (min)ADLClass
139:30BedBedroom-11:30Sleeping?
Contextual information: Bed rest recommended = 12 h.
Table 5. ADLs with associated sensors in Ordonez’s dataset.
Table 5. ADLs with associated sensors in Ordonez’s dataset.
Serial NumberADLsInstalled Sensors
1.LeavingMagnetic (main door)
2.ToiletingPassive Infrared (PIR) (basin), flush (toilet)
3.ShoweringPIR (showering)
4.SleepingPressure (bed)
5.BreakfastPIR (cooktop, microwave), electric (toaster), magnetic (fridge, cabinet, cupboard)
6.LunchPIR (cooktop, microwave), magnetic (fridge, cabinet, cupboard)
7.DinnerPIR (cooktop, microwave), magnetic (fridge, cabinet, cupboard)
8.SnackElectric (microwave, toaster), magnetic (fridge)
9.Spare time/TVPressure (seat)
10.GroomingMagnetic (cabinet)
Table 6. Classification parameters of each individual.
Table 6. Classification parameters of each individual.
IndividualsPrecisionRecallF-Measure
Subject-A98.04%99.80%98.91%
Subject-B98.23%97.85%98.04%
Subject-C97.66%98.23%97.94%
Subject-D95.79%97.47%96.62%
Subject-E97.85%98.23%98.04%
Subject-F97.85%98.43%98.14%
Subject-G97.66%98.43%98.04%
Subject-H97.28%98.81%98.04%
Subject-I99.40%99.40%99.40%
Subject-J96.90%97.66%97.28%
Table 7. Behavior anomaly examples.
Table 7. Behavior anomaly examples.
Behavior Routine AnomaliesPossible Reasons
Sleeping longer than usualMedication, fatigue, hypertension, dizziness
Higher frequency of toiletingStomach upset, higher diabetes level
Zero duration of leavingFeeling unwell, skipping daily walk, fatigue
Table 8. Classified instances accuracies.
Table 8. Classified instances accuracies.
SubjectNormally ClassifiedAbnormally Classified
Subject-A98.6 %97.6 %
Subject-B97.9 %98.5 %
Subject-C99.3 %97.4 %
Subject-D99.1%97.9 %
Subject-E98.3 %97.4 %
Subject-F97.1 %97.4 %
Subject-G98.6 %99.3 %
Subject-H97.7 %98.6 %
Subject-I99.2 %97.5 %
Subject-J98.9 %97.7 %
Table 9. Information provided by the caregiver.
Table 9. Information provided by the caregiver.
ActivityContextual Information
FrequencyDurationStart Time
MinMaxMinMaxMinMax
Sleeping238 h12 h22:3023:30
Leaving (walk/exercise)1230 min60 min10:3015:30
Toileting 481 min10 min--
Breakfast1115 min35 min9:3010:30
Lunch1125 min50 min13:0015:30
Dinner 1125 min50 min18:3021:30
Showering1310 min15 min--
Table 10. Subject (individual) wise accuracy, precision, recall, and F-measure representation.
Table 10. Subject (individual) wise accuracy, precision, recall, and F-measure representation.
SubjectAccuracyPrecisionRecallF-Measure
Subject-A99.11%98.81%99.40%99.11%
Subject-B98.23%98.43%98.04%98.23%
Subject-C97.94%97.66%98.23%97.94%
Subject-D98.14%98.04%98.23%98.14%
Subject-E97.28%97.09%97.47%97.28%
Subject-F98.52%98.81%98.23%98.52%
Subject-G97.37%98.04%96.71%97.37%
Subject-H99.11%99.01%99.21%99.11%
Subject-I96.81%97.09%96.53%96.81%
Subject-J98.33%98.62%98.04%98.33%
Table 11. Accuracy, precision, recall, and f-measure comparison of the CAAWD with the technique in [5].
Table 11. Accuracy, precision, recall, and f-measure comparison of the CAAWD with the technique in [5].
TechniquesWeighted AccuracyWeighted PrecisionWeighted RecallWeighted F-Measure
CAAWD98.08%98.16%98.01%98.08%
Technique [5]95.10%94.90%95.10%94.60%
Table 12. Average time to build a classification model using different classifiers.
Table 12. Average time to build a classification model using different classifiers.
Classification ModelAverage Time to Build Classification Model (s)
Naïve Bayesian0.05
Decision Tree based Classification (C 4.5)0.3
Lazy Associative Classifier (LAC)0.37
Weighted Associative Classifier (WAC) * 41
* Minimum support and confidence values are 0.1 and 0.9 respectively with maximum 10 rules.

Share and Cite

MDPI and ACS Style

Ujager, F.S.; Mahmood, A. A Context-Aware Accurate Wellness Determination (CAAWD) Model for Elderly People Using Lazy Associative Classification. Sensors 2019, 19, 1613. https://doi.org/10.3390/s19071613

AMA Style

Ujager FS, Mahmood A. A Context-Aware Accurate Wellness Determination (CAAWD) Model for Elderly People Using Lazy Associative Classification. Sensors. 2019; 19(7):1613. https://doi.org/10.3390/s19071613

Chicago/Turabian Style

Ujager, Farhan Sabir, and Azhar Mahmood. 2019. "A Context-Aware Accurate Wellness Determination (CAAWD) Model for Elderly People Using Lazy Associative Classification" Sensors 19, no. 7: 1613. https://doi.org/10.3390/s19071613

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop