Egocentric Activity Recognition with Multimodal Fisher Vector

Egocentric Activity Recognition with Multimodal Fisher Vector

Abstract

With the increasing availability of wearable devices, research on egocentric activity recognition has received much attention recently. In this paper, we build a Multimodal Egocentric Activity dataset which includes egocentric videos and sensor data of 20 fine-grained and diverse activity categories. We present a novel strategy to extract temporal trajectory-like features from sensor data. We propose to apply the Fisher Kernel framework to fuse video and temporal enhanced sensor features. Experiment results show that with careful design of feature extraction and fusion algorithm, sensor data can enhance information-rich video data. We make publicly available the Multimodal Egocentric Activity dataset to facilitate future research.

Egocentric Activity Recognition with Multimodal Fisher Vector

Sibo Song, Ngai-Man Cheung, Vijay Chandrasekhar, Bappaditya Mandal, Jie Lin
Singapore University of Technology and Design, Institute for Infocomm Research, Singapore


Index Terms—  Multimodal Egocentric Activity dataset, Egocentric activity recognition, Multimodal Fisher Vector

1 Introduction

Egocentric or first-person activity recognition has attracted a lot of attention. The ever-increasing adoption of wearable devices such as Google Glass, Microsoft SenseCam, Apple Watch and Mi band facilitates low-cost, unobtrusiveness collection of rich egocentric activity data. These devices can monitor activities and gather data anytime from anywhere. The egocentric activity data is helpful in many applications ranging from security, health monitoring, lifestyle analysis to memory rehabilitation for dementia patients.

Research on automatic egocentric activity recognition has been focusing on using two broad categories of data: low-dimensional sensor data and high-dimensional visual data. Low-dimensional sensor data such as GPS, light, temperature, direction or accelerometer data has been found to be useful for activity recognition [1, 2, 3, 4, 5]. [2] proposes features for egocentric activity recognition computed from cell-phone accelerometer data. They reported over 90% accuracy for 6 simple activities. [3] reported more than 80% accuracy for 9 activities with sensors located at two legs. Low-dimensional sensor data can be collected and stored easily, and the computational complexity of the recognition is usually low.

More recently, there is a lot of interests to perform egocentric activity recognition using high-dimensional visual streams recorded from individuals’ wearable cameras. Compared to low-dimensional sensor data, visual data captures much richer information: scene details, people or objects the individual interacts, for example. Therefore, several egocentric video datasets and approaches have been proposed to recognize complex activities. Among them, some previous works focus on extraction of egocentric semantic features like object [6, 7], gestures [8] and object-hand interactions [9] or discriminative features[10]. Recently, trajectory-based approach [11] has been applied to characterize ego-motion in egocentric videos, and encouraging results have been obtained for activity classification [12].

Previous work has investigated egocentric activity recognition using either low-dimensional sensor data or high-dimensional visual data. To the best of our knowledge, there is no previous work to study the potential improvement with using both the sensor and visual data simultaneously. To address this research gap, we make several novel contributions in this work.

First, we build and make publicly available a challenging Multimodal Egocentric Activity dataset111Dataset:http://people.sutd.edu.sg/ 1000892/dataset that consists of 20 complex and diverse activity categories recorded in both sensor and video data. The sensor and video data are recorded in a synchronized and integrated manner to allow new algorithms to explore them simultaneously. Second, we propose a novel technique to fuse the sensor and video features using the Fisher Kernel framework. Fisher kernel combines the strengths of generative and discriminative approaches[13, 14]. In this work, we propose a generative model for the sensor and video data. Base on the model, we apply Fisher kernel framework to compute multimodal feature vectors for a discriminative classifier. We refer the determined multimodal feature vectors as Multimodal Fisher Vector (MFV). Third, we perform comprehensive experiments to compare the performance of different approaches: sensor-only, video-only, and the fusion of both.

