Manuscript Offprint
arXiv:2611.07687Not Losing Your Way: Mitigating Visual-Inertial Odometry Drift through On-Demand Visual Feature Creation
Simone D'Angelo¹*, Gianmarco Corrado¹, Federico Esposito¹, Vincenzo Scognamiglio² and Fabio Ruggiero¹
Abstract— Visual-inertial odometry (VIO) can degrade during aerial inspection in repetitive or poorly textured environments. We propose an active environment-modification framework for unmanned aerial vehicles (UAVs) relying on cameras and an inertial measurement unit only, without prior maps or additional localization sensors. Inspired by the fairy tale of Tom Thumb, the UAV creates visual features on demand by releasing ground markers or marking walls through physical contact. An information-based indicator triggers interventions using temporal confirmation and hysteresis. Evaluation includes three simulated environments and a 900-run factorial campaign. Lower cruise speed and active marking are associated with reduced divergence, while accuracy among non-divergent runs depends on speed–strategy interactions. Corridor experiments, with five runs per configuration, use OptiTrack for flight control while VIO-based marking decisions remain active online. The combined framework reduces the reported position root mean square error by approximately 35% relative to baseline VIO, supporting active feature creation for drift mitigation.
I. INTRODUCTION
Aerial inspection in global navigation satellite system (GNSS)-denied environments can require unmanned aerial vehicles (UAVs) to traverse tunnels and corridors with repetitive structures, shafts and tanks with uniform walls, or indoor spaces dominated by weakly textured surfaces. Such inspection routes may necessarily cross extended regions with insufficient distinctive visual features.
We consider localization using only onboard cameras and an inertial measurement unit (IMU), without prior maps or external positioning infrastructure. Light detection and ranging (LiDAR) and other complementary sensors are outside this setup. Although multi-modal sensor fusion [1]–[3] and deep learning-based feature extraction [4] have advanced localization, additional sensing changes the hardware configuration, while image processing remains limited by the available visual information. Without usable visual constraints, visual-inertial odometry (VIO) relies on inertial propagation and cannot guarantee reliable localization through prolonged visual deprivation. Perception-aware motion helps only when informative viewpoints remain accessible along the inspection route.
These challenges are particularly relevant to underground inspection, where tunnels, mines, and damaged structures can combine limited visual distinctiveness with airborne dust affecting both cameras and LiDARs [5], [6]. Geometric degeneracy can also challenge LiDAR-inertial odometry in tun-
nels, while dust and poor lighting impair VIO [5]. Propeller downwash can further reduce visibility by resuspending dust [6]. Here, we specifically address insufficient visual texture under visibility and illumination conditions that still allow newly introduced features to be observed.
Inspired by Tom Thumb's trail of pebbles, our UAV introduces persistent visual features by depositing ground markers or marking accessible walls through physical contact (Fig. 1). These features provide additional visual constraints to support estimation and limit further drift accumulation.
We propose an integrated framework that couples online VIO quality monitoring with on-demand feature creation. Motivated by the information-based analysis of estimation degeneracy in [7], we construct an operational degradation indicator from the extended Kalman filter (EKF) information matrix and use temporal confirmation and hysteresis to trigger interventions. The robot selects a marking action according to the available surfaces and enabled mechanisms, and monitors the subsequent estimation response.
Hence, our contribution is the integration of degradation monitoring, physical feature creation, and navigation within a camera-and-IMU localization framework for aerial inspection in visually degraded environments.

