{'fraction_non_alphanumeric': 0.032923761257155355, 'fraction_numerical': 0.012433003974186022, 'mean_word_length': 4.8682071031236624, 'pattern_counts': {'":': 0, '<': 2, '<?xml version=': 0, '>': 2, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
Long-term target tracking combined with re-detection


 The long-term visual tracking undergoes more challenges and is closer to realistic applications than short-term tracking. However, the performances of most existing methods have been limited in the long-term tracking tasks. In this work, we present a reliable yet simple long-term tracking method, which extends the state-of-the-art Learning Adaptive Discriminative Correlation Filters (LADCF) tracking algorithm with a re-detection component based on the SVM model. The LADCF tracking algorithm localizes the target in each frame and the re-detector is able to efficiently re-detect the target in the whole image when the tracking fails. We further introduce a robust confidence degree evaluation criterion that combines the maximum response criterion and the average peak-to correlation energy (APCE) to judge the confidence level of the predicted target. When the confidence degree is generally high, the SVM is updated accordingly. If the confidence drops sharply, the SVM re-detects the target. We perform extensive experiments on the OTB-2015 and UAV123 datasets. The experimental results demonstrate the effectiveness of our algorithm in long-term tracking.


Introduction
While visual object tracking as a hot research topic in computer vision has been widely applied in various fields, many challenges are still not resolved especially in target disappears, partial occlusion, background clutter, studying a general and powerful tracking algorithm is a tough task.
A typical scenario of visual tracking is to track an unknown object in subsequent image frames by giving the initial state of a target in the first frame of the video. In the past few decades, the visual object tracking technology has made significant progress [1][2][3][4][5][6][7][8][9][10]. These methods are very effective for short-term tracking tasks, which is that the tracked object is almost always in the field of view.
However in realistic applications, the requirement for tracking is not only to track correctly, but also to track for a longer period of time [11]. During the period of time, the tracking output is wrong in the case of target objects absent. And the training samples will be incorrectly annotated, which leads a risk of model drifts. Therefore, it is important to long-term trackers to determine whether the target is absent, and have the capability of re-detection. Long-term tracking task also require the tracker as well as short-term tracking to maintain high-accuracy in the challenges of disappearance and occlusion, especially to stability capture the target object in long-term video [12]. Therefore, the long-term tracking presents more challenges from two aspects. The first issue is how to determine the confidence degree of the tracking results. In [13], the maximum response value of the target is used to determine the confidence of the tracking result.
When the maximum peak value of the response map is lower than the threshold value, the result is determined to be unreliable. However, the response map may fluctuate drastically when the object in occlusion or disappear condition, only using the maximum response value to judge confidence is incredibility. The average peak-to-correlation energy (APCE) criterion in [14] indicates the degree of fluctuation of the response map. If the target is undergoing fast motion, the value of APCE will be low even if the tracking is correct. However, the APCE criterion is commonly used to update trackers in [14]. Secondly, how to relocate the out-of-view targets remains unresolved. The Tracking-Learning-Detection (TLD) [15] algorithm exploits an ensemble of weak classifiers for global re-detection the out-of-view. The method fails to classify the target object due to the huge number of scanning windows. The Long-term correlation tracking (LCT) [13] algorithm proposes a random ferns re-detection model to detect the out-of-view target. In [16], it learns a spatial-temporal filter in a lower dimensional discriminative manifold to alleviate the influences of boundary effects. But the method still cannot solve the target disappearance problem. This paper proposes a tracking algorithm combining the learning adaptive discriminative correlation filter tracker and re-detector. The proposed method aims to perform robust re-detection and relocate the target when target tracking fails. Our main contributions can be summarized as follows.
i) We propose a stable long-term tracking strategy to track the targets that may disappear or deform heavily in long-term tracking. With the confidence strategy adopted, the Learning Adaptive Discriminative Correlation Filters ( LADCF) tracks the accurate target online. And the Support Vector Machine (SVM) is updated when the confidence degree is generally high. In contrast, if the response maps fluctuate heavily, the SVM is used as a re-detector to relocate the target.
ii) We not only utilize the maximum response but also adopt the APCE criterion to the re-detection component. The fusion of the two criteria can accurately determine the state of the tracker and improve the accuracy of the tracking system.
iii) We evaluate the proposed tracking algorithm on the OTB-2015 [17] and UAV123 [18] datasets, the experimental results show that the proposed algorithm performs more stable and accurate tracking performance in the case of occlusion, background clutter, etc. during the long-term tracking.
The structure of the rest of the paper is as follows: Section 2 overviews the related work. Section 3 presents the proposed method. Section 4 reports the experimental results and experimental analysis. Section 5 concludes the paper.

