LEVIATHANDocumentation

DOC 04PERCEPTION

Perception and computer vision

Beyond ground truth, LEVIATHAN includes perception algorithms and the means to evaluate them: classical and learned vision, sonar detection and tracking, camera–sonar association, and benchmarks with frozen, held-out splits. This page states what each component is and how far it has been demonstrated.

How these components are used

Perception algorithms run from LEVIATHAN's Python library and its benchmark harnesses. Their inputs are canonical sensor products: PerceptionFrames, sonar measurements and IMU and DVL measurements. They are evaluated against the ground truth described in Perception ground truth. They are not exposed as application panels or service endpoints, and no trained model weights ship with LEVIATHAN; the model definitions, training code and evaluators do.

Four kinds of perception work

Table 4.1 Perception-related capabilities by kind.
KindWhat it meansWhere
Ground-truth generationExact, simulation-derived answers: geometry, labels, motion, tracks, sonar contributorsPerception ground truth
Synthetic dataExports of that ground truth in native and common formatsSynthetic data and export
Evaluation toolingMetrics and harnesses that score any algorithm's output against ground truthThis page
AlgorithmsBaseline and learned methods that produce perception outputs from sensor dataThis page

Algorithms and their maturity

Each capability below is graded by the evidence behind it, all of it from simulated held-out data unless real data is named.

Table 4.2 Grades: Mature, a correct contract with independent cross-checks and characterised failures. Credible, held-out evidence with known limits. Partial, works in part with a key limit open. Baseline, exists and is minimally evaluated.
CapabilityMethodGrade
Camera geometryCanonical rays, projection and lens handling shared by every vision methodMature
Feature matchingClassical detectors and matchers, graded against surface correspondence; turbidity limits characterisedCredible
Two-view geometry, PnPEssential-matrix and pose estimation with explicit degeneracy and failure states. Planar seabed views are often refused as ambiguous; IMU rotation can resolve the ambiguityCredible
Visual odometryMonocular, feature-based, with keyframes and local bundle adjustment; scale-freePartial
Visual–inertial–DVL odometryLoosely coupled fusion of camera, IMU and DVL on moving-vehicle scenesPartial
Pose reliabilityDecides whether a visual pose estimate is trustworthy enough to aid the state estimatorMature (simulation)
DepthDense depth-model integration, learned monocular depth graded on structured scenes, metric scale anchored by DVL ranges on flat seabedPartial
Object detectionContrast-blob baseline; a learned Faster R-CNN fine-tuned on LEVIATHAN synthetic dataCredible (sim) Weak (real)
SegmentationSemantic (DeepLabV3) and instance (Mask R-CNN) models trained on synthetic dataCredible (sim) Weak (real)
Multi-object trackingIoU and Hungarian assignment, with an appearance re-identification variant; bounded by detection qualityPartial
Optical flowClassical baselines (DIS, Farnebäck) and RAFT, graded against motion ground truthCredible (sim)
Underwater restorationClassical baselines and a small learned U-Net that estimate the clean image from the underwater onePartial
Sonar detection and tracking2-D CFAR detection on the canonical sonar image, object and shadow extraction, multi-ping tracking on a moving vehicleCredible (sim)
Camera–sonar associationGeometric association of sonar detections with camera detections along the sonar's elevation arc, including asynchronous captures compensated for vehicle motionMature (simulation)
Runtime contractsA common result contract (ok, refused or failed, with timestamps and provenance), an algorithm registry and device managementPartial

Learned models record their provenance: the code version, the initial weights and their licence, and the training split. Restoration is not placed in front of flow or odometry, because its gains in image fidelity come with artefacts that harm motion estimation.

Evaluation tooling

Every evaluator scores outputs against simulation ground truth, and several are cross-checked against reference implementations.

Table 4.3 Perception evaluators.
TaskGround truth and metrics
DetectionBoxes from object-track observations; COCO-style AP and AR, cross-checked against pycocotools
SegmentationSemantic channel and track rasters; semantic and panoptic metrics
TrackingTrack identities from the simulation; CLEAR-MOT and IDF1, verified against py-motmetrics
Feature matchingSurface correspondence answered for arbitrary sub-pixel keypoints
Optical flowMotion ground truth with non-occluded and occluded regions
DepthRange and z-depth channels, with each model's declared output (metric, relative or inverse) respected
TrajectoriesAbsolute and relative trajectory error with SE(3) or Sim(3) alignment; monocular scale is reported, not claimed
Sonar detectionDetection truth from sonar contributors; cells without valid acoustics are excluded
RestorationThe clean sensor image from the same capture as the target

Benchmarks

Seeded scene families with designed occlusion, turbidity and seabed variation are split into training, validation and test groups. The test split was frozen before any tuning, and uncertainty is reported with a bootstrap over scene groups. Procedural seabed families (sand, mud, rock, mixed), parametric debris such as bottles, cans, tyres and pipes, surface biofouling cover and geometry-anchored textures supply the scene variation. Splits are assigned by a recorded, salted rule over scene groups, so a scene never appears in two splits.

Real data

Transfer to real imagery

Learned perception trained on LEVIATHAN's synthetic data has been evaluated on one real underwater dataset, the SeaClear marine-debris set, for 2-D detection. Zero-shot performance on real images is weak. After fine-tuning on a few hundred real images it is not worse than a COCO-pretrained detector, but that does not establish an advantage. Further real-data evaluation is blocked until fresh real test data is available. LEVIATHAN does not claim real-world perception performance.

Camera domain adapter

A separate post-processing step can apply consumer-camera automatic white balance to a canonical camera image, to resemble the colour handling of typical ROV cameras. It produces a new, labelled image. The canonical sensor image is never modified.