Auxiliary path planning method, system and device and underwater navigation method
By using obstacle lists for obstacle traversal and path planning in underwater navigation, the problem of low efficiency of underwater navigation path planning in the prior art is solved, and more efficient path planning and resource utilization are achieved.
Patent Information
- Application Number
- CN202411118714.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-15
- Publication Date
- 2024-11-01
AI Technical Summary
The existing underwater navigation path planning methods are inefficient in processing obstacles, and a complete space search is still required in environments without or with few obstacles, resulting in waste of resources.
The auxiliary path planning method is used to traverse obstacles through the obstacle list, rather than traversing in the image space, calculate the dangerous distance of the nearest obstacle, set the path points, divide the paths, and optimize the path planning.
Improve the efficiency of path planning, reduce computing resource occupation, avoid resource waste when there are no obstacles, and pre-plan multiple paths to flexibly select suitable paths.
Smart Images

Figure CN118884449A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of underwater navigation technology, and in particular to an auxiliary path planning method, system and device, and an underwater navigation method. Background Art
[0002] Compared with ground roads, obstacles such as reefs under the waterway are invisible. Therefore, when ships, submarines and other equipment are traveling on the waterway, they need to detect and avoid obstacles on the current path to avoid the risk of ships, submarines, etc. running aground or being hit by a collision. The existing path planning methods are mainly designed and developed based on A* and RRT. The path planning methods need to search and plan in the entire spatial domain or the downsampled spatial domain, which leads to low computational efficiency of the existing path planning methods. In an environment with few or no obstacles, a complete spatial search is still required, resulting in a certain degree of resource waste. Summary of the invention
[0003] An object of the present invention is to provide an auxiliary path planning method, system and device and an underwater navigation method, wherein the auxiliary path planning method performs obstacle traversal in an obstacle list rather than in an image space, which makes the auxiliary path planning method of the present invention more efficient when performing path planning.
[0004] According to one aspect of the present invention, the present invention provides an auxiliary path planning method, wherein the auxiliary path planning method comprises the following steps: S1, get the current path; S2, adding the starting point, end point and direction of the current path to the path directed graph; S3, traversing the obstacle list to determine whether there is an obstacle on the current path; S4, when there is an obstacle on the current path, calculating the danger distance on both sides of the nearest obstacle according to the shape of the nearest obstacle, and setting a left path point and a right path point outside the danger distance; S5, dividing the current path into Subpath, Subpath, Subpaths and subpath; S6, inserting the left path point and the right path point into the path directed graph and inserting Subpath, Subpath, Subpaths and The direction of the subpath; S7, traverse the path directed graph and select a suitable path as the planned path.
[0005] As a possible implementation method, in step S1, the origin of the sonar image of the forward-looking sonar is taken as the path starting point, the far end position in the forward direction is taken as the path end point, and the straight line path between the path starting point and the path end point is taken as the current path.
[0006] As a possible implementation method, in step S1, the Subpath, Subpath, Subpaths and subpath as the current path.
[0007] As a possible implementation method, before step S1, the auxiliary path planning method further includes the following steps: Detecting obstacles in the sonar image of the forward-looking sonar by a target detection method; The location information of obstacles is saved in the obstacle list in the form of rectangles.
[0008] As a possible implementation method, in step S3, the obstacle list is traversed to determine whether the current path intersects with the rectangle. When the current path intersects with the rectangle, it is determined that there is an obstacle on the current path.
[0009] As a possible implementation method, in step S7, after traversing the path directed graph, the path with the least turning points is selected as the planned path; or, in step S7, after traversing the path directed graph, the path with the shortest distance is selected as the planned path; or, in step S7, after traversing the path directed graph, the path with the largest turning radius is selected as the planned path.
[0010] According to another aspect of the present invention, the present invention further provides an underwater navigation method, wherein the underwater navigation method comprises the following steps: S1, get the current path; S2, adding the starting point, end point and direction of the current path to the path directed graph; S3, traversing the obstacle list to determine whether there is an obstacle on the current path; S4, when there is an obstacle on the current path, calculating the danger distance on both sides of the nearest obstacle according to the shape of the nearest obstacle, and setting a left path point and a right path point outside the danger distance; S5, dividing the current path into a BL sub-path, a LE sub-path, a BR sub-path and a RE sub-path according to the left path point and the right path point; S6, inserting the left path point and the right path point into the path directed graph and inserting Subpath, Subpath, Subpaths and The direction of the subpath; S7, traversing the path directed graph, and selecting a suitable path as the planned path; S8, allowing the aircraft to move according to the planned path.
[0011] According to another aspect of the present invention, the present invention also provides an auxiliary path planning system, which includes: A path acquisition unit, used to acquire the current path; A path directed graph management unit, used for adding the starting point, end point and direction of the current path to the path directed graph; An obstacle judgment unit, used for traversing the obstacle list to judge whether there is an obstacle on the current path; A path point setting unit, configured to calculate the danger distance on both sides of the nearest obstacle according to the shape of the nearest obstacle when there is an obstacle on the current path, and to set a left path point and a right path point outside the danger distance; a subpath division unit, configured to divide the current path into a BL subpath, a LE subpath, a BR subpath, and a RE subpath according to the left path point and the right path point, wherein the path directed graph management unit is further configured to insert the left path point and the right path point into the path directed graph and insert the directions of the BL subpath, the LE subpath, the BR subpath, and the RE subpath; The path planning unit is used to traverse the path directed graph to select a suitable path as the planned path.
[0012] As a possible implementation method, the auxiliary path planning system also includes an obstacle list acquisition unit, which is used to detect obstacles in the sonar image of the forward-looking sonar through a target detection method and save the position information of the obstacles in a rectangular form in an obstacle list.
[0013] According to another aspect of the present invention, the present invention further provides an auxiliary path planning device, comprising a processor and a memory coupled to the processor, wherein the memory stores a code, and the processor is configured to execute the code. When the code is executed, the auxiliary path planning device executes an auxiliary path planning method, wherein the auxiliary path planning method comprises the following steps: S1, get the current path; S2, adding the starting point, end point and direction of the current path to the path directed graph; S3, traversing the obstacle list to determine whether there is an obstacle on the current path; S4, when there is an obstacle on the current path, calculating the danger distance on both sides of the nearest obstacle according to the shape of the nearest obstacle, and setting a left path point and a right path point outside the danger distance; S5, dividing the current path into Subpath, Subpath, Subpaths and subpath; S6, inserting the left path point and the right path point into the path directed graph and inserting Subpath, Subpath, Subpaths and The direction of the subpath; S7, traverse the path directed graph and select a suitable path as the planned path.
[0014] Compared with the prior art, the present invention has at least the following beneficial effects: First, the auxiliary path planning method performs obstacle traversal in the obstacle list rather than in the image space, which makes the auxiliary path planning method of the present invention more efficient in path planning; Second, the auxiliary path planning method does not occupy computing resources when there are no obstacles on the waterway. Therefore, the auxiliary path planning method of the present invention does not normally occupy computing resources, which is conducive to reducing the system burden. Third, the auxiliary path planning method can call the coordinates of the obstacles in the obstacle list, so there is no need to model the overall environment of the obstacles in the process of planning the path, so that the auxiliary path planning method of the present invention is more efficient in path planning; Fourthly, the auxiliary path planning method of the present invention pre-plans multiple feasible paths, so that before outputting the planned path, a suitable path can be more flexibly selected as the planned path, and then outputted to meet the navigation needs of different aircraft.
[0015] Other beneficial effects of the present invention will be further illustrated in the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 It is a flowchart of an auxiliary path planning method according to a preferred embodiment of the present invention.
[0017] Figure 2It is a schematic diagram of one of the processes of planning a path according to the auxiliary path planning method of the above preferred embodiment of the present invention.
[0018] Figure 3 It is a schematic diagram of the second process of planning a path according to the auxiliary path planning method of the above preferred embodiment of the present invention.
[0019] Figure 4 It is a schematic diagram of the third process of planning a path according to the auxiliary path planning method of the above preferred embodiment of the present invention.
[0020] Figure 5 It is a schematic diagram of the fourth process of planning a path according to the auxiliary path planning method of the above preferred embodiment of the present invention.
[0021] Figure 6 It is a flowchart of an auxiliary path planning method according to another preferred embodiment of the present invention.
[0022] Figure 7 It is a block diagram of an auxiliary path planning system according to another preferred embodiment of the present invention.
[0023] Figure 8 It is a block diagram of an auxiliary path planning device according to another preferred embodiment of the present invention.
[0024] In the figure: 10. Obstacle; 11. First obstacle; 12. Second obstacle; 13. Third obstacle; 700, auxiliary path planning system; 710, path acquisition unit; 720, path directed graph management unit; 730, obstacle judgment unit; 740, path point setting unit; 750, sub-path division unit; 760, path planning unit; 770, obstacle list acquisition unit; 800, auxiliary path planning device; 810, processor; 820, memory; 830, transceiver. DETAILED DESCRIPTION
[0025] Before describing in detail any embodiment of the present invention, it should be understood that the present invention is not limited in its application to the construction and arrangement details of the components described below or illustrated in the following figures. The present invention can have other embodiments and can be practiced or carried out in various ways. In addition, it should be understood that the words and terms used here are for descriptive purposes and should not be considered restrictive. The use of "including" or "having" and its variations herein is intended to cover the items and their equivalents and additional items displayed below. Unless otherwise specified or limited, the terms "install", "connect", "support" and "couple" and their variations are widely used and cover direct installation and indirect installation, connection, support and connection. In addition, "connect" and "couple" are not limited to physical or mechanical connections or connections.
[0026] Furthermore, on the first aspect, in the disclosure of the present invention, the terms "longitudinal", "lateral", "upper", "lower", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", etc., indicating the orientation or position relationship, are based on the orientation or position relationship shown in the accompanying drawings, which are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operate in a specific orientation, and therefore the above terms cannot be understood as limitations on the present invention; on the second aspect, the term "one" should be understood as "at least one" or "one or more", that is, in one embodiment, the number of an element may be one, while in another embodiment, the number of the element may be multiple, and the term "one" cannot be understood as a limitation on the quantity.
[0027] The auxiliary path planning method of the present invention aims to solve the problem of how to improve the efficiency of path planning when there are obstacles on the waterway, wherein the auxiliary path planning method can be implemented based on the sonar image of the forward-looking sonar, wherein the reference is made to the attached Figures 1 to 5 , the auxiliary path planning method of the present invention includes the following steps.
[0028] Step 1: Detect an obstacle 10. Specifically, the auxiliary path planning method performs target detection on the sonar image of the forward-looking sonar, obtains the position information of the obstacle 10 and saves it in an obstacle list. In other words, what is saved in the obstacle list is the coordinates of the obstacle 10, that is, the obstacle 10 exists in the obstacle list in a parameterized form.
[0029] For example, in a specific example of the auxiliary path planning method of the present invention, a frame of sonar image of the forward-looking sonar can be detected by a target detection method to obtain three obstacles 10, and the obstacles 10 may include reefs, shipwrecks, etc., wherein the sonar image is detected by the forward-looking sonar with a range of 200m and a forward-looking opening angle of 180°. After obtaining the three obstacles 10, the position information of the obstacles 10 is saved in the obstacle list in the form of a rectangle, and the rectangle is the minimum circumscribed rectangle of the obstacle 10. In order to facilitate the description and understanding of the content of the present invention, in the following description, the three obstacles 10 can be defined as a first obstacle 11, a second obstacle 12, and a third obstacle 13, respectively.
[0030] It is worth mentioning that the number of obstacles 10 in the three obstacles 10 obtained by detecting one frame of the forward-looking sonar image through the target detection method is only an example. In actual applications, the number of obstacles 10 obtained by detecting one frame of the forward-looking sonar image through the target detection method may be greater. The specific content of the target detection method will be disclosed in detail later.
[0031] Step 2: Set the current path. Select the direction of travel, and in the sonar image of the forward-looking sonar, set the origin of the sonar image as the path starting point. , set the far end of the sonar image (for example, it can be the farthest end) as the path end point , the starting point of the path and the end point of the path The straight line path between , and the current path The starting point, end point and direction of a path are added to a directed graph.
[0032] For example, in a specific example of the auxiliary path planning method of the present invention, the direction of travel of the aircraft (for example, the aircraft may be an unmanned ship, a submarine, etc.) is set to be straight ahead, and the origin in the sonar image of the forward-looking sonar is set to be the starting point of the path. , the point 200m ahead is the end point of the path , the current path is , the current path is added to the path directed graph.
[0033] Step 3: Obstacle avoidance detection. Traverse the obstacle list and if there is an obstacle 10 in the current path , the auxiliary path planning method calculates the path points for obstacle avoidance. Since the obstacle 10 is parameterized in the obstacle list, the current path The starting point of the path and the end point of the path is also parameterized, so the auxiliary path planning method can determine the current path after traversing the obstacle list. and the rectangle corresponding to the obstacle intersect, and determine whether the obstacle 10 is in the current path. If the current path If the rectangle corresponding to the obstacle 10 intersects, it indicates that the obstacle 10 is in the current path. , accordingly, if the current path and the rectangle corresponding to the obstacle 10 does not intersect, indicating that the current path Said obstacle 10 is absent.
[0034] Step 4: Calculate the path points for obstacle avoidance. Get the current path The nearest obstacle on the Figure 3 In step 4, the nearest obstacle may be the second obstacle 12. The danger distances on both sides of the second obstacle 12 are calculated according to the shape of the second obstacle 12, and two path points are set outside the danger distances on both sides. For the convenience of description and understanding, the two path points set outside the danger distances on both sides of the second obstacle 12 may be defined as a first left path point and a first right waypoint , at which point the path starts and the first left waypoint The straight path between The path ends at and the first left waypoint The straight path between The path starting point no longer intersects with the rectangle corresponding to the second obstacle 12. and the first right path point The straight path between The path ends at and the first right path point The straight path between The rectangle corresponding to the second obstacle 12 no longer intersects, so the auxiliary path planning method achieves obstacle avoidance of the second obstacle 12.
[0035] Step 5: According to the first left path point and the first right path point , the current path Divide into subpaths ( subpath), subpath ( subpath), subpath ( subpath) and subpath ( subpath), where subpath is the starting point of the path To the first left waypoint Paths between, subpaths is the first left path point To the end of the path Paths between, subpaths is the starting point of the path To the first right path point Paths between, subpaths is the first right path point To the end of the path The path between the subpaths , subpath , subpath and subpaths The current path does not intersect with the rectangle corresponding to the second obstacle 12. That is, in order to avoid the second obstacle 12, the current path is divided into two subpaths, one of which is , and the other subpath is , subpath and the rectangle corresponding to the second obstacle 12 do not intersect, the subpath and the rectangle corresponding to the second obstacle 12 do not intersect. It can be understood that in the path directed graph, the first left path point can be inserted and the first right path point and insert subpaths , subpath , subpath , subpath Direction.
[0036] Step 6: and subpaths Avoid obstacles. If the subpath Subpaths in If there is an obstacle, get the subpath The nearest obstacle on the Figure 4The nearest obstacle may be the first obstacle 11. The danger distances on both sides of the first obstacle 11 are calculated according to the shape of the first obstacle 11, and a second left path point is set outside the danger distances on both sides. and a second right waypoint , at which point the path starts and the second left waypoint The straight path between and the rectangle corresponding to the first obstacle 11 no longer intersects, and the second left path point and the first left waypoint The straight path between The rectangle corresponding to the first obstacle 11 no longer intersects, and the path starting point and the second right path point The straight path between The rectangle corresponding to the first obstacle 11 no longer intersects, and the second right path point and the first left waypoint The straight path between The rectangle corresponding to the first obstacle 11 no longer intersects, so the auxiliary path planning method can avoid the first obstacle 11. and the second right path point , the subpath Divide into subpaths and subpaths , where the subpath and the rectangle corresponding to the first obstacle 11 no longer intersect, the subpath The rectangle corresponding to the first obstacle 11 no longer intersects.
[0037] Accordingly, if the subpath Subpaths in If there are obstacles, get the path The nearest obstacle on the Figure 4 The nearest obstacle may be the third obstacle 13. The danger distances on both sides of the third obstacle 13 are calculated according to the shape of the third obstacle 13, and a third left path point is set outside the danger distances on both sides. and a third right waypoint , at this time the first left path point and the third left waypoint The straight path between and the rectangle corresponding to the third obstacle 13 no longer intersect each other, and the third left path point and the end point of the path The straight path between and the rectangle corresponding to the third obstacle 13 no longer intersect, and the first left path point and the third right waypoint The straight path between and the rectangle corresponding to the third obstacle 13 no longer intersects, and the third right path point and the end point of the path The straight path between The rectangle corresponding to the third obstacle 13 no longer intersects, so the auxiliary path planning method can avoid the third obstacle 13. and the third right waypoint , the path Divide into subpaths and subpaths .
[0038] In other words, refer to the attached Figure 4 , in the current path Five paths are planned, namely: Path 1, ; Path 2, ; Path 3, ; Path 4, ; Path 5, , wherein path 1, path 2, path 3, path 4 and path 5 can avoid the first obstacle 11, the second obstacle 12 and the third obstacle 13. In other words, there is no obstacle 10 on path 1, path 2, path 3, path 4 and path 5.
[0039] Step 7: traverse the path directed graph and select a suitable path as the planned path. For example, in a specific example of the auxiliary path planning method of the present invention, after traversing the path directed graph, the auxiliary path planning method can select the path with the shortest distance. As the planned path, refer to the attached Figure 5 . Optionally, in another specific example of the auxiliary path planning method of the present invention, after traversing the path directed graph, the auxiliary path planning method may select a path with the least turning points as the planned path. Optionally, in another specific example of the auxiliary path planning method of the present invention, after traversing the path directed graph, the auxiliary path planning method may select a path with the largest turning radius as the planned path.
[0040] According to another aspect of the present invention, referring to the attached Figure 6The present invention further provides an auxiliary path planning method, wherein the auxiliary path planning method comprises the following steps: S1, obtain the current path ; S2, the current path The starting point, end point and direction of the path are added to the directed graph; S3, traverse the obstacle list and determine the current path Whether the obstacle 10 exists; S4, in the current path When the obstacle 10 exists, the danger distance on both sides of the nearest obstacle is calculated according to the shape of the nearest obstacle, and the first left path point is set outside the danger distance. and the first right path point ; S5, according to the first left path point and the second right path point , the current path Divide into subpaths ( subpath), subpath ( subpath), subpath ( subpath) and subpath ( subpath); S6: insert the first left path point into the path directed graph and the first right path point and insert subpaths , subpath , subpath and subpaths Direction of S7, traverse the path directed graph and select a suitable path as the planned path.
[0041] Through the above steps, the auxiliary path planning method of the present invention can traverse the obstacle 10 in the obstacle list instead of traversing the obstacle 10 in the image space, which makes the auxiliary path planning method of the present invention more efficient when performing path planning; and the auxiliary path planning method does not occupy computing resources when there is no obstacle 10 on the waterway, so the auxiliary path planning method of the present invention will not occupy computing resources in a normalized manner, which is conducive to reducing the system burden; at the same time, the auxiliary path planning method can call the coordinates of the obstacle 10 in the obstacle list, so there is no need to model the overall environment of the obstacle 10 in the process of planning the path, so that the auxiliary path planning method of the present invention is more efficient when performing path planning. In addition, the auxiliary path planning method of the present invention pre-plans multiple feasible paths, so that before outputting the planned path, it can more flexibly select a suitable path as the planned path, and output it later to meet the navigation needs of different aircraft.
[0042] Reference Figure 7 The present invention also provides an auxiliary path planning system 700, which includes a path acquisition unit 710, a path directed graph management unit 720, an obstacle judgment unit 730, a path point setting unit 740, a sub-path division unit 750 and a path planning unit 760. The path acquisition unit 710 is used to obtain the current path The path directed graph management unit 720 is used to convert the current path The starting point, end point and direction of the current path are added to the path directed graph, and the obstacle judgment unit 730 is used to traverse the obstacle list to judge the current path Whether there is the obstacle 10, the path point setting unit 740 is used to When the obstacle 10 exists, the danger distance on both sides of the nearest obstacle is calculated according to the shape of the nearest obstacle, and the first left path point is set outside the danger distance. and the first right path point The sub-path division unit 750 is used to divide the first left path point into and the first right path point , the current path Divide into subpaths ( subpath), subpath ( subpath), subpath ( subpath) and subpath ( sub-path), wherein the path directed graph management unit 720 is further used to insert the first left path point in the path directed graph and the first right path point and insert subpaths ( subpath), subpath ( subpath), subpath ( subpath) and subpath ( The path planning unit 760 is used to traverse the path directed graph to select a suitable path as the planned path.
[0043] In a possible implementation, continue to refer to the attached Figure 7 The auxiliary path planning system 700 also includes an obstacle list acquisition unit 770, which is used to detect the obstacle 10 in the sonar image of the forward-looking sonar through a target detection method and save the position information of the obstacle 10 in the obstacle list in a rectangular form.
[0044] Next, the content of the target detection method is further disclosed and explained, through which it is possible to detect whether the obstacle 10 exists in the sonar image of the forward-looking sonar. Specifically, the target detection method includes the following steps.
[0045] Step 1, data set acquisition. Specifically, the data of the forward-looking sonar is sorted, and the sonar image of the forward-looking sonar is uniformly enhanced and numerically normalized to reduce the numerical differences caused by different forward-looking sonar devices and different collection environments used to collect sonar data, and then the target is image segmented and labeled.
[0046] In some feasible examples of the present invention, the target detection method can select a data set of 4500 images containing two types of targets, reefs and shipwrecks, first perform Gaussian filtering on the sonar image to suppress the noise signal, and then perform normalization on the enhanced sonar image to control its numerical domain. After the enhanced sonar image is normalized, it is annotated, and the data is segmented and annotated to generate a label map, and the pixel values in the map are Respectively indicate that the pixel is background, reef and shipwreck. Due to the difference in difficulty of collecting reefs and shipwrecks, the proportion of the two types of targets in the data set is different. The number of pictures containing reefs, shipwrecks and no target data in the 4500 data sets can be but not limited to: 3124 pictures containing reefs, 988 pictures containing shipwrecks, and 388 pictures containing no target data. It can be understood that in other specific examples of the present invention, the target detection method can select a larger or smaller number of data sets, that is, the data set selected by the target detection method can contain more or less than 4500 pictures.
[0047] Step 2: Build an obstacle segmentation model with a codec structure. Both the encoder and decoder are implemented by stacked residual dilated convolution module groups. The encoder and decoder have the same number of layers, and the dilation rate of the residual dilated convolution module groups of the corresponding number of layers is the same, where the dilation rate of the residual dilated convolution module group is the order of the module group. For example, the third-order dilated convolution module group is a residual dilated convolution module group with a dilation rate of 3 in the dilated convolution layer. The feature map in the encoder is added to the decoder of the corresponding number of layers through jump connections.
[0048] In some feasible examples of the present invention, the encoder is composed of a first-order hole convolution module group, a second-order hole convolution module group, a third-order hole convolution module group and a fifth-order hole convolution module group, and the decoder is composed of a first-order hole convolution module group, a second-order hole convolution module group, a third-order hole convolution module group and a fifth-order hole convolution module group. The first-order hole convolution module group of the encoder and the first-order hole convolution module group of the decoder have the same structure, the second-order hole convolution module group of the encoder and the second-order hole convolution module group of the decoder have the same structure, the third-order hole convolution module group of the encoder and the third-order hole convolution module group of the decoder have the same structure, and the fifth-order hole convolution module group of the encoder and the fifth-order hole convolution module group of the decoder have the same structure.
[0049] The obstacle segmentation model input in the encoder-decoder structure is After the single channel image, The single-channel image passes through the encoder's first-order hole convolution module group and increases the feature map channel to , The feature map of is passed through the second-order hole convolution module group and the feature map channel is increased to , retaining the output of the second-order hole convolution module group as the feature Figure 1 , then The feature map of continues to pass through the third-order hole convolution module group and increases the feature map channel to , retaining the output of the third-order hole convolution module group as the feature Figure 2 , then The feature map of continues to pass through the fifth-order hole convolution module group and increases the feature map channel to , recorded as feature Figure 3 In other words, The feature map is characterized Figure 3 .then The feature map of is passed through the decoder's fifth-order hole convolution module group to obtain The feature map is then The feature map concatenation feature Figure 2 get , The feature map of is passed through the third-order hole convolution module group and reduces the feature map channel to , then The feature map concatenation feature Figure 1 get , The feature map of is passed through the second-order hole convolution module group and reduces the feature map channel to ,then The feature map of is passed through the first-order hole convolution module group and reduces the feature map channel to ,at this time Indicates the number of categories detected by the model. In this example, .
[0050] Step 3, training the obstacle segmentation model of the codec structure. The data set is input into the obstacle segmentation model of the codec structure, and the parameters of the obstacle segmentation model of the codec structure are adjusted by gradient descent. The cost-sensitive training is used to make the loss function focus on the segmentation accuracy of non-background pixels, so that the obstacle segmentation model of the codec structure can effectively segment the target of the sonar image of the forward-looking sonar.
[0051] In some feasible examples of the present invention, a biased loss function is set for the segmentation result to implement cost-sensitive training, and its formula is: , where the parameters Indicates the number of categories, parameters Indicates the current category number, parameter Represents the loss weight of this category, parameter Indicates the true probability of the category, with a value of 0 or 1. The value is the pixel value at the corresponding position of the label image. The parameter The obstacle segmentation model representing the codec structure predicts the probability that the pixel belongs to this category. For example, in some feasible examples of the present invention, the loss weights of background, reef, and shipwreck are can be set as In this case, the accuracy of training the distinction between reefs and shipwrecks is more sensitive, and there is a slight tilt to the reef. The obstacle segmentation model of the codec structure is trained with this loss function to obtain the preliminary weights of the obstacle segmentation model of the codec structure.
[0052] Step 4: Organize the feature domain data set and perform few-sample category augmentation. Analyze the category distribution of the data set, use the feature maps at all levels output by the encoder of the obstacle segmentation model of the codec structure as the feature domain, organize the feature maps at all levels into a feature domain data set, resample the feature domain for the few-sample category, increase the number of samples of the category in proportion, and add the new samples obtained after resampling to the feature domain data set.
[0053] In some feasible examples of the present invention, the feature maps corresponding to the existing data set samples are organized into a feature domain data set, and each sample in the feature domain data set contains a feature Figure 1 ,feature Figure 2 and Features Figure 3 Extract the feature maps of each level of the sunken ship sample output from the encoder training set of the obstacle segmentation model of the encoder-decoder structure, that is, the feature maps in step 2 Figure 1 ,feature Figure 2 and Features Figure 3 , the feature Figure 1 ,feature Figure 2 and Features Figure 3 Expand to get three one-dimensional vectors, in the feature Figure 1 ,feature Figure 2 and Features Figure 3 The nearest five similar sample feature vectors are found in the vector space, and one is randomly selected as the neighboring sample. The neighboring sample and the current sample are interpolated to obtain the augmented sample, and added to the feature domain data set, where the augmented sample is a new sample obtained after resampling. Compared with the method of augmenting on the sonar image, the present invention augments on the feature domain, which makes the augmented sample more abstract, has a wider feature dimension, and is easier to be accepted by the decoder.
[0054] Step 5: Fine-tune the obstacle segmentation model of the encoder-decoder structure. Use the feature domain dataset to train the decoder and convert the sample features into Figure 1 ,feature Figure 2 and Features Figure 3 Input the decoder according to the model structure and fine-tune the decoder. Then, combine the encoder and the fine-tuned decoder, and use the dataset in step 1 to fine-tune the obstacle segmentation model of the encoder-decoder structure.
[0055] In a feasible example of the present invention, the augmented samples of the shipwreck category are added to the feature domain dataset, and the decoder is fine-tuned and trained. At this time, the loss weights of each category are reset to , and finally combine the encoder weights and the fine-tuned decoder weights and perform fine-tuning training on the dataset in step 1.
[0056] Step 6, the obstacle segmentation model of the encoder-decoder structure infers target recognition. The encoder and decoder are connected, and the enhanced normalized sonar image is input to obtain the target recognition result of the segmentation output. If necessary, the segmentation result can be subjected to operations such as connected region analysis to obtain the minimum bounding rectangle of the obstacle 10, so that the obstacle 10 can be added to the obstacle list in the form of a rectangle.
[0057] In a feasible example of the present invention, the weights obtained by fine-tuning the training with the enhanced data set are used as the weights of the inference model, the sonar image is input into the obstacle segmentation model of the codec structure, and the argmax operation is performed on each channel of the output segmented image to obtain the category with the maximum predicted probability as the model output category to obtain the target recognition result.
[0058] Reference Figure 8 The present invention further provides an auxiliary path planning device 800, which includes a processor 810 and a memory 820 coupled to the processor 810, wherein the memory 820 stores a code, and the processor 810 is configured to execute the code. When the code is executed, the auxiliary path planning device 800 executes the auxiliary path planning device 800. Figure 6 The auxiliary path planning method is shown.
[0059] In a possible implementation, the auxiliary path planning device 800 further includes a transceiver 830 , and the transceiver 830 communicates with the processor 810 and the memory 820 via an internal connection path.
[0060] It should be understood by those skilled in the art that the embodiments of the present invention described above and shown in the accompanying drawings are only examples and do not limit the present invention. The purpose of the present invention has been fully and effectively achieved. The functional and structural principles of the present invention have been demonstrated and explained in the embodiments, and the embodiments of the present invention may be deformed or modified in any way without departing from the principles.
Claims
1. An auxiliary path planning method, characterized in that: The auxiliary path planning method comprises the following steps: S1, get the current path; S2, adding the starting point, end point and direction of the current path to the path directed graph; S3, traversing the obstacle list to determine whether there is an obstacle on the current path; S4, when there is an obstacle on the current path, calculating the danger distance on both sides of the nearest obstacle according to the shape of the nearest obstacle, and setting a left path point and a right path point outside the danger distance; S5, dividing the current path into Subpath, Subpath, Subpaths and subpath; S6, inserting the left path point and the right path point into the path directed graph and inserting Subpath, Subpath, Subpaths and The direction of the subpath; S7, traverse the path directed graph and select a suitable path as the planned path.
2. The auxiliary path planning method according to claim 1, characterized in that: In the step S1, the origin of the sonar image of the forward-looking sonar is taken as the path starting point, the far end position in the forward direction is taken as the path end point, and the straight line path between the path starting point and the path end point is taken as the current path.
3. The auxiliary path planning method according to claim 1, characterized in that: In step S1, the Subpath, Subpath, Subpaths and subpath as the current path.
4. The auxiliary path planning method according to claim 1, characterized in that: Before step S1, the auxiliary path planning method further comprises the steps of: Detecting obstacles in the sonar image of the forward-looking sonar by a target detection method; The location information of obstacles is saved in the obstacle list in the form of rectangles.
5. The auxiliary path planning method according to claim 4, characterized in that: In step S3, the obstacle list is traversed to determine whether the current path intersects with the rectangle. When the current path intersects with the rectangle, it is determined that there is an obstacle on the current path.
6. The auxiliary path planning method according to any one of claims 1 to 5, characterized in that: In the step S7, after traversing the path directed graph, the path with the least turning points is selected as the planned path; or, in the step S7, after traversing the path directed graph, the path with the shortest distance is selected as the planned path; or, in the step S7, after traversing the path directed graph, the path with the largest turning radius is selected as the planned path.
7. An underwater navigation method, characterized in that: The underwater navigation method comprises the following steps: Planning a path by using the auxiliary path planning method as described in any one of claims 1 to 6; Allows the vehicle to move according to the planned path.
8. Auxiliary path planning system, characterized in that: include: A path acquisition unit, used to acquire the current path; A path directed graph management unit, used for adding the starting point, end point and direction of the current path to the path directed graph; An obstacle determination unit, used for traversing the obstacle list to determine whether there is an obstacle on the current path; A path point setting unit, configured to calculate the danger distance on both sides of the nearest obstacle according to the shape of the nearest obstacle when there is an obstacle on the current path, and to set a left path point and a right path point outside the danger distance; a subpath division unit, configured to divide the current path into a BL subpath, a LE subpath, a BR subpath, and a RE subpath according to the left path point and the right path point, wherein the path directed graph management unit is further configured to insert the left path point and the right path point into the path directed graph and insert the directions of the BL subpath, the LE subpath, the BR subpath, and the RE subpath; The path planning unit is used to traverse the path directed graph to select a suitable path as the planned path.
9. The auxiliary path planning system according to claim 8, characterized in that: The auxiliary path planning system also includes an obstacle list acquisition unit, which is used to detect obstacles in the sonar image of the forward-looking sonar through a target detection method and save the position information of the obstacles in an obstacle list in a rectangular form.
10. The auxiliary path planning device is characterized in that: It includes a processor and a memory coupled to the processor, the memory stores codes, and the processor is configured to execute the codes. When the codes are executed, the auxiliary path planning device executes the auxiliary path planning method as described in any one of claims 1 to 6.
Citation Information
Patent Citations
Circular roadblock avoiding-based sea route planning algorithm
CN110470299A
Driving path planning method and related device
CN113124891A
Rapid construction method and system for three-dimensional space flight path of unmanned aerial vehicle
CN113359840A
Full-coverage path planning method and device, electronic equipment and storage medium
CN113485328A
Face detection and recognition method and device based on deep learning
CN115359525A