The rest of this paper is organized as follows. In Section 2 we present our Multimodal Egocentric Activity dataset. The methodology is described in Section 3. Experimental evaluation is presented in Section 4 and we conclude the work in Section 5.

2 Multimodal Egocentric Activity Dataset

(a)
(b)
Fig. 1: (a) Sample frames from videos (b) Activity categories

To record multimodal egocentric activity data, we created our own application that runs on Google Glass. This application enables us to record egocentric video and sensor data simultaneously in a synchronized manner. The following types of sensor data are supported on the glass: accelerometer, gravity, gyroscope, linear acceleration, magnetic field and rotation vector. These sensors are integrated in the device and they can help capturing accurate head motion of individuals when they are performing different activities.

The Multimodal Egocentric Activity dataset contains 20 distinct life-logging activities performed by different human subjects. Each activity category has 10 sequences. Each clip has exactly a duration of 15 seconds. The activity categories are listed in Fig.(b)b. Sample frames of writing sentences, organizing files and running are shown in Fig.(a)a. These categories can be grouped into 4 top level types: Ambulation, Daily Activities, Office Work, Exercise. Subjects have been instructed to perform activities in a natural and unscripted way.

The dataset has the following characteristics. Firstly, it is the first life-logging activity dataset that contains both egocentric video and sensor data which are recorded simultaneously. Secondly, the dataset contains considerable variability in scenes and illumination. Videos are recorded both indoor and outdoor, with significant change in the illumination conditions. For instance, the walking routes are in various environments, such as residential areas, campus, shopping mall, etc. Thus even though different subjects do the same activity, their background varies. Thirdly, we build a taxonomy based on the categories shown in Fig.(b)b. All 20 categories can be grouped into 4 top level types. This allows evaluation of new visual analysis algorithms against different levels of life-logging activity granularity.

3 Methodology

In this section, we describe egocentric video and sensor feature extraction. Furthermore, we present a simple but effective way to encode temporal information in sensor features. In the end, we propose a Multimodal Fisher Vector approach for combining video and sensor features.

3.1 Video trajectory features

We evaluate state-of-the-art trajectory-based activity recognition on egocentric videos in our own dataset. The dense trajectory approach we used has already been applied to third-person view activity recognition in [11]. Dense trajectory approach is applied instead of improved trajectory approach [15] because dense trajectory could capture more ego-motion information in egocentric videos.

Dense trajectories are obtained by tracking densely sampled points using optical flow fields. Foreground motions, background motions and head movements are extracted using this approach. Several kinds of descriptors are computed for each trajectory and their characteristics are discussed in [11]. Trajectory is a concatenation of normalized displacement vectors. The other descriptors like MBH (motion boundary histograms) are computed in the space-time volume aligned with the trajectory. These descriptors are commonly used for activity recognition nowadays. Then we applied Fisher kernels on trajectory features as in [12], where the trajectory features are represented by means of a Gaussian Mixture Model (GMM).

3.2 Temporal enhanced trajectory-like sensor features

In this section, we establish a novel strategy to convert sensor time-series data into trajectory-like feature. And then temporal order is introduced to enhance sensor feature.

Trajectory-like features In video analysis, dense trajectories are computed by tracking densely sampled points using optical flow fields. Similarly, we firstly convert time-series data of sensors into trajectory-like data. So a sliding window is required to generate trajectory of sensor data (See Fig.2). For example, we build a window of 10 samples to extract a trajectory of length equals to 10 and then move the window one frame forward and extract another trajectory. This process could be done until end of the file and thus we could generate many trajectories for sensor data.

Fig. 2: Illustration of temporal enhanced trajectory-like sensor features. (Color of windows indicates similar patterns)

