A visual-acoustic-based three-dimensional modeling and path planning method and system
By combining visual and acoustic methods, the problems of accuracy in 3D modeling and safety in path planning in underwater environments were solved, and high-precision 3D semantic map construction and safe operation path generation were achieved.
Patent Information
- Application Number
- CN202611655162.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-26
- Publication Date
- 2026-11-27
AI Technical Summary
Existing technologies suffer from problems such as water turbidity interference, structured light scattering failure, insufficient single acoustic accuracy, and lack of semantic information in underwater environments, resulting in low accuracy of 3D modeling and unsafe path planning.
A combined visual-acoustic approach is adopted to generate candidate observation data through time alignment and joint calibration of multi-source observation data. The confidence scores of visual, structured light and acoustic data are calculated to generate an availability mask, determine the dominant mode for data fusion, construct a three-dimensional semantic map and generate a task path.
It improves the accuracy and safety of 3D modeling in underwater environments, effectively distinguishes between cleanable surfaces and hazardous structures, and generates reliable operation paths.
Smart Images

Figure CN123175249A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of computer graphics technology, and in particular to a method and system for 3D modeling and path planning based on vision-sound waves. Background Technology
[0002] Current pool cleaning robots need to continuously identify environmental structures underwater, such as the pool bottom, pool walls, slopes, steps, ladders, drains, and inlets / outlets, and generate a feasible coverage path accordingly. As pool cleaning robots develop towards autonomy, full coverage, and high safety, users have increasingly higher requirements for the robots' environmental perception capabilities and operational safety in environments with fluctuating water turbidity, changes in lighting, interference from suspended particles, and irregular structures.
[0003] Existing 3D modeling solutions typically include vision-driven solutions, acoustic-driven solutions, and multi-source stitching solutions.
[0004] However, existing technologies have the following problems: First, water turbidity interferes with visual features. Suspended particles, chemical additives, algae, temperature stratification, strong reflections, shadows, and low-texture surfaces in the underwater environment can reduce visual features or cause mismatches. Second, structured light scattering fails. Underwater, structured light is also affected by backscattering and beam broadening, resulting in depth jumps, outliers, and holes. Third, single-point acoustic accuracy is insufficient. Sonar can provide distance information when vision degrades, but its angular resolution is usually lower than that of vision and structured light. Single-point sonar can only form distance constraints along the direction of the sound beam. First, it cannot directly provide unique three-dimensional coordinates, and cannot depict fine structures such as steps and escalators. If visual points, structured light points, and acoustic measurements are directly spliced together, differences in sampling time, coordinate system, field of view, and resolution will form pseudo-correspondences. Low-quality observations may also cover high-quality observations due to their large number. Second, it lacks semantic information. The point cloud or grid map output by existing methods is raw geometric information data. Robots cannot directly distinguish between cleanable surfaces and dangerous structures such as escalators, floor drains, and water inlets and outlets, nor can they involve map holes and observation uncertainties in path decision-making. Summary of the Invention
[0005] This invention provides a three-dimensional modeling and path planning method and system based on vision-sound waves, aiming to solve the problems mentioned in the background art, such as water turbidity interference, structured light scattering failure, insufficient single acoustic accuracy, and lack of semantic information.
[0006] This invention provides a vision-sound wave-based 3D modeling and path planning method, comprising:
[0007] Acquire multi-source observation data from visual cameras, structured light projectors, and sonar, and generate candidate observation data based on joint calibration parameters after time alignment;
[0008] Based on the evaluation metrics of image features, structured light depth, and acoustic echo of the multi-source observation data, visual confidence, structured light confidence, and acoustic confidence are calculated respectively, and an availability mask corresponding to the multi-source observation data is generated.
[0009] The dominant mode is determined based on the visual confidence, structured light confidence, and acoustic confidence. The candidate observation data are then fused based on the availability mask and each confidence level to obtain continuous frame fusion points carrying three-dimensional coordinates, fusion confidence, and fusion point position deviation degree representing position error.
[0010] The pose is estimated based on the fusion points of the continuous frames, and a sub-map is extracted. The three-dimensional coordinates, fusion confidence, color components of image features corresponding to candidate observation data, and intensity components of acoustic echoes in the sub-map are input into the three-dimensional reconstruction network, and the object occupancy probability of each voxel geometry and the semantic category probability of each environment category are output.
[0011] Based on the voxel geometry of the sub-map, the predicted category corresponding to the semantic category probability is verified, the category and category confidence value are determined, and the occupancy probability, category and geometric information are recorded according to the voxel position to form a three-dimensional semantic map.
[0012] Based on the occupancy probability, category, and geometric information of the three-dimensional semantic map, accessible areas and restricted areas are divided. Category information is mapped to semantic risk. The fusion confidence and fusion point position deviation are combined to obtain a deviation map. The path cost of the planned nodes is determined, a cost map is constructed, and the operation path is generated.
[0013] The present invention provides a vision-sound wave-based 3D modeling and path planning system, comprising: a synchronous acquisition module, a calibration and coordinate transformation module, a quality assessment module, an association and fusion module, a pose estimation and multi-frame registration module, a 3D reconstruction network module, a semantic rule verification module, and a path planning module;
[0014] The synchronous acquisition module is used to acquire visual observation data, structured light observation data, and acoustic observation data, and to perform time alignment.
[0015] The calibration and coordinate transformation module is used to generate candidate observation data in the same coordinate system based on the joint calibration parameters.
[0016] The quality assessment module is used to calculate visual, structured light, and acoustic confidence scores based on evaluation metrics such as image features, structured light depth, and acoustic echo, and to generate an availability mask indicating whether the observation is usable.
[0017] The association and fusion module is used to perform cross-modal spatial association on candidate observation data to form association groups on the same physical surface. The dominant mode is determined based on visual confidence and the validity of acoustic observation data. The available observations are indicated by the source participation rules of the dominant mode and the mask in each confidence group. The fusion point, fusion confidence, and fusion point position deviation degree representing position error are obtained.
[0018] The pose estimation and multi-frame registration module is used to estimate the pose based on the fusion points of consecutive frames and accumulate them to form a sub-map;
[0019] The 3D reconstruction network module is used to input the 3D coordinates, fusion confidence, and the corresponding color and echo intensity of the observation in the sub-map into the 3D reconstruction network, and output the object occupancy probability of each voxel geometry and the semantic category probability of each environment category.
[0020] The semantic rule verification module is used to verify the predicted category corresponding to the semantic category probability based on the voxel geometry of the sub-map, determine the category and category confidence value, and record the occupancy probability, category, category confidence value and geometric information according to the voxel position to form a three-dimensional semantic map.
[0021] The path planning module is used to divide the accessible area and the restricted area according to the occupancy, category and geometric information of the three-dimensional semantic map, map the category information into semantic risk, combine the deviation map obtained by the propagation of fusion confidence and fusion point position deviation, determine the path cost of the planning node, construct the cost map and generate the operation path.
[0022] The present invention also provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the vision-sound wave-based three-dimensional modeling and path planning method described in any of the preceding claims.
[0023] The present invention has the following beneficial effects:
[0024] 1. By collecting multi-source observation data under a unified time reference and transforming it to the same coordinate system according to underwater joint calibration parameters, visual confidence, structured light confidence, and acoustic confidence are generated from image feature quality, structured light depth quality, and acoustic echo quality, respectively. Availability masks for each observation are also generated, enabling direct comparison of observations from visual cameras, structured light projectors, and sonar in time and space. Observations with insufficient quality, those that are outdated, or whose sources are invalid are identified before entering the fusion process, thereby improving the consistency of observations participating in subsequent processing in terms of time reference, coordinate reference, and reliability.
[0025] 2. By determining the visual dominant mode, collaborative fusion mode, or acoustic dominant mode based on visual confidence, and then generating fusion points and their uncertainties based on availability masks and various confidence levels, the observations participating in the fusion are limited to valid observations with valid physical correspondences. This avoids the spurious correspondences formed by directly splicing multi-source observations and allows geometric continuity to be maintained with the help of acoustic observation data even when visual degradation occurs. At the same time, the generated fusion points have quantifiable uncertainties, providing a reliable basis for subsequent mapping and path decision-making.
[0026] 3. By performing pose estimation and sub-map accumulation on fusion points of consecutive frames, and inputting fusion points with 3D coordinates, fusion confidence, color information, and echo intensity into a lightweight 3D reconstruction network to obtain object occupancy probability and semantic category probability, and verifying the semantic category probability based on voxel geometry, a semantic cost map containing reachable areas, restricted areas, and map deviation is constructed. Based on the semantic cost map, the underwater robot's operation path is generated, expanding the map from geometric data to a drivability description with semantics and uncertainty. This enables the robot to generate an operation path while distinguishing between reachable and restricted areas and incorporating map deviation into the cost. Furthermore, since the network used is a lightweight 3D reconstruction network, this 3D reconstruction and semantic acquisition process can be run online on a resource-constrained underwater robot. Attached Figure Description
[0027] Figure 1 This is a flowchart of the main process of a vision-sound wave-based 3D modeling and path planning method and system, which is an embodiment of one of the methods.
[0028] Figure 2 This is a schematic diagram of the system modules of a vision-sound wave-based 3D modeling and path planning method and system, which is an embodiment of an example. Detailed Implementation
[0029] Embodiments of the present invention are described in detail below, with examples of embodiments shown in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and should not be construed as limiting the present invention. Furthermore, reference numerals and / or reference letters may be repeated in different examples of the present invention; such repetition is for the purpose of simplification and clarity, and does not in itself indicate the relationship between the various embodiments and / or arrangements discussed.
[0030] like Figure 1 As shown, the present invention provides a 3D modeling and path planning method based on vision-sound waves, comprising:
[0031] S1: Acquire multi-source observation data from visual cameras, structured light projectors, and sonars, and generate candidate observation data based on joint calibration parameters after time alignment;
[0032] S2: Based on the image features, structured light depth, and acoustic echo evaluation metrics of the multi-source observation data, calculate the visual confidence, structured light confidence, and acoustic confidence respectively, and generate the availability mask corresponding to the multi-source observation data.
[0033] S3: Determine the dominant mode based on the visual confidence, structured light confidence and acoustic confidence, and fuse the candidate observation data based on the availability mask and each confidence to obtain continuous frame fusion points carrying three-dimensional coordinates, fusion confidence and fusion point position deviation degree representing position error;
[0034] S4: Estimate the pose based on the fusion points of the continuous frames, extract the sub-map, input the three-dimensional coordinates, fusion confidence and color components of the image features corresponding to the candidate observation data and intensity components of the acoustic echo in the sub-map into the three-dimensional reconstruction network, and output the object occupancy probability of each voxel geometry and the semantic category probability of each environment category.
[0035] S5: Verify the predicted category corresponding to the semantic category probability based on the voxel geometry of the sub-map, determine the category and category confidence value, record the occupancy probability, category and geometric information according to the voxel position, and form a three-dimensional semantic map;
[0036] S6: Based on the occupancy probability, category, and geometric information of the three-dimensional semantic map, the reachable area and the restricted area are divided. The category information is mapped to semantic risk. The fusion confidence and the fusion point position deviation are combined to obtain the deviation map. The path cost of the planning node is determined, the cost map is constructed, and the operation path is generated.
[0037] like Figure 2 As shown, the present invention provides a vision-sound wave-based 3D modeling and path planning system, including: a synchronous acquisition module, a calibration and coordinate transformation module, a quality assessment module, an association and fusion module, a pose estimation and multi-frame registration module, a 3D reconstruction network module, a semantic rule verification module, and a path planning module; in an extended embodiment, a running monitoring module is also provided.
[0038] The synchronous acquisition module is used to acquire visual observation data, structured light observation data, and acoustic observation data, and to perform time alignment.
[0039] The calibration and coordinate transformation module is used to generate candidate observation data in the same coordinate system based on the joint calibration parameters.
[0040] The quality assessment module is used to calculate visual, structured light, and acoustic confidence scores based on evaluation metrics such as image features, structured light depth, and acoustic echo, and to generate an availability mask indicating whether the observation is usable.
[0041] The association and fusion module is used to perform cross-modal spatial association on candidate observation data to form association groups on the same physical surface. The dominant mode is determined based on visual confidence and the validity of acoustic observation data. The available observations are indicated by the source participation rules of the dominant mode and the mask in each confidence group. The fusion point, fusion confidence, and fusion point position deviation degree representing position error are obtained.
[0042] The pose estimation and multi-frame registration module is used to estimate the pose based on the fusion points of consecutive frames and accumulate them to form a sub-map;
[0043] The 3D reconstruction network module is used to input the 3D coordinates, fusion confidence, and the corresponding color and echo intensity of the observation in the sub-map into the 3D reconstruction network, and output the object occupancy probability of each voxel geometry and the semantic category probability of each environment category.
[0044] The semantic rule verification module is used to verify the predicted category corresponding to the semantic category probability based on the voxel geometry of the sub-map, determine the category and category confidence value, and record the occupancy probability, category, category confidence value and geometric information according to the voxel position to form a three-dimensional semantic map.
[0045] The path planning module is used to divide the accessible area and the restricted area according to the occupancy, category and geometric information of the three-dimensional semantic map, map the category information into semantic risk, combine the deviation map obtained by the propagation of fusion confidence and fusion point position deviation, determine the path cost of the planning node, construct the cost map and generate the operation path.
[0046] The present invention also provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the vision-sound wave-based three-dimensional modeling and path planning method described in any of the preceding claims.
[0047] In this invention, "sound wave" in the title and "acoustics" below both refer to sonar measurement modes. Visual observation data refers to images, features, textures, and depth candidates obtained from them formed by monocular, binocular, or multi-view cameras; structured light observation data refers to depth candidates formed by dot matrix, stripe, or coded patterns together with the camera; acoustic observation data refers to the distance, beam direction, echo intensity, and signal-to-noise ratio output by the sonar. Visual confidence, structured light confidence, and acoustic confidence are denoted as […]. , and The values range from 0 to 1. The availability mask is used to indicate whether the corresponding source meets the time, frame age, and health status conditions in the current synchronization data packet. The frame age refers to the time difference between the current processing time and the hardware timestamp of the observation; its input is the hardware timestamp of the observation and the current time provided by the synchronization controller, and the output is the frame age value and a judgment on whether the observation has timed out; the judgment condition is that the frame age does not exceed the upper limit of the frame age determined by the sampling period. If it exceeds, the observation is set to unavailable in the availability mask; the default value of the upper limit of the frame age is twice the sampling period, and it can be configured item by item according to the computing power of the edge computing module. The sensor health status refers to the status quantity that indicates whether the source is available, obtained from the hardware self-test result, communication status, and timestamp continuity; its input is the self-test return code, communication error count, and timestamp sequence of each source, and the output is the status identifier of online, degraded, failed, or recovering pending verification.
[0048] The cross-modal spatial association described in this invention refers to the process of determining whether candidate observation data from different sources correspond to the same physical surface based on time difference, 3D distance, and surface normal angle. Its input consists of candidate observation data with confidence levels, their availability masks, and coordinate transformation relationships. The output consists of associated groups, unassociated observations, and associated residuals. An associated group refers to a set of observations from different sources that, after cross-modal spatial association, are determined to correspond to the same physical surface. Its input consists of candidate observation data with association gating, their availability masks, and confidence levels. The output consists of the observation index and candidate positions included in the same associated group. A valid observation refers to an observation whose availability mask indicates availability and which has been associated and gated and included in the same associated group. Valid acoustic observation data refers to acoustic observation data whose availability mask indicates availability and whose echo signal-to-noise ratio and repeated ranging variance meet the validity conditions. The source participation rule refers to the rule that specifies the range of sources participating in fusion and their primary and secondary relationships based on the determined visual-dominant mode, collaborative fusion mode, or acoustic-dominant mode. Its input is the working mode confirmed by hysteresis, and the output is the set of valid sources participating in fusion. The map deviation is a quantity that characterizes the reliability of the values of each voxel in the map, obtained by propagation from the fusion confidence and the fusion point position deviation. Its input is the fusion confidence and the fusion point position deviation of each voxel, and its output is the uncertainty of the voxel's value, which is used as a path cost item in the semantic cost map. The candidate connected component is a set of connected voxels obtained by aggregating voxels of the same semantic category according to their spatial adjacency. Its input is voxels whose semantic category probability exceeds the category threshold and their adjacency relationships, and its output is the connected component of that category and its geometric features such as size, aspect ratio, curvature, and normal.
[0049] In this embodiment, a camera coordinate system C, a sonar coordinate system A, a robot coordinate system B, and a map coordinate system M are established. Each coordinate system is referenced to the camera, sonar, robot body, and fixed map reference, respectively. Visual points and structured light points are first expressed in the camera coordinate system. Acoustic observation data, after undergoing sonar-to-camera extrinsic parameter transformation, is then transformed together with other candidate observation data to the current robot coordinate system B. Cross-modal association is completed in this common coordinate system; only after the pose estimation of the current frame is completed is the sub-map accumulated according to the pose transformation from the robot coordinate system to the map coordinate system. The orientation vector only changes with rotation, while the position changes with both rotation and translation.
[0050] Specifically, the implementation methods are organized as "technical problem - technical means - technical effect" and described in layers according to basic methods, specific details, system implementation, and storage media. Example 1 gives six consecutive main steps; Example 2 details quality assessment and sub-mode fusion; Example 3 details single-point sonar constraints; Example 4 details network training, deployment, and inference; Example 5 details semantic verification, path and rescanning; Examples 6 and 7 respectively give system interfaces and exception handling; Example 8 gives the program carrier.
[0051] Example 1: Fundamental Methods for Multi-Source Fusion Underwater 3D Modeling and Path Planning
[0052] This embodiment uses a pool cleaning robot as a carrier, equipped with a vision camera, structured light projector, sonar, synchronization controller, edge computing module, and motion execution mechanism. Addressing the issues of lacking a common benchmark in multi-source observations, differing quality and physical correspondences, and the inability of single-frame geometric information to directly support paths, the system sequentially executes the following steps: "Candidate observation data generation and coordinate unification—quality and usability assessment—spatial association and sub-mode fusion—pose estimation, sub-map accumulation and network inference—geometric verification and path generation." Each processing cycle retains the observation timestamp, source identifier, and calibration version to trace the input upon which the output is based.
[0053] This embodiment addresses the problem that direct stitching of visual images, structured light depth, and acoustic measurements is prone to producing false points due to differences in sampling time, coordinate reference, spatial resolution, and failure mechanism, and that a single geometric reconstruction cannot directly support safe path planning.
[0054] S1: Acquire multi-source observation data from visual cameras, structured light projectors, and sonar. After time alignment, generate candidate observation data based on joint calibration parameters. Specifically, this includes:
[0055] Candidate observation data generation and coordinate unification: First, underwater joint calibration is performed. Camera intrinsic parameters, binocular extrinsic parameters, camera and structured light projector extrinsic parameters, and the installation relationships of each sensor are read. The camera and sonar extrinsic parameters are solved and verified using joint calibration. Multiple attitude data are collected in the actual working medium using a joint calibration board containing both visual markers and acoustic reflectors. The transformation matrix from sonar coordinate system A to camera coordinate system C is solved, and spatial residuals are calculated using attitudes not involved in the solution. Translational residuals no greater than 2mm and rotational residuals no greater than 0.5° are preferred targets. Simultaneously, synchronization tolerance, coordinate system definition, and extrinsic parameter versions are written into the configuration record. When residuals exceed limits, the system is prevented from entering direct fusion mode to output an underwater joint calibration parameter package. This underwater joint calibration parameter package includes camera intrinsic parameters, extrinsic parameters of each sensor, coordinate transformation matrix, residual statistics, calibration validity flag, synchronization tolerance, and calibration version.
[0056] Subsequently, each observation component is initialized according to the underwater joint calibration parameter package. The synchronization controller generates trigger pulses corresponding to the visual camera, structured light projector, and sonar based on the same reference clock, writing a unified hardware timestamp for each observation. The structured light projector emits a pattern, and the visual camera acquires the corresponding image to form a structured light frame. Using the target time as a reference, the observation data with the smallest absolute time difference between the timestamp and the target time from each source is paired to form a synchronization data package. The absolute time difference between each observation and the target time, the current processing time, the equipment health status, and the calibration version are retained for availability determination in step S2. The timestamp represents the acquisition time, the target time represents the pairing reference time for this processing cycle, and the synchronization tolerance represents the maximum allowable absolute time difference.
[0057] S2: Based on the image features, structured light depth, and acoustic echo evaluation metrics of the multi-source observation data, calculate the visual confidence score, structured light confidence score, and acoustic confidence score respectively, and generate the availability mask corresponding to the multi-source observation data, specifically including:
[0058] The candidate observation data generation process in step S1 is as follows: The synchronization data packet is read, and underwater distortion, brightness normalization, Shi-Tomasi corner detection, ORB description, and binocular matching are performed on the images in the synchronization data packet to form visual candidate points and texture features. For structured light frames, projected light points or coded patterns are identified, and structured light candidate points are formed through scattering suppression, neighborhood filtering, and depth jump detection. For sonar frames, bandpass filtering or matched filtering is performed to extract distance, beam direction, echo intensity, and signal-to-noise ratio. Multi-beam sonar generates directional acoustic candidate points, and single-point sonar generates ray distance constraints. The candidate points or rays are transformed to the current robot coordinate system B using underwater joint calibration parameters. Simultaneously, the timestamp, health status, original image feature references, and coordinate transformation relationships in the synchronization data packet are retained to obtain a candidate observation data set. This candidate observation data set includes visual candidate observation data, structured light candidate observation data, acoustic candidate observation data, or ray distance constraints, as well as the timestamp, source identifier, health status, original image feature references, and coordinate transformation relationships corresponding to each candidate observation data.
[0059] The candidate observation data are measurement records that have not yet undergone cross-modal correspondence and fusion. Camera intrinsic parameters describe the imaging projection relationship, while sensor extrinsic parameters describe the rotation and translation between sensors. Observations of visual landmarks and acoustic reflectors in multiple orientations are used as joint calibration inputs, and the sonar-to-camera transformation and residuals are used as outputs. Coordinate unification uses candidate positions or rays and the transformation as inputs, and candidate positions or rays in a common coordinate system as outputs. The distance values of a single-point sonar cannot be directly used as three-dimensional positions.
[0060] Calculate source confidence: Visual confidence is calculated based on the corner response, matched inlier rate, and local gradient of the visual candidate observation data in the candidate observation dataset, with penalties imposed for blurring, overexposure, and underexposure. Structured light confidence is calculated based on the scattering attenuation, neighborhood consistency, and depth jump stability of the structured light candidate observation data, with penalties imposed for isolated points and depth jumps. Acoustic confidence is calculated based on the echo signal-to-noise ratio, incident angle, and repeated ranging variance of the acoustic candidate observation data, with penalties imposed for multipath suspicion and ranging instability. Each indicator is mapped to 0 to 1 according to calibration statistics and recorded jointly with an availability mask. This yields a candidate observation dataset with confidence, which includes each candidate observation data point and the visual confidence score. Structured light confidence Acoustic confidence Availability mask, sub-quality metrics, and low confidence reason codes.
[0061] This step also generates an observation-by-observation availability mask based on the absolute time difference between the observation and the target time, frame age, and sensor health status: the mask is 0 when the absolute time difference exceeds the synchronization tolerance, the frame age exceeds the upper limit, or the device fails; the mask is 1 when the availability conditions are met. Confidence level indicates the quality of the effective measurement, while availability mask indicates whether participation in the current cycle is allowed. Both are recorded separately, and a higher confidence level cannot cover timeout or failure states. A low-confidence reason code is used to record the category of indicators that leads to quality degradation.
[0062] S3: Determine the dominant mode based on the visual confidence, structured light confidence, and acoustic confidence, and fuse the candidate observation data based on the availability mask and each confidence level to obtain continuous frame fusion points carrying three-dimensional coordinates, fusion confidence, and fusion point position deviation representing position error, specifically including:
[0063] Perform cross-modal association: Read the set of candidate observation data with confidence scores output from step S2. For candidate observation data that are located in the same robot coordinate system B and can form 3D points, association gating is performed using time difference, 3D distance, and surface normal angle. The time difference is the absolute value of the difference between the acquisition times of two observations, the 3D distance is the Euclidean distance between the two candidate positions, and the surface normal is the perpendicular direction of the local surface. Only when all the corresponding thresholds are met is the observation included in the association group corresponding to the same physical surface, and the source confidence, availability mask, and association residual are retained. For the ray distance constraint formed by single-point sonar, the intersection point of the acoustic ray and the candidate surface of vision or structured light is calculated, and the physical correspondence is confirmed based on the residual between the predicted distance and the measured distance, the relationship of the surface normal, and the continuity of the historical map. Observations that fail the gating do not participate in this fusion. Radius suppression is performed on the same source duplicate points to avoid duplicate points changing the source contribution. Output cross-modal correlation results, which include correlation groups, uncorrelated observations, candidate locations or ray constraints, source confidence, availability mask, correlation residuals, source identifiers, and coordinate covariance.
[0064] Determine and fuse working modes: Read the cross-modal correlation results , , and availability mask; when When the value is not less than 0.7, the vision-dominated mode is adopted. When the value is less than 0.3 and the acoustic observation data is valid, the acoustic-dominated mode is used; otherwise, the collaborative fusion mode is used. First, the stable mode actually used in this cycle is determined by combining the entry threshold, exit threshold, and minimum dwell time, and then the source participation rules are determined according to this mode: the visual-dominated mode preserves details using vision and structured light, the acoustic-dominated mode maintains the geometric skeleton using valid acoustic observation data, and the collaborative fusion mode allows all valid sources to participate. Then, within the same association group, the first [unclear] that meets the source participation rules and can form 3D points is [unclear]. The effective sources are identified, and their fusion weights are determined by the proportion of the product of their availability mask and confidence level to the sum of the products of all effective sources participating in the fusion within the association group. A weighted summation is applied to candidate positions. For ray distance constraints, only the components of visual or structured light candidate points in the acoustic beam direction are corrected. A fusion point position deviation is formed based on the weighted residual from the candidate position to the fusion position. Entry thresholds, exit thresholds, and the shortest dwell time frame are used to suppress mode jitter, resulting in a fusion frame to be registered. This fusion frame includes the fusion point, fusion confidence level, fusion point position deviation, operating mode, association residual, source identifier, unassociated observations, and timestamps and local map state references inherited from the association results.
[0065] The following formula only applies to point candidates within the current associated group that meet the pattern participation rules; invalid or non-participating sources are not included in the summation. Normalized weights are calculated only when the denominator is greater than 0; when the denominator is 0, no fusion point is generated for that group, and the group is recorded as lacking valid fusion basis. Ray constraints are not included in point position averaging; their correction process is shown in Example 3.
[0066]
[0067]
[0068] in, The normalized fusion weight represents the weight of the current associated group. The contribution ratio of each participating source location is between 0 and 1, and the sum of the weights in the same group is 1. The fusion point is the 3D position vector of the current robot coordinate system B, which is obtained by weighted summation of the candidate positions in the same group according to the corresponding fusion weights; , All are source indexes. , , These represent the visual, structured light, and acoustic sources, respectively. Indicates the first An availability mask for each source, with 1 indicating availability and 0 indicating unavailability. This indicates the confidence level of the corresponding source, with a value ranging from 0 to 1. Indicates the first step of the associated gating. The three-dimensional position vectors of candidate points from various sources in the current robot coordinate system B, when for , The 3D position vector of the visual candidate point in the current robot coordinate system B, when for , This represents the 3D position vector of the structured light candidate point in the current robot coordinate system B. for , This represents the 3D position vector of the acoustic candidate point in the current robot coordinate system B. If the acoustic branch only provides ray constraints, it is not directly used as... Instead of substituting position averages, distance residuals are used for correction. or The component in the direction of the sound beam. To prevent Fluctuations around the threshold cause frequent switching; therefore, it is preferable to set the entry threshold, exit threshold, and minimum number of dwell frames.
[0069] The fusion point is the position obtained by weighting the valid point candidates of an association group, or the position obtained by ray distance correction after confirming physical correspondence. The fusion confidence indicates the reliability of the fusion result, and the fusion point position deviation indicates the dispersion or error of the fusion position. These two are not the same as the normalized fusion weights used for position averaging. The position residual is obtained by subtracting the fusion position from the candidate position and is saved along with the candidate confidence, weights, and source identifier of the group, serving as a traceable input for subsequent fusion point position deviation and map propagation.
[0070] S4: Estimate the pose based on the fusion points of the consecutive frames, extract the sub-map, and input the 3D coordinates, fusion confidence, and color components of the image features corresponding to the candidate observation data and the intensity components of the acoustic echo from the sub-map into the 3D reconstruction network. Output the object occupancy probability of each voxel geometry and the semantic category probability of each environment category, specifically including:
[0071] Estimate pose and accumulate sub-map: Read the frame to be registered and fused from step S3 and the visual feature references retained from step S1. When the visual confidence meets the visual pose estimation conditions, use continuous frame visual feature matching to estimate the rotation and translation of adjacent frames, and then use the point-to-surface residual from the fused point cloud to the existing local surface to refine the pose; the point-to-surface residual represents the normal distance of a point relative to the corresponding surface. When the visual pose estimation conditions are not met but the acoustic observation data is valid, reduce the visual residual weight and use the residual between the acoustic measured distance and the predicted distance of the existing local surface to constrain the pose. Wheel speed, attitude, or motion commands provided by the robot controller can be used as weak priors. Transform the current fused frame according to the estimated pose and accumulate it to the local sub-map, and then associate the map coordinate system M according to the registration results of the overlapping area. Output the current pose, pose covariance, local sub-map transformation, registered fused points and their fusion confidence, fused point position deviation, color, echo intensity, and source reference. A submap is a set of fused points from consecutive frames under a common local coordinate reference, and its pose is a rotational and translational relationship between coordinate systems.
[0072] Point cloud cleaning and probability map updating: For registered and fused points, outlier removal by radius, normal consistency checks, and voxel downsampling are performed, preserving 3D coordinates, fusion confidence, color, and echo intensity. A voxel is a grid cell obtained by dividing 3D space; the voxel index indicates the grid to which a point belongs; points within the same voxel and their adjacency relationships are used to calculate local voxel geometry. This stage outputs the sub-map to be reconstructed and the point-voxel correspondences, while retaining historical map status, the most recent update time, and the number of observations for updating after network output. Probabilities not generated by the current network are not considered existing results.
[0073] Lightweight 3D reconstruction is performed as follows: Local fusion points are extracted from the sub-map to be reconstructed, and the XYZ coordinates, fusion confidence, RGB three-channel colors, and echo intensity are arranged into an N×8 input tensor. Four layers of ensemble abstraction layers output N1×64, N2×128, N3×256, and N4×512 features in sequence. Then, the first feature propagation layer interpolates the fourth layer features to the third layer point set and jumps to connect them with the third layer features. The second feature propagation layer interpolates the output of the first feature propagation layer to the second layer point set and jumps to connect them with the second layer features. The propagated features are pooled by voxel index, and the occupancy probability and the probability of ten semantic categories are calculated through the occupancy output head and semantic output head, respectively, to obtain the voxel occupancy semantic inference result. The voxel occupancy semantic inference result includes the object occupancy probability, the category probability of pool wall, pool bottom, slope, step, escalator, floor drain, water outlet, water inlet, lane line, and floating object, as well as the voxel geometry, point-voxel correspondence, fusion confidence, and fusion point position deviation inherited from the sub-map to be reconstructed.
[0074] After obtaining the object occupancy probability and semantic category probability, the voxel probability and map confidence are recursively updated based on the fusion confidence and fusion point position deviation, and the most recent update time and observation count are recorded. The most recent update time records the timestamp of the accepted observation; the observation count counts the number of updates received by the voxel. The map confidence expresses the reliability of the multi-frame map results, and the map deviation expresses the degree to which the result is uncertain; the latter is obtained by propagating along the point-voxel correspondence from the fusion confidence and fusion point position deviation, and then enters step S5 together with the object occupancy probability and the semantic category probability after geometric verification. The historical map, the current network probability, and the current fusion quality are retained to distinguish between the current inference result and the cross-frame update result.
[0075] S5: Based on the voxel geometry of the sub-map, verify the predicted category corresponding to the semantic category probability, determine the category and category confidence value, record the occupancy probability, category and geometric information according to the voxel position, and form a three-dimensional semantic map, specifically including:
[0076] Verifying semantic and geometric consistency: Based on the semantic reasoning results of voxel occupancy, calculate the size, aspect ratio, curvature, normal, and adjacency of each semantic candidate connected component; verify the predicted category corresponding to the semantic category probability according to the slender or parallel component features of the escalator, the circular or annular edge features of the floor drain, the approximate horizontal plane and height abrupt change features of the steps, and the continuous large plane features of the pool wall and bottom; use the corresponding semantic category probability as the initial value of the category confidence value, reduce the corresponding category confidence value of voxels that do not meet the corresponding geometric rules and write them into the verification mark, and retain their object occupancy probability; record the occupancy probability, category, verified category confidence value, and geometric information according to the voxel position to obtain a three-dimensional semantic map, and retain the verification mark, geometric rule hit record, map confidence, map deviation, and corresponding point-voxel reference.
[0077] Semantic candidate connected regions consist of adjacent voxels with similar candidate probabilities. Their input is the class probability and voxel adjacency, and their output is the object region to be inspected. Slender parallel members are described by their aspect ratio and directional relationship; circular or annular edges are described by their contour roundness and continuity; and approximate horizontal planes and height abrupt changes are described by their normal and elevation differences. These geometric quantities are used to verify whether candidate categories match the morphology, without generating geometric evidence from the category name itself.
[0078] S6: Based on the occupancy probability, category, and geometric information of the 3D semantic map, accessible and prohibited areas are divided. Category information is mapped to semantic risk. The fusion confidence and fusion point location deviation are combined to obtain a deviation map. The path cost of the planned nodes is determined, a cost map is constructed, and the operation path is generated. Specifically, this includes:
[0079] Constructing a cost map and planning a path: Based on the geometrically validated 3D semantic map, the object occupancy probability, category, category confidence value, and voxel geometry are read. The map deviation degree of the corresponding voxels or projection nodes in the deviation map is also read. The pool bottom, lower edge of the pool wall, and steps meeting slope and width conditions are mapped as reachable areas. Escalators, water outlets, water inlets, and impassable seams are mapped as prohibited or high-risk areas. Dangerous boundaries are expanded according to the robot's outer radius, pose uncertainty, and braking distance. The movement distance, semantic risk, map deviation degree, and obstacle proximity penalty are combined into a path search cost. Prohibited areas are set as impassable constraints. A work path covering the clean area is searched to obtain a path planning result package. The path planning result package includes the cost map, reachable areas, prohibited areas, dangerous boundaries, work path, path coverage record, map confidence along the route, hole markers, and area markers to be reviewed.
[0080]
[0081] in, The cost of movement from the current node to an adjacent node. For semantic risks, For map deviation, As a penalty for approaching a barrier or restricted area, , , and Non-negative weights are used. Forbidden zones are constrained by impassability rather than by finite cost.
[0082] The 3D semantic map records object occupancy probability, category, category confidence value, and geometric information based on voxel location; the deviation map records map deviation obtained from fusion confidence and fusion point location deviation based on voxel location; the cost map records regional attributes and path costs using voxels or their planned projection nodes as indexes. When constructing the cost map, fields from the 3D semantic map and deviation map are read based on the same voxel location or projection correspondence, and then motion cost, semantic risk, map deviation, and obstacle proximity penalty are combined with non-negative weights to form the path cost. Reachable areas are areas that meet the passage conditions, while prohibited areas are areas that are prohibited from entering in the plan; object occupancy probability describes the likelihood of a voxel being occupied by an object, semantic category probability describes the likelihood of a voxel belonging to each environmental category, and category confidence value represents the credibility of the predicted category after geometric verification. Semantic risk is determined based on category confidence value and regional hazard; obstacle proximity penalty increases with approaching obstacles or prohibited boundaries. Path search reads node costs and prohibition constraints, outputting a work path composed of continuously reachable nodes, and retains the source field for each cost item for traceability.
[0083] Forming a closed loop for supplementary scanning and anomaly handling: After obtaining the path planning results using the basic method described above, the supplementary scanning process of Example 5 can be used to further process holes, low-confidence voxels, and voxels to be verified; in case of sensor anomalies, Example 7 performs degradation or safe shutdown. Supplementary scanning and anomaly handling are corresponding extended implementation forms and do not change the sequential relationship of the five steps of the basic method.
[0084] In the specific implementation process, through the above steps, this embodiment enables multi-source observations to have a correspondence in time, coordinates, and physical surface before fusion, allowing the confidence of each source to propagate from the observation level to the fusion point, voxel map, and path cost. Furthermore, by actively supplementing the scan, the path planning results are fed back to the sensing and mapping stages, thus forming a feasible and complete technical closed loop. Values such as a fusion point cloud density of no less than 2000 points / m², a porosity of no more than 5%, and a single-pool modeling time of no more than 5 minutes can be used as design and acceptance targets. Specific results need to be verified under unified testing conditions.
[0085] For example, the robot works in a swimming pool containing a bottom, walls, escalators, and drains. Visual and structured light candidates in clear areas can provide details. When image quality degrades but acoustic observation data remains valid, the mode is changed according to step S3. As an arithmetic example of the position weighting formula, when two valid points within the same association group have confidence levels of 0.8 and 0.2, masks of 1, and positions of (0, 0, 1.00)m and (0, 0, 1.02)m respectively, and both conform to the mode participation rule, the fusion weights are 0.8 and 0.2, and the fusion position is (0, 0, 1.004)m.
[0086] Example 2: Confidence-Driven Adaptive Fusion Method
[0087] This embodiment, building upon the synchronization, calibration, and association of Embodiment 1, separately expresses the availability and measurement quality of each source. The availability mask determines whether an observation can enter the current processing stage, the source confidence level determines the contribution of effective observations, the operating mode determines the primary and secondary relationships of the fusion strategy, and the hysteresis condition maintains mode continuity. This embodiment addresses the problems of different effective sensing sources in clear, turbid, low-texture, and highly reflective underwater scenes, where fixed weights cannot reflect the current observation quality, and single threshold switching is prone to frequent jitter in critical regions. Specifically, it includes:
[0088] Visual quality indicators are extracted: From the candidate observation data and images output in step S1 of Example 1, along with timestamp references, Shi-Tomasi corner response, ORB matching inlier rate, local gradient magnitude, and reprojection residual are extracted, and the proportions of blur, overexposure, and underexposure are calculated. Positive indicators are normalized according to calibration statistics and then combined. The combined value is then reduced based on the image quality penalty term. Simultaneously, the structured light frames, sonar frames, and availability masks in the synchronization data packet are retained for subsequent steps, resulting in a visual quality assessment package. This visual quality assessment package includes visual confidence. Visual sub-indicators, visual low confidence reason codes, and structured light frames, sonar frames, timestamps, and availability masks inherited from synchronization data packets.
[0089] This second embodiment refines steps S2 and S3 of the first embodiment. This step uses the candidate observation data, original images, and structured light and sonar frame references retained in step S1 of the first embodiment; the availability mask is generated according to step S2 of the first embodiment and transmitted with the data. The visual quality assessment package always retains the candidate observation data indexes from each source. Based on these references, the corresponding echo and depth indices are read, and then the candidate observation data references are transmitted to the mode selection and location fusion steps; therefore, it is not necessary to infer candidate points from confidence values.
[0090] Extract structured light and acoustic quality metrics: Calculate the light spot detectability rate, scattering attenuation, neighborhood depth consistency, depth jump stability, and isolated point ratio based on the structured light frames in the output visual quality assessment package, forming the structured light confidence score. Based on the sonar frames, the echo signal-to-noise ratio, incident angle bias, repeated ranging variance, and multipath susceptibility are calculated to form the acoustic confidence level. ;Will , and The data is truncated to 0 to 1, and combined with an inherited availability mask to filter out timeout or failure sources, resulting in a multi-source quality vector. This multi-source quality vector includes... , , Availability mask, individual metrics, reason codes, and corresponding candidate observation data references:
[0091]
[0092] in, For source index, For the source index set, , and These represent the visual, structured light, and acoustic sources, respectively. For the first The source in the first Frame confidence; A cutoff function that restricts the input to the interval between 0 and 1; and These represent the number of positive quality indicators and the number of penalty indicators, respectively, both of which are non-negative integers; and These are the positive quality indicator index and the penalty indicator index, respectively. For the first A normalized positive quality indicator; For the first A normalized penalty indicator; As a positive indicator weight, and ; The weight of the penalty indicator. Take respectively , and Visual confidence score was obtained. Structured light confidence Harmony and acoustic confidence .
[0093] The specific metrics mentioned above are used to form three categories of evaluation metrics: image feature evaluation metrics, structured light depth evaluation metrics, and acoustic echo evaluation metrics. Shi-Tomasi corner response represents the significance of corner point grayscale changes in different directions within an image; ORB matching inlier rate is expressed as the number of ORB feature matches that pass geometric consistency verification relative to the total number of tested matches; local gradient magnitude represents the intensity of grayscale changes in the neighborhood. Blur, overexposure, and underexposure metrics reflect detail diffusion, brightness saturation, and insufficient brightness, respectively, serving as inputs that reduce visual quality. Scattering attenuation represents the degree to which the effective signal of the projected light is weakened by water scattering; neighborhood consistency compares adjacent depths, and depth jump stability compares whether depth jumps have continuous support. Acoustic echo signal-to-noise ratio compares the effective echo with noise; incident angle deviation reflects the deviation of the sound beam from the surface normal; and repeated ranging variance reflects the dispersion of multiple rangings of the same target. Each indicator takes the corresponding image, deep neighborhood, or echo sequence as input, and the positive or penalty indicator after normalization of the calibration statistics as output. Then, the source confidence is obtained by substituting the above weighting and truncation formulas.
[0094] Determine the working mode: Based on the output multi-source quality vector and candidate observation data references, first form an association group according to step S3 of Example 1, then perform hysteresis judgment by combining the current mode and the number of dwell frames. The visual dominant mode is determined when the entry condition of not less than 0.7 is continuously met; when When the signal-to-noise ratio (SNR) is consistently below 0.3 and the acoustic availability mask is 1, and the SNR and ranging variance pass the validity check, the acoustic dominant mode is determined; otherwise, the cooperative fusion mode is determined. Mode switching simultaneously meets the corresponding entry conditions, exit conditions, and minimum dwell frame requirements. Source participation rules are generated based on the stable mode of this cycle, so that the visual dominant mode retains visual and structured light details, the acoustic dominant mode retains the acoustic geometric skeleton of the pool walls, pool bottom, and large obstacles, and the cooperative fusion mode allows all valid sources to participate, resulting in a mode decision record. The mode decision record includes the current operating mode, the set of valid sources, the source participation rules, the entry threshold, the exit threshold, the current consecutively satisfied frame count, the associated groups and candidate observation data references, and the multi-source quality vector.
[0095] The entry threshold determines whether entry into the target mode is possible, the exit threshold determines whether the current mode should be exited, and the minimum dwell time (MPW) limits the minimum number of consecutive frames the current mode must maintain. All three take the current confidence level, validity, current mode, and count as input to output the stable mode for the current cycle. The visual-dominant entry threshold is 0.7, and the acoustic-dominant entry condition is a visual confidence level below 0.3 and acoustic validity. The exit threshold and minimum dwell time should be configured to correspond to the actual sampling frequency, confidence level fluctuations, and allowable switching delay, and saved with the mode state.
[0096] Calculate the fusion location and fusion point location deviation: Based on the valid source set and candidate observation data references in the model decision record, for sources that have passed the association gating and can form 3D points, use the first... Availability mask for each source With confidence level The fusion weight is determined by the proportion of the product of the products of the valid sources within the same association group that meet the source participation rules. The product of each candidate position and its corresponding fusion weight is summed to obtain the fusion position, and the fusion point position deviation is calculated from the weighted residual from the candidate position to the fusion position. Observations that do not pass the gating do not participate in the weight normalization, and an adaptive fusion result is obtained. The adaptive fusion result includes the fusion position, the fusion weight of each source, the fusion confidence, the fusion point position deviation, the working mode, and the source consistency residual.
[0097] Perform hysteresis switching and confidence propagation: Update the mode state machine based on the working mode, fusion confidence, and source consistency residual in the adaptive fusion result; check the entry threshold, exit threshold, and minimum dwell frame number for visual-dominated, cooperative fusion, and acoustic-dominated modes respectively, and change the mode only when the exit condition is met continuously; bind the stabilized mode, fusion confidence, and fusion point position deviation to the fusion position, and adjust the voxel occupancy evidence increment and path uncertainty cost according to the fusion confidence to obtain a stable fusion record, which includes the hysteresis-confirmed working mode, fusion point, fusion confidence, fusion point position deviation, voxel update weight, and map deviation cost.
[0098] In its implementation, through the above steps, this embodiment can preserve high-resolution details of both visual and structured light in clear water, maintain geometric continuity using acoustic measurements when visual quality degrades, and prevent frequent switching of operating modes due to short-term fluctuations in scene quality. Since weights are calculated only for physically valid observations, low-quality sources will not dominate the fusion result simply because of a large number of points.
[0099] Example 3: Single-point sonar ray range constraint fusion method
[0100] In this embodiment, single-point sonar measurements are represented as ray distance constraints, intersected with visual or structured light candidate surfaces, and physical correspondence is determined based on distance residuals, normal relationships, and historical map continuity. Only the components of visual or structured light candidate points in the direction of the sound beam are corrected.
[0101] This embodiment addresses the problem that single-point sonar range measurement only determines the target's location at a certain distance along the sound beam direction, failing to provide a unique three-dimensional coordinate. Treating the target as an independent three-dimensional point would lead to surface position errors. Specifically, it includes:
[0102] Constructing ray distance constraints: Based on the acoustic candidate observation data corresponding to the single-point sonar in the candidate observation data set with confidence output in Example 1, and the visual candidate surface and structured light candidate surface in the same synchronization data packet, with the sonar origin... Unit beam direction Measured distance Beam angle, echo intensity, and range variance describe the current acoustic measurement and construct... The ray distance constraint is not directly converted into a unique acoustic 3D point; instead, candidate surfaces and their coordinate transformation relationships in the same synchronization data packet are encapsulated together to obtain a ray constraint association package, which includes ray distance constraints, acoustic confidence, candidate surface set, timestamp, and coordinate transformation relationship.
[0103] Generate candidate intersection points: Based on the output ray constraint association package, utilize the coordinate transformation relationship within it to transform the acoustic ray to the coordinate system of the candidate surface, and calculate the intersection points of the ray with the visual candidate surface and the structured light candidate surface respectively; if no intersection point exists, record a miss state; if one intersection point exists, form an intersection point to be verified; if multiple intersection points exist, form a set of candidate intersection points with surface source identifiers; calculate the predicted distance and surface normal for each intersection point to obtain the candidate intersection point results, which include the candidate intersection point set, predicted distance, surface normal, surface source identifier, and measured distance. Acoustic confidence and miss status.
[0104] Determine physical correspondence: Based on the output candidate intersection results, calculate the predicted distance of each candidate intersection point. The residuals between the points are used to rank candidate intersections based on the relationship between the surface normal and the sound beam direction, visual reprojection error, and historical map continuity. Candidates with residuals exceeding the association threshold or discontinuities with the historical surface are eliminated. Physical correspondence is confirmed when a unique candidate meets all conditions; otherwise, an unconfirmed or suspected multipath state is output. The visual or structured light positions corresponding to the confirmed candidates and their distance variances are extracted to obtain a physical correspondence record. This record includes the unique intersection or unconfirmed state and candidate points to be corrected. Sound beam direction Measured distance Variance of visual or structured light distance, variance of acoustic distance, and corresponding confidence level.
[0105] Perform beam direction correction: Based on the output physical correspondence record, when the record indicates a unique physical correspondence, select candidate points. The displacement relative to the sonar origin is projected onto the sound beam direction. The predicted distance is obtained, and the correction gain is calculated based on the variances of visual or structured light distance and acoustic distance. The measured distance is then used as the final value. The difference from the predicted distance is only corrected. exist Components in direction; perpendicular to The two components remain determined by vision or structured light; no position correction is performed when the record is in an unconfirmed state, resulting in ray-corrected observations, which include corrected candidate points, correction amount, correction covariance, physical correspondence state, acoustic confidence, and a multi-frame correction sequence appended with the current correction result.
[0106] The parameters in the ray represent the distance from the sonar origin along the unit beam direction; the difference between the predicted distance given by the candidate intersection and the acoustically measured distance constitutes the correction input. The correction amount along the beam direction is determined by this distance difference and the correction gain, and the corrected position and correction covariance are the outputs. "Multipath suspected" indicates that the echo may have traveled through multiple reflection paths, and the corresponding current candidate surface cannot be confirmed. Historical map continuity is used to check whether the current intersection is consistent with the registered surface, but it cannot replace the current distance residual check.
[0107] Verifying multi-frame consistency: Based on the output ray-corrected observations and the multi-frame correction sequence therein, the correction observations under different robot poses are transformed and projected onto the same local surface. Within a preset window, the directional consistency, amplitude dispersion, and surface residuals of the correction quantities are statistically analyzed. When each index continuously meets the consistency condition, the acoustic confidence is increased and the correction points are written into the stabilization layer. When the correction quantity changes irregularly with the viewing angle, the acoustic confidence is decreased and multipath suspected errors are marked. This yields a fused observation verified by multiple frames. The observation includes stable correction points or multipath suspected error markers, updated acoustic confidence, surface residual statistics, and stabilization layer writing flags.
[0108] In the specific implementation process, through the above steps, this embodiment retains the correction function of single-point sonar for scale and normal depth, while maintaining the lateral position determined by vision or structured light, thus avoiding the extension of distance measurement errors with limited angular resolution into high-precision three-dimensional points.
[0109] Example 4: Lightweight 3D Reconstruction and Semantic Verification Method
[0110] This embodiment uses an improved PointNet++ network, taking N×8 point features consisting of three-dimensional coordinates, fusion confidence, color information, and echo intensity as input. It extracts multi-scale features through four layers of set abstraction and two layers of feature propagation, and then generates voxel probabilities using the occupancy output head and semantic output head. Finally, it verifies the semantic category through the object's geometric shape.
[0111] This embodiment addresses the issues of sparsity, voids, and lack of semantics that may still exist in fused point clouds, as well as the problem that the large number of parameters and intermediate features in general 3D networks makes them difficult to run online on underwater robot edge processors. Specifically, it includes:
[0112] Constructing point features and training samples: Based on the historical sub-map to be reconstructed obtained according to Example 1, and the occupancy and semantic annotations corresponding to the historical sub-map to be reconstructed, N fusion points are selected from the historical sub-map to be reconstructed. The XYZ coordinates, fusion confidence, RGB three-channel colors, and echo intensity are arranged in sequence to form N×8 point features. The training samples cover clear, different turbidity, strong reflection, shadow, low texture, and clean dust scenes. Degraded samples are generated through color attenuation, contrast reduction, speckle, point cloud loss, local occlusion, distance noise, and echo loss. Each sample is bound to its occupancy label, ten semantic labels, and voxel index to obtain a network sample batch. The batch includes N×8 point features, occupancy label, semantic label, voxel index, sample degradation type, and local geometry.
[0113] N×8 represents N points, each with 8 input components: X, Y, and Z coordinate components, a fusion confidence score, R, G, and B color components, and an echo intensity component. Colors are derived from pixels in the corresponding visual observation data, and echo intensity is derived from the corresponding acoustic echo. Association groups and source references are used to trace features. Echo intensity describes the measured amplitude or energy of the received echo and is not equivalent to the acoustic confidence score. Training labels represent the labeled occupancy status and category, and voxel indexing establishes a spatial correspondence between point features and labels.
[0114] Perform ensemble abstraction: Based on the output network sample batches, input N×8 point features into the first to fourth ensemble abstraction layers connected sequentially. Each layer extracts features through local sampling, neighborhood grouping, and shared multilayer perceptron and applies ReLU activation, forming N1×64, N2×128, N3×256, and N4×512 features respectively. The first two layers extract local edges and texture changes, the third layer extracts mesoscale morphologies such as steps, rods, and ring structures, and the fourth layer aggregates submap-level context. Simultaneously, maintain the mapping between occupancy labels, semantic labels, and voxel indices and corresponding point sets to obtain a multi-scale abstract feature package. The feature package includes four levels of ensemble abstract features, point set indices at each level, neighborhood relations, label mappings, and voxel indices.
[0115] Feature propagation is performed based on the output multi-scale abstract feature package. The first feature propagation layer interpolates N4×512 features to the third-layer point set, performs a skip connection with N3×256 features, and outputs N3×256 propagated features. The second feature propagation layer interpolates the propagated features to the second-layer point set, performs a skip connection with N2×128 features, and outputs N2×128 propagated features. N1, N2, N3, and N4 are downsampled progressively at a fixed ratio, with the specific number of points determined based on the number of points per frame and the processor's storage capacity. Label mappings and voxel indices are then passed along with the propagated features to obtain a propagated feature package, which includes N3×256 and N2×128 propagated features, skip connection results, label mappings, voxel indices, and local geometry.
[0116] The ensemble abstraction layer samples and groups the input point set into neighborhoods, then uses a shared multilayer perceptron to map the neighborhood inputs into local features. The number of channels is the number of feature components per output point; N1, N2, N3, and N4 are the number of output points in the four layers, respectively. ReLU truncates negative activations to 0. The feature propagation layer interpolates features from the sparser point set to the target point set. Skip connections combine existing shallow features from the target point set with the propagated features, preserving information at the corresponding scale. Pooling aggregates point features belonging to the same voxel by voxel index, outputting voxel features for use by two parallel output heads.
[0117] Occupancy and semantic outputs are generated: Based on the output propagation feature package, the propagation features are pooled into voxels according to the voxel index; the occupancy output head uses Sigmoid activation to calculate the occupancy probability of each voxel, and the semantic output head uses Softmax activation to calculate the probabilities of ten categories: pool wall, pool bottom, slope, steps, escalator, floor drain, water outlet, water inlet, lane line, and floating objects; the predicted probabilities are combined with label mapping, local geometry, and sample degradation type to form training or validation records to obtain the network prediction package. The prediction package includes object occupancy probability, ten semantic probabilities, corresponding occupancy labels and semantic labels, voxel geometry, voxel index, and sample degradation type.
[0118] The occupancy output head maps the output value of each voxel to 0 to 1 using a sigmoid function, obtaining the occupancy probability. The semantic output head performs Softmax normalization on the ten categories of output values, obtaining the probability of each category for the same voxel. Pool walls and pool bottom refer to the sides and bottom of the pool, respectively; ramps refer to sloping surfaces connecting different heights; steps refer to stepped surfaces with height differences; escalators refer to rods or ladder-like structures used for ascending and descending the pool; drains refer to drainage components at the bottom of the pool; inlets and outlets are defined according to the flow direction of water leaving and entering the pool, respectively; lane lines refer to linear facilities used to distinguish lanes; and floating objects refer to objects floating in the water. Category labeling, network output indexing, and geometric rules use the same category meaning.
[0119] Training and Deploying the Network: Based on the output network prediction package, calculate the occupancy loss, semantic classification loss, boundary loss, and multi-source consistency loss according to the predicted probability and corresponding label. Assign higher weights to hazardous categories such as escalators, floor drains, and water inlets / outlets. Update the network parameters in reverse until the validation metrics meet the stopping condition. Perform operator compatibility checks and fixed-point calibration on the obtained model. Use FP16 or validated INT8 quantization. Retest the semantic average intersection-union ratio, hazardous category recall, and boundary error using the validation records in the network prediction package to obtain the deployment model package. The model package includes the trained network parameters, quantization parameters, operator configuration, validation metrics, and input channel and voxel index conventions.
[0120] Verify semantic geometric consistency: Based on the output deployment model package and the sub-map to be reconstructed in the current period of step S4 of Example 1, construct an N×8 input according to the same channel convention during training, and calculate the object occupancy probability and the probability of ten semantic categories sequentially through the network layers; no occupancy or semantic labels are input during runtime. Match the network output with the voxel geometry of the sub-map, update the voxel probabilities and propagate the map bias according to step S4 of Example 1, and then perform the predicted category verification in step S5 of Example 1: for escalator candidates, check the number of slender components, aspect ratio, and parallelism; for floor drain candidates, check the continuity and roundness of the annular edge; for step candidates, check the combination of approximate horizontal planes and height abrupt changes; for inlet / outlet candidates, check their embedding relationship with the pool wall or pool bottom. Use the corresponding semantic category probability as the initial value of the category confidence value. When there is geometric inconsistency, reduce the corresponding category confidence value and retain conflict and pending verification marks, while retaining the object occupancy probability. Output the object occupancy probability, category, category confidence value and voxel geometric information recorded by voxel position to form a three-dimensional semantic map, and include dangerous candidates, areas to be verified, map confidence, map deviation and verification records.
[0121] In the specific implementation process, through the above steps, this embodiment integrates confidence and echo intensity to enable the network to distinguish the reliability of the source of points, identify irregular structures through multi-scale features and geometric rules, and output occupancy probability and semantic category probability that can be directly used for map updates under controlled parameter quantities.
[0122] Example 5: Semantic Path Planning and Active Scanning Method
[0123] This embodiment reads the object occupancy probability, category, category confidence value, and geometric information recorded by voxel position in the 3D semantic map, and reads the map deviation degree of the corresponding position in the deviation map; divides the reachable area and the restricted area, maps the category information to semantic risk, calculates the path cost of the planned node and forms a cost map, generates the operation path based on the cost map, retains the map confidence degree and the most recent update time, and extracts the area that needs to be re-scanned and the safe observation viewpoint from the path coverage area.
[0124] This embodiment addresses the issues that geometric maps cannot directly represent accessibility and hazard, that map holes and low-confidence areas cannot be used for path decision-making, and the lack of proactive verification after a single map creation. Specifically, it includes:
[0125] Accessible and restricted areas are defined as follows: Based on the 3D semantic map output in Example 4, and according to the object occupancy probability, category, category confidence value, and geometric shape in the map, the bottom of the pool, the lower edge of the pool wall, and the steps with slope, width, and continuity that meet the robot's passage conditions are defined as accessible areas; escalators, water outlets, water inlets, impassable seams, and voxels with occupancy probabilities exceeding the obstacle threshold are defined as restricted or high-risk areas; dangerous candidates whose semantic probabilities have not yet converged but whose geometric shapes are questionable are defined as areas to be reviewed, resulting in a region classification map. The classification map includes accessible areas, restricted areas, high-risk areas, areas to be reviewed, the boundaries of each area, and the corresponding map confidence, map deviation, and geometric verification records.
[0126] Generate safety boundaries: Based on the output region classification map, safety expansion zones are formed by superimposing the robot's circumscribed contour radius, pose uncertainty, and braking distance on the geometric boundaries of prohibited areas, high-risk areas, and areas to be reviewed. High recall judgment is applied to escalators, water outlets, and water inlets, and high cost is set for areas to be reviewed before obtaining multiple frames of counter-evidence. Spatial clipping is performed on the safety expansion results and reachable areas to obtain a safety region map. The safety region map includes the clipped reachable areas, impassable areas, graded risk boundaries, safety expansion zones, and the cost of each area, map deviation, and corresponding voxel indexes.
[0127] The safety boundary calculation also reads the pose and its uncertainty from step S4 of Example 1, the robot's circumscribed radius, and the current braking distance. The pose uncertainty describes the degree of error in the current rotation and translation estimation, and is recorded separately from the map deviation of the voxels; the former is used for the safety boundary allowance, and the latter is used for the path uncertainty cost.
[0128] Constructing path costs and searching paths: Based on the output safe zone map, search nodes are established on the clipped reachable voxels or their 2D projections. Non-negative combined costs are calculated based on the movement distance of adjacent nodes, regional cost value, map deviation, and obstacle proximity. Impassable areas are set as hard constraints. The A* method or an equivalent algorithm that retains the same cost term and prohibition constraints is used to search for covered operation paths. At the same time, the covered and uncovered voxels of the path are recorded to obtain an initial path planning package. The planning package includes the operation path, node cumulative cost, path coverage record, uncovered voxels, risk level along the route, and safe zone map.
[0129] Calculate the priority of the supplementary scanning: Based on the output initial path planning package, extract the uncovered voxels from the path coverage record of the planning package, and mark voxels with map confidence below the threshold, occupancy probability close to 0.5, high semantic entropy, or multi-frame label conflict in combination with the safety area map; perform connected component clustering on adjacent marked voxels, and calculate the supplementary scanning priority based on the area, average map confidence, semantic entropy, danger proximity, and reachability. Unreachable areas remain unknown and the adjacent safety boundaries are expanded to obtain a supplementary scanning area queue. The queue includes the areas to be supplemented in order of priority, the quality indicators of each area, the reachability status, the expanded safety boundaries, and the original operation path.
[0130] Holes represent spatial locations lacking effective observational support within the desired mapping or coverage area; low-confidence voxels represent voxels with map confidence below the decision threshold; voxels awaiting verification represent voxels with semantic and geometric inconsistencies or conflicts between multiple frames of records. Semantic entropy reflects the dispersion of the probability distribution of the same voxel category, and connected components refer to sets of voxels connected by adjacency relationships. These quantities take map probability, quality, and coverage records as input and output the area to be scanned and its quality indicators. The scan viewpoint is the position and orientation of the target area that the robot can reach and that the sensors can observe.
[0131] Selecting and verifying the supplementary scanning viewpoint: Based on the output supplementary scanning area queue, candidate poses are sampled around each reachable supplementary scanning area. Pose that enter the restricted area or cannot be covered by the sensor's field of view are eliminated. The target viewpoint is selected based on the expected visible area, the angle with the existing line of sight, the travel increment, and the safety margin. After the robot reaches the target viewpoint, it re-acquires, associates, fuses, accumulates sub-maps, performs network reconstruction and geometric verification in sequence according to steps S1 to S5 of Example 1. The new results are then compared with the original map attached to the queue to obtain the point-to-surface residual, the change in occupancy probability, and the difference in semantic distribution to obtain the supplementary scanning verification result. The result includes the target viewpoint, the new fused observation, the difference between the old and new maps, geometric consistency, semantic consistency, regional quality gain, and the remaining supplementary scanning area.
[0132] Update the map and terminate the rescanning: Based on the output rescanning verification results, when both geometry and semantics are consistent, increase the map confidence of the corresponding area and fill holes; when geometry is consistent but semantics are inconsistent, retain the conflict; when geometry is also inconsistent, trigger pose and extrinsic parameter checks; read the fields of the updated 3D semantic map and the corresponding deviation map, reconstruct the cost map and update the job path; then determine whether to continue rescanning based on the updated hole rate, confidence of dangerous adjacent areas, continuous rescanning quality gain and number of rescanning times for a single area. When the termination condition is met, the loop ends; otherwise, the remaining areas are reordered and the viewpoint selection process is returned to obtain the active rescanning closed-loop result. The result includes the updated occupied semantic map, the final job path, the completed areas, the remaining or terminated rescanning tasks, conflict records, and the reason for rescanning termination.
[0133] In a specific implementation, through the above steps, this embodiment enables occupancy, semantics, and map bias to jointly influence path selection, and enables path planning to trigger new observations and map updates in reverse, thereby gradually reducing holes, low-confidence areas, and semantic conflict areas that affect operational safety.
[0134] This invention provides a vision-sound wave-based 3D modeling and path planning system, comprising:
[0135] Example 6: A 3D Modeling and Path Planning System Based on Vision-Sound Waves
[0136] In this embodiment, the aforementioned method is mapped to a synchronous acquisition module, a calibration and coordinate transformation module, a quality assessment module, a correlation and fusion module, a pose estimation and multi-frame registration module, a 3D reconstruction network module, a semantic rule verification module, and a path planning module; in the extended embodiment, a running monitoring module is also provided. Each module can be implemented by one or more processors executing programs stored in memory, or by a synchronous controller, a general-purpose processor, an embedded neural network processor, or a combination thereof.
[0137] This embodiment addresses the problem that the aforementioned method lacks module division, data interfaces, and execution relationships in specific devices, making it difficult to coordinate synchronization, fusion, reconstruction, and path planning. Specifically, it includes:
[0138] Deployment of acquisition and synchronization components: Based on the multi-source sensor configuration, synchronization trigger configuration, sampling period, and system calibration version, configure a vision camera, structured light projector, and sonar as multi-source observation components, and configure a synchronization controller to send a unified trigger pulse to each component; the synchronization acquisition module acquires images, structured light frames obtained by the structured light projector and vision camera in cooperation, and sonar frames according to the sampling period, and writes a unified hardware timestamp, frame age, and device health status to obtain a system synchronization data packet. The data packet includes images, structured light frames, sonar frames, unified hardware timestamp, frame age, device health status, and calibration version.
[0139] Establishing a unified coordinate and quality interface: Based on the output system synchronization data packet, the calibration and coordinate transformation module generates candidate observation data according to step S1 of Example 1, and transforms it to the current robot coordinate system B based on camera intrinsic parameters, sensor extrinsic parameters, and calibration version. The quality assessment module calculates three types of confidence scores based on the candidate observation data, original image, depth, and echo references, and generates a mask based on absolute time difference, frame age, and device health status. A unified observation quality package is output, including unified coordinate candidates, three types of confidence scores, a mask, a timestamp, source identifier, original feature references, and calibration version. Pose not yet estimated in the current frame is not included as input for this step.
[0140] Pose Formation and Fusion Interface: Based on the output unified observation quality package, the association and fusion module first performs cross-modal association, stable mode selection, and intra-group effective observation fusion according to step S3 of Example 1, outputting fusion points, fusion confidence, and fusion point position deviation. The pose estimation and multi-frame registration module then combines the fusion points of consecutive frames and visual features to estimate the pose, and accumulates sub-maps according to pose transformation. The output sub-map data package includes registered fusion points, fusion confidence, fusion point position deviation, color, echo intensity, local geometry, point-voxel correspondence, current pose, pose covariance, sub-map transformation, source identifier, working mode, and timestamp.
[0141] Forming the reconstruction and semantic interface: The sub-map data packet is read, and the 3D reconstruction network module organizes the fused points into N×8 features and outputs the object occupancy probability and semantic category probability. The probability and map quality are updated according to step S4 of Example 1. The semantic rule verification module verifies the predicted category based on the voxel geometry of the sub-map, determines the category and category confidence value, and records the object occupancy probability, category, category confidence value, and geometric information according to voxel location, forming a 3D semantic map. Map deviation, map confidence, dangerous candidates, and markers to be reviewed are retained. The cost map is constructed by the path planning module in the next step based on the corresponding fields of the 3D semantic map and the deviation map.
[0142] The planning and feedback interface is established by reading the 3D semantic map and deviation map output from the aforementioned reconstruction and semantic interfaces. The path planning module divides accessible and prohibited areas based on the object occupancy probability, category, and geometric information of the 3D semantic map, maps category information to semantic risks, and determines path costs by combining corresponding fields from the deviation map, constructing a cost map, and then generating the work path. In Example 5, supplementary scanning tasks are also generated based on holes, low-confidence voxels, and verification markers, returning the target viewpoint and acquisition requirements. The operation monitoring module reads the current sensor health status, frame freshness, source confidence, correlation residuals, map quality, and operating mode, and performs degradation, recovery verification, or safe shutdown as in Example 7. The output includes the work path, semantic cost map, supplementary scanning tasks, feedback acquisition instructions, operating mode, operating status, shutdown instructions, and logs.
[0143] In this specific implementation, through the above steps, this embodiment ensures a one-to-one correspondence between the inputs, processing, and outputs of the system modules and the method steps, and allows synchronous control, general computing, neural network inference, and motion control to work collaboratively through a unified data object after being deployed separately. Module division is used to illustrate functions and data relationships, and does not require that each module correspond to an independent physical device.
[0144] Example 7: Graded Degradation and Recovery System under Sensor Anomalies
[0145] In this embodiment, the operation monitoring module maintains the online, degradation, failure, and recovery verification status for each sensing source. It combines frame arrival time, hardware self-test, source confidence, cross-modal residuals, and communication error codes to determine the anomaly type, and then performs single-source degradation, dual-source safe shutdown, or recovery verification based on the available sources.
[0146] This embodiment addresses the problem of low-quality and outdated observations continuing to update stable maps due to device disconnection, data timeout, or environmental degradation, which could lead to robots moving based on unreliable maps. Specifically, it includes:
[0147] Determining Sensor Status: The system reads the frame freshness, device health status, obtained source confidence levels, and associated residuals for the current period (as described in Example 6). Combined with the previous period's operation log and trusted map references, it determines communication anomalies when no data is received for multiple consecutive sampling periods; it determines environmental or measurement degradation when the confidence level is below the effective threshold for multiple consecutive frames but data continues to arrive; and it determines device anomalies when hardware self-test fails or timestamps are discontinuous. The number of consecutive periods is determined according to the sampling frequency, and the reason code triggering the state change and the current trusted map reference are recorded to obtain the sensor status record. This record includes the online, degraded, failed, or recoverable states from visual, structured light, and acoustic sources, the reason code, the availability mask suggestion value, and the current trusted map reference.
[0148] Acoustic failure degradation is performed as follows: Based on the output sensor status records, when the records indicate that the acoustic source has failed, the acoustic availability mask is set to 0 and the use of outdated acoustic measurements is stopped; when vision is still effective, the local map corresponding to the current trusted map reference is updated using effective vision and available structured light, while murky areas with persistently low confidence in historical vision are set as restricted areas, and map expansion dependent on acoustic scales is paused; when acoustics has not failed, the original fusion state is maintained, resulting in acoustic degradation processing results, which include the updated availability mask, restricted areas, local map, allowed map update range, current abnormal state, and visual state information.
[0149] Visual failure degradation is performed: Based on the output acoustic degradation processing results, when the visual state indicates visual failure but the acoustic observation data is still valid, the visual availability mask and the structured light availability mask that depends on visual decoding are set to 0. Only the still valid acoustic distance is used to maintain the large-scale geometric skeleton, the confirmation of small targets that depend on texture is suspended, and the movement speed is reduced, the single-segment path is shortened, and the danger boundary is expanded according to the remaining map confidence. When both visual and acoustic failures are invalid, a dual-source safety shutdown is performed. When the visual failure is not invalid, the local map and update range formed by acoustic failure degradation are performed to obtain the comprehensive degradation state. The state includes the final availability mask, available geometric skeleton or local map, speed limit value, single-segment path upper limit, danger boundary, map confidence, and dual-source validity flag.
[0150] The acoustic skeleton is a large-scale geometric representation maintained by effective acoustic distance and existing map constraints, and is not equivalent to an N×8 semantic network input with complete RGB and echo features. When vision fails, structured light results dependent on visual decoding should not be used, nor should outdated colors or acoustic measurements be used as previous observations.
[0151] Perform a dual-source safety shutdown: Read the overall degradation status output from the visual failure degradation execution. When the dual-source validity flag indicates that both visual and acoustic are invalid, or the map confidence is below the safety threshold, freeze the last existing trusted map, stop occupancy probability and semantic probability updates, cancel any unexecuted autonomous paths, and send a safety shutdown command to the motion execution module; otherwise, retain the restricted operating state; if no trusted map has been established, maintain the state of having no valid map and stop autonomous motion. The restricted operating state is retained if the shutdown condition is not triggered. Simultaneously, establish a recovery verification context, save the fault type, the source to be recovered, and available historical map references, and output the frozen map or restricted operating map, the shutdown command, the canceled paths, the fault type, and the recovery verification context.
[0152] Perform recovery verification: Based on the output security handling results, for the sources to be recovered, new observations are collected according to the recovery verification context after the sensor is back online. The continuous timestamps, frame age, hardware self-test results and calibration version are verified. Then, the point-to-area residuals and semantic distribution consistency between the new observations and the frozen map or restricted operation map are calculated in the temporary layer. The recovered data is not directly written to the stable layer. Only when multiple consecutive verification windows are consistent, the corresponding fusion weights are gradually restored and the unexecuted paths are replanned to obtain the recovery processing results. The results include recovery success or continued isolation flags, updated availability mask and fusion weights, verified map, replanned path, verification indicators and anomaly resolution records.
[0153] In a specific implementation, through the above steps, this embodiment can distinguish between equipment failure and environmental degradation, maintain limited mapping when there is a single source of anomaly, prevent autonomous movement when the main sensing sources fail simultaneously, and avoid the instantaneous anomaly when the sensor comes back online to prevent contamination of the stable map through recovery verification.
[0154] The present invention also provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the above-described vision-sound wave-based 3D modeling and path planning method.
[0155] Example 8: Computer-readable medium
[0156] This embodiment provides a non-transitory computer-readable storage medium on which a computer program is stored. When executed by a processor, the computer program implements the basic method of Embodiment 1, or the method combining the corresponding refined steps of Embodiments 2 to 5, through synchronous acquisition, sensor processing, 3D network inference, and path planning interfaces. The storage medium is used to store instructions and parameters, and the processor is used to execute instructions sequentially and transmit intermediate data. Specifically, it includes:
[0157] Stored program instructions: Based on the detailed method steps, processing order, data field definitions, calibration parameters, and threshold configurations applicable to Embodiments 1, 2, and 5, the following steps are compiled or encapsulated into program instructions that can be called by the processor: synchronization data packet formation, candidate observation data generation, source confidence calculation, cross-modal association, adaptive fusion, pose estimation and submap accumulation, occupancy semantic reasoning and subsequent probabilistic map update, geometric rule verification, semantic cost construction, path planning, applicable active scan completion, and anomaly handling. The data interface, execution order, and parameter versions are then written to a non-transitory storage medium to obtain a stored instruction package. This instruction package includes program instructions, stage call order, data interface definitions, calibration parameters, threshold configurations, and version information.
[0158] Load and execute program instructions: Based on the output stored instruction package, the processor reads the program instructions, stage call order, and parameter version, and initializes the synchronous acquisition interface, sensor data processing interface, 3D network inference interface, and path planning interface; according to a unified timestamp, it sequentially executes candidate observation data generation, source confidence calculation, cross-modal association, adaptive fusion, pose estimation and sub-map accumulation, occupancy semantic inference and subsequent probability map update, geometric rule verification, semantic cost construction, path planning, and applicable active rescanning; when configuring the operation monitoring function, it also performs anomaly handling according to Example 7, and passes the data object output by the previous stage between adjacent processing stages to obtain a program execution result package. The result package includes candidate observation data, source confidence, fusion point, object occupancy probability, semantic category probability, semantic cost map, operation path, rescanning task, running status, and anomaly cause.
[0159] Output and save processing results: Based on the output program execution result package, the processor records the object occupancy probability, category, category confidence value, and geometric information according to the data type and timestamp in the result package, according to the voxel geometry, to save a 3D semantic map, and saves the cost map according to the corresponding planned node position. The operation path and re-scanning task are sent to the robot controller, and the running status and abnormal reasons are written to the log. When a safe shutdown occurs, the synchronization data packet index, map version, and status information before and after the shutdown are additionally saved to support subsequent recovery verification, resulting in a persistent execution record. The record includes the voxel map file, operation path, re-scanning task, controller sending status, running log, safe shutdown snapshot, and the map version required for recovery.
[0160] For those skilled in the art, various other corresponding changes and modifications can be made based on the technical solutions and concepts described above, and all such changes and modifications should fall within the protection scope of the claims of this invention.
[0161] Unless otherwise defined, the technical or scientific terms used herein should be understood in their ordinary sense by one of ordinary skill in the art to which this invention pertains. The terms “first,” “second,” “third,” and similar terms used in the specification and claims of this patent application do not indicate any order, quantity, or importance, but are merely used to distinguish different components. Similarly, the terms “an” or “a” and similar terms do not indicate a quantity limitation, but rather indicate the presence of at least one. The terms “comprising” or “including” and similar terms mean that the elements or objects preceding “comprising” or “including” encompass the elements or objects listed following “comprising” or “including” and their equivalents, but do not exclude other elements or objects. The “multiple” involved in the embodiments of this invention refers to two or more.
Claims
1. A 3D modeling and path planning method based on vision-sound waves, characterized in that, include: Acquire multi-source observation data from visual cameras, structured light projectors, and sonar, and generate candidate observation data based on joint calibration parameters after time alignment; Based on the evaluation metrics of image features, structured light depth, and acoustic echo of the multi-source observation data, visual confidence, structured light confidence, and acoustic confidence are calculated respectively, and an availability mask corresponding to the multi-source observation data is generated. The dominant mode is determined based on the visual confidence, structured light confidence, and acoustic confidence. The candidate observation data are then fused based on the availability mask and each confidence level to obtain continuous frame fusion points carrying three-dimensional coordinates, fusion confidence, and fusion point position deviation degree representing position error. The pose is estimated based on the fusion points of the continuous frames, and a sub-map is extracted. The three-dimensional coordinates, fusion confidence, color components of image features corresponding to candidate observation data and intensity components of acoustic echoes in the sub-map are input into the three-dimensional reconstruction network, and the object occupancy probability of each voxel geometry and the semantic category probability of each environment category are output. Based on the voxel geometry of the sub-map, the predicted category corresponding to the semantic category probability is verified, the category and category confidence value are determined, and the occupancy probability, category and geometric information are recorded according to the voxel position to form a three-dimensional semantic map. Based on the occupancy probability, category, and geometric information of the three-dimensional semantic map, accessible and restricted areas are divided. Category information is mapped to semantic risk. The fusion confidence and fusion point position deviation are combined to obtain a deviation map. The path cost of the planned nodes is determined, a cost map is constructed, and the operation path is generated.
2. The method for 3D modeling and path planning based on vision-sound waves according to claim 1, characterized in that, The visual camera acquires visual observation data, the structured light projector cooperates with the visual camera to acquire structured light observation data, and the sonar acquires acoustic observation data. The generation of time alignment, availability mask, and joint calibration parameters include: Trigger pulses corresponding to the visual camera, the structured light projector, and the sonar are generated based on the same reference clock. A unified hardware timestamp is written for each candidate observation data. Based on the target time, the data with the smallest absolute time difference between the unified hardware timestamp and the target time is selected from the observation data from each source and matched to form a synchronization data packet. The availability mask is generated based on the time difference between each candidate observation data and the target time, the frame age, and the sensor health status. The frame age is the difference between the current processing time and the observation timestamp. Observations that have a time difference exceeding the synchronization tolerance, a frame age exceeding the upper limit of the frame age determined by the sampling period, or sensor failure are marked as unavailable. Data on multiple attitudes is collected underwater using a joint calibration plate with visual markers and acoustic reflectors. The transformation relationship from the sonar coordinate system to the camera coordinate system is solved, and the joint calibration parameters are formed together with the camera intrinsic parameters and the extrinsic parameters of each sensor.
3. The method for 3D modeling and path planning based on vision-sound waves according to claim 1, characterized in that, The evaluation metrics for the image features include Shi-Tomasi corner response, ORB feature matching inlier rate, and local gradient magnitude. Visual confidence is calculated based on the evaluation metrics for the image features, and the visual confidence is reduced based on blur, overexposure, and underexposure metrics. The evaluation metrics for structured light depth include scattering attenuation, neighborhood consistency, and depth jump stability. The structured light confidence level is calculated based on the evaluation metrics for structured light depth. The evaluation metrics for the acoustic echo include echo signal-to-noise ratio, incident angle deviation, and repeated ranging variance. Acoustic confidence is calculated based on the evaluation metrics for the acoustic echo. Each confidence is normalized and associated with the availability mask of the corresponding observation.
4. The method for 3D modeling and path planning based on vision-sound waves according to claim 1, characterized in that, The candidate observation data includes visual candidate points, structured light candidate points, and acoustic candidate points or ray distance constraints formed by single-point sonar. For the ray distance constraint, the candidate intersection point of the candidate surface corresponding to the visual candidate point or structured light candidate point and the acoustic ray is calculated. The physical correspondence is determined based on the residual between the predicted distance and the measured acoustic distance of the candidate intersection point and the surface normal relationship. If there is a historical sub-map formed in the previous processing cycle, a consistency check is performed in combination with the continuity of the historical sub-map.
5. The method for 3D modeling and path planning based on vision-sound waves according to claim 1, characterized in that, The dominant modes include visual dominant mode, collaborative fusion mode and acoustic dominant mode; Visual confidence is not less than the first entry threshold as the entry condition for visual dominance mode, and visual confidence is less than the second entry threshold and acoustic observation data is valid as the entry condition for acoustic dominance mode. The remaining cases correspond to collaborative fusion mode, and the first entry threshold is greater than the second entry threshold. The acoustic observation data being valid means that its availability mask indicates availability, and that the echo signal-to-noise ratio is not lower than the signal-to-noise ratio threshold and the repeated ranging variance is not higher than the ranging variance threshold. The mode switching is hysteresis controlled based on the entry threshold, exit threshold and minimum dwell frame number of each dominant mode. After determining the dominant mode to be used in this processing cycle, the observation data sources participating in the fusion are determined. The visual dominant mode mainly uses visual observation data and structured light observation data, the acoustic dominant mode mainly uses acoustic observation data, and the collaborative fusion mode allows all available sources to participate. When the sum of the products of the availability mask and the corresponding confidence is greater than zero, the proportion of the product of each observation data to the sum of the products is used as the fusion weight. The positions of the candidate observation data are weighted and summed to obtain the fusion point. Based on the residual distribution of the positions of the candidate observation data relative to the positions of the fusion point and the corresponding fusion weight, the position deviation of the fusion point, which represents the degree of position dispersion, is calculated. When the sum of the products is zero, the corresponding fusion point is not generated; The ray distance constraints formed by single-point sonar in the candidate observation data are not used as three-dimensional points in the weighted summation. Only when physical correspondence is confirmed, the components of the corresponding visual candidate points or structured light candidate points in the acoustic ray direction are corrected according to the difference between the measured acoustic distance and the predicted distance.
6. The method for 3D modeling and path planning based on vision-sound waves according to claim 1, characterized in that, The pose estimation and sub-map accumulation include: when the visual confidence reaches the confidence threshold required for pose estimation, estimating the pose of adjacent frames by matching interior points based on the visual features of consecutive frames, and refining the pose by point-to-surface registration of the point cloud formed by fusion points. When the visual confidence is lower than the confidence threshold and the availability mask of the acoustic observation data indicates availability, the echo signal-to-noise ratio is not lower than the signal-to-noise ratio threshold and the repeated ranging variance is not higher than the ranging variance threshold, the visual residual weight is reduced, and the pose is constrained according to the residual between the acoustic measured distance and the predicted distance of the existing surface in the historical sub-map formed in the previous processing cycle. The fusion points of the current frame are transformed and accumulated into the sub-map based on the estimated pose; After the 3D reconstruction network outputs the object occupancy probability and semantic category probability, the currently output probability is used to update the historical probability of the corresponding voxel based on the fusion confidence and the fusion point position deviation, and the map confidence, the most recent update time and the number of observations representing the reliability of the corresponding voxel observation are recorded.
7. The method for 3D modeling and path planning based on vision-sound waves according to claim 1, characterized in that, The 3D reconstruction network is a lightweight 3D reconstruction network, which is a point cloud feature learning network based on PointNet++. The input of the point cloud feature learning network is an N×8 point feature composed of N fusion points selected from the sub-map, where N is the number of fusion points. The eight input components of each fusion point are three coordinate components, one fusion confidence, three color components, and one echo intensity component. The color components are taken from the visual observation data corresponding to the fusion point, and the echo intensity component is taken from the acoustic observation data corresponding to the fusion point. The point cloud feature learning network includes four sequentially connected ensemble abstraction layers, a first feature propagation layer, a second feature propagation layer, and parallel occupancy output heads and semantic output heads. The number of output channels for the four ensemble abstraction layers are 64, 128, 256, and 512, respectively. The first feature propagation layer interpolates the features of the fourth set abstraction layer to the third set of points, and merges them with the features of the third set abstraction layer through skip connections. The second feature propagation layer interpolates the features output by the first feature propagation layer to the second layer point set, and merges them with the features of the second layer set abstraction layer through skip connections. The features output by the second feature propagation layer are pooled by voxel index and then input into the occupancy output header and semantic output header respectively. A voxel is a three-dimensional mesh unit obtained by dividing the sub-map; The occupancy output head uses the Sigmoid activation function to map the output value to 0 to 1, thereby obtaining the object occupancy probability, which represents the possibility that the corresponding voxel is occupied by an object. The semantic output head uses the Softmax normalization exponential function to normalize the output values of each category, and obtains the semantic category probability representing the possibility that the corresponding voxel belongs to each category: pool wall, pool bottom, slope, step, escalator, floor drain, water outlet, water inlet, lane line and floating object. The sum of the probabilities of each category is 1. The water outlet and water inlet refer to the openings where water flows out of and into the water body being modeled, respectively.
8. The method for 3D modeling and path planning based on vision-sound waves according to claim 1, characterized in that, The semantic category probabilities include the category probabilities of escalators, floor drains, and steps. The verification of the predicted categories, cost map construction, and work path generation include: Voxels whose category probabilities exceed the corresponding category thresholds for escalators, floor drains, and steps are selected and aggregated into candidate connected components for each category based on their spatial adjacency. Verify candidate connected domains of escalators based on slender parallel components, verify candidate connected domains of floor drains based on circular or annular edges, and verify candidate connected domains of steps based on approximate horizontal planes and height abrupt changes. Using the corresponding semantic category probability as the initial value of the category confidence value, the corresponding category confidence value of voxels that do not meet the corresponding geometric rules is reduced and marked as voxels to be verified. The object occupancy probability is retained, and the corresponding category, the verified category confidence value and the verification mark are recorded in the three-dimensional semantic map. The category confidence value represents the degree of confidence of the corresponding category after geometric verification; The reachable and restricted areas are divided according to the object occupancy probability, category and geometric information of the three-dimensional semantic map, and the voxel or its projection position is used as planning node; The semantic risk is determined based on the category confidence value and the danger of the corresponding area. The movement cost is determined based on the movement distance between the planning nodes. The obstacle proximity penalty is determined based on the proximity of the planning node to the obstacle. The movement cost, semantic risk, deviation map and obstacle proximity penalty are combined with non-negative weights to form the path cost. The area attributes and path costs are recorded according to the location of the planning nodes to form the cost map. The restricted area is set as an impassable constraint. The operation path is generated in the reachable area. For holes lacking observation within the coverage area of the operation path, voxels with map confidence scores below a threshold, and voxels requiring verification, a supplementary scanning task is generated. The map confidence score characterizes the observation reliability of the corresponding voxel. Acquire new observation data from reachable supplementary viewpoints, and sequentially perform time alignment, candidate observation data generation, source confidence calculation and availability mask generation, cross-modal spatial correlation and fusion, pose estimation and sub-map accumulation, 3D reconstruction and prediction category verification, update the 3D semantic map and cost map, and update the job path according to the updated cost map.
9. A vision-sound wave-based 3D modeling and path planning system, characterized in that, include: The module includes a synchronous acquisition module, a calibration and coordinate transformation module, a quality assessment module, a correlation and fusion module, a pose estimation and multi-frame registration module, a 3D reconstruction network module, a semantic rule verification module, and a path planning module. The synchronous acquisition module is used to acquire visual observation data, structured light observation data, and acoustic observation data, and to perform time alignment. The calibration and coordinate transformation module is used to generate candidate observation data in the same coordinate system based on the joint calibration parameters. The quality assessment module is used to calculate visual, structured light, and acoustic confidence scores based on evaluation metrics of image features, structured light depth, and acoustic echo, and to generate an availability mask indicating whether the observation is available. The association and fusion module is used to perform cross-modal spatial association on candidate observation data to form association groups on the same physical surface. The dominant mode is determined based on visual confidence and the validity of acoustic observation data. The available observations are indicated by the source participation rules of the dominant mode and the mask in each confidence group. The fusion point, fusion confidence, and fusion point position deviation degree representing position error are obtained. The pose estimation and multi-frame registration module is used to estimate the pose based on the fusion points of consecutive frames and accumulate them to form a sub-map; The 3D reconstruction network module is used to input the 3D coordinates, fusion confidence, and the corresponding color and echo intensity of the observation in the sub-map into the 3D reconstruction network, and output the object occupancy probability of each voxel geometry and the semantic category probability of each environment category. The semantic rule verification module is used to verify the predicted category corresponding to the semantic category probability based on the voxel geometry of the sub-map, determine the category and category confidence value, and record the occupancy probability, category, category confidence value and geometric information according to the voxel position to form a three-dimensional semantic map. The path planning module is used to divide the accessible area and the restricted area according to the occupancy, category and geometric information of the three-dimensional semantic map, map the category information into semantic risk, combine the deviation map obtained by the propagation of fusion confidence and fusion point position deviation, determine the path cost of the planning node, construct the cost map and generate the operation path.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements a vision-sound wave-based three-dimensional modeling and path planning method according to any one of claims 1 to 8.
