CheckSORT: Refined Synthetic Data Combination and Optimized SORT for Automatic Retail Checkout
- 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}
}
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:
- Preprocessing: How to generate training samples closer to real shots from clean synthetic data?
- Object Detection: How to locate products and hands, and obtain masks for further processing?
- Object Tracking: How to track short-lived and possibly overlapping product trajectories?
- Product Classification: How to improve recognition accuracy and adapt to changes in viewpoint, occlusion, and lighting?
- 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:
- Product Detection: Fine-tuning the COCO pretrained DetectoRS model, which supports both detection and segmentation, to locate products and provide hand masks.
- 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:
- [17.03] Simple Online and Realtime Tracking with a Deep Association Metric
- [22.06] StrongSORT: Make DeepSORT Great Again
The authors introduced two key improvements into the tracking logic:
- Decomposed Kalman Filter (DKF)
- 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 tracksconfirmed: upgraded after consecutive correct matchesdeleted: removed after long no-match periods
Per frame, the processing steps are:
- Predict: From each tracklet’s history, predict its bounding box position and uncertainty in the current frame.
- 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.
- 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:
where:
- : center coordinates
- : aspect ratio
- : height
- "": derivative (velocity)
The problem is that motion patterns of center movement and appearance deformation 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 during product flipping.
Therefore, the authors propose the Decomposed Kalman Filter (DKF), splitting the overall state into two independent Kalman computations:
-
Position vector:
-
Shape vector:
Both share the following transition matrix and observation matrix :
For matching, compare the th detection’s position observation and shape observation with the th tracklet’s predictions projected into two-dimensional observation space. are their respective projected covariances; the observation vectors do not include velocities.
-
Position distance:
-
Shape distance:
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 has a gallery of normalized, EMA-smoothed appearance features:
-
A new detection’s EMA feature is added only if it differs enough from those already in ;
-
Appearance distance is defined as:
Here indexes the track and the current detection, whose normalized feature is . After distance-based gating, combine the position, shape, and appearance costs:
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:
- Short trajectories or those belonging to background classes → deleted
- Trajectory breaks longer than 0.5 seconds → split into two tracks
- 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.