<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Sadbodh Sharma on Medium]]></title>
        <description><![CDATA[Stories by Sadbodh Sharma on Medium]]></description>
        <link>https://medium.com/@sadbodh.sharma?source=rss-85aba1e2d763------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*dmbNkD5D-u45r44go_cf0g.png</url>
            <title>Stories by Sadbodh Sharma on Medium</title>
            <link>https://medium.com/@sadbodh.sharma?source=rss-85aba1e2d763------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 19:57:55 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@sadbodh.sharma/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Introduction to Tracker KPI]]></title>
            <link>https://medium.com/digital-engineering-centific/introduction-to-tracker-kpi-6aed380dd688?source=rss-85aba1e2d763------2</link>
            <guid isPermaLink="false">https://medium.com/p/6aed380dd688</guid>
            <category><![CDATA[multi-object-tracking]]></category>
            <category><![CDATA[multiple-object-tracking]]></category>
            <category><![CDATA[kpi-tracking]]></category>
            <category><![CDATA[object-tracking]]></category>
            <dc:creator><![CDATA[Sadbodh Sharma]]></dc:creator>
            <pubDate>Fri, 09 Dec 2022 05:17:05 GMT</pubDate>
            <atom:updated>2023-03-13T16:55:00.343Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Multi-Object Tracking (MOT) is the task of detecting the presence of multiple objects in video and associating these detections over time according to object identities. The MOT task is one of the key pillars of computer vision research and is essential for many scene understanding tasks such as surveillance, robotics, or self-driving vehicles. Unfortunately, MOT has been notoriously difficult to evaluate. MOT is a complex task, requiring accurate detection, localization, and association over time. This paper defines the commonly known KPIs that have been used extensively to evaluate any track. There are different metrics that emphasize the importance of either detection or association. Furthermore, in the end we would show how one metric HOTA is able to capture important aspects of MOT performance not previously considered by established metrics.</em></p><h3>Introduction</h3><p>Multi-Object tracking has a long history dating back to at least the 70s. Early work tended to evaluate using their own simple evaluation metrics, such that comparison wasn’t possible between groups. In the early 2000s several different groups sought to define standard MOT evaluation metrics. In 2006, the CLEAR (CLassification of Events, Activities and Relationships) workshop brought together all the above groups and sought to define a common and unified framework for evaluating MOT algorithms. Later this became the CLEAR MOT metrics which positions the MOTA metric as the main metric for tracking evaluation alongside other metrics such as MOTP. MOTA was adopted for evaluation in the PETS workshop series and remains, to this day, the most used metric for evaluating MOT algorithms, although it has often been highly criticized for its bias toward overemphasizing detection over association, as well as several other issues. Later to overcome these issue HOTA was introduced which can evaluate all the aspects of tracker and now is being widely used.</p><p>The Figure 1 is the performance of OC-Sort tracker vs other tracking algorithms on MOT20 dataset, the top row contains different types of KPI used for comparison. Similarly other trackers also use these KPI to benchmark its results. But why do we need so many KPIs, and what is its signification.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/1*UIgd0Hawf8c-xtuKwGPxGA.png" /><figcaption>Figure 1: OC-SORT vs others trackers comparison on MOT20 Challenge</figcaption></figure><p>So, this article will try to answer the following questions:</p><ol><li>Get to know each of these KPIs</li><li>What this KPI measures?</li><li>How do we calculate them?</li><li>Why HOTA is the most important KPI?</li></ol><p>Generally, any tracker KPIs measures two main things</p><ul><li><strong><em>Detection Accuracy</em></strong></li><li><strong><em>Association Accuracy (unique ID linked with the same object)</em></strong></li></ul><p>Let’s go through each KPIs and get to know more about it.</p><h3>CLEARMOT: MOTA and MOTP</h3><p>In MOTA (Multi Object tracking Accuracy), matching is done at a detection level. A one-to-one mapping is constructed between prDets (predicted detections) and gtDets (groundtruth detections) in each frame. Any prDets and gtDets that are matched (correct predictions) become true positives (TPs). Any remaining prDets that are not matched (extra predictions) become false positives (FPs). Any gtDets that are not matched (missing predictions) become false negative (FNs). prDets and gtDets can only be matched if they are sufficiently spatially similar.</p><p>MOTA also required similarity score, <em>S </em>between detections and a threshold that is allowed to match when its more than <em>S</em>. In MOTA, association is measured by Identity Switch (IDSW), this occurs when a tracker improperly swaps object identities. In terms of annotation, we can also define IDSW as TP which has a prID (predicted ID) that is different from the prID of the previous TP.</p><p>Below is the formula:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SOiAzldEuV2t5df4H3QUDg.png" /></figure><p>As we see the above score formula that MOTA measures three types of errors, that is detection errors of FNs and FPs as well as the association error of IDSW.</p><p>We can observe that MOTA doesn’t include a measure of localization error. For this we have defined a secondary metric MOTP.</p><h4>MOTP: Multiple Object Tracking Precision</h4><p>It measures the accuracy of localization of detection boxes. MOTP can be calculated just by averaging the similarity score, <em>S</em>, over the set of TPs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*r4wLFsEmy1wDwDp8rCKrZg.png" /></figure><h4>The Identification Metrics: IDF1</h4><p>IDF1 calculates a function mapping between the set of gtTrajs (groundtruth trajectories) and prTrajs (predicted trajectories). IDTPs (identity true positives) are matched on the overlapping part of trajectories that mare matched together. IDFNs and IDFPs are the remaining gtDets and prDets respectively, from both non-overlapping sections of matched trajectories, and from the remaining trajectories that are not matched.</p><p>IDF1 is the ratio of correctly identified (Ids) detections over the average number of ground truth and computed detections. Find the formula below for the same:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*19gnOtn3fIgaUPQ1A0MzOg.png" /></figure><h4>Fragmentation (Frag/FM)</h4><p>Fragmentation occurs due to non-linear motion of the object, or it can occur due to occlusion. The number of track fragmentations (FM) counts how many times a ground truth trajectory is interrupted (untracked). In other words, a fragmentation is counted each time a trajectory changes its status from tracked to untracked and tracking of that same trajectory is resumed at a later point.</p><h4>False Positive (FN) &amp; False Negative (FN)</h4><p>This metric is counted with respect to the prDets vs gtDets. So, any gtDets that are not matched (missed) with detection are False negatives (FN). Any extra detections that are not matched are False Positive (FP)</p><h3>HOTA (Higher Order Tracking Accuracy)</h3><p>HOTA is a novel metric for evaluating multi-object tracking (MOT) performance. It is designed to overcome many of the limitations of previous metrics such as MOTA, Frag and IDF1 etc.</p><p>HOTA can be thought of as a combination of three IoU scores. It divides the task of evaluating tracking into three subtasks (detection, association, and localization), and calculates a score for each using an IoU (intersection over union) formulation (also known as a Jaccard Index). It then combines these three IoU scores for each subtask into the final HOTA score.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/490/1*0w6YbTICn-ghSHGNyoFUbg.png" /><figcaption>Figure 2: Separating HOTA into sub-metrics</figcaption></figure><p>Localization: Localization measures the spatial alignment between one predicted detection and one ground-truth detection. We can measure the overall Localization Accuracy (LocA) by averaging the Loc-IoU over all pairs of matching predicted and ground-truth detections in the whole dataset.</p><p>HOTA is calculated at several different localization thresholds α, and the final score is the average of the HOTAα calculated for every threshold. This ensures that the final HOTA score takes the actual localization accuracy into account. Below is the formula for localization score.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*m3lbHfFH6sq7AwrGlymWMw.png" /></figure><p>Here <em>S(c) </em>is the spatial similarity score between the prDet and gtDet which make up the TP c</p><p>Detections: It measures the alignment between the set of all predicted detections and the set of all ground-truth detections. We can measure the overall Detection Accuracy (DetA) by simply calculating the Det-IoU using the count of TPs, FNs and FPs over the whole dataset:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uTkEsPTFEfppdrd3PQAuHw.png" /></figure><p>Association: This measure how well a tracker links its detections over time into the same identities (IDs).</p><p>The intersection between two tracks can be measured as the number of True Positive matches between the two tracks, we call these as True Positive Associations (TPA). Any remaining detections in the predicted track (which are either matched to other ground-truth tracks or none) are False Positive Associations (FPA) and any remaining detections in the ground-truth track are False Negative Associations (FNA). The Association IoU (Ass-IoU) can then be calculated in a similar way as seen previously:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PEniar0yAvfUpoSbk1CoWQ.png" /></figure><p>This now measures the alignment between two tracks, which gives us a measure for every pair of matching detections (TPs) how good the association is for this detection.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/1*FEQ91f60yU17K_FH2juhLw.png" /><figcaption>Figure 3: A visual explanations of TPA, FNA and FPA</figcaption></figure><p>The above figure 3 shows the different TPAs, FPAs and FNAs are highlighted for the TP of interest c. The TPAs (green) for c (red) are the matches which have the same prID and the same gtID. The FPAs have the same prID but either a different or no gtID. The FNAs have the same gtID but either a different or no prID. In the diagram, c has five TPAs, four FPAs and three FNAs. Conceptually these concepts are trying to answer the question: For the matched TP c, how accurate is the alignment between the gtTraj for this TP (large dark blue circles) and the prTraj for this TP (small black circles).</p><p>Association Accuracy (AssA<strong>)</strong> is calculated by averaging the Ass-IoU over all pairs of matching predicted and ground-truth detections in the whole dataset.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6GL5A71Y6WObaPwEaB1xSA.png" /></figure><p>Similarly, we can also have Recall and Precision for Association as well. Below find the formulas for both.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3krBtnuEGDSYd-x5XGPGcw.png" /></figure><p>We also define AssA with the help of AssRe and AssPr mentioned above.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JjlBcEwf9JQtzabuVZIvHQ.png" /></figure><p>Association recall measures how well predicted trajectories cover ground-truth trajectories. E.g. a low AssRe will result when a tracker splits an object up into multiple predicted tracks. Association precision measures how well predicted trajectories keep tracking the same ground-truth trajectories. E.g. a low AssPr will result if a predicted track extends over multiple objects.</p><p>Naturally, all three components (localization, detection and association) are important for tracking success, so it’s important to measure all of them. However, we often want a single metric which we can use for ranking how well trackers perform overall. This metric is HOTA, which is a combination of all three IoU scores defined above: ( a is the IOU threshold for association)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cmiOPm40mnavmc1F38FU2w.png" /></figure><p>The formulation for HOTAα in the above equation accounts for both detection and association accuracy but doesn’t consider localization accuracy. For it to measure localization, the final HOTA score is the integral of the HOTA score across the valid range of a values between 0 and 1. This is approximated by estimating HOTA at several different distinct α values (0.05 to 0.95 in 0.05 intervals) and averaging over these values. For each α value the matching between gtDets and prDets is performed separately.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*p0Y6Aj2aHpF8me95w39wiQ.png" /></figure><p>The use of the geometric mean for combining detection and association ensures that both are evenly weighted in the final score, and that the score goes to 0 if either detection or association go to zero.</p><h3>Exercise</h3><p>Suppose we have the three trackers (A, B and C), that performs differently on the same dataset given in the figure 4.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/450/1*7yctQh_w8FFWDepo2JrRFg.png" /><figcaption>Figure 4: Performance of 4 trackers A, B, and C on the same dataset</figcaption></figure><p>Let’s use this scenario and try to calculate different KPIs such as MOTA, IDF1, AssA and HOTA.</p><h4>MOTA</h4><p>Recalling the formula:<br>MOTA = 1 — (FN + FP + IDS)/GT</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*O-EqvHlcvbAQXhK2kwWT9g.png" /></figure><h4>IDF1</h4><p>Formula:</p><p>IDF1 = 2IDTP/ (2IDTP + IDFP + IDFN)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SLHOGUqBOBZv-RieRtP0eQ.png" /></figure><h4>AssA</h4><p>Formula:<br> AssA = (1/|TP|) * TPA/ (TPA + FPA + FNA) Since we are solving for one object</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ACDosf43JuA3WPNGJb2tIg.png" /></figure><h4>HOTA</h4><p>Formula:<br>HOTA = sqrt(DetA * AssA)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*I5Kl6YbCcQkdxmmMBngoYA.png" /></figure><h3>Conclusion</h3><p>Multi-Object Tracking (MOT) is one of the core tasks for understanding objects in video. To evaluate how well a tracker performs, we need to compare its output to a ground-truth set of tracking results. The purpose of an evaluation metric is to evaluate the similarity between the given ground-truth and the tracking results. However, the choice of evaluation metric is extremely important, as the properties of the metric determine how different errors contribute to a final score, as such it is favorable that metrics have certain properties. In this article we also discussed different metrics such as IDF1, MOTA etc. and showed what nature of property its captures. Later we also showed that how HOTA is one metric that balances all different properties of trackers and how it can be used only to compare different tracker results.</p><p>Looking at different metrics we observed that MOTA is biased towards measuring detection at the expense of ignoring association. IDF1 score is biased towards measuring association, at the expense of ignoring detection. HOTA takes cares for both metrics and combines into one.<br> As we have gone through many such KPIs, lets cluster them into the two categories which they measure.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*x1k33yCWuwn1U67SZaCizg.png" /></figure><h3>References</h3><ol><li>Bewley, A., Ge, Z., Ott, L., Ramos, F., &amp; Upcroft, B. (2016, September). Simple online and realtime tracking. In <em>2016 IEEE international conference on image processing (ICIP)</em> (pp. 3464–3468). IEEE.</li><li>Wojke, N., Bewley, A., &amp; Paulus, D. (2017, September). Simple online and realtime tracking with a deep association metric. In <em>2017 IEEE international conference on image processing (ICIP)</em> (pp. 3645–3649). IEEE.</li><li>Cao, J., Weng, X., Khirodkar, R., Pang, J., &amp; Kitani, K. (2022). Observation-Centric SORT: Rethinking SORT for Robust Multi-Object Tracking. <em>arXiv preprint arXiv:2203.14360</em>.</li><li>Zhang, Y., Sun, P., Jiang, Y., Yu, D., Yuan, Z., Luo, P., … &amp; Wang, X. (2021). ByteTrack: Multi-Object Tracking by Associating Every Detection Box. <em>arXiv preprint arXiv:2110.06864</em>.</li><li>Du, Y., Song, Y., Yang, B., &amp; Zhao, Y. (2022). Strongsort: Make deepsort great again. arXiv preprint arXiv:2202.13514.</li><li>Nasseri, M. H., Moradi, H., Hosseini, R., &amp; Babaee, M. (2021). Simple online and real-time tracking with occlusion handling. <em>arXiv preprint arXiv:2103.04147</em>.</li><li>Luiten, J., Osep, A., Dendorfer, P., Torr, P., Geiger, A., Leal-Taixé, L., &amp; Leibe, B. (2021). Hota: A higher order metric for evaluating multi-object tracking. <em>International journal of computer vision</em>, <em>129</em>(2), 548–578.</li><li>Wu, J., Cao, J., Song, L., Wang, Y., Yang, M., &amp; Yuan, J. (2021). Track to detect and segment: An online multi-object tracker. In <em>Proceedings of the IEEE/CVF conference on computer vision and pattern recognition</em> (pp. 12352–12361).</li><li>Zhang, L., &amp; Yu, N. (2022). Online Multi-Object Tracking with Unsupervised Re-Identification Learning and Occlusion Estimation. <em>Neurocomputing</em>.</li><li>Bernardin, K., Stiefelhagen, R.: Evaluating multiple object tracking performance: the clear mot metrics. EURASIP Journal on Image and Video Processing 2008, 1–10 (2008)</li><li>Luiten, J., Osep, A., Dendorfer, P., Torr, P., Geiger, A., Leal-Taixé, L., &amp; Leibe, B. (2021). Hota: A higher order metric for evaluating multi-object tracking. <em>International journal of computer vision</em>, <em>129</em>(2), 548–578.</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6aed380dd688" width="1" height="1" alt=""><hr><p><a href="https://medium.com/digital-engineering-centific/introduction-to-tracker-kpi-6aed380dd688">Introduction to Tracker KPI</a> was originally published in <a href="https://medium.com/digital-engineering-centific">Digital Engineering @ Centific</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Introduction to Trackers]]></title>
            <link>https://medium.com/digital-engineering-centific/introduction-to-trackers-eea6674ebfa1?source=rss-85aba1e2d763------2</link>
            <guid isPermaLink="false">https://medium.com/p/eea6674ebfa1</guid>
            <category><![CDATA[object-tracking]]></category>
            <category><![CDATA[tracking-systems]]></category>
            <category><![CDATA[multiple-object-tracking]]></category>
            <dc:creator><![CDATA[Sadbodh Sharma]]></dc:creator>
            <pubDate>Fri, 09 Dec 2022 04:17:12 GMT</pubDate>
            <atom:updated>2023-03-13T16:54:47.233Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Y3pONHyWJF9Xbl_NzuqBTA.png" /></figure><p><em>Object tracking is one of the foremost important and common problem in computer vision that has shown to have various applications in the areas such as traffic monitoring, robotics, autonomous vehicle tracking, and so on. From the beginning the object tracking, in general, was a challenging problem. Problems such as abrupt object motion, changing appearance patterns of both the object and the scene, nonrigid object structures, object-to-object and object-to-scene occlusions, and camera motion are some of the common problems faced in object tracking. The goal of this article is to review some of the popular and state-of-the-art tracking methods, discuss their methodology to have better depth and understanding of their approaches. Generally tracking is usually performed in the context of higher-level applications that require the location and/or shape of the object in every frame. Typically, in the context of any application assumptions are made to constrain the tracking problem.</em></p><h3>Introduction</h3><p>Object tracking is among very active research areas in the field of computer vision. Object tracking sometimes also referred to as Multiple Object Tracking (MOT), also called Multi-Target Tracking (MTT), aims to analyze videos to identify and track objects belonging to one or more categories, such as pedestrians, cars, animals, and inanimate objects, without any prior knowledge about the appearance and number of targets. Differently from object detection algorithms, whose output is a collection of rectangular bounding boxes identified by their coordinates, height and width, MOT algorithms also associate a target ID to each box (known as a <em>detection</em>), to distinguish among intra-class objects. When evaluating the performance on this task, the object of interest is identified solely using an axis-aligned bounding box (BBOX) in the first frame. The tracking algorithm should then preserve the assigned object’s identity in future frames. The MOT task plays an important role in computer vision: from video surveillance to autonomous cars, from action recognition to crowd behavior analysis, many of these problems would benefit from a high-quality tracking algorithm.</p><p>The aspects of tracking have serious challenges and there are some expectations from the tracking system, so when designing each tracking algorithm, we should try to address those expectations as much as possible. Some of these features are listed below.</p><p><em>Robustness</em>: Robustness means that the tracking system can track the target even in complicated conditions such as background clutters, occlusion, and illumination variation.</p><p><em>Adaptability</em>: In addition to the environment changes, the target is to changes, such as the complex and sudden movement of the target. To solve this problem, the tracking system must be able to detect and track the current apparent characteristics of the target.</p><p><em>Real-time processing of information</em>: A system that deals with image sequences should have high processing speeds.<br> So, there is a need to implement a high-performance algorithm with low latency.</p><h3>Classification of the object tracking methods</h3><p>Object tracking methods have different categories, below are the various techniques and approaches that are used to develop any tracker algorithm. Figure 1 also gives an illustration of comprehensive classification of object tracking methods.</p><h4>Feature-Based Methods</h4><p>This method is one of the simple ways of object tracking. To track objects, features, such as color, texture, optical flow, etc., are extracted first. These extracted features must be unique so that objects can be easily distinguishable in the feature space. Once the features are extracted, then the next step is to find the most similar object in the next frame, using those features, by exploiting some similarity criterion.</p><p>One of the problems with these methods is at the extraction step because the unique, exact, and reliable features of the object should be extracted so that it can distinguish the target from other objects. Here are some of the features that are used for object tracking.</p><p><em>Color:</em><strong> </strong>The color features can show the appearance of the object. This feature can be used in different ways, one of the most common methods to use this feature is a color histogram.</p><p><em>Texture:</em><strong> </strong>Texture is a repeated pattern of information or arrangement of the structure with regular intervals. Texture features are not obtained directly. These features are generated by image preprocessing techniques.</p><p><em>Optical Flow:</em> It is the apparent motion of brightness patterns in the image. apparent motion can be caused by lighting changes without any actual motion. The optical flow algorithm calculates the displacement of brightness patterns from one frame to another. Algorithms that calculate displacement for all image pixels are known as dense optical streaming algorithms, while sparse algorithms estimate displacement tension for a selective number of pixels in an image</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/468/1*9FZ4U5z7JfwSl15-QAPm5A.png" /><figcaption>Figure 1: Classification of object tracking methods</figcaption></figure><h4>Segmentation Based Methods</h4><p>Segmenting foreground objects from a video frame is fundamental and the most critical step in visual tracking. Foreground segmentation is done to separate foreground objects from the background scene. Normally, the foreground objects are the objects that are moving in a scene. To track these objects, they are to be separated from the background scene. In the following, some of the object tracking methods based on the segmentation are examined.</p><p><em>Bottom-Up Based Method</em><strong>: </strong>In this type of tracking, there must be two separate tasks, first the foreground segmentation and then the object tracking. The foreground segmentation uses a low-level segmentation to extract regions in all frames, and then some features are extracted from the foreground regions and tracked according to those features.</p><p><em>Joint Based Method: </em>In the bottom-up method, foreground segmentation and tracking are two separate tasks; one of the problems with this method is that the segmentation error propagates forward, causing error tracking. To solve this problem, the researchers merged the foreground segmentation and tracking method, which improved tracking performance.</p><h4>Estimation Based Methods</h4><p>Estimation methods formulate the tracking problem to an estimation problem in which an object is represented by a state vector. The state vector describes the dynamic behavior of a system, such as the position and velocity of an object. The general framework for the dynamic mode estimation problem is taken from Bayesian methods. The Bayesian filters allow the target to continuously update its position on the coordinate system, based on the latest sensor data. This algorithm is recursive and consists of two steps: prediction and updating.</p><p>The prediction step estimates the new position of the target in the next step using the state model, while the updating step uses the current observation to update the target position using the observation model. The prediction and updating steps are performed on each frame of the video sequence. Here are some examples of this method.</p><p><em>Kalman Filter</em>: To use the Kalman filter in the object tracking, a dynamic model of the target movement should be designed. The Kalman filter is used to estimate the position of a linear system assumed that the errors are Gaussian. Kalman filter has important features that tracking can take advantage of it, including:</p><ol><li>Predict the future location of the object.</li><li>Forecast correction based on new measurements</li><li>Noise reduction caused by incorrect diagnoses.</li></ol><p>The Kalman filter consists of two stages of prediction and updating. In the prediction step, previous models are used to predict the current position. The update step uses current measurements to correct the position.</p><p><em>Particle Filter</em>: Most tracking issues are non-linear. Therefore, particle filter has been considered for solving such problems. The particle filter is a recursive Monte Carlo statistical calculation method that is often used for non-gaussian noise measurement models. The main idea of the particle filter shows the distribution of a set of particles.</p><h4>Learning-Based Methods</h4><p>In learning-based methods, the features and appearance of different targets and their prediction are learned in the next frames, and then in the test time, based on what they learned, they can detect the object and track it in the next frames. Learning-based methods are often divided into three types of generative, discriminative and reinforcements learning.</p><p><em>Discriminative Methods</em><strong>: </strong>Discriminative trackers usually consider tracking as a classification problem that discriminates the target from the background. Discriminative learning is divided into two categories contains Shallow learning and Deep learning. Shallow learning methods is a type of methods that use pre- defined features, and they can’t extract features. Shallow learning with fewer layers predicts the model, but deep learning has too many layers. Another difference is that shallow learning requires important and discriminatory features extracted by professionals, but deep learning itself extracts these important features.</p><p><em>Generative Methods</em>: The generative appearance models mainly concentrate on how to accurately fit the data from the object class. However, it is very difficult to verify the correctness of the specified model in practice. By introducing online-update mechanisms, they incrementally learn visual representation for the foreground object region information while ignoring the influence of the background. Traditional online learning methods are adopted to track an object by searching for regions most similar to the target model. The online learning strategy is embedded in the tracking framework to update the appearance model of the target adaptively in response to appearance variations.</p><p>Recently, more and more of such algorithms have started exploiting the representational power of deep learning (DL). The strength of Deep Neural Networks (DNN) resides in their ability to learn rich representations and to extract complex and abstract features from their input. Convolutional neural networks (CNN) currently constitute the state-of-the-art in spatial pattern extraction and are employed in tasks such as image classification or object detection, while recurrent neural networks (RNN) like the Long Short-Term Memory (LSTM) are used to process sequential data, like audio signals, temporal series, and text. Since DL methods have been able to reach top performance in many of those tasks, we are now progressively seeing them used in most of the top performing MOT algorithms, aiding to solve some of the subtasks in which the problem is divided.</p><h3>Popular Trackers</h3><p>In this section we are going to discuss some of the very popular and state of the art trackers. The selection of these trackers was based on various factors such accuracy, ease of understanding, frame rate (high FPS) etc. Below find the list of trackers and their brief explanation:</p><h4>Simple Online and Realtime Tracking</h4><p>This paper [1] first appeared in the year 2016 and was ranked best open-source multiple object tracker on the MOT benchmark. It is still a very popular tracker as many current state of the art trackers are also based on this tracker fundamental concepts. The main reason for its popularity was not only it was accurate but at the same time it was very fast and had many real time application.</p><p>There are four main components in the methodology described in the paper:</p><p><em>Detection</em>: The detections are being fed from any deep learning models to initialize the trackers components.</p><p><em>Estimate Model</em>: Here they describe the object model, i.e., the representation and the motion model used to propagate a target’s identity into the next frame. They approximate the inter-frame displacements of each object with a linear constant velocity model which is independent of other objects and camera motion. The state of each target is show in the below equation:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/862/1*udGF4oRVZ496YJzBbu9HHA.png" /></figure><p>where u and v represent the horizontal and vertical pixel location of the center of the target, while the scale s and r represent the scale (area) and the aspect ratio of the target’s bounding box respectively. When a detection is associated to a target, the detected bounding box is used to update the target state where the velocity components are solved optimally via a Kalman filter framework. If no detection is associated to the target, its state is simply predicted without correction using the linear velocity model.</p><p><em>Data Association</em>: In assigning detections to existing targets, each target’s bounding box geometry is estimated by predicting its new location in the current frame. The assignment cost matrix is then computed as the intersection- over-union (IOU) distance between each detection and all predicted bounding boxes from the existing targets. The assignment is solved optimally using the Hungarian algorithm.</p><p><em>Creation and Deletion of Track identities</em>: When objects enter and leave the image, unique identities need to be created or destroyed accordingly. For creating trackers, they consider any detection with an overlap less than IOUmin to signify the existence of an untracked object. The tracker is initialized using the geometry of the bounding box with the velocity set to zero. Since the velocity is unobserved at this point the covariance of the velocity component is initialized with large values, reflecting this uncertainty. Tracks are terminated if they are not detected for TLost frames. This prevents an unbounded growth in the number of trackers and localization errors caused by predictions over long durations without corrections from the detector.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oQ40ULJUufaQPwNIYjlvtw.png" /><figcaption>Table 1: Performance of SORT on MOT 15</figcaption></figure><h4>Simple Online and Realtime Tracking with A Deep Association Metric</h4><p>The problem with sort was even though it gives good performance in terms of precision and accuracy, but it returns a relatively high number of identity switches. This is because the employed association metric in SORT is only accurate when state estimation uncertainty is low. Thus, it has a deficiency in tracking which does not work in cases like occlusions as they typically appear in frontal-view camera scenes. Some of these issues are addressed in this paper, DeepSORT [2].</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/356/1*K6XX9jgQb9nWIzyvR6c9BQ.png" /><figcaption>Figure 2: DeepSORT Algorithm flow</figcaption></figure><p>Figure 2 gives us a general idea about the algorithm, this algorithm has two branches which is described below:</p><p><em>Appearance Branch</em>: Given detections in each frame, the deep appearance descriptor, is applied to extract their appearance features. It utilizes a feature bank mechanism to store the features of the last 100 frames for each tracklet. As new detections come, the smallest cosine distance between the feature bank. The distance is used as the matching cost during the association procedure.</p><p><em>Motion branch</em>: The Kalman filter algorithm accounts for predicting the positions of tracklets in the current frame. Then, Mahalanobis distance is used to measure the spatio-temporal dissimilarity between tracklets and detections. DeepSORT takes this motion distance as a gate to filter out unlikely associations.</p><p>The matching cascade algorithm is proposed to solve the association task as a series of subproblems instead of a global assignment problem.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IXv8ZG2uNlCj0J1NKOqLWA.png" /><figcaption>Table 2: Tracking results on the MOT16 challenge</figcaption></figure><h4>ByteTrack: Multi-Object Tracking by Associating Every Detection Box</h4><p>Bytetrack [4] propose a simple, effective, and generic data association method, called BYTE. Different from previous methods which only keep the high score detection boxes, they keep almost every detection box and separate them into high score ones and low score ones.</p><p>Below are the simple that define the bytetrack algorithm:</p><ol><li>First associate the high score detection boxes to the tracklets.</li><li>Find tracklets that are unmatched because they do not match to an appropriate high score detection box, which usually happens when occlusion, motion blur or size changing occurs.</li><li>Then associate the low score detection boxes and these unmatched tracklets to recover the objects in low score detection boxes and filter out background, simultaneously</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EQzEZiKgWKl7a2N6nDCdAA.png" /><figcaption>Table 3: Tracking results on the MOT17 challenge</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NtDJzAWGZl56-TFq_MSd2A.png" /><figcaption>Table 4: Performance of BYTE on MOT 20 challenge</figcaption></figure><h4>Observation-Centric SORT: Rethinking SORT for Robust Multi-Object Tracking</h4><p>Before jumping to this new algorithm lets discuss in brief about the limitations of SORT that lays the foundation of the new proposed method that is OC-SORT [3]</p><p><em>Sensitive to State Noise</em>: SORT is sensitive to noise from KF’s states. Even if the estimated position has a shift of only a few pixels, it causes significant variance to the estimated speed. In general, the variance of speed estimation can be of the same magnitude as the speed itself or even bigger.</p><p>In most cases, this will not make a massive impact as the shift is only of few pixels from the ground truth on the next time step and the supervision provided by the observation corrects the estimates from KF motion model. However, they will see the sensitivity introduces significant problems in practice because of the error accumulation across multiple time-steps when no observation is available for KF update.</p><p><em>Temporal Error Magnification</em>: Error gets accumulated to construct a trajectory. Consider a track is occluded between t and t+T and the noise of speed estimate follows normal distribution that is given as:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xtMUdV7tV-CObcfL6XBDnA.png" /></figure><p>till the step t+T, for the estimated positions the noise follows the below distribution:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WAV_7W53NmLTus3D84tuSw.png" /></figure><p>So, this shows that without the supervision from observation, the estimates from linear motion assumption of KF results in square-order error accumulation with respect to time</p><p>To address the limitations above, we use the momentum of the object moving into the association stage and develop a pipeline with less noise and more robustness over occlusion and non-linear motion.</p><p>Three important steps were added to address all the problems systematically, figure 3 also summarizes all these steps pictorially.</p><p><em>Observation centric online smoothing (OOS):</em>Once a track is associated to an observation again after a period of being untracked, they perform online smoothing over the parameters back to the period of being lost through a virtual trajectory of observations. This fixes the accumulated error during the time interval.</p><p><em>Observation centric Momentum (OCM):</em>The linear motion model assumes a consistent velocity direction. However, this assumption often does not hold due to the non-linear motion of objects and state noise. In a reasonably short time, we can approximate the motion as linear, but the noise still prevents us from leveraging the consistency of velocity direction. They propose a way to reduce the noise and add the velocity consistency (momentum) term into the cost matrix</p><p><em>Observation Centric Recovery (OCR): </em>Re-identifying an object with no trajectory prior, whose position can be thought of as following a Gaussian distribution with the position of its last-time presence as the mean and the variance growing with respect to the time of its being lost.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/468/1*GxoEIIiJpHgvFJLOAlrbfg.png" /><figcaption>Figure 3. Observation-centric Online Smoothing reduces the error accumulation when a track is broken. The target is occluded between the second and the third time step and the tracker finds it back at the third step. Yellow boxes are observations by the detector. White stars are the estimated centers without OOS. Yellow stars are the estimated centers fixed by OOS. The gray star on the fourth step is the estimated center without OOS and fails to match to observations.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*saOU801vZHiPAzPHwAXMnw.png" /><figcaption>Table 5: Performance on MOT 20 challenge</figcaption></figure><h4>StrongSORT: Make DeepSORT Great Again</h4><p>They have worked mainly in improving the DeepSORT [5] algorithm, their proposed improvements lie in the two branches (Refer Fig 2 and Fig 4 for comparison).</p><p>In the appearance branch, a stronger appearance feature extractor, BoT, is applied to replace the original simple CNN which generates much more discriminative features. They have replaced the feature bank with the feature updating strategy proposed by exponential moving average (EMA).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/409/1*E_eOZNLyX6LqAyq2n4gGhg.png" /><figcaption>Figure 4: StrongSORT algorithm flow</figcaption></figure><p>For the motion branch, they have adapted ECC for camera motion compensation. The vanilla Kalman filter is vulnerable w.r.t. low-quality detections and ignores the information on the scales of detection noise. To solve this problem, they are using the NSA Kalman algorithm (adaptably calculates the noise covariance).</p><p>Instead of employing only the appearance feature distance during matching, they solve the assignment problem with both appearance and motion information.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Zhb1TPWWqA-6motNsyUSHg.png" /><figcaption>Table 6: Performance on MOT 20 challenge</figcaption></figure><h3>Conclusion</h3><p>In this article, first we have presented a comprehensive classification of object tracking algorithms. In this category, tracking algorithms are divided into feature-based, segmentation-based, estimation-based, and learning-based categories. Later in this article we focused on learning-based and estimated-based approaches. Estimated-based methods have showed quite promising results in terms of accuracy and speed. These approaches have been extensively used in many real time applications. Learning-based tracking algorithms, especially deep learning based, have recently received much attention lately. Deep learning is a new and exciting field in various fields, especially computer vision, and in many fields, it has a shown a higher accuracy and has made a lot of progress. The computation complexity of deep learning networks is sometimes a bottleneck for many real time applications even though they have good tracking accuracy. However, it can’t be said that deep learning works best in all cases and always should be used, but by knowing the advantages and disadvantages of all methods one can find out which method can work best in problem-solving.</p><h3>References</h3><p>1. Bewley, A., Ge, Z., Ott, L., Ramos, F., &amp; Upcroft, B. (2016, September). Simple online and realtime tracking. In <em>2016 IEEE international conference on image processing (ICIP)</em> (pp. 3464–3468). IEEE.</p><p>2. Wojke, N., Bewley, A., &amp; Paulus, D. (2017, September). Simple online and realtime tracking with a deep association metric. In <em>2017 IEEE international conference on image processing (ICIP)</em> (pp. 3645–3649). IEEE.</p><p>3. Cao, J., Weng, X., Khirodkar, R., Pang, J., &amp; Kitani, K. (2022). Observation-Centric SORT: Rethinking SORT for Robust Multi-Object Tracking. <em>arXiv preprint arXiv:2203.14360</em>.</p><p>4. Zhang, Y., Sun, P., Jiang, Y., Yu, D., Yuan, Z., Luo, P., … &amp; Wang, X. (2021). ByteTrack: Multi-Object Tracking by Associating Every Detection Box. <em>arXiv preprint arXiv:2110.06864</em>.</p><p>5. Du, Y., Song, Y., Yang, B., &amp; Zhao, Y. (2022). Strongsort: Make deepsort great again. arXiv preprint arXiv:2202.13514.</p><p>6. Nasseri, M. H., Moradi, H., Hosseini, R., &amp; Babaee, M. (2021). Simple online and real-time tracking with occlusion handling. <em>arXiv preprint arXiv:2103.04147</em>.</p><p>7. Luiten, J., Osep, A., Dendorfer, P., Torr, P., Geiger, A., Leal-Taixé, L., &amp; Leibe, B. (2021). Hota: A higher order metric for evaluating multi-object tracking. <em>International journal of computer vision</em>, <em>129</em>(2), 548–578.</p><p>8. Wu, J., Cao, J., Song, L., Wang, Y., Yang, M., &amp; Yuan, J. (2021). Track to detect and segment: An online multi-object tracker. In <em>Proceedings of the IEEE/CVF conference on computer vision and pattern recognition</em> (pp. 12352–12361).</p><p>9. Zhang, L., &amp; Yu, N. (2022). Online Multi-Object Tracking with Unsupervised Re-Identification Learning and Occlusion Estimation. <em>Neurocomputing</em>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=eea6674ebfa1" width="1" height="1" alt=""><hr><p><a href="https://medium.com/digital-engineering-centific/introduction-to-trackers-eea6674ebfa1">Introduction to Trackers</a> was originally published in <a href="https://medium.com/digital-engineering-centific">Digital Engineering @ Centific</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>