A remote sensing image building extraction method and device based on improved DeepLabV3+
By introducing the Vortex Pooling module and dual attention mechanism into the DeepLabV3+ model, combined with multi-task learning and binary floating point number training methods, the problems of slow training speed and low edge accuracy in remote sensing image building extraction are solved, and a more efficient Building extraction effects.
Patent Information
- Application Number
- CN202410796605.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-20
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2044-06-20
AI Technical Summary
The existing DeepLabV3+ model has problems such as slow training speed, low edge target segmentation accuracy, category imbalance and insufficient utilization of context information in building extraction from remote sensing images, resulting in missing edges.
Using the improved DeepLabV3+ model, the Vortex Pooling module is used to replace the ASPP module, the dual attention mechanism module and multi-task learning are introduced, and the training and verification methods of binary and floating point numbers are combined to design a parallel network structure and optimize the total loss function to improve Training efficiency and segmentation accuracy.
It improves the phenomenon of slow training and fitting, alleviates the problems of inconsistent segmentation and missing edges within large-scale target classes, reduces computing resource consumption, and improves building extraction accuracy and detection effects.
Smart Images

Figure CN118366045B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of model technology, and in particular to a remote sensing image building extraction method and device based on improved DeepLabV3+. Background Art
[0002] In the existing technology, although the building extraction results based on the fusion of high-resolution remote sensing images and deep neural networks have performed well, there is still a lot of room for research on improving the accuracy of building extraction by improving the structure of deep neural networks. Among them, the DeepLabV3+ semantic segmentation network is developed from the DeepLabV1-3 version, so it also has the problems of slow training speed, low edge target segmentation accuracy, category imbalance and insufficient use of context information, and edge missing of segmented targets in the DeepLab series. Summary of the invention
[0003] In order to solve the above problems in the prior art, the present invention provides a remote sensing image building extraction method and device based on improved DeepLabV3+, which can improve the training speed and building extraction accuracy.
[0004] In order to achieve the above object, the technical solution adopted by the present invention is:
[0005] In a first aspect, the present invention provides a remote sensing image building extraction method based on an improved DeepLabV3+, comprising:
[0006] Step S1, inputting a remote sensing image training set containing buildings into an improved DeepLabV3+ model for training, and using a remote sensing image verification set to perform parameter optimization of the improved DeepLabV3+ model;
[0007] The improved DeepLabV3+ model includes an input layer, a feature processing layer and an output layer. The feature processing layer includes a deep convolutional neural network, a parallel dual attention mechanism module and a Vortex Pooling module and a decoder. The deep convolutional neural network extracts high-level feature information and low-level feature information from the remote sensing image input by the input layer. The dual attention mechanism module and the Vortex Pooling module process the high-level feature information in parallel and then perform feature fusion. The decoder performs fusion processing on the low-level feature information and the fused high-level feature information, and then outputs a prediction effect diagram through the output layer.
[0008] The improved DeepLabV3+ model is a semantic segmentation model based on multi-task learning, which includes a semantic segmentation task of binary classification extraction of buildings in remote sensing images and a high-dimensional space segmentation task of the distance between internal points of buildings in remote sensing images;
[0009] The dual attention mechanism module processes the high-level feature information, including: the channel attention module in the dual attention mechanism module performs feature enhancement processing on the binary feature information in the high-level feature information, the spatial attention module in the dual attention mechanism module performs feature enhancement processing on the high-dimensional space feature information in the high-level feature information, and the dual attention mechanism module fuses the enhanced binary feature information and the high-dimensional space feature information and outputs them;
[0010] The total loss function L of the improved DeepLabV3+ model total for:
[0011] L total =ω1L discrimative +ω2L segmentation ;
[0012] Among them, L discrimative is the discriminant loss function, ω1 is the weight of the discriminant loss function, L segmentation is the semantic segmentation loss function, ω2 is the weight of the semantic segmentation loss function, the discriminant loss function is used to train the deep convolutional neural network, and the total loss function L total Used to train the improved DeepLabV3+ model;
[0013] Step S2, testing the trained improved DeepLabV3+ model using a remote sensing image test set, and if the test meets the requirements, outputting it as a building extraction model;
[0014] Step S3, inputting the remote sensing image to be predicted into the building extraction model to obtain a prediction effect map with the building outline extracted;
[0015] The images of the feature processing layers in the improved DeepLabV3+ model and the building extraction model are binary data, and the images of the output layer are floating-point data.
[0016] The beneficial effects of the present invention are as follows: the present invention improves the defects of the Deeplabv3+ algorithm, uses VortexPooling to replace the ASPP module to extract context information, designs and implements a network model that connects the DAMM structure in parallel with the Vortex Pooling module, can improve the slow fitting phenomenon in training, and alleviates the problem that the large-scale target class segmentation is inconsistent and the edge of the building is missing due to differences between similar targets and the target scale is too large in building extraction. At the same time, the method of mixed training and verification of binary and floating point numbers not only reduces the consumption of deeper semantic segmentation network computing resources in the remote sensing image building segmentation task, but also can effectively segment the building and ensure the detection accuracy. At the same time, the shared features of the multi-task learning method are used to train similar tasks, and the sum of the loss functions of the two tasks constitutes the total loss function of the model. The Adam algorithm is used in training to iteratively update the model weights until the loss function value converges, which can reduce the adhesion of the building boundaries in the remote sensing image, improve the accuracy of the deep convolutional neural network in extracting remote sensing image buildings, and improve the effect of target extraction. Therefore, the present invention can reduce the consumption of computing resources, improve the training speed and improve the accuracy of building extraction.
[0017] Optionally, before step S1, the step further includes:
[0018] Step S0, obtaining the original remote sensing images of the remote sensing image data source, performing data enhancement and sample balance, image cropping and eliminating images without buildings, image binarization and manual annotation of buildings to construct a remote sensing image dataset, and randomly dividing it into a remote sensing image training set, a remote sensing image verification set and a remote sensing image test set according to a preset number.
[0019] Optionally, the image is a binary data realization function:
[0020] x B =Sign(x)= ;
[0021] Among them, x B is the data after the image variable is binarized; Sign(x) is the sign function; x represents the input, and its range is (-∞, +∞).
[0022] Optionally, the deep convolutional neural network is an Xception network.
[0023] Optionally, after the decoder performs fusion processing on the low-level feature information and the fused high-level feature information, outputting the prediction effect graph through the output layer includes:
[0024] The decoder performs 4-fold linear upsampling on the fused high-level feature information, performs fusion processing with the low-level feature information, and then performs 4-fold linear upsampling, and then outputs the prediction effect map through the output layer.
[0025] Optionally, constructing a remote sensing image dataset includes:
[0026] Step S01, after obtaining all the first remote sensing images with manually marked buildings, obtaining an original remote sensing image data set, statistically summarizing the inclination angle of each building in the first remote sensing image, and obtaining the number of buildings in different inclination angle intervals in the original remote sensing image data set;
[0027] Step S02: Summarize the tilt angle intervals whose number of buildings is lower than the minimum preset number a of model training to obtain a set of angles to be supplemented, and count the number of missing points S of each tilt angle interval in the set of angles to be supplemented, which is expressed as follows:
[0028] S i =a×(1+b)-P i ;
[0029] Among them, S i is the missing number of the i-th tilt angle interval in the angle set to be supplemented, b is the random coefficient within the preset fluctuation range, P i represents the actual number of the i-th tilt angle interval in the angle set to be supplemented, where i is a positive integer ranging from 1 to the total number of tilt angle intervals in the angle set to be supplemented;
[0030] Step S03, re-cropping a second remote sensing image from the original remote sensing image to supplement the corresponding missing number of tilt angle intervals, and according to the number of supplemented second remote sensing images, removing an equal number of buildings from the first remote sensing image where the number of buildings is higher than the standard number of tilt angle intervals, to obtain the final remote sensing image data set.
[0031] According to the above description, the building extraction accuracy can be further improved by monitoring the number of buildings with different inclination angles and supplementing them to meet the minimum preset number.
[0032] Optionally, in step S03, re-cropping the second remote sensing image from the original remote sensing image to supplement the corresponding missing number of tilt angle intervals includes:
[0033] For the first missing number in the first inclination angle interval, a second remote sensing image that meets the first missing number is re-cropped from the original remote sensing image where the first inclination angle interval is located by dislocation, or a second remote sensing image that meets the first missing number is re-cropped from all original remote sensing images by rotating them to the inclination angle of the building in the first inclination angle interval, or a combination of the above two methods.
[0034] In the second aspect, the present invention provides a remote sensing image building extraction device based on the improved DeepLabV3+, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, a remote sensing image building extraction method based on the improved DeepLabV3+ of the first aspect is implemented.
[0035] Among them, the technical effect corresponding to the remote sensing image building extraction device based on the improved DeepLabV3+ provided in the second aspect refers to the relevant description of the remote sensing image building extraction method based on the improved DeepLabV3+ provided in the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] Figure 1 A schematic diagram of the main process of a remote sensing image building extraction method based on improved DeepLabV3+ according to an embodiment of the present invention;
[0037] Figure 2 This is a schematic diagram of an example of a remote sensing image data source involved in an embodiment of the present invention;
[0038] Figure 3 Schematic diagram of the improved DeepLabV3+ model involved in the embodiment of the present invention;
[0039] Figure 4 A schematic diagram of a Vortex Pooling module according to an embodiment of the present invention;
[0040] Figure 5 A schematic diagram of a training curve of a total loss function involved in an embodiment of the present invention;
[0041] Figure 6 is one of the remote sensing images involved in the embodiment of the present invention;
[0042] Figure 7 for Figure 6 Reference renderings for building extraction;
[0043] Figure 8 for Figure 6 Carry out the predicted effect diagram of building extraction;
[0044] Fig. 9 Schematic diagram of the framework of a remote sensing image building extraction device based on improved DeepLabV3+ according to an embodiment of the present invention.
[0045] [Description of Reference Numerals]
[0046] 1: A remote sensing image building extraction device based on improved DeepLabV3+;
[0047] 2: Processor;
[0048] 3: Memory. DETAILED DESCRIPTION
[0049] In order to better understand the above technical solution, exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present invention are shown in the accompanying drawings, it should be understood that the present invention can be implemented in various forms and should not be limited by the embodiments described herein. On the contrary, these embodiments are provided to enable a clearer and more thorough understanding of the present invention and to fully convey the scope of the present invention to those skilled in the art.
[0050] Embodiment 1
[0051] This embodiment is applicable to application scenarios where buildings need to be extracted from images, especially from remote sensing images. The prior art uses the Deeplabv3+ semantic segmentation model for implementation, which has problems such as slow training speed, low edge target segmentation accuracy, category imbalance and insufficient use of context information, and missing edges in segmented targets. This embodiment solves the above problems by improving the use of Vortex Pooling to replace the ASPP module to extract context information, applying multi-task learning and discriminant loss functions, mixed training and verification methods for binary and floating-point numbers, and designing and implementing a network model that connects the DAMM structure in parallel with the Vortex Pooling module. See the following description for details.
[0052] Please refer to Figures 1 to 8 , a remote sensing image building extraction method based on improved DeepLabV3+, including:
[0053] Step S0, obtaining the original remote sensing images of the remote sensing image data source, performing data enhancement and sample balance, image cropping and eliminating images without buildings, image binarization and manual annotation of buildings to construct a remote sensing image dataset, and randomly dividing it into a remote sensing image training set, a remote sensing image verification set and a remote sensing image test set according to a preset number.
[0054] In this embodiment, the remote sensing image data source used is the Inriaaerial Image Labeling Dataset (IAILD dataset) released by the French National Institute for Information and Automation in 2018. It is mainly used for remote sensing image urban building detection and segmentation. The label categories are buildings and backgrounds, and the annotation classification is at the pixel level. It is mainly used for semantic segmentation tasks. The dataset contains 180 5000×5000 rectified aerial orthophoto color images with a spatial resolution of 0.3m and corresponding annotated classification images. The images mainly include five major different urban areas with a total coverage area of approximately 810km 2 .
[0055] In order to facilitate network training, meet the needs of neural networks, effectively utilize remote sensing image information and computer memory resources, unify the size of remote sensing images in the data set, fill 60 pixels around the edges of 5000×5000 images with black pixels, and crop them into 512×512 images with a step size of 512 pixels. Exclude images without buildings, and randomly divide the cropped images into a training set of 14,000 images, a validation set of 470 images, and a test set of 3,000 images. Figure 2 It can be seen that the data set contains remote sensing image building samples of different cities, different styles, uses, and scales. During the experiment, different numbers of training set images in the test set can be randomly selected, which can be used to evaluate the accuracy of the model and verify the robustness and generalization ability of the method in this embodiment.
[0056] It should be noted that Figure 2 There are six columns from left to right. The first column is Bellingham, whose Chinese name is Bellingham; the second column is innsburck, whose Chinese name is Innsbruck; the third and fourth columns are both SanFrancisco, whose Chinese name is San Francisco; the fifth column is Tyrol, whose Chinese name is Tyrol; and the sixth column is Chicago, whose Chinese name is Chicago.
[0057] Step S1, inputting the remote sensing image training set containing buildings into the improved DeepLabV3+ model for training, and using the remote sensing image verification set to optimize the parameters of the improved DeepLabV3+ model;
[0058] Reference Figure 3It can be seen that the improved DeepLabV3+ model includes an input layer, a feature processing layer and an output layer. The feature processing layer includes a deep convolutional neural network, a parallel dual attention mechanism module, a Vortex Pooling module and a decoder. The deep convolutional neural network extracts high-level feature information and low-level feature information from the remote sensing image input into the input layer. The dual attention mechanism module and the Vortex Pooling module process the high-level feature information in parallel and then perform feature fusion. The decoder fuses the low-level feature information and the fused high-level feature information, and then outputs the prediction effect map through the output layer.
[0059] Among them, the deep convolutional neural network is the Xception network, which is a commonly used lightweight network.
[0060] In this embodiment, after the decoder fuses the low-level feature information and the fused high-level feature information, the prediction effect graph outputted through the output layer includes:
[0061] The decoder performs 4-fold linear upsampling on the fused high-level feature information, fuses it with the low-level feature information, and then performs 4-fold linear upsampling, and then outputs the prediction effect map through the output layer.
[0062] Among them, the improvements of the improved DeepLabV3+ model compared with the existing model are further explained as follows:
[0063] 1. Use Vortex Pooling module to replace ASPP module
[0064] In the semantic segmentation task, the spatial information of the target has an important influence on improving the segmentation accuracy. Semantic segmentation requires a balance between local and global information, where local information can obtain better pixel-level accuracy, while the image context information helps to remove local feature ambiguity. The pooling layer can enable the network to obtain a certain degree of spatial independence, reduce the amount of calculation, and obtain global context information.
[0065] This example replaces the ASPP module in Deeplabv3+ with the Vortex Pooling module, and uses a global average pooling to integrate global features. Finally, a 1×1 convolution is used to obtain the final prediction map. The VortexPooling module fully utilizes contextual information by describing the local interactions between close neighborhood positions. Areas close to the target generally contain more semantic information, so better feature expression can be obtained. Figure 4As shown in the figure, the Vortex Pooling module uses 6×6, 12×12, and 18×18 average pooling for the feature graphs of the deep convolutional neural network in parallel. The pooling layer can reduce the amount of computation and obtain global context information. Small pooling can better express detailed features, while large pooling can help obtain rough context information.
[0066] 2. Multi-task learning and discriminative loss function
[0067] In this embodiment, the improved DeepLabV3+ model is a semantic segmentation model based on multi-task learning, which includes a semantic segmentation task of binary classification extraction of buildings in remote sensing images and a high-dimensional space segmentation task of the distance between internal points of buildings in remote sensing images;
[0068] The dual attention mechanism module processes high-level feature information, including: the channel attention module in the dual attention mechanism module performs feature enhancement processing on the binary feature information in the high-level feature information, the spatial attention module in the dual attention mechanism module performs feature enhancement processing on the high-dimensional space feature information in the high-level feature information, and the dual attention mechanism module fuses the enhanced binary feature information and the high-dimensional space feature information and outputs them;
[0069] The total loss function L of the improved DeepLabV3+ model total for:
[0070] L total =ω1L discrimative +ω2L segmentation ;
[0071] Among them, L discrimative is the discriminant loss function, ω1 is the weight of the discriminant loss function, L segmentation is the semantic segmentation loss function, ω2 is the weight of the semantic segmentation loss function, the discriminant loss function is used to train the deep convolutional neural network, and the total loss function L total Used to train the improved DeepLabV3+ model.
[0072] Therefore, this embodiment integrates multiple tasks with deep learning algorithms. Therefore, the first task requires that the features extracted from the network can distinguish between buildings and non-buildings, that is, binary feature information; the second task generates a high-dimensional semantic feature vector corresponding to each building pixel, that is, high-dimensional spatial feature information. It can reduce the adhesion of building boundaries in remote sensing images, improve the accuracy of deep convolutional neural networks in extracting remote sensing image buildings, and improve the effect of target extraction.
[0073] This embodiment uses a discriminant loss function to train a deep neural network so that it can generate high-dimensional feature vectors corresponding to individual pixels of different buildings. In the high-dimensional space, the feature vectors corresponding to pixels belonging to the same building are clustered in space, and the feature vectors of pixels of different buildings are far away from each other, so as to improve the segmentation accuracy of the network.
[0074] 3. Introducing the dual attention mechanism module
[0075] The Deeplabv3+ network has the defects of slow fitting speed, inaccurate edge target segmentation, inconsistent large-scale target segmentation within the class, and holes in the semantic segmentation of remote sensing images. This embodiment introduces the dual attention mechanism module into the Deeplabv3+ network, proposes a Deeplabv3+ model based on the dual attention mechanism, designs and implements the connection mode of connecting the DAMM structure with the Vortex Pooling module in parallel, connects the dual attention mechanism layer with the VortexPooling module in parallel, and processes the backbone network in parallel to extract feature maps, and then fuses the two layers to process feature information. The improved network model is verified by the IAILD dataset. The results show that the parallel network structure can effectively improve the shortcomings of Deeplabv3+, the network performance is better, and the improvement effect on the phenomenon of missing edges in the original network is more obvious, which is more in line with the requirements of this embodiment. Finally, a solution for uniformly improving the above problems of the Deeplabv3+ network is formed.
[0076] The network model of this embodiment designs a parallel structure of DAMM and Vortext Pooling modules. Referring to Table 1, it can be seen that in the parallel structure, the model recognition result is more accurate, and the mIoU reaches 85.54%, which is 3.33% higher than the baseline. When the output_stride in the network model is set to 8, the advantage of DAMM in the model recognition result in the network is also obvious. From the test results in Table 2, it can be seen that the parallel structure network optimization advantage is obvious, DAMM has a good promoting effect on the performance of Deeplabv3+, the model recognition result is more accurate, the mPrecision of the building is 6.48% higher than the original network, and the recognition time is slightly lower than the original Deeplabv3+ network, which proves the advanced nature of the network.
[0077] Table 1. Comparison of network experimental results between this embodiment and the original Deeplabv3+ model
[0078] Network Model Steps mIOU / % Original Deeplabv3+ model 16 82.21 Original Deeplabv3+ model 8 83.68 This embodiment 16 85.54 This embodiment 8 86.31
[0079] Therefore, the Deeplabv3+ deep semantic segmentation network with a parallel structure of dual attention mechanism and Vortext Pooling module was adopted to train and test buildings on the IAILD dataset. Compared with the original Deeplabv3+ network, the improved network has significantly improved convergence speed in remote sensing data training. The experimental results show that the attention mechanism can improve the slow fitting phenomenon in training and alleviate the problems of inconsistent segmentation within large-scale target classes and missing building edges in building extraction due to differences between similar targets and large target scales, further proving the effectiveness of DAMM.
[0080] 4. Mixed training and validation of binary and floating point numbers
[0081] In this embodiment, the images of the feature processing layers in the improved DeepLabV3+ model and the building extraction model are binary data, and the images of the output layers are floating-point data.
[0082] In this embodiment, the image is a binary data implementation function:
[0083] x B =Sign(x)= ;
[0084] Among them, x B is the data after the image variable is binarized; Sign(x) is the sign function; x represents the input, and its range is (-∞, +∞).
[0085] Specifically, the model compression is studied to improve the practicality of its hardware by targeting the problems of excessive storage space and high consumption of computing resources caused by complex models, focusing on three directions: accelerating network structure design, model pruning, and weight quantization. The existing clever network structures such as grouped convolution and decomposed convolution can reduce the number of parameters, but the implementation is relatively complicated; model pruning requires determining the pruning rate and pruning threshold, and redefining the data structure for storing the code. In comparison, binarization does not require changing the network architecture and storage structure, which is simpler and faster, and has a significant compression effect. Therefore, in order to reduce the consumption of computing resources of deeper semantic segmentation networks in remote sensing image building segmentation tasks, this embodiment proposes a semantic segmentation network based on a mixed method of binary and floating point numbers. Deeplabv3+ is combined with the network compression method in the field of image classification, and the network feature extraction layer is binarized to address the problems of excessive precision loss and slow training caused by the global binary semantic segmentation network, while the output layer weights that occupy a small amount of parameters and storage are retained as a mixed binary semantic segmentation network of floating point type, forming an improved version of the lightweight Deeplabv3+ network. The test results show that this embodiment can effectively segment buildings and ensure detection accuracy, and has certain practical application value on a low-power hardware platform.
[0086] After the above model is built and the corresponding data set is selected, this embodiment uses the open source PyTorch learning framework and uses Python language programming to implement the algorithm network. The hardware environment is Lenovo Think Station P900 workstation, equipped with a 12GB NVIDIA GeForce GTX Titan X graphics card, an Intel Xeon E5-2630 v3 CPU, and a 64-bit Ubuntu16.04 operating system. This embodiment uses the transfer learning method to initialize the network weights. The feature extraction network is first pre-trained using the ILSVRC-2012-CLS image classification data set. On the basis of this pre-trained model, the training set images are selected in batches of 64 and sent to the network model to train the network model of this embodiment. Transfer learning not only reduces training data and improves training efficiency, but also has better model generalization ability of transfer learning, which effectively improves the overall detection accuracy and model performance of the detection model. This embodiment uses cross entropy as the semantic segmentation loss function, and the Adam optimization algorithm is used in the experiment. It converges faster, has a more effective learning effect, and can correct problems existing in other optimization techniques. The learning rate is 0.0004, the epoch is 50, and the iterations are 50,000. For multi-task learning, the weights of the two tasks ω1 and ω2 are both set to 0.5. The trend of the total loss function value is as follows Figure 5 As shown in the figure, it can be seen that the loss function value continues to decrease as the training progresses, and finally stabilizes at a certain value.
[0087] Step S2, testing the trained improved DeepLabV3+ model using a remote sensing image test set, and if the test meets the requirements, outputting it as a building extraction model;
[0088] In this embodiment, in order to quantitatively evaluate the comprehensive performance of the remote sensing image extraction algorithm, this embodiment uses the following formulas to evaluate the test set images in six dimensions: average recall (mRecall), average precision (mPrecision), average accuracy (mAP) and F1 score, testing time of a single image in the test set (Testing time), and network model training time (Training time). The first four formulas are as follows:
[0089] mRecall= ;
[0090] mPrecision= ;
[0091] mAP= ;
[0092] F1= ;
[0093] Among them, k is a randomly selected group of k test images, P ij is the test accuracy, P ii The accuracy of correct extraction. Image segmentation is often based on multi-category pixel-level classification, and while classifying the target, it is also necessary to predict the target's bounding box, and the position of the bounding box directly affects the accuracy of the classification. Therefore, when calculating mAP, the number of pixels of multiple different categories should be counted based on the concept of IoU.
[0094] Among them, TP (True Positive) means that both the segmentation algorithm and the manual labeling method have extracted buildings, TN (True Negative) means that neither the segmentation algorithm nor the manual labeling method has extracted buildings, FN (False Negative) means that the segmentation algorithm has not extracted buildings but the manual labeling method has extracted buildings, and FP (False Positive) means that the segmentation algorithm has extracted buildings but the manual labeling method has not extracted buildings.
[0095] In order to verify that the method of this embodiment has a great advantage over the mainstream extraction algorithms, the IAILD dataset is tested using building extraction methods based on FCNs, U-net, Deeplabv3+, YOLACT, Mask-RCNN, etc., and Table 2 is obtained. This embodiment also tests the open source datasets WHU, Massachusetts, AIRS, and ISPRS to verify the generalization ability and robustness of the method of this embodiment in different open source datasets, and Table 3 is obtained.
[0096] Table 2. Comparison of algorithms on the IAILD dataset
[0097]
[0098] Table 3. Performance of different open source datasets
[0099]
[0100] As shown in Table 2, the average recall (mRecall), average precision (mPrecision), average accuracy (mAP) and F1 score of this embodiment are significantly higher than other existing extraction algorithms, and are nearly five percentage points higher than the unimproved DeepLabV3+ model, and the effect is obvious.
[0101] The parameters of the network layer structure of this embodiment adopt a hybrid type of binary plus floating point. In the network model, the forward reasoning use process of the network model mainly includes convolution and matrix multiplication operations, and the main operation is multiplication accumulation. When the weight is constrained to +1 or -1, many multiplication accumulation operations can be replaced by simple addition. This has a huge advantage in hardware operations, because fixed-point adders are faster than multiplication accumulators and require fewer resources. The binarized weight convolution uses multiple addition operations at a time, shortening the training time and reducing energy consumption. Therefore, introducing binarization into the feature extraction layer can effectively compress the storage space, greatly improving the practicality of the hardware.
[0102] The experimental results show that the method of this embodiment effectively solves the problem of slow or non-convergence of network training, and the performance is not lost, such as the pixel accuracy is 88.93%, and the F1 score is 88.31. See Table 2 above for details. Without losing the segmentation effect, the storage space is reduced by 96.87%, the training time is reduced by 26%, and the test time is reduced by 42%. Shorter training time and less storage space mean lower power consumption and higher usable value. After comparing the tests of multiple data sets, it can be seen that for most buildings, the network model of this embodiment can well predict the recognition segmentation, indicating the advanced nature of the mixed binary and floating-point weight method of this embodiment.
[0103] In order to ensure the rigor of the test experiment, the number of test images of the four comparison data sets selected in this embodiment is equal to the number of network tests in this embodiment. Referring to Table 3, it can be seen that compared with the data set of this embodiment, the quality and resolution of the Massachusetts data set are much lower, and there are many wrong labels, and the average recall rate and average precision rate are far different from the test results of the data set of this embodiment, which has a negative impact on the accurate segmentation and extraction of buildings by the neural network. The Vaihingen and Potsdam databases and AIRS data sets of WHU and ISPR are large-scale, high-resolution remote sensing building data sets, and the data sets contain buildings of different uses, different colors, different sizes and different scales. Therefore, the selection of these data sets for comparative experiments has certain representativeness and comparability. The various performances obtained by the algorithm model test of this embodiment can achieve the expected effect and have strong generalization ability. From a comprehensive comparison, the high scores of the six evaluation indicators show that the performance of the method of this embodiment is excellent, and the accuracy, robustness and generalization performance of the network are all good.
[0104] Some intuitive results of the experiment in this embodiment are as follows Figures 6 to 8 shown.
[0105] Step S3: input the remote sensing image to be predicted into the building extraction model to obtain a prediction effect image with the building outline extracted.
[0106] At this time, when the user needs to extract buildings from a new remote sensing image, he only needs to input it into the building extraction model to obtain a predicted effect image with the building outline.
[0107] Embodiment 2
[0108] Please refer to Figures 1 to 8 A remote sensing image building extraction method based on improved DeepLabV3+, based on the above embodiment 1, constructing a remote sensing image data set includes:
[0109] Step S01, after obtaining all the first remote sensing images after manually annotating the buildings, obtaining the original remote sensing image data set, statistically summarizing the inclination angle of each building in the first remote sensing image, and obtaining the number of buildings in different inclination angle intervals in the original remote sensing image data set;
[0110] In this embodiment, the tilt angle interval uses 10° as an interval length, and there are a total of 18 tilt angle intervals. The number of buildings in each tilt angle interval is different, and there are a total of about 18,000 remote sensing images. If the number of buildings in a certain tilt angle interval is only a few hundred, the sample size is too small and needs to be supplemented.
[0111] Step S02: Summarize the tilt angle intervals whose number of buildings is lower than the minimum preset number a of model training to obtain a set of angles to be supplemented, and count the number of missing points S of each tilt angle interval in the set of angles to be supplemented, which is expressed as follows:
[0112] S i =a×(1+b)-P i ;
[0113] Among them, S i is the missing number of the i-th tilt angle interval in the angle set to be supplemented, b is the random coefficient within the preset fluctuation range, P i represents the actual number of the i-th tilt angle interval in the angle set to be supplemented, i is a positive integer ranging from 1 to the total number of tilt angle intervals in the angle set to be supplemented;
[0114] Among them, a is set according to demand and is 1024 in this embodiment. At this time, the preliminary review fluctuation range is (0.0.2). Assuming that the random coefficient is selected to be 0.13 at this time, the actual number of the i-th tilt angle interval in the angle set to be supplemented is 579, then 1024×1.13-579=578 sheets, and the missing number is 578 sheets.
[0115] Step S03, re-cropping a second remote sensing image from the original remote sensing image to supplement the corresponding missing number of tilt angle intervals, and according to the number of supplemented second remote sensing images, removing an equal number of buildings from the first remote sensing image where the number of buildings is higher than the standard number of tilt angle intervals, to obtain the final remote sensing image data set.
[0116] Among them, in step S03, re-cropping the second remote sensing image from the original remote sensing image to supplement the corresponding missing number of tilt angle intervals includes:
[0117] For the first missing number in the first inclination angle interval, a second remote sensing image that meets the first missing number is re-cropped from the original remote sensing image in the first inclination angle interval by dislocation, or a second remote sensing image that meets the first missing number is cropped from all the original remote sensing images by rotating them to the point where the inclination angle of the building is in the first inclination angle interval, or a combination of the above two methods.
[0118] That is, a new image different from the first remote sensing image can be cut out from the original remote sensing image that originally meets the tilt angle by moving in the up, down, left, right and other directions for use, or the original remote sensing image with other tilt angles can be rotated to obtain the required tilt angle. This operation change can be automatically and batch generated by the software to meet the required number of second remote sensing images.
[0119] In this way, by monitoring the number of buildings with different inclination angles and supplementing them to meet the minimum preset number, it helps to further improve the accuracy of building extraction while ensuring that there are enough training samples.
[0120] Embodiment 3
[0121] Please refer to Fig. 9 A remote sensing image building extraction device 1 based on the improved DeepLabV3+ includes a memory 3, a processor 2, and a computer program stored in the memory 3 and executable on the processor 2. When the processor 2 executes the computer program, the steps in the above-mentioned embodiment 1 or 2 are implemented.
[0122] Since the system / device described in the above embodiments of the present invention is a system / device used to implement the method of the above embodiments of the present invention, a person skilled in the art can understand the specific structure and deformation of the system / device based on the method described in the above embodiments of the present invention, and thus will not be described in detail here. All systems / devices used in the method of the above embodiments of the present invention belong to the scope of protection of the present invention.
[0123] It should be understood by those skilled in the art that embodiments of the present invention may be provided as methods, apparatuses or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0124] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (apparatus) and computer program products according to embodiments of the present invention. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions.
[0125] It should be noted that in the claims, any reference numerals placed between brackets shall not be construed as limiting the claims. The word "comprising" does not exclude the presence of components or steps not listed in the claims. The word "a" or "an" preceding a component does not exclude the presence of a plurality of such components. The invention may be implemented by means of hardware comprising several different components and by means of a suitably programmed computer. In the claims enumerating several means, several of these means may be embodied by the same hardware. The use of the words first, second, third, etc., is for convenience of expression only and does not indicate any order. These words may be understood as part of the component name.
[0126] In addition, it should be noted that, in the description of this specification, the description of the terms "one embodiment", "some embodiments", "embodiment", "example", "specific example" or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, unless they are contradictory.
[0127] Although the preferred embodiments of the present invention have been described, those skilled in the art may make other changes and modifications to these embodiments after knowing the basic creative concept. Therefore, the claims should be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the present invention.
[0128] Obviously, those skilled in the art can make various modifications and variations to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention should also include these modifications and variations.
Claims
1. A remote sensing image building extraction method based on improved DeepLabV3+, characterized in that: include: Step S1, inputting a remote sensing image training set containing buildings into an improved DeepLabV3+ model for training, and using a remote sensing image verification set to perform parameter optimization of the improved DeepLabV3+ model; The improved DeepLabV3+ model includes an input layer, a feature processing layer and an output layer. The feature processing layer includes a deep convolutional neural network, a parallel dual attention mechanism module and a Vortex Pooling module, and a decoder. The deep convolutional neural network extracts high-level feature information and low-level feature information from the remote sensing image input by the input layer. The dual attention mechanism module and the Vortex Pooling module process the high-level feature information in parallel and then perform feature fusion. The decoder performs fusion processing on the low-level feature information and the fused high-level feature information, and then outputs a prediction effect diagram through the output layer. The improved DeepLabV3+ model is a semantic segmentation model based on multi-task learning, which includes a semantic segmentation task of binary classification extraction of buildings in remote sensing images and a high-dimensional space segmentation task of the distance between internal points of buildings in remote sensing images; The dual attention mechanism module processes the high-level feature information, including: the channel attention module in the dual attention mechanism module performs feature enhancement processing on the binary feature information in the high-level feature information, the spatial attention module in the dual attention mechanism module performs feature enhancement processing on the high-dimensional space feature information in the high-level feature information, and the dual attention mechanism module fuses the enhanced binary feature information and the high-dimensional space feature information and outputs them; The total loss function L of the improved DeepLabV3+ model total for: L total =ω1L discrimative +ω2L segmentation ; Among them, L discrimative is the discriminant loss function, ω1 is the weight of the discriminant loss function, L segmentation is the semantic segmentation loss function, ω2 is the weight of the semantic segmentation loss function, the discriminant loss function is used to train the deep convolutional neural network, and the total loss function L total Used to train the improved DeepLabV3+ model; Step S2, testing the trained improved DeepLabV3+ model using a remote sensing image test set, and if the test meets the requirements, outputting it as a building extraction model; Step S3, inputting the remote sensing image to be predicted into the building extraction model to obtain a prediction effect map with the building outline extracted; The images of the feature processing layers in the improved DeepLabV3+ model and the building extraction model are binary data, and the images of the output layer are floating point data; Before step S1, the following steps are also included: Step S0, obtaining the original remote sensing images of the remote sensing image data source, performing data enhancement and sample balance, image cropping and eliminating images without buildings, image binarization and manual annotation of buildings, and then constructing a remote sensing image dataset, and randomly dividing it into a remote sensing image training set, a remote sensing image verification set, and a remote sensing image test set according to a preset number; The constructing of the remote sensing image data set comprises: Step S01, after obtaining all the first remote sensing images with manually marked buildings, obtaining an original remote sensing image data set, statistically summarizing the inclination angle of each building in the first remote sensing image, and obtaining the number of buildings in different inclination angle intervals in the original remote sensing image data set; Step S02: Summarize the tilt angle intervals whose number of buildings is lower than the minimum preset number a of model training to obtain a set of angles to be supplemented, and count the number of missing points S of each tilt angle interval in the set of angles to be supplemented, which is expressed as follows: S i =a×(1+b)-P i ; Among them, S i is the missing number of the i-th tilt angle interval in the angle set to be supplemented, b is the random coefficient within the preset fluctuation range, P i represents the actual number of the i-th tilt angle interval in the angle set to be supplemented, where i is a positive integer ranging from 1 to the total number of tilt angle intervals in the angle set to be supplemented; Step S03, re-cropping a second remote sensing image from the original remote sensing image to supplement the corresponding missing number of tilt angle intervals, and according to the number of supplemented second remote sensing images, removing the same number of buildings from the first remote sensing image where the number of buildings is higher than the standard number of tilt angle intervals, so as to obtain the final remote sensing image data set.
2. The remote sensing image building extraction method based on improved DeepLabV3+ according to claim 1, characterized in that: The image is a binary data realization function: x B =Sign(x)= ; Among them, x B is the data after the image variable is binarized; Sign(x) is the sign function; x represents the input, and its range is (-∞, +∞).
3. The remote sensing image building extraction method based on improved DeepLabV3+ according to claim 1, characterized in that: The deep convolutional neural network is an Xception network.
4. The remote sensing image building extraction method based on improved DeepLabV3+ according to claim 3, characterized in that: After the decoder performs fusion processing on the low-level feature information and the fused high-level feature information, outputting the prediction effect graph through the output layer includes: The decoder performs 4-fold linear upsampling on the fused high-level feature information, performs fusion processing with the low-level feature information, and then performs 4-fold linear upsampling, and then outputs the prediction effect map through the output layer.
5. The remote sensing image building extraction method based on improved DeepLabV3+ according to claim 1, characterized in that: In step S03, the second remote sensing image is re-cropped from the original remote sensing image to supplement the corresponding missing number of tilt angle intervals, including: For the first missing number in the first inclination angle interval, a second remote sensing image that meets the first missing number is re-cropped from the original remote sensing image where the first inclination angle interval is located by dislocation, or a second remote sensing image that meets the first missing number is re-cropped from all original remote sensing images by rotating them to the inclination angle of the building in the first inclination angle interval, or a combination of the above two methods.
6. A remote sensing image building extraction device based on improved DeepLabV3+, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, it implements the remote sensing image building extraction method based on the improved DeepLabV3+ as described in any one of claims 1 to 5.
