License: arXiv.org perpetual non-exclusive license
arXiv:2312.00404v1 [cs.LG] 01 Dec 2023

A Causality-Aware Pattern Mining Scheme for Group Activity Recognition in a Pervasive Sensor Space

Hyunju Kim Korea Advanced Institute of Science & TechnologyDaejeonSouth Korea [email protected] Heesuk Son MetaWashingtonUnited States [email protected]  and  Dongman Lee Korea Advanced Institute of Science & TechnologyDaejeonSouth Korea [email protected]
Abstract.

Human activity recognition (HAR) is a key challenge in pervasive computing and its solutions have been presented based on various disciplines. Specifically, for HAR in a smart space without privacy and accessibility issues, data streams generated by deployed pervasive sensors are leveraged. In this paper, we focus on a group activity by which a group of users perform a collaborative task without user identification and propose an efficient group activity recognition scheme that extracts causality patterns from pervasive sensor event sequences generated by a group of users to support as good recognition accuracy as the state-of-the-art graphical model with missing or false data tolerance. To filter out irrelevant noise events from a given data stream, a set of rules is leveraged to highlight causally related events. Then, a pattern-tree algorithm extracts frequent causal patterns by means of a growing tree structure. Based on the extracted patterns, a weighted sum-based pattern matching algorithm computes the likelihoods of stored group activities to the given test event sequence by means of matched event pattern counts for group activity recognition. We evaluate the proposed scheme using the data collected from our testbed and CASAS datasets where users perform their tasks on a daily basis and validate its effectiveness in a real environment. Experiment results show that the proposed scheme performs higher recognition accuracy and is tolerant to missing or false data with a smaller amount of runtime overhead than the existing schemes.

group activity recognition, causality-aware, pattern mining, pervasive sensors, smart space
copyright: usgovmixedccs: Human-centered computing Ubiquitous and mobile computing design and evaluation methodsccs: Information systems Information systems applications

1. Introduction

Human Activity Recognition (HAR) is a fundamental technology to provide appropriate services to users in a smart space (Benmansour et al., 2016; Tapia et al., 2004). It is achieved by exploiting various sensors available in a given space. One of approaches is to leverage video surveillance or wearable sensors. It is used in many HAR schemes but has to face several issues such privacy, accessibility, unstable data collection or battery (Pantelopoulos and Bourbakis, 2010; Foresti et al., 2012; Ameen et al., 2012). In order to recognize activities while relieving such issues in a smart spaces, data streams generated by deployed IoT devices (smart objects) such as pervasive sensors (e.g. sound, temperature, etc.) and actuators (beam projector, air conditioner, etc) have been leveraged. Using multivariate data streams, early studies have focused on finding simple activities which consist of each user’s sequential sensor events. To analyze simple activities, various graphical models such as Hidden Markov Model (HMM) have been presented (Chen and Tong, 2014; Wang et al., 2011; Chiang et al., 2010; Zhang et al., 2006). However, people often perform not only simple activities but also complex activities that encompass various events at the same time within single user or multi-user activities. Therefore, current studies have attempted to recognize complex activities by representing rich temporal relationships (e.g. overlap, concurrent) between events (Riboni et al., 2016; Liu et al., 2016; Benmansour et al., 2016; Bourbia et al., 2016).

Considering the necessity of handling concurrent sensor events in a complex activity recognition problem, improved models with Allen’s temporal relations (Allen and Ferguson, 1994) are devised (Zhang et al., 2013; Liu et al., 2016; Bourbia et al., 2016). Interval Temporal Bayesian network (ITBN) (Zhang et al., 2013) represents complex temporal relationships among sensor events onto the edges of a Bayesian network. Liu et al. (Liu et al., 2016) advance the ITBN by leveraging the Chinese Restaurant Process (CRP) (Aggarwal and (Eds.), 2012) for ITBN constructions to describe repetitive events. Despite their expression power, the graphical models calculate the transition probability of all variations of event sequences for each complex activity (called a complex activity model) and compute how closely a given event sequence matches with each complex activity model. This gives a rise to low recognition accuracy if target event sequences include those which do not exactly match with the corresponding complex models. The limitation significantly affects the recognition of a complex activity induced by a group of users together without user identification (hereafter, we call it a group activity). Since a group activity (e.g. meeting, discussion, etc.) entails concurrent sub-tasks by multiple anonymous users, it is hard to clearly detect any relationships among sensor events (e.g. sound level, projector on/off, etc.), users, and sub-tasks (i.e. data association problem (Hsu and Wang, 2008)). Actually, Liu et al. (Liu et al., 2016) derive a great improvement on recognition accuracy with a dataset (Opportunity dataset, 2012) which is composed of a single user-driven complex activities. However, the accuracy decreases when applied to a group activity dataset (Brendel et al., 2011). To relieve the fixed structure of graphical models, the association rule mining-based approaches (Bourbia et al., 2016; Gu et al., 2009; Liu et al., 2015) extract representative event associations from training event sequences and infer complex activities of target event sequences. They allow a given event sequence to be correctly recognized as long as it includes the representative event associations trained for the corresponding complex activity. Bourbia et al. (Bourbia et al., 2016) solve the concurrent event representation issue by adopting Allen’s temporal relation model and prove their scheme is valid for group activity recognition. However, they ignore the temporal orders, causality, of disjunct sensor events considered in the graphical models for the ease of computation, which discards important patterns in the mining phase and degrades the group activity recognition accuracy eventually.

In this paper, we propose a causality-aware group activity recognition scheme that exploits the applicability of pattern mining and achieves high recognition accuracy by preserving potential temporal event orders (i.e. causality) in complex activities. For this, we devise two methods for extracting event causality patterns. First, we define a set of event causality in terms of ontology that exists in group activities (GAs). If events with temporal precedence are detected, ontology-based rules derive causality between events. Second, we leverage sequential pattern mining method (Salvemini et al., 2011) for extracting additional event causality that are not detected by the first method but frequently generated in given GA sequences. The extracted patterns are represented by associated first order logic and their causalities. In addition, we devise a method for handling infrequent but important GA-specific events from smart objects such as lights and projectors which, otherwise, are ignored in mining phase due to their relatively low event frequency. To evaluate the proposed scheme, we perform a leave-one-out cross validation and compare the proposed scheme with three existing schemes (Association rule mining (Bourbia et al., 2016), CRP-based ITBN (Liu et al., 2016) and HMM (Eddy, 1996)) in terms of recognition accuracy, training performance and noise sensitivity. For a dataset, we leverage the group activity IoT stream data which has been collected for 14 months from our testbed. Experiment results show that the proposed scheme improves the recognition accuracy by 21%, 19%, and 30% compared to association rule mining scheme, CRP-based ITBN scheme and HMM scheme, respectively, considering episodes where data is missing or false values are fed due to errors or malfunctions of some pervasive sensors or actuators. In addition, we prove the scalability (i.e. works well in other environments) of our scheme using the CASAS group activity dataset (Singla et al., 2009a) and the result shows that our scheme improves at least 12% recognition accuracy rate than the existing schemes.

2. Related Work

In order to recognize human activities in a smart space, wearable sensors or video - based approaches are proposed. However, those disciplines have privacy or accessibility issues to use in daily living, data streams generated by deployed pervasive sensors (e.g. sound, seat occupancy, etc.) without user identification have been leveraged. While early approaches (Chen and Tong, 2014; Wang et al., 2011; Chiang et al., 2010; Zhang et al., 2006) studied the recognition of simple activity which consists of sequential events, recent studies (Riboni et al., 2016; Liu et al., 2016; Benmansour et al., 2016; Bourbia et al., 2016) have focused on recognizing complex activity composed of events with various temporal relations.

Markov property-based models (Riboni et al., 2016; Chen and Tong, 2014; Wang et al., 2011; Chiang et al., 2010) are the most widely leveraged approaches for the complex activity recognition domain. However, they have limitations of describing temporal relations between events. Riboni et al (Riboni et al., 2016) propose the unsupervised and knowledge based model using ontology. They derive semantic correlations among activities and events to represent the characteristics of complex activities. This allows their scheme to be exploited to various environments. However, the scheme cannot be directly applied to a pervasive sensor space because it is difficult to manually pre-define all sensors and the probabilistic relations of group activities. It has a limitation to represent temporal dependencies between events such as overlapping or concurrent relations which frequently exist in a pervasive sensor space, resulting in accuracy degradation. The other Markov property-based approaches mentioned above also have the same limitation.