Correlation filter
Correlation filters have shown outstanding results for target tracking [17] [19]. These methods exploit the circular correlation of the filter in the frequency domain to locate the target object. Bolme et al. [4] propose the pioneering MOSSE tracker, using only gray image features to train the filter. The Circulant Structure of Tracking-by-detection with Kernels (CSK) tracker [20] employs the illumination intensity features and applies DCFs in a kernel space. The Kernelized Correlation Filters (KCF) [6] further improves CSK by use of the multi-channel Histogram of Oriented Gradient (HOG) features.
Danelljan et al. [5] exploit the color attributes of target object and learn an adaptive correlation filter.
The literature [21] proposes a patch-based visual tracker that divides the object and the candidate area into several small blocks evenly, and uses the average score of overall small blocks to determine the optimal candidate, which greatly improves under the occlusion circumstances. The literature [22] proposes an online representative sample selection method to construct an effective observation module that can handle occasional large appearance changes or severe occlusion.
The estimation of target scale is another important aspect for testing an outstanding tracker. It not only improves better performance, but also provides the computational efficiency. The Discriminative Scale Space Tracking (DSST) tracker [23] performs translation estimation and scale estimation separately, using a scale pyramid to respond to the scale change. Li and Zhu [24] present an effective scale adaptive scheme, which defines a scale pool to turn the samples of each scale into the same size as the initial sample by the bilinear interpolation method.
The formulation of DCFs exploits the circular correlation which implements learning efficiently by applying Fast Fourier Transform (FFT). However, it induces the circular boundary effects, which has a drastic negative impact on tracking performance. Danelljan et al. [25] suggest reducing these boundary effects by introducing a spatial regularization component. Nevertheless, regularization will make the cost of the model optimization higher. Galoogahi et al. [26] propose an idea to the pre-multiply a fixed masking matrix containing the target regions to address such deficiency of DCFs.
Then they apply the Alternating Direction Method of Multipliers (ADMM) [27] algorithm to solve the constrained optimization problem in real time. The Context-Aware correlation Filter Tracking (CACF) [28] algorithm selects the background reference around the target by considering the global information and adds the background penalty to the closed solution of the filter. The Discriminative Correlation Filter with Channel and Spatial Reliability (CSRDCF) [29] method distinguishes the foreground and background by segmenting the colors in the search area. The Learning Adaptive Discriminative Correlation Filters (LADCF) [16] approach adds adaptive spatial feature selection and temporal consistency constraints to alleviate the spatial boundary effects and temporal filter degradation problems that exist in the DCF method.

Long-term tracking
Kalal et al. [15] propose a tracking-learning-detection (TLD) algorithm, which decomposes the tracking task into tracking, learning and detection. Among them, tracking and detection facilitates each other, the short-term tracker provides training examples for the detector, while the detectors are implemented as a cascade to reduce computational complexity. Enlightened by the TLD framework, Ma et al. [13] propose a long-term correlation filter tracker using a KCF as a baseline algorithm and a random ferns classifier as a detector. The FCLT-A Fully-Correlational Long-Term Tracker (FCLT) [30] trains several correlation filters on different time scales as a detector and exploits the correlation response to link the short-term tracker and long-term detector.

Methods
In this section, we describe our tracker. In section 3.1, we introduced the main tracking framework of our algorithm, which is shown in figure 1. In section 3.2, we introduce the tracker based on LADCF correlation filtering. In section 3.3, we introduce the composite evaluation criteria of the confidence degree and the SVM based re-detector.

The main structure of the algorithm
The proposed algorithm aims to combine both the discriminative correlation filter tracker and the re-detector for long-term tracking. First, the baseline correlation filter tracker is adopted to estimate the translation in the tracking stage. Second, the maximum response value and the APCE criterion are utilized to judge the confidence level of the target. Finally, when the value of confidence is higher than the threshold, the baseline tracker achieves the tracking target alone. When the confidence level drop sharply, indicating the tracking failure. We do not update model and exploit the SVM model to re-detect the target object in the current frame. The structure of the algorithm in this paper is shown in The size of the basic search window size is × , which is determined by the target size × ℎ and padding parameter ϱ as = (1 + ϱ)√ × ℎ. So the bilinear interpolation is applied to resize each patch into × . Then we extract multi-channel features for each scale search window as χ(s)ϵℝ 2× . Given the filter template, the response score can efficiently be calculated in the frequency domain as [16]: After the implementation of the IDFT on each scale, the maximum value of ∈ ℝ 2 × is the relative position and scale.
(2) Updating: We adopt the same updating strategy as the traditional DCF method: where is the updating rate. More specifically, since is not available in the learning stage for the first frame, we use a pre-defined mask that only the target region is activated to optimize as in BACF. And then we initialize = after the learning stage of the first frame.

