Near-Online Multi-target Tracking with Aggregated Local Flow Descriptor
Wongun Choi
Introduction
The goal of multiple target tracking is to automatically identify objects of interest and reliably estimate the motion of targets over the time. Thanks to the recent advancement in image-based object detection methods , tracking-by-detection has become a popular framework to tackle the multiple target tracking problem. The advantages of the framework are that it naturally identifies new objects of interest entering the scene, that it can handle video sequences recorded using mobile platforms, and that it is robust to a target drift. The key challenge in this framework is to accurately group the detections into individual targets with high accuracy (data association), so one target could be fully represented by a single estimated trajectory. Mistakes made in the identity maintenance could result in a catastrophic failure in many high level reasoning tasks, such as future motion prediction, target behavior analysis, etc.
To implement a highly accurate multiple target tracking algorithm, it is important to have a robust data association model and an accurate measure to compare two detections across time (pairwise affinity measure). Recently, much work is done in the design of the data association algorithm using global (batch) tracking framework . Compared to the online counterparts , these methods have a benefit of considering all the detections over entire time frames. With a help of clever optimization algorithms, they achieve higher data association accuracy than traditional online tracking frameworks. However, the application of these methods is fundamentally limited to post-analysis of video sequences. On the other hand, the pairwise affinity measure is relatively less investigated in the recent literature despite its importance. Most methods adopt weak affinity measures (see Fig. 1) to compare two detections across time, such as spatial affinity (e.g. bounding box overlap or euclidean distance ) or simple appearance similarity (e.g. intersection kernel with color histogram ). In this paper, we address the two key challenging questions of the multiple target tracking problem: 1) how to accurately measure the pairwise affinity between two detections (i.e. likelihood to link the two) and 2) how to efficiently apply the ideas in global tracking algorithms into an online application.
As the first contribution, we present a novel Aggregated Local Flow Descriptor (ALFD) that encodes the relative motion pattern between two detection boxes in different time frames (Sec. 3). By aggregating multiple local interest point trajectories (IPTs), the descriptor encodes how the IPTs in a detection moves with respect to another detection box, and vice versa. The main intuition is that although each individual IPT may have an error, collectively they provide a strong information for comparing two detections. With a learned model, we observe that ALFD provides strong affinity measure, thereby providing strong cues for the association algorithm.
As the second contribution, we propose an efficient Near-Online Multi-target Tracking (NOMT) algorithm. Incorporating the robust ALFD descriptor as well as long-term motion/appearance models motivated by the success of modern batch tracking methods, the algorithm produces highly accurate trajectories, while preserving the causality property and running in real-time ( FPS). In every time frame , the algorithm solves the global data association problem between targets and all the detections in a temporal window [t\scalebox{0.5}[1.0]{-}\tau,t] of size (see Fig. 2). The key property is that the algorithm is able to fix any association error made in the past when more detections are provided. In order to achieve both accuracy and efficiency, the algorithm generates candidate hypothetical trajectories using ALFD driven tracklets and solve the association problem with a parallelized junction tree algorithm (Sec. 4).
We perform a comprehensive experimental evaluation on two challenging datasets: KITTI and MOT Challenge datasets. The proposed algorithm achieves the best accuracy with a large margin over the state-of-the-arts (including batch algorithms) in both datasets, demonstrating the superiority of our algorithm. The rest of the paper is organized as follows. Sec. 2 discusses the background and related work in multiple target tracking literature. Sec. 3 describes our newly proposed ALFD. Sec. 4 presents overview of NOMT data association model and the algorithm. Sec. 5 discusses the details of model design. We show the analysis and experimental evaluation in Sec. 6, and finally conclude with Sec. 7.
Background
Most of multiple target tracking algorithms/systems can be classified into two categories: online method and global (batch) method.
2 Affinity Measures in Visual Tracking
The importance of a robust pairwise affinity measure (i.e. likelihood of and being the same target) is relatively less investigated in the multi-target tracking literature. Most of the recent literature employs a spatial distance and/or an appearance similarity with simple features (such as color histograms). In order to learn a discriminative affinity metric, Kuo et al. introduces an online appearance learning with boosting algorithm using various feature inputs such as HoG , texture feature, and RGB color histogram. Milan et al. and Zamir et al. proposed to use a global appearance consistency measure to ensure a target has a similar (or smoothly varying) appearance over a long term. Although there have been many works exploiting appearance information or spatial smoothness, we are not aware of any work employing optical flow trajectories to define a likelihood of matching detections. Recently, Fragkiadaki et al. introduced a method to track multiple targets while jointly clustering optical flow trajectories. The work presents a promising result, but the model is complicated due to the joint inference on both target and flow level association. In contrast, our ALFD provides a strong pairwise affinity measure that is generally applicable in any tracking model.
Aggregated Local Flow Descriptor
The Aggregated Local Flow Descriptor (ALFD) encodes the relative motion pattern between two bounding boxes in a temporal distance () given interest point trajectories . The main intuition in ALFD is that if the two boxes belong to the same target, we shall observe many supporting IPTs in the same relative location with respect to the boxes. In order to make it robust against small localization errors in detections, targets’ orientation change, and outliers/errors in the IPTs, we build the ALFD using spatial histograms. Once the ALFD is obtained, we measure the affinity between two detections using the linear product of a learned model parameter and ALFD, i.e. . In the following subsections, we discuss the details of the design.
We obtain Interest Point Trajectories using a local interest point detector and optical flow algorithm . The algorithm is designed to produce a set of long and accurate point trajectories, combining various well-known computer vision techniques. Given an image , we run the FAST interest point detector to identify “good points” to track. In order to avoid having redundant points, we compute the distance between the newly detected interest points and the existing IPTs and keep the new points sufficiently far from the existing IPTs ( px). The new points are assigned unique IDs. For all the IPTs in , we compute the forward () and backward () optical flow using . The starting points of backward flows are given by the forward flows’ end point. Any IPT having a large disagreement between the two ( px) is terminated.
2 ALFD Design
Let us define the necessary notations to discuss ALFD. represents an IPT with a unique that is parameterized by pixel locations during the time of presence. denotes the pixel location at the frame . If does not exist at (terminated or not initiated), is returned.
We first define a unidirectional ALFD , i.e. from to , by aggregating the information from all the IPTs that are located inside of box and existing at . Formally, we define the IPT set as . For each , we compute the relative location of each at by r_{i}(\kappa_{id})[x]=(\kappa_{id}(t_{i})[x]\scalebox{0.5}[1.0]{-}d_{i}[x])/d_{i}[w] and r_{i}(\kappa_{id})[y]=(\kappa_{id}(t_{i})[y]\scalebox{0.5}[1.0]{-}d_{i}[y])/d_{i}[h]. We compute similarly. Notice that are bounded between $r_{j}(\kappa_{id})\kappa_{id}d_{j}r_{i}(\kappa_{id})r_{j}(\kappa_{id})4\times 4r_{i}(\kappa_{id})4\times 4+2r_{j}(\kappa_{id})2 Using a pair of unidirectional ALFDs, we define the ALFD as , where is a normalizer. The normalizer is defined as , where is the count of IPTs and is a constant. ensures that the L1 norm of the ALFD increases as we have more supporting and converges to . We use in practice. The algorithm computes a weighted average with a sign over all the ALFD patterns, where the weights are determined by the overlap between targets and detections. Intuitively, the ALFD pattern between detections that matches well with GT contributes more on the model parameters. The advantage of the weighted voting method is that each element in are bounded in $a_{A}(d_{i},d_{j})||\rho(d_{i},d_{j})||_{1}\leq 1$. Fig. 4 shows two learned model using our method. One can adopt alternative learning algorithms like SVM . In this section, we discuss the properties of ALFD affinity metric . Firstly, unlike appearance or spatial metrics, ALFD implicitly exploit the information in all the images between and through IPTs. Secondly, thanks to the collective nature of ALFD design, it provides strong affinity metric over arbitrary length of time. We observe a significant benefit over the appearance or spatial metric especially over a long temporal distance (see Sec. 6.1 for the analysis). Thirdly, it is generally applicable to any scenarios (either static or moving camera) and for any object types (person or car). A disadvantage of the ALFD is that it may become unreliable when there is an occlusion. When an occlusion happens to a target, the IPTs initiated from the target tend to adhere to the occluder. It motivates us to combine target dynamics information discussed in Sec. 5.1. where encodes individual target’s motion, appearance, and ALFD metric consistency, and represent an exclusive relationship between different targets (e.g. no two targets share the same detection). If there are hypotheses for newly entering targets, we define the corresponding target as an empty set, . The potential measures the compatibility of a hypothesis to a target A_{m}^{*t\scalebox{0.5}[1.0]{-}1}. Mathematically, this can be decomposed into unary, pairwise and high order terms as follows: encodes the compatibility of each detection in the target hypothesis using the ALFD affinity metric and Target Dynamics feature (Sec. 5.1). measures the pairwise compatibility (self-consistency of the hypothesis) between detections within (Sec. 5.2) using the ALFD metric. Finally, implements a long-term smoothness constraint and appearance consistency (Sec. 5.3). This potential penalizes choosing two targets with large overlap in the image plane (repulsive force) as well as duplicate assignments of a detection. Instead of using “hard” exclusion constraints as in the Hungarian Algorithm , we use “soft” cost function for flexibility and computational simplicity. If the single target consistency is strong enough, soft penalization cost could be overcome. Also, this formulation makes it possible to reuse popular graph inference algorithms discussed in Sec. 4.3. The potential can be written as follows: Once we have all the hypotheses for all the new and existing targets, the problem (eq. 2) can be formulated as an inference problem with an undirected graphical model, where one node represents a target and the states are hypothesis indices as shown in Fig. 5 (c). The main challenges in this problem are: 1) there may exist loops in the graphical model representation and 2) the structure of graph is different depending on the hypotheses at each circumstance. In order to obtain the exact solution efficiently, we first analyze the structure of the graph on the fly and apply appropriate inference algorithms based on the structure analysis. Given the graphical model, we find independent subgraphs (shown as dashed boxes in Fig. 5 (c)) using connected component analysis and perform individual inference algorithm per each subgraph in parallel. If a subgraph is composed of more than one node, we use junction-tree algorithm to obtain the solution for corresponding subgraph. Otherwise, we choose the best hypothesis for the target. In this section, we discuss the details of the potentials described in the Eq. 3. As discussed in the previous sections, we utilize the ALFD metric as the main affinity metric to compare detections. The unary potential for each detection in the hypothesis is measured by: where is a predefined set of neighbor frame distances and d(A_{m}^{*t\scalebox{0.5}[1.0]{-}1},t_{i}) gives the associated detection of A_{m}^{*t\scalebox{0.5}[1.0]{-}1} at . Although we can define an arbitrarily large set of , we choose for computational efficiency while modeling long term affinity measures. Although ALFD metric provides very strong information in most of the cases, there are few failure cases including occlusions, erroneous IPTs, etc. To complement such cases, we design an additional Target Dynamics (TD) feature \mu_{T}(A_{m}^{*t\scalebox{0.5}[1.0]{-}1},d_{i}). Using the same polynomial least square predictor discussed in Sec. 4.2, we define the feature as follows: where is a decay factor () that discounts long term prediction, f(A_{m}^{*t\scalebox{0.5}[1.0]{-}1}) denotes the last associated frame of A_{m}^{*t\scalebox{0.5}[1.0]{-}1}, represents discussed in the Sec. 4.1, and is the polynomial least square predictor described in Sec. 4.2. Using the two measures, we define the unary potential \psi_{u}(A_{m}^{*t\scalebox{0.5}[1.0]{-}1},d_{i}) as: where represents the detection score of . The operator enables us to utilize the ALFD metric in most cases, but activate the TD metric only when it is very confident (more than overlap between the prediction and the detection). If A_{m}^{*t\scalebox{0.5}[1.0]{-}1} is empty, the potential becomes . The pairwise potential is solely defined by the ALFD metric. Similarly to the unary potential, we define the pairwise relationship between detections in , It measures the self-consistency of a hypothesis . We incorporate a high-order potential to regularize the target association process with a physical feasibility and appearance similarity. Firstly, inspired by , we implement the physical feasibility by penalizing the hypotheses that present an abrupt motion. Secondly, we encodes long term appearance similarity between all the detections in A_{m}^{*t\scalebox{0.5}[1.0]{-}1} and similarly to . The intuition is encoded by the following potential: where are scalar parameters, measures the sum of squared distances in of the two boxes, that is normalized by the mean height of in [t\scalebox{0.5}[1.0]{-}\tau,t], and represents the intersection kernel for color histograms associated with the detections. We use a pyramid of LAB color histogram where the first layer is the full box and the second layer is grids. Only the A and B channels are used for the histogram with bins per each channel (resulting in bins). We use in practice. In order to evaluate the proposed algorithm, we use the KITTI object tracking benchmark and MOT challenge dataset . KITTI tracking benchmark is composed of about frames ( minutes). The dataset is composed of training and testing video sequences that are recorded using cameras mounted on top of a moving vehicle. Each video sequence has a variable number of frames from to frames having a variable number of target objects (Car, Pedestrian, and Cyclist). The videos are recorded at FPS. The dataset is very challenging since 1) the scenes are crowded (occlusion and clutter), 2) the camera is not stationary, and 3) target objects appears in arbitrary location with variable sizes. Many conventional assumptions/techniques adopted in multiple target tracking with a surveillance camera is not applicable in this case (e.g. fixed entering/exiting location, background subtraction, etc). MOT challenge is composed of frames ( minutes) with varying FPS. The dataset is composed of training and testing video sequences. Some of the videos are recorded using mobile platform and the others are from surveillance videos. All the sequences contain only Pedestrians. As it is composed of videos with various configuration, tracking algorithms that are particularly tuned for a specific scenario would not work well in general. For the evaluation, we adopt the widely used CLEAR MOT tracking metrics . For a fair comparison to the other methods, we use the reference object detections provided by the both datasets. We first run an ablative analysis on our ALFD affinity metric. We choose two sequences, KITTI’s 0001 and MOT’s PETS09-S2L1 both from the training sets, for the analysis. Given all the detections and the ground truth annotations, we first find the label association between detections and annotations. For each detection, we assign ground truth id if there is larger than overlap. We collect all possible pairs of detections in frame distance (), to obtain the positive and negative pairs. As the baseline affinity measures, we use the L2 distance between bottom center of the detections that is normalized by the mean height of the two (NDist2) and the intersection kernel between the color histograms of the two (HistIK). Fig. 6 and Table. 1 show the ROC curve and AUC of each affinity metric. We observe that ALFD affinity metric performs the best in all temporal distance regardless of the camera configuration and object type. As the temporal distance increases, the other metrics become quickly unreliable as expected, whereas our ALFD metric still provides strong cue to compare different detections. As shown in the table, we observe that our algorithm (NOMT) outperforms the other state-of-the-art methods in most of the metrics with significant margins. Our method produces much larger numbers of mostly tracked targets (MT) in both Car and Pedestrian experiments with smaller numbers of mostly lost targets (ML). This is thanks to the highly accurate identity maintenance capability of our algorithm demonstrated in the low number of identity switch (IDS) and fragmentation (FRAG). In turn, our method achieves highest MOTA compared to other state-of-the-arts ( for Car and for Pedestrian), which summarize all aspects of tracking evaluation. Notice that the higher tracking accuracy results in the higher detection accuracy as shown in Recall, Precision, and F1 metrics. Our own HM baseline also performs better than the other state-of-the-art methods, which demonstrates the robustness of ALFD metric. However, due to the nature of pure online association and lack of high order potential, it ends up missing more targets as shown in the MT and ML measures. Table. 3 summarizes the evaluation accuracy of our method (NOMT) and the other state-of-the-art algorithms on the MOT test video sequencesThe comparison is also available at http://nyx.ethz.ch/view_results.php?chl=2.. The website provides a set of reference detections obtained using . Similarly to the KITTI experiment, we observe that our algorithm outperforms the other state-of-the-art methods with significant margins. Our method achieves the lowest identity switch and fragmentation while achieving the highest detection accuracy (lowest False Positives (FP) and False Negatives (FN)). In turn, our method records the highest MOTA compared to the other state-of-the-arts with a significant margin (). The two experiments demonstrate that our ALFD metric and NOMT algorithm is generally applicable to any application scenario. Fig. 7 shows some qualitative examples of our results. Our algorithm is not only highly accurate, but also very efficient. Leveraging on the parallel computation, we achieve a real-time efficiency () using a 2.5GHz CPU with 16 cores. Table. 4 summarizes the time spent in each computational module. In this paper, we propose a novel Aggregated Local Flow Descriptor that enables us to accurately measure the affinity between a pair of detections and a Near Online Muti-target Tracking that takes the advantages of both the pure online and global tracking algorithms. Our controlled experiment demonstrates that ALFD based affinity metric is significantly better than other conventional affinity metrics. Equipped with ALFD, our NOMT algorithm generates significantly better tracking results on two challenging large-scaler datasets. In addition, our method runs in real-time that enables us to apply the method in a variety of applications including autonomous driving, real-time surveillance, etc.3 Learning the Model Weights
4 Properties
Near Online Multi-target Tracking (NOMT)
2 Hypothesis Generation
3 Inference with Dynamic Graphical Model
Model Details
2 Pairwise potential
3 High-order potential
Experimental Evaluation
2 KITTI Testing Benchmark Evaluation
3 MOT Challenge Evaluation
4 Timing Analysis
Conclusion
References