Zhang et al. (Zhang et al., 2013) present Interval Temporal Bayesian Network (ITBN) (Zhang et al., 2013) which is an advanced graphical model with a richer representation, Allen’s temporal relations model (Allen and Ferguson, 1994), to describe temporal dependencies between states (e.g. complex activity events). As with other graphical models, ITBN represents events as vertices and puts their temporal relations on in-between edges. However, ITBN suffers from an expensive computational cost and a fixed network size, which makes it impossible to represent repetitive occurrences of events. Liu et al. (Liu et al., 2016) relieve these limitations by clustering similar complex activity patterns as multiple ITBNs with different network sizes based on the Chinese Restaurant Process (CRP). Despite its expression power and high accuracy, the inherently exact matching process of the graphical model makes itself vulnerable to changes of user behaviors. Especially, various patterns of user behaviors for the same GA occur in a pervasive sensor space and it makes hard to secure enough dataset for the same complex activity. In this aspect, the accuracy of the trained ITBN model can be degraded even if behaviors of users slightly differ from the trained ones (i.e. missing or false data tolerance). It is more critical to recognize complex activity driven by group (group activity) since GA entails concurrent sub-tasks (e.g., meeting, discussion, etc.) by multiple anonymous users with no user identification (i.e. data association problem (Hsu and Wang, 2008)). The results of Liu et al. (Liu et al., 2016) show recognition rates of a group activity dataset are much lower than recognition rates of a single user driven complex activity dataset.

To construct a noise-robustness model in a pervasive sensor space, association rule based approaches (Bourbia et al., 2016; Gu et al., 2009; Liu et al., 2015) are leveraged to model complex activity recognition module. Bourbia et al. (Bourbia et al., 2016) represent temporal relationships of sensor events as the first order logic and extract their patterns as emerging patterns. They extract patterns composed of sensor events with frequent co-appearances based on association rule mining (Agrawal et al., 1993). In the proposed scheme, temporal relations between sensor events are represented by Allen’s temporal relation model and frequent relations are extracted as GA patterns. The extracted patterns are encoded together as a Markov Logic Network (MLN) instance and MCMC-based inference is performed to recognize a given test event sequence. Their results show valid accuracy results in GAs, however, they overlook an important aspect of the mined patterns, that is, causality embedded in each GA and thus fail to achieve as high recognition accuracy as the graphical model.

3. Design Considerations

In this section, we discuss key considerations to overcome the limitations of the existing schemes, that is, support high accuracy and low noise sensitivity for group activity recognition (GAR).

3.1. Filtering out non-causal noise events

Extracting GA patterns using machine learning techniques is inherently based on frequency. However, this characteristic seriously degrades the learning accuracy in a smart space with various pervasive sensors because those sensors may produce a stream of thousands of events for a single GA while only a few of them embody meaningful patterns. It is highly probable that noise events which have no causal relation form frequent patterns and these patterns are derived as important ones for a target GA. Furthermore, as the amount of stream data grows, a learning phase may suffer from memory shortage. To prevent these problems and secure the GA recognition accuracy, it is necessary to filter out semantically irrelevant event pairs and detect only those that may affect each other’s appearance (i.e. causality) from the pipelined event streams .


Refer to caption


Figure 1. A limitation of association rule mining and a need for considering temporal dependency for better GAR(Group Activity Recognition)


3.2. Preserving causality within patterns

In a pervasive sensor space, similar types of event pairs can be generated in different GAs. The key attribute to differentiate those GAs is a sequential variation of event pair combinations. For example, when project team members have a monthly meeting to have a technical discussion, they usually enter a meeting room, sit, discuss with little disruptions, and leave the room together. On the other hand, when they have an informal gathering for smalltalk or coffee break, they may freely leave and enter a room for many reasons (e.g. toilet, phone call, material print-out, etc). In both cases, common event pairs such as Leave after SitDown and SitDown after Enter are generated repeatedly. However, their generation patterns are different as illustrated in Figure 1. Existing association rule mining schemes (Bourbia et al., 2016) cannot classify this difference, resulting in high false negatives as well as false positives in the GA recognition phase. To overcome this limitation and improve the recognition accuracy, we need to devise a richer representation method that is capable of separating different temporal orders between event pairs.

3.3. Saving infrequent but important GA-specific events

Two types of smart objects are usually deployed in a pervasive sensor space: pervasive sensors and actuators. Pervasive sensors may publish thousands of events (i.e. sensed environmental raw data or their discretized values) in an hour, while actuators (e.g. a smart light bulb, a projector, etc.) publish a few state changes, mostly done by user manipulations. While actuators have important roles in performing GAs, actuator event patterns are hardly extracted by machine learning-based GA recognitions due to such unbalanced event generation. For example, projector manipulation events, in a technical discussion using a projector, are hardly drawn as patterns than sound level events because the former happens much less than the latter. To preserve such infrequent but important GA-specific events, there needs a way to identify them and treat them as equal as frequent ones.

4. Proposed Scheme

Refer to caption
Figure 2. Overall architecture of proposed scheme

4.1. Overview

In this section, we describe how the proposed scheme fulfills the aforementioned key requirements and extracts causality-aware patterns from group activity (GA) event sequences. Figure 2 illustrates its key components and the operation flows for training and inferencing pervasive sensor data. The preprocessing module translates sensor date into a sequence of events representing a group activity, finds GA-specific events and event causality by the group activity ontology from it, and produces a set of temporal relations defined in Allen’s model (Allen and Ferguson, 1994). Then, the pattern learning module constructs a pattern-tree which computes sequential orders between the temporal relations and detects frequent causality patterns of a target group activity. The derived patterns are stored in the pattern storage. For a test event sequence to inference, the preprocessing module extracts temporal relations from it as the training phase and the group activity recognition (GAR) module infers the most proper group activity. For this, the GAR module compares given temporal relations with the learned GA patterns in the pattern storage and compute each GA’s likelihood in terms of a weight sum. A GA with a largest weight sum is selected as a recognition output.

4.2. Preprocessing Module

4.2.1. Event Conversion

At first, when a raw sensor data sequence comes in as an input, it is transformed into an event sequence. Raw data is composed of a value of a sensor and its published timestamp, while event data consists of its start time, end time and label. Two types of objects usually exist in a pervasive sensor space: actuators (e.g. Seat or Projector) and pervasive sensors (e.g. Lightness or Sound). Actuator data is generated when a user’s action affects an actuator’s state change. Thus, its state value is directly converted to an event label. The times when a person actuates and ends an actuator correspond to the start time and end time of an actuator event, respectively. However, an pervasive sensor requires additional data processing to convert its states to an event level since its states can change instantaneously and can contain many noises. We apply a simple signal averaging method to the raw data of pervasive sensors. We convert each sampled raw data into a human-understandable level (e.g. raw sound data ‘56’to ‘Sound_Level1 ’). If the same level of data occur consecutively, they are considered the same event and the time at which a different level of data appears is the end time of the event. After completing this step, we can get all event tuples of data consisting of start time, end time, and event label.

Figure 3. Group activity ontology
Refer to caption
Refer to caption
Figure 3. Group activity ontology
Figure 4. Event filtering rules in GA knowledge base

4.2.2. Group Activity Knowledge base Definition & Construction

To detect GA-specific events and event pairs having causality from the event streams, we design a group activity knowledge base containing an ontology and rules.

Group activity ontology (Figure 4) defines GA-related key concepts and their relationships. Key terms are defined as follows:

  • Group Activity (e.g. Technical Discussion) : A task that multiple users perform together in a smart space.

  • Context (e.g. ProjectorStatus) : A human-understandable term of a smart space component.

  • Event (e.g. ProjectorOn) : A specific state ‘value ’of a smart object.

  • Smart Object (e.g. Projector) : An IoT device that comprises a smart space.

Then, we define a predicate, affects, to declare Contexts which are affected by a specific Group Activity in the knowledge base. We define another predicate, relatedTo, to declare causality between Contexts. A set of ontology triples below shows an example GA knowledge base we built for our smart space (‘ga’ is the name space prefix of the GA ontology) :

[ga:TechnicalDiscussion-ga:affects-ga:SoundLevel]
[ga:TechnicalDiscussion-ga:affects-ga:ProjectorStatus]
[ga:Projector - ga:publishes - ga:ProjectorOn]
[ga:ProjectorOn - ga:isAbout- ga:ProjectorStatus]
[ga:Projector - rdf:type - ga:Actuator]
[ga:Sound - ga:publishes - ga:SoundLevel1]
[ga:Sound - ga:publishes - ga:SoundLevel2]
[ga:SoundLevel1 - ga:isAbout- ga:SoundLevel]
[ga:SoundLevel2 - ga:isAbout- ga:SoundLevel]
[ga:Sound - rdf:type - ga:PervasiveSensor]
[ga:ProjectorStatus - ga:relatedTo - ga:SoundLevel]

When constructing the knowledge base above, statements with affects and relatedTo predicates are supposed to be written by those who have an overall knowledge on a target smart space (e.g. space administrator). Statements with other predicates such as publishes and isAbout are supposed to be written by smart object developers. However, we cannot assume that an administrator always exists in a smart space. Then, it would be difficult to figure out which Contexts correspond to affects and relatedTo relations without help of an administrator. To overcome this problem, it is required to automatically find important Contexts and causalities to each group activity based on the training data. For that purpose, we exploit TF-IDF (Salton and McGill, 1986) which is a widely used weighting factor to reflect how important a word is to a document in information retrieval domain. To discover affects relations, the importance of Contexts within each Group Activity is calculated as equation 1. Then, if the result is non-zero, the corresponding Context is considered to be affected by that Group Activity.