Fig. 1. Conceptual illustration of VIO drift mitigation through on-demand visual feature creation. Left: repetitive structures and insufficient visual texture can degrade VIO and increase localization drift. Centre: the UAV introduces additional visual features by releasing objects onto the ground or marking accessible walls. Right: the added features provide new visual constraints, supporting recovery of VIO estimation quality and limiting further drift accumulation.
*Corresponding author's email: simone.dangelo@unina.it ¹PRISMA Lab, Department of Engineering and Information Technology, University of Naples Federico II, Naples, Italy. ²KRUSH Labs B.V., Eindhoven, Netherlands.
systems, including VINS-Mono [8], provide good accuracy, whereas for scenarios with low textures, repetitive patterns, insufficient lighting, and homogeneity, feature detection will become increasingly difficult, leading to unbounded error and possible localization failure [4], [9]. While LiDAR-based solutions have shown much promise in tunnel-like scenarios, the feasibility of adopting such solutions on light UAVs faces limitations of payload, cost, and power efficiency. Besides, as pointed out in [6], the parameter settings in LiDAR-Inertial Odometry are important, and its robustness against dust and geometric degeneracy must still be improved. The main limitation shared by these methods is the passive characteristic: they depend only on existing environmental features and cannot create features if there are none.
To overcome single-sensor limitations, the community has explored multi-modal sensor fusion. Tightly coupled architectures that blend cameras, IMUs, and LiDARs at the raw data level offer robustness and accuracy, but at the cost of increased computational load and weight [1], [2]. Moreover, as noted in [10], the real challenge is not only accuracy but uncertainty awareness — knowing when sensors are unreliable. Yet even the best fusion cannot create information in a featureless void.
Active perception plans motion to improve visual information, using deep reinforcement learning to avoid perceptually poor areas [11] or perception-aware planning to favour texture-rich regions [12]. Its effectiveness, however, depends on the availability of informative viewpoints, which may be limited along feature-degraded inspection routes.
Visual place recognition supports loop closure, with learned descriptors improving robustness to illumination changes and occlusions [13], [14], although distinctive visual cues remain necessary [15]. Underground localization studies also highlight geometric degeneracy and the potential of thermal imaging under poor visibility [5], while intensity-based dust filtering is incorporated into autonomous exploration [6]. These methods exploit existing observations, whereas our framework physically introduces additional visual features.
Artificial landmarks support reliable pose estimation [16], including QR codes as global anchors in LiDAR-inertial SLAM [17] and infrared beacons [18]. Our work instead integrates active, on-demand feature creation into exploration through ground marker deployment and wall marking.
For wall marking, we initially considered spray painting inspired by PaintCopter [19], but pressurized canisters, downwash-induced spray dispersion, and environmental concerns despite drift reducers [20] motivated contact-based marking with a sponge. Contact is detected using an external force estimator [21], [22] relying only on onboard IMU measurements and control inputs. Combined with an onboard marker dispenser, this enables physical feature creation without pre-installed infrastructure.
III. METHODOLOGY
Consider a UAV whose task is to operate in an unknown environment. Only its maximum dimensions are known a priori; no prior map and no external positioning infrastructure
are available. In such a setting, VIO serves as the primary state estimation source — yet it is precisely in these unknown, unstructured environments that visual features are most likely to be scarce or degraded.
With reference to Fig. 1, let be the world inertial frame, fixed to the environment, and let be the body frame attached to the robot's center of mass. The position and orientation of in define the robot's pose, with and its linear and angular velocities. To perceive the environment, the robot is equipped with two camera sensors with different viewpoints: one oriented forward for navigation, and one tilted downward/backward to observe the ground facilitating marker detection. Let and be the corresponding camera frames, rigidly attached to with known extrinsics.
The problem statement of this work is to design a reliable solution to mitigate VIO drift based on active environment modification strategies that enable the UAV to deliberately generate visual features on demand during exploration. This paper focuses on two approaches: ground deposition, releasing pebbles onto the floor as new visual landmarks, and wall drawing, making physical contact with vertical surfaces to create persistent features. Both are integrated into a complete VIO-based exploration framework, detailed in this section.
A. Workflow
We build upon an existing autonomous navigation framework [23], which provides general mapping, planning, and control capabilities for UAVs in GNSS-denied environments. To this base, we add three key components: (i) OpenVINS [24] as the baseline VIO estimator, (ii) a lightweight mapping pipeline that converts sparse OpenVINS landmarks into an OctoMap for obstacle avoidance, and (iii) a VIO quality monitoring pipeline triggering on-demand feature creation strategies.
The front and rear camera streams are processed by a single OpenVINS instance configured to handle both monocular cameras simultaneously. The same estimation and monitoring architecture is used in both simulation and experiments. Moreover, the complete system operates in a closed loop between perception and action. When the degradation metric indicates unreliable localization, the strategy selector determines which active modification behaviour to trigger. The choice between ground deposition and wall drawing is not pre-established; it depends on the target application context and accessibility of adjacent surfaces. In the case of tightly enclosed environments with many walls, such as tunnels, tanks or sewage pipes, wall drawing appears to be the favored approach, because vertical and curvilinear surfaces are always available and produce durable and contrasted marks. In contrast, for open or floor-oriented environments with few or inaccessible walls, ground deposition appears to be the natural option. In the case when surfaces of both kinds are available, the two approaches can be used together: the selector can alternate between, or combine, pebble release and wall drawing in order to create as many directional markers as possible. After feature creation, the monitor

