Next Article in Journal
Width, Depth, and Space: Tradeoffs between Branching and Dynamic Programming
Next Article in Special Issue
A Novel Parallel Auto-Encoder Framework for Multi-Scale Data in Civil Structural Health Monitoring
Previous Article in Journal
Solving Multi-Document Summarization as an Orienteering Problem
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

A Regional Topic Model Using Hybrid Stochastic Variational Gibbs Sampling for Real-Time Video Mining

1
Key Laboratory of Educational Informatization for Nationalities Ministry of Education, Yunnan Normal University, Kunming 650500, China
2
School of Information, Yunnan Normal University, Kunming 650500, Yunnan, China
*
Author to whom correspondence should be addressed.
Algorithms 2018, 11(7), 97; https://doi.org/10.3390/a11070097
Submission received: 8 May 2018 / Revised: 14 June 2018 / Accepted: 21 June 2018 / Published: 1 July 2018
(This article belongs to the Special Issue Discrete Algorithms and Discrete Problems in Machine Intelligence)

Abstract

:
The events location and real-time computational performance of crowd scenes continuously challenge the field of video mining. In this paper, we address these two problems based on a regional topic model. In the process of video topic modeling, region topic model can simultaneously cluster motion words of video into motion topics, and the locations of motion into motion regions, where each motion topic associates with its region. Meanwhile, a hybrid stochastic variational Gibbs sampling algorithm is developed for inference of our region topic model, which has the ability of inferring in real time with massive video stream dataset. We evaluate our method on simulate and real datasets. The comparison with the Gibbs sampling algorithm shows the superiorities of proposed model and its online inference algorithm in terms of anomaly detection.

1. Introduction

Video mining is a hot topic that has attracted significant interests in recent years. Video mining is able to find the implicit, valuable, and understandable video patterns by analyzing visual features, time structure, event relationships, and semantic information of video data [1], which can be classified into video structure mining and video motion mining [2]. In particular, for poor structural videos such as traffic surveillance video, video motion mining can realize the applications of abnormal events detection or congestion analysis, and so on.
With the evolution of video mining technology, there has been an increasing number of research works focused on the use of topic models for video motion mining. Although probabilistic topic models were originally studied in the field of natural language processing [3,4], they also provide a way for discovering hidden pattern from images or document corpus. In the text mining, a topic model represents unlabeled documents as mixtures of topics where latent topics are distributions over observed words. In the video motion mining, full video is treated as document collection; a short video clip is treated as a document that divided from full video; the video features are considered as words. In this way, with the introduction of probabilitics topic model in video motion analysis, variety of latent motion patterns, and latent motions correlations were discovered, which are represented by topics. Figure 1 shows the diagram of video topic modeling.
Although several topic models have successfully applied in surveillance systems [5,6,7,8], there exist several premature phenomena in the procedure of video topic modeling—such as abnormal events locating and computational performance of real-time mining. In this paper, we focus on topic modeling with region information and uses it to automatically detect abnormal events from a complex video scene in real-time.
The rest of the paper is organized as follows. In the next section, we present a brief survey of the related works. In Section 3.1—Video Representation—the video representation is explained. In Section 3.2—Regional Topic Model and its Online Inference Algorithm, our regional topic model (RTM) and its hybrid stochastic variational Gibbs Sampling algorithm (HSVG) are presented. The datasets, evaluations and comparisons are discussed in detail, in Section 4. Our conclusions are presented in the last section.

2. Related Works

Recently, there has been a significant number of research works focused on the use of topic models for complex scene analysis. These methods have become quite popular due to their success in natural language processing, e.g., probabilistic latent semantic analysis (pLSA) [9] and latent Dirichlet allocation (LDA) [5]. Nevertheless, when there are lots of motions co-occurred, LDA has problems of low sensitivity, so it is unable to detect the abnormal event accurately. In addition, there is a problem with abnormal event localization in LDA: it can only detect which clip the abnormal event is in, but have no ability to determine where the event happened in. Therefore, several attempts have been made to model video data using LDA extensions.
X. Wang [10] adopted hierarchical variants of LDA, including a Hierarchical Dirichlet Processes (HDP) [7] mixture model and a Dual Hierarchical Dirichlet Processes (Dual-HDP) model, to connect three elements in visual surveillance: low-level visual features, simple atomic activities, and interactions. Thereafter, X. Wang [11] converted tracks into words, and applied a topic model to them. The words were the quantized positions and directions of motion, consequentially the topics would represent routes shared between objects. J. Li [12] proposed WS-JTM to address the typical topic model weakness of inference speed and exploited weak supervision. They fixed delta latent Dirichlet allocation (dLDA) in their extension, multi-class dLDA, which is also used to detect rare and subtle behavior. Thereafter, a two-staged cascaded LDA model was formulated by Li et al. in reference [13] where the first stage learns regional behavior and the second stage learns the global context over the regional models. Hospedales T.M. et al. [14] adopt a nonparametric Bayesian approach to automatically determine the number of topics shared by the documents and also when they appear in each temporal document. Emonet R. [15] proposed framework consists of an activity-based semantic scene segmentation model for learning behavior spatial context, and a cascaded probabilistic topic model for learning both behavior correlation context and behavior temporal context at multiple scales. Fu et al. [16] improved sparse topical coding (STC) to discover semantic motion patterns for a dynamic scene, which can be sparsely reconstructed. Yuan et al. [17] used a topic model to discover functional regions in a city using taxi probe data and point-of-interest information. Similarly, Farrahi and Gatica-Perez [18] used a topic model to discover human routines using mobile-phone location data. In [19], LDA was extended to model the flow of people entering or exiting a building. Yu et al. [20] proposed a topic model for detecting an anomalous group of individuals in a social network. Kinoshita et al. [21] introduced a traffic state model based on a probabilistic topic model to describe the traffic states for a variety of roads, the model can be learned using an expectation–maximization algorithm. Hospedales et al. [22] introduced a dynamic topic model named Markov clustering topic model (MCTM), and an approximation to online Bayesian inference was formulated to enable dynamic scene understanding and behavior mining in new video data online in real-time. In order to handle the temporal nature of the video data, Fan et al. [23] devised a dynamical causal topic model (DCTM) that can detect the latent topics and causal interactions between them.
Meanwhile, several attempts have also been made to find anomalies using topic models and surveillance cameras [24,25]. Jeong et al. [26] proposed a topic model for detecting anomalous trajectories of people or vehicles in surveillance-video images. Kaviani et al. [27] addressed the problem of abnormality detection based on a fully sparse topic models (FSTM). Isupova et al. [28] proposed a novel dynamic Bayesian nonparametric topic model and its Batch and online Gibbs samplers for anomaly detection in video.
In general, there were several key problems in existing studies about video mining using topic model: (1) model parameters increment leads to the increments of the model learning time, and then traditional off-line inference algorithm is not suitable for video monitoring system; (2) anomaly detection in a whole scene rather than in each region reduces the sensitivity of the anomaly detection.
To address the problem of motion region, Zou et al. [29] proposed a belief based on correlated topic model (BCTM) for the semantic region analysis of pedestrian motion patterns in the crowded scenes. Haines proposed regional LDA model (rLDA) [30], which not only can model activities in a complicated scene, but also realize a high sensitivity detection and the localization of motion topic (especially the abnormal event) by extracting spatial information ignored by LDA. Nonetheless, the inference algorithm of above studies still used the collapsed Gibbs sampling, which needs to scan the whole samples at each iteration. For huge data sets and data streams such as video, this way adopted by Gibbs sampling leads to high memory overhead, slow running speed, and judging convergence difficultly.
Classic approaches of inference algorithm in LDA are Gibbs sampling (GS) [31] and variational Bayesian (VB) batch inference [5]. In order to solve the problem of computational complexity, collapsed Gibbs sampling (CGS) [6] and collapsed VB batch inference (CVB) [32] were proposed. Nevertheless, for the purpose of LDA applied to video mining, we need to make the inference algorithm adapt to the characteristics of video streaming data set, it is better to a realize real-time and online processing quickly and efficiently. For text database which is huge or in the form of data stream, there have been developments of online LDA inference algorithm with less memory, faster running, and convergence speed. Hoffman proposed the stochastic gradient optimization algorithm (online LDA) [33], which repeatedly subsamples a small set of documents from the collection and then updates the topics from an analysis of the subsample. Since online LDA does not need to scan the entire samples for updating topic parameter matrix at each iteration, the updating of topic parameters is more frequently. The algorithm not only takes up less memory, faster running, and convergence speed, but also realizes online inference in real time for huge data sets or data stream. Nonetheless, the algorithm complexity linearly increased with the number of topics. Therefore, it is not suitable for large collection with many topics. On the basis of online LDA algorithm, Mimno proposed hybrid stochastic variational Gibbs sampling (HSVG) [34]. This algorithm introduced the second source of stochasticity by MCMC sampling, and taken advantage of sparse computation to make complexity sublinearly increased with the number of topics. It fits for a large collection with many topics. Besides, RLD (Riemannian Langevin dynamics) [35] algorithm was proposed by Girolami. It is a kind of Langevin dynamics algorithm based on Riemannian manifold of MH correction. Welling proposed SGLD (stochastic gradient Langevin dynamics) [36] algorithm, which reserved stochastic gradient optimization algorithm, and can sample from the posterior distribution. Patterson proposed SGRLD (stochastic gradient Riemannian Langevin dynamics) [37] by combining RLD and SGLD algorithm. In addition, Olga Isupova et al. [38] proposed new learning algorithms for activity analysis in video, which are based on the expectation maximization approach and variational Bayes inference.