(1) Icx,z=fcx,z×log10Ngafxsubscript𝐼subscript𝑐𝑥𝑧subscript𝑓subscript𝑐𝑥𝑧subscript10𝑁𝑔𝑎subscript𝑓𝑥I_{c_{x,z}}=f_{c_{x,z}}\times\log_{10}{\frac{N}{gaf_{x}}}italic_I start_POSTSUBSCRIPT italic_c start_POSTSUBSCRIPT italic_x , italic_z end_POSTSUBSCRIPT end_POSTSUBSCRIPT = italic_f start_POSTSUBSCRIPT italic_c start_POSTSUBSCRIPT italic_x , italic_z end_POSTSUBSCRIPT end_POSTSUBSCRIPT × roman_log start_POSTSUBSCRIPT 10 end_POSTSUBSCRIPT divide start_ARG italic_N end_ARG start_ARG italic_g italic_a italic_f start_POSTSUBSCRIPT italic_x end_POSTSUBSCRIPT end_ARG

where: fcx,zsubscript𝑓subscript𝑐𝑥𝑧f_{c_{x,z}}italic_f start_POSTSUBSCRIPT italic_c start_POSTSUBSCRIPT italic_x , italic_z end_POSTSUBSCRIPT end_POSTSUBSCRIPT ={}={}= ratio of Context x𝑥xitalic_x in Group Activity z𝑧zitalic_z gafx𝑔𝑎subscript𝑓𝑥gaf_{x}italic_g italic_a italic_f start_POSTSUBSCRIPT italic_x end_POSTSUBSCRIPT ={}={}= number of group activities containing Context x𝑥xitalic_x N𝑁Nitalic_N ={}={}= total number of group activities

Finding relatedTo relations among Contexts is similar. First, two Contexts with a sequential relation are converted into an ordered set and the number of each ordered set is counted. Equation 2 calculates the importance of each ordered set in each Group Activity.

(2) Ios(x,y),z=fos(x,y),z×log10Ngaf(x,y)subscript𝐼𝑜subscript𝑠𝑥𝑦𝑧subscript𝑓𝑜subscript𝑠𝑥𝑦𝑧subscript10𝑁𝑔𝑎subscript𝑓𝑥𝑦I_{os_{(x,y),z}}=f_{os_{(x,y),z}}\times\log_{10}{\frac{N}{gaf_{(x,y)}}}italic_I start_POSTSUBSCRIPT italic_o italic_s start_POSTSUBSCRIPT ( italic_x , italic_y ) , italic_z end_POSTSUBSCRIPT end_POSTSUBSCRIPT = italic_f start_POSTSUBSCRIPT italic_o italic_s start_POSTSUBSCRIPT ( italic_x , italic_y ) , italic_z end_POSTSUBSCRIPT end_POSTSUBSCRIPT × roman_log start_POSTSUBSCRIPT 10 end_POSTSUBSCRIPT divide start_ARG italic_N end_ARG start_ARG italic_g italic_a italic_f start_POSTSUBSCRIPT ( italic_x , italic_y ) end_POSTSUBSCRIPT end_ARG

where: (x,y)𝑥𝑦(x,y)( italic_x , italic_y ) ={}={}= an ordered set implying that Context x𝑥xitalic_x occurs before Context y𝑦yitalic_y fos(x,y),zsubscript𝑓𝑜subscript𝑠𝑥𝑦𝑧f_{os_{(x,y),z}}italic_f start_POSTSUBSCRIPT italic_o italic_s start_POSTSUBSCRIPT ( italic_x , italic_y ) , italic_z end_POSTSUBSCRIPT end_POSTSUBSCRIPT ={}={}= ratio of an ordered set (x,y)𝑥𝑦(x,y)( italic_x , italic_y ) in Group Activity z𝑧zitalic_z gaf(x,y)𝑔𝑎subscript𝑓𝑥𝑦gaf_{(x,y)}italic_g italic_a italic_f start_POSTSUBSCRIPT ( italic_x , italic_y ) end_POSTSUBSCRIPT ={}={}= number of group activities containing an ordered set (x,y)𝑥𝑦(x,y)( italic_x , italic_y ) N𝑁Nitalic_N ={}={}= total number of group activities

(3) minzZ{Ios(x,y),z} (Z is a set of all group activities)subscript𝑧𝑍subscript𝐼𝑜subscript𝑠𝑥𝑦𝑧 (Z is a set of all group activities)\min_{z\in Z}\{I_{os_{(x,y),z}}\}~{}~{}\text{~{}~{}~{}~{}~{}~{}~{}~{}~{}~{}~{}% ($Z$ is a set of all group activities)}roman_min start_POSTSUBSCRIPT italic_z ∈ italic_Z end_POSTSUBSCRIPT { italic_I start_POSTSUBSCRIPT italic_o italic_s start_POSTSUBSCRIPT ( italic_x , italic_y ) , italic_z end_POSTSUBSCRIPT end_POSTSUBSCRIPT } (Z is a set of all group activities)

If the result of equation 3 is zero, it implies that an ordered set of Context x𝑥xitalic_x and y𝑦yitalic_y is not related to any GAs at all. We filter out such an ordered set regarded as non-causal noise context relations while Context pairs in the ordered sets not filtered are stored in the knowledge base in the form of statements with relatedTo predicate.

Based on the terms defined in the ontology, we create the ga-specific-rule to examine if an incoming event sequence contains GA-specific events and the event-causality-rule to detect event pairs having causality. Both logic are written in n3 format (N3 Format, 2017) and stored in GA knowledge base (Figure 4).

4.2.3. GA-specific Event Preservation

At first, we derive GA-specific events from an event stream based on the stored triples and ga-specific-rule of the GA knowledge base. An event having isImportant, relationship with a particular GA is drawn as a GA-specific event. The following example shows how the rule determines if ProjectorOn is a GA-specific event in TechnicalDiscussion :

[[[[ ga-specific-rule:
TechnicalDiscussion - rd:type - ga:GroupActivity
ProjectorStatus - rd:type - ga:Context
ProjectorOn - rd:type - ga:Event
Projector - ga:publishes - ProjectorOn
ProjectorOn - ga:isAbout - ProjectorStatus
TechnicalDiscussion - ga:affects - ProjectorStatus
Projector - rdf:isTypeof - ga:Actuator
\longrightarrow ProjectorOn - ga:isImportantTo - TechnicalDiscussion
]]]]

ProjectorOn can be a GA-specific event of TechnicalDiscussion. If a GA-specific event is detected, the preprocessing module emphasizes its importance by splitting the event into N times events. We compute the average occurrence ratio of pervasive sensor events and GA-specific events and use it to split the GA-specific events. This event emphasizing helps to raise its frequency and prevent from being pruned in the pattern learning module. Since this step requires a GA-label of an event stream, it is processed only in the training phase.

4.2.4. Noise Event Pair Removal

Once emphasizing GA-specific events is done, the preprocessing module finds all possible pairs in a given event sequence to filter out non-causal noises. It compares the start time and the end time of a pair of events and assign the pair one of Allen’s temporal relations (Allen and Ferguson, 1994) (Figure 5). Given a pair of events with After relation, the module queries the knowledge base and event-causality-rule and check if two events in the pair are causally related to each other. The following example describes how the rule verifies that ProjectorOn have causality with SoundLevel1 :

[[[[ event-causality-rule:
ProjectorStatus - rd:type - ga:Context
SoundLevel - rd:type - ga:Context
ProjectorOn - rd:type - ga:Event
SoundLevel2 - rd:type - ga:Event
ProjectorOn - ga:isAbout - ProjectorStatus
SoundLevel2 - ga:isAbout - SoundLevel
ProjectorStatus - ga:relatedTo - SoundLevel
\longrightarrow ProjectorOn - ga:causes - SoundLevel2
]]]]

Refer to caption

Figure 5. Seven types of Allen’s temporal relations

4.2.5. Temporal Relation Extraction

: If it does not have the causes relationship, a given pair of events is discarded. Event pairs passing the rule or having other six temporal relations are finally preserved. This step reduces noisy data among causal event pairs, thus, we can better extract the characteristics of each group activity.

We call the remaining relation as a causal relation and represent it as follows:

{ RELATION (event_x, event_y) , start_time, end_time }


, where start_time and end_time are leveraged to determine temporal orders between causal relations. Eventually, a bundle of the determined Allen’s relations represented by the first order logic (i.e. an episode) is temporarily stored in the episode storage as the training input dataset of the pattern learning module or is passed to the group activity recognition module as a test dataset.

