Automated optical monitoring of vessel draft represents a vital capability for maritime safety and environmental protection in congested ports and coastal waterways. Draft, defined as the vertical distance between the vessel waterline and the keel lowest point, provides an immediate physical indicator of loading condition and under-keel clearance. Excessive loading reduces clearance beneath the hull, sharply increasing the probability of grounding, bottom contact, or stability loss. Navigational incidents of this nature can inflict severe ecological harm by damaging fragile seabed habitats, resuspending contaminated sediment plumes, and releasing fuel oil or dangerous chemical cargo into coastal waters. Traditional draft monitoring relies either on manual visual inspections, which are easily compromised by waves, viewing angles, and darkness, or on vessel-mounted physical sensors that demand costly maintenance. To resolve these challenges, researchers Lei Yang, Fan Wen, and Huiqiang Wei developed an illumination-adaptive computer vision system that extracts reliable metric draft measurements from shore-based camera surveillance across shifting daylight and low-light scenes.
Operating optical surveillance in maritime settings poses severe difficulties due to extreme lighting variations, ranging from direct daytime sunlight to pitch darkness and surface glare. Under low ambient illumination, standard cameras capture noisy imagery with diminished contrast, faint scale markings, and poorly defined vessel-water boundaries, triggering frequent detection failures. Conversely, applying image enhancement unconditionally across all incoming frames introduces severe distortions into normal-light scenes, including color shifts, edge artifacts, over-amplification of noise, and computational latency. To circumvent these problems, the authors introduced an illumination-state classification module that adaptively routes imagery prior to visual parsing. The classifier utilizes a lightweight ResNet visual encoder coupled with a projection head featuring linear transformation, layer normalization, ReLU activation, and dropout to construct a 324-dimensional embedding vector. Comparing this embedding against two learnable prototype descriptors for normal and low light with a 0.5 decision threshold achieved perfect classification across all test frames, sending daytime images directly to downstream recognition while routing degraded captures to low-light restoration.
Images categorized as low-light pass directly into a dual-domain enhancement network based on DDNet, engineered to recover fine geometric structures rather than merely improving subjective aesthetic brightness. Draft mark recognition depends on sharp high-frequency edges along numeral contours and the waterline, which standard illumination enhancers often blur. The module first derives a structural gradient prior by smoothing the grayscale input with a Gaussian filter and applying a Laplacian operator to capture second-order gradient responses. Concatenating this gradient map with the original RGB image creates a four-channel input tensor encoding color, texture, and structural boundaries. Inside the network, dual-branch encoder-decoders decouple color correction from gradient restoration: a coarse enhancement stream rebalances luminance and contrast, while a gradient branch restores attenuated edge boundaries. A fusion module with residual attention units reconstructs the final image in residual form, sharpening character strokes while suppressing water surface reflections and hull stains. The module is optimized through a joint loss balancing Laplacian gradient consistency, coarse color fidelity, and structural similarity.
After conditional enhancement, normalized imagery enters a multi-task visual parsing backend adapted from VDDNet to extract scale characters and the waterline concurrently. Resizing inputs to 416-by-416 pixels, the architecture utilizes a shared ResNet-50 backbone extracting hierarchical feature representations across stages C2 through C5, eliminating redundant computation between tasks. Lower feature levels retain high spatial resolution essential for localizing small numerals and waterlines, while deeper layers supply rich semantic context to differentiate draft markings from hull dirt. The character detection branch employs a YOLOX-style path-aggregation feature pyramid network, fusing multiscale features into P3, P4, and P5 feature maps. High-resolution P3 features specialize in detecting compact scale numerals, whereas P4 and P5 provide contextual robustness against occlusion, paint peeling, and biological fouling. Dedicated detection heads predict bounding box coordinates, confidence scores, and class categories for numerals zero, one, two, three, four, six, and eight, alongside the metric unit character M, supervised using generalized intersection-over-union, confidence, and cross-entropy losses.
Simultaneously, the water-region segmentation branch extracts the precise vessel-water boundary across the hull surface. Building from the deepest semantic feature C5, a U-Net progressive upsampling decoder merges multi-scale representations with stages C4, C3, C2, and shallow stem features. To prevent wave crests, specular reflections, and wake disturbances from fragmenting the detected boundary, spatial and channel attention mechanisms are integrated into each skip connection. Channel attention screens feature channels pertinent to the water surface, while spatial attention highlights localized edge transitions along the hull boundary. The segmentation head produces a binary pixel mask separating water from the hull and background. Training is supervised by a compound objective uniting pixel-wise cross-entropy, Dice loss to counteract severe class imbalance from the narrow waterline zone, and mean absolute vertical distance loss. This vertical distance penalty minimizes vertical discrepancies between predicted boundaries and true waterlines. Dynamic learnable homoscedastic noise parameters automatically balance the detection and segmentation loss terms throughout 300 epochs of AdamW optimization.
Raw visual detections alone cannot guarantee a dependable draft reading because visual noise, marine fouling, and paint stains frequently cause false positives or omitted numerals. The framework therefore structures character candidates into a weighted directed graph following VDDNet scale-reconstruction principles. Candidate boxes first undergo cross-class non-maximum suppression to purge duplicate proposals, after which horizontally adjacent characters matching strict distance and overlap rules merge into unified scale nodes. A directed graph is established where nodes represent scale candidates and directed edges link strictly from upper to lower nodes according to vertical ordering and spatial distance limits. Edge weights quantify two physical constraints: distance consistency, which ensures pixel distances match true numerical intervals between markings, and directional consistency, which penalizes angular deviations from the vertical axis. Edges violating standard numerical step intervals incur substantial mathematical penalties, and weights are scaled by a tenfold factor. Dynamic programming traverses the graph to extract the globally optimal path, filtering isolated false detections and reconstructing missing scale numbers.
Once the scale sequence is reconstructed, the system converts spatial image coordinates into an absolute metric draft measurement in meters. When at least two valid scale readings form an adjacent pair, the algorithm applies a multi-scale local interpolation formulation to the pair nearest the waterline. This formulation calculates draft by scaling the pixel distance between the waterline and the nearest mark against inter-mark pixel spacing. Crucially, the calculation includes an explicit 0.05-meter offset, representing half of one decimeter, to convert the center-based geometric reference of detected bounding boxes to the true physical draft datum, preventing a systematic half-interval bias. If visual degradation leaves only one valid scale mark visible, a fallback single-scale formulation calculates draft using the standard 0.1-meter physical height of marine scale characters. When severe obscuration prevents mark detection or waterline segmentation entirely, the system registers an explicit failed reading rather than generating a synthetic numerical value, ensuring unverified or erroneous estimates do not corrupt operational vessel monitoring records.
The research team validated the framework using surveillance footage captured from a high-definition camera installed on a bridge over an inland waterway in Zhuji, Shaoxing, China. While gathered in an inland channel, the imagery exhibits the complete spectrum of optical degradations encountered in coastal ports, including wake turbulence, specular glare, vessel pose shifts, and hull contamination. The dataset contains 2,000 daytime normal-light images with visible draft gauges, partitioned into training, validation, and testing subsets according to a 7:2:1 ratio. To evaluate illumination robustness, researchers created synthetic low-light counterparts for every image before data splitting, yielding a balanced held-out test set of 200 normal-light and 200 low-light frames. Synthetic degradation applied severity coefficients from 0.1 to 0.5 using random seed 42 to govern gamma adjustments, negative brightness shifts, contrast reduction, saturation drops, and Gaussian noise. The controlled evaluation evaluated performance across mild degradation comprising 400 images, moderate degradation covering 200 images, and severe degradation spanning 400 images, isolating the specific influence of illumination loss on measurement fidelity.
Benchmarking on the 400 held-out test images confirmed that conditional routing delivers high measurement accuracy while avoiding degradation on normal-light frames. Without enhancement, the Direct VDDNet baseline achieved a normal-light mean absolute error of 0.24 meters, but low-light error climbed to 0.51 meters, yielding a full-test error of 0.37 meters, a root mean square error of 0.65 meters, and 66 failed readings. Indiscriminate enhancement across all images proved counterproductive: CLAHE drove normal-light error to 0.70 meters, LIME raised it to 0.38 meters, and Zero-DCE produced an overall error of 0.55 meters. Even applying DDNet to all images degraded normal-light accuracy to 0.37 meters. In contrast, the proposed conditional system maintained the 0.24-meter normal-light accuracy while reducing low-light error to 0.22 meters. This lowered full-test mean absolute error to 0.23 meters, representing a 36.24 percent improvement over Direct VDDNet and a 22.11 percent improvement over blanket DDNet processing, while lowering root mean square error to 0.45 meters and reducing failed readings to 20.
Component ablation demonstrated that removing the gradient branch raised mean absolute error to 0.32 meters and root mean square error to 0.65 meters, proving that gradient guidance preserves essential structural edges. Disabling the directed graph increased error to 0.37 meters and root mean square error to 0.74 meters, highlighting the graph necessity for physical consistency. System throughput evaluated on an Intel Core i5-14600KF processor and an NVIDIA GeForce RTX 5060 Ti graphics card showed that bypassing graph post-processing accelerated throughput from 4.68 to 14.21 frames per second, identifying graph search as the primary computational bottleneck. Nevertheless, 4.68 frames per second comfortably supports periodic or event-triggered draft monitoring during slow vessel transit. The authors emphasized operational limitations, noting the dataset relied on inland waterway footage and synthetic low-light degradation. Practical maritime deployment will require testing against real coastal nighttime imagery, heavy fog, waves, and tidal fluctuations, alongside integration with automated identification systems, bathymetric surveys, and harbor risk-management infrastructure.
Subject of Research: Illumination-adaptive computer vision for vessel draft mark recognition and metric draft measurement
Article Title: AI-enabled illumination-adaptive vessel draft mark recognition and draft measurement for sustainable ocean and coastal monitoring
Article References: Yang, L., Wen, F., & Wei, H. (2026). AI-enabled illumination-adaptive vessel draft mark recognition and draft measurement for sustainable ocean and coastal monitoring. Frontiers in Marine Science, 13, Article 1930771. https://doi.org/10.3389/fmars.2026.1930771
Image Credits: AI Generated
DOI: 10.3389/fmars.2026.1930771
Keywords: vessel draft measurement, draft mark recognition, low-light image enhancement, conditional routing, dual-domain enhancement, Laplacian gradient consistency, water-region segmentation, multi-task visual parsing, weighted directed graph, under-keel clearance, maritime surveillance, VDDNet architecture, ResNet-50 feature extractor, coastal waterway safety, dynamic programming sequence reconstruction, mean absolute vertical distance loss, mean absolute error, port traffic monitoring
Cite Scienmag News
Violet Maxwell. (November 24, 2026). Adaptive Vision System Cuts Vessel Draft Measurement Error Under Low Light. Scienmag. https://scienmag.com/adaptive-vision-system-cuts-vessel-draft-measurement-error-under-low-light/
Violet Maxwell. "Adaptive Vision System Cuts Vessel Draft Measurement Error Under Low Light." Scienmag, 24 November 2026, https://scienmag.com/adaptive-vision-system-cuts-vessel-draft-measurement-error-under-low-light/. Accessed 24 November 2026.
Violet Maxwell. "Adaptive Vision System Cuts Vessel Draft Measurement Error Under Low Light." Scienmag. November 24, 2026. https://scienmag.com/adaptive-vision-system-cuts-vessel-draft-measurement-error-under-low-light/