3. Materials and Methods

3.1. Video Representation

To discover motion patterns for video by topic modeling, the definitions of visual words and visual documents are essential for topic model applied to video analysis: given an input video, we first temporally segment the video into non-overlapping clips. Each clip is considered as a document. To create visual words, we segment a scene into sub-grid. Next, we compute optical flow field for motion object from foreground mask extracted in each frame, and then optical flow histograms are generated for one clip by counting grids i accumulated over frames of this clip. After spatial and directional quantization, video motion word labeled in v { 0 , 1 , , V 1 } is split into grid position i { 0 , 1 , , I 1 } and motion direction ω { 0 , 1 , , Ω 1 } . Finally, we select the largest optical flow histogram to generate a motion words sample v = ( i , ω ) . Then, for a visual word v { 0 , 1 , , V 1 } , the information of motion position and direction mix together to express a motion word ( i , ω ) , and all the motion words in a video clip constitute the bag of visual words (BOVW).

3.2. Regional Topic Model and Its Online Inference Algorithm

In our RTM, the goal is to discover a set of motions (topics) from video by learning the probability distributions of visual features over each topic and topics over each clip. These two probability distributions are represented as two co-occurring matrixes in Figure 1. Meanwhile, the location information of motion is discovered. Nonetheless, BOVW based on latent Dirichlet allocation (LDA) model presumes that the words are unordered and interchangeable in document, this hypothesis destroys the spatial information of motions or activities; we are unable to get the motion region from model learning.
In order to keep and use the spatial information of motion in video, we introduce RTM, in which each sample in a frame is not only labeled by its motion direction ω but also by a motion region label r { 0 , 1 , R } . It means that the latent motion topics in videos are associated with the regions where they occurred in.
Suppose that there are J documents (video clips), each document j J contains N j observed samples x j n . t j n is the motion topic of each sample x j n , and r j n i is its motion region label of region i . Then, video sequence can be represented as X = { X j } j = 1 J , X j = { x j n } n = 1 N j . The latent variables are motion topic and regional labels sets Z = { T , R } = { t j n , r j n i } n = 1 , j = 1 N j , J . From a global perspective, motion topic weight vector of document j can be expressed as π j = { π j t } t = 1 T . When a symmetric Dirichlet prior distribution is applied on the topic weight vector π j , the hyperparameters of Dirichlet prior is α , π j Dir ( α ) . From a local perspective, motion regional weight vector can be expressed as ρ = { ρ r } r = 1 R . When a symmetric Dirichlet prior distribution β is applied on the regional weight vector, it means ρ Dir ( β ) .
Document j shares T motion topics by local topic weight vector π j = { π j t } t = 1 T . In other words, the motion topic label subset T j = { t j n } n = 1 N j obeys a multinomial distribution of T dimension whose parameter is π j , T j Mul ( π j )
log p ( T j | π j ) = t = 1 T N j t log π j t log p ( T j | π j ) = t = 1 T N j t log π j t
Local motion topic weight vector π j obey a symmetric Dirichlet prior distribution π j Dir ( α ) whose parameter is α
log p ( π j | α ) = log Γ ( T α ) T log Γ ( α ) + t = 1 T ( α 1 ) log π j t
The corpus share R motion regions by global region weight vector ρ = { ρ r } r = 1 R . In other words, motion region label set R = { r i } i = 1 I obeys a multinomial distribution of R dimension whose parameter is ρ , R Mul ( ρ )
log p ( R | ρ ) = r = 1 R I r log ρ r
Likewise, global region weight ρ obeys a symmetric Dirichlet prior distribution ρ Dir ( β ) whose parameter is β
log p ( ρ | β ) = log Γ ( R β ) R log Γ ( β ) + r = 1 R ( β 1 ) log ρ r
Under the known motion topic label t j n = t and known motion region label r j n i = r of sample x j n , the sample subset X j t r = { x j n | t j n = t , r j n i = r } n = 1 N j allocated by document j obeys a R dimension multinomial distribution X j t r Mul ( θ r t ) whose parameter is θ r t = { θ ω r t } ω = 1 Ω
log p ( X j t r | θ r t ) = ω = 1 Ω N j ω r t log θ ω r t
The hybrid parameter θ r t obeys a symmetric Dirichlet prior distribution θ r t Dir ( λ ) whose parameter is λ
log p ( θ r t | λ ) = log Γ ( Ω λ ) Ω log Γ ( λ ) + ω = 1 Ω ( λ 1 ) log θ ω r t
The construction of RTM is summarized as that: the number of motion topics is T ; the number of motion regions is R ; the video sequence contains J documents; the observed sample set is X j = { x j n } n = 1 N j = { ( i , ω ) j n } n = 1 N j ; the corresponding latent variables set is Z j = { T j , R } = { t j n , r j n i } n = 1 N j . Then, the generative process of RTM is as follows, the corresponding graphical model is shown in Figure 2.
Generate ρ Dir ( β )
For each sample x j n
Generate a regional label r i ρ for its location i
For each video clip j
Generate a motion topic weight vector π j Dir ( α )
For each sample x j n
Generate motion topic label t j n π j
Generate θ r t Dir ( λ )
Generate x j n ~ M u l t ( . | θ r t )
As the generative process of RTM described above, the unknown parameters to be estimated are π j = { π j t } t = 1 T , ρ = { ρ r } r = 1 R and θ r t = { θ ω r t } ω = 1 Ω ; the known data are the observed samples X j = { x j n } n = 1 N j and their joint distribution. As shown in Equation (7),
p ( ρ , θ , π , R , T , X | α , β , λ ) = p ( ρ , R | β ) p ( π , T | α ) p ( θ , X | R , T , λ ) = p ( ρ | β ) p ( R | ρ ) r = 1 R t = 1 T p ( θ r t | λ ) j = 1 J p ( π j | α ) p ( T j | π j ) p ( X j | R , T j , θ ) = p ( ρ | β ) p ( R | ρ ) r = 1 R t = 1 T p ( θ r t | λ ) j = 1 J p ( π j | α ) n = 1 N j p ( t j n | π j ) p ( x j n | t j n , r j n i , θ r j n i , t j n )
According to above construction of RTM, the model learning acts as clustering document sample subsets X j = { x j n } n = 1 N j . The word samples not only can be clustered to T motion topics, but also to R motion regions. Each latent motion topic is inevitably correlated to a space region. It is worth noting that even though there have been several studies that introduce latent variables for merging various factors to jointly estimate document contents, which have the obvious differentiation with our RTM. For instance, in topic modeling of document, Rosen-Zvi et al. [39] introduced an author latent variable, and Bao et al. [40] introduced an emotion latent variable. Both of them first generated the introduced variables (emotion or author) from a specific distribution, then generated a latent topic from a multinomial distribution conditioned on generated variable, and finally generated document terms from another multinomial distribution based on latent topics. Whereas our RTM generates a introduced variable (region) and a latent topic in two independent steps respectively, and finally generates document terms from a multinomial distribution based on fixed latent region and topic. Therefore, a different generative process leads to different forms of joint distribution as well as inference algorithm.
As with traditional topic model, there are generally two kinds of inference methods for our RTM: MCMC sampling and VB inference. For realizing the real-time video mining, we proposed a hybrid stochastic variational Gibbs (HSVG) sampling algorithm for RTM. In comparison with HSVG sampling, the Gibbs sampling algorithm needs to scan the entire samples for at each iteration as a batch algorithm. Therefore, due to the huge memory (risk of overhead), slower running and difficultly determining convergence time, even collapsed Gibbs sampling algorithm is not suitable for huge data sets or data stream. The HSVG algorithm introduces the second source of stochasticity by MCMC sampling, and takes advantage of sparse computation to make complexity sublinearly increased with the number of topics, which fits for large collection with many topics. The inference process of our HSVG algorithm is formulated with more detail as follows.
Firstly, the motion region label is considered as a global latent variable. We eliminate the local motion topic weight π j by marginal computation, and obtain the local collapsed space of latent variable Z = ( { T j } j = 1 J , R ) = { t j n , r j n i } n = 1 , j = 1 N j , J . Then the strong correlation between latent variable Z and local motion topic weight π j is retained. The joint distribution becomes Equation (8)
p ( ρ , θ , R , T , X | α , β , λ ) = p ( ρ | β ) p ( R | ρ ) r = 1 R t = 1 T p ( θ r t | λ ) j = 1 J p ( T j | α ) p ( X j | R , T j , θ )
Next, for improving the inference accuracy by retaining weak correlation of local latent variables T j , we suppose that T j obeys an indecomposable variational distribution
q ( T j | η j ) n = 1 N j q ( t j n | η j n )
Therefore, in the inference of semi-collapsed RTM, we just need to suppose that global latent variable R , local latent variable T j , motion region weight ρ and global hybrid parameters θ are independent. Then, the variational distribution q of free variational parameters ν , ς , μ r t , and { η j } j = 1 J can be decomposed into Equation (10)
q ( ρ , θ , R , T | ν , μ , ς , η ) = q ( ρ | ν ) q ( R | ς ) r = 1 R t = 1 T q ( θ r t | μ r t ) j = 1 J q ( T j | η j )
Then, the semi-collapsed ELBO (Evidence Lower Bound) of document collection X is the global objective function
L ( X , q ) = E q [ log p ( ρ , θ , R , T , X | α , β , λ ) ] E q [ log q ( ρ , θ , R , T | ν , μ , ς , η ) ] = E ν [ log p ( ρ | β ) ] E ν [ log q ( ρ | ν ) ] + E ς , ν [ log p ( R | ρ ) ] E ς [ log q ( R | ς ) ] + E μ [ log p ( θ | λ ) ] E μ [ log q ( θ | μ ) ] + j = 1 J { E η j [ log p ( T j | α ) ] E η j [ log q ( T j | η j ) ] + E μ , ς , η j [ log p ( X j | R , T j , θ ) ] }
The motion topic weight π in p ( π , T | α ) is eliminated by integrating
p ( T | α ) = Π p ( π | α ) p ( T | π ) d π j = 1 J Γ ( T α ) Γ ( T α + N j ) t = 1 T Γ ( α + N j t ) Γ ( α )
Then, Equation (13) is obtained
E η j [ log p ( T j | α ) ] = t = 1 T E η j [ log Γ ( α + N j t ) ] T log Γ ( α )
At this point, the local variational objective function of each document j is
l j = { t = 1 T E η j [ log Γ ( α + N j t ) ] T log Γ ( α ) E η j [ log q ( T j | η j ) ] + ω = 1 Ω r = 1 R t = 1 T E ς r , η j [ N j ω r t ] E μ ω r t [ log θ ω r t ] } + 1 J { log Γ ( R β ) R log Γ ( β ) + r = 1 R ( β 1 ) E ν r [ log ρ r ] log Γ ( r = 1 R ν r ) + r = 1 R log Γ ( ν r ) r = 1 R ( ν r 1 ) E ν r [ log ρ r ] } + 1 J { r = 1 R i = 1 I ς i r E ν r [ log ρ r ] r = 1 R i = 1 I ς i r log ς i r } + 1 J r = 1 R t = 1 T { log Γ ( Ω λ ) Ω log Γ ( λ ) + ω = 1 Ω ( λ 1 ) E μ ω r t [ log θ ω r t ] log Γ ( ω = 1 Ω μ ω r t ) + ω = 1 Ω log Γ ( μ ω r t ) ω = 1 Ω ( μ ω r t 1 ) E μ ω r t [ log θ ω r t ] }
Next, the stochastic variational inference of global layer and the MCMC inference of local layer are as follows
1. Local MCMC Inference
Computing the first derivative of local objective function l j with respect to variational parameters η j
l j η j = η j { t = 1 T E η j [ log Γ ( α + N j t ) ] E η j [ log q ( T j | η j ) ] + ω = 1 Ω r = 1 R t = 1 T E ς r , η j [ N j ω r t ] E μ ω r t [ log θ ω r t ] } = T j { t = 1 T log Γ ( α + N j t ) log q ( T j | η j ) 1 + ω = 1 Ω r = 1 R t = 1 T E ς r [ N j ω r t ] E μ ω r t [ log θ ω r t ] } d t
Set Equation (15) equals to zero, the optimal variational distribution q * ( T j | η j ) is
q * ( T j | η j ) t = 1 T Γ ( α + N j t ) exp { ω = 1 Ω r = 1 R E ς r [ N j ω r t ] E μ ω r t [ log θ ω r t ] } t = 1 T Γ ( α + n = 1 N j I ( t j n = t ) ) exp { n = 1 N j ς i r I ( t j n = t ) E μ ω r t [ log θ x j n = ω , r i = r , t ] }
Among Equation (16), the variational expectation of sufficient statistic N j ω r t = n = 1 N j I ( x j n = ω ) I ( r j n = r ) I ( t j n = t ) respect to variational parameter ς r is
E ς r [ N j ω r t ] = E ς r [ n = 1 N j I ( x j n = ω ) I ( r j n = r ) I ( t j n = t ) ] = E ς r [ n = 1 N j i = 1 I I ( x j n = ω ) I ( i j n = i ) I ( r i = r ) I ( t j n = t ) ] = n = 1 N j i = 1 I ς i r I ( x j n = ω ) I ( i j n = i ) I ( r i = r ) I ( t j n = t )
The MCMC sampling method can be used to solve the estimation problem of optimal variational distribution q * ( T j | η j ) without supposing the independent of local latent variables. Constructing a Markov chain whose stationary distribution is the optimal variational distribution local latent variables, the key problem of Gibbs sampling is computing the transition probability of Markov chain, which equals to the motion topic label t j n ’s prediction probability of sample x j n . Then, Equation (18) is obtained
q * ( t j n = t | T j ( \ j n ) , X j ) ( α + i = 1 , i n N j I ( t j n = t ) ) exp { E μ ω r t [ log θ x j n = ω , r j n i = r , t ] } ( α + N j t ( \ j n ) ) exp { E μ ω r t [ log θ x j n = ω , r j n i = r , t ] }
In the Equation (18)
E μ ω r t [ log θ x j n = ω , r j n i = r , t ] = Ψ ( μ j ω r t ) Ψ ( ω = 1 Ω r = 1 R μ j ω r t )
The prediction probability is iteratively learning in Markov chain, Markov chain is converged after N times Gibbs sampling state transition in burn-in time. After Markov chain converged, the arithmetic average value of sample sufficient statistics N j ω r t is the estimation of E η j [ N j ω r t ]
E η j [ N j ω r t ] = E η j [ n = 1 N j I ( x j n = w ) I ( r j n = r ) I ( t j n = t ) ] 1 S s = 1 S N j ω r t ( s )
2. Global Stochastic Variational Inference
In the t th stochastic iteration, the state space of Markov chain is constructed by the sample sufficient statistics N ( B t ) ω r t = j B t N j ω r t of a stochastic small batch documents B t , the contribution of B t to natural gradient of global variational parameters is
N ˜ ( B t ) ω r t = E η ( B t ) [ N ( B t ) ω r t ] 1 S s = 1 S N ( B t ) ω r t ( s ) = 1 S s = 1 S j B t N j ω r t ( s )
At this point, the update amount ς ^ i r ( t ) , ν ^ r ( t ) and μ ^ ω r t ( t ) of local small batch documents B t respect to global variational parameters is
{ ς ^ i r ( t ) exp { E ν r ( t 1 ) [ log ρ r ] + ( J / | B t | ) ω = 1 Ω t = 1 T N ˜ ( B t ) ω r t ( t ) E μ ω r t ( t 1 ) [ log θ ω r t ] } ν r ( t ) = β + i = 1 I ς i r ( t ) μ ^ ω r t ( t ) = λ + ( J / | B t | ) E ς ( t ) [ N ˜ ( B t ) ω r t ( t ) ]
Then, the variational expectation of N ˜ j ω r t or N ˜ ( B t ) ω r t obtained from local MCMC inference respect to global variational parameters is that
E ς [ E η j [ N j ω r t ] ] = E ς [ N ˜ j ω r t ] = E ς [ n = 1 N j I ( x j n = ω ) I ( r ˜ j n = r ) I ( t ˜ j n = t ) ] = n = 1 N j i = 1 I r = 1 R ς i r I ( x j n = ω ) I ( i j n = i ) I ( r ˜ i = r ) I ( t ˜ j n = t ) = n = 1 N j ς i r I ( x j n = ω ) I ( t ˜ j n = t )
When the number of motion topics T , motion regions R or words Ω is large, N j observed samples of document j is allocated to a large T × R × Ω dimensions hybrid parameters matrix θ = { θ ω r t } ω = 1 , r = 1 , t = 1 Ω , R , T , which make sufficient statistics N j ω r t of many samples be zero. Then, E η j [ N j ω r t ] estimated by MCMC sampling is a sparse matrix. Therefore, the amount of computations is decreased and computing speed is improved because of the sparsity.
Given the above description, the specific description of HSVG algorithm is shown in Algorithm 1.
Algorithm 1. HSVG algorithm of RTM model
Initialize global variational parameters ς i r ( 0 ) , ν r ( 0 ) and μ ω r t ( 0 )
while the number of random iterations t = 0 : t max do
  Update iteration step: ρ t a ( τ 0 + t ) κ
  Import a small batch documents B t
  Initialize T j ( 0 ) from ( 1 , , T ) , R j ( 0 ) from ( 1 , , R )
  for j B t do
   For a sample n = 1 : N j of document j local MCMC inference is adopted
     q * ( t j n = t | T j ( \ j n ) , X j ) ( α + N j t ( \ j n ) ) exp { Ψ ( μ ω r t ( t 1 ) ) Ψ ( ω = 1 Ω r = 1 R μ ω r t ( t 1 ) ) }
   end_for
  end_for
N times iteration in burn-in time is not processed
 For converged Markov chain s = 1 : S do
   N ˜ ( B t ) ω r t = E η ( B t ) [ N ( B t ) ω r t ] ( 1 / S ) s = 1 S N B t ω r t ( s )
end_for
   { log ς i r ( t ) = ( 1 ρ t ) log ς i r ( t 1 ) + ρ t log ς ^ i r ( t ) ν r ( t ) = ( 1 ρ t ) ν r ( t 1 ) + ρ t ν ^ r ( t ) μ ω r t ( t ) = ( 1 ρ t ) μ ω r t ( t 1 ) + ρ t μ ^ ω r t ( t ) , where
    { log ς ^ i r ( t ) = E ν r ( t 1 ) [ log ρ r ] + ( J / | B t | ) ω = 1 Ω t = 1 T N ˜ ( B t ) ω r t ( t ) E μ ω r t ( t 1 ) [ log θ ω r t ] ν r ( t ) = β + i = 1 I ς i r ( t ) μ ^ ω r t ( t ) = λ + ( J / | B t | ) E ς ( t ) [ N ˜ ( B t ) ω r t ( t ) ]
end_while

4. Results

4.1. Evaluation Criterion

In the text mining and statistic inference of nature language, perplexity is always used to evaluate the performance of model, which is computed by p e r p ( X test | φ ^ ) = exp { log p ( X test | φ ^ ) / N test } . φ ^ denotes the parametric estimation of trained model, X test and N test are test dataset and observed samples respectively. Perplexity is the negative log likelihood (NLL) log p ( X test | φ ^ ) divided by the number of observed samples N test . As described in above, the computation of perplexity is mainly the NLL computation of trained model, and NLL denotes the cross entropy of trained model and unknown testing data. Perplexity represents the uncertainty of trained model for unknown test set’s estimation. Therefore, the lower the NLL value is, the better the model performance is.
In our RTM, NLL can be computed for motion topic and region of test video clip. The parameters estimation of trained model and a test video clip are learning in RTM, the learned local motion topic weight estimation π ˜ t and global parameter estimation ς ˜ i r , θ ˜ ω r t of original trained model is computed for NLL of test clips.
rLDA _ NLL ( X test | π ˜ t , ς ˜ i r , θ ˜ ω r t ) = n = 1 N test log ( r = 1 R ς ˜ i r t = 1 T π ˜ t θ ˜ x n test = ω , r t ) = N ( ω , i ) log ( r = 1 R ς ˜ i r t = 1 T π ˜ t θ ˜ ω r t )
Besides, t_NLL and r_NLL are computed by:
t _ NLL ( X test | ς ˜ i r , θ ˜ ω r t ) = n = 1 N test log ( I ( t n = t ) r = 1 R ς ˜ i r θ ˜ x n test = ω , r t ) = N ( ω , i , t ) log ( r = 1 R ς ˜ i r θ ˜ ω r t )
r _ NLL ( X test | π ˜ t , θ ˜ ω r t ) = n = 1 N test log ( I ( r n = r ) t = 1 T π ˜ t θ ˜ x n test = ω , r t ) = N ( ω , r ) log ( t = 1 T π ˜ t θ ˜ ω r t )
t_NLL is used to evaluate the performance of learning motion topic by our model, and r_NLL is used to evaluate the performance of learning motion region. Meanwhile, because of the samples number difference between different regions, the abnormal events probabilities of the region including few samples is lower, so we add a sample number weight for each region. We regard the five most regions of r_NLL value as the most possible abnormal events regions. Furthermore, we utilize receiver operating characteristic curve (ROC) and AUC (area under ROC) to evaluate the abnormal detecting performance of our model, which are independent of threshold selection. Obviously, for ROC, the closer to the top left corner, the performance of abnormal detection is better. Similarly, the closer to 1 the AUC value is, the better the performance of abnormal detection. The running platform of experiment is shown in Table 1.

4.2. Datasets and Parameter Settings

In order to get the comprehensive evaluation of our model and its inference algorithm, we analyze the performance based on two types of dataset. The first one is a simulation video dataset constructed by specific steps, and the second one is a real video dataset.

4.2.1. Simulation Video Dataset

We make a simulation video dataset for simulating the traffic intersection. Each image of a frame was divided into a 6 by 6 grid (a total of 36 positions) and five valid regions (including the sides of up, middle, down, right, and left). Meanwhile, each valid region is composed by 4 grids, that there are in total of 4 × 5 = 20 locations to simulate one center and four directions of traffic intersection, as shown in Figure 3.
In Figure 3, white texts represent the valid region number r { 0 , 1 , 2 , 3 , 4 } , and red texts represent the valid location number i { 0 , , 19 } . Four directions are represented as down (green), left (blue), up (purple) and right (red), whose number is ω { 0 , 1 , 2 , 3 } . Then, the number of locations is I = 20 , and the number of motion directions is Ω = 4 . ( i , ω ) is used to denote a motion word, where i { 0 , , I 1 } , ω { 0 , , Ω 1 } , and the number of motion words is W = I × Ω = 80 . The latent motion topic is constructed by combining region number r and direction number ω . Regarding ( i r = 0 , ω = 0 ) as an instance, it means that one location of region 0(that location number is one of { 0 , 1 , 2 , 3 } ) is moving in direction 0(down). Then, normal and abnormal motions are able to be constructed by above way. There are five kinds of normal motion states and two kinds of abnormal motion states. The generative algorithm of simulation video is described below:
Generate an initial motion direction ω randomly.
Choose a motion topic, where the probability of abnormal motion topic is 5%, and the probability of abnormal motion topic is 95%.
Generate 100 samples by
Based on the chosen motion topic, choose a motion state randomly.
Based on the chosen motion state, generate an observed sample ( ω , i ) randomly.
Figure 4 shows the generated training set and test set by above steps. The color of arrow represents the direction, and the brightness represents the probability in motion topic.

4.2.2. Real Video Dataset

We use the QMUL street intersection dataset [41] for evaluating abnormality detection performance of this model. This standard video is 50 min in length, frame rates are 30 fps, resolution is 360 × 288, and there are 90,000 frames. Video codec is mpeg-4 compression encoding. The whole traffic light cycle is about 1.5 min; the average duration of abnormal event is 4.3 s (129 frames).
In our experiment, we divide whole video into 250 clips; each clip is 12 s (360 frames). The top 14.36 min (30 documents) is training dataset, and the last 10 min (50 documents) is test dataset. Each scene of a clip is first divided into a 4 by 4 grid (a total of 16 positions) and five valid regions. After cutting off the part of sky and generating motion code book for model training, RTM-HSVG (RTM is learned and inference by Hybrid Stochastic Variational Gibbs Sampling) and RTM-GS (RTM is learned and inference by Gibbs Sampling) then computes the negative loglikelihood of every region as a score in each test clip and abnormality clips are picked up while its abnormality score exceed 1.5 times of average. The parameter settings are shown in Table 2

4.3. Experimental Results

4.3.1. Simulation Experiment of Visualization Traffic Intersection

Firstly, the motion topics and regions discovered by RTM-GS and RTM-HSVG is shown in Figure 5, where Figure 5a shows the seven random simulated abnormal motions. The number of simulated training documents is same as the number of test set, which is 100.
As can be seen from Figure 5, although RTM-GS discovers more latent regions, a refined topic division is obtained by RTM-HSVG. Furthermore, in RTM-HSVG, the two roads with same direction are combined to a latent region, which is capable of moving crossroad. It is more reasonable that motions comply with traffic rules of a same road are the same.
To compare the abilities of our model to discover abnormal motion, the NLL and r_NLL comparisons of our model and actual values is shown in Figure 6.
As shown in Figure 6, for r_NLL curve, the accuracy of RTM-GS seems to be higher than RTM-HSVG. Nonetheless, for NLL curve, RTM-HSVG obtained a higher accuracy. As HSVG is a kind of stochastic algorithm, it cause a volatile shocks in r_NLL curve. It also suggests that our stochastic online algorithm need to introduce more motion region information to acid early-warning. The difference between RTM-GS and RTM-HSVG is also able to be observed in their ROC and AUC, which is shown in Figure 7.
As shown in Figure 7, the area under NLL ROC of RTM-HSVG is 0.68, and RTM-GS is 0.56. This result again explains that the comprehensive accuracy of RTM-HSVG is better than RTM-GS. On the other hand, the area under r_NLL ROC of RTM-HSVG is 0.64, and RTM-GS is 0.97, which illustrates that the performance of learning motion region of RTM-GS is better than RTM-HSVG. These simulated experimental results show the validity of RTM for discovering motion topic and motion region.

4.3.2. Real Video Experiment

Likewise, for QUML dataset, the motion topics and regions discovered by RTM-GS and RTM-HSVG is shown in Figure 8, Figure 9, Figure 10 and Figure 11 respectively.
According to the comparisons of latent motion topic and motion regions discovered in above figures, RTM-GS obtained more clearly atomic motion patterns, which form the motion topic. Nevertheless, RTM-HSVG obtained a more focused clustering in both motion topic and region, and the direction representation of RTM-HSVG is richer (observed from the mixture of four directions). This is because the Markov chain state space of large-scale dataset is larger; it needs a longer burn-in time for Markov chain convergence. Even if RTM-HSVG has a shorter burn-in time, it also obtained a better performance than RTM-GS.
In order to test the impact of burn-in time on performance of our model, the burn-in time of RTM-GS is increasing to four times, and the iteration-times is set as 8000. Then, the motion topics and regions results are shown in Figure 12 and Figure 13.
In comparison with Figure 8 and Figure 12 as well as Figure 9 and Figure 13, we find that longer burn-in time makes a more focused clustering in both motion topic and region. Nevertheless, it is difficult to decide when Markov chain is convergent in Gibbs sampling, and longer burn-time is at the expense of time efficiency. Therefore, RTM-HSVG is more efficient than RTM-GS as an online algorithm. Meanwhile, we find that a larger number of topics can make more clear motion topics, which also makes more repeated latent topics. Therefore, it illustrates that the number of topics and regions are important aspects to decide performance of RTM.
The ROC curve comparison of RTM-HSVG and RTM-GS is shown in the Figure 14. As shown in Figure 14, the area under ROC of RTM-HSVG is 0.59, and RTM-GS is 0.577. These results again indicate that RTM-HSVG can improve the accuracy of abnormal event detection in comparison with RTM-GS.
At last, several abnormal events discovered by RTM-HSVG are shown in Figure 15, and the regions of abnormal motion are labeled by dark red.
Figure 15a shows an abnormal event in 33rd clips (37,410~37,769), its motion region is number 6, and NLL = 724,951.87. A fire vehicle is driving into the crossing from right and interrupting the vertical traffic.
Figure 15b shows an abnormal event in 25th clips (34,538~34,897), its motion region is number 9, and NLL = 753,774.17. A car is turning right illegally.
Figure 15c shows an abnormal event in 15th clips (30,948~31,307), its motion region is number 13, and NLL = 792,248.81. A car makes a U-turn illegally.
Figure 15d shows an abnormal event in 14th clips (30,589~30,948), its motion region is number 15, and NLL = 819,426.78. A fire vehicle is driving into the crossing from lift and interrupting the vertical traffic.
From the above experimental results, we can see that RTM is able to discover motion topics and motion regions efficiently. Specially, the HSVG inference algorithm designed for RTM is better than Gibbs sampling on accuracy and time efficiency. Therefore, we can anticipate that RTM-HSVG is a potential method for real-time video mining.

5. Conclusions

To solve the problem that traditional topic model is unable to process video in real-time and model motion regional information, we proposed a RTM and designed its hybrid stochastic variational Gibbs sampling algorithm. In RTM, observation data not only has the motion topic label but also has region label of its position. In our HSVG algorithm, the local weight π j is collapsed locally for retaining the high relativities between local latent variable set and local weight at first, and then local Gibbs sampling is introduced for retaining low relativities of local latent variable set T j . For global variational parameters ς i r , ν r , and μ ω r t , the stochastic natural gradient methods are adopted, which make RTM capable of processing massive video dataset in real time. The experimental results on simulate and real dataset show that the proposed RTM-HSVG improves the anomaly detection performance in comparison to the RTM-GS.

Author Contributions

Conceptualization, L.T. and J.G.; Methodology, L.T.; Software, L.T. and L.L.; Validation, L.T. and L.L.; Formal Analysis, L.T.; Writing-Original Draft Preparation, L.T. and L.L.; Writing-Review & Editing, L.L.

Funding

This research was supported by the Doctor Science Foundation of Yunnan normal university (no. 2016zb009), the National Natural Science Foundation of China (grant number 61562093), the Key Project of Applied Basic Research Program of Yunnan Province (no. 2016FA024), and the MOE Key Laboratory of Educational Information for Nationalities (YNNU) Open Funding Project (no. EIN2017001).

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Dai, K.; Zhang, J.; Li, G. Video mining: Concepts, approaches and applications. In Proceedings of the IEEE 12th International Multi-Media Modelling Conference Proceedings, Beijing, China, 4–6 January 2006. [Google Scholar]
  2. Chen, S.C.; Shyu, M.L.; Zhang, C.; Strickrott, J. A multimedia data mining framework: Mining information from traffic video sequences. Intell. Inf. Syst. 2002, 19, 61–77. [Google Scholar] [CrossRef]
  3. Blei, D.; Carin, L.; Dunson, D. Probabilistic topic models. IEEE Signal Process. Mag. 2010, 27, 55–65. [Google Scholar] [CrossRef] [PubMed]
  4. Wang, L.H.; Zhao, G.G.; Sun, D.H. Modeling documents with event model. Algorithms 2015, 8, 562–572. [Google Scholar] [CrossRef]
  5. Blei, D.M.; Ng, A.Y.; Jordan, M.I. Latent dirichlet allocation. Mach. Learn. Res. 2003, 3, 993–1022. [Google Scholar]
  6. Griffiths, T.L.; Steyvers, M. Finding scientific topics. Proc. Natl. Acad. Sci. USA 2004, 101, 5228–5235. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  7. Teh, Y.W.; Jordan, M.I.; Beal, M.J.; Blei, D.M. Hierarchical dirichlet processes. Am. Stat. Assoc. 2006, 101, 1566–1581. [Google Scholar] [CrossRef]
  8. Larlus, D.; Verbeek, J. Category Level Object Segmentation by Combining Bag-of-Words Models with Dirichlet Processes and Random Fields. Int. J. Comput. Vis. 2010, 88, 238–253. [Google Scholar] [CrossRef]
  9. Hofmann, T. Probabilistic latent semantic analysis. In Proceedings of the Fifteenth Conference on Uncertainty in Artificial Intelligence, Stockholm, Sweden, 30 July–1 August 1999; pp. 289–296. [Google Scholar]
  10. Wang, X.; Ma, X.; Grimson, W.E.L. Unsupervised Activity Perception in Crowded and Complicated Scenes Using Hierarchical Bayesian Models. IEEE Trans. Pattern Anal. 2009, 31, 539–555. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  11. Wang, X.; Ma, K.T.; Ng, G.W. Trajectory analysis and semantic region modeling using a nonparametric Bayesian model. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Anchorage, AK, USA, 23–28 June 2008; pp. 1–8. [Google Scholar]
  12. Li, J.; Gong, S.; Xiang, T. Scene segmentation for behaviour correlation. In Proceedings of the European Conference on Computer Vision, Marseille, France, 12–18 October 2008; pp. 383–395. [Google Scholar]
  13. Li, J. Learning behavioural context. Int. J. Comput. Vis. 2012, 97, 276–304. [Google Scholar] [CrossRef]
  14. Hospedales, T.M.; Li, J.; Gong, S.; Xiang, T. Identifying rare and subtle behaviors: A weakly supervised joint topic model. Int. J. Comput. Vis. 2012, 33, 2451–2464. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  15. Emonet, R.; Varadarajan, J.; Odobez, J. Extracting and locating temporal motifs in video scenes using a hierarchical non parametric Bayesian model. Int. J. Comput. Vis. 2011, 32, 3233–3240. [Google Scholar]
  16. Fu, W.; Wang, J.; Lu, H.; Ma, S. Dynamic scene understanding by improved sparse topical coding. Pattern Recogn. 2013, 46, 1841–1850. [Google Scholar] [CrossRef]
  17. Yuan, J.; Zheng, Y.; Xie, X. Discovering regions of different functions in a city using human mobility and POIs. In Proceedings of the 18th ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, Beijing, China, 12–16 August 2012; pp. 186–194. [Google Scholar]
  18. Farrahi, K.; Gatica-Perez, D. Discovering routines from large-scale human locations using probabilistic topic models. ACM Trans. Intell. Syst. Technol. 2011, 2. [Google Scholar] [CrossRef]
  19. Zhao, Z.; Xu, W.; Chen, D. EM-LDA model of user behavior detection for energy efficiency. In Proceedings of the IEEE International Conference on System Science and Engineering, Shanghai, China, 11–13 July 2014; pp. 295–300. [Google Scholar]
  20. Yu, R.; He, X.; Liu, Y. GLAD: Group anomaly detection in social media analysis. In Proceedings of the 20th ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, New York, NY, USA, 24–27 August 2014; pp. 372–381. [Google Scholar]
  21. Kinoshita, A.; Takasu, A.; Adachi, J. Real-time traffic incident detection using a probabilistic topic model. J. Intell. Inf. Syst. 2015, 54, 169–188. [Google Scholar] [CrossRef]
  22. Hospedales, T. Video behaviour mining using a dynamic topic model. Int. J. Comput. Vis. 2012, 98, 303–323. [Google Scholar] [CrossRef]
  23. Fan, Y.; Zhou, Q.; Yue, W.; Zhu, W. A dynamic causal topic model for mining activities from complex videos. Multimed. Tools Appl. 2017, 10, 1–16. [Google Scholar] [CrossRef]
  24. Hu, X.; Hu, S.; Zhang, X.; Zhang, H.; Luo, L. Anomaly detection based on local nearest neighbor distance descriptor in crowded scenes. Sci. World J. 2014, 2014, 632575. [Google Scholar] [CrossRef] [PubMed]
  25. Pathak, D.; Sharang, A.; Mukerjee, A. Anomaly localization in topic-based analysis of surveillance videos. In Proceedings of the IEEE Winter Conference on Applications of Computer Vision, Waikoloa, HI, USA, 5–9 January 2015; pp. 389–395. [Google Scholar]
  26. Jeong, H.; Yoo, Y.; Yi, K.M.; Choi, J.Y. Two-stage online inference model for traffic pattern analysis and anomaly detection. Mach. Vis. Appl. 2014, 25, 1501–1517. [Google Scholar] [CrossRef]
  27. Kaviani, R.; Ahmadi, P.; Gholampour, I. Incorporating fully sparse topic models for abnormality detection in traffic videos. In Proceedings of the International Conference on Computer and Knowledge Engineering, Mashhad, Iran, 29–30 October 2014; pp. 586–591. [Google Scholar]
  28. Isupova, O.; Kuzin, D.; Mihaylova, L. Anomaly detection in video with Bayesian nonparametrics. arXiv, 2016arXiv:1606.08455v1.
  29. Zou, J.; Chen, X.; Wei, P.; Han, Z.; Jiao, J. A belief based correlated topic model for semantic region analysis in far-field video surveillance systems. In Proceedings of the Pacific-Rim Conference on Multimedia, Nanjing, China, 13–16 December 2013; pp. 779–790. [Google Scholar]
  30. Haines, T.S.F.; Xiang, T. Video topic modelling with behavioural segmentation. In Proceedings of the ACM International Workshop on Multimodal Pervasive Video Analysis, Firenze, Italy, 29 October 2010; pp. 53–58. [Google Scholar]
  31. Gasparini, M. Markov chain monte carlo in practice. Technometrics 1997, 39, 338. [Google Scholar] [CrossRef]
  32. Schölkopf, B.; Platt, J.; Hofmann, T. A collapsed variational bayesian inference algorithm for latent dirichlet allocation. Adv. Neural Inf. Process. Syst. 2007, 19, 1353–1360. [Google Scholar]
  33. Hoffman, M.D.; Blei, D.M.; Bach, F. Online learning for latent dirichlet allocation. In Proceedings of the International Conference on Neural Information Processing Systems, Vancouver, BC, Canada, 6–9 December 2010; pp. 856–864. [Google Scholar]
  34. Mimno, D.; Hoffman, M.; Blei, D. Sparse stochastic inference for latent dirichlet allocation. arXiv, 2012arXiv:1206.6425.
  35. Girolami, M.; Calderhead, B. Riemann manifold langevin and hamiltonian monte carlo methods. J. R. Stat. Soc. 2015, 73, 123–214. [Google Scholar] [CrossRef]
  36. Welling, M.; Teh, Y.W. Bayesian learning via stochastic gradient langevin dynamics. In Proceedings of the International Conference on Machine Learning, Bellevue, WA, USA, 28 June–2 July 2011; pp. 681–688. [Google Scholar]
  37. Patterson, S.; Teh, Y.W. Stochastic gradient riemannian langevin dynamics on the probability simplex. In Advances in Neural Information Processing Systems, Harrahs and Harveys, Lake Tahoe, 5–10 December 2013. 3102–3110.
  38. Isupova, O.; Kuzin, D.; Mihaylova, L. Learning methods for dynamic topic modeling in automated behavior analysis. IEEE Trans. Neural Netw. Learn. 2017, 99, 1–14. [Google Scholar] [CrossRef] [PubMed]
  39. Rosen-Zvi, M.; Chemudugunta, C.; Griffiths, T.; Smyth, P.; Steyvers, M. Learning author-topic models from text corpora. ACM Trans. Inf. Syst. 2010, 28, 1–38. [Google Scholar] [CrossRef] [Green Version]
  40. Bao, S.; Xu, S.; Zhang, L.; Yan, R.; Su, Z.; Han, D.; Yu, Y. Mining social emotions from affective text. IEEE Trans. Knowl. Data Eng. 2012, 24, 1658–1670. [Google Scholar] [CrossRef]
  41. Junction Dataset. Available online: http://www.eecs.qmul.ac.uk/~sgg/QMUL_Junction_Datasets/Junction/Junction.html (accessed on 29 May 2017).
Figure 1. Diagram of video topic modeling.
Figure 1. Diagram of video topic modeling.
Algorithms 11 00097 g001
Figure 2. Graphical model of RTM.
Figure 2. Graphical model of RTM.
Algorithms 11 00097 g002
Figure 3. Directions and regions of simulation video
Figure 3. Directions and regions of simulation video
Algorithms 11 00097 g003
Figure 4. Generated simulation datasets. (a) Training set. (b) Test set.
Figure 4. Generated simulation datasets. (a) Training set. (b) Test set.
Algorithms 11 00097 g004
Figure 5. Motion topics and regions discovered by RTM-GS and RTM-HSVG in simulation dataset (a) The seven random simulate abnormal motions. (b) The four motion topics and five regions discovered by RTM-GS. (c) The four motion topics and three regions discovered by RTM-HSVG.
Figure 5. Motion topics and regions discovered by RTM-GS and RTM-HSVG in simulation dataset (a) The seven random simulate abnormal motions. (b) The four motion topics and five regions discovered by RTM-GS. (c) The four motion topics and three regions discovered by RTM-HSVG.
Algorithms 11 00097 g005
Figure 6. The NLL and r_NLL comparisons of our model and actual values. (a) NLL (left and blue) and r_NLL (right and blue) comparisons of RTM-HSVG. (b) NLL (left and blue) and r_NLL (right and blue) comparisons of RTM-GS.
Figure 6. The NLL and r_NLL comparisons of our model and actual values. (a) NLL (left and blue) and r_NLL (right and blue) comparisons of RTM-HSVG. (b) NLL (left and blue) and r_NLL (right and blue) comparisons of RTM-GS.
Algorithms 11 00097 g006
Figure 7. Comparative results of ROC. (a) Comparative results on NLL. (b) Comparative results on r_NLL.
Figure 7. Comparative results of ROC. (a) Comparative results on NLL. (b) Comparative results on r_NLL.
Algorithms 11 00097 g007
Figure 8. Twenty latent motion regions discovered by RTM-GS.
Figure 8. Twenty latent motion regions discovered by RTM-GS.
Algorithms 11 00097 g008
Figure 9. Eighteen latent motion topics discovered by RTM-GS.
Figure 9. Eighteen latent motion topics discovered by RTM-GS.
Algorithms 11 00097 g009
Figure 10. Twenty latent motion regions discovered by RTM-HSVG.
Figure 10. Twenty latent motion regions discovered by RTM-HSVG.
Algorithms 11 00097 g010
Figure 11. Thirty-six latent motion topics discovered by RTM-HSVG.
Figure 11. Thirty-six latent motion topics discovered by RTM-HSVG.
Algorithms 11 00097 g011
Figure 12. Twenty latent motion regions discovered by RTM-GS on longer burn-in time.
Figure 12. Twenty latent motion regions discovered by RTM-GS on longer burn-in time.
Algorithms 11 00097 g012
Figure 13. Eighteen latent motion topics discovered by RTM-GS on longer burn-in time.
Figure 13. Eighteen latent motion topics discovered by RTM-GS on longer burn-in time.
Algorithms 11 00097 g013
Figure 14. Comparative results of ROC on real video.
Figure 14. Comparative results of ROC on real video.
Algorithms 11 00097 g014
Figure 15. Locating abnormal events by RTM-HSVG.
Figure 15. Locating abnormal events by RTM-HSVG.
Algorithms 11 00097 g015
Table 1. Software and hardware platform.
Table 1. Software and hardware platform.
CPUIntel® Core(TM) 2 Duo CPU E8400 @ 3.00 GHz 3.00 GHz
Memory2.00 G
OSWindow7
Programing platform Python 2.7.5
Table 2. Parameter settings of RTM-HSVG and RTM-GS.
Table 2. Parameter settings of RTM-HSVG and RTM-GS.
RTM-GSRTM-HSVG
Burn-in time N = 2000 ; After Markov chain convergence, sampling at intervals of 100 times; the total number of sampling is S = 20 ; T = 18 ; R = 20 ; The hyper parameter is α = 0.3 ; β = 1.2 ; λ = 0.3 Burn-in time N = 400 ; After Markov chain convergence, sampling at intervals of 10 times; the total number of sampling is S = 10 ; T = 36 ; R = 20 ; The hyper parameter is α = 0.3 ; β = 1.2 ; λ = 0.3

Share and Cite

MDPI and ACS Style

Tang, L.; Liu, L.; Gan, J. A Regional Topic Model Using Hybrid Stochastic Variational Gibbs Sampling for Real-Time Video Mining. Algorithms 2018, 11, 97. https://doi.org/10.3390/a11070097

AMA Style

Tang L, Liu L, Gan J. A Regional Topic Model Using Hybrid Stochastic Variational Gibbs Sampling for Real-Time Video Mining. Algorithms. 2018; 11(7):97. https://doi.org/10.3390/a11070097

Chicago/Turabian Style

Tang, Lin, Lin Liu, and Jianhou Gan. 2018. "A Regional Topic Model Using Hybrid Stochastic Variational Gibbs Sampling for Real-Time Video Mining" Algorithms 11, no. 7: 97. https://doi.org/10.3390/a11070097

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

Article Metrics

Back to TopTop