[Paper Review] Video Trajectory Classification and Anomaly Detection Using Hybrid CNN-VAE
This paper proposes a hybrid CNN-VAE architecture for video trajectory classification and anomaly detection in traffic surveillance, using color gradient representations to encode temporal features and enabling both known and unknown anomaly detection. The method achieves higher accuracy than existing approaches by leveraging semi-supervised trajectory labeling, t-SNE for outlier separation, and end-to-end deep learning on variable-length trajectories.
Classifying time series data using neural networks is a challenging problem when the length of the data varies. Video object trajectories, which are key to many of the visual surveillance applications, are often found to be of varying length. If such trajectories are used to understand the behavior (normal or anomalous) of moving objects, they need to be represented correctly. In this paper, we propose video object trajectory classification and anomaly detection using a hybrid Convolutional Neural Network (CNN) and Variational Autoencoder (VAE) architecture. First, we introduce a high level representation of object trajectories using color gradient form. In the next stage, a semi-supervised way to annotate moving object trajectories extracted using Temporal Unknown Incremental Clustering (TUIC), has been applied for trajectory class labeling. Anomalous trajectories are separated using t-Distributed Stochastic Neighbor Embedding (t-SNE). Finally, a hybrid CNN-VAE architecture has been used for trajectory classification and anomaly detection. The results obtained using publicly available surveillance video datasets reveal that the proposed method can successfully identify some of the important traffic anomalies such as vehicles not following lane driving, sudden speed variations, abrupt termination of vehicle movement, and vehicles moving in wrong directions. The proposed method is able to detect above anomalies at higher accuracy as compared to existing anomaly detection methods.
Motivation & Objective
- To address the challenge of classifying and detecting anomalies in variable-length video object trajectories from surveillance videos.
- To improve anomaly detection accuracy by encoding temporal features using a color gradient representation that captures motion dynamics.
- To enable detection of both known anomalies (e.g., wrong-way driving) and unknown anomalies (e.g., abrupt stops) in traffic scenes.
- To reduce false positives in high-traffic conditions through contextual modeling and robust reconstruction loss.
- To develop a semi-supervised framework that combines TUIC-based tracking with deep learning for scalable trajectory labeling.
Proposed method
- Trajectories are represented using a color gradient form to encode temporal evolution, preserving motion patterns across variable lengths.
- Temporal Unknown Incremental Clustering (TUIC) extracts trajectories, followed by semi-supervised labeling using mDPMM for normal path identification.
- t-SNE is applied to visualize and separate anomalous trajectories from normal ones in the embedding space.
- A hybrid CNN-VAE architecture is trained end-to-end: the CNN extracts spatial features from color gradient images, while the VAE learns a latent representation for reconstruction and anomaly scoring.
- Anomaly detection is performed using reconstruction loss (KLD + likelihood), with thresholds set based on converged loss values from normal trajectories.
- The system localizes anomalies by analyzing reconstruction errors and integrates contextual cues (e.g., signal state) to detect context-dependent anomalies.
Experimental results
Research questions
- RQ1Can a color gradient representation effectively encode temporal features in variable-length video trajectories for deep learning-based classification?
- RQ2How can semi-supervised clustering and t-SNE improve the separation of normal and anomalous trajectories in surveillance data?
- RQ3To what extent does the hybrid CNN-VAE model outperform reconstruction-based methods in detecting known and unknown traffic anomalies?
- RQ4Can the model detect contextual anomalies such as wrong-way turns during green signals, which are missed by conventional methods?
- RQ5How does the proposed method handle false positives in high-traffic scenarios, particularly during signal changes?
Key findings
- The proposed method detects key traffic anomalies such as lane violations, wrong-way driving, abrupt stops, and speed variations with higher accuracy than existing reconstruction-based methods.
- The hybrid CNN-VAE model achieves lower false alarm rates compared to sparse reconstruction [19] and spatio-temporal autoencoder [5], especially in dense traffic.
- The system successfully identifies contextual anomalies—such as vehicles turning left during green signal when only straight movements are allowed—where other methods fail.
- Unknown anomalies are detected via VAE reconstruction loss, while known anomalies are localized and classified using the CNN head with high precision.
- The method demonstrates superior performance in anomaly localization, with detection triggered as soon as a trajectory becomes available, unlike per-sequence or per-frame methods.
- Thresholding based on converged KLD and likelihood losses provides a robust, data-driven anomaly detection criterion with minimal hyperparameter tuning.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.