Input: Episodes of each GA E𝐸Eitalic_E and the min_support threshold T𝑇Titalic_T
Output: A set of sequential patterns
// About Lexicographic Tree: // Node A𝐴Aitalic_A is left brother of node B𝐵Bitalic_B if Node A𝐴Aitalic_A occurs before node B𝐵Bitalic_B // Node A𝐴Aitalic_A is father of node B𝐵Bitalic_B if sequence in A𝐴Aitalic_A node is a subsequence of sequence in node B𝐵Bitalic_B. LexicographicTree𝐿𝑒𝑥𝑖𝑐𝑜𝑔𝑟𝑎𝑝𝑖𝑐𝑇𝑟𝑒𝑒LexicographicTreeitalic_L italic_e italic_x italic_i italic_c italic_o italic_g italic_r italic_a italic_p italic_h italic_i italic_c italic_T italic_r italic_e italic_e ¡- frequent depth-1 nodes;
//Itemset Extension for each node α𝛼\alphaitalic_α in LexicographicTree𝐿𝑒𝑥𝑖𝑐𝑜𝑔𝑟𝑎𝑝𝑖𝑐𝑇𝑟𝑒𝑒LexicographicTreeitalic_L italic_e italic_x italic_i italic_c italic_o italic_g italic_r italic_a italic_p italic_h italic_i italic_c italic_T italic_r italic_e italic_e do
      for right brother nodes β𝛽\betaitalic_β of node α𝛼\alphaitalic_α do
           if concatenating node α𝛼\alphaitalic_α and node β𝛽\betaitalic_β ¿= T𝑇Titalic_T then
                LexicographicTree𝐿𝑒𝑥𝑖𝑐𝑜𝑔𝑟𝑎𝑝𝑖𝑐𝑇𝑟𝑒𝑒LexicographicTreeitalic_L italic_e italic_x italic_i italic_c italic_o italic_g italic_r italic_a italic_p italic_h italic_i italic_c italic_T italic_r italic_e italic_e¡- concatenating node α𝛼\alphaitalic_α and node β𝛽\betaitalic_β;
               
                end if
               
                end for
               
                end for
               //Sequence Extension for each node α𝛼\alphaitalic_α in LexicographicTree𝐿𝑒𝑥𝑖𝑐𝑜𝑔𝑟𝑎𝑝𝑖𝑐𝑇𝑟𝑒𝑒LexicographicTreeitalic_L italic_e italic_x italic_i italic_c italic_o italic_g italic_r italic_a italic_p italic_h italic_i italic_c italic_T italic_r italic_e italic_e do
                     for brother nodes β𝛽\betaitalic_β of node α𝛼\alphaitalic_α (or node α𝛼\alphaitalic_α itself) do
                          if  concatenating node α𝛼\alphaitalic_α and (node β𝛽\betaitalic_β or node α𝛼\alphaitalic_α) ¿= T𝑇Titalic_T then
                               LexicographicTree𝐿𝑒𝑥𝑖𝑐𝑜𝑔𝑟𝑎𝑝𝑖𝑐𝑇𝑟𝑒𝑒LexicographicTreeitalic_L italic_e italic_x italic_i italic_c italic_o italic_g italic_r italic_a italic_p italic_h italic_i italic_c italic_T italic_r italic_e italic_e¡- concatenating node α𝛼\alphaitalic_α and (node β𝛽\betaitalic_β or node α𝛼\alphaitalic_α);
                               end if
                              
                               end for
                              
                               end for
Extract all nodes as patterns
ALGORITHM 1 FAST (Salvemini et al., 2011) based pattern tree algorithm

Refer to caption

Figure 6. Pattern-tree construction

4.3. Pattern Learning Module

To overcome the limitation of the association rule mining (that is, lower recognition accuracy than the graphical model), the sequential pattern learning module derives patterns which describe temporal orders between causal relations for richer representation. For that purpose, we leverage the pattern-tree algorithm (Salvemini et al., 2011) which extracts frequent sequential patterns by the means of a growing tree structure as described in ALGORITHM 1. Pattern growth algorithms support faster performance than other sequential pattern mining algorithms since they do not need to generate a large number of candidate sets. FAST algorithm has key features such as lexicographic tree, itemset extension, and sequence extension (Salvemini et al., 2011), which resuls in more efficient and scalable performance in terms of running time and memory usage than other pattern growth algorithms.

To input preprocessed GA episodes to a pattern-tree, we sort the causal relations contained in each episode by comparing their start_time and end_time in an ascending order. Then, for each GA, a pattern-tree is constructed by recursively adding causal relations with higher support values than a predefined support threshold. To avoid underfitting and overfitting, the threshold for each GA is set to a value that keeps the number of patterns existing in each GA similar.

Figure 6 illustrates an example of the overall tree construction and patterns extraction procedure with an example GA, Seminar. We choose the support threshold value, 0.18, for Seminar, which is obtained from our experiments to get 2700 patterns (refer to Figure 10). When the construction starts, the episode storage containing a list of Seminar episodes is loaded. Then, the pattern-tree thread looks up all episodes and adds causal relations with support values higher than 0.18 to the root node. For each causal relation in depth-1, the pattern-tree thread looks up all episodes again to find the following or co-occurrence causal relations with support values higher than 0.18 and adds them as depth-2 nodes. The figure shows causal relations with temporal orders represented by line arrows and causal relations that occur together represented by dotted arrows. The pattern-tree thread continues this look-up-and-add routine until no more patterns which has a higher support value than the threshold. When the tree construction is done, all possible subsequences of causal relations on a branch are stored to the pattern storage with their support and depth values. We express causal relations that occur together are expressed in parentheses and those with temporal precedence are represented by commas.

4.4. Group Activity Recognition Module

As pattern learning is done, the group activity recognition module can recognize a test GA event sequence using the pattern storage. The test sequence goes through the preprocessing module which extracts a sequence of causal relations as in the training phase. Then, causal relations in the sequence are sorted by comparing their start_time and end_time and the group activity recognition module accept them as test data as in the pattern learning module. The module examines whether given test data corresponds to the patterns of each GA, including causality. To compute the likelihoods of stored GAs, we leverage the weight sum method of MCMC (Antunes and Oliveira, 2001) that depends on both the number of matched patterns and their weights. A given test sequence is compared to each GA’s learned patterns and the support values of matched patterns are added to the GA’s likelihood as follows:

Refer to caption

Figure 7. A pattern matching mechanism in GAR module
(4) P(X=x)=1Zeiwini(x)𝑃𝑋𝑥1𝑍superscript𝑒subscript𝑖subscript𝑤𝑖subscript𝑛𝑖𝑥P(X=x)=\frac{1}{Z}e^{{\sum_{i}}{w_{i}}{n_{i}}{(x)}}italic_P ( italic_X = italic_x ) = divide start_ARG 1 end_ARG start_ARG italic_Z end_ARG italic_e start_POSTSUPERSCRIPT ∑ start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT italic_w start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT italic_n start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT ( italic_x ) end_POSTSUPERSCRIPT

, where P(X = x) is the likelihood of a GA x, Z is a normalization factor. The normalization helps to avoid an error-prone situation in which all test sequences are recognized as a GA with high-support patterns in average. i𝑖iitalic_i is the identifier of a pattern expressed as a number, wisubscript𝑤𝑖w_{i}italic_w start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT is the support value of a matched pattern, and nisubscript𝑛𝑖n_{i}italic_n start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT is a Boolean function, defined as follows:

