GateTrace: Locating Missed Pedestrian Crossings Under Occlusion
A crowd count off by a few points is not the expensive error; not knowing who was missed is. The audit splits each lost crossing into three kinds — no linked box, no crossing formed, rejected by a later check — and each needs a different repair.
On this page
A stadium gate reports 40,000 crossings for one match, and your own spot check of the video does not add up, but the total is not the problem: the report never says who was missed. You hold two cameras at the gate, an hourly total, and one sampled clip you counted by hand. Most people would compare the total against ticket sales and call anything within 5% good, or watch the video for a few minutes, see the boxes following people, and conclude the system works. Neither test finds what you need to know. A total can be right because the system missed one crowd and counted another twice, and boxes can track fine while only following the people at the front who are fully visible. A paper posted on 19 November 2026 does something plain: it turns one missed crossing into a record you can inspect line by line [1].
The Total Does Not Add Up, and the Total Is Not the Problem
Take the pipeline apart. A camera sees the scene; a tracker gives each person an ID and tries to keep that ID on the same person across frames. A counting rule then asks whether that trajectory crossed the line you drew, and if so, writes one entry. The report keeps only the resulting number. Everything in between, whether the ID broke, whether one trajectory became two people, whether a crossing was rejected by a rule, never reaches the report [1].
The study began with a stadium. Counting cameras watched tunnel entrances, and the authors compared the output against crossings they had marked by hand by time and position: 103 of 129 clearly visible crossings matched, and 40 of 138 crossings where the person was mostly obscured [1]. Those two numbers reframe the problem. The system is not off by 20% overall; it nearly fails on one kind of person. But the stadium annotations did not follow individuals across frames, so the authors could not check whether those 103 matches were credited to the right person. That is why they moved to MOT20, which ships per-frame boxes, IDs that stay consistent, and a visibility value per person [1].
The move carries a lesson for buyers. Auditing on someone else's footage requires footage that records who is who. Your own venue video almost certainly does not. So this method works as an acceptance test, not as a post-hoc rescue.
How the Audit Turns a Count Into a List of Misses
Step one writes down how many crossings there should be. The authors use the bottom centre of each annotated box as the person's position and draw six virtual lines per sequence: horizontal lines at 0.30, 0.50 and 0.70 of image height, vertical lines at 0.25, 0.50 and 0.75 of image width [1]. Each line has a rectangular region on either side, with a depth equal to the apparent body height at that spot, fitted by an affine model because a person looks taller near the bottom of the frame [1].
The crossing rule is specific. A transition is recorded when a person first appears in the region opposite their last assignment; a gap longer than 0.5 s clears that assignment; and the point must reach at least 0.2 times the body height into the destination region within 50 frames of entry [1]. Those three numbers, 50 frames, 0.2 heights and 0.5 s, set the denominator, so any acceptance test has to pin them down.
Step two matches system output to the list. A report counts only if four things hold at once: same person, same direction, times within 1 s, and positions within one body height [1]. Requiring all four blocks the flattering case where the timing is right but the entry belongs to someone else. Matched references over total references give recall; matched reports over all reports give precision [1].
Step three is the new part. For every unmatched reference, the audit walks back through the pipeline: is there any output box within a second either side that can be linked to this person; if so, did those tracks form a candidate crossing at that gate; if so, was it rejected by the depth check, merged away, or assigned to another person [1]. The end state is one of five: no linked box nearby; linked box but no crossing formed; crossing assigned to someone else; direction, time or position mismatch; rejected by the depth check [1].
The five states matter because each has a different repair. No box points to detection or occlusion. Boxes without a transition point to a broken or stuck track. Rejection points to a threshold. A wrong person points to association. A vendor told to 'improve recall' may touch only the last one, which is often not where the losses are.
Recall Split by How Much of the Person You Can See
Each crossing is binned by the person's mean annotated visibility: 0 to 0.25, 0.25 to 0.5, 0.5 to 0.75, and 0.75 to 1 [1]. Visibility is the share of the box that was actually observed rather than inferred. Once the bins are separated, the same systems look very different at the two ends.
| Development set, MOT20-01/02 | Low visibility (180) | High visibility (210) | Precision |
|---|---|---|---|
| ByteTrack | 83/180 | 206/210 | 580/644 |
| OC-SORT | 70/180 | 206/210 | 560/593 |
| BoT-SORT | 84/180 | 208/210 | 584/634 |
| Tuned YOLOX composite | 99/180 | 205/210 | 603/665 |
| BASE (published) | 114-115/180 | 209/210 | 629-632/659 |
| Annotation-box ceiling | 173/180 | 209/210 | 711/723 |
The last row is the ceiling: feed hand-drawn boxes into the same counting rules and low visibility reaches 173 of 180. Almost the entire gap therefore sits in where the boxes come from, not in the counting rule. The three trackers sharing one detector recover 38.9% to 46.7% at low visibility and 98.1% to 99.0% at high visibility [1]. Same code, different crowd, recall falls by more than half.
BASE, a published system tuned on MOT20, reaches 114-115 of 180 at low visibility, clearly better than the three trackers, and the gap between bins survives [1]. That contrast carries the point: tuning raises the level, and does not flatten the visibility gap.
| Confirmation set (protocol fixed in advance) | 03 low (136) | 03 high (572) | 05 low (291) | 05 high (645) |
|---|---|---|---|---|
| ByteTrack | 56/136 | 548/572 | 84/291 | 610/645 |
| OC-SORT | 37/136 | 532/572 | 42/291 | 596/645 |
| BoT-SORT | 57/136 | 547/572 | 79/291 | 611/645 |
| Tuned YOLOX composite | 67/136 | 554/572 | 117/291 | 622/645 |
| BASE (published) | 104/136 | 567-568/572 | 230-231/291 | 637-640/645 |
| Annotation-box ceiling | 132/136 | 569/572 | 280/291 | 642/645 |
The two confirmation sequences were run under hypotheses written down first: each tracker recovers at most 70% at low visibility and at least 90% at high visibility. Both held on both sequences [1]. Pooling 03 and 05, the three trackers reach 18.5% to 32.8% at low visibility, the composite reaches 43.1%, and high visibility sits at 92.7% to 96.6%; BASE reaches 78.2% to 78.5% at low visibility, about 21 points below its own high-visibility figure, with precision at 97.2% [1].
Keep the BASE row in mind, because it is the row a sales deck will quote: a system tuned on the target data gets close to eight in ten even when people are mostly hidden. It is still 21 points below its high-visibility number, and its parameters were fitted on data that includes these two sequences, so it had seen the exam [1]. The authors say so and place BASE outside the pre-registered protocol as an additional analysis.
Where the Crossing Is Lost, and What Relaxing Costs
BASE missed 66 low-visibility crossings on the development set, 65 under the other coordinate reading. Tracing each one: 20 had no output box within a second that could be linked to the person; 23 had linked boxes and tracks but no transition at that gate; 13 formed a candidate crossing that the depth check rejected; 5 (4 in the other reading) were assigned to someone else; 5 failed on direction, time or position; none fell into the residual category [1]. The first three states account for 56 of the 66.
That distribution says most losses happen before the later checks. The depth check accounts for 13. Relax the threshold and you can recover, at most, those 13; the other 53 have no crossing to recover. The authors repeat the count across four systems and both sequence groups: 47% to 79% of low-visibility misses have either no linked box or no crossing formed, while the depth check accounts for 11% to 27% [1].
They also tried the relaxation. Holding BASE's tracks and the reference list fixed, they removed the depth check, the event merging and the before-and-after position checks: low visibility rose from 114-115 of 180 to 127-128, high visibility reached 210 of 210, a gain of 13; precision fell from 95.4% to 95.9% down to 76.6% to 77.0% [1]. The same treatment on ByteTrack moved 83 to 95 of 180 and dropped precision from 90.1% to 65.9% [1]. Even with every check removed, 52 to 53 of BASE's references stay unmatched, and 85 for ByteTrack [1].
Those are the numbers a buyer should memorise. Thirteen extra crossings come with precision near 77%, which means one wrong report in four. On a gate count, your published figure runs ahead of the true crossing count, and nothing in the report marks which entries are the extra ones. The authors also test a narrower repair, keeping a rejected crossing only when a second model supports it: it adds 5 or 6 matches, loses none, and adds 9 to 11 unmatched reports, so they decline to adopt it [1].
The last check is human. The authors sampled 88 development references across visibility bins and had two annotators judge whether the person crossed, in which direction, and whether the same person appeared on both sides. Both supported 64 initially, 18 of them low visibility; after discussion, 79 and 25 [1]. Within those 18 supported low-visibility crossings, ByteTrack misses 8, OC-SORT 10, BoT-SORT 9, the composite 3 and BASE 3 [1]. On the high-visibility side, every system misses at most one.
One detail is easy to skip: the timing barely lines up. Of 14 references where both annotators gave a time interval, 13 intervals overlap, only 5 pairs both contain the reference frame, and only one of those is low visibility [1]. So the phrase 'human verified' needs a follow-up question about which parts were verified. Crossing, direction and identity can be verified; the exact frame cannot.
The paper also checks against conventional frame metrics. In 56 confirmation-set comparisons, only 3 produced opposite rankings between frame metrics and crossing recall, and those differences met their threshold [1]. Frame metrics broadly track the problem, then, but on a specific pair of sequences they can pick the wrong winner.
What to Ask, and Where It Stops
Seven questions, ordered by whether they can become a contract clause. The first four fix definitions; the last three fix responsibility.
- One: ask for recall by visibility bin, not pooled recall. With one shared detector, 83/180 low against 206/210 high [1]. A pooled figure averages those two away and hides exactly what you need.
- Two: ask for the per-miss record, sorted into the five states. Of BASE's 66, twenty have no linked box, twenty-three have tracks with no crossing, thirteen were rejected by the depth check [1]. Without that, you cannot tell whether to replace the detector or move a threshold.
- Three: ask what relaxing costs. BASE moves from 114-115 to 127-128 while precision falls from 95.4%-95.9% to 76.6%-77.0% [1]. A proposal that reports recall and not precision is selling you a number to present upward.
- Four: ask for the reference parameters. Where the lines sit, the 0.2-height depth, the 50-frame window, the 0.5 s gap reset [1]. Change any one and the denominator moves, so recall is no longer comparable across projects.
- Five: ask for the coordinate origin and the version. BASE's released files do not document the origin, so the paper reports both one-based and zero-based readings [1]. Writing that into a contract saves a month of reconciliation later.
- Six: ask how the human check was sampled and what it covered. Of 88 sampled references, the annotators agreed on 64 initially and 79 after discussion; crossing, direction and identity were confirmed, timing was not [1]. Demand agreement rates under the same sampling.
- Seven: ask whether it holds at another camera position. The six gates are set as fractions of image height and width, and body height is fitted to image position [1]. Change camera height, tilt or lens and the whole geometry needs re-marking.
The limits deserve the same space. First, four MOT20 sequences, few scene conditions, and crossings within one scene depend on each other, since one person crossing is followed by the next; those percentages describe rather than estimate [1]. Second, three trackers share one detector, and BASE uses published output with a different training and processing history and an undocumented coordinate origin, so 'which is better' only reads within these conditions [1]. Third, the reference point is the bottom centre of the annotated box, which is also hidden when the person is hidden, so the reference list itself is shaky at low visibility [1]. Fourth, one recorded state can have several causes: a late track, a broken track, or a mismatch between output and annotated box bottoms all prevent the counting rule from finding a crossing. The audit locates the step, not the cause [1]. Fifth, the paper gives no price, no deployment cost, no labour cost for reviewing flagged reports, and no results under other camera installations. Those are blanks on a purchase order.
Here is the version a non-specialist can repeat. Someone wrote down who crossed, when and in which direction, using annotated footage as the answer key, then had the system submit its work and marked it line by line. Every miss was traced to one of five steps: no box, no track, no transition, rejected by a rule, or credited to the wrong person. Most losses, it turned out, happen in the first two steps when people are hidden, not in the rules at the end. One line worth a screenshot: when the total does not add up, do not replace the model first; ask the vendor to hand over every missed crossing and say which step it died in.