Correlation filter tracker
In this paper, we set LADCF [16] as the baseline algorithm of our tracking approach.
The LADCF algorithm proposes a new DCF-based tracking method, which utilizes the adaptive spatial feature selection and temporal consistent constraints to reduce the impact of spatial boundary effect and temporal filter degradation. The feature selection process is to select several specific elements in the filter to retain distinguishable and descriptive information, forming a low-dimensional and compact feature representation. Considering an × image patch ∈ ℝ 2 as a base sample for the DCF design, the circulant matrix for this sample is generated by collecting its full cyclic shifts, The spatial feature selection embedded in the learning stage can be expressed as: where denotes the target model in the form of DCF, ⊛ denotes the circular convolution operator.
The indicator vector can potentially be expressed by and‖ ‖ 0 = ‖ ‖ 0 , and ( ) is the diagonal matrix generated from the indicator vector of selected features . The ℓ 0 -norm is non-convex, and the ℓ 1 -norm is widely used to approximate the sparsity [24], so a temporal consistent is constructed by ℓ 1 -norm relaxation spatial feature selection model [16]: where 1 and 2 are tuning parameters and 1 << 2 . denotes the model parameters estimated from the previous frame.
The ℓ 2 -norm relaxation is adopted to further simplify the following expression: where the lasso regularization controlled by 1 select the spatial feature. In the above formula, the filter template model is used to increase smoothness between consecutive frames to promote the time consistency. In this way, the temporal consistency of spatial feature selection can be preserved to extract and retain the diversity of the static and dynamic appearance.
By minimization, the goal can be extended to multi-channel functions with structured sparsity [16]: where is the -th element of the -th channel feature vector i ∈ ℝ D 2 . ⊙ denotes the element-wise multiplication operator. The structured spatial feature selection term calculates the ℓ 2 -norm of each spatial location, and then executes the ℓ 1 -norm to achieve joint sparsity.
Subsequently, utilizing ADMM [27] to optimize the above formula, we introduce the relaxation variables to construct the goals based on convex optimization [31]. Then we could obtain the global optimal solution of the model through ADMM, and form an enhanced Lagrange operator [16]: where ℋ = { 1 , 2 , … , } are the Lagrange multipliers and > 0 is the corresponding penalty parameter controlling the convergence rate [16,32]. As ℒ is convex, ADMM is exploited iteratively to optimize the following sub-problems with guaranteed convergence:

Confidence criterion
Most existed trackers do not consider whether the detection is accurate or not. In fact, once the target is detected incorrectly in the current frame, severely occluded or completely missing, this may cause the tracking failure in subsequent frames.
We introduce a measure to determine the confidence degree of the target objects, which is the first step in the re-detection model. The peak value and the fluctuation of the response map can reveal the confidence about the tracking results. The ideal response map should have only one peak with all the other regions are smooth. Otherwise, the response map will fluctuate intensely. If we continue to use the uncertain samples to track the target in the subsequent frames, the tracking model will be destroyed.
Thus, we exploit to fuse two confidence degree evaluation criteria. The first one is the maximum response value of the current frame.
The second one is the average peak-to-correlation energy (APCE) measure which is defined as where the and are the maximum response and the minimum response of the current frame.
,ℎ is the element value of the -th row and the ℎ-th column of the response matrix.
If the target is moving slowly and is easily distinguishable, the APCE value is generally high.
However, if the target is undergoing fast motion with significant deformations, the value of APCE will be low even if the tracking is correct.

