
Traffic accident forensics faces a severe operational dilemma: every minute of delay in response increases the risk to the lives of victims trapped on the road, while slow clearance of traffic causes congestion and new accidents. The traditional process depends on teams physically traveling to the scene and on manual visual inspection, which is subject to differences in interpretation and bureaucratic delays. Manually operated drones do not solve the problem at scale either: they require professional pilots on constant standby, suffer from flight instability over obstacles, and produce loose photos that, without a chain of custody, are easily contested in litigation.
At CQCS Inovação 2026, Tech for Humans presented a technical solution to eliminate these bottlenecks: a 100% autonomous aerial inspection architecture, built on the ROS 2 robotics middleware and integrated with the Tech4AI cognitive platform. The live demonstration proved the feasibility of carrying out the complete forensic mission without a human pilot, from takeoff and scene search through visual-servoing framing, 14 MP forensic photo capture, and millimeter-precision landing on a totem, delivering the structured technical report in real time.
This article summarizes the technical study Autonomous Aerial Accident Inspection: Robotic Architecture and Forensic Agent for Claims on ROS 2. The key differentiator of the approach is cognitive decoupling: instead of allowing artificial intelligence models to write free-form reports or issue diagnoses, computer vision operates exclusively under a strict, rigid data contract at temperature zero, limited to filling in a closed visual taxonomy of vehicles, victims, and hazards. All severity classification follows auditable deterministic rules based on the established Manchester Triage, ensuring that no rescue decision depends on probabilistic outputs.
The system's maturity was validated in an experimental campaign of 60 complete autonomous flights over real 1:1 scale vehicle collisions, both indoors and outdoors in windy conditions. The trials recorded a median landing radial error of 0.000 m (sub-centimeter) and showed that cloud-based forensic processing takes 15 to 20 seconds: the complete report, digitally signed with HMAC-SHA256, is available at the ground station seconds after the aircraft touches down.
Context and Operational Challenge
Vehicle accident forensics requires speed to guide emergency response and millimeter precision to reconstruct the dynamics of the event. However, automating this task with multirotor aircraft imposes severe engineering constraints:
Odometric drift and terrain height differences: Onboard visual and inertial odometry accumulates integration error over the course of the flight. When flying over obstacles, steps, and physical height changes, conventional sensors suffer abrupt reading jumps, causing dangerous altitude oscillations.
Dependence on manual piloting: Commercial drone systems rely on human operators on site to fly, frame the scene, and recover the equipment, which rules out rapid-response operations.
Weak evidentiary value of isolated images: Standalone aerial photographs, lacking audited georeferenced metadata, synchronized UTC timestamps, and cryptographic binding, are easily contested in litigation and claims audits.
Hallucination in artificial intelligence models: Delegating the assessment of an accident directly to generative vision-language models (VLMs) in free text introduces unacceptable stochasticity: models may hallucinate nonexistent structural damage, invent license plate characters, or issue clinical judgments with no factual basis.
To overcome these barriers, the proposed system unifies deterministic kinematic control of the aircraft with forensic intelligence based on rigid rules.
The Five-Stage Mission Architecture
The autonomous flight is orchestrated as a sequential state machine implemented on the ROS 2 middleware, structured in five deterministic stages.