Temporal enhanced sensor features Generally, in image processing, Fisher vector encoding is an orderless approach because it represents an image as an orderless collection of features. While, for sensor data processing, the temporal order of trajectory-like data or patterns could be significantly different in recognizing two activities. However, we do not want timestamp of each trajectory to be included since patterns do not hold exact correspondence in time sequences for one activity. If we simply add timestamp as one more dimensional data, noises could also be added into sensor features. Because essentially the precise timing of a pattern does not matter. While, in some cases, the order of patterns or the stage of pattern occurrence plays an major role in differentiating two distinct activities.

To overcome the difficulty, we segment the time-series data into several stages to avoid fine-grained windows. And then these segments are indexed starting from which represents their temporal orders as Fig.2 shows. Then the trajectory-like features inside each part is associated with their normalized temporal order. It turns out to be effective with this quantization strategy for activity recognition using sensor data.

3.3 Multimodal Fisher Vector

In this section, we construct a Multimodal Fisher Vector (MFV) which utilizes the Fisher Kernel framework to combine video trajectory features and temporal enhanced sensor features extracted from a clip. Fisher Kernel has been introduced to combine the benefits of generative and discriminative approaches [13]. The idea is to characterize signals with a gradient vector derived from a pdf which models the generating process of the signal. In our case, the signal is the tuple , being the video trajectory feature and being the associated temporal enhanced sensor feature. The generative model of will be discussed later.

Let be a pdf with a parameter set . Under the framework, one can characterize features with the following gradient vector:

(1)

To illustrate MFV, we first consider video features codebook generated by a Gaussian Mixture Model (GMM). denotes the set of trajectory features extracted from videos and the set of parameters of the GMM. where ,, and denote respectively the weight, mean vector and covariance matrix of Gaussian and denotes the number of Gaussian. We assume diagonal . The likelihood that the observation was generated by GMM is:

(2)

the weights are subject to the constraint: . The components are given by:

(3)

where is the dimensionality of the video feature vectors and denotes the determinant operator.

We parameterize , which avoids enforcing explicitly the constraints. With to denote the posterior , or responsibility, and to denote , the gradients of the log-likelihood for a single trajectory feature are,

(4)
(5)
(6)

denotes element-wise square. The representation is obtained by averaging these gradients over all .

To generate MFV, we apply a single Gaussian as the generative model for sensor features with the same label . To assign to sensor features, we first regard GMM as the basic bag-of-words model by labeling the video feature points according to their largest . It means we use the sensor patterns which has the same starting time with video trajectories in video codebook to build sensor codebook instead of using GMM. The intuition is that the visual trajectories can be associated with sensor trajectory-like features by establishing relationship between two modalities’ codebooks. In other words, one single Gaussian of sensor trajectory-like features is built based on each Gaussian of video trajectory features when constructing the codebook for sensor features.

Each sensor feature could correspond to multiple video trajectories, because a lot of video trajectories could be generated for each frame. So we use max pooling to assign label to the sensor data. Each vector is then represented as the tuple , where is the label and is the sensor feature associated with temporal order. We then define a generative model over the tuple as,

(7)
(8)
(9)

It can be shown that the gradients of the log-likelihood of sensor features have similar representation as video trajectory features, i.e., (5), (6). We assume that the video feature and sensor feature are independent conditioning on . We use the following as the generative model for :

(10)

is defined exactly the same as in (3) and as in (9). The MFV has size where is the reduced dimensionality of video trajectory feature using Principal Component Analysis (PCA), and the reduced dimensionality of temporal enhanced sensor trajectory-like feature.

4 Experimental Evaluation

In this section, we first describe our experiment setup. In addition, we study the parameter setting for temporal enhanced trajectory-like sensor feature. Then we evaluate the performance of our MFV method on our dataset. We present and discuss the results for activity recognition task using MFV.

4.1 Experiment setup

In our experiment, the dimension of videos is and frame rate is fps. For sensor data, in total, there are dimensions of sensor data including accelerometer, gravity, gyroscope, linear acceleration and magnetic field and rotation vector. And in all cases, we collected sensor data in Hz.

The number of Gaussian is set to for video data and we randomly sample a subset of of all samples to estimate GMM for building codebook. The dimensionality of the feature is reduced by half using PCA. Finally, we apply power and normalization to MFV as in [16]. The cost parameter is used for linear Support Vector Machine (SVM) and one-against-rest approach is utilized for multi-class classification. We use libsvm library [17] to implement the SVM algorithm.

4.2 Parameter setting

(a)
(b)
Fig. 3: Comparison of FVS and TFVS with (a) different (b) different

Here, we conduct an experiment to select the window size and number of clusters in GMM process since these parameters are crucial in trajectory-like sensor features generation.

We choose a moderate number of segments which is for indexing temporal orders. In Fig.3 we show that with window size and number of clusters we could obtain the best result. We compare temporal enhanced sensor Fisher vectors (TFVS) and normal sensor Fisher vectors (FVS) with different parameters. It indicates that usually TFVS outperforms FVS with carefully-selected parameters. And then to evaluate MFV, we also choose for sensor trajectory-like feature.

An important observation here is that usually we do not need large and . The setting is able to provide enough statistics of different patterns. We notice that achieves the best performance for both FVS and TFVS which makes intuitive sense since sensor data has only dimensions in each recording which are much smaller compared to video features and, therefore, it does not need a large to encode the information. This is desirable, because the smaller used, the less storage GMM models take and the faster the computation goes when utilizing TFVS for encoding.

4.3 Evaluation of temporal enhanced sensor Fisher Vector

We evaluate the proposed TFVS on sensor data in our dataset. To provide comprehensive analysis of different approaches, we further compare the results of the proposed approach with FVS and other methods on activity recognition.

Fig.(a)a provides the confusion matrix on classifying sensor data using TFVS. The indices of activities are shown in Fig.(b)b. We notice that TFVS performs well as expected for some low-level activities like Ambulation and Exercise. While for other high-level activities like organizing files, the accuracies are around only. We believe this is due to the fact that sensor data can only capture the head motion and cannot analyze the details of scene or objects. Note that, TFVS outperforms FVS which confirms that the temporal enhanced method is effective.

SVM22footnotemark: 2 Decision Tree222feature-based approach in [2] FVS TFVS
Accuracy 47.75% 51.80% 65.60% 69.00%
FVV FVV + FVS FVV + TFVS MFV
Accuracy 78.44% 80.45% 82.20% 83.71%
Table 1: Comparison of different methods

Comparison with feature-based approach on sensor data We evaluate a system that uses phone-based accelerometers and feature-based technique from [2] to compare with our TFVS. Features are extracted by calculating statistics like average value, standard deviation and designing other features like time between peaks. Then informative features based on raw accelerometer readings are generated. We choose decision trees and SVM to evaluate these features. The results are reported in Table 1. We can see that our approach outperforms feature-based approach with both SVM and decision tree classifiers. Because these features are mostly global statistics. While usually only some repeated patterns of the signal that can tell what activity it is. Our TFVS makes use of windows to extract the interesting parts. And with temporal orders, it can get more detailed information for these patterns.

4.4 Evaluation of Multimodal Fisher Vector

We conduct experiments to confirm superiority of our MFV representation over both FVV and TFVS, as well as a simple concatenation of these two vectors. We also discuss the behavior of the MFV on our dataset, particularly on some categories.

The classification accuracy of normal video Fisher vectors (FVV) is reported in Table 1. By examining the performance of different categories using FVV, we can find that the accuracy of making phone calls is which is the lowest in Fig.(b)b. Videos of making phone calls activity are often mis-classified into sitting and drinking. In fact, for making phone calls, it is hard to recognize even for human beings since there is hardly any object appearance in the scene.

(a)
(b)
(c)
Fig. 4: Confusion matrices of (a) TFVS (b) FVV (c) MFV

Fig.(c)c shows the confusion matrix for recognizing activities using MFV. Actually, it looks similar with confusion matrix for FVV. While there are still improvements, because sensors can provide accurate data for slight head motion. By comparing confusion matrices of FVV and MFV, we observe that the largest improvements occur in making phone calls (), working at PC () and walking downstairs (). For making phone calls, it is difficult for visual-based approaches to classify since there is hardly any object appearance in subjects’ view. And with temporal enhanced sensor data, we can find that there does exist some patterns for head movement while making phone calls which is a very interesting observation. And for working at PC, we believe that video trajectory approach is confused by some movements on the monitors. These results again confirm that our MFV approach performed better than FVV and it is more accurate and stable.

From Table 1, we are able to observe that our MFV performs superior to concatenation of FVV and FVS and even concatenation of FVV and TFVS which has an accuracy of . The results suggest that MFV is a better representation to combine video and sensor data. Intuitively, the single Gaussian model takes advantage of detailed sensor statistics in each cluster of GMM built for video trajectory features. Furthermore, there is a possibility of extending single Gaussian model to multiple Gaussian models in order to improve the accuracy.

4.5 Computational cost

From Table 1, we can see that by encoding temporal enhanced sensor features, we could improve the accuracy from to . And this is helpful especially when computing Fisher vector on sensor data is extremely fast since its volume is quite small compared to video data. In practical, generating trajectory features and calculating FV on all videos in the dataset takes about 3 hours, while it only takes less than 1 minute for all sensor data. And with only TFVS we could obtain an accuracy of even for 20 categories, which already satisfies the needs of some applications.

Therefore, there is no single perfect answer. Depending on particular application and requirement, we could choose different solutions. MFV usually provides the best performance, while it is expensive for processing. In some cases, TFVS can achieve satisfactory performance with limited computational ability.

5 Conclusions

We built a challenging Multimodal Egocentric Activity dataset which is recorded with videos and sensor data. The dataset contains a variety of scenes and personal styles, capturing the diversity and complexity of life-logging activities. We performed a detailed evaluation of state-of-the-art trajectory-based technique on videos and achieve accuracy around . We propose a novel technique to incorporate temporal information into trajectory-like sensor data. Our TFVS outperforms the basic feature-based approach significantly and also the FVS. More importantly, we propose to apply Fisher Kernel framework to fuse sensor and video data. We improve the performance from to by utilizing MFV for egocentric activity recognition at a low cost.

References

  • [1] Hamed Rezaie and Mona Ghassemian, “Implementation study of wearable sensors for activity recognition systems,” Healthcare Technology Letters, vol. 2, no. 4, pp. 95–100, 2015.
  • [2] Jennifer R Kwapisz, Gary M Weiss, and Samuel A Moore, “Activity recognition using cell phone accelerometers,” ACM SigKDD Explorations Newsletter, vol. 12, no. 2, pp. 74–82, 2011.
  • [3] Donghai Guan, Weiwei Yuan, Young-Koo Lee, Andrey Gavrilov, and Sungyoung Lee, “Activity recognition based on semi-supervised learning,” in Embedded and Real-Time Computing Systems and Applications, 2007. RTCSA 2007. 13th IEEE International Conference on. IEEE, 2007, pp. 469–475.
  • [4] Uwe Maurer, Asim Smailagic, Daniel P Siewiorek, and Michael Deisher, “Activity recognition and monitoring using multiple sensors on different body positions,” in Wearable and Implantable Body Sensor Networks, 2006. BSN 2006. International Workshop on. IEEE, 2006, pp. 4–pp.
  • [5] Adil Mehmood Khan, Ali Tufail, Asad Masood Khattak, and Teemu H Laine, “Activity recognition on smartphones via sensor-fusion and kda-based svms,” International Journal of Distributed Sensor Networks, vol. 2014, 2014.
  • [6] Hamed Pirsiavash and Deva Ramanan, “Detecting activities of daily living in first-person camera views,” in Computer Vision and Pattern Recognition (CVPR), 2012 IEEE Conference on. IEEE, 2012, pp. 2847–2854.
  • [7] Alireza Fathi, Xiaofeng Ren, and James M Rehg, “Learning to recognize objects in egocentric activities,” in Computer Vision and Pattern Recognition (CVPR), 2011 IEEE Conference On. IEEE, 2011, pp. 3281–3288.
  • [8] Sang-Rim Lee, Sven Bambach, David J Crandall, John M Franchak, and Chen Yu, “This hand is my hand: A probabilistic approach to hand disambiguation in egocentric video,” in Computer Vision and Pattern Recognition Workshops (CVPRW), 2014 IEEE Conference on. IEEE, 2014, pp. 557–564.
  • [9] Alireza Fathi, Ali Farhadi, and James M Rehg, “Understanding egocentric activities,” in Computer Vision (ICCV), 2011 IEEE International Conference on. IEEE, 2011, pp. 407–414.
  • [10] Bappaditya Mandal and How-Lung Eng, “3-parameter based eigenfeature regularization for human activity recognition,” in Acoustics Speech and Signal Processing (ICASSP), 2010 IEEE International Conference on. IEEE, 2010, pp. 954–957.
  • [11] Heng Wang, Alexander Kläser, Cordelia Schmid, and Cheng-Lin Liu, “Dense trajectories and motion boundary descriptors for action recognition,” International Journal of Computer Vision, vol. 103, no. 1, pp. 60–79, 2013.
  • [12] Sibo Song, Vijay Chandrasekhar, Ngai-Man Cheung, Sanath Narayan, Liyuan Li, and Joo-Hwee Lim, “Activity recognition in egocentric life-logging videos,” in Computer Vision-ACCV 2014 Workshops. Springer, 2014, pp. 445–458.
  • [13] Tommi Jaakkola, David Haussler, et al., “Exploiting generative models in discriminative classifiers,” Advances in neural information processing systems, pp. 487–493, 1999.
  • [14] Florent Perronnin and Christopher Dance, “Fisher kernels on visual vocabularies for image categorization,” in Computer Vision and Pattern Recognition, 2007. CVPR’07. IEEE Conference on. IEEE, 2007, pp. 1–8.
  • [15] Heng Wang and Cordelia Schmid, “Action recognition with improved trajectories,” in Computer Vision (ICCV), 2013 IEEE International Conference on. IEEE, 2013, pp. 3551–3558.
  • [16] Florent Perronnin, Jorge Sánchez, and Thomas Mensink, “Improving the fisher kernel for large-scale image classification,” in Computer Vision–ECCV 2010, pp. 143–156. Springer, 2010.
  • [17] Chih-Chung Chang and Chih-Jen Lin, “LIBSVM: A library for support vector machines,” ACM Transactions on Intelligent Systems and Technology, vol. 2, pp. 27:1–27:27, 2011.
Comments 0
Request Comment
You are adding the first comment!
How to quickly get a good reply:
  • Give credit where it’s due by listing out the positive aspects of a paper before getting into which changes should be made.
  • Be specific in your critique, and provide supporting evidence with appropriate references to substantiate general statements.
  • Your comment should inspire ideas to flow and help the author improves the paper.

The better we are at sharing our knowledge with each other, the faster we move forward.
""
The feedback must be of minimum 40 characters and the title a minimum of 5 characters
   
Add comment
Cancel
Loading ...
143038
This is a comment super asjknd jkasnjk adsnkj
Upvote
Downvote
""
The feedback must be of minumum 40 characters
The feedback must be of minumum 40 characters
Submit
Cancel

You are asking your first question!
How to quickly get a good answer:
  • Keep your question short and to the point
  • Check for grammar or spelling errors.
  • Phrase it like a question
Test
Test description