Vector data partition correction method based on deep learning
Through the U2-Net model and specific algorithms based on deep learning, the problem of universality of urban and rural road correction is solved, high-precision vector data correction is achieved, and the robustness and universality of the correction effect are improved.
Patent Information
- Application Number
- CN202210385599.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-13
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2042-04-13
AI Technical Summary
Existing technology is difficult to achieve accurate correction of road vector data in urban and rural areas, especially due to the lack of universality due to the complexity of urban roads and the scarcity of rural road intersections.
The U2-Net model based on deep learning is used to automatically distinguish urban and rural roads by adjusting model parameters and iterative training, and uses specific algorithms for correction, including initial feature set extraction, buffer constraints, angle constraints, and vector lines. Decomposition and random average sampling and other steps improve the correction accuracy.
It achieves high-precision correction of urban road vector data and accurate modeling of rural road vector data, improving the robustness and universality of the correction effect.
Smart Images

Figure CN115034283B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of data processing, and in particular relates to a vector data partition correction method based on deep learning. Background Art
[0002] The accuracy and timeliness of data are particularly important for the construction of basic geographic information databases, and road vector data, which is updated quickly, is an important part of geographic information databases. The "Opinions on Promoting the Development of Geographic Information Industry" issued by the State Council clearly provides guidance for the construction of basic geographic information databases, requiring relevant departments to comprehensively improve geographic data acquisition and information processing capabilities. However, due to the significant spatial heterogeneity of urban and rural roads, the existing methods are easily restricted by regional scene changes and have the problem of low universality. Therefore, seeking a more universal method is a more complex and challenging task.
[0003] As the only way to quickly obtain information about the earth's surface over a large area, remote sensing technology has enabled humans to have a new leap in their understanding of nature, bringing humans into a new era of multi-level, multi-angle, all-weather earth observation. In existing research, vector correction methods can be divided into vector direct correction methods and vector indirect correction methods. The direct method corrects by establishing a conversion model between roads and vectors, while the indirect method achieves road vector correction by extracting roads.
[0004] Direct methods can be divided into feature-based vector correction methods and vector line-guided correction methods. Feature-based vector correction methods can usually be divided into three steps: feature recognition, feature matching, and data correction. Vector line-guided correction methods can be divided into classification-based methods, Snake-based methods, and template matching-based methods. However, due to the diversity of roads, direct methods are difficult to adapt to complex road scene changes. Therefore, indirect methods can also be used to achieve vector correction through road extraction. Indirect methods can be divided into traditional methods and deep learning methods. Traditional methods can be divided into template matching, knowledge-driven, and object-oriented. Deep learning methods use deep neural networks to extract roads by combining road characteristics, designing or improving network models, designing loss functions, etc.
[0005] Technical solutions of existing technology:
[0006] (1) A simple convolutional neural network (CNN) is used to extract roads from images. In this neural network, features are extracted in units of pixel blocks, and a fully connected layer is usually added at the end of the network for classification. Therefore, it is difficult to accurately delineate the exact contours of objects, which makes it perform poorly for road extraction tasks.
[0007] (2) LSD method: This method extracts straight road segments by edge tracking to line segment fitting based on the mechanism of edge map. This method performs Gaussian downsampling on the image and calculates the gradient value of each point and the corresponding gradient method. Then, all points are pseudo-sorted according to the gradient method to establish a list state. Next, the gradient threshold is set and the point with the largest gradient value in the list is taken as the seed point, thereby completing the road extraction by the straight line extraction method.
[0008] (3) Use support vector machine (SVM) and morphological refinement method to obtain the control points of the road in the image. Road intersections are important geographical feature points in the image. They are a kind of robust information, usually stable and reliable. The support vector machine method describes each data item as a point in n-dimensional space (where n is the vector of the feature), and the value of each feature has unique coordinates. The feature classification is achieved by obtaining a hyperplane.
[0009] (4) Correction based on Delaunay triangulation and rubber band method. This method establishes a Delaunay triangulation between the intersection points of the vector data and the center points of the image intersection, solves the coordinate transformation coefficient of the rubber band method based on three points, and then corrects all vector nodes in the triangle using the same transformation coefficient.
[0010] (5) Based on the least squares affine transformation method. This method is a linear combination of the model parameters of a regression coefficient. It is a mathematical optimization technique that is widely used in error estimation. By minimizing the square of the error and the best function matching of the serial data, this method can be used to simply obtain the position data and minimize the sum of squares between the data and the actual data. In the vector correction task, the mathematical model can be used to solve the coefficient of variation between the same-name control point pairs to correct the vector data as a whole.
[0011] Disadvantages of existing technology:
[0012] (1) Due to the great spatial heterogeneity of the scene area of the road system, it is difficult for existing methods to achieve road vector correction between urban and rural areas through a single method.
[0013] (2) Due to the complexity and diversity of urban road systems, it is difficult to correct the vector data of urban roads due to the noise images of vehicles, sign lines, vegetation, etc. on the road surface.
[0014] (3) Due to the scarcity of intersections on rural roads, it is difficult to establish a vector data correction matching model in rural road areas. Summary of the invention
[0015] In view of the shortcomings of the prior art, the problem to be solved by the present invention is to provide a vector data partition correction method based on deep learning, which can automatically distinguish urban road vector data from rural road vectors, and use corresponding algorithms to solve them, thereby improving the correction accuracy of urban road vector data, establishing a vector data correction model in rural areas, and completing the correction of rural road vector data.
[0016] In order to solve the above technical problems, the present invention is implemented by the following technical solutions:
[0017] The vector data partition correction method based on deep learning provided by the present invention comprises the following steps:
[0018] S1: Making U for Deep Learning 2 -Net model sample set, adjust the model parameters, set the learning rate to 0.001, the number of iterations to 200, and perform model training;
[0019] S2: Select the optimal model weight trained in step S1 and input urban and rural remote sensing images for road extraction;
[0020] S3: Arrange the line segments obtained by edge extraction in order;
[0021] S4: Road feature set extraction based on vector lines;
[0022] S5: Automatically divide urban roads and rural roads according to their unique attributes. If the division result is an urban road, the vector data is input to step S6; if it is a rural road, the vector data is input to step S7;
[0023] S6: Urban road vector correction;
[0024] S7: rural road vector correction;
[0025] S8: Output the corrected urban and rural road vector data.
[0026] Furthermore, the specific steps of step S4 are as follows:
[0027] Step S4.1: Extracting the initial feature set: in step S2, the urban and rural roads are extracted using the deep learning method, and in step S3, the road edge segments of the urban and rural roads are obtained. The mask method is used to superimpose the above two results to obtain the initial feature set;
[0028] Step S4.2: Extract feature sets oriented to vector lines and establish the corresponding relationship between the initial feature sets and vector lines.
[0029] Furthermore, the specific steps of step S4.2 are as follows:
[0030] Step S4.2.1: Buffer constraint: add road vector lines to the initial feature set, take any vector line as the center, and establish a buffer zone with a width of 60 meters on both sides. When the two end points of a line segment or line segment sequence in the initial feature set are within the buffer zone, use it as the feature of the vector segment, and then obtain the rural road feature set;
[0031] Step S4.2.2: Angle constraint: The urban road feature set is based on the initial feature set after the buffer zone constraint, and is further constrained according to the direction of the vector line. When the constraint requirements are met, it becomes a valid feature.
[0032] Furthermore, the specific steps of step S6 are as follows:
[0033] Step S6.1: decomposing the vector line, using the vertices of the vector line as decomposition points and using a top-down splitting method to decompose;
[0034] Step S6.2: vector line correction, using a random average sampling method to select feature points of vector data multiple times, and using the least square method to fit road lines multiple times based on the selected feature points; using a curve evaluation model to select the optimal road vector line from multiple vector lines fitted by the least square method;
[0035] Step S6.3: Move the sub-vector line toward the reference point, and extend the sub-vector line to the entire interval in the form of a function expression to achieve centering of the sub-vector line;
[0036] Step S6.4: Connect by finding the intersection points of adjacent vector lines.
[0037] Furthermore, the specific steps of step S6.2 are:
[0038] S6.2.1: Random average sampling: divide the vector line into 6 sub-intervals evenly. When selecting sample points, randomly sample 2 points in each sub-interval.
[0039] S6.2.2: Based on the sample point data, use the least squares method to fit;
[0040] S6.2.3: After fitting 2000 vector line segments, select the fitting result with the highest similarity to the road structure from the 2000 fitted line segments.
[0041] Furthermore, the specific steps of step S7 are as follows:
[0042] Step S7.1 Road edge line extraction. To obtain the optimal road edge, the present invention uses a length constraint method to take the line segment sequence with a length greater than l in the rural road feature set as the road edge line segment sequence, and the l threshold is set to 100.
[0043] Step S7.2 Road centerline inference model. The present invention reads the road width W from the vector data, and for each line segment in the line segment sequence, translates the distance W / 2 in the vertical direction to complete the road centerline extraction, and uses the centerline as the updated vector line to indirectly complete the vector line correction.
[0044] Step S7.3 determines two connection vector lines by respectively finding the intersection points and connecting the ends of the fracture vector lines, and respectively uses the following formula to find the weights of the two vectors, and uses the one with the highest weight as the connection vector line. When the weights η are the same, the present invention selects AC as the connection vector from the perspective of linear complexity.
[0045]
[0046] Where, L candidate is the candidate vector, length(L candidate ) is the length of the candidate vector, length DL (L candidate ) is the candidate vector in U 2 -Net extracts the length of the result.
[0047] From the above, the present invention has the following beneficial effects:
[0048] 1. The partitioning idea is proposed, and a robust vector data partition correction method is established. In the process of correcting vectors, this method can automatically distinguish urban road vector data from rural road vectors and use corresponding algorithms to solve them.
[0049] 2. Improve the correction accuracy of urban road vector data.
[0050] 3. Establish a vector data correction model in rural areas and complete the vector data correction of rural roads.
[0051] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the following is a detailed description in combination with the preferred embodiments and the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0052] In order to more clearly illustrate the technical solution of the embodiment of the present invention, the drawings of the embodiment are briefly introduced below.
[0053] Figure 1 Figure 2 is the initial feature set of roads, where (a) is the initial feature set of rural roads and (b) is the initial feature set of urban roads;
[0054] Figure 2It is a collection of rural road characteristics;
[0055] Figure 3 It is a map of urban road characteristics;
[0056] Figure 4 It is a schematic diagram of vector line decomposition;
[0057] Figure 5 Schematic diagram of random sampling point set, where (a) is the feature set diagram, (b) is the data expansion diagram, (c) is the interval average decomposition diagram, and (d) is the random average sampling diagram;
[0058] Figure 6 It is a schematic diagram of the centering of the sub-vector line;
[0059] Figure 7 Schematic diagram of the optimal edge constraint local result, where (a) is the optimal edge segment diagram, (b) is the feature set diagram, and (c) is U 2 -Net extraction result graph;
[0060] Figure 8 This is a schematic diagram of the road centerline reasoning model;
[0061] Fig. 9 It is a schematic diagram of rural vector line connection;
[0062] Fig.10 This is the vector correction result map of a certain urban area in Shanghai;
[0063] Fig.11 This is the vector correction result map of the urban area of Fuxin City, Liaoning Province;
[0064] Fig.12 This is a vector correction result map of a rural area in Enshi, Hubei;
[0065] Fig.13 This is a vector correction result map of a rural area in Fuxin, Liaoning;
[0066] Fig.14 This is a flow chart of the vector data partition correction method based on deep learning of the present invention. DETAILED DESCRIPTION
[0067] like Figures 1 to 14 As shown, the vector data partition correction method based on deep learning of the present invention comprises the following steps:
[0068] Step 1: Make a U for Deep Learning 2 -Net model sample set, adjust the model parameters, set the learning rate to 0.001, the number of iterations to 200, and perform model training;
[0069] Step 2: To obtain the optimal road extraction result of the model, the optimal model weight trained in step 1 is selected, and urban and rural remote sensing images are input for road extraction. This step completes the cross-regional road extraction task of urban and rural roads, eliminating the problem of poor robustness of traditional methods in road extraction;
[0070] Step 3: In order to effectively extract the edges of urban and rural roads and achieve the purpose of "replacing curves with straight lines", the line segments obtained by edge extraction are arranged in order and defined as Goup_l i = {l i0 ,l i1 ,……,l in}, where l in are line segments arranged in order;
[0071] Step 4: Extract road feature set based on vector lines;
[0072] Step 4.1: Extraction of initial feature set. In step 2, the deep learning method is used to extract urban and rural roads, and in step 3, the road edge segments of urban and rural roads are obtained. In this step, the mask method is used to superimpose the above two results to obtain the initial feature set. The initial feature set of rural and urban roads is as follows: Figure 1 shown.
[0073] Step 4.2: Extraction of feature sets oriented to vector lines: This step is to establish the correspondence between the initial feature set and the vector lines.
[0074] Step 4.2.1: Buffer constraint method. The location buffer constraint of the existing vector data can obtain the road line features near the vector line. The present invention adds road vector lines on the basis of the initial feature set, takes any vector line as the center, and establishes a buffer zone with a width of 60 meters on both sides. When the two end points of a line segment or line segment sequence in the initial feature set are located in the buffer zone, it is used as the feature of the vector line segment. Figure 1 (a) It can be seen that there are relatively few other ground line segment features in the initial feature set of rural roads, so this step directly obtains the feature set of rural road vector lines. Figure 2 As shown, the present invention uses the rural road feature set as the data source for the subsequent rural road vector correction method.
[0075] However, due to the complex distribution of land features, urban roads Figure 1 As can be seen in (b), there are other ground object line segment features caused by road misextraction in the line segment set, so further screening is needed.
[0076] Step 4.2.2: Angle constraint. The urban road feature set is based on the initial feature set after the buffer zone constraint. The present invention further constrains it according to the direction of the vector line. It becomes a valid feature only when the constraint requirements are met. Its constraint formula is shown in (1):
[0077] |Angle(v ij )-Angle(l ij )|≤σ angle (1)
[0078] In the formula, v ij is the line segment between different nodes of the vector, Angle(v ij ) represents its angle, l ij v ij Corresponding to the line segment features in the position constraint area, Angle(l ij ) means l ij Segment angle, σ angle is the angle constraint threshold. Figure 3 is a set of urban road features. The present invention uses the urban road feature set as the data source for the subsequent urban road vector correction method;
[0079] Step 5: Vector partitioning of urban and rural roads. According to the "Classification and Coding of Traffic Management Information Attributes for Urban Roads" and the "Supplementary Survey Plan for National Rural Highway Basic Data and Electronic Maps", the present invention uses GDAL to read vector data, and automatically divides urban roads and rural roads according to their unique attributes, so that targeted algorithms can be used for correction. If the division result is an urban road, the vector data is input into step 6, and if it is divided into a rural road, it is input into step 7.
[0080] Step 6: Urban road vector correction;
[0081] Step 6.1: Vector line decomposition. Vector line decomposition is mainly aimed at roads with sudden changes in direction. The vector line is decomposed at its highest point. The highest point of a curve refers to the vertex of the curve. The drastic change in the direction of the curve must occur at the vertex. Based on this feature, the present invention uses the vertex of the vector line as the decomposition point and uses a top-down splitting method to decompose, such as Figure 4 shown.
[0082] Step 6.2: Correction of sub-vector lines. Since urban roads are interfered by a large number of indicator lines, vegetation and other noises, the segment sequence extraction results are bound to contain noise. Therefore, the feature set obtained by mask processing must contain segments that are not on the road. Similarly, urban roads are greatly interfered by other landforms, so the segment extraction results are unevenly distributed in different parts of the road. In response to the above two problems, the present invention proposes a targeted solution for fitting and correcting sub-vector lines. The method uses random average sampling (step 6.2.1) to select feature points of vector data multiple times, and based on the selected feature points, the least squares method (step 6.2.2) is used to fit the road lines multiple times; at the same time, a curve evaluation model (step 6.2.3) is proposed to select the optimal road vector line from multiple vector lines fitted by the least squares method.
[0083] Step 6.2.1: Random average sampling. The objects of random average sampling in the present invention refer to the endpoints of the line segments that constitute the urban road feature set. If only the two endpoints of a long line segment are used as sampling points, it will lead to insufficient fitting data and affect the final fitting effect. Therefore, in order to increase the probability of extracting a line segment with a longer length, Figure 5 As shown in (b), the present invention expands the sample points according to a step length of 5. In this way, the longer the line segment length is, the more sample points are generated, and the higher the probability of extraction is. Taking the line segment length of 20 pixels as an example, 4 sample points can be generated. The present invention divides the vector line into 6 sub-intervals on average. When selecting sample points, 2 points are randomly sampled in each sub-interval, such as Figure 5 As shown in (d), a total of 12 points are extracted.
[0084] Step 6.2.2: The least squares method has the ability to smoothly represent the changing trend of the curve and predict the unobserved values from the same system. The sample points obtained by the random average sampling method of the present invention are all from the road feature set corresponding to the vector line. According to the characteristics of the least squares method, the present invention uses the least squares method for fitting based on the sample point data.
[0085] Step 6.2.3: Curve evaluation model. A certain amount of noise may exist in a single extraction process, which may lead to poor fitting results. Therefore, after fitting 2000 vector line segments, the present invention selects the fitting result with the highest similarity to the road structure from the 2000 fitting line segments. The measurement formula for selecting the optimal vector line is shown in (2):
[0086]
[0087] In the formula, w cur Indicates the evaluation result of the current fitting line, L indicates the current fitting line, length DL(L) is the length of the line in the road extraction result, and length(L) represents the total length of the line. The present invention defines the angle between the two end points of the fitting line in the subinterval as the local line angle, n all Represents the total number of line segments in the feature set, n right n all The number of line segments whose angle difference with the local line is less than 0.05 radians.
[0088] Step 6.3: Centering of the vector line. In order to make the vector line more accurately express the position of the road centerline, the present invention randomly selects a point p in each of the six sub-intervals on the vector line. i , perpendicular to p i The tangent line of U 2 -Vertical line l in the Net result v , when l v When formula (3) is satisfied, p i As a reference point, l v The midpoint is the reference point; if it does not meet the requirements, the point is discarded.
[0089] |length(l v )-W|≤γ (3)
[0090] In the formula, length(l v ) is the length of the vertical line, W is the road width, and γ is the distance constraint, which is set to 3 pixels in the present invention. Figure 6 As shown, the benchmark point set P = {P1, P2, P3, ..., P6}, the reference point set C = {C1, C2, C3, ..., C6}, the sub-vector line is moved toward the reference point, and the sub-vector line is extended to the entire interval according to its functional expression, so as to realize the centralization of the sub-vector line.
[0091] Step 6.4: Before and after the decomposition point, the directions of the two roads change, and there is no parallelism between adjacent sub-vector lines, so the urban road vector lines can be connected by sub-vector lines. Since the urban road vector lines of the present invention are composed of linear functions and quadratic functions, they can be connected by finding the intersection points of adjacent sub-vector lines.
[0092] Step 7: Rural Road Vector Correction
[0093] Step 7.1: Road edge line extraction. To obtain the optimal road edge, the present invention uses a length constraint method to take the line segment sequence with a length greater than l in the feature set as the road edge line segment sequence, and the l threshold is set to 100. The schematic diagram of the process is shown in Figure 7 shown.
[0094] Step 7.2: Road centerline inference model. Figure 8The figure shows a method for extracting the road centerline. The present invention reads the road width W from the vector data, and for each line segment in the line segment sequence, translates the distance W / 2 in the vertical direction to complete the extraction of the road centerline, and uses the centerline as an updated vector line to indirectly complete the correction of the vector line.
[0095] Step 7.3: If Fig. 9 As shown, L1 and L2 are vector lines to be connected. The circular area Cir can be calculated through the end point A of L1 and the starting point B of L2. Two candidate vectors AC and ABC are determined in Cir, where AC is a straight line segment and ABC is a multi-straight line segment. The weights of the two vectors are obtained using formula (4) respectively, and the one with the highest weight is used as the connecting vector line. When the weights η are the same, the present invention selects AC as the connecting vector from the perspective of linear complexity.
[0096]
[0097] Where, L candidate is the candidate vector, length(L candidate ) is the length of the candidate vector, length DL (L candidate ) is the candidate vector in U 2 -Net extracts the length of the result.
[0098] Step 8: Output the corrected urban and rural road vector data.
[0099] The method proposed in the present invention is verified by four sets of experiments and compared with the existing algorithm, wherein Experiments 1 and 2 are the results of urban road vector correction, and Experiments 3 and 4 are the results of rural road vector correction.
[0100] 1) Experiment 1. Fig.10 This is a GF-2 orthophoto multispectral image of a certain urban area in Shanghai, with a resolution of 0.8 meters. There are 23 vectors in the urban area, and a small number of vectors have sudden changes in curvature.
[0101] Fig.10 (b) is a city trunk road and a residential road, with a total of 4 vector lines. The two comparison methods believe that the vector data has a relative position regularity with the road as a whole, so the same parameters are used to correct different vector lines in the local range. Fig.10(b) It can be seen from the original vector that the positions of different vector data are irregularly distributed on both sides of the road, and do not have a relative regularity with the road in terms of position as a whole. Therefore, AMS-Conflation can only correct vector lines that meet the global position regularity, such as the yellow vector line in the comparison method, while the comparison method has little effect on other vector lines, and there is no obvious correction effect in its results. Similarly, the Mask R-CNN method still uses the same affine change parameters for correction of vector lines with overall position regularity, so it can only correct some vectors. The method of the present invention is based on U 2 -Net road extraction results and line segment sequence detection results, establish a feature set for each vector data, form a corresponding relationship between the vector and the road segment features, and perform vector correction through road extraction starting from a single vector line, breaking through the limitation that the comparison method can only correct the position regularity vector line. It can be seen from the results of the present invention that the correction results meet the accuracy requirements, which illustrates the reliability of the method of the present invention.
[0102] Fig.10 (c) The scene is a "7"-shaped road that passes through an urban residential area. The upper part of the road is severely blocked by buildings, building shadows, and trees. The vector data of the lower part is different from the local direction of the road. In the AMS-Conflation method, the vector lines to be corrected are located in two or more triangles, and the transformation models of different triangles are different, so the corrected vector lines in different triangles are misaligned. In the Mask R-CNN method, this method only considers the overall affine transformation of the global vector line segments, ignoring the possibility of geometric distortion of the vector lines in the local range, such as Fig.10 (c) In the Mask R-CNN method, the geometric distortion is not effectively corrected in the lower half of the "7"-shaped road, which is basically the same as the original vector. Compared with the comparison method, taking into account the irregularity of the urban vector line shape, the present invention decomposes the vector line and takes the curvature mutation point as the inflection point to obtain the sub-vector line, thereby simplifying the "7"-shaped curvature mutation vector; considering that the influence of noise will inevitably cause the feature set of this area to be insufficient and incomplete, in view of this phenomenon, the present invention proposes a random average sampling method for sub-vector line fitting; finally, the vector line is accurately corrected by centering the sub-vector line, and the intersection of the sub-vector line is obtained to improve the linear structure.
[0103] 2) Experiment 2. Fig.11This is a GF-7 orthophoto multispectral image of a certain urban area in Fuxin, Liaoning Province. The forward-looking panchromatic ground pixel resolution is 0.8 meters, and the rear-looking panchromatic ground pixel resolution is 0.65 meters. From the full-frame image, the buildings and roads are densely distributed, and the "same spectrum, different objects" phenomenon is serious. Among them, there are 29 roads and corresponding vector data. Except for a small number of roads with small curvature changes, most of the roads are straight.
[0104] from Fig.11 It can be clearly seen from the original image that the dual-lane has a complex topological relationship with other roads, there are obvious spacing measures between lanes, and there is noise interference. Fig.11 As can be seen from (b), the dual-lane intersection road U of the present invention 2 -Net extraction results have serious omissions, and the extraction results are different from the actual width of the road. In the AMS-Conflation method, the LTM method establishes a local template based on the shape of intersecting vector lines near the intersection. Based on the road recognition results and the prior knowledge of road width, the road area with a similar geometry to the local template is searched near the intersection and used as the intersection. Since this method relies heavily on road extraction results and road width, it cannot accurately locate the center of the intersection, resulting in abnormal intersection recognition positions being deleted, which makes some vector data unable to be corrected. For the Mask R-CNN method, Fig.11 It can be seen from the test image (b) that the intersecting roads in this scene have different widths, complex topological features, and noise interference from vehicles, vegetation, indicator lines, etc., which makes intersection detection difficult. In addition, the connection of the vector lines in this scene is complex, and there are three intersections. The comparison method only uses the method of obtaining the minimum distance from the center of the candidate frame to generate the same-name control points, so it is impossible to establish accurate same-name control points, resulting in deletion by the DBSCAN method, and then the vector cannot be corrected. The present invention extracts roads based on line features, avoiding the difficulty of intersection extraction in complex scenes, and thus can accurately correct the two-lane vector information.
[0105] Fig.11 (c) The road density is high and the roads are often severely blocked by buildings and their attached vegetation. Fig.11 (c)U 2-Net extraction results show that there are four missing roads near intersections in this area, which is the same as (b). This will inevitably lead to inaccurate intersection identification in the AMS-Conflation method. In addition, the vector data in this area is geometrically misaligned with the road relative position, and there is no relative position regularity. Based on the above factors, the AMS-Conflation method can only correct some vector lines. Similarly, noise interference makes it difficult for the Mask R-CNN method to detect intersections. In addition, the density of road intersections in this area is large, which makes the Mask R-CNN method relying on the minimum distance relationship inevitably cause incorrect same-name point generation, and the vector data in this area is seriously geometrically misaligned with the road relative position. From the correction results, it can be seen that the correction results based on the Mask R-CNN method are poor, and most of the corrected results are seriously offset from the image road, which can only ensure a small movement of a small number of vector line positions and realize vector correction of some roads. The method of the present invention is based on the urban feature set and uses a random average sampling method to ensure the road structure similarity and local direction optimality of the fitted vector line. The method of the present invention can still correct the vector line in complex scenes, which shows the stability of the method of the present invention.
[0106] 3) Experiment 3. Fig.12 This is a remote sensing image of a rural area in Enshi City, Hubei Province, with 5 vectors and 3 road intersections under the roads in this area, and the road geometry changes irregularly. It should be noted that the rural experimental results do not show the vector correction results of the AMS-Conflation method and the Mask R-CNN model. This is because the two comparison methods are not applicable in rural areas. The reasons are as follows: ① Both methods rely heavily on intersections to establish conversion models. Rural road intersections are sparse and the topological relationship is relatively simple. For example, there are only three intersections in the Enshi image of the present invention and the connectivity relationship is 3. For AMS-Conflation, this method cannot establish a triangulated network for local vector correction due to the lack of intersections. For the Mask R-CNN method, it relies on the intersection of 4 connected topological relationships to generate control points. This process makes it impossible for this method to carry out experiments in this area; ② The curvature of rural roads is complex and changeable. Vector lines and roads do not have relative position regularity. The matching correction mechanism of the two methods both believe that vector lines and roads have good relative position regularity. However, in the actual production process, rural road vector data is often drawn with drastically changing roads, and compared with urban roads, the position regularity is extremely poor, which is another reason why the two comparison methods cannot achieve rural road vector correction. The fact that both methods cannot perform vector correction in rural areas confirms the necessity of the zoning idea of the present invention.
[0107] Fig.12(b) In the experimental scene, the road is adjacent to trees, houses, and farmland, and the road boundary is clear, so the line segment sequence can effectively depict the edge information. The present invention obtains the optimal edge line in this scene through the length constraint method. 2 -Net extraction results, using the road centerline inference model to extract the road centerline, and completing the road vector correction through vector connection. Fig.12 Most of the roads in (c) are forest roads, which are blocked by trees and have a 120° change in direction. It is difficult to accurately correct the roads in this area by directly using the conversion model. However, the present invention obtains the optimal edge with strong structural information through length constraints and based on U 2 -Net extraction results are topologically connected to achieve complete road extraction.
[0108] 4) Experiment 4. Fig.13 The image shows a Gaofen-7 orthophoto multispectral image, covering a rural area in Fuxin, Liaoning Province, China. The area is a low mountain and hilly area. Hilly areas are a type of terrain between plains and mountains, which is a common scene type in rural areas. Due to geographical conditions, from the full-frame image, there are gentle peaks in the area, the surface is undulating, and the road is attached to the foot of the mountain, with farmland on both sides.
[0109] exist Fig.13 In (b), the right side of the road is at the foot of the mountain, and the left side of the road is irregularly shaped farmland. The road is made of cement road, with clear road boundaries and no noise from other objects. The line segment sequence method of the present invention can be used to completely extract the road edge. 2 -Net extraction results are accurate, so the area has a high-quality feature set. Based on the feature set, the length constraint is used to obtain the optimal edge. The road centerline inference model can be used to completely extract the road centerline, and a good vector correction effect is achieved by road extraction.
[0110] Fig.13 The road in (c) is located inside the village. The internal roads are built based on the location of houses, so the location, number, and direction of the roads are more uncertain. In addition, this type of road is easily blocked by houses and surrounding vegetation. From the original vector data in 13(c), it can be seen that there are only two offset vector data in this scene. The other roads are mainly small branches with too low a road grade and no corresponding vector data. Fig.13 (c) The surrounding objects of the scene are very complex. Fig.13 It can be seen from the method of the present invention that the road where the vector line is located is completely extracted, while the low-level road is seriously affected by noise, so there are breaks in the extraction result. 2-Net extraction results, combined with the vector line connection method, can still achieve vector correction inside the village with complex scenes, which shows that the rural vector correction method of the present invention has a certain stability.
[0111] The present invention selects two images in urban and rural areas for testing respectively. The quantitative analysis results of the comparison method and the present invention are shown in the following table. In urban areas, for the AMS-Conflation method, the precision, recall, IoU and F1 of the GF-2 experimental results of the present invention are 16.4%, 30.3%, 34.7% and 23.5% higher than those of the method, and the GF-7 image is 33.9%, 29.6%, 47.3% and 31.8% higher. For the Mask R-CNN method, the precision, IoU and F1 of the GF-2 experimental results of the present invention are 32.5%, 32.5% and 21.6% higher than those of the method, and the GF-7 image is 41%, 40.6% and 26.1% higher, respectively. It can be seen from the numerical results that the precision and IoU have the greatest difference. The reason is that the image scene is complex and the vector line and the road do not have a relative position law, which makes it difficult for the two comparison methods to accurately correct, resulting in a decrease in TP and an increase in FP. The present invention counts the length of the vector line that has not been corrected and moved as the FN value. The AMS-Conflation method is prone to lack of control point information at the image boundary, so some vectors are located outside the control network and cannot be corrected. This is the main reason for the increase in the FN value of this method; for the Mask R-CNN method, this method is based on the least squares solution parameters, and the overall position moves, so the FN value is very low, which is why the recall rate of this method is the same as that of the present invention. The above data show that the urban vector correction method of the present invention is completely superior to the two comparison methods. In rural areas, the AMS-Conflation method and the vector correction method based on Mask R-CNN are heavily dependent on intersections and vector line position rules, making this method unable to be applied in rural areas. The four evaluation indicators of the rural vector correction results of the present invention are all above 96%. In different experimental areas of GF-2 and GF-7, the correction accuracy is 98.2% and 97.7% respectively, which illustrates the accuracy of the rural road vector correction method.
[0112]
[0113] The above is only a preferred embodiment of the present invention, which certainly cannot be used to limit the scope of rights of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and changes can be made without departing from the principle of the present invention, and these improvements and changes are also regarded as the protection scope of the present invention.
Claims
1. A vector data partition correction method based on deep learning, characterized in that: The following steps are involved: S1: Making U for Deep Learning 2 -Net model sample set, adjust the model parameters, set the learning rate to 0.001, the number of iterations to 200, and perform model training; S2: Select the optimal model weight trained in step S1 and input urban and rural remote sensing images for road extraction; S3: Arrange the line segments obtained by edge extraction in order; S4: Road feature set extraction based on vector lines; S5: Automatically divide urban roads and rural roads according to their unique attributes. If the division result is an urban road, the vector data is input to step S6; if it is a rural road, the vector data is input to step S7; S6: Urban road vector correction; S7: rural road vector correction; S8: Output the corrected urban and rural road vector data; The specific steps of step S6 are as follows: Step S6.1: decomposing the vector line, using the vertices of the vector line as decomposition points and using a top-down splitting method to decompose; Step S6.2: vector line correction, using a random average sampling method to select feature points of vector data multiple times, and using the least square method to fit road lines multiple times based on the selected feature points; using a curve evaluation model to select the optimal road vector line from multiple vector lines fitted by the least square method; Step S6.3: Move the sub-vector line toward the reference point, and extend the sub-vector line to the entire interval in the form of a function expression to achieve centering of the sub-vector line; Step S6.4: Connect by finding the intersection points of adjacent vector lines; The specific steps of step S6.2 are: S6.2.1: Random average sampling: divide the vector line into 6 sub-intervals evenly. When selecting sample points, randomly sample 2 points in each sub-interval. S6.2.2: Based on the sample point data, use the least squares method to fit; S6.2.3: After fitting 2000 vector line segments, select the fitting result with the highest similarity to the road structure from the 2000 fitted line segments; The specific steps of step S7 are as follows: Step S7.1 Road edge line extraction: To obtain the optimal road edge, a length constraint method is used to extract the line segment sequence length greater than The line segment sequence of is taken as the road edge line segment sequence, The threshold is set to 100; Step S7.2 Road centerline inference model, reads the road width W from the vector data, and for each line segment in the line segment sequence, translates the distance W / 2 in the vertical direction to complete the road centerline extraction, and uses the centerline as the updated vector line to indirectly complete the vector line correction; Step S7.3 determines two connecting vector lines by finding the intersection points and connecting the ends of the fracture vector lines, and uses the following formula to find the weights of the two vectors, and takes the one with the highest weight as the connecting vector line. η Similarly, AC is selected as the connection vector from the perspective of linear complexity; In the formula, L candidate is the candidate vector, length ( L candidate ) is the candidate vector length, length DL ( L candidate ) is the candidate vector in U 2 -Net extracts the length of the result.
2. The vector data partition correction method based on deep learning according to claim 1, characterized in that: The specific steps of step S4 are as follows: Step S4.1: Extracting the initial feature set: in step S2, the urban and rural roads are extracted using the deep learning method, and in step S3, the road edge segments of the urban and rural roads are obtained. The mask method is used to superimpose the above two results to obtain the initial feature set; Step S4.2: Extract feature sets oriented to vector lines and establish the corresponding relationship between the initial feature sets and vector lines.
3. The vector data partition correction method based on deep learning as claimed in claim 2, characterized in that: The specific steps of step S4.2 are as follows: Step S4.2.1: Buffer constraint: add road vector lines to the initial feature set, take any vector line as the center, and establish a buffer zone with a width of 60 meters on both sides. When the two end points of a line segment or line segment sequence in the initial feature set are within the buffer zone, it is used as the feature of the vector segment, thereby obtaining the rural road feature set; Step S4.2.2: Angle constraint: The urban road feature set is based on the initial feature set after the buffer zone constraint, and is further constrained according to the direction of the vector line. When the constraint requirements are met, it becomes a valid feature.
Citation Information
Patent Citations
Non-point source pollution calculation method based on remotely sensed image element
CN102867120A
Remote sensing image road extraction method and system based on depth learning, storage medium, and electronic device
CN109493320A