Target re-detection
In this section, we describe the re-detection mechanism used in the case of tracking failure. In the re-detection module, when the confidence level is lower than the threshold, the SVM [33] is used for re-detection. Considering a sample set ( 1 , 1 ), ( 2 , 2 ), … , ( i , ), … , i ∈ R , including positive and negative samples, where is the dimension of the sample, ∈ (+1, −1) is sample labels, SVM can make segmentation of positive and negative samples to obtain the best classification hyperplane. The classification plane is defined as [33]: where represents the weight vector and denotes the bias term. In the case of the linearly classifiable, for a given dataset T and classification hyperplane, the following formula is used for classification judgment: Combining the two equations, we can abbreviate it as: The distance from each support vector to the hyperplane can be written as: The problem of solving the maximum partition hyperplane of the SVM model can be expressed as the following constrained optimization problem: Next, the paper introduces the Lagrangian function to solve the above problem [33].
where > 0 is the Lagrange multiplier, the solution of the optimization problem satisfies the partial derivative of ( , , ) to and be 0. The corresponding decision function as expressed: Then the new sample points are imported into the decision function to get the sample classification.
In the case of linear inseparability, we use the kernel function to map it to the high-dimensional space. In this work, we use the Gaussian kernel function as follows: When a frame is re-detected, an exhaustive search is performed on the current frame using a sliding window, and the HOG features are extracted for each image patch as the vector in the above formula. And the ( ) is calculated by the formula (16). Then we obtain the sample area with the largest ( ). When the response value is greater than the threshold, it will be used as the location of the tracking target again.
The training process of SVM is as follows [33].  (20) where c is the Lagrangian coefficient, is the feature vector extracted from sample, and is the label corresponding to the sample.

Experimental Results and Discussion
In this section, we evaluate the proposed algorithm on OTB-2015 and UAV123 benchmarks [17] with comparisons to other detection-based tracking algorithms and classical correlation filtering

Experimental setups
The experimental software environment is MATLAB R2016a, and the hardware environment is: Intel Core i5-4200M processor, 4GB memory, Windows 8 operating system.
The regularization parameters 1 and 2 are set to 1 and 15, respectively, the initial penalty parameter = 1, the maximum penalty parameter = 20, the maximum number of iterations = 2, the padding parameter as = 4, the scale factor as = 1.01, the threshold for re-detection is set to = 0.13, and the update threshold is set to = 0.20.

Experimental datasets and evaluation criteria
The OTB-2015 dataset has a total of 100 video sequences, including 11 challenges, namely, The distance precision shows the percentage of location error within 20 pixels.

Quantitative evaluation
In this paper, we compare our algorithm with 6 state-of-the-art trackers on OTB-2015 dataset, including 2 tracking-by-detection algorithms, such as LCT [13], Large Margin Object Tracking with Circulant Feature Maps (LMCF) [14] and 4 mainstream correlation filtering tracking algorithms, such as CSK [20], KCF [6], DSST [23] and Background-Aware Correlation Filters (BACF) [26]. Figure 2 shows OPE success rate and precision plots of these algorithms. It can be seen from Fig. 2 that the proposed algorithm has been significantly improved compared with other algorithms. The precision and success rate of our method are 81.4% and 59.9%, respectively. Through experiments, we found that the short-term target trackers learn some wrong information, when the target is occluded or disappears.
Thus the template is pollute by the wrong information and unable to track the target correctly in subsequent frames. Therefore, compared with the BACF algorithm, our method improves the precision and success rate by 14.8% and 7.8%, respectively. The LCT exploits the random fern algorithm to re-detect targets, which is slow to operate. Thus compared with the tracking-by-detection LCT algorithm, the proposed algorithm improves the precision and success rate by 8% and 9.3% respectively. Compared with the LMCF algorithm with the multi-peak detection, our method increased the precision and success rate by 11.2% and 11.1% respectively.
- In order to further verify the superiority of our method, we analyze the tracking performance through attribute-based comparison in Table 1, which shows the area-under-the-curve (AUC) scores of the success plots with 11 different attributes. As shown in Table 1, the proposed algorithm in this paper achieves the best performance on 11 attributes. In the case of OCC, our algorithm score is 10.1% higher than that of the LMCF algorithm (tracking-by-detection style) and 12% higher than the algorithm BACF algorithm (short-term correlation filtering style). For FM images, our algorithm is 4.6% higher than the second-ranked BACF algorithm, and 5.1% higher than the LCT algorithm using random fern re-detection. In the above condition, the target model may be contaminated, which makes target tracking difficult. Meanwhile our model can solve this problem by accurate re-detection via SVM. In the case of OPR, LCT achieves a score of 48.5%. And our tracker provides a gain of 8.7%. This is because the baseline algorithm applied in this paper solves the influence of boundary effects to a certain extent, and can achieve higher accuracy when the target rotation occurs. In the case of OV, the score of our algorithm is 50.7%, which is 3.9% higher than BACF algorithm. The reason is that our template stops updating when the target goes out of view, the SVM is used to detect the target again. When the target reappears in the field of view, our model is not contaminated and can continue tracking the target correctly.
Furthermore, we present the OPE success rate and precision plots on UAV123 in figure 3. As shown in the Fig. 3, our method beats other algorithms on the UAV123 dataset. Specifically, our method achieves the AUC scores of 65.2% and 46.1%, which is better than LCT by 13.1% and 13.4%. At the same time, the proposed method is 16.1% and 10.5% higher than BACF, because the proposed re-detection approach provides a novel solution to re-detect the low-confidence targets to improve tracking accuracy.

