Back to paper library
CVPR Workshops 2023Retail visionPaper notes

CheckSORT

Steadfast Trajectories

Original paper

CheckSORT: Refined Synthetic Data Combination and Optimized SORT for Automatic Retail Checkout

Paper authors

Ziqiang Shi · Zhongling Liu · Liu Liu …

Show all 7 authors

Ziqiang Shi · Zhongling Liu · Liu Liu · Rujie Liu · Takuma Yamamoto · Xiaoyu Mi · Daisuke Uchida

Publication
CVPR Workshops 2023Workshop
Cite this paper · BibTeX

The citation identifies the linked source version. It cites the original paper and its authors.

@inproceedings{retailproductchecksort2023,
  title = {{CheckSORT: Refined Synthetic Data Combination and Optimized SORT for Automatic Retail Checkout}},
  author = {Ziqiang Shi and Zhongling Liu and Liu Liu and Rujie Liu and Takuma Yamamoto and Xiaoyu Mi and Daisuke Uchida},
  year = {2023},
  booktitle = {CVPR Workshops},
  url = {https://openaccess.thecvf.com/content/CVPR2023W/AICity/html/Shi_CheckSORT_Refined_Synthetic_Data_Combination_and_Optimized_SORT_for_Automatic_CVPRW_2023_paper.html}
}
On this page

Remember the DeepACO system we saw from the 2022 AI CITY CHALLENGE Track 4?

Now let's look at the champion paper of the 2023 AI CITY CHALLENGE.

Problem Definition

Self-checkout is gradually becoming a standard in retail environments. Whether in unmanned stores or the digital transformation of traditional markets, the goal is to use image recognition systems to quickly and accurately identify products and quantities without interrupting the user’s flow.

This task is generally formalized in computer vision as a multi-module system combining "multi-class product detection, classification, and counting."

At first glance, this task seems like simply combining existing object detection, tracking, and classification techniques.

However, when actually implementing it, many issues arise.

This paper organizes its image-based automatic checkout system into five modules:

  1. Preprocessing: How to generate training samples closer to real shots from clean synthetic data?
  2. Object Detection: How to locate products and hands, and obtain masks for further processing?
  3. Object Tracking: How to track short-lived and possibly overlapping product trajectories?
  4. Product Classification: How to improve recognition accuracy and adapt to changes in viewpoint, occlusion, and lighting?
  5. Postprocessing: How to integrate temporary results across multiple frames into a final checkout product list?

The authors believe each part must be carefully designed to meet practical deployment needs.

Solution

In automatic checkout tasks, perhaps the most difficult part is obtaining representative training data, which not only involves on-site shooting but also requires labor-intensive frame-by-frame annotation.

Thus, the authors start with synthetic data optimization, proposing a controllable data synthesis pipeline that generates a large variety of synthetic images.

Synthetic Data Optimization

Specifically, participants receive clean synthetic images and masks for each product, then generate backgrounds and composite them to create training synthetic images.

This process may seem simple, but the competition results show why it deserves careful attention.

How products and backgrounds are composited strongly affects the training distribution and resulting performance. To enhance realism and diversity of synthetic images, the authors designed a controllable data synthesis pipeline centered around three hyperparameters:

  • Number of products
  • Occlusion level (IoU)
  • Scaling size

These three are interdependent: too many products increase occlusion, while too small scaling may cause distortion.

Therefore, users can set parameter ranges, for example:

  • Product count: 1 to 6
  • Occlusion upper limit: IoU ≤ 0.3
  • Scaling ratio: 0.15 to 0.5

Through systematic combinations, a large variety of synthetic data is produced.

Ablations compare occlusion limits and scale ranges; the best values depend on the tested configuration, as discussed below.

Besides parameter tuning, the authors compared impacts of different background sources.

Although external data use was restricted by the official rules, the authors implemented a version with real background images composited with products within allowed limits. The real backgrounds yielded higher F1 in the configurations tested in this paper.

A useful interpretation of these experiments is:

In these checkout experiments, real photographed backgrounds helped more than the synthetic backgrounds used for comparison.

Regarding data usage strategy, the synthetic data was applied to train two major models:

  1. Product Detection: Fine-tuning the COCO pretrained DetectoRS model, which supports both detection and segmentation, to locate products and provide hand masks.
  2. Product Classification: Extracting product images with varied backgrounds from synthetic data to fine-tune classification models.

Model Architecture

CheckSORT’s architecture extends from DeepSORT and StrongSORT. Relevant papers can be referenced here:

The authors introduced two key improvements into the tracking logic:

  1. Decomposed Kalman Filter (DKF)
  2. Dynamic EMA Tracklet Gallery

SORT Algorithm Overview

Traditional SORT / DeepSORT / StrongSORT employ a two-stage "Tracking-by-detection" approach, where the input is detection results for each frame, and the output is corresponding product trajectories.

Inside the tracker, detections initialize tracklets, whose future positions are predicted via a Kalman filter. Tracklets maintain three states based on matching:

  • tentative: newly created tracks
  • confirmed: upgraded after consecutive correct matches
  • deleted: removed after long no-match periods

Per frame, the processing steps are:

  1. Predict: From each tracklet’s history, predict its bounding box position and uncertainty in the current frame.
  2. Match: First match confirmed tracklets by appearance cosine distance and the Hungarian algorithm. Then use Mahalanobis distance between Kalman predictions and current detections for unconfirmed and still-unmatched tracklets.
  3. Update: Update the tracklet states using the results of both matching stages.

Decomposed Kalman Filter

DeepSORT and the related baseline represent bounding boxes with this state; it is not the only possible Kalman-filter state:

x=[x,y,a,h,x˙,y˙,a˙,h˙]\mathbf{x} = [x, y, a, h, \dot{x}, \dot{y}, \dot{a}, \dot{h}]

where:

  • (x,y)(x, y): center coordinates
  • aa: aspect ratio
  • hh: height
  • " ˙\dot{\ }": derivative (velocity)

The problem is that motion patterns of center movement (x,y)(x, y) and appearance deformation (a,h)(a, h) differ significantly, as shown below:

  • Orange curve: the comparatively smooth distance from the product center to the origin over time;
  • Red curve: often violent jumps in (a,h)(a, h) during product flipping.

Therefore, the authors propose the Decomposed Kalman Filter (DKF), splitting the overall state into two independent Kalman computations:

  • Position vector:

    p=[x,y,x˙,y˙]\mathbf{p} = [x, y, \dot{x}, \dot{y}]
  • Shape vector:

    b=[a,h,a˙,h˙]\mathbf{b} = [a, h, \dot{a}, \dot{h}]

Both share the following transition matrix AA and observation matrix HH:

A=[1010010100100001],H=[10000100]A = \begin{bmatrix} 1 & 0 & 1 & 0 \\ 0 & 1 & 0 & 1 \\ 0 & 0 & 1 & 0 \\ 0 & 0 & 0 & 1 \end{bmatrix}, \quad H = \begin{bmatrix} 1 & 0 & 0 & 0 \\ 0 & 1 & 0 & 0 \end{bmatrix}

For matching, compare the jjth detection’s position observation zj(p)=(xj,yj)\mathbf z^{(p)}_j=(x_j,y_j) and shape observation zj(b)=(aj,hj)\mathbf z^{(b)}_j=(a_j,h_j) with the iith tracklet’s predictions projected into two-dimensional observation space. Pi,BiP_i,B_i are their respective projected covariances; the observation vectors do not include velocities.

  • Position distance:

    d(p)(i,j)=(zj(p)−z^i(p))⊤Pi−1(zj(p)−z^i(p))d^{(p)}(i,j) = (\mathbf{z}^{(p)}_j - \hat{\mathbf{z}}^{(p)}_i)^\top P_i^{-1} (\mathbf{z}^{(p)}_j - \hat{\mathbf{z}}^{(p)}_i)
  • Shape distance:

    d(b)(i,j)=(zj(b)−z^i(b))⊤Bi−1(zj(b)−z^i(b))d^{(b)}(i,j) = (\mathbf{z}^{(b)}_j - \hat{\mathbf{z}}^{(b)}_i)^\top B_i^{-1} (\mathbf{z}^{(b)}_j - \hat{\mathbf{z}}^{(b)}_i)

Dynamic Feature Sequences

Since DeepSORT, trajectory matching has incorporated appearance features instead of relying solely on position.

CheckSORT introduces an improved strategy:

  • StrongSORT uses EMA to smooth appearance features;
  • CheckSORT adopts a dynamic, non-continuous feature gallery, adding new features only when sufficiently different from historical ones to avoid redundancy.

Defined as follows:

  • Each track ii has a gallery of normalized, EMA-smoothed appearance features:

    Ei={eit},t=1…LiE_i = \{ e_i^t \}, \quad t = 1 \ldots L_i
  • A new detection’s EMA feature is added only if it differs enough from those already in EiE_i;

  • Appearance distance is defined as:

    d(a)(i,j)=min⁡e∈Ei(1−e⊤ej)d^{(a)}(i,j) = \min_{e\in E_i}(1-e^\top e_j)

Here ii indexes the track and jj the current detection, whose normalized feature is eje_j. After distance-based gating, combine the position, shape, and appearance costs:

c(i,j)=λp⋅d(p)(i,j)+λb⋅d(b)(i,j)+λa⋅d(a)(i,j)c(i,j) = \lambda_p \cdot d^{(p)}(i,j) + \lambda_b \cdot d^{(b)}(i,j) + \lambda_a \cdot d^{(a)}(i,j)

This enables the Hungarian algorithm to achieve optimal matching by jointly considering position, shape, and appearance.

Postprocessing Optimization

Even with high-quality matching results, CheckSORT performs a final "trajectory correction" step addressing three common error types:

  1. Short trajectories or those belonging to background classes → deleted
  2. Trajectory breaks longer than 0.5 seconds → split into two tracks
  3. Multiple tracks of the same class with time difference less than 3 seconds → merged

This part is heuristic and not a core contribution of the paper.

The figure below shows recognition differences before and after postprocessing:

Discussion

The authors observed that the AI CITY CHALLENGE 2023 Track 4 task differs slightly from the previous year: in 2023, the task requires predicting the frame where each product first appears, whereas in 2022, the appearance timestamp was expressed in seconds.

Although the authors intended to verify the algorithm directly on the 2023 test set, lack of ground truth forced them to manually annotate product appearance times (in seconds) on TestA 2022 and TestA 2023 as an alternative benchmark.

The evaluation follows 2022 rules, using F1-score as metric:

  • TP (True Positive): correctly recognized objects in the region of interest;
  • FN (False Negative): annotated objects not correctly recognized.

Additionally, the competition provided 116,500 synthetic images and 116 3D product models.

Impact of Synthetic Data

CheckSORT performance on TestA 2022 under varying IoUs

CheckSORT performance on TestA 2023 under varying IoUs

The authors designed controlled experiments to study two hyperparameters affecting performance: the IoU upper bound and the scaling range. With fixed scaling of 0.15–0.5, they observed recognition results under different IoU limits as shown above.

Among these discrete settings, an IoU cap of 0.25 gives the best F1 on both test sets (58.6% and 51.0%). The trend is not monotonic: 0.20 is worse than 0.10. The result supports including suitable occlusion rather than maximizing occlusion without limit. The tracker is fixed to DeepSORT here.

Next, with IoU fixed at 0.1, the authors examined effects of varying scaling ranges:

CheckSORT performance on TestA 2022 under varying scaling ranges

CheckSORT performance on TestA 2023 under varying scaling ranges

Among the three scale ranges compared, 0.15–0.55 gives the highest F1 on both test sets (58.2% and 50.2%). This is a sampling range, not a fixed scale factor of 0.55; the tracker is again fixed to DeepSORT.

  • Too large scaling causes insufficient samples;
  • Too small scaling mismatches real application scenarios, harming generalization.

Synthetic vs. Real Backgrounds

Based on the best parameter combinations, the authors further evaluated the influence of background style.

They tested two settings — "synthetic backgrounds" and "real backgrounds" — on TestA 2022 and 2023 datasets with results as follows:

Performance under IoU ≤ 0.5, scaling range 0.4–0.8

Performance under IoU ≤ 0.5, scaling range 0.3–0.75

Real backgrounds improve F1 in both configurations and test sets shown; individual precision or recall values need not all increase. Under IoU ≤ 0.5 and scaling 0.4–0.8, TestA 2022 F1 rises from 60.7% to 69.0%, an 8.3-percentage-point gain; TestA 2023 rises from 53.7% to 54.9%. The tracker is fixed to DeepSORT here.

CheckSORT Performance Analysis

Comparison of trackers under IoU ≤ 0.5, scaling 0.3–0.75

Comparison of trackers under IoU ≤ 0.5, scaling 0.4–0.8

Finally, the authors compared three trackers — DeepSORT, StrongSORT, and their proposed CheckSORT — across different scenarios.

For the two synthesis configurations and two test sets in these tables, CheckSORT has higher F1 than DeepSORT and StrongSORT. At scaling 0.3–0.75, TestA 2022 reports 70.3% / 69.0% / 67.8%, and TestA 2023 reports 62.1% / 58.2% / 60.0% (CheckSORT / DeepSORT / StrongSORT).

At paper submission, the official TestA leaderboard placed the authors’ team 5th. The paper says the final ranking still awaited code evaluation on TestB; this is distinct from the manually annotated, seconds-based tests above.

Conclusion

The final results are well known.

CheckSORT’s team won the 2023 AI CITY CHALLENGE Track 4 final Test B evaluation with F1 = 0.8443. This is distinct from the earlier Test A position above.

CheckSORT devotes substantial effort to differences between training and test conditions: how synthetic products are placed, how much they overlap, and how to track them as they rotate. These choices directly affect performance in the checkout setting.

This paper addresses this core issue with two main solutions:

  • First, the authors designed a synthetic data optimization pipeline, controlling IoU upper bounds and scaling parameters to generate more representative training samples;
  • Second, they proposed a decomposed filtering approach at the filtering level to separate position and shape information, enabling stable tracking under rotation, flipping, and occlusion.

In the tested checkout scenes, these changes improve recognition and offer a useful basis for building a practical automatic checkout system.