Fig. 2. Overview of the proposed VIO-based framework. Onboard sensors feed the VIO algorithm, whose quality is continuously monitored to trigger active marking through either ground pebble deposition or wall drawing. The VIO sparse visual information is then used to build a map, on which the navigation framework in [23] generates trajectories continuously tracked by the autopilot, closing the control loop with the sensing units.
assesses whether VIO quality has recovered sufficiently to resume exploration, completing the feedback loop illustrated by Fig. 2.
B. Preliminaries on Visual-Inertial Odometry: OpenVINS
OpenVINS [24] is a modular EKF-based visual-inertial odometry framework. The filter state is defined on the manifold and includes the orientation quaternion , position , velocity , and sensor biases . For brevity, we report the inertial component of the OpenVINS state only. The implemented filter additionally maintains a sliding window of cloned poses and the other variables enabled by its configuration. The filter propagates the state using IMU measurements (corrupted by biases and noise) according to the kinematics
where is the gravity acceleration, is the vector of the world-frame -axis, and denotes the quaternion product (Hamilton product) between two quaternions.
Visual measurements are sparse feature tracks. For a feature observed in the camera frame , the measurement model is , where is the landmark position in , is the rotation from to , is the position of the camera origin expressed in , is the fixed rotation from to , is the camera projection function, and . We disable loop closure and rely on the multi-state constraint Kalman filter (MSCKF) for efficiency.
C. VIO Mapping
To support obstacle-aware exploration without relying on dense depth sensors, we complement the OpenVINS sparse landmarks with a lightweight mapping pipeline. Our implementation builds on the MonoSpheres approach [25], re-engineered into a ROS 2/C++17 module for real-time perfor-
mance and adapted to produce an OctoMap, a probabilistic occupancy map directly consumable by the planner in [23].
New landmark observations are matched to existing ones via Mahalanobis gating and fused through a Bayesian update; each landmark retains its minimum observation distance as a reliability indicator. Landmarks are then projected into the image plane and triangulated via 2D Delaunay, yielding a sparse depth mesh. Connecting each mesh triangle to the camera center forms a free-space cone; the union of all such cones defines a visible free-space polyhedron. The resulting polyhedron approximates the visible free space inferred from the sparse landmark geometry. Its reliability depends on the validity of the interpolated surfaces and on the absence of unobserved obstacles within the reconstructed volume. To fill coverage gaps, an optional Open-Area Virtual Depth Estimation (OVDE) step injects synthetic points in regions with sufficient historical parallax and no known occlusions, while a Distance-Based Obstacle Filtering (DBOF) step prunes redundant landmarks, retaining the closest observation among nearby duplicates and permanently protecting any landmark ever observed near the camera. The free-space polyhedron is then sampled to mark free voxels, and the retained landmarks are inserted as occupied voxels, yielding the final OctoMap. As an extension to the original MonoSpheres pipeline, our implementation includes a wall-densifier module that detects planar surfaces in the sparse point cloud and generates additional synthetic points on them, increasing map density in structured environments such as corridors or tunnels.
D. VIO Degradation Metric
To monitor the VIO estimate quality online, we adopt a degeneracy metric derived from the information matrix of the EKF-based estimation problem, following [7]. The objective is to detect when the VIO estimation becomes unreliable due to texture scarcity, repetitive structures, or feature degradation, and trigger the active environment modification strategies described in Section III-E.
With reference to the EKF update formulation in Sec-tion III-B, the original non-linear estimation problem is linearized at the current state estimate by computing the Jacobian of the measurement model, yielding the weighted linear least-squares formulation
where is the reprojection residual of the -th tracked feature, is the number of tracked features, is the corresponding measurement Jacobian, and is the measurement noise covariance. The symbol denotes the local error-state perturbation, and we use the shorthand . The second term is the prior from the propagated state covariance . Following [7], the corresponding information matrix is
where and , assuming independent measurement noise. We extract the position block and use its eigenvalues as an operational degradation indicator. This block describes conditional position information, with the remaining state variables fixed. When the VIO degrades (e.g., few tracked features, poor geometry, or motion degeneracy), information along one or more directions decreases, causing the corresponding eigenvalue to drop [7], [26]. The three eigenvalues, computed online and published at each estimator update, constitute the degradation metric used to drive the quality-monitoring logic.
A hysteresis-based algorithm, as in [27], counters false positives from temporary variations, using a lower threshold and an upper threshold for each eigenvalue , with . A stagnation flag is raised when all three eigenvalues vary by less than for more than consecutive updates. This provides an additional heuristic warning even when the eigenvalues remain above their lower thresholds.
The system evolves through four stages. From NOM (nominal), the state escalates to SUSP (suspected degradation) as soon as any of the three eigenvalues of satisfies , or the stagnation condition is met. If all eigenvalues exceed their respective and the stagnation condition clears before the confirmation window elapses, the state reverts to NOM; otherwise it escalates to DEGR. Symmetrically, from DEGR the state moves to REC (recovering) once all eigenvalues satisfy (and the estimate is no longer stagnant), confirming back to NOM if this condition persists for , or reverting to DEGR otherwise. The OR-logic on degradation and AND-logic on recovery, combined with the double-threshold, double-confirmation scheme, prevent chattering near the degeneracy boundary in both directions. The resulting state is published as the VIO quality status and serves as the input to the strategy selector (see Fig. 2).
E. Active Environment Modification Strategies
The strategy selector is activated when the monitor enters SUSP in anticipatory mode or DEGR in reactive mode. The selector evaluates the current environment – that is, whether there are close walls, the ability to access the ground, and the direction associated with the degraded eigenvalue(s) – and chooses between two complementary actions: ground deposition (releasing pebbles on the floor) and wall drawing (depositing visible marks on vertical walls). Both strategies are triggered online and executed autonomously, without requiring human intervention or pre-installed infrastructure.
-
Ground Deposition: The ground-deposition strategy consists of releasing small objects onto the floor below the UAV. When the strategy selector activates this behaviour, autonomous exploration is paused, a release command is issued, and a dispenser mounted underneath the drone opens and closes with a fixed time step. The released objects fall to the ground and act as artificial visual landmarks. After the release, a short confirmation window checks whether the new feature has been integrated; if VIO quality improves, exploration resumes, otherwise the strategy is triggered again.
-
Physical interaction for wall painting: For wall painting, two rigid sticks ending with a sponge are attached to the UAV. When wall drawing is selected, exploration is paused and velocity commands guide the UAV towards the selected wall. The approach requires the current state estimate and local map to remain sufficiently accurate for the manoeuvre. Anticipatory triggering initiates the action at the first degradation warning, whereas reactive triggering waits for temporal confirmation and may therefore initiate the approach with a more degraded estimate. An acceleration-based external force estimator [21], [22] continuously monitors the estimated external force using only the onboard IMU and control inputs, following the approach of [22] , where is a positive-definite diagonal gain matrix, is the system mass, is the body-frame acceleration from the IMU (already accounting for gravity), and is the total thrust. Contact is detected when the norm of the high-pass filtered external force exceeds a threshold (see [22, Sec. VI]). Upon contact confirmation, the velocity commands are interrupted, allowing the UAV to remain in contact with the wall and deposit a visible mark using the sponge. After a brief painting phase, the robot resumes exploration. The newly painted mark provides a fresh visual feature for the VIO, which is expected to recover reliable localization — closing the loop and allowing the mission to continue.
IV. RESULTS
The proposed framework has been validated both in simulation and on a real aerial platform and released online to support reproducibility and foster further research. The stack runs on ROS 2 Humble, with PX4 as the flight controller. At each step, the VIO mapping module (Section III-C) identifies free space from the OpenVINS landmarks. Within this free space, a random target pose is sampled. The navigation stack in [23] then generates a collision-free trajectory and commands the UAV to reach the target. During exploration,
Github repo: Code released upon paper acceptance.