Qualitative evaluation
We selected 7 representative benchmark sequences from OTB-2015 to demonstrate the effectiveness of our algorithm. The visual evaluation results are shown in Figure 4. As it can be seen from the figure 4, in the "jogger" sequence, the target is blocked at the 70th frame and the target reappears in the field of view at the 84th frame. Due to the re-detection mechanism, our tracker can track the target correctly. But the short-time correlation filter tracking algorithm learns error information during occlusion, which leads to tracking errors in subsequent frames. In the "soccer" and "Matrix" sequences, due to background clutter, the algorithms such as LCT and BACF lose the target.
In contrast, the proposed algorithm can successfully handle such situations. In the "Car4" sequence, due to the scale change problem, the scale-based DSST algorithm and the proposed algorithm both show better performance. In "shaking" sequence, the proposed algorithm loses its target in the 17th frame due to the issues such as similar lighting changes and background. However, owing to the supplement of a re-detection mechanism, the proposed algorithm relocates the target at the 18th frame and keeps tracking correctly. In the "Bolt" sequence, our algorithm follows the target very closely even in the case of rapid motion of the target. In the "Dog" sequence, when the target is deformed, our algorithm can accurately track the target, while the BACF and LMCF algorithms have a certain offset.
It can be seen from above description that our algorithm achieves higher accuracy in these 7 sequences.
- Furthermore, we compare our method with the baseline tracker using 7 representative benchmark sequences of OTB-2015 in Figure 5. The first three rows are short-term sequences which none of them exceed 1000 frame, and the last four rows are long-term sequences, which all exceed 1000 frames.
As shown in Figure 5, in the experiments for the short-term sequences, the LADCF tracker drifts when the target objects undergo heavy occlusions (Soccer) and does not re-detect targets in the case of tracking failure. Moreover, the LADCF tracker fails to handle background clutter and deformation (Ironman, Bird1), since only the tracking component without the re-detection mechanism makes it less effective to discriminate targets from the cluttered background. In contrast, our method can track the object correctly on these challenging sequences because of the trained detector effectively re-detects the target objects.
In the Sylvester and Lemming sequences, the LADCF algorithm track incorrectly due to the rotating conditions encountered in these sequences, while our method provides better robustness to these conditions. In the Liquor sequence, the LADCF tracking algorithm is similar to our algorithm before the target is occluded. But when the target is occluded, the LADCF method fails to locate the occluded target. In the Rubik sequence, since the target object has undergone deformation and color variation at 854th frame, the LADCF tracker fails to track correctly. Our method is able to track successfully due to re-detection. In our method, if the tracking fails, we perform the re-detection procedure and initialize the tracker so that the target can be re-detected. Thus, our method can correctly track the target all the time.
Overall, our method performs well in estimating the positions of the target objects, which can be attributed to three reasons. Firstly, the combined confidence criterion of our method can correctly identify the target even in very low confidence cases. Secondly, our re-detection component effectively re-detects the target objects in the case of tracking failure. Thirdly, our baseline tracker achieves adaptive discriminative learning ability on a low dimensional manifold and improves the tracking effect. -

Conclusions
This paper proposes a long-term target tracking algorithm, where the two main components are a state-of-the-art LADCF short-term tracker which estimate the target translation and a re-detector which re-detect the target objects in the case of tracking failure. Besides, the algorithm introduces a robust confidence criterion to evaluate the confidence value of the predicted target. When the confidence value is lower than the specified threshold, the SVM model is utilized to re-detect the target objects and the template is not updated. The algorithm is suitable for long-term tracking because it can detect the target accurately in real time and update the template with high reliability. Numerous experimental results show that the proposed algorithm achieves the better performances than the other tracking algorithms.

Declarations:
Availability of data and materials: The datasets used during the current study are OTB2015 dataset [17] and UAV123 dataset [18], are available online or from the corresponding author on reasonable request.

Competing interests:
The authors declare that they have no competing interests.