Stage 1: Calibration, Takeoff, and Stabilization
The mission begins on the ground with safety interlocks: battery charge check (minimum of 20%), inertial leveling (Flat Trim) to cancel accelerometer biases, and a robust estimate of the ground plane (z₀) using the median absolute deviation (MAD) over sonar readings. The climb to the operational cruise altitude (1.25 to 1.35 m) is driven by a jerk-limited acceleration ramp (maximum speed of 0.25 m/s, acceleration of 0.30 m/s², and jerk of 1.20 m/s³), combined with a first-order linear predictor (τ = 0.35 s) that anticipates braking and eliminates abrupt overshoot.
Stage 2: Lateral Sweep and Scene Search
The aircraft performs a lateral translation at constant cruise speed (0.04 normalized, approximately 0.35 m/s), keeping longitudinal advance at zero through a cross-axis holder to preserve the object's scale in the image. The front camera remains tilted at -20°. Accident detection uses the YOLOv8n model with local inference, requiring a minimum confidence of 0.50 sustained over three consecutive frames as a temporal filter against false positives.
Stage 3: Visual Centering (IBVS)
Once the target is confirmed, the system stops the sweep and engages Image-Based Visual Servoing (IBVS). The control law acts directly on the horizontal error in the image plane, with no need for three-dimensional pose reconstruction. Convergence is evaluated by a centering gate with a 35-pixel floor (equivalent to 5% of the image width, or 42.8 pixels at 856×480 resolution). After four consecutive cycles within the gate, the kinematics are locked into a stationary hover (horizontal speed below 0.03 m/s), and the sigma-delta velocity modulator is reset to prevent residual pulses to the motors.
Stage 4: Framing, Stillness, and Forensic Recording
The aircraft stays in absolute hover, and the gimbal adjusts its tilt to approximately -69°. This geometry ensures that the optical axis meets the ground 0.60 m ahead of the fuselage, framing the vehicle and the victims in 3D perspective without the drone's shadow falling over the evidence. Photo capture is released only after stillness is validated by a settling detector over a 1 s sliding window (mean speed ≤ 0.03 m/s, position dispersion σ ≤ 0.04 m, and residual commanded vertical speed ≤ 0.02). The shutter fires the raw 14 MP photo (4096×3072) and saves the unannotated video frame, accompanied by a JSON sidecar with WGS-84 telemetry and a SHA-256 hash.
Stage 5: Closed-Loop Return and Precision Landing
After capture, the camera is tilted to -70° and the aircraft starts its return to base (RTL) on a reverse trajectory with a jerk-limited profile. The landing reference is a 20 cm ArUco fiducial marker (DICT_5X5_1000, ID 8) placed at the launch point. The relative pose in 6 degrees of freedom is solved via solvePnP (IPPE_SQUARE method). The descent follows a three-phase state machine (ALIGN, DESCEND, and COMMIT). Below 0.40 m of height and with a radial error under 0.05 m, the landing decision is locked in COMMIT, leading to touchdown with redundant confirmation by stagnation and odometric settling.
Cognitive Decoupling: Where AI Operates and Where Rules Govern
The central differentiator of the integration with the Tech4AI Forensic Agent is the strict decoupling between observing the scene and making the forensic decision.

AI only describes: The raw photograph is sent to a dedicated vision-language model (VLM), operating at temperature zero under a structured, closed schema. The model is prevented from writing free-form reports or issuing diagnoses; its role is limited to filling in a closed taxonomy:
Framing quality (adequate, obstructed, or low visibility);
Vehicles involved (type, spatial orientation: upright, tipped over, or rolled over; damage severity and cabin integrity);
People identified (location on the ground or in the cabin, apparent responsiveness);
Environmental hazards on the road (fire, smoke, fuel leak, blocked lane, and debris).
Rules decide severity: Severity classification follows the deterministic worst-case rule (G = max g(e)), mapped directly to the established Manchester Triage:
CRITICAL (Red / Maximum Priority): Victim trapped in wreckage;
SEVERE (Orange / Imminent Risk): Victim motionless on the ground, severe mechanical damage, active fire, or fuel leak;
MODERATE (Yellow / Care Required): Conscious injured victim or moderate damage;
MINOR (Green / Damage Without Victims): Minor damage, with or without conscious and unharmed people (a person standing and unharmed does not count as a victim in triage).
Automatic sizing of emergency response: Explicit rules format the technical dispatch messages (limited to 600 characters) with WGS-84 coordinates and Manchester class for SAMU (192, Brazil's emergency medical service), the Military Police (COPOM 190), and the tow truck service (0800).
Digital chain of custody: The result is consolidated into a self-contained HTML report, with no external dependencies, with the original image embedded in Base64, auditable by SHA-256 hash and authenticated by an HMAC-SHA256 signature via reverse webhook.
Experimental Field Validation
The system's maturity was certified in two stages: first on an instrumented test bench with ROS 2 domain isolation (ROS_DOMAIN_ID=77 and 14), and then in a field campaign of 60 complete autonomous flights.
Real Trial Setup
Environments: 30 flights outdoors and 30 flights indoors, with identical repeatability.
1:1 scenarios: Each trial reproduced real collisions with actual motorcycles lying on the ground and volunteers simulating injured or unharmed victims.
Operating platforms: Takeoffs and landings performed both from the ground and from elevated platforms (1.0 m tall totem).
Legal compliance: Parrot Bebop 2 aircraft registered in ANAC's SISANT (PP-899627397, Class 3, RBAC-E No. 94), covered by RETA insurance, with strict preservation of privacy and personal data protection (LGPD).
Consolidated Performance and Metrics
Campaign of 60 complete autonomous flights with the Parrot Bebop 2 (30 indoor, 30 outdoor with real wind).
Metric | Samples (n) | Min | Median | 90th percentile (p90) | Max | Unit |
|---|---|---|---|---|---|---|
Vertical deficit closed during climb | 29 | 0.31 | 0.45 | 0.47 | 0.48 | m |
Climb overshoot | 29 | 0.024 | 0.050 | 0.100 | 0.271 | m |
Altitude divergence in hover | 514 | 0.000 | 0.036 | 0.130 | 0.556 | m |
Flight command cadence (p95) | 595 | 0.0 | 76.0 | 93.4 | 126.3 | ms |
Radial error at landing gate | 5 | 0.132 | 0.140 | 0.144 | 0.144 | m |
Radial error at descent COMMIT | 24 | 0.000 | 0.000 | 0.173 | 0.222 | m |
Residual vertical height at touchdown | 24 | -0.140 | +0.010 | +0.140 | +0.150 | m |
Experimental highlight: the median error at commit was 0.000 m (under 1 cm), exceeding ANAC requirements and ensuring safe landing on the totem.
Key Results
Sub-centimeter precision landing: At the COMMIT moment of the final descent, the median radial error was 0.000 m, with a p90 of 0.173 m. The vertical height at touchdown differed from the initial reference by only +0.010 m (1.0 cm), and contact confirmation reached 100% accuracy.
Stability over height changes: The identification of spurious jumps in the integrated odometry when crossing platform edges led to the adoption of a barometric estimator referenced to the launch point, eliminating oscillations when crossing 1.0 m steps.
Operational parallelism: Cloud-based cognitive processing took between 15 and 20 seconds. Because dispatch is fully asynchronous, the aircraft started its return and landing immediately after the photo, and the finished forensic report was available at the ground station seconds after touchdown.
The Differentiator of the Approach
The project consolidates three principles that set the solution apart from conventional market initiatives:
Real autonomy vs. assisted piloting: The operator does not fly; they supervise progress through a progress ring with verification milestones, abort controls, and a spoken Virtual Copilot with 0.3 ms latency for cached messages.
Forensic determinism vs. black-box AI: In claims litigation and forensic audits, subjectivity is inadmissible. By separating visual extraction from the logical decision tree, every finding in the report can be formally audited.
Zero waiting time: Evidence is generated in the air and the report is processed during the physical return, enabling immediate dispatch of technical rescue and towing resources.
Conclusion
The presentation of the system at CQCS Inovação 2026 marked the maturity of a technology developed to convert critical response minutes into structured data. The 60 experimental flights showed that the integration of kinematic robotics on ROS 2 with forensic intelligence on the Tech4AI platform delivers a safe, repeatable, and legally grounded pipeline.
The full study, with the detailed mathematical modeling of the controllers, the estimator formulation, and exhaustive data from the experimental campaign, is available for download.

João Victor Moreira
R&D Intern at Tech For Humans and undergraduate student pursuing a degree in Electrical Engineering at the Federal University of Itajubá. Works in applied research in artificial intelligence and robotics, exploring new automation architectures and continuous field validation. Contributes to improving software development practices and advancing autonomous technologies integrated into the Tech4AI ecosystem.

