Heading-Aligned Box Particles for Tracking Oriented Objects in Aerial Video

When a drone films traffic, a detector draws a rotated rectangle around each vehicle in every frame. Those rectangles jitter from frame to frame. For small, stopped, or nearly square vehicles, the detector's estimate of which way the vehicle points can be badly wrong. The usual fix is to smooth the rectangles over time with a Kalman filter that assumes bell-shaped, Gaussian errors. We propose a different tracker. Each hypothesis about a vehicle is kept as a small set of possible states, a box of intervals, rather than a single point. The key design choice is that these interval boxes are laid out along the vehicle's own heading, not along the image's x and y axes. Each new detection then cuts away the parts of each box that contradict it. The result is a trajectory with a stated, bounded envelope on position, size, and heading, maintained with a few dozen hypotheses instead of thousands.

The reason to align boxes with the heading comes from a geometric fact that both fields share without having connected. In oriented detection, a horizontal box drawn around a tilted ship is mostly background, which is why the field moved to rotated boxes (DOTA). In interval-based filtering, the same geometry is called the wrapping effect: when an axis-aligned uncertainty box is pushed through a rotation, its axis-aligned enclosure grows every step, so uncertainty inflates without bound (Introduction to the Box Particle Filtering; Box Particle Filtering for SLAM with Bounded Errors). A vehicle moving at a heading is exactly this case. We claim that expressing box particles in the vehicle's local frame is the interval-filtering counterpart of the move from horizontal to rotated boxes. We further claim it is what makes set-based tracking of oriented objects practical.

Core Claim

A box particle filter is a particle filter whose particles are boxes with nonzero volume, each carrying a uniform density over its volume. Such a filter can track oriented aerial objects more consistently than an orientation-aware Kalman filter, and with far fewer hypotheses than a point particle filter. This holds only if its boxes are expressed in a heading-aligned local frame.

In that frame, the motion update under a standard vehicle motion model is almost free of wrapping. The interval on distance along the direction of travel shifts by speed times the time step. The interval on sideways offset barely changes. In image coordinates, by contrast, a heading interval $[\theta]$ enters both $x$ and $y$ through $\cos$ and $\sin$ at every step.

Concretely, consider a body-frame box with half-extents $a$ along the heading and $b$ across it, viewed in image axes at heading $\theta$. Its enclosure has half-widths

$$ \big(|\cos\theta|\,a + |\sin\theta|\,b,\;\; |\sin\theta|\,a + |\cos\theta|\,b\big). $$

This inflation is compounded every time an image-frame filter re-encloses its state. It is the same factor that makes horizontal boxes loose around tilted ships. It vanishes when $a$ and $b$ are tracked directly.

The second part of the claim is about how detections enter the filter. We treat each detection as an interval-valued measurement: a rotated box plus a bounded error set, estimated from the detector's residuals on held-out data. We fuse it by constraint propagation, meaning forward-backward interval reasoning that shrinks each predicted box to the part consistent with the measurement (Box Particle Filtering for SLAM with Bounded Errors).

Because the measurement is a set, the same filter can also ingest orientation-ambiguous detections. One case is a near-square object whose heading is ambiguous modulo 90°. Another is a detector trained only on horizontal boxes. Temporal constraints such as bounded yaw rate and heading consistent with direction of travel are left to resolve the ambiguity. Current systems cannot do this cleanly, because a Gaussian filter must commit to one heading per frame.

Relation to Prior Work

Two papers touch this intersection, and they define what is new here.

Consistent vehicle trajectory extraction from aerial recordings using oriented object detection feeds rotated detections into an Extended Kalman Filter, a Gaussian filter that linearizes the motion model, with heading in the state. It then adds a physics-informed sliding-window optimization to enforce vehicle dynamics. The paper motivates our work: rotated boxes raised trajectory coverage from 68% to about 90%, which shows that orientation matters downstream. It also shows that Gaussian filtering alone was not enough, since consistency required a separate constrained optimizer. We fold those dynamic constraints into the filter's update as contractors instead of applying them afterward.

Interval Tracker applies interval analysis to visual tracking by bounding the posterior between upper and lower limits. It tracks single objects with axis-aligned states and hand-crafted appearance models at 1–5 frames per second. We keep its premise that models are wrong in bounded ways. We change the state to rotated boxes, the observations to modern detectors, and the setting to many objects at once.

The filtering machinery comes from three sources. The box particle filter comes from Introduction to the Box Particle Filtering. The Bernoulli variant, which also estimates whether a target exists amid false alarms, comes from A box particle filter for stochastic and set-theoretic measurements with association uncertainty, which reported reliable tracking with 16 box particles. Smart initialization and $q$-satisfied intersection come from Box Particle Filtering for SLAM with Bounded Errors. The $q$-satisfied intersection keeps the largest mutually consistent subset of measurements, so a single bad detection does not empty the set.

That SLAM paper also constrains our design. It curbed over-enclosure with a history buffer and backward contraction, and reported that this scales poorly in latency. Our heading-aligned frame is meant to remove most of the inflation at its source, so that no such buffer is needed. None of these interval papers places boxes in a rotating local frame, and none tracks rotated boxes.

The detection literature supplies the measurement sources and the ambiguity we exploit. Oriented R-CNN is our fully supervised detector. H2RBox-v2 learns rotated boxes from horizontal labels via symmetry priors. It is our weakly supervised detector, and it acknowledges failures on asymmetric or occluded objects. The ambiguity for square-like objects is documented in The KFIoU Loss for Rotated Object Detection, which models boxes as Gaussians for a training loss. Its Gaussian of a square is a circle with no heading. That is precisely the case where a set-valued measurement, rather than a Gaussian one, is the honest description.

Research Program

We will build a heading-aligned box Bernoulli filter for many targets. Each track keeps a small set of box particles. Each particle carries a reference heading $\bar\theta_i$ and intervals on:

  • distance along $\bar\theta_i$ and sideways offset across it,
  • the heading deviation $\theta-\bar\theta_i$,
  • speed,
  • box length and width.

The motion update uses interval inclusion functions of a bicycle-style vehicle model written in the particle's own frame. After each step, the reference heading is re-anchored to the particle's current heading midpoint, and intervals are re-expressed in the new frame. This is the only place where some wrapping remains, and it is bounded by the heading interval's width.

The measurement update has three components. First, it contracts each particle against each associated detection's error set. We will derive contractors for rotated-box corners, and a variant for horizontal-box measurements that constrains only the enclosure given by the equation above. Second, association uses $q$-satisfied intersection across candidate detections. Third, particle weights come from the fraction of each box's volume that survives contraction, following the box particle filter.

Measurement error sets are not hand-tuned. We will fit per-class, per-size bounded error sets from each detector's residuals on held-out aerial frames, at a chosen coverage level such as 95% of residuals. Coverage of the tracker's own sets can then be checked against a stated target.

We will analyze two properties. The first is how enclosure volume grows over time in the heading-aligned frame versus the image frame, as a function of yaw rate and heading width. This analysis predicts where the frame choice matters: turning and slow vehicles. The second is how quickly contraction collapses a 90°-ambiguous heading set once the vehicle moves a given distance.

Baselines

The naive reference is per-frame rotated detections linked by Hungarian matching on rotated overlap, with no temporal filtering. It measures how much any tracker adds and exposes raw jitter.

The strongest existing method is the pipeline of Consistent vehicle trajectory extraction from aerial recordings using oriented object detection: an orientation-informed EKF followed by physics-informed sliding-window optimization. The file reports roughly 90% trajectory coverage, and 15% better internal and 20% better platoon consistency than horizontal boxes. It also reports up to 28.69% internal and 11.72% platoon consistency gains from its constrained reconstruction over baseline reconstruction methods. These are relative figures on the authors' circular-track dataset. We will reimplement the pipeline and feed it the identical detections, homography, and association front end as our filter. We will tune its noise covariances and window length on the same validation split, with the same search budget we give our error-set coverage level.

Beating this baseline means one of two outcomes. The first is higher internal and platoon consistency and lower heading error at equal or better coverage. The second is equal consistency without a separate optimization stage, together with stated enclosure coverage within a few points of target. An EKF's two-sigma regions are not calibrated to any target on this data.

The third baseline is a point particle filter using sampling importance resampling, run with matched wall-clock time and separately with 100× the particle count. It tests whether volume per hypothesis matters or whether more points suffice.

The fourth is an EKF whose heading measurement is replaced by the direction of estimated velocity. This is the simplest heading fix and is discussed below.

Two ablations isolate our ingredients. The first is the identical box Bernoulli filter with boxes in image axes, the direct formulation of A box particle filter for stochastic and set-theoretic measurements with association uncertainty. It isolates the heading-aligned frame. The second is our filter with plain box intersection instead of $q$-satisfied intersection. It isolates robustness to outlier detections.

On UAVDT we found no reported result for oriented tracking on Lacuna. The file's reference point there is MOTA 43.0 and IDF 61.5 for MDP with Faster-RCNN on horizontal boxes (UAVDT). We will compare against it only after projecting our rotated tracks to their enclosing horizontal boxes.

Why not just…?

Why not just take heading from the velocity direction in an ordinary EKF? This is the real threat. For moving vehicles, velocity direction is an excellent heading estimate. We expect our method to tie with it on fast, straight segments. It should break down in three regimes where velocity is uninformative: stopped vehicles at intersections and parking, slow creeping in queues, and the first frames of a track. In those regimes heading must come from the detector's box, which is where near-square ambiguity and weakly supervised detector errors live. We will report heading error stratified by speed. If velocity-heading matches us in every speed bin, the heading-disambiguation claim fails. We would then retreat to the narrower claim of calibrated enclosure with few particles.

Why not just use a point particle filter with more particles? Evidence from other domains favors boxes at small budgets. The SLAM paper reports 1.21 m error with 5 box particles versus 3.09 m for FastSLAM 2.0 with 50 particles. The Bernoulli box filter reports reliable operation with 16 box particles. But none of this is on rotated boxes. Our matched-time and 100× comparisons settle it for this state. A point filter with 100× particles reaching our accuracy at acceptable frame rates would count against the method's practical value.

Why not just smooth the detector's Gaussian box representation over time? KFIoU-style Gaussians give a smooth training loss, but a square's Gaussian carries no heading at all (KFIoU). Temporal smoothing of such Gaussians therefore averages across the 90° ambiguity instead of resolving it. We include a Gaussian-smoothing variant of the EKF baseline and report heading error on near-square vehicles specifically.

Why not just use a better detector? Better detectors shrink the error sets but do not remove per-frame independence. The trajectory paper already needed temporal reconstruction on top of good rotated detectors. We run every tracker with both Oriented R-CNN and H2RBox-v2 measurements. If the gap between trackers closes as detection quality rises, we will report that directly.

Proposed Experiments

The primary real-data benchmark is the circular-track drone dataset from the trajectory-extraction paper: 14 vehicles over 40 minutes. On it we report internal consistency, platoon consistency, and coverage exactly as that paper defines them. If the data cannot be obtained, we will record an equivalent setup and release it.

On UAVDT we run all trackers and report MOTA and IDF on projected horizontal boxes. This checks that heading-aligned tracking does not hurt standard identity tracking in dense traffic, night, and fog.

Detectors are trained on DOTA vehicle classes. Oriented R-CNN reports 75.87% mAP on DOTA-v1.0 and H2RBox-v2 reports 72.31%. Their residuals on the DOTA validation split define the error sets.

Neither real dataset gives per-frame heading ground truth under controlled ambiguity. We therefore add a measurement-level simulation. We generate vehicle trajectories with known kinematics, including stops, turns, and near-square trucks. We then corrupt the true rotated boxes with residuals resampled from the real detectors' DOTA validation errors, including 90° heading flips at their observed rate.

Beyond the benchmark metrics, the metrics are:

  • heading error in degrees, stratified by speed and aspect ratio;
  • enclosure rate, the fraction of frames whose true box lies inside the reported set;
  • mean set area;
  • frames per second.

The decisive checks follow from the claims. First, the heading-aligned filter should show flat enclosure volume over long turns, while the image-axis ablation inflates. If both inflate equally, the central geometric claim is wrong. Second, on stopped and near-square vehicles, heading error should fall below both the orientation-informed EKF and the velocity-heading EKF. Third, the filter should run faster than the 1–5 frames per second of prior interval trackers at 16–32 particles per track. Fourth, enclosure rate should stay near the chosen target without a sliding-window optimizer.