Seeing Aerodynamic Disturbances Before They Arrive

Small drones lose tracking accuracy near structures. Flying over a table edge, under a shelf, or past a wall corner changes the airflow around the rotors, and the vehicle is pushed off its path. The best current controllers handle this by reacting. They estimate the push from accelerometer readings a few milliseconds after it starts and cancel it. Reacting is fast, but it always comes after the error has begun. Yet the cause of these disturbances is visible in advance: the depth camera already shows the table edge the drone is about to cross. We propose to learn, from onboard depth images, a forecast of the aerodynamic force the vehicle will feel along the next second of its planned path. That forecast is fed forward into a fast disturbance-cancelling controller, so the slow vision model supplies an expectation and the fast loop corrects whatever the forecast gets wrong.

The link to image architectures is the following. Whether a surface disturbs the flow depends on how large it is and how it is arranged, not only on the distance to the nearest point below the drone. A small box and a wide table at the same height produce different ground effects, and an overhang only matters if the drone is under it. Integrating geometry over a wide region of the image is exactly what ordinary convolutional networks do poorly. Their filters see only a small neighborhood, so they must shrink the image repeatedly to see more of it. We test whether a global-context image module that is cheap enough to run on board gives better forecasts than a local one. We also test whether better forecasts measurably reduce tracking error during the first few hundred milliseconds of an interaction, which is the window where reactive control is weakest.

Core Claim

A forecast of the disturbance, predicted from depth images and indexed by future reference positions, reduces peak tracking error when the drone enters an interaction region compared with a purely reactive observer. The forecast runs at camera rate (about 30 Hz), which is safe because it enters only as a feedforward term added on top of a fast observer loop and never replaces it. We further claim that the forecast's accuracy on geometries where surface extent matters requires image context beyond what a matched-compute local convolutional network captures. Recurrent criss-cross attention, an efficient way of letting every pixel exchange information with every other pixel, closes this gap within an onboard latency budget. The first claim is about control. The second is about architecture, and it is falsifiable separately, since the control gain could come entirely from simple geometric features.

Relation to Prior Work

Two strands of tracking research supply the fast reactive loop that we keep unchanged. Cascaded incremental nonlinear dynamic inversion for MAV disturbance rejection computes control increments from 512 Hz accelerometer feedback and cut maximum wind-tunnel deviation to 0.21 m against 1.51 m for tuned PID. DATT: Deep Adaptive Trajectory Tracking for Quadrotor Control pairs a reinforcement-learned tracking policy with an L1 adaptive disturbance estimator, a classical observer that tracks the unknown force online. Both are blind to exteroceptive geometry: they learn about a disturbance only once it is acting on the airframe. We keep their inner loop and add a term that neither has, a prior on the disturbance before it happens. DATT's estimator also plays a second role. Its online force estimate becomes our training label, so no fluid simulation is needed.

The one bridge in the file between global-context vision and flight is Vision Transformers for End-to-End Vision-Based Quadrotor Obstacle Avoidance. It maps depth images directly to velocity commands by imitating an expert, and it found that attention models beat ConvNets above 5 m/s. It motivates our use of global context, but it contains no disturbance estimation and outputs high-level commands. We do the reverse: vision predicts a physical quantity, and control stays with a verified tracking stack. This choice is constrained by A Benchmark Comparison of Learned Control Policies for Agile Quadrotor Flight, which found that low-level learned commands could not be deployed because of control delay. That negative result is why our vision output never touches the actuators directly.

The architecture comes from CCNet: Criss-Cross Attention for Semantic Segmentation. Its criss-cross attention lets each pixel attend only to its own row and column, and applying it twice connects every pixel to every other, at 85% fewer operations and 11x less memory than a full non-local block. Compact Generalized Non-local Network is a linear-cost alternative we include in the comparison. The physical argument that some fields cannot be resolved locally comes from Efficient Vision Transformer-based Surrogate for Scalable Pressure Prediction in Incompressible Turbulent Flows. It shows that pressure in incompressible flow depends on the whole domain and that a global model beats a Fourier neural operator out of distribution (~74% versus ~63% SSIM). That work is an offline surrogate, and it reports that host-side tokenization throttled throughput. We need neither a full flow field nor adaptive tokenization, only a force at a few future points, computed on board.

Research Program

Platform and scenes. The setup is a motion-capture arena on a quadrotor platform in the Crazyflie class, running DATT's tracking stack with its L1 estimator. The arena is populated with reconfigurable geometry, including boxes of varying footprint, tables, overhanging shelves, wall corners, paired obstacles forming gaps, and slotted grates. We use two depth sources. For the first phase, the scene is scanned into a mesh and depth images are rendered from the tracked pose. This isolates the forecasting question from camera noise and payload limits. A second phase uses a real onboard depth camera on a larger airframe to check that the result survives real sensing.

Labels. Labels are self-supervised. On every flight we log the L1 estimator's disturbance force at each timestep, and a model is trained to predict, from the depth image at time $t$ and the next $K$ reference positions, the force the estimator will report when the vehicle reaches each position. A single operator can fly thousands of passes over varied geometry, so data volume is limited by battery swaps rather than annotation.

Model. A small convolutional stem encodes the depth image. Two recurrent criss-cross attention passes then give every image location access to the full scene. Each future waypoint, projected into the image, becomes a query that cross-attends to these features and outputs a three-dimensional force. The budget is under 10 ms per frame on the companion computer. This is feasible because the forecast is refreshed at camera rate and interpolated along the reference, while the inner loop keeps DATT's sub-3.2 ms policy.

Integration. The forecast is added as a feedforward acceleration to the policy input. The L1 estimator is re-centered to estimate only the residual between the forecast and the observed disturbance. A forecast error therefore degrades to the reactive baseline instead of compounding. We will verify this by injecting deliberately wrong forecasts.

Baselines

The naive reference is DATT exactly as published, with its L1 estimator and no vision. For the strongest baseline we have one cited number. DATT reports 0.05 m error on its star trajectory, against 0.11 m for MPC, and reports outperforming adaptive MPC by 15% under wind and drag plates, both in DATT: Deep Adaptive Trajectory Tracking for Quadrotor Control. These numbers come from fan and drag-plate disturbances, not structure-induced ones. The file contains no reported result on Lacuna for tracking error near ground, ceiling, or wall geometry, so we will re-measure DATT in our scenes. As a second reactive reference we will run cascaded incremental inversion from Cascaded incremental nonlinear dynamic inversion for MAV disturbance rejection, since acceleration-level feedback is the strongest purely reactive competitor on fast onsets.

Every learned forecaster shares the same data splits, the same parameter count within 10%, the same latency budget, and an equal hyperparameter search. The search uses the Bayesian tuning protocol that Leveling the Playing Field: Carefully Comparing Classical and Learned Controllers for Quadrotor Trajectory Tracking showed is necessary before comparing controllers, applied to the controller gains of every arm including the reactive baseline.

The geometric-feature baseline replaces the network with hand-engineered inputs to a small regressor: distances below, above, and to each side, plus local surface normals. It is the most dangerous competitor. The local CNN ablation uses the same stem and head with the attention replaced by convolutions of matched cost; it isolates the global-context ingredient. A global-average-pooling CNN and a CGNL variant bracket the question of whether any form of wide aggregation suffices.

Last, a repeat-pass oracle feeds forward the disturbance recorded on a previous flight of the identical trajectory. It gives an upper bound on what any forecast can buy.

The proposal beats the field only if all three of the following hold. Peak onset error falls by a statistically clear margin relative to DATT. The attention forecaster beats both the geometric features and the matched local CNN on held-out geometries. None of this costs steady-state error.

Why not just…?

Why not just rely on the fast reactive loop, since it already corrects disturbances within milliseconds? This is the central threat. On gradual interactions it may be entirely sufficient. The incremental inversion result in Cascaded incremental nonlinear dynamic inversion for MAV disturbance rejection shows how much a 512 Hz loop can absorb. Our claim is limited to the onset window, where the estimator must first see acceleration error before acting. We therefore report error in the first 300 ms after crossing an edge separately from the full-trajectory error. If the repeat-pass oracle does not improve onset error over DATT, forecasting is pointless and we will say so.

Why not just use hand-crafted proximity features and a ground-effect model? On a flat floor these will likely match any network. Scenes are therefore split into flat surfaces, where we predict parity, and geometries where extent or arrangement matters: small versus wide surfaces at equal height, a grate versus a solid plate at equal distance, partial overhangs, and gaps. If geometric features also match on the second group, then the global-context claim fails. The control contribution would stand without it, and the paper would report that simpler system.

Why not just use a deeper CNN or global pooling? A pooled CNN does aggregate the whole image, but it mixes all locations uniformly and cannot condition on which part of the scene lies under a particular future waypoint. The matched-cost CNN and pooled-CNN ablations settle whether that distinction matters. Vision Transformers for End-to-End Vision-Based Quadrotor Obstacle Avoidance found ConvNets worse at high speed, but on a different output, so it is suggestive rather than decisive here.

Why not just learn vision-to-command end to end? The end-to-end obstacle-avoidance policy has no disturbance model. Low-level learned commands failed on hardware in A Benchmark Comparison of Learned Control Policies for Agile Quadrotor Flight. Keeping the forecast as an additive prior preserves the verified inner loop and makes failures graceful, and the injected-error test checks this directly.

Proposed Experiments

The first decisive check is offline. We measure forecast error against the logged L1 force on held-out geometries and held-out trajectories, broken down by scene group, for every forecaster. The group-wise gap between the attention model and the local and geometric baselines answers the architectural question before any closed-loop flight.

The second check is closed loop. We run repeated passes over each scene at two or three speeds with DATT, incremental inversion, the geometric-feature feedforward, the CNN feedforward, the attention feedforward, and the oracle. We report peak and RMS onset error, full-trajectory RMS error, and a crash or constraint-violation count. The attention forecaster should recover a substantial fraction of the gap between DATT and the oracle on non-local geometries, and should not hurt flat-surface or free-air tracking.

The third check is robustness. We inject biased and delayed forecasts and confirm that error stays near or below the reactive baseline. We also profile end-to-end latency on the companion computer to confirm the budget.

The final phase repeats the closed-loop comparison with a real onboard depth camera. This tests whether sensor noise erodes the advantage of global context. It is also where the tokenization and memory-bus problems noted for the fluid surrogate would surface if they apply.