Fig. 3. Simulated scenarios: a long corridor/tunnel, a sewer shaft, and an open indoor space with sparse obstacles.
the degradation metric continuously monitors VIO quality. If degradation is detected, the exploration is paused, the active marking strategy is triggered, and once the VIO recovers, exploration resumes.
A. Simulation Results and Analysis
We conduct an ablation study (our method through on-demand feature creation (ODFC) versus VIO baseline) across three simulated environments (see Fig. 3) selected to isolate the effectiveness of each strategy under specific conditions. In the open space, distant walls make ground deposition the natural choice; in the vertical sewer shaft, ground deposition is impractical, leaving wall drawing as the only viable strategy; in the corridor/tunnel, both strategies can be combined, providing a comprehensive test of the complete framework. In all scenarios, the degradation metric thresholds are fixed at and , while cruise speed (0.5, 1.0, and 3.0 m/s) and triggering mode — SUSP (anticipatory, at the first degradation warning) versus DEGR (reactive, after temporal confirmation) — are varied. We evaluated performance using the position RMSE (root mean square of the position error over the full trajectory), the maximum position error, and the final position error, all computed after synchronizing estimated and ground-truth positions in a common reference frame for each successful trial. In the Gazebo simulator, coloured patches are spawned in the environment to emulate the appearance of the artificial features, enabling controlled evaluation of the active marking strategies without hardware dependencies.
- Sewer Scenario: The sewer environment consists of a vertical cylindrical shaft with an inner diameter of 1.30 m and a depth of 6 m, extending along the world z-axis. The shaft is featureless and texture-poor, with uniform curved walls that provide no distinctive visual landmarks. Ground deposition is unsuitable for supporting localization along
TABLE I SEWER SCENARIO POSITION ERRORS [M].
| Configuration | Speed | RMSE | Max | Final | |
|---|---|---|---|---|---|
| Baseline VIO | 0.5 m/s | 0.701 | 1.277 | 0.977 | |
| 1.0 m/s | 0.550 | 1.780 | 1.780 | ||
| 3.0 m/s | 2.040 | 10.953 | 10.953 | ||
| ODFC | Anticipatory | 0.5 m/s | 0.397 | 0.472 | 0.421 |
| 1.0 m/s | 0.450 | 0.521 | 0.483 | ||
| 3.0 m/s | 0.476 | 0.569 | 0.558 | ||
| Reactive | 0.5 m/s | 0.437 | 0.626 | 0.444 | |
| 1.0 m/s | 0.499 | 0.563 | 0.560 | ||
| 3.0 m/s | 0.530 | 0.597 | 0.573 | ||
the vertical route, whereas nearby walls allow contact-based feature creation.
Table I compares baseline VIO and wall drawing at three cruise speeds under anticipatory and reactive triggering. Wall drawing reduced RMSE relative to the baseline in every tested condition. At 0.5 m/s, anticipatory triggering reduced RMSE from 0.701 to 0.397 m, corresponding to approximately 43%. The difference was larger at 3 m/s, where baseline RMSE reached 2.040 m and the maximum error exceeded 10 m, while anticipatory wall drawing yielded 0.476 m RMSE and a maximum error of 0.569 m.
Anticipatory triggering achieved lower RMSE than reactive triggering at all three speeds, although both improved on the baseline. These results support wall marking in confined vertical environments and suggest that initiating the marking manoeuvre before degradation is temporally confirmed can improve estimation performance.
- Indoor Open Space Scenario: The environment comprises a 20×10 m indoor area with sparse obstacles and moderate texture. Although natural features are present, their distribution and distance from the UAV can limit useful visual constraints. Reaching distant walls would require additional travel before feature creation; ground deposition is therefore selected as the active strategy. Table II reports the position errors for baseline VIO and ground deposition under both triggering modes. Baseline RMSE was 0.890 and 0.758 m at 0.5 and 1 m/s, respectively, with final errors exceeding 4.5 m in both cases. At 3 m/s, RMSE increased to 17.719 m, indicating severe estimation degradation in the reported trial. Ground deposition reduced all three reported error metrics relative to the baseline at every speed. Anticipatory triggering
TABLE II OPEN SPACE SCENARIO POSITION ERRORS [M].
| Configuration | Speed | RMSE | Max | Final | |
|---|---|---|---|---|---|
| Baseline VIO | 0.5 m/s | 0.890 | 4.623 | 4.623 | |
| 1.0 m/s | 0.758 | 4.552 | 4.552 | ||
| 3.0 m/s | 17.719 | 136.338 | 136.338 | ||
| ODFC | Anticipatory | 0.5 m/s | 0.106 | 0.218 | 0.135 |
| 1.0 m/s | 0.208 | 0.418 | 0.404 | ||
| 3.0 m/s | 0.173 | 0.385 | 0.095 | ||
| Reactive | 0.5 m/s | 0.234 | 0.370 | 0.369 | |
| 1.0 m/s | 0.125 | 0.249 | 0.124 | ||
| 3.0 m/s | 0.174 | 0.373 | 0.209 | ||
TABLE III CORRIDOR SCENARIO POSITION ERRORS [M].
| Configuration | Speed | RMSE | Max | Final | |
|---|---|---|---|---|---|
| Baseline VIO | 0.5 m/s | 0.557 | 1.266 | 0.766 | |
| 1.0 m/s | 0.620 | 1.365 | 0.926 | ||
| 3.0 m/s | 0.878 | 1.965 | 1.434 | ||
| ODFC – Ground Deposition | 0.5 m/s | 0.208 | 0.484 | 0.254 | |
| 1.0 m/s | 0.236 | 0.512 | 0.159 | ||
| 3.0 m/s | 0.398 | 1.303 | 0.848 | ||
| ODFC – Wall Drawing | 0.5 m/s | 0.184 | 0.442 | 0.191 | |
| 1.0 m/s | 0.158 | 0.326 | 0.231 | ||
| 3.0 m/s | 0.463 | 2.498 | 2.296 | ||
| ODFCWhole Framework | Anticipatory | 0.5 m/s | 0.064 | 0.146 | 0.089 |
| 1.0 m/s | 0.106 | 0.209 | 0.146 | ||
| 3.0 m/s | 0.218 | 0.417 | 0.384 | ||
| Reactive | 0.5 m/s | 0.288 | 0.723 | 0.511 | |
| 1.0 m/s | 0.177 | 0.335 | 0.284 | ||
| 3.0 m/s | 1.494 | 11.199 | 11.199 | ||
yielded 0.106 m RMSE at 0.5 m/s, approximately 88% below the baseline. However, its advantage over reactive triggering was not uniform: at 1 m/s, reactive triggering achieved lower RMSE (0.125 versus 0.208 m), whereas at 3 m/s the two modes produced similar values (0.174 and 0.173 m, respectively). Thus, ground deposition was effective throughout the tested speed range, while the relative benefit of anticipatory triggering depended on the operating condition.
- Corridor/Tunnel Scenario: The last scenario features a long (33 × 5 m), feature-degraded corridor in which both the floor and nearby walls are available for feature creation. This scenario allows the individual marking strategies to be compared with their combined use.
Table III reports the corresponding position errors, including anticipatory and reactive triggering for the complete framework. In the reported trials, baseline RMSE increased from 0.557 m at 0.5 m/s to 0.878 m at 3 m/s. Both individual strategies reduced RMSE at every speed, but neither consistently outperformed the other. Wall drawing achieved lower RMSE at 0.5 and 1 m/s, whereas ground deposition performed better at 3 m/s. The combined anticipatory configuration yielded the lowest RMSE at each speed, reaching 0.064, 0.106, and 0.218 m at 0.5, 1, and 3 m/s, respectively. At the highest speed, its maximum error was 0.417 m, compared with 11.199 m for the combined reactive configuration. This difference supports investigating early intervention, particularly when delayed marking must be executed using an already degraded estimate.
These comparisons describe the trials reported in Table III and do not establish uniform superiority across randomized missions. The following factorial campaign therefore evaluates the effects of velocity and strategy activation over repeated trials, distinguishing divergence probability from accuracy among non-divergent runs.
B. Statistical Analysis of Simulation Results
We conducted a 3 × 2 × 2 factorial simulation campaign in the corridor scenario, varying cruise speeds (v equal to
the three values already considered above), the activation of wall drawing (W = {1, 0}, two levels, yes or no), and ground deposition (G = {1, 0}, two levels, yes or no). Notice that (W, G) = (0, 0) corresponds to the Baseline VIO. We used the anticipatory trigger throughout, with 75 trials per condition and 900 runs overall. In each trial, the UAV explored the corridor by repeatedly sampling goals from the reconstructed free space described in Section III-C. A trial was considered successful when the exploration reached the goal at the end of the corridor within the 600 s time limit; otherwise, it terminated upon timeout. Randomness arose from target sampling and Gaussian sensor noise. Each simulation run used a seed initialized from the machine time, without deliberately reusing seeds across configurations.
Position RMSE was computed over each recorded trajectory. For statistical analysis, runs with RMSE above 1.5 m were classified as divergent using an empirical post-hoc threshold. We analysed the probability of exceeding this threshold and, separately, the RMSE of the remaining runs. This operational measure of estimation robustness is distinct from mission completion within the 600 s limit.
a) Robustness analysis.: The trials comprised 305 divergent and 595 convergent runs, corresponding to an overall divergence rate of 33.89%. The observed divergence rate ranged from 4% for (v, W, G) = (0.5, 1, 1) to 76% for (v, W, G) = (3, 0, 0). A full-factorial logistic regression was fitted with divergence as a binary response and velocity, wall drawing, and ground deposition as categorical predictors, including all interaction terms. Each model term was assessed through a likelihood-ratio test against the corresponding reduced nested model. All three main effects were significant: velocity v (χ²₂ = 33.05, p < 0.001), wall drawing W (χ¹₂ = 7.31, p = 0.0068), and ground deposition G (χ¹₂ = 10.05, p = 0.0015), whereas none of the two-way or three-way interactions were significant (p > 0.13). Post-hoc pairwise comparisons were performed on the marginal levels of each factor (pooled over the other two), with Holm correction.
For velocity, the odds of divergence were significantly higher at v = 1 m/s than at v = 0.5 m/s (odds ratio (OR) = 3.80, 95% confidence interval (CI): 2.59–5.59, p_Holm = 9.03 × 10⁻¹²) and significantly higher at v = 3 m/s than at v = 0.5 m/s (OR = 4.07, 95% CI: 2.77–5.99, p_Holm = 6.51 × 10⁻¹³), whereas v = 1 and v = 3 m/s did not differ significantly from each other (OR = 0.93, 95% CI: 0.68–1.29, p_Holm = 0.680). Wall drawing significantly reduced the marginal odds of divergence relative to its absence (OR = 0.37, 95% CI: 0.28–0.50, p_Holm = 2.53 × 10⁻¹¹), as did ground deposition (OR = 0.46, 95% CI: 0.35–0.61, p_Holm = 1.18 × 10⁻⁷).
Marginal comparisons showed higher divergence odds at v = 1 and v = 3 m/s than at v = 0.5 m/s, with no significant difference between v = 1 and v = 3 m/s. Enabling either marking strategy was associated with lower marginal odds of divergence.
b) Conditional accuracy analysis.: Conditional accuracy was evaluated on the 595 convergent trials only. Because the RMSE distributions were not assumed to be Gaussian and the numbers of convergent trials were unbalanced across conditions, the Aligned Rank Transform (ART) was used to assess the factorial effects. No significant main effects were found for velocity (, , ), wall drawing (, , ), or ground deposition (, , ). In contrast, both the velocity×wall interaction (, , ) and the velocity×wall×ground interaction (, , ) were significant. The significant three-way interaction indicates that the effect of velocity on conditional tracking accuracy depends on both wall and ground configuration; therefore, the velocity×wall interaction should not be interpreted independently of the ground condition.
The significant interactions were decomposed through simple-effect comparisons, conditioning each comparison on the remaining factors. Velocity levels were compared within each wall–ground configuration, while wall and ground levels were compared within each velocity–environment configuration. Pairwise comparisons used the Wilcoxon rank-sum test on the original convergent RMSE values, with Holm correction for multiple comparisons; the rank-biserial correlation () was used as the effect-size measure.
For velocity, significant differences were found at between and m/s (, ) and between and m/s (, ), at between and m/s (, ) and between and m/s (, ), and at between and m/s (, ). No velocity comparison was significant for . For wall drawing, a significant simple effect was found only at m/s and , where the median RMSE increased from 0.127 to 0.303 m (, ). Significant ground simple effects were observed at (, ), (, ), and (, ).
c) Discussion: The results distinguish two aspects of estimation performance: the probability of exceeding the divergence threshold and the accuracy of runs that remain below it. Lower cruise speed and active marking were associated with reduced divergence, with the lowest observed rate, 4%, occurring at . This supports combining the marking mechanisms at low speed and avoiding large estimation errors in the tested corridor.
Conditional accuracy showed a different pattern. At m/s, enabling both strategies yielded higher median RMSE than enabling either alone; with both enabled, m/s yielded lower conditional RMSE than m/s. Thus, neither lower speed nor additional marking mechanisms uniformly improved accuracy among non-divergent runs.
These comparisons concern different subsets of retained trials: a configuration with more divergent runs can still