(5) ni(x)={0,if ith pattern of GA x is not matched1,otherwisesubscript𝑛𝑖𝑥cases0if superscript𝑖𝑡 pattern of GA 𝑥 is not matched1otherwise{n_{i}}{(x)}=\begin{cases}0,&\text{if }i^{th}\text{ pattern of GA }x\text{ is % not matched}\\ 1,&\text{otherwise}\end{cases}italic_n start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT ( italic_x ) = { start_ROW start_CELL 0 , end_CELL start_CELL if italic_i start_POSTSUPERSCRIPT italic_t italic_h end_POSTSUPERSCRIPT pattern of GA italic_x is not matched end_CELL end_ROW start_ROW start_CELL 1 , end_CELL start_CELL otherwise end_CELL end_ROW

Figure 7 shows how the pattern matching process works. CR represents a causal relation and the relationships between causal relations are expressed as temporal orders (e.g. CR1 & CR3, CR2 & CR3) or co-occurrences (e.g. CR1 & CR2). Given test data is matched to Pattern1 and Pattern3 because CR3 appears later than CR1 or CR2. However, in the case of Pattern2, the test data can not be matched since CR3 does not occur before CR1. The support values of Pattern1 and Pattern3 are applied to equation 4 as weights and we can obtain the probability of the test data.

After all probabilities for each GA are calculated using equation 4, the most probable GA is recognized as a result.

5. experiment results

5.1. Experiment Overview

We conduct experiments in a testbed in our university, a meeting room where we install various sensors and smart objects for capturing everyday usages. We intend to evaluate the proposed scheme in terms of group activity recognition (GAR) accuracy, runtime performance, and robustness in a real environment where data is missing or false values are generated due to errors or malfunctions of some pervasive sensors or actuators, compared with three existing schemes, Association Rule Mining (Bourbia et al., 2016), CRP-based ITBN (Liu et al., 2016) and HMM (Eddy, 1996). In the following subsections, we first explain the hardware and software configurations for our experiments. Then, we describe the experiment results in detail in terms of three metrics above. For accuracy evaluation, we analyze how the proposed scheme supports both causality and structural flexibility impact accuracy in comparison to the existing schemes. We also measure the runtime performance of each scheme and show that the proposed scheme performs with less computation overhead even if the number of event episodes increases, required for better accuracy. As to prove tolerance to missing or false data, we show that the recognition accuracy of the proposed scheme degrades much less than the graphical model-based scheme. To verify the scalability of our scheme in other smart spaces, we also evaluate the accuracy of the proposed scheme and the existing ones with CASAS datasets (Singla et al., 2009a, b). Finally, we discuss the remaining issues that affect the recognition accuracy and further improvement points.

Refer to caption

(a) Smart objects installation in an IoT testbed       (b) Types of events generated by smart objects

Figure 8. Pervasive sensor space testbed construction

Refer to caption

Figure 9. Deployed smart objects in an IoT testbed

5.2. Experiment Setup

We conduct our experiments on Intel Xeon CPU E5-2620 v3 (2.4GHz), 16GB RAM, and Window 10 pro OS. For a comparative experiment, we implement our scheme and the three schemes mentioned above in Java. As inputs, the tuples of events (start time, end time, event type) are given to our scheme, the CRP-based ITBN scheme, and the association rule mining scheme while the timestamps of events are given to the HMM scheme. For preprocessing modules, Allen’s all temporal relations are applied to our scheme and the CRP-based ITBN scheme, while six temporal relations without ‘After’ relation are applied to the association rule mining scheme. To implement each pattern learning module, we leverage well-known open source java libraries as follows: SPMF (SPMF, 2017) for sequential mining of our scheme and the association rule mining scheme, datumbox (Datumbox, 2014) for the CRP-based ITBN scheme, and wiigee (Wiigee, 2009) for the HMM scheme. For activity recognition modules, we implement the weighted sum method for our scheme and the association rule mining scheme. We leverage the inference packages in (Datumbox, 2014; Wiigee, 2009).

We install twenty-three smart objects units in our testbed which produce nine different types of events. Figure 8-(a) shows the installation configuration of smart objects in the testbed and Figure 8-(b) describes the detailed explanation of sensors and their publishing events. Figure 9 shows how pervasive sensors and actuators are implemented using Raspberry Pi 3 and commercial sensor frameworks (e.g. Phidgets (Phidgets, 2017) and DigiKey (DigiKey, 2017))

5.3. Testbed Dataset Description

Existing public datasets (Singla et al., 2009a; Opportunity dataset, 2012) for group activity recognition schemes have several limitations. First, they are generated by controlled experiments in which well-defined instructions are given to participants. It implies that they may not fully take into consideration situations that can occur in an actual system (e.g. Situations involving noise). Second, they do not involve enough pervasive sensors to keep track of various patterns in group activities. For example, CASAS group activity dataset (Singla et al., 2009a) involves only IR motion sensors and cabinet sensors as pervasive ones and Opportunity dataset (Opportunity dataset, 2012) is biased towards wearable sensors rather than pervasive sensors.

Table 1. DESCRIPTION OF TARGET GROUP ACTIVITIES

GA Category

Description

# of people Average # of events

Chatting

- A pair of people sit down nearby and have a casual conversation

2 similar-to\sim 3 19 (A : 3, P : 16)

Technical Discussion

- Using a projector to display discussion topics, many people discuss about them

4 \leq 49 (A : 7 , P : 42)

Seminar

- One or more speakers make presentations, others discuss topics of the presentations

4 \leq 47 (A : 12 , P : 35)

Group Study

- Some people study together for a long time

2 similar-to\sim 3 61 (A : 6 , P : 55)

Null

- No one exists

0 31 (A : 0 , P : 31)

* A : Actuators , P : Pervasive Sensors

To overcome such limitations and collect richer dynamics of group activity patterns, we collect 3,466,339 IoT sensor records for 14 months from our testbed where students and faculty members conduct actual group activities. We translate the collected raw data into event level according to changes of raw data values. As shown in Figure 8, each sensor publishes raw data when the sensor state changes or according to a fixed interval and convert to event data. We choose five dominant GAs conducted by users which are defined in TABLE 1 and we use 428 episodes of those GAs in total for learning and recognizing in experiments.

5.4. Experiment Results: Accuracy with our testbed dataset

5.4.1. Optimal number of rules

As mentioned in Section 4.3, we determine the support threshold of each GA such that all GAs will have the same number of learned patterns. Finding the optimal number of patterns is important to avoid underfitting or overfitting problems. We conduct an accuracy experiment by varying the number of patterns from 100 to 4000 as shown in Figure 10-(a). Starting with a F1-score 0.87 in 100 patterns, the accuracy increases slightly until the number of patterns is 1700. When the number of patterns exceeds 1700, F1-score accuracy is converged between 0.94 and 0.95 until 2700 patterns. However, after then, overfitting problems occur and the accuracy decreases little by little as the number of patterns increases. The accuracy is the best with 2700 patterns and we finally set 2700 as the optimal number of patterns in our experiments. Figure 10-(b) shows the correlation between the threshold value and the number of patterns for each GA, which explains why we choose a different threshold value for each GA. The number in parentheses following a GA name in Figure 10-(b) represents the threshold value for each GA.

Refer to caption

  (a) F1-score                                           (b) Threshold

Figure 10. F1-score and threshold according to the number of patterns

Refer to caption

Figure 11. Effects of causality awareness preserving mechanisms

5.4.2. Effects of causality awareness preserving mechanisms

We evaluate the effectiveness of three causality awareness preserving mechanisms in the proposed scheme (pattern learning in Section 4.3, noise event pair removal in Section 4.2.4, and GA-specific event preservation in Section 4.2.3) in terms of accuracy by comparing five different test cases: ASSOC_RULE, SEQ_PATTERN, SEQ_PATTERN_FT, SEQ_PATTERN_GA, and SEQ_PATTERN_FT_GA. In ASSOC_RULE case, we evaluate the accuracy when frequent patterns with Allen’s temporal relations are extracted by association rule mining which does not preserve causality. SEQ_PATTERN case is to evaluate the accuracy of the pattern learning module which runs without noise event pair removal and GA-specific event preservation. To evaluate the accuracy of the causality-related preprocessing mechanisms, we design SEQ_PATTERN_FT and SEQ_PATTERN_GA cases where the noise event pair removal and GA-specific event preservation are applied to the pattern learning module, respectively. In SEQ_PATTERN_FT_GA case, all proposed mechanisms are included and causality awareness is the most well preserved among all cases. The comparison results are shown in Figure 11.

SEQ_PATTERN, SEQ_PATTERN_FT, SEQ_PATTERN_GA, and SEQ_PATTERN_FT_GA improve accuracy by 14%, 25%, 32%, and 39%, respectively, compared to ASSOC_RULE. Accuracy is improved in SEQ_PATTERN for all GAs since causality makes learned patterns more descriptive by ordering temporal relations and eventually distinguishes GAs better. Especially, the accuracy of Chatting, Technical Discussion and Group Study is drastically improved since users conduct similar activities yet in different orders when performing those GAs.

In SEQ_PATTERN_FT, the proposed filtering mechanism removes the pairs of events that do not affect each other (i.e. no causality) and frequently appear such as ‘After(sound, sound)’. Such event pairs are not informative but disturb GA recognition because they can overwhelm other important event pairs. The evaluation results show that improvement by filtering out non-causal event is achieved in all GAs (11% improvement in average compared to SEQ_PATTERN). In SEQ_PATTERN_GA, GA-specific events are emphasized (i.e. scale-up) such that they can be recognized as important patterns. The accuracy of Technical Discussion and NULL considerably increase since the GA-specific event preservation mechanism enables ‘Project ON’ or ‘Light OFF’ events to be notable in the learned patterns.(18% improvement in average compared to SEQ_PATTERN). SEQ_PATTERN_FT_GA takes all advantages of three mechanisms and draws significant improvement on GA recognition accuracy.

Table 2. RECOGNITION ACCURACY COMPARISON RESULTS
Group Proposed Scheme Association Rule Mining CRP-based ITBN HMM Activities S R F1 S R F1 S R F1 S R F1 Chatting 0.96 0.94 0.92 0.86 0.82 0.75 0.97 0.65 0.75 0.93 0.56 0.65 Technical Discussion 0.99 0.94 0.94 0.95 0.52 0.55 0.95 0.67 0.66 0.94 0.62 0.60 Seminar 0.99 0.99 0.99 0.97 0.73 0.82 0.86 0.79 0.75 0.91 0.76 0.78 Group Study 0.98 0.73 0.77 0.96 0.38 0.42 0.95 0.49 0.48 0.84 0.67 0.41 Null Task 0.99 0.99 0.99 0.93 0.97 0.86 0.96 0.99 0.93 0.95 0.61 0.67 Average 0.99 0.95 0.95 0.94 0.74 0.74 0.94 0.76 0.76 0.91 0.65 0.65
* S : Specificity, R : Recall, F1 : F1-score

5.4.3. Comparison with other schemes

To assure that the proposed scheme recognizes group activities better than the existing ones, we conduct a leave-one-out cross validation to learn as many types of activity patterns as possible because of group activities’ complexity. We use specificity, recall, precision and F1-score as recognition accuracy measures. As shown in TABLE 2, the proposed scheme performs better than the existing ones, Association Rule Mining (Bourbia et al., 2016), CRP-based ITBN (Liu et al., 2016), and Hidden Markov Model (HMM) (Eddy, 1996), in terms of all accuracy measures. The proposed scheme improves the F1-score by 21%, 19%, and 30% compared to association rule mining scheme, CRP-based ITBN scheme, and HMM scheme in average, respectively. Recall and F1-score have the same value in all schemes because the same equation is derived when ΣΣ\Sigmaroman_Σ assigns to each of element (e.g. TP𝑇𝑃TPitalic_T italic_P = iTPisubscript𝑖𝑇subscript𝑃𝑖{\sum_{i}}{TP_{i}}∑ start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT italic_T italic_P start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT). In specificity measure, the proposed scheme performs 5%, 5%, and 8% better than the other ones.

The proposed scheme aims to improve recognition accuracy by preserving potential temporal event orders. We validate the impact of adding causality for better recognition rates, compared to the existing pattern-based models. The proposed scheme shows a significantly higher F1-score in all GAs than the association rule mining scheme. The proposed scheme shows much higher scores in specificity value for Chatting (0.96) and in recall rate for Technical Discussion (0.94) , Seminar (0.99) and Group Study (0.73) than the existing scheme. This implies that many test event sequences of Technical Discussion, Seminar and Group Study are less recognized as Chatting in the proposed scheme compared to related work. Our scheme preserves causality so that the patterns of Chatting are distinct from patterns of other GAs. Also, our scheme less recognize test event sequences of Seminar as Technical Discussion. According to the GA definitions in TABLE 1, Seminar is different from Technical Discussion in that the former has a main speaker and a projector (i.e. GA-specific event) is used for presentation. Preserving an order between events makes it possible to differentiate similar situations of those GAs like speakers taking turns in order (Seminar) from others where discussion participants are joining and leaving the room during discussion with projector (Technical Discussion). The proposed scheme extracts more GA-unique patterns for five activities used in our experiment as shown in Figure 12 and it leads to a high recognition rate than the association rule mining scheme.

Refer to caption

Figure 12. Ratio of each GA’s unique patterns

Note that the proposed scheme recognizes all GAs better than the CRP-based ITBN scheme which is the best accuracy method among graphical models. It is because our test data include event sequences that do not exactly match with the ones obtained from the training data. Especially, the specificity value for Seminar (0.99) and the recall rates for all GAs of the proposed scheme are higher than those of the CRP-based ITBN scheme. This corresponds to why the proposed scheme less mistakes Seminar test event sequences for other GAs than the CRP-based ITBN scheme. The detailed explanation on this will be given in the following Section 5.6. As described in the Section 4.2.4, the proposed scheme handles concurrent events using Allen’s temporal model. It allows the proposed scheme to perform better than Hidden Markov Model (HMM) in all accuracy measure scores.

5.5. Experiment Results: Runtime Performance

We measure the run-time performance of the proposed scheme and the existing ones as the number of GA episodes increases. Since any GA is hardly trained with less than 30 episodes, we increase the number of episodes from 30 to 150. We randomly select required number of episodes from 150 episodes and repeat this process multiple times. The mean values of the results are shown in Figure 13. As shown in Figure 13-(a), the proposed scheme and the association rule mining scheme consumes a relatively constant amount of computation while the execution time of CRP-based ITBN scheme and HMM scheme continuously increases. The proposed scheme takes a little more time than the association rule mining scheme since it involves causality handling.

Figure 13-(b) shows that all schemes reach maximum accuracy as the data size is larger than 100. This convergence implies that the accuracy results from Table 2 hold even with a larger dataset. We also observe that the proposed scheme reaches the accuracy convergence point earlier than other schemes as shown in Figure 13. We can obtain an accuracy of 0.78 with only 30 training data and can get above 0.9 F1-score when training with more than 60 episodes. This shows that the proposed scheme can guarantee better accuracy than the graphical models with less run-time overhead.

Refer to caption

   (a) A comparison of runtime                                    (b) A comparison of accuracy

Figure 13. Comparisons of runtime and accuracy form 30 to 150 training data

5.6. Missing and False Data Tolerance: vs. CRP-based ITBN scheme

GAR solutions for a pervasive sensor space should be robust and cope with the dynamic nature of pervasive sensors data such as missing or false values. The proposed scheme’s key improvement over the graphical model is its flexible representation and we leverage this flexibility to enhance the tolerance of missing or false data. We refer to an episode that includes missing or false event values as a noisy episode. The observation in our testbed for six months confirms that such noisy episodes often happen in a real environment. We increase the noisy episode ratio in the training dataset to 10%, 20%, 30% and 40% and compare the performance degradation tendency of the proposed scheme and the CRP-based ITBN scheme. Figure 14 shows that F1-scores decrease as the noise data ratio (i.e. the percentage of episodes with random missing or false data among all episodes) increases. In average, the F1-score degradation ratio of the proposed scheme is 0.015 per 10% noise data, while that of the CRP-based ITBN scheme is 0.0425. This result indicates that the proposed scheme is more robust than the graphical model by almost three times.

Refer to caption

Figure 14. A noise analysis result by increasing the number of noisy data

The faster performance degradation of the CRP-based ITBN scheme is caused by its structural characteristics. When some false events are injected or some events are missed to a training event sequence, it disrupts the state transitions which are supposed to be extracted as frequent patterns. The more noisy episodes are added, the more disruptions happen. On the other hand, the proposed scheme performs the flexible computations of temporal and causal relations between event pairs with little disruptions even if false events are added or some events are missed to the training event sequences.

Table 3. RECOGNITION ACCURACY COMPARISON RESULTS (CASAS group activity dataset)
Group Proposed Scheme Association Rule Mining CRP-based ITBN Activities S R F1 S R F1 S R F1 Move furniture 0.96 0.99 0.95 0.97 0.99 0.96 0.95 0.69 0.75 Play a game 0.99 0.92 0.94 0.96 0.96 0.93 0.99 0.92 0.96 Prepare for dinner 0.92 0.92 0.86 0.91 0.41 0.47 0.99 0.46 0.63 Pack a picnic 0.99 0.72 0.82 0.84 0.60 0.58 0.74 0.99 0.71 Average 0.96 0.89 0.89 0.92 0.76 0.76 0.92 0.77 0.77
* S : Specificity, R : Recall, F1 : F1-score

5.7. Experiment Results: Accuracy with CASAS datasets

To validate the scalability of the proposed scheme in terms of applicability to various environments, we conduct an additional experiment using the CASAS group activity dataset (Singla et al., 2009a) after removing users ID. The CASAS group activity dataset contains 26 episodes of four group activities: Move furniture, Play a game, Prepare for dinner and Pack a picnic. It was collected from a smart home testbed where 51 motion sensors and 15 cabinet sensors were used and two residents performed collaborative tasks together. The sensor configuration like this implies that the recognition scheme should exploit event sequences representing users’ movement paths for identifying activity patterns.

In this experiment, the same practice for measuring the accuracy in Section 5.4 is applied to the CASAS group activity dataset. Since Pack a picnic is too complicated to derive as a basic HMM model, we compare the results of ours, association rule mining scheme, and CRP-based ITBN scheme without HMM scheme as shown in TABLE 3. In summary, our scheme outperforms the other two schemes with respect to all accuracy metrics. In addition, since the dataset consists of only two sensors (motion and cabinet) with limited expression power, overall F1-scores are lower than those in Section 5.4. All three schemes recognize Play a game with high accuracy because it consists of different user movement paths compared to other group activities.

We first observe that the proposed scheme and the association rule mining scheme often recognize Pack a picnic as Prepare for dinner, which degrades corresponding recall rates down to 0.72 and 0.60, respectively. This is because incorrectly recognized episodes contain the common patterns representing both group activities, but Prepare for dinner has more GA-unique patterns. Since Pack a picnic contains much more common patterns than the other GAs, the accuracy of Pack a picnic is decreased. On the other hand, the CRP-based ITBN scheme shows a higher recall rate on Pack a picnic (0.99). This is because CRP-based ITBN scheme constructs the most various ITBN models for Pack a picnic and it makes Pack a picnic well recognized, not mistaken by other group activities. The proposed scheme recognizes Prepare for dinner much better (0.92 recall rate) than the other schemes (0.41 and 0.46). This is because the proposed scheme preserves potential temporal orders (i.e. causality) between events within patterns and it helps to distinguish user movement sequences better. Hence, the learned user movement patterns for Prepare for dinner are differentiated from those for Pack a picnic.

We also find that the recall rates of the CRP-based ITBN scheme on Move furniture (0.69) and Prepare for dinner (0.46) are much lower than the proposed scheme. This is because the scheme recognizes Move furniture and Prepare for dinner as Pack a picnic since Pack a picnic contains users’ movement paths which also belong to Move furniture and Prepare for dinner. If a test event sequence of Move furniture or Prepare for dinner has different users’ movement paths compared to the learned models, it tends to be recognized as Pack a picnic because a learned model of Pack a picnic contains such extra user movement paths. Moreover, as the number of training sets increases, even though the CRP-based ITBN models of Move furniture or Prepare for dinner include the extra user movement paths, they may be contained in the Pack a picnic CRP-based ITBN model, too. Therefore, Move furniture and Prepare for dinner are prone to be recognized as Pack a picnic. On the other hand, our scheme assigns different weights to each GA even for the same pattern. This feature enables Move furniture and Prepare for dinner to be distinguished better from Pack a picnic if the extra user movement paths are more important in those two GAs.

To verify if the proposed scheme recognizes single user-driven complex activities with high accuracy as well, we conduct one more experiment with the CASAS single user complex activity dataset (Singla et al., 2009b). In this CASAS dataset, each of twenty one single users independently performed eight activities in a random order: fill medication dispenser, wash dvd, water plants, answer the phone, prepare birthday card, prepare soup, clean and choose outfit. 51 motion sensors, 8 item sensors (attached to specific objects), 12 cabinet sensors, 2 water sensors, a burner sensor, a phone sensor and 3 temperature sensors records are collected from the testbed. Compared to CASAS group activity dataset (Singla et al., 2009a), it describes specific activities better and the proposed scheme produces higher average F1-scores (0.9) than that of another related work (Riboni et al., 2016) (0.81). This result validates that the proposed scheme accurately recognizes complex activities driven by a single user.

6. Discussions and Future Works

6.1. Improving Recognition Accuracy of Group Activities (GAs) using Activity Hierarchy

As shown in in Table 2, the proposed scheme yields a lower specificity value (0.96) for Chatting and a lower recall value (0.73) for Group Study than the other GAs. This is because some of Group Study episodes are mistakenly recognized as Chatting ones. That is, some participants in a Group Study session may focus more on chatting with other participants than just studying. This makes the proposed scheme incorrectly interpret the event sequences generated by such Chatting as important patterns for Group Study and thus the specificity of Chatting decreases. One of solutions to fix this problem could be to define a hierarchy between GAs of inclusion relationship and infer such GAs from their differences but commonalities.

6.2. Shallow vs. Deep Classifiers for Activity Recognitions

While the schemes including ours mentioned in this paper are based on shallow classifiers, deep learning architectures have been recently presented for training public large datasets in the Human Activity Recognition (HAR) domain. Krishna et al. (Krishna et al., 2018) present an LSTM network to train correlations between user activities and their durations by using a public dataset, American Time Use Survey (ATUS). The trained network predicts a sequence of next user activities with their durations. Guan et al. (Guan and Pltz, 2017) present ensemble of a set of LSTMs to learn user activity patterns from widely used wearable sensor datasets by community researchers. Ronao et al. (Ronao and Cho, 2016) use one-dimensional time-series signals from smartphones to train a Convolutional Neural Network (CNN) for user activity pattern recognition. To extend this one-dimensional data analysis to multi-modal data sources, Radu et al. (Radu et al., 2018) and Hossain et al. (Hossain et al., 2018) recently present a case study to apply deep learning techniques which features out of multi-modal sensors and perform a human activity recognition task.

However, to the best of our knowledge, no deep-learning architecture has been proposed for GAR in pervasive sensor environments. This is because while various well-structured and large-scale datasets collected from wearable devices or online social media are available for deep learning, none has been released for GAR due to privacy protection, difficulty of testbed installations, and so on. For instance, we collected pervasive sensor data streams for three different group activities for six months but only about 100 episodes can be leveraged for training group activity patterns due to privacy protection and noise filtering. By using these non-large datasets, most existing approaches and the proposed scheme show higher than or near 0.9 F1 scores even with shallow classifiers. Of course, this high recognition accuracy may come from the excellence of the schemes. However, it is also possible that the embedded variations of user behaviors in the given datasets are not rich in terms of group activity types and the number of corresponding event sequences. Even with the decent accuracy results, we cannot guarantee the dataset embraces the whole potential group activity dynamics. This is why the release of a large dataset collected for GAR in pervasive sensor spaces should be a great contribution for the community. Once this challenge is resolved and a large-scale dataset enough to encompass more group activity dynamics is widely used, many outperforming applications of deep learning techniques will advance GAR domain a lot. This is one of our currently ongoing efforts.

6.3. Future Works

As future work, we plan to advance a parameter optimization mechanism to incorporate different large datasets from different spaces flexibly. The proposed scheme has a hybrid architecture of heuristics and a data mining technique and their balance affects the recognition accuracy. The parameter N𝑁Nitalic_N to duplicate causally related event pairs is devised for the balancing purpose and a value 10101010 is assigned considering the ratio between GA-specific events and others. However, people conduct different group activities in different spaces, which requires the parameter N𝑁Nitalic_N should adapt accordingly. It is highly possible that recognition accuracy increases with a higher N𝑁Nitalic_N value when many group activities can be characterized by specific events and their states are captured as sensor events. On the other hand, when there is no GA-specific event characterizing a group activity, the N𝑁Nitalic_N value should be lower so that its impact decreases. When the dataset is large, it becomes more complicated to find the optimal balancing parameter. It requires too much overhead to manually define GA-specific events and compute their ratio to other events by looking up the whole dataset. Since domain experts or application engineers should be involved with the GA-specific event definition procedure, it is difficult to automate the optimal parameter detection. Therefore, to guarantee the current outperforming accuracy results in the presence of other large datasets, more sophisticated mechanisms should be devised in terms of flexible parameter optimization.

Furthermore, we plan to design a more sophisticated GA hierarchy including containment relationships, and devise an algorithm that recognizes the complex GAs composed of multiple sub-GAs. Several existing studies (Chen and Tong, 2014; Duong et al., 2005; Fernando et al., 2016) use activity hierarchy for activity recognition. However, they usually construct a hierarchy from raw data level to event level or event level to complex activity (i.e.group activity in our paper) level. It is not possible to directly apply their approaches to our scheme because they do not have a hierarchy handling step for the same level and are inflexible to change the number of levels. We plan to incorporate activity hierarchy into ontology and recognize GAs in the hierarchy using the relationship semantics in the ontology.

The proposed scheme has a limitation in recognizing multiple concurrent complex activities in a smart space. For example, a group of users performs Chatting and another group of users does Playing a game in the same lounge. Since we assume that users are anonymous due to privacy and accessibility issues, the data association problem (Hsu and Wang, 2008) occurs as well. Although recent studies (Liangying et al., 2018; Hande and Ersoy, 2017) have addressed multi-complex activity recognition, most of them include user information or use wearable sensors. Therefore, a study on multi-complex activity using only pervasive sensors is a natural extension to the proposed scheme and we plan to seek a solution to this by exploiting a multi-group checking process.

7. Conclusion

In this paper, we propose an efficient group activity recognition scheme based on causality-aware pattern mining in a pervasive sensor space to support high accuracy with missing or false data tolerance. To detect causally related event pairs and compute their temporal relations, we design a group activity ontology and a heuristics-based preprocessing method. For pattern learning, the proposed scheme sorts lists of preprocessed temporal-causal relations and extracts corresponding sequential patterns using the pattern-tree algorithm. For a comparative evaluation, we compare the recognition accuracy and runtime of the proposed scheme with three existing approaches, association rule mining, CRP-based ITBN, and HMM. The experiment results show that the proposed scheme outperforms the existing ones with the given dataset collected from our testbed while its run-time execution overhead does not heavily increase like CRP-based ITBN and HMM as the number of episodes gets large. In addition, to verify the proposed scheme is robust in real environments where data is missing or false values are generated, we conduct a noise analysis by adding noise data to training. The noise analysis result shows performance degradation ratio of the proposed scheme is smaller than that of the CRP-based ITBN scheme. We also prove, with the CASAS group activity dataset, the scalability of the proposed scheme in terms of applicability to various types of environments.

References

  • (1)
  • Aggarwal and (Eds.) (2012) Charu C. Aggarwal and ChengXiang Zhai. (Eds.). 2012. Mining text data. Springer Science & Business Media, New York.
  • Agrawal et al. (1993) Rakesh Agrawal, Tomasz Imielinski, and Arun Swami. 1993. Mining association rules between sets of items in large databases. Acm sigmod record 22, 2 (1993), 207–216.
  • Allen and Ferguson (1994) James F. Allen and George Ferguson. 1994. Actions and events in interval temporal logic. Journal of Logic and Computation 4, 5 (Oct 1994), 531–579. https://doi.org/10.1093/logcom/4.5.531
  • Ameen et al. (2012) Moshaddique Al Ameen, Jingwei Liu, and Kyungsup Kwak. 2012. Security and privacy issues in wireless sensor networks for healthcare applications. Journal of medical systems 36, 1 (2012), 93–101.
  • Antunes and Oliveira (2001) Claudia M. Antunes and Arlindo L. Oliveira. 2001. Temporal data mining: An overview. InKDD workshop on temporal data mining 1 (Aug 2001), 1–13.
  • Benmansour et al. (2016) Asma Benmansour, Abdelhamid Bouchachia, and Mohammed Feham. 2016. Multioccupant activity recognition in pervasive smart home environments. ACM Computing Surveys (CSUR) 48, 3 (Feb 2016), 34.
  • Bourbia et al. (2016) Amine Lotfi Bourbia, Heesuk Son, Byoungheon Shin, Taehun Kim, Dongman Lee, and Soon J. Hyun. 2016. Temporal Dependency Rule Learning Based Group Activity Recognition in Smart Spaces. Computer Software and Applications Conference (COMPSAC), 2016 IEEE 40th Annual 1 (Jun 2016), 658–663.
  • Brendel et al. (2011) William Brendel, Alan Fern, and Sinisa Todorovic. 2011. Computer Vision and Pattern Recognition (CVPR) (2011), 3329–3336.
  • Chen and Tong (2014) Rong Chen and Yu Tong. 2014. A two-stage method for solving multi-resident activity recognition in smart environments. Entropy 16, 4 (Apr 2014), 2184–2203.
  • Chiang et al. (2010) Yi-Ting Chiang, Kuo-Chung Hsu, Ching-Hu Lu, Li-Chen Fu, and Jane Yung-Jen Hsu. 2010. Interaction models for multiple-resident activity recognition in a smart home. Intelligent Robots and Systems (IROS), 2010 IEEE/RSJ International Conference on. IEEE (Oct 2010), 3753–3758.
  • Datumbox (2014) Datumbox 2014. Java implementation of Dirichlet Process Mixture Model. (2014). https://github.com/datumbox/DPMM-Clustering
  • DigiKey (2017) DigiKey 2017. DigiKey Electronics. (2017). https://www.digikey.com/
  • Duong et al. (2005) Thi V. Duong, Hung Hai Bui, Dinh Q. Phung, and Svetha Venkatesh. 2005. Activity recognition and abnormality detection with the switching hidden semi-markov model. In Computer Vision and Pattern Recognition 1 (Jun 2005), 838–845.
  • Eddy (1996) Sean R Eddy. 1996. Hidden markov models. Current opinion in structural biology 6, 3 (Jun 1996), 361–365.
  • Fernando et al. (2016) Basura Fernando, Peter Anderson, Marcus Hutter, and Stephen Gould. 2016. Discriminative hierarchical rank pooling for activity recognition. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (2016), 1924–1932.
  • Foresti et al. (2012) Gian Luca Foresti, Petri Mahonen, and Carlo S. Regazzoni. (Eds.). 2012. Multimedia video-based surveillance systems: Requirements, Issues and Solutions. Springer Science & Business Media, New York.
  • Gu et al. (2009) Tao Gu, Zhanqing Wu, Xianping Tao, Hung Keng Pung, and Jian Lu. 2009. epsicar: An emerging patterns based approach to sequential, interleaved and concurrent activity recognition. Pervasive Computing and Communications, 2009. PerCom 2009. IEEE International Conference on. IEEE (Mar 2009), 1–9.
  • Guan and Pltz (2017) Yu Guan and Thomas Pltz. 2017. Ensembles of deep lstm learners for activity recognition using wearables. Proceedings of the ACM on Interactive, Mobile, Wearable and Ubiquitous Technologies 1, 2 (2017), 11.
  • Hande and Ersoy (2017) Alemdar Hande and Cem Ersoy. 2017. Multi-resident activity tracking and recognition in smart environments. Journal of Ambient Intelligence and Humanized Computing 8, 4 (Aug 2017), 513–529.
  • Hossain et al. (2018) H. M. Hossain, M. D. Al Haiz Khan, and Nirmalya Roy. 2018. DeActive: Scaling Activity Recognition with Active Deep Learning. Proceedings of the ACM on Interactive, Mobile, Wearable and Ubiquitous Technologies 2, 2 (2018), 66.
  • Hsu and Wang (2008) Chien-Chang Hsu and Liang-Zong Wang. 2008. A smart home resource management system for multiple inhabitants by agent conceding negotiation. Systems, Man and Cybernetics, 2008. SMC 2008. IEEE International Conference on. IEEE (Oct 2008), 607–612.
  • Krishna et al. (2018) Kundan Krishna, Deepali Jain, Sanket V Mehta, and Sunav Choudhary. 2018. An LSTM Based System for Prediction of Human Activities with Durations. Proceedings of the ACM on Interactive, Mobile, Wearable and Ubiquitous Technologies 1, 4 (2018), 147.
  • Liangying et al. (2018) Peng Liangying, Ling Chen, Zhenan Ye, and Yi Zhang. 2018. AROMA: A Deep Multi-Task Learning Based Simple and Complex Human Activity Recognition Method Using Wearable Sensors. Proceedings of the ACM on Interactive, Mobile, Wearable and Ubiquitous Technologies 2, 2 (Jul 2018), 74.
  • Liu et al. (2016) Li Liu, Li Cheng, Ye Liu, Yongpo Jia, and David S. 2016. Recognizing Complex Activities by a Probabilistic Interval-Based Model. In AAAI 30 (Feb 2016), 1266–1272.
  • Liu et al. (2015) Ye Liu, Liqiang Nie, Lei Han, Luming Zhang, and David S. Rosenblum. 2015. Action2Activity: Recognizing Complex Activities from Sensor Data. IJCAI 2015 (Jul 2015), 1617–1623.
  • N3 Format (2017) N3 Format 2017. Reasoners and rule engines: Jena inference support. (2017). https://jena.apache.org/documentation/inference/
  • Opportunity dataset (2012) Opportunity dataset 2012. OPPORTUNITY Activity Recognition Data Set. (2012). https://archive.ics.uci.edu/ml/datasets/opportunity+activity+recognition
  • Pantelopoulos and Bourbakis (2010) Alexandros Pantelopoulos and Nikolaos G. Bourbakis. 2010. A survey on wearable sensor-based systems for health monitoring and prognosis. IEEE Transactions on Systems, Man, and Cybernetics, Part C (Applications and Reviews) 40, 1 (2010), 1–12.
  • Phidgets (2017) Phidgets 2017. Phidgets. (2017). https://www.phidgets.com/
  • Radu et al. (2018) Valentin Radu, Catherine Tong, Sourav Bhattacharya, Nicholas D Lane, Cecilia Mascolo, Mahesh K Marina, and Fahim Kawsar. 2018. Multimodal Deep Learning for Activity and Context Recognition. Proceedings of the ACM on Interactive, Mobile, Wearable and Ubiquitous Technologies 1, 157 (2018). Issue 4.
  • Riboni et al. (2016) Daniele Riboni, Timo Sztyler, Gabriele Civitarese, and Heiner Stuckenschmidt. 2016. Unsupervised recognition of interleaved activities of daily living through ontological and probabilistic reasoning. In Proceedings of the 2016 ACM International Joint Conference on Pervasive and Ubiquitous Computing (2016), 1–12.
  • Ronao and Cho (2016) Charissa Ann Ronao and Sung-Bae Cho. 2016. Human activity recognition with smartphone sensors using deep learning neural networks. Expert Systems with Applications 59 (Oct 2016), 235–244.
  • Salton and McGill (1986) Gerard Salton and Michael J. McGill. 1986. Introduction to modern information retrieval.
  • Salvemini et al. (2011) Eliana Salvemini, Fabio Fumarola, Donato Malerba, and Jiawei Han. 2011. FAST Sequence Mining Based on Sparse Id-Lists. International Symposium on Methodologies for Intelligent Systems (Jun 2011), 316–325.
  • Singla et al. (2009a) Geetika Singla, Diane J. Cook, and Maureen Schmitter-Edgecombe. 2009a. Recognizing independent and joint activities among multiple residents in smart environments. Ambient Intelligence and Humanized Computing Journal (2009), 57–63.
  • Singla et al. (2009b) Geetika Singla, Diane J. Cook, and Maureen Schmitter-Edgecombe. 2009b. Tracking activities in complex settings using smart environment technologies. AInternational Journal of BioSciences, Psychiatry and Technology (2009), 25–35.
  • SPMF (2017) SPMF 2017. An Open-Source Data Mining Library. (2017). http://www.philippe-fournier-viger.com/spmf/index.php
  • Tapia et al. (2004) Emmanuel Munguia Tapia, Stephen S. Intille, and Kent Larson. 2004. Activity recognition in the home using simple and ubiquitous sensors. In International conference on pervasive computing (Apr 2004), 158–175.
  • Wang et al. (2011) Liang Wang, Tao Gu, Xianping Tao, Hanhua Chen, and Jian Lu. 2011. Recognizing multi-user activities using wearable sensors in a smart home. Pervasive and Mobile Computing 7, 3 (Jun 2011), 287–298.
  • Wiigee (2009) Wiigee 2009. Project: Wiigee. (2009). https://www.programcreek.com/java-api-examples/index.php?source_dir=wiigee-master/wiigee-lib/src/main/java/org/wiigee/logic/HMM.java
  • Zhang et al. (2006) Dong Zhang, Daniel Gatica-Perez, Samy Bengio, and Iain McCowan. 2006. Modeling individual and group actions in meetings with layered HMMs. IEEE Transactions on Multimedia 8, 3 (2006), 509–520.
  • Zhang et al. (2013) Yongmian Zhang, Yifan Zhang, Eran Swears, Natalia Larios, Ziheng Wang, and Qiang Ji. 2013. Modeling temporal interaction with interval temporal bayesian networks for complex activity recognition. IEEE transactions on pattern analysis and machine intelligence 35, 10 (2013), 2468–2483.
b9jWl9Esul6PZbDY9Go1OZ7PZ9z/lyuD3OozU2wAAAABJRU5ErkJggg==" alt="[LOGO]">