TL;DR
This paper introduces a novel method for improving temporal segmentation of photo-streams by leveraging nonlocal self-similarity, resulting in more accurate event detection in egocentric videos.
Contribution
It proposes a new approach that encodes long-range temporal dependencies using nonlocal self-similarity, enhancing existing CNN-based features for better segmentation.
Findings
Achieved an average F-measure increase of 3.71% over state-of-the-art methods.
Demonstrated consistent improvements across seven different CNN features.
Validated on the EDUB-Seg dataset for egocentric photostream segmentation.
Abstract
Temporal segmentation of untrimmed videos and photo-streams is currently an active area of research in computer vision and image processing. This paper proposes a new approach to improve the temporal segmentation of photo-streams. The method consists in enhancing image representations by encoding long-range temporal dependencies. Our key contribution is to take advantage of the temporal stationarity assumption of photostreams for modeling each frame by its nonlocal self-similarity function. The proposed approach is put to test on the EDUB-Seg dataset, a standard benchmark for egocentric photostream temporal segmentation. Starting from seven different (CNN based) image features, the method yields consistent improvements in event segmentation quality, leading to an average increase of F-measure of 3.71% with respect to the state of the art.
| base | NNF | NNFB | NNFB | NNFB | NNFB | LSTM | |
|---|---|---|---|---|---|---|---|
| line | |||||||
| L | |||||||
| NL | |||||||
| Diff. |
| base | NNF | NNFB | NNFB | NNFB | NNFB | LSTM | ||
| line | ||||||||
| User | L | |||||||
| 1-1 | NL | |||||||
| User | L | |||||||
| 1-2 | NL | |||||||
| User | L | |||||||
| 1-3 | NL | |||||||
| User | L | |||||||
| 2-1 | NL | |||||||
| User | L | |||||||
| 2-2 | NL | |||||||
| User | L | |||||||
| 2-3 | NL | |||||||
| User | L | |||||||
| 3-1 | NL | |||||||
| User | L | |||||||
| 3-2 | NL | |||||||
| User | L | |||||||
| 4 | NL | |||||||
| User | L | |||||||
| 5 | NL |
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Enhancing temporal segmentation by
nonlocal self-similarity
Abstract
Temporal segmentation of untrimmed videos and photostreams is currently an active area of research in computer vision and image processing. This paper proposes a new approach to improve the temporal segmentation of photostreams. The method consists in enhancing image representations by encoding long-range temporal dependencies. Our key contribution is to take advantage of the temporal stationarity assumption of photostreams for modeling each frame by its nonlocal self-similarity function. The proposed approach is put to test on the EDUB-Seg dataset, a standard benchmark for egocentric photostream temporal segmentation. Starting from seven different (CNN based) image features, the method yields consistent improvements in event segmentation quality, leading to an average increase of F-measure of with respect to the state of the art.
**Index Terms— ** temporal segmentation, self-similarity, nonlocal means, event representation, egocentric vision
1 Introduction
With the proliferation of wearable and smartphone cameras in recent years, the amount of untrimmed videos on internet is increasing exponentially. Consequently, we have witnessed a growing interest in developing algorithms to segment long unstructured videos into meaningful and manageable semantic units, commonly called events [1, 2, 3, 4, 5]. Event segmentation is crucial not only to video understanding but also to video browsing, indexing and summarization. Additionally, the temporal segmentation of human motion into actions is central to the understanding and building of computational models of human motion and activity recognition [6, 7]. Beside image data, time series segmentation is a core problem in data mining and machine learning with applications in several domains ranging from land cover changes tracking from remotely-sensed data [8, 9] to health monitoring with wearable sensor data streams [10, 11], to name but a few.
Roughly speaking, a temporal segmentation algorithm consists of a feature extraction step followed by the segmentation process itself that acts on the extracted features [12, 13] to detect transitions between shots. Typically, a crucial component of the temporal segmentation algorithm is a measure of dissimilarity/similarity among the extracted features.
This paper focuses on the temporal segmentation of egocentric photostreams captured by a wearable photo camera. Given the very low frame rate (2fpm), these image sequences often present abrupt appearance changes even in temporally adjacent frames that harden the task of temporal segmentation (see Fig.1). State of the art approaches have focused on the segmentation algorithm [4], or at improving the representation [5, 14, 15] by learning approaches. The aim of this paper is to explore the use of nonlocal self-similarity for temporal segmentation 111 Code available at: https://github.com/mdimiccoli/Nonlocal-self-similarity-1D. We show that it allows to capture long-range temporal dependencies over the entire sequence that, whatever are the initial features used to represent single images, leads to improved temporal segmentation performance.
The remainder of this paper is organized as follows. Section 2 provides an overview over related work, while Sections 3 and 4 are devoted to detail the proposed methodology and to report and discuss experimental results, respectively. Section 5 concludes on the present work and its contributions.
2 Related work
**Temporal segmentation of videos and photostreams. ** Classical approaches for temporal segmentation were built for videos on hand-crafted features aiming at capturing visual image content [12]. Current state of the art approaches [16, 17] use as an intermediate representation semantic features that are more invariant with respect to abrupt visual changes in the field of view. When the videos are captured by a camera worn on the head that hence moves with the wearer, motion based features have proved to be specially useful [3]. However, in the domain of egocentric photostreams, motion information is not available due to the low frame rate. Therefore, Tavalera et al. [18] focused on a new temporal segmentation algorithm based on graph-cuts and used global image features extracted through a pre-trained CNN for representing each frame. Later on, [4] improved this framework by adding a semantic level to the feature representations of egocentric photostreams. In particular, a semantic vocabulary of concepts was computed and used in addition to contextual features, where the concept scores are the confidence of the occurrence of the concepts in each frame. Paci et al. [14] proposed a similarity learning approach based on Siamese ConvNets that aims at learning a similarity function between low-resolution egocentric images. Recently, Dias and Dimiccoli [15] have proposed to learn event representations in a fully unsupervised fashion by predicting the temporal context. Specifically, they proposed a neural network model and an LSTM model performing a self-supervised pretext task consisting in predicting the concept vectors of neighbor frames given the concept vector of the current frame. This work has shown the importance of encoding the temporal context to improve event representations. A similar approach to learn feature representations with LSTM networks is proposed in [5]. Yet, unlike [15], in which the different models are learnt on-the-fly and unsupervised for single image sequences, [5] relies on a huge dataset for training the LSTM model in an unsupervised way.
**Nonlocal self-similarity. ** However, in these works, the temporal context of a frame is encoded only locally by considering its neighbors. In this paper, we built on the concept of nonlocal self-similarity at temporal level to improve event representations by encoding nonlocal temporal context. The concept was first used in [19] and has found its most prominent application in the nonlocal means algorithm for image denoising [20]. The underlying key idea is that for every small patch in an image, it is possible to find many similar patches in the same image (possibly after affine transformations); these can be used for denoising. For nonlocal means denoising, the concept was extended to 1D time series in [21]. Along a different line, Dimiccoli and Salembier [22, 23] proposed to exploit spatial nonlocal self-similarity for improving segmentation boundaries in images in the context of a hierarchical segmentation algorithm. This is achieved by modeling each pixel by its probability distribution conditioned to those of neighbor pixels. Doing so, boundary pixels are typically put together before being grouped to the object they belong to, hence ensuring the boundary smoothness.
Here, we extend this idea to temporal segmentation. To the best of our knowledge, nonlocal self-similarity has never been used to improve the segmentation of time series.
3 Methodology
3.1 Temporal nonlocal self-similarity
**Model assumptions and intuitions. ** The key assumption used in our frame modeling is that an egocentric photostream can be considered as a fairly general stationary random process, meaning that, as the length of the photostream grows, for every small temporal segment in the sequence, it is possible to find many similar temporal segments in the same sequence. This is intuitively true when looking at the semantic representations of small temporal segments, rather than the temporal segments themselves. For instance, all small temporal segments with people in a train or bus will have similar semantic features (such as appearance of a person, neon, etc. [4]), and the same is true for all small temporal segments captured while walking in the street, etc., while the images themselves can typically be very different, cf. Fig. 1 for an example.
**Self-similarity function. ** The self-similarity function is designed to quantify the similarity between frames of a temporal segment centered at and a temporal segment centered at , and is defined as follows. Let denote a vector of image features at time , , where is the length of the sequence. Further, let denote the indices of the neighboring feature vectors of . In analogy with 2D data (images) [19, 20, 23], the self-similarity function of in a temporal sequence, conditioned to its temporal neighborhood , is given by the quantity:
[TABLE]
where is the sum of the Euclidean distances of the vectors in the neighborhoods of and , is a normalizing factor such that , ensuring that can be interpreted as a conditional probability of given , as detailed in [20], and is the parameter that tunes the decay of the exponential function. Below, is fixed such that the median of over all couples equals .
**Nonlocal self-similarity features. ** The key idea in the proposed temporal segmentation approach is to use the (dis)similarity between a frame and other frames in the photostream, quantified by , as a feature for temporal segmentation. In other words, we model each frame by its associated self-similarity function : we replace the set of local features with a new set of nonlocal features
[TABLE]
where is the size of the temporal interval where self-similarity is computed. In the experiments reported below, we use all other frames of the sequence in a full nonlocal fashion, i.e., . Under the model assumptions, the similarity of and will be large if and belong to the same event, and it will be small if and belong to two different neighboring events, and this property will be exploited for temporal segmentation.
3.2 Temporal segmentation algorithm
To compute the temporal segmentation, we employed the same algorithm used in [15]. It is based on building a structured representation of a set of hierarchical partitions in which the finest level of detail is given by the initial partition of all frames. The nodes of the tree are associated to frames that represent the union of two children frames and the root node represents the entire image sequence. The tree is constructed in an ascending hierarchical fashion, in which the two temporally neighboring nodes with smallest distance between each other are united to form a new node. It is important to note that the algorithm is constrained to join only neighboring nodes to form a new node, in contradistinction with classical hierarchical clustering [15]. The union of the frames of each node is modeled as the average over the frames associated with the node, and the Euclidean norm is used as a distance between two nodes. The algorithm is here applied to the main principal components of the frames or , after standardization over the entire sequence of frames.
4 Temporal segmentation results
4.1 Dataset and features
**Dataset and performance evaluation. ** We used a subset of the EDUB-Seg dataset as in [4, 15] consisting of ten image sequences for five different users, captured by a wearable photo-camera that takes two pictures per minute, with an average of 662 images per sequence. This subset comes together with the ground truth event segmentation and concept vectors describing the probability of each concept in the image, cf. [15] for details. The event segmentation performance for the EDUB-Seg dataset is quantified using the F-measure, calculated for a tolerance of frames as in [18, 4, 14, 15, 5]. The number of temporal segments is set for each sequence separately such as to yield maximal F-measure for the sequence.
**Local features and nonlocal self-similarity. ** Here we used different features extracted from the images in [15]: CNN based features consisting of indicator vectors for concepts detected in the images [4], denoted baseline, and six sets of features embedding the local temporal context obtained in [15] by, respectively, a simple feed-forward NN (NNF), forward-backward auto-encoding NNs for different temporal depths , and an LSTM auto-encoder, cf. [15] for details. For each of these sets of features , we compute the 6 main principal components and use them as local features for event segmentation ([15] did not use PCA). Further, we compute the nonlocal self-similarity features , as defined in Sec. 3, for these local features, extract the 6 main principal components and use them as nonlocal features for temporal segmentation. The temporal patch size for computing was set to frames (i.e., ).
4.2 Temporal segmentation performance
**Illustration for a single user. ** Fig. 2 (a) plots the baseline features (top panel), and NNFB (center panel) and corresponding nonlocal features (bottom panel) for User2-3. Subplot (b) reports the temporal evolution of the corresponding 6 main principal components of these features, and in subplot (c) the Euclidean distance between neighboring frames is quantified. Visual comparison of the panels in Fig. 2 (a) indicates that baseline features suffer from quite large and abrupt sporadic changes in feature values within segments, making robust temporal segmentation difficult. While the features with local temporal context (NNF, NNFB, LSTM) improve upon this situation and display less within-event variability, their nonlocal self-similarity provides a more coherent picture of temporal evolution and clearly yields a more solid basis for temporal segmentation. Inspection of the main principal components in Fig. 2 (b) confirms this observation: baseline features display strong erratic fluctuations; features with local temporal context are still somewhat noisy; nonlocal features yield a cleaner temporal evolution. Finally, using the Euclidean norm of the difference between frames as an indicator for event boundaries, Fig. 2 (c) indicates that the improved robustness of the nonlocal features pays off in terms of temporal segmentation accuracy: indeed, a larger number of dissimilarity peaks get lined up with true event boundaries (as indicated by the black circles).
**Average temporal segmentation performance. ** The average F-measure of the temporal segmentations for all users are reported in Tab. 1 for the different local features and the corresponding nonlocal self-similarity features. The results unambiguously demonstrate that the proposed use of nonlocal self-similarity is beneficial and clearly improves the temporal segmentation performance. The nonlocal features yield F-measures larger than . The use of nonlocal features is particularly beneficial for the baseline features that are unaware of temporal context (the F-measure is increased by ). Yet, also for the features encoding local temporal context (NNF, NNFB, LSTM), nonlocal self-similarity leads to significant (though smaller) performance improvements.
**Temporal segmentation performance per user. ** Tab. 2 provides a detailed view and reports the F-measures obtained for each individual user. It has already been observed in [4] that there is a relatively large variability in event segmentation quality for the different users of the EDUB-Seg dataset. Nevertheless, if we do not consider User1-2 and User3-2 for which temporal segmentation performance is poor overall, with F-measure values , the results indicate that nonlocal features lead to better temporal segmentations also for each of the user individually. Moreover, the best F-measure value obtained for the different features for each individual user (in red in Tab. 2) is consistently obtained by nonlocal features.
To conclude, these results clearly indicate that the use of nonlocal self-similarity benefits the temporal segmentation of image sequences and leads to improved performance.
5 Conclusions
This paper contributed to the problem of temporal segmentation, which is recognized to be crucial for several computer vision tasks. Temporal segmentation performance are tightly coupled with the underlying feature representation, and previous work showed the importance of encoding local temporal context. Here, we focused on enhancing the discriminative power of feature representations using temporal context nonlocally. This is achieved in an original way by building on the concept of nonlocal self-similarity. We validated our approach on the popular EDUB-Seg dataset, showing that the proposed method leads to a consistent improvement with respect to state of the art feature representations, be they aware or not of the local temporal context. In future work, we will explore how to learn event representations by leveraging the nonlocal self-similarity principle within a deep learning framework.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[1] Lihi Zelnik-Manor and Michal Irani, “Event-based analysis of video,” in Proc. IEEE CVPR , 2001, vol. 2, pp. II–II.
- 2[2] Stephan Liwicki, Stefanos P Zafeiriou, and Maja Pantic, “Online kernel slow feature analysis for temporal video segmentation and tracking,” IEEE Transactions on Image Processing , vol. 24, no. 10, pp. 2955–2970, 2015.
- 3[3] Yair Poleg, Chetan Arora, and Shmuel Peleg, “Temporal segmentation of egocentric videos,” in Proc. IEEE CVPR , 2014, pp. 2537–2544.
- 4[4] Mariella Dimiccoli, Marc Bolaños, Estefania Talavera, Maedeh Aghaei, Stavri G Nikolov, and Petia Radeva, “Sr-clustering: Semantic regularized clustering for egocentric photo streams segmentation,” Computer Vision and Image Understanding , vol. 155, pp. 55–69, 2017.
- 5[5] Ana Garcia del Molino, Joo-Hwee Lim, and Ah-Hwee Tan, “Predicting visual context for unsupervised event segmentation in continuous photo-streams,” ar Xiv preprint ar Xiv:1808.02289 , 2018.
- 6[6] Ekaterina H Spriggs, Fernando De La Torre, and Martial Hebert, “Temporal segmentation and activity classification from first-person sensing,” in Proc. IEEE CVPRW , 2009, pp. 17–24.
- 7[7] Björn Krüger, Anna Vögele, Tobias Willig, Angela Yao, Reinhard Klein, and Andreas Weber, “Efficient unsupervised temporal segmentation of motion data,” IEEE Transactions on Multimedia , vol. 19, no. 4, pp. 797–812, 2017.
- 8[8] Robert E Kennedy, Zhiqiang Yang, and Warren B Cohen, “Detecting trends in forest disturbance and recovery using yearly landsat time series: 1. landtrendr—temporal segmentation algorithms,” Remote Sensing of Environment , vol. 114, no. 12, pp. 2897–2910, 2010.