Fig. 4. (Top) Experimental setup replicating the corridor scenario in Sec. IV-A.3. (Bottom) The UAV is equipped with two sponge end-effectors for wall drawing and a bottom-mounted, PWM-controlled box for releasing pebbles on demand.
show low RMSE among those that remain. Conditional RMSE alone therefore cannot rank overall performance or establish an inherent robustness–accuracy trade-off. The practical implication is to assess divergence probability first and conditional accuracy alongside it, rather than selecting a configuration from RMSE alone. These findings apply to the tested corridor and the adopted 1.5 m threshold; the factorial campaign evaluates anticipatory triggering and does not establish its statistical superiority over reactive triggering.
C. Experimental Validation
Real-world experiments were conducted in a mock-up feature-degraded indoor corridor (see Fig. 4), mimicking the setup described in Sec. IV-A.3. The corridor walls and floor were fully covered with white cloth, providing no exploitable natural visual features. Given the results in Sec. IV-A, we performed an ablation study comparing VIO Baseline versus our ODFC whole framework with Anticipatory triggering at a cruise speed of 0.5 m/s. Unlike the simulations, the experiments use OptiTrack feedback for flight control, while OpenVINS and the feature-creation logic run online. This choice follows a well-established practice in the evaluation of odometry algorithms, where the estimator under test runs in parallel to the control loop rather than being used as its feedback source [28]. This setup evaluates VIO under externally stabilized flight, while retaining the online perception–action loop that triggers feature creation.
The platform is a coaxial octacopter equipped with a Pixhawk 6C flight controller and two Intel RealSense T265 cameras (see Fig. 4). All processing was performed onboard on a LattePanda 3 Delta. Five runs were conducted for each configuration. Reported metrics are averaged across the five runs. For the baseline, the VIO accumulated an RMSE of 1.52 m, a maximum error of 2.79 m, and a final error of 2.5 m over the corridor. With the complete framework, the RMSE decreased to 0.99 m, with a maximum error of 1.79 m and a final error of 1.24 m. The average estimation error before feature deployment was 1.07 m and dropped to 0.56 m after deployment, corresponding to an average improvement of 47.6%. These results indicate reduced VIO error in the tested corridor under externally stabilized flight. The magnitude of the improvement differed from simulation, although the same software architecture was used. The present experiments do not isolate the sources of this discrepancy although we believe it lays in the sim-to-real gap and/or non-fine-tuned VIO.
V. CONCLUSIONS
This paper presented an active environment-modification framework that couples online VIO quality monitoring with ground marker deployment and contact-based wall marking. The approach supplements insufficient natural texture with visual cues created by the UAV, using cameras and an IMU for localization. Three simulated environments illustrated the use of the two mechanisms under different surface-accessibility conditions. A 900-run factorial campaign associated lower cruise speed and active marking with reduced divergence, while revealing configuration-dependent accuracy among non-divergent runs. These findings support evaluating both outcomes when selecting a marking configuration. Corridor experiments showed an approximately 35% reduction in mean per-run position RMSE under OptiTrack-based flight control, with VIO-driven marking decisions active online.
Future work will evaluate the complete framework with VIO feedback for flight control and investigate strategy selection that accounts for estimation quality, surface accessibility, and the time and material costs of each intervention.
ACKNOWLEDGMENT
ChatGPT (GPT-6 Astra) generated Figs. 1 and 2; Fig. 4 is instead a polished version of the authors' real pictures.
REFERENCES
[1] X. Ye et al., "A review of small uav navigation system based on multisource sensor fusion," IEEE Sensors Journal, vol. 23, no. 17, pp. 18926–18948, 2023. [2] Z. Fan et al., "LiDAR, IMU, and camera fusion for simultaneous localization and mapping: a systematic review," Artificial Intelligence Review, vol. 58, no. 6, p. 174, 2025. [3] H. Liu et al., "A survey of sensors based autonomous unmanned aerial vehicle (UAV) localization techniques," Complex & Intelligent Systems, vol. 11, no. 8, p. 371, 2025. [4] W. Wang et al., "Recent advances in slam for degraded environments: A review," IEEE Sensors Journal, vol. 25, no. 15, pp. 27898–27921, 2025. [5] J. M. González-Marín et al., "Navigating the underground: Tackling localization challenges for uavs in tunnels," in 2025 International Conference on Unmanned Aircraft Systems (ICUAS), 2025, pp. 832–838.
[6] M. A. Montes-Grova et al., "Dust-resilient autonomous navigation and mapping for uavs in gnsx-denied underground tunnels," in 2026 International Conference on Unmanned Aircraft Systems (ICUAS), 2026, pp. 259–264. [7] J. Zhang et al., "On degeneracy of optimization-based state estimation problems," in Proc. IEEE International Conference on Robotics and Automation (ICRA), 2016, pp. 809–816. [8] T. Qin et al., "Vins-mono: A robust and versatile monocular visual-inertial state estimator," IEEE Transactions on Robotics, vol. 34, no. 4, pp. 1004–1020, 2018. [9] K. Wang et al., "Uav-based simultaneous localization and mapping in outdoor environments: A systematic scoping review," Journal of Field Robotics, vol. 41, no. 5, pp. 1617–1642, 2024. [10] Y. Song et al., "A review of statistical modeling and inference methods for UAV airborne sensors: From state estimation to probabilistic uncertainty perception," Journal of Intelligent Autonomous Systems and Smart Factory Technology (JIASSFT), vol. 1, no. 6, pp. 60–71, 2025. [11] L. Bartolomei et al., "Semantic-aware active perception for uavs using deep reinforcement learning," in 2021 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS), 2021, pp. 3101–3108. [12] G. Costante et al., "Perception-aware path planning," 2017. [Online]. Available: https://arxiv.org/abs/1605.04151 [13] S. Lowry et al., "Visual place recognition: A survey," IEEE Transactions on Robotics, vol. 32, no. 1, pp. 1–19, 2016. [14] C. Masone et al., "A survey on deep visual place recognition," IEEE Access, vol. 9, pp. 19516–19547, 2021. [15] J. Wang et al., "Ulsm: Underground localization and semantic mapping with salient region loop closure under perceptually-degraded environment," in 2022 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS), 2022, pp. 1320–1327. [16] M. Kalaitzakis et al., "Fiducial markers for pose estimation," Journal of Intelligent & Robotic Systems, vol. 101, no. 4, p. 71, 2021. [17] L. Yang et al., "Lidar-inertial SLAM method integrated with visual QR codes for indoor mobile robots," Scientific Reports, vol. 16, no. 1, p. 4020, 2026. [18] Y. Li et al., "Iral: Robust and versatile uav localization using infrared vision and altitude sensor fusion," Measurement, vol. 242, p. 115917, 2025. [19] A. S. Vempati et al., "Paintcopter: An autonomous uav for spray painting on three-dimensional surfaces," IEEE Robotics and Automation Letters, vol. 3, no. 4, pp. 2862–2869, 2018. [20] M. Semenišin et al., "Optimizing uav spraying for sustainability: Different system spray drift control and adjuvant performance," Sustainability, vol. 17, no. 5, 2025. [21] F. Ruggiero et al., "Passivity-based control of vtol uavs with a momentum-based estimator of external wrench and unmodeled dynamics," Robotics and Autonomous Systems, vol. 72, pp. 139–151, 2015. [22] T. Tomić et al., "External wrench estimation, collision detection, and reflex reaction for flying robots," IEEE Transactions on Robotics, vol. 33, no. 6, pp. 1467–1482, 2017. [23] S. D'Angelo et al., "H-CoRE: A cooperative framework for heterogeneous multi-robot exploration and inspection," Drones, vol. 10, no. 4, 2026. [24] P. Geneva et al., "Openvins: A research platform for visual-inertial estimation," in 2020 IEEE International Conference on Robotics and Automation (ICRA), 2020, pp. 4666–4672. [25] T. Musil et al., "Monospheres: Large-scale monocular slam-based uav exploration through perception-coupled mapping and planning," IEEE Robotics and Automation Letters, vol. 11, no. 7, pp. 8391–8398, 2026. [26] G. P. Huang et al., "Observability-based rules for designing consistent EKF SLAM estimators," The International Journal of Robotics Research, vol. 29, no. 5, pp. 502–528, 2010. [27] V. Pritzl et al., "Adaptive estimation of uav altitude in complex indoor environments using degraded and time-delayed measurements with time-varying uncertainties," Robotics and Autonomous Systems, vol. 160, p. 104315, 2023. [28] G. Cioffi et al., "Learned inertial odometry for autonomous drone racing," IEEE Robotics and Automation Letters, vol. 8, no. 5, pp. 2684–2691, 2023.