A deep learning method for remote sensing extraction of typical rural roads
By adding the optimized residual module, global context attention mechanism and DUpsampling module to the GDU-Net model in the U-Net model, the blurring and interruption problems of rural road boundary extraction are solved, and the extraction accuracy and completeness are significantly improved.
Patent Information
- Application Number
- CN202310972067.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-03
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2043-08-03
AI Technical Summary
It is difficult to accurately extract the boundaries of rural roads with existing technology, especially when the background is complex, the road surface is narrow, winding, and easily blocked, resulting in blurred and interrupted boundaries in the extraction results.
Propose a deep learning method for typical rural roads. By adding the optimized residual module, global contextual attention mechanism and DUpsampling module to the U-Net model, a GDU-Net model is constructed for road extraction in high-resolution remote sensing images. . This method includes preprocessing, manual visual interpretation, data set production and model training. It uses the optimized residual module to reduce information loss, introduces a global contextual attention mechanism to capture road information, and the DUpsampling module reduces the checkerboard effect and improves boundary accuracy.
It significantly improves the extraction accuracy and boundary integrity of typical rural roads, can better handle complex backgrounds and occlusion situations, and improves the accuracy and robustness of rural road extraction.
Smart Images

Figure CN117173557B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of rural road extraction from remote sensing images, and in particular to a deep learning method for remote sensing extraction of typical rural roads. Background Art
[0002] Rural roads are an important part of my country's road traffic system and an important foundation for supporting the economic and social development of rural areas. With the rapid development of remote sensing technology, the spatial resolution of remote sensing images has reached the meter and sub-meter levels, and the detailed information of the objects they contain is also richer, providing a strong data guarantee for the monitoring and supervision of rural roads. At the same time, artificial intelligence technology provides methodological support for the rapid and efficient extraction of rural roads. Therefore, the use of intelligent models to automatically extract rural roads in high-resolution remote sensing images will help to obtain and update rural road data in a timely, accurate and efficient manner, and help my country's rural revitalization strategy.
[0003] Unlike urban roads, rural roads have the characteristics of complex background, narrow road surface, winding and easy to be blocked. In high-resolution remote sensing images, most of the road surfaces are less than 10 pixels, which is difficult to extract. At the same time, rural roads appear differently in different terrains. For example, rural roads in plain areas have a relatively regular shape, but in high-resolution images, there is a phenomenon of blurred boundaries due to confusion of boundary pixels, which makes it impossible to correctly extract their boundaries; rural roads in hilly areas are often curved and narrow, and are easily broken due to occlusion of trees and other objects. At the same time, due to the complex background, there are unclear boundaries, making it difficult to accurately depict the boundaries of rural roads.
[0004] At present, the methods of road extraction can be roughly divided into three categories. The first category is the pixel-based extraction method, which mainly uses the spectral characteristics and texture characteristics of the road to extract road information, but it cannot perceive the global information and is easily confused with objects with similar spectral characteristics, affecting the final extraction accuracy; the second category is the object-oriented extraction method, which extracts the road after the overall segmentation of the image. Its effect is better than the first category, but there are also some misclassifications; the third category is the road extraction method based on deep learning, which can automatically learn the characteristics of the road in the image. Compared with the first two methods, it has greatly improved efficiency and accuracy and has been widely used in the field of road extraction. Scholars have successively applied CNN, FCN, U-Net, LinkNet and other models to extract roads: For example, Zhang et al. increased the network depth by adding residual modules to U-Net in 2018; He Hao et al. designed an encoding-decoding structure to extract roads in 2019; Jin Fei et al. constructed a dual U-Net network joint training and morphological post-processing method to extract roads in 2019; Lu et al. designed a multi-task learning model to extract road boundaries and centerlines at the same time in 2019. Although these improved models have a certain effect on road extraction, the road surface blocked by trees, buildings, etc. cannot be accurately extracted. In addition, the above models are mainly aimed at urban roads, and most of them use public data sets to explore the performance of each improved model. In rural roads with severe road occlusion and curved and narrow shapes, the extraction accuracy of these models will be lower. In the study of rural road extraction, Yi et al. constructed FD-LinkNet based on the D-linkNet model in 2020 to extract rural roads; Yang et al. extracted rural roads through generative adversarial networks in 2020; Liu et al. constructed a lightweight dynamic addition network for road extraction in rural areas in 2023; Yuan Cuixia et al. used U-Net to accurately extract high-standard farmland roads in high-resolution remote sensing images in 2023; Li Chaokui combined the dilated convolution and CNN model structure in 2021 to extract rural roads in the suburban areas of Changsha, Zhuzhou and Xiangtan, and achieved certain results. However, these are all extractions of rural roads in a single area, and high-precision extraction of rural roads in different regions or with large terrain differences remains to be studied.
[0005] There are two difficulties in using deep learning methods to extract typical rural roads through remote sensing. One is that occluded roads cannot be correctly extracted; the other is that the model will cause a checkerboard effect when upsampling and restoring road information, which affects the accurate extraction of road boundary contours. To this end, this paper proposes a deep learning method for remote sensing extraction of typical rural roads, which significantly improves the extraction accuracy of typical rural roads. Summary of the invention
[0006] The technical problem to be solved by the present invention is: how to effectively improve the problem of blurred boundaries and interruptions in remote sensing extraction results of rural roads due to complex backgrounds, narrow and winding roads, and susceptibility to occlusion, and provide a deep learning method for remote sensing extraction of typical rural roads, which shows superior performance in the extraction of typical rural roads.
[0007] The present invention solves the technical problem by adopting the following technical solutions:
[0008] The present invention provides a deep learning method for remote sensing extraction of typical rural roads, comprising the following steps:
[0009] Step 1: Obtain high-resolution remote sensing images for typical rural road extraction and perform preprocessing, including radiometric calibration, atmospheric correction, geometric correction, and band fusion;
[0010] Step 2: Perform manual visual interpretation based on the pre-processed high-resolution remote sensing images to obtain road vector data and create training and test data sets for the model;
[0011] Step 3: Add the optimized residual module, global context attention mechanism module and DUpsampling module to the U-Net model and propose the GDU-Net model;
[0012] Step 4: Use the training data set to train the model and input the test data set into the model to perform road extraction and result evaluation.
[0013] In the above step 2, the manual visual interpretation based on the pre-processed high-resolution remote sensing image, obtaining road vector data, and preparing the training and testing data sets of the model include the following steps:
[0014] Step 21: Use the vector surface construction method in ArcMap software to draw the vector data of roads using the preprocessed high-resolution remote sensing image data, and do not draw non-road areas to obtain a road sample label dataset in the study area;
[0015] Step 22: Based on the sample dataset constructed in step 21, use the vector-to-raster tool in ArcMap software to convert the drawn road vector data into a black-and-white binary map, with rural roads in white and non-rural roads in black;
[0016] Step 23: To facilitate model input, based on the binary image obtained in step 22, the image and label data are cropped to a size of M*M;
[0017] Step 24: In order to ensure the balance of samples, data screening is performed based on the cropped data set obtained in step 23, and pictures that may not exist or contain only a small part of rural roads in each image are eliminated;
[0018] Step 25: In order to prevent model overfitting and improve model robustness, based on the data set in step 24, data enhancement processing is performed by image rotation, image flipping, and random noise addition to expand the sample data set, and the data set is divided into training data set and test data set in proportion.
[0019] In the above step 3, the optimized residual module, the global context attention mechanism module and the DUpsampling module are added to the U-Net model to propose a GDU-Net model, which specifically includes the following steps:
[0020] Step 31: Based on the U-Net model, ResNet 34 is selected as the model skeleton, and an optimized residual module is added to the model encoder part to reduce the omission phenomenon caused by information loss caused by the model operation process in narrow roads;
[0021] Step 32: Introduce a global context attention mechanism between the residual modules to capture global road information to further increase the extraction rate of occluded rural roads;
[0022] Step 33: Introduce the DUpsampling module in the model decoder to accurately restore the pixel-level road prediction and reduce the blurring of road boundaries caused by the "chessboard effect";
[0023] Step 34: The model uses the Adam optimizer and the binary cross entropy loss function.
[0024] In the above step 31, the optimized residual module is obtained by improving the original residual module, and the specific steps are as follows:
[0025] Step 311: Modify the ReLU activation function in the original residual module to a Mish function to reduce information loss and facilitate the extraction of road information;
[0026] Step 312: The batch normalization BN layer in the original residual module is modified into a group normalization GN layer to weaken the influence of the model parameter batch size on the final road extraction accuracy.
[0027] In the above step 32, the introduction of the global context attention mechanism includes the following steps:
[0028] Step 321: Perform calculation of the context modeling module on the input feature map F to obtain a global information relationship vector;
[0029] Step 322: Based on the calculation result of step 321, the calculation of the transformation module is performed to further extract the road information while reducing the amount of calculation;
[0030] Step 323: Based on the calculation result of step 322, add it to the input feature map F to obtain the output result of the global context attention mechanism.
[0031] In the above step 321, the calculation formula of the context modeling module is as follows:
[0032] F1=Softmax(Conv 1×1 (F))×F,
[0033] In the formula, F1 represents the calculation result of the context modeling module, F represents the input feature map, Conv 1×1 () represents the convolution calculation with a convolution kernel size of 1×1, and So.ftmax() represents the normalized exponential function calculation.
[0034] In the above step 322, the conversion module calculation formula is as follows:
[0035] F2=Conv 1×1 (ReLU(BN(Conv 1×1 (F1)))),
[0036] In the formula, F2 represents the calculation result of the transformation module, F1 represents the calculation result of the context modeling module, Conv 1×1 () represents the convolution calculation with a convolution kernel size of 1×1, BN() represents the normalization layer calculation, and ReLU() represents the activation function calculation.
[0037] In the above step 33, the introduction of the DUpsampling module includes the following steps:
[0038] Step 331: multiply each pixel dimension (1×C) of the input feature map F by the matrix to be trained W (C×N) to obtain a 1×N feature;
[0039] Step 332: Based on the calculation results of step 331, rearrange them to generate 2×2×N / 4 features.
[0040] In the above step 34, the binary cross entropy loss function is defined as follows:
[0041] L=-(y·logp(y)+(1-y)·log(1-p(y))),
[0042] Where L represents the binary cross entropy loss function, y represents the sample label, that is, yes or no, and p(y) represents the probability of the predicted label value corresponding to the true label y.
[0043] In step 4 of the method of the present invention, the model training is performed using the training data set, and then the test data set is input into the GDU-Net model to perform road extraction and result evaluation, which specifically includes the following steps:
[0044] Step 41: The initial learning rate of the model is lr; the learning rate decay method is set to: when the loss value of the model does not decrease for 5 consecutive iterations, the learning rate is adjusted to 1 / 5 of the original; the training batch of the model is set to N; the number of model iterations is set to R;
[0045] Step 42: Input the training data set into the GDU-Net model for training, and use the weight of the last iteration as the final predicted weight;
[0046] Step 43: Based on the model weights in step 42, predict the test data set and output the prediction results;
[0047] Step 44: Based on the prediction result of step 43, perform difference calculation between it and the corresponding actual label data, count the true positive TP, false positive FP, false negative FN and true negative TN of the road extraction result, calculate the precision, recall, F1 value and intersection-over-union ratio, and evaluate the model accuracy based on these four indicators.
[0048] Compared with the prior art, the present invention has the following main advantages:
[0049] The deep learning method for remote sensing extraction of typical rural roads proposed in the present invention effectively makes up for the shortcomings of pixel-based road extraction methods that are easily disturbed by spectrally similar objects and object-oriented road extraction methods that are easily confused with objects with similar feature information. It also improves the problem that the existing deep learning methods are prone to blurred boundaries and interruptions in their extraction results due to the complex background, narrow and winding road surface, and susceptibility to occlusion of rural roads, and can better extract typical rural roads. More importantly, this method can not only better extract the boundaries of rural roads, but also enhance the integrity of the extraction results, significantly improve the extraction accuracy of typical rural roads, and is of great significance to supporting the economic development of rural areas. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] Figure 1 It is a structural diagram of the GDU-Net model of the present invention.
[0051] Figure 2 It is the structure diagram of the optimized residual module.
[0052] Figure 3 It is the structure diagram of the global context attention mechanism.
[0053] Figure 4 This is the structure diagram of the DUpsampling module.
[0054] Figure 5 The following are the results of rural road extraction for each model, where (a), (b), (c), and (d) are the results of single road, multiple roads, winding road, and complex road, respectively.
[0055] Figure 6 The following are the results of comparative experiments on the improved model, where (a), (b), (c), and (d) are the results of a single road, multiple roads, a winding road, and a complex road, respectively.
[0056] Figure 7 The following are typical rural road extraction results. (a) and (b) are rural road displays in hilly areas, and (c) and (d) are rural road displays in plain areas. DETAILED DESCRIPTION
[0057] In view of the problems of blurred boundaries and interruptions in extraction results due to the complex background, narrow road surface, winding roads, and susceptibility to occlusion of rural roads, the present invention proposes a deep learning method for remote sensing extraction of typical rural roads, and achieves high-precision extraction of typical rural roads. Specifically, the present invention introduces an optimized residual module in the encoder part to improve the feature expression ability of rural roads; at the same time, in order to capture the global road information in the image and further increase the extraction rate of occluded roads, the present invention introduces a global contextual attention mechanism between the residual modules; finally, in order to reduce the "chessboard effect" that causes the blurred boundaries of the extraction results and accurately restore the pixel-level road prediction, the present invention introduces a DUpsampling module in the decoder part of the model.
[0058] The present invention is further described below in conjunction with embodiments and drawings, but is not limited to the following contents.
[0059] A deep learning method for remote sensing extraction of typical rural roads includes the following steps:
[0060] Step 1: Obtain images of the study area and perform data preprocessing:
[0061] The GF-2 image data was obtained from the land observation satellite data service platform of the China Resources Satellite Application Center. The ENVI software was used to preprocess the GF-2 images. The main steps were: first, the multispectral bands of the images were calibrated by radiation, atmospheric correction, and geometric correction; second, the panchromatic bands were calibrated by radiation and orthorectified; finally, the NNDiffuse Pan Sharpening method was used to fuse the processed panchromatic and multispectral bands to obtain the GF-2 multispectral images with a resolution of 1 m.
[0062] Step 2: Create data sets for model training and testing:
[0063] Based on the high-resolution remote sensing image preprocessed in step 1, manual visual interpretation is performed to obtain road vector data and prepare training and test data sets for the model. Specifically, the following steps are included:
[0064] Step 21: Based on the high-resolution remote sensing image data preprocessed in step 1, the vector surface construction method in ArcMap software is used to draw the vector data of the road, and the non-road area is not drawn to obtain the road sample label data set in the study area;
[0065] Step 22: Based on the sample dataset constructed in step 21, use the vector-to-raster tool in ArcMap software to convert the drawn road vector data into a black-and-white binary map, with rural roads in white and non-rural roads in black;
[0066] Step 23: To facilitate model input, based on the binary image obtained in step 22, the image and label data are cropped to a size of 1024*1024;
[0067] Step 24: In order to ensure the balance of samples, data screening is performed based on the cropped data set obtained in step 23, and pictures that may not exist or contain only a small part of rural roads in each image are eliminated to obtain 1015 pairs of initial data sets;
[0068] Step 25: In order to prevent model overfitting and improve model robustness, based on the data set in step 24, data enhancement processing is performed by image rotation, image flipping, and random noise addition to expand the sample data set, and finally 7105 pairs of data sets are obtained. They are divided into 6395 pairs of training data sets and 710 pairs of test data sets in a ratio of 9:1.
[0069] Step 3, build the GDU-Net model:
[0070] Based on the U-Net model, the GDU-Net model is proposed. The model structure is as follows Figure 1 As shown in the figure, firstly, the optimized residual module and the global context attention mechanism module are introduced in the model encoder part to improve the feature expression ability of rural roads while capturing the global road information to further increase the extraction rate of occluded roads. Then, the DUpsampling module is introduced in the model decoder part to accurately restore the pixel-level road prediction and reduce the "chessboard effect" that causes the boundary blur of the extraction result. Finally, the rural road extraction result is obtained according to the calculation result of the decoder, which includes the following steps:
[0071] Step 31: Based on the U-Net model, ResNet34 is selected as the model skeleton, and an optimized residual module is added to the model encoder part to reduce the leakage phenomenon caused by information loss caused by the model operation process in narrow roads. The specific structure is as follows: Figure 2 As shown;
[0072] Step 32: Introduce a global context attention mechanism between the residual modules to capture global road information to further increase the extraction rate of occluded rural roads. The specific structure is as follows: Figure 3 As shown;
[0073] Step 33: Introduce the DUpsampling module in the model decoder to accurately restore the pixel-level road prediction and reduce the blurring of road boundaries caused by the “chessboard effect”. The specific structure is as follows: Figure 4 As shown;
[0074] Step 34: The model uses the Adam (adaptive moment estimation) optimizer and the binary cross entropy loss function.
[0075] In step 31, the optimized residual module is obtained by improving the original residual module, and the specific steps are as follows:
[0076] Step 311: Modify the ReLU activation function in the original residual module to a Mish function to reduce information loss and facilitate the extraction of road information;
[0077] Step 312: The batch normalization BN layer in the original residual module is modified into a group normalization GN layer to weaken the influence of the model parameter batchsize on the final road extraction accuracy.
[0078] In step 32, the introduction of the global context attention mechanism includes the following steps:
[0079] Step 321: Perform calculation of the context modeling module on the input feature map F to obtain a global information relationship vector;
[0080] Step 322: Based on the calculation result of step S321, the calculation of the transformation module is performed to further extract the road information while reducing the amount of calculation;
[0081] Step 323: Based on the calculation result of step S322, add it to the input feature map F to obtain the output result of the global context attention mechanism.
[0082] In step 321, the context modeling module calculation formula is as follows:
[0083] F1=Softmax(Conv 1×1(F))×F
[0084] In the formula, F1 represents the calculation result of the context modeling module, F represents the input feature map, Conv 1×1 () represents the convolution calculation with a convolution kernel size of 1×1, and Softmax() represents the normalized exponential function calculation.
[0085] In step 322, the conversion module calculation formula is as follows:
[0086] F2=Conv 1×1 (ReLU(BN(Conv 1×1 (F1))))
[0087] In the formula, F2 represents the calculation result of the transformation module, F1 represents the calculation result of the context modeling module, Conv 1×1 () represents the convolution calculation with a convolution kernel size of 1×1, BN() represents the normalization layer calculation, and ReLU() represents the activation function calculation.
[0088] In step 33, the introduction of the DUpsampling module includes the following steps:
[0089] Step 331: multiply each pixel dimension (1×C) of the input feature map F by the matrix to be trained W (C×N) to obtain a 1×N feature;
[0090] Step 332: Based on the calculation results of step S331, rearrange them to generate 2×2×N / 4 features.
[0091] In step 34, the binary cross entropy loss function is defined as follows:
[0092] L=-(y·logp(y)+(1-y)·log(1-p(y)))
[0093] Where L represents the binary cross entropy loss function, y represents the sample label, that is, yes or no, and p(y) represents the probability of the predicted label value corresponding to the true label y.
[0094] Step 4: Extract rural roads and evaluate the results:
[0095] Based on the training data set obtained in step 2, the model training weight parameters are obtained. Finally, the test data set is input into the GDU-Net model to perform road extraction and result evaluation, including the following steps:
[0096] Step 41: The initial learning rate of the model is 0.0003; the learning rate decay method is set to: when the loss value of the model does not decrease for 5 consecutive iterations, the learning rate is adjusted to 1 / 5 of the original; the training batch of the model is set to 8; the number of model iterations is set to 300;
[0097] Step 42: Input the training data set into the GDU-Net model for training, and use the weight of the last iteration as the final predicted weight;
[0098] Step 43: Based on the model weights in step 42, predict the test data set and output the prediction results;
[0099] Step 44: Based on the prediction result of step 43, perform difference calculation between it and the corresponding actual label data, count the true positive (True Positive, TP), false positive (False Positive, FP), false negative (False Negative, FN) and true negative (True Negative, TN) of the road extraction result, calculate the precision (Precision), recall rate (Recall), F1 value and intersection of Union (IoU), and evaluate the model accuracy based on these four indicators.
[0100] The present invention is further described below through specific experiments.
[0101] Experimental data:
[0102] The present invention uses two scenes of domestic high-resolution 2 remote sensing images for experiments, one scene is located in Jingmen City, Hubei Province, and the other scene is located in Dezhou City, Shandong Province. The acquisition time is April 2022. After preprocessing, a four-band image with a resolution of 1m is obtained, specifically near-infrared, red, green, and blue. The Jingmen area is a rural road in a hilly area. Its road surface often presents the characteristics of varying widths and winding tortuousness. Due to the lush vegetation, it is very common to be blocked by trees, mostly narrow roads, bends, dead-end roads, and forest roads; the Dezhou area is a rural road in a plain area, with a wide field of vision, a wide road surface, a simple structure, and mostly in the shape of a "well". All rural roads (road width ≥ 3 meters) in the two scenes are drawn by manual sample annotation, and converted into black and white binary images, with rural roads in white and non-rural roads in black. In order to facilitate model input, the image and label pair data are cropped to 1024*1024. At the same time, due to the characteristics of rural roads, some images may not contain rural roads or only contain a very small part of them. In order to ensure the balance of samples, such data needs to be deleted. Finally, 1015 samples were obtained, covering an area of 1059.34 km 2Data enhancement was performed by rotating and flipping images and randomly adding noise, and finally 7105 pairs of data sets were obtained. The data sets were divided into 6395 pairs of training data sets and 710 pairs of test data sets at a ratio of 9:1. The images used true color three-band.
[0103] Experimental setup:
[0104] The present invention uses the Pytorch framework to conduct experiments in the Ubuntu system, and the graphics card is 2 Nvidia GeForceRTX3090 (with a total of 48GB of video memory). The initial learning rate of the model is 0.0003, the number of iterations is 300, the batch size is 8, and the Adam optimizer is used for the experiment. The learning rate decay mode is set to: when the loss value of the model has not decreased for 5 consecutive iterations, the learning rate is adjusted to 1 / 5 of the original. The training data set is used for training to obtain the training weight of the model, and the test data set is used for final prediction to analyze the rural road extraction accuracy of the model.
[0105] In order to verify that the effect of the present invention on typical rural road extraction is better than that of the basic deep learning model, four basic network models, namely U-Net, ResU-Net, LinkNet, and D-LinkNet, were selected to conduct comparative experiments with the extraction results of the GDU-Net model. Each model used the same data set and experimental parameters.
[0106] In order to verify the effectiveness of the three improved parts of the GDU-Net model (introducing the optimized residual module, the global context attention mechanism module and the DUpsampling module) in the present invention, GM-Net (optimized residual module), GC-Net (global context attention mechanism module), DU-Net (DUpsampling module) and GDU-Net models were used for comparative experiments, and the parameters and data sets of each experiment were the same.
[0107] Experimental results accuracy evaluation and analysis:
[0108] In order to verify the extraction accuracy of the GDU-Net model for typical rural roads, the typical rural road extraction model proposed in the present invention is used to train the sample data, and then the training weight data of the model is used to predict the test data set, and the test results are qualitatively and quantitatively compared with the manually annotated terrace sample data in the corresponding area.
[0109] Qualitative comparison of experimental results:
[0110] Figure 5 , Figure 6 The rural road experimental results of all the comparison models and the experimental results of the improved models are given. Figure 5The comparison of rural road extraction results of each model in some test data sets is helpful to compare the extraction results of each model. Figure 6 The comparison chart of the experimental results of the three improved parts of the GDU-Net model can more intuitively show the extraction results of the model by each improved module.
[0111] from Figure 5 It can be seen that the rural roads extracted by the U-Net model have poor integrity and many noise points. The ResU-Net model adds a residual module on the basis of U-Net, and improves the ability to extract rural road features to a certain extent by deepening the network. The extraction result is better than the U-Net model. The LinkNet model is limited by the defects of the network structure, and the segmentation performance of very small targets or detail edges is limited, resulting in its poor detail extraction ability, many false extraction areas, and rural roads and spectrally similar objects cannot be effectively separated. The D-LinkNet model embeds an expanded convolution module on the basis of the LinkNet model to enhance the extraction of rural road features by expanding the receptive field, but due to the loss of some spatial information of the feature map, the phenomenon of rural road omission is obvious. The extraction effect of the GDU-Net model proposed in the present invention is significantly better than other models. It better preserves the structural detail information of rural roads, the extracted rural road boundaries are more accurate, and the overall rural road extraction results are more complete, and there is no obvious omission phenomenon.
[0112] from Figure 6 It can be seen that in the extraction results of a single road ( Figure 6 In (a), each improved module has a good extraction effect on rural roads. Figure 6 (b)) and the extraction results of winding roads ( Figure 6 In (c), we can see that the introduction of the optimized residual module reduces the omission of rural roads. This is because the optimized residual module can effectively maintain subtle road information. However, in the extraction results, some ridges and buildings are mistaken for rural roads. This may be due to the high spectral similarity between rural roads and certain objects. Figure 6 (c)) and the extraction results of complex roads ( Figure 6In (d), after the introduction of the global context attention mechanism module, the connectivity of the extracted rural roads is better. This is because the global context attention mechanism improves the extraction rate of rural roads blocked by trees and buildings by capturing global road information. In the four road scenarios, after the introduction of the DUpsampling module, the results of rural road extraction are smoother and clearer. This is because this module reduces the chessboard effect caused by restoring rural road features through model upsampling, promotes the model to correctly extract rural road boundaries, and improves the extraction accuracy of rural roads. In summary, the introduction of the improved residual module, the global context attention mechanism module, and the DUpsampling module can improve the accuracy of rural road extraction by the U-Net model.
[0113] Quantitative comparison of experimental results:
[0114] The quantitative evaluation of the experimental results of each model is shown in Table 1. The indicators in the table are precision (P), recall (R), intersection over union (IoU) and comprehensive evaluation index (F1). It can be seen from Table 1 that the typical rural road extraction result of the GDU-Net network model proposed in the present invention has the highest accuracy, with a specific accuracy of 91.74%, a recall of 98.16%, an IoU of 90.85%, and an F1 of 95.84%. The accuracy, recall, IoU and F1 of the typical rural road extraction results of the U-Net model are increased by 11.22% (91.74% vs 80.52%), 9.04% (98.16% vs 89.12%), 10.60% (90.85% vs 80.25%) and 10.55% (95.84% vs 85.29%) respectively. Compared with the experimental results of the other three models, the precision of the GDU-Net model is 9.31% (91.74% vs 82.43%), 9.95% (91.74% vs 81.79%) and 9.73% (91.74% vs 82.01%) higher than that of the ResU-Net, LinkNet and D-LinkNet models; the recall rate is increased by 5.86% (98.16% vs 92.30%), 6.33% (98.16% vs 91.79%) and 9.73% (91.74% vs 91.79%) respectively. .83%) and 5.67% (98.16% vs 92.49%); IoU increased by 8.24% (90.85% vs 82.61%), 10.18% (90.85% vs 80.67%) and 8.48% (90.85% vs 82.37%); F1 increased by 7.56% (95.84% vs 88.28%), 9.04% (95.84% vs 86.80%) and 7.92% (95.84% vs 87.92%).
[0115] Table 1 Rural road extraction accuracy of each model
[0116]
[0117] The quantitative evaluation of the experimental results of the three improved modules of the model is shown in Table 2. It can be seen from Table 2 that after the introduction of the optimized residual module (GM-Net), the global context attention mechanism module (GC-Net) and the DUpsampling module (DU-Net), the precision of the rural road extraction results increased by 4.20% (84.72% vs 80.52%), 7.46% (87.98% vs 80.52%) and 0.98% (89.61% vs 88.63%) respectively; the recall rate increased by 1.60% (90.72% vs The improved GDU-Net model has improved the three modules’ evaluation indicators by 4.25% (84.50% vs 80.25%), 5.06% (85.31% vs 80.25%), and 7.38% (87.63% vs 80.25%). The improved F1 has improved by 6.31% (91.60% vs 85.29%), 7.36% (92.65% vs 85.29%), and 8.12% (93.41% vs 85.29%). In general, in the GDU-Net model proposed in the present invention, the evaluation indicators of the three improved modules are better than those of the unimproved ones, indicating that the three improved modules have promoted the extraction of rural roads.
[0118] Table 2 Accuracy of model improvement comparison experimental results
[0119]
[0120] Analysis of typical rural road extraction results:
[0121] There are obvious differences between rural roads in hilly areas represented by Jingmen City and rural roads in plain areas represented by Dezhou City. In order to test the extraction effect of the GDU-Net model proposed in this invention on typical rural roads, experiments were conducted using data sets from Jingmen, Hubei, Dezhou, Shandong, and Jingmen-Dezhou. The specific experimental results are shown in Table 3.
[0122] Table 3 Typical rural road extraction results accuracy
[0123]
[0124] As shown in Table 3, the GDU-Net network model has a high accuracy rate in road extraction results under various data sets. The precision rates of the test results of the Jingmen, Dezhou and Jingmen-Dezhou data sets are 89.57%, 92.13% and 91.74% respectively, the recall rates are 96.35%, 98.42% and 98.16% respectively, the IoU rates are 89.61%, 91.32% and 90.85% respectively, and the F1 rates are 94.13%, 96.27% and 95.84% respectively. This shows that the GDU-Net model can extract rural roads well in both single terrain areas and multiple terrain areas. In addition, the evaluation index of the test results of the Dezhou data set is better than that of the Jingmen data set, because the rural roads in the Dezhou data set are clear and regular, and easy to extract; while the rural road environment in the Jingmen data set is more complex, mostly narrow roads, bends, dead-end roads and forest roads, which are difficult to extract.
[0125] Figure 7 The details of the GDU-Net model in the extraction results of rural roads in multiple terrains are intuitively shown. Figure 7 (a) to (b) are rural roads in hilly areas. Figure 7 (c) to (d) are rural roads in plain areas. Figure 7 In (a), rural roads are often blocked or obstructed by trees and buildings due to the lush vegetation and densely spaced buildings around them. The GDU-Net model can extract the global context information of rural roads, which improves the connectivity of blocked sections to a certain extent and solves the problem of difficulty in extracting blocked or obstructed roads. Figure 7 In (b), rural roads are affected by the terrain and are mostly narrow and curved. The GDU-Net model extracts narrow and curved roads in a smooth and clear manner, which improves the extraction rate of rural roads with blurred edges. Figure 7 In (c) to (d), the rural roads in the plain area have a wide field of view, a wide road surface, a simple structure and are mostly in the shape of a "well". The GDU-Net model shows a high degree of completeness in the extraction results of such rural roads. In summary, the GDU-Net model proposed in this paper has achieved good results in extracting rural roads under various terrains, indicating that the model has strong adaptability in extracting typical rural roads.
[0126] Through the qualitative and quantitative analysis and evaluation of the experimental results, as well as the analysis of the extraction results of typical rural roads, the effectiveness of the deep learning method for remote sensing extraction of typical rural roads proposed in the present invention is demonstrated. It can not only correctly extract the boundaries of rural roads, but also enhance the integrity of the extraction results, and significantly improve the extraction accuracy of typical rural roads.
[0127] The above is only an explanation of the preferred embodiments of the present invention, but it should not be understood as a limitation of the claims. The present invention is not limited to the above embodiments, and its specific structure is allowed to be changed. All changes made within the protection scope of the independent claims of the present invention are within the protection scope of the present invention.
Claims
1. A deep learning method for remote sensing extraction of typical rural roads, characterized by The following steps are involved: Step 1: Obtain high-resolution remote sensing images for typical rural road extraction and perform preprocessing, including radiometric calibration, atmospheric correction, geometric correction, and band fusion; Step 2: Perform manual visual interpretation based on the pre-processed high-resolution remote sensing images to obtain road vector data and create training and test data sets for the model; Step 3: Add the optimized residual module, global context attention mechanism module and DUpsampling module to the U-Net model to propose the GDU-Net model; the optimized residual module is introduced to improve the feature expression ability of rural roads; the global context attention mechanism is introduced to increase the extraction rate of occluded roads; Step 4: Use the training data set to train the model, and input the test data set into the model to perform road extraction and result evaluation; The above step 3 specifically includes the following steps: Step 31: Based on the U-Net model, ResNet 34 is selected as the model skeleton, and an optimized residual module is added to the model encoder part to reduce the omission phenomenon caused by information loss caused by the model operation process in narrow roads. The steps are as follows: Step 311: Modify the ReLU activation function in the original residual module to the Mish function to reduce information loss and facilitate the extraction of road information. Step 312: modify the batch normalization BN layer in the original residual module to a group normalization GN layer to weaken the influence of the model parameter batch size on the final road extraction accuracy; Step 32: Introduce a global context attention mechanism between the residual modules to capture global road information to further increase the extraction rate of occluded rural roads, including the following steps: Step 321: Perform calculation of the context modeling module on the input feature map F to obtain a global information relationship vector; The calculation formula of the context modeling module is as follows: F1=Softmax(Conv 1×1 (F))×F In the formula, F1 represents the calculation result of the context modeling module, F represents the input feature map, Conv 1×1 () indicates the convolution calculation with a convolution kernel size of 1×1, and Softmax() indicates the normalized exponential function calculation; Step 322: Based on the calculation result of step 321, the calculation of the transformation module is performed to further extract the road information while reducing the amount of calculation. The calculation formula of the transformation module is as follows: F2=Conv 1×1 (ReLU(BN(Conv 1×1 (F1)))) In the formula, F2 represents the calculation result of the transformation module, F1 represents the calculation result of the context modeling module, Conv 1×1 () indicates the convolution calculation with a convolution kernel size of 1×1, BN() indicates the normalization layer calculation, and ReLU() indicates the activation function calculation. Step 323: Based on the calculation result of step 322, add it to the input feature map F to obtain the output result of the global context attention mechanism; Step 33: Introduce the DUpsampling module in the model decoder to accurately restore the pixel-level road prediction and reduce the blurring of road boundaries caused by the "chessboard effect"; Step 34: The model uses the Adam optimizer and the binary cross entropy loss function.
2. The deep learning method for remote sensing extraction of typical rural roads according to claim 1 is characterized in that: In step 2, the manual visual interpretation is performed based on the pre-processed high-resolution remote sensing image to obtain road vector data and prepare the training and testing data sets of the model, including the following steps: Step 21: Use the vector surface construction method in ArcMap software to draw the vector data of roads using the preprocessed high-resolution remote sensing image data, and do not draw non-road areas to obtain a road sample label dataset in the study area; Step 22: Based on the sample dataset constructed in step 21, use the vector-to-raster tool in ArcMap software to convert the drawn road vector data into a black-and-white binary map, with rural roads in white and non-rural roads in black; Step 23: To facilitate model input, based on the binary image obtained in step 22, the image and label data are cropped to a size of M*M; Step 24: In order to ensure the balance of samples, data screening is performed based on the cropped data set obtained in step 23, and pictures that may not exist or contain only a small part of rural roads in each image are eliminated; Step 25: In order to prevent model overfitting and improve model robustness, based on the data set in step 24, data enhancement processing is performed by image rotation, image flipping, and random noise addition to expand the sample data set, and the data set is divided into training data set and test data set in proportion.
3. The deep learning method for remote sensing extraction of typical rural roads according to claim 1, characterized in that: In step 33, the introduction of the DUpsampling module includes the following steps: Step 331: multiply each pixel dimension (1×C) of the input feature map F by the matrix to be trained W (C×N) to obtain a 1×N feature; Step 332: Based on the calculation results of step 331, rearrange them to generate 2×2×N / 4 features.
4. The deep learning method for remote sensing extraction of typical rural roads according to claim 1, characterized in that: In step 34, the binary cross entropy loss function is defined as follows: L=-(y·logp(y)+(1-y)·log(1-p(y))), Where L represents the binary cross entropy loss function, y represents the sample label, that is, yes or no, and p(y) represents the probability of the predicted label value corresponding to the true label y.
5. The deep learning method for remote sensing extraction of typical rural roads according to claim 1, characterized in that: In step 4, the training data set is used to train the model, and then the test data set is input into the GDU-Net model to perform road extraction and result evaluation, which specifically includes the following steps: Step 41: The initial learning rate of the model is lr; the learning rate decay method is set to: when the loss value of the model does not decrease for 5 consecutive iterations, the learning rate is adjusted to 1 / 5 of the original; the training batch of the model is set to N; the number of model iterations is set to R; Step 42: Input the training data set into the GDU-Net model for training, and use the weight of the last iteration as the final predicted weight; Step 43: Based on the model weights in step 42, predict the test data set and output the prediction results; Step 44: Based on the prediction result of step 43, perform difference calculation between it and the corresponding actual label data, count the true positive TP, false positive FP, false negative FN and true negative TN of the road extraction result, calculate the precision, recall, F1 value and intersection-over-union ratio, and evaluate the model accuracy based on these four indicators.
Citation Information
Patent Citations
Deep learning remote sensing image rural highway sandy road section extraction method
CN111241994A
Remote sensing image ground object semantic segmentation method
CN112580654A
Road extraction method and system based on attention mechanism and expansion convolution
CN113569724A
Method and device for extracting cultivated land parcels based on SE-U-Net + + model
CN114419430A
Multi-attention fused high-resolution remote sensing image road extraction method
CN115439751A
