Building regularization extraction method of high-resolution remote sensing image guided by spatial form information
By combining GCNN and CNN, and utilizing graph convolutional networks and regularization optimization functions, the problem of irregular boundaries in building extraction from high-resolution remote sensing images was solved, achieving high-precision regularized vector extraction and enhancing the application value of remote sensing image data.
Patent Information
- Application Number
- CN202310396472.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-04-11
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2043-04-11
AI Technical Summary
When extracting buildings from high-resolution remote sensing images, existing technologies often fail to effectively extract geometric information from irregular shapes using CNN models. This results in blurred and uneven building boundaries. Furthermore, the end-to-end processing relies on the quality of the segmentation results, limiting accuracy and efficiency and making it difficult to achieve regularized vector extraction.
We employ a strategy combining GCNN and CNN, using Mask-RCNN to obtain the depth image semantic feature map and initial contour of building instance objects. By combining the dual-branch model of graph convolutional neural network and using regularization optimization function to constrain vector boundaries, we achieve high-precision regularization extraction of buildings.
It improves the accuracy of building extraction and the usability of data products in high-resolution remote sensing imagery, transforms building shapes from irregular to regular, enhances spatial morphological information, and adapts to data processing at different scales and in different regions.
Smart Images

Figure CN116563102B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of remote sensing application technology, and in particular to a method for regularizing the extraction of buildings from high-resolution remote sensing images guided by spatial morphology information. Background Technology
[0002] Buildings, as the main material elements constituting urban space, have polygonal geographic objects whose regular vectorized representation serves as the basis for data analysis in numerous downstream applications of remote sensing and geographic information, such as urban planning and management, digital mapping, and urban modeling. In recent years, supported by deep learning networks and computing power, significant progress has been made in the semantic segmentation of single building rooftops based on high-resolution overhead remote sensing imagery. Furthermore, numerous Convolutional Neural Network (CNN) models based on encoder-decoder structures have been constructed using U-Net as the backbone network, greatly improving the accuracy of building target extraction from remote sensing imagery. The forms of man-made buildings in cities mostly contain distinct straight lines and right angles, and the resulting building clusters exhibit typical arrangement and distribution patterns. These spatial morphological and distribution characteristics, previously represented by edge detection and corner detection-based building extraction studies, are expressed as statistical morphological descriptive indicators and their complex combinations, leading to CNNs rapidly surpassing these algorithms in terms of accuracy, universality, and efficiency.
[0003] Single-factor binary segmentation models provide pixel-level segmentation results by classifying each pixel individually, but they do not consider object-level geometric features. Furthermore, the spatial details lost through convolution and pooling operations in deep networks, even when recovered by the decoder, have limited accuracy, generating blurry, uneven, and irregular building boundaries. This differs significantly from the data required for realistic building appearance and mapping, creating a disconnect in application. Consequently, some boundary constraint post-processing algorithms for segmentation results have been proposed, but their non-end-to-end processing means they heavily rely on the quality of the segmentation results. The lack of iterative and learning-based optimization capabilities also leads to reduced accuracy, and efficiency is significantly limited when processing massive amounts of data. Therefore, how to directly predict the regularized polygonal vector contours of urban building objects in an end-to-end manner is a crucial link between data production and application analysis.
[0004] Furthermore, CNNs are not effective when used for spatial depth feature extraction of graphics. This is because CNNs excel at extracting texture, spectral, and abstract semantic features from two-dimensional Euclidean space image data, but they cannot extract geometric information from irregular graphic data structures. Graph Convolutional Neural Networks (GCNNs) based on topology are powerful tools for extracting features from the embedded representations of abstract graphic nodes, edges, and graphs. The boundary contours of a single building and the structural patterns of building groups naturally form graph structures. The vertices of the contour boundaries or the segmentation objects of buildings can be abstracted as nodes. The node description features and information transmission between adjacent nodes in the graph network can provide learnable local and global spatial depth features for accurate boundary localization.
[0005] Therefore, a key issue in the regularization extraction of buildings from high-resolution remote sensing images is how to scientifically and comprehensively establish a quantitative representation of the spatial morphology and distribution characteristics of buildings as input to GCNN, so as to effectively describe the similarity and difference of node features and the complexity of spatial relationships between nodes, and achieve regularity and smoothness of boundaries while obtaining accurate locations. The purpose of using graph convolutional neural networks for building regularization extraction is to optimize jagged, fragmented, and speckled building objects into accurate, concise, regular, and complete building objects, thereby increasing the amount of spatial morphological information contained in the extracted remote sensing image objects and connecting upstream building element data production with downstream cartographic generalization and other application tasks. Summary of the Invention
[0006] To address the aforementioned technical challenges, this invention employs a strategy combining GCNN and CNN. It utilizes the Mask-RCNN model to acquire the depth image semantic feature map and initial contour prediction of building instances. Based on the spatial distribution and quantitative morphological description indicators of buildings, it uses these as vector inputs to the "object segmentation-edge regularization" dual-branch GCNN model. Finally, a pyramid pool module aggregates image semantic features from the CNN decoder and spatial distribution structural features and edge spatial morphological features from the GCNN dual branches. A regularization optimization function is introduced to supplement the consistency of the cross-entropy function in describing the geometric description of building objects, outputting high-precision regularized vector results for urban buildings.
[0007] The technical solution of this invention is: a method for regularizing building extraction from high-resolution remote sensing images guided by spatial morphology information, comprising the following steps:
[0008] Step 1: Use the Mask-RCNN basic skeleton network to obtain the depth image semantic feature map and predict the initial contour of the building instance object, while preserving the correspondence between the predicted object and the ground truth object and the contour boundary point information;
[0009] Step 2: Construct a graph convolutional neural network (GCNN). The GCNN includes two branches: a segmentation branch based on global object information for obtaining the spatial distribution depth structural features of buildings, and an edge regularization branch based on local object information for obtaining the spatial edge depth morphological features of buildings.
[0010] Among them, the segmentation branch based on global object information includes several graph convolutional layers. Its input is a graph constructed with the center point of the building instance object as the node, and the spatial distribution characteristics of the building objects in the image are characterized by the position, size, direction and shape indicators of the object level.
[0011] The edge regularization branch based on local object information also includes several graph convolutional layers. Its input is a graph constructed with the boundary points of the building instance outline as nodes, and the morphological features of the object boundary are characterized by the multi-layer neighborhood triangle morphological index of the boundary node level.
[0012] Step 3: The pyramid pooling module is used to aggregate the image's deep semantic features, the building's spatial distribution deep structural features, and the building's spatial edge deep morphological features to obtain multiple feature maps of different sizes. Finally, the regularized extraction prediction map of the building object is obtained through convolution, upsampling, and channel stitching.
[0013] Step four: Train the building regularization extraction network model composed of steps one through three, introduce a regularization loss function to supplement the cross-entropy function to further constrain the vector boundary, and use the trained building regularization extraction network model to achieve building regularization extraction from high-resolution remote sensing images.
[0014] Furthermore, the specific implementation steps for the segmentation branch based on global object information in step two are as follows:
[0015] (a1) Construct a Deloni triangulation using the center point of the instance object obtained in step one as the vertex, use the center point as the node of the graph, and use the edge of the Deloni triangulation as the connecting edge of the graph. Therefore, the triangulation formed by multiple building instance objects in each training sample image forms a graph.
[0016] (a2) Based on the four types of features of the location distribution, size distribution, orientation distribution and shape distribution of the polygon objects of buildings in the group, 12 index features of graph nodes are obtained. Among them, the location distribution feature is the center point of the building instance object, the size distribution feature includes three indicators of the area, perimeter and average radius of the building instance, the orientation distribution feature includes two indicators of the main direction of the minimum bounding rectangle of the building instance and the main direction of the building wall, and the shape distribution feature includes six indicators of compactness, fractal dimension, extensibility, concavity, overlap and Fourier shape descriptor.
[0017] (a3) The segmentation branch based on global object information consists of 5 graph convolutional layers, GraphConv1 with 16 output channels, GraphConv2 with 64 output channels, GraphConv3 with 128 output channels, GraphConv4 with 256 output channels, and GraphConv5 with 256 output channels. Each convolutional layer is activated by a modified linear unit. Each graph node contains features from graphs and images. The features of the graphs are calculated in step (a2), and the features of the images are the semantic feature maps of the depth images.
[0018] Furthermore, the average radius of a building instance is calculated from the average distance from all boundary points on its profile to its center point:
[0019]
[0020] Where d j This represents the distance from boundary point j to the center point; M is the number of boundary points.
[0021] Furthermore, the compactness of the building instance is calculated using the quadratic relationship between its area and perimeter:
[0022]
[0023] The calculations for fractal dimension, elongation, concavity, and overlap index are as follows:
[0024]
[0025]
[0026] In the formula, L sbr W sbr These are the length and width of the minimum bounding rectangle of the building instance, respectively.
[0027]
[0028] In the formula, A c h is the area of the convex hull (CH) of the building instance;
[0029]
[0030] In the formula, A b∩eac A b∪eac These are the areas of the intersection and union of the building instance and its equal area circle (EAC), respectively.
[0031] Furthermore, the Fourier shape descriptor uses Fourier transform to express the shape based on the building instance contour as a mathematical representation based on discrete vectors, where the boundary point p on the building instance contour... j The coordinates of the contour from the starting point p0 to p j The function of the total boundary length l is expressed by a Fourier series as:
[0032]
[0033] Among them, the Fourier coefficients F of each order k The expression is
[0034]
[0035] In the formula, L is the perimeter of the building instance object, which is also the period of the function P(l), (x j ,y j ) represents the boundary vertex p j The coordinates of the point j It is p0 to p j The length of the line segment and L j ≤l≤L j+1 , 0≤j≤M-1; In this formula, i refers to the imaginary unit, i 2 =-1;
[0036] It can be seen that the coefficient F of P(l) k Since both are complex numbers, we take F. k The modulus vectors of P(l) constitute the modulus vector F, which is...
[0037] F = (||F1||,||F2||,…,||F k ||) (32)
[0038] By normalizing F to make it invariant to rotation, scale, and translation, we obtain the Fourier shape descriptor of the building instance.
[0039]
[0040] Considering that the value of the first term is 1 after normalization, removing the first term gives D as:
[0041] D = (d1, d2, ..., d k-1 (34)
[0042] Therefore, the length of the Fourier descriptor approaches infinity as the fitting accuracy increases. In actual operation, the length of 50 is taken when the fitting accuracy is greater than 0.98, and the vector dimension is 1×50.
[0043] Furthermore, the specific implementation steps of the edge rule-based branching based on local object information in step two are as follows:
[0044] (b1) The number of vertices of the outline boundary of the building instance object processed in step one is N and the starting point is the lower left corner. The graph is constructed with vertices and boundary line segments between points. Based on the morphological features of the neighboring triangles of the vertices, the multi-dimensional scale features of the vertices are extracted.
[0045] (b2) The edge regularization branch based on local object information consists of three graph convolutional layers (GraphConv1, GraphConv2, and GraphConv3) with 16 output channels, 64 output channels, and 128 output channels. Each convolutional layer is activated by a modified linear unit. Each graph node contains features from the graph and the image. The graph features are calculated in step (b1), and the image features are the depth image semantic feature map.
[0046] Furthermore, the vertex-based neighborhood triangle morphological features in step (b1) include seven features, as follows:
[0047] (a) Structural features formed by boundary sequence points and their k-order neighbors: Let the current point A and its two k-order neighbors, B and C, form a triangle ΔABC. The structural features include the area features of ΔABC. String length characteristics and corner features in, The sign depends on the convexity or concavity of the arc segment BAC. When BA to AC is rotated clockwise, the arc segment becomes convex. Take a positive value, otherwise take a negative value; and The calculations are as follows:
[0048]
[0049] In the formula Let S be the area of ΔABC, and S be the area of the building instance.
[0050]
[0051] In the formula The boundary distance between point B and point C;
[0052] (b) The structural features formed by the k-th order neighboring points of the boundary sequence point and the center point of the building instance object. A triangle ΔOBC is formed by the center point O and two k-th order neighboring points B and C of the current boundary point A. The structural features include the area of ΔOBC. chord length characteristics and included angle characteristics The chord length characteristic includes the semi-perimeter. and radius The included angle is the angle formed by OB and OC, calculated as follows:
[0053]
[0054] In the formula Let ΔOBC be the area of ΔOBC.
[0055]
[0056]
[0057] In the formula Let d1, d2, and d3 be the semi-perimeter of ΔOBC, and let d1, d2, and d3 be the side lengths of the three sides of ΔOBC, respectively.
[0058]
[0059]
[0060] In the formula Let ΔOBC be the radius.
[0061] Furthermore, the pyramid pooling module includes four different pooling operations of different sizes: 1x1, 2x2, 3x3, and 6x6, to obtain feature maps of multiple sizes. Then, a regular 1×1 convolution is used to reduce the number of channels in these feature maps. Finally, a bilinear interpolation upsampling operation is used to obtain feature maps of the same size as those in front of the pyramid module, and these maps are then stitched together on the channels to obtain a regularized extraction prediction map of the building object.
[0062] Furthermore, step four introduces L. Ncut With L Potts The regularization optimization function complements the conventional cross-entropy function L. BCE The consistency of the geometric description of building objects is calculated as follows:
[0063]
[0064] In the formula, y i It predicts the probability that pixel i belongs to a building object. It is the ground truth value of the label image. N is the number of pixels;
[0065] L Potts =∑ k (Y k ) T W(1-Y k (43)
[0066]
[0067]
[0068] In the formula, Y is the output image matrix of the building regularization extraction network based on the image input x, which is a predicted value. k This refers to the k-th channel of Y, where k is the number of predicted categories, here k=2, i.e., buildings and non-buildings, W and These are similarity matrices that measure the weights of the connection edges between pixels in the input x and output Y images, respectively, and are calculated by the Gaussian kernel function in the RGBXY space.
[0069] L=α·L BCE +β·L Potts +γ·L Ncut (46)
[0070] In the formula, L is the total term of the loss function, and α, β, and γ are constants.
[0071] This invention establishes a deep network model combining two branches of CNN and GCNN under the guidance of spatial morphology information. This method improves the extraction accuracy and data product usability of single buildings in high-resolution remote sensing images by combining the advantages of conventional Convolutional Neural Networks (CNNs) in learning regular image features and Graph Convolutional Neural Networks (GCNNs) in learning irregular graphic structure features. The building morphology transforms from a vague, uneven, and irregular state to a regular state with precise and concise boundaries, increasing its spatial morphology information. This study investigates a regularized extraction method for single buildings in high-resolution remote sensing images, characterized by:
[0072] (1) Since conventional convolutional neural networks cannot extract geometric information from irregular graphic data structures, we study graph convolutional neural networks based on topology and propose an end-to-end method for extracting regularized vector data of buildings in high-resolution remote sensing images. The regularized extraction of graph convolutional neural networks integrates a lot of cartographic experience and knowledge, and can better adapt to data of different scales and regions.
[0073] (2) Based on the spatial local morphology and global distribution characteristics of buildings, quantitative building object cognition parameters are adopted, and parallel graph convolutional neural network branches are designed to simultaneously estimate the spatial relationship characteristics between a single building boundary and multiple building objects, effectively describing the similarity, difference and spatial relationship complexity between nodes.
[0074] (3) Introducing L Ncut With L PottsThe regularization optimization function complements the conventional cross-entropy function in terms of the consistency of geometric description of building objects, improves the extraction accuracy of individual buildings in the city, and enhances the usability of extracted vector data. Attached Figure Description
[0075] Figure 1 This is a model structure diagram of a method for regularizing the extraction of buildings from high-resolution remote sensing images guided by spatial morphology information.
[0076] Figure 2 This is a schematic diagram of the main direction in an example of the present invention.
[0077] Figure 3 This is a schematic diagram of the structural features formed by the k-th order neighboring points of the boundary sequence points and the center point of the building instance object in an embodiment of the present invention. Detailed Implementation
[0078] This invention proposes a method for regularizing and extracting buildings from high-resolution remote sensing images guided by spatial morphology information. First, a Mask-RCNN basic skeleton network model is used to obtain the depth image semantic feature map and initial contour prediction of building instances, while preserving the correspondence between the predicted objects and the ground truth objects, as well as the contour boundary point information. Second, the deep semantic features of the CNN are combined with the building morphology and structural cognitive parameters to extract and regularize the boundaries of the building objects using GCNN. The building regularization network based on the GCNN architecture comprises two branches: a segmentation branch based on global object information and an edge regularization branch based on local object information. The global structural information branch uses the center point of the building instance object as a node and considers 12 indicators, including the object's position, size, orientation, and shape, to characterize the spatial distribution features of the building object in the image. The local morphological information branch uses the boundary points of the building instance outline as nodes and considers 7 indicators, including the multi-scale neighborhood triangle morphology at the boundary node level, to characterize the morphological features of the object boundary. Finally, the pyramid pool module aggregates the image semantic features from the CNN decoder and the spatial distribution structural features and edge spatial morphological features from the two branches of GCNN. A regularization optimization function is introduced to supplement the consistency of the cross-entropy function in describing the geometric description of the building object, providing high-precision vector extraction results for urban building regularization.
[0079] The technical solution of the present invention will be described in detail below with reference to the accompanying drawings and embodiments. The model structure diagram is as follows: Figure 1 As shown, the technical solution process of the embodiment includes the following steps:
[0080] Step 1: Utilize the Mask-RCNN basic skeleton network model to obtain the depth image semantic feature map and initial contour prediction of the building instance object, while preserving the correspondence between the predicted object and the ground truth object, as well as the contour boundary point information. The specific implementation steps for obtaining the depth image semantic feature map and the initial contour boundary points of the building are as follows:
[0081] (1) Use the Mask R-CNN backbone network to obtain the local bounding box (proposal) and its segmentation binary mask for each building instance. Predict the binary mask as the initial contour of the instance object. Obtain the deep semantic features from the image by the mask branch of Mask R-CNN, with a dimension of 256×28×28.
[0082] (2) Considering the differences in shape complexity and segmentation accuracy among different building instances, the number of boundary points formed by their contours may vary significantly, requiring processing of the initial contour prediction of the instances:
[0083] (a) Based on the mask image of each instance (i.e. the output prediction result of the Mask R-CNN mask branch), obtain the center point coordinates, outer contour and contour boundary point coordinates of the instance object, and use the Douglas-Peucker (DP) algorithm to adaptively simplify the instance contour to obtain the simplified contour. The simplification threshold is adaptively adjusted according to the closed contour length of each instance.
[0084] (b) The simplified contour is interpolated using an equal-distance interpolation algorithm. Considering the redundancy of building boundary nodes and the number of feature maps and pooling layers in the graph convolutional neural network model, the number of boundary point nodes after interpolation is set to 64.
[0085] (c) Adjust the boundary point at the lower left corner of the contour to the starting node of the contour sequence.
[0086] Step two: Using the center point of the building instance as a node for graph construction, consider 12 indicators—position, size, orientation, and shape—to characterize the spatial distribution features of building objects in the image. Design a segmentation GCNN (graph convolution neural network) branch based on global object information. The specific implementation steps for constructing the GCNN segmentation branch guided by the spatial morphological features of building instances are as follows:
[0087] (1) Construct a Delaunay Triangle with the center point of the instance object obtained in step one as the vertex, and use the center point as the node of the graph and the edge of the Delaunay network as the edge of the graph. Therefore, the triangular network composed of multiple building instance objects in each training sample image forms a graph.
[0088] (2) Considering that the distribution structure of multiple building objects forms a complex and irregular group spatial relationship, based on the four categories of 12 features of the polygonal objects of the buildings in the group (position, size, orientation, and shape), a building spatial distribution description vector that can be processed by GCNN is constructed to measure the diversity of its geometric attributes:
[0089] (a) Location distribution characteristics:
[0090] The center point of a building instance is calculated from the arithmetic mean coordinates of its outline boundary nodes:
[0091]
[0092] In the formula x j y j Let M be the coordinates of each boundary point on the contour, and c be the number of boundary points. x ,c y The coordinates of the center point of the building instance object.
[0093] (b) Size distribution characteristics:
[0094] Unlike the previous location feature, the size feature of a building instance is determined by its area (A). b ), perimeter (P) b ), average radius (R) j The three indicators represent the average radius of a building instance, calculated from the average distance from all boundary points on its outline to its center point.
[0095]
[0096] Where d j This represents the distance from boundary point j to the center point;
[0097] (c) Directional distribution characteristics:
[0098] The directional characteristics of a building instance are represented by two indices: the minimum bounding rectangle direction (SBRO) and the principal direction of the building walls (WSWO). The minimum bounding rectangle of the building is approximated by the bounding box provided by Mask R-CNN, and its principal direction is defined as the angle between its major axis and the horizontal axis, such as... Figure 2 As shown, the same applies to the main direction of the wall.
[0099] First, we need to calculate the principal direction (θ) of each building instance, define the number of principal direction categories, then count the number of buildings of different categories, count the number of principal directions of buildings in each category interval within the group, and perform a difference analysis of the direction distribution within the group.
[0100] (d) Shape distribution characteristics:
[0101] The shape characteristics of a building instance are represented by six indices: compactness, fractal dimension, extensibility, concavity, overlap, and Fourier shape descriptor. Among these, the compactness of a building instance is calculated using the quadratic relationship between its area and perimeter.
[0102]
[0103] The calculations for fractal dimension, elongation, concavity, and overlap index are as follows:
[0104]
[0105]
[0106] In the formula, L sbr W sbr These are the length and width of the minimum bounding rectangle of the building instance, respectively.
[0107]
[0108] In the formula, A c h is the area of the convex hull (CH) of the building instance;
[0109]
[0110] In the formula, A b∩eac A b∪eac These are the areas of the intersection and union of the building instance and its equal area circle (EAC), respectively.
[0111] The Fourier shape descriptor uses Fourier transform to express the shape of a building instance contour as a discrete vector-based mathematical representation. The boundary point p on the building instance contour... j The coordinates of the contour from the starting point p0 to p j The function of the total boundary length l is expressed by a Fourier series as:
[0112]
[0113] Among them, the Fourier coefficients F of each order k The expression is
[0114]
[0115] In the formula, L is the perimeter of the building instance object, which is also the period of the function P(l), (x j ,y j ) represents the boundary vertex p j The coordinates of the point, (x j+1 ,y j+1 And so on, L j It is from p0 to P j The length of the line segment and (L) j ≤l≤L j+1 (0≤j≤M-1); In this formula, i refers to the imaginary unit, i 2 =-1.
[0116] It can be seen that the coefficient F of P(l) k Since both are complex numbers, we take F. k The modulus vectors of P(l) constitute the modulus vector F, which is...
[0117] F = (||F1||,||F2||,…,||F k ||) (56)
[0118] By normalizing F to make it invariant to rotation, scale, and translation, we obtain the Fourier shape descriptor of the building instance.
[0119]
[0120] Considering that the value of the first term is 1 after normalization, removing the first term gives D as:
[0121] D = (d1, d2, ..., d k-1 (58)
[0122] As can be seen from the formula, the length of the Fourier descriptor approaches infinity as the fitting accuracy increases. In actual operation, the length of 50 is taken when the fitting accuracy is greater than 0.98, and the vector dimension is 1×50.
[0123] (e) As can be seen from the above, the location, size, orientation, and shape distribution characteristics of building instances are measured by a set of indicators. To avoid the influence of indicator dimensions on subsequent analysis, all indicators are Z-score normalized. Their mean and standard deviation are calculated from all instance objects in the training set. The input feature dimensions from the graphics are a total of 62 (12+50) dimensions, where the first 12 dimensions refer to c in the location distribution characteristics. x ,c y Area (A) in dimensional featuresb ), perimeter (P) b ), average radius (R) j The main directions of the minimum bounding rectangle, the main directions of the building walls, and the compactness, fractal dimension, extensibility, concavity, and overlap are all defined. The Fourier descriptor has a dimension of 50.
[0124] (3) The segmentation GCNN branch based on global object information consists of 5 graph convolutional layers (GraphConv). The output channels of GraphConv1 are 16, GraphConv2 is 64, GraphConv3 is 128, GraphConv4 is 256, and GraphConv5 is 256. Each convolutional layer is activated by a rectified linear unit (ReLU). The graph nodes contain input features from graphs and images, totaling 318 (256+62) dimensions. The network optimizer uses the Adam algorithm with a learning rate and decay rate of 0.001 and 0.95, respectively. The 256 is the dimension of the deep semantic features from the image obtained by the mask branch of Mask R-CNN.
[0125] Step 3 (conducted simultaneously with Step 2): Using the boundary points of the building instance outline as nodes for graph construction, and considering seven indicators representing the morphological features of the object boundary—multi-layered neighborhood triangles at the boundary node level—an edge regularization GCNN branch based on the object's local information is designed. The specific implementation steps for constructing the GCNN edge regularization branch guided by the morphological information of the building object boundary are as follows:
[0126] (1) The number of vertices of the outline boundary of the building instance object processed in step one is 64 and the starting point is the lower left corner. The graph is constructed with vertices and boundary line segments between points. Based on the neighborhood triangle shape of the vertex, there are a total of 7 features. Considering multiple neighborhood sizes, multi-dimensional scale features are extracted.
[0127] (a) Structural features formed by boundary sequence points and their k-order neighbors, taking the 1-order neighborhood as an example, see Figure 3 The current point A and its two first-order neighbors B and C form a triangle ΔABC. The structural features include the area of ΔABC. String length characteristics and corner features in, The sign depends on the convexity or concavity of the arc segment BAC. When BA to AC is rotated clockwise, the arc segment becomes convex. Take a positive value, otherwise take a negative value; and The calculations are as follows:
[0128]
[0129] In the formula Let S be the area of ΔABC, and S be the area of the building instance.
[0130]
[0131] In the formula Let be the boundary distance between point B and point C.
[0132] (b) The structural features formed by the k-th order neighboring points of the boundary sequence points and the center point of the building instance object, taking the first-order neighboring points as an example, see Figure 3 The center point O and the two first-order neighbors B and C of the current boundary point A form a triangle ΔOBC. The structural features include the area of ΔOBC. chord length characteristics (semi-perimeter) radius ) and included angle features ( That is, the angle formed by OB and OC, calculated as follows:
[0133]
[0134] In the formula Let ΔOBC be the area.
[0135]
[0136]
[0137] In the formula Let d1, d2, and d3 be the semi-perimeter of ΔOBC, and let d1, d2, and d3 be the side lengths of the three sides of ΔOBC.
[0138]
[0139]
[0140] In the formula Let ΔOBC be the radius.
[0141] (c) As can be seen from the above, the neighborhood features of the boundary points of building instances are measured by a set of indicators. In order to avoid the influence of indicator dimensions on subsequent analysis, all indicators are Z-Score normalized to ensure the invariance of translation, scaling and rotation of the indicators. Here, we consider two neighborhood sizes {2,4}. Therefore, each node contains a total of 14 (7×2) dimensions of input features from the graph.
[0142] (2) The edge regularization GCNN branch based on local object information consists of three graph convolutional layers (GraphConv). GraphConv1 has 16 output channels, GraphConv2 has 64, and GraphConv3 has 128. Each convolutional layer is activated by a rectified linear unit (ReLU). In order to merge with the feature map from the image, the fourth layer is a regular convolutional layer (256×1×1). The graph nodes contain input features from the graph and the image, totaling 270 (256+14) dimensions. The network optimizer uses the Adam algorithm with a learning rate and a decay rate of 0.001 and 0.95, respectively.
[0143] Step four involves using a pyramid pooling module to aggregate image depth semantic features, building spatial distribution depth structural features, and building spatial edge depth morphological features. A regularized loss function is then introduced to supplement the cross-entropy function, further constraining the vector boundaries. The specific implementation steps for feature aggregation and regularization optimization based on the pyramid pooling module are as follows:
[0144] (1) The image depth feature map provided by the initial contour prediction and the graphic depth feature map from the two branches of spatial morphology information are enhanced by the pyramid pooling module to capture contextual information. This module contains four different pooling operations of different sizes, namely 1x1, 2x2, 3x3 and 6x6, to obtain feature maps of multiple sizes. Then, the number of channels of these feature maps is reduced by 1×1 regular convolution. Finally, the feature maps of the same size in front of the pyramid module are obtained by bilinear interpolation upsampling operation and stitched on the channels to obtain the regularized extraction prediction map of the building object.
[0145] (2) Introducing L Ncut With L Potts The regularization optimization function complements the conventional cross-entropy function L. BCE The consistency of the geometric description of building objects is calculated as follows:
[0146]
[0147] In the formula, y i It predicts the probability that pixel i belongs to a building object. It is the ground truth value of the label image. N is the number of pixels.
[0148] L Potts =∑ k (Y k ) ) W(1-Y k (67)
[0149]
[0150]
[0151] In the formula, Y is the output image matrix of the building regularization extraction network based on the image input x, which is a predicted value. k This refers to the k-th channel of Y, where k is the number of predicted categories, and here k = 2, i.e., building / non-building, W and These are similarity matrices that measure the weights of the connecting edges between pixels in the input x and output Y images, respectively, and are calculated by the Gaussian kernel function in the RGBXY space.
[0152] L=α·L BCE +β·L Potts +γ·L Ncut (70)
[0153] In the formula, L is the total term of the loss function, α = 10, β = 100, and γ = 1.
[0154] The specific embodiments described herein are merely illustrative of the spirit of the invention. Those skilled in the art to which this invention pertains may make various modifications or additions to the described specific embodiments or use similar methods to substitute them, without departing from the spirit of the invention or exceeding the scope defined by the appended claims.
Claims
1. A method for regularizing building extraction from high-resolution remote sensing images guided by spatial morphology information, characterized in that, Includes the following steps: Step 1: Use the Mask-RCNN basic skeleton network to obtain the depth image semantic feature map and predict the initial contour of the building instance object, while preserving the correspondence between the predicted object and the ground truth object and the contour boundary point information; Step 2: Construct a graph convolutional neural network (GCNN). The GCNN includes two branches: a segmentation branch based on global object information for obtaining the spatial distribution depth structural features of buildings, and an edge regularization branch based on local object information for obtaining the spatial edge depth morphological features of buildings. Among them, the segmentation branch based on global object information includes several graph convolutional layers. Its input is a graph constructed with the center point of the building instance object as the node, and the spatial distribution characteristics of the building objects in the image are characterized by the position, size, direction and shape indicators of the object level. The edge regularization branch based on local object information also includes several graph convolutional layers. Its input is a graph constructed with the boundary points of the building instance outline as nodes, and the morphological features of the object boundary are characterized by the multi-layer neighborhood triangle morphological index of the boundary node level. Step 3: The pyramid pooling module is used to aggregate the image's deep semantic features, the building's spatial distribution deep structural features, and the building's spatial edge deep morphological features to obtain multiple feature maps of different sizes. Finally, the regularized extraction prediction map of the building object is obtained through convolution, upsampling, and channel stitching. Step 4: Train the building regularization extraction network model consisting of Steps 1 to 3, introduce a regularization loss function to supplement the cross-entropy function to further constrain the vector boundary, and use the trained building regularization extraction network model to achieve building regularization extraction from high-resolution remote sensing images. Step four introduces and The regularization optimization function complements the conventional cross-entropy function. The consistency of the geometric description of building objects is calculated as follows: In the formula, Predicted pixels The probability that it belongs to a building object. It is the ground truth value of the label image. , It is the number of pixels; In the formula, Based on image input The output image matrix of the building regularization extraction network is a predicted value. refer to The One channel, It is the number of predicted categories, here. That is, buildings and non-buildings. and These are measuring inputs. and output The similarity matrix of the edge weights between pixels in the image is calculated by the Gaussian kernel function in the RGBXY space; In the formula, It is the total term of the loss function. , , It is a constant.
2. The method for regularizing building extraction from high-resolution remote sensing images guided by spatial morphology information according to claim 1, characterized in that: The specific implementation steps of the splitting branch based on global object information in step two are as follows: (a1) Construct a Deloni triangulation with the center point of the instance object obtained in step one as the vertex, use the center point as the node of the graph, and use the edge of the Deloni triangulation as the connecting edge of the graph. Therefore, the triangulation formed by multiple building instance objects in each training sample image forms a graph. (a2) Based on the four types of features of the location distribution, size distribution, orientation distribution and shape distribution of the polygon objects of buildings in the group, 12 index features of graph nodes are obtained. Among them, the location distribution feature is the center point of the building instance object, the size distribution feature includes three indicators of the area, perimeter and average radius of the building instance, the orientation distribution feature includes two indicators of the main direction of the minimum bounding rectangle of the building instance and the main direction of the building wall, and the shape distribution feature includes six indicators of compactness, fractal dimension, extensibility, concavity, overlap and Fourier shape descriptor. (a3) The segmentation branch based on global object information consists of 5 graph convolutional layers GraphConv. GraphConv1 has 16 output channels, GraphConv2 has 64 output channels, GraphConv3 has 128 output channels, GraphConv4 has 256 output channels, and GraphConv5 has 256 output channels. Each convolutional layer is activated by a modified linear unit. Each graph node contains features from graphs and images. The features of the graphs are calculated in step (a2), and the features of the images are the semantic feature maps of the depth images.
3. The method for regularizing building extraction from high-resolution remote sensing images guided by spatial morphology information according to claim 2, characterized in that: The average radius of a building instance is calculated from the average distance from all boundary points on its profile to its center point: in This represents the distance from boundary point j to the center point; This represents the number of boundary points.
4. The method for regularizing building extraction from high-resolution remote sensing images guided by spatial morphology information according to claim 2, characterized in that: The compactness of a building instance is determined by its area. With perimeter The result is obtained by calculating the quadratic relationship between them: Fractal Dimension Extensibility concavity overlap The calculations are as follows: In the formula, , These are the length and width of the minimum bounding rectangle of the building instance, respectively. In the formula, It is the area of the convex hull CH of the building instance; In the formula, , These are the areas of the intersection and union of the building instance and its circle EAC of equal area, respectively.
5. The method for regularizing building extraction from high-resolution remote sensing images guided by spatial morphology information according to claim 2, characterized in that: The Fourier shape descriptor uses Fourier transform to express the shape of a building instance contour as a mathematical representation based on discrete vectors, including the boundary points on the building instance contour. The coordinates of the contour starting point to Total length of the boundary The function can be represented by a Fourier series as follows: Among them, the Fourier coefficients of each order The expression is In the formula, It is the perimeter of the building instance object, and also The period of the function, ( , ) is the boundary vertex The coordinates of the point yes to The lengths of the line segments and, , In this formula, Refers to the imaginary unit, ; It can be seen that, coefficient Both are complex numbers, therefore, take The modulus vector constitutes The magnitude vector ,for Normalization process It possesses rotation, scale, and translation invariance, and yields a Fourier shape descriptor for the building instance; Considering that the value of the first term is 1 after normalization, removing the first term... for: Therefore, the length of the Fourier descriptor approaches infinity as the fitting accuracy increases. In actual operation, the length of 50 is taken when the fitting accuracy is greater than 0.98, and the vector dimension is 1×50.
6. The method for regularizing building extraction from high-resolution remote sensing images guided by spatial morphology information according to claim 1, characterized in that: The specific implementation steps of the edge regularization branch based on local object information in step two are as follows: (b1) The number of vertices of the outline boundary of the building instance object processed in step one is N and the starting point is the lower left corner. The graph is constructed with vertices and boundary line segments between points. Based on the morphological features of the neighboring triangles of the vertices, the multi-dimensional scale features of the vertices are extracted. (b2) The edge regularization branch based on local object information consists of three graph convolutional layers (GraphConv1, GraphConv2, and GraphConv3) with 16 output channels, 64 output channels, and 128 output channels. Each convolutional layer is activated by a modified linear unit. Each graph node contains features from the graph and the image. The graph features are calculated in step (b1), and the image features are the depth image semantic feature map.
7. The method for regularizing building extraction from high-resolution remote sensing images guided by spatial morphology information according to claim 6, characterized in that: The vertex-based neighborhood triangle morphological features in step (b1) include 7 features, as follows: (a) Boundary sequence points and their The structural features of the k-th order neighborhood formation are defined by setting the current point A and two points B and C in its k-th order neighborhood to form a triangle. Structural features include Area characteristics String length characteristics and corner features ,in, The sign depends on the arc segment BAC The concavity and convexity of the arc segment are such that when BA to AC rotates clockwise, the arc segment becomes convex. Take a positive value, otherwise take a negative value; and The calculations are as follows: In the formula for area, The area of the building instance; In the formula The boundary distance between point B and point C; (b) Boundary sequence points The structural feature formed by the k-th order neighboring points and the center point of the building instance object, where the center point O and the two k-th order neighboring points B and C of the current boundary point A form a triangle. Structural features include Area characteristics chord length features and included angle features The chord length feature includes the semi-perimeter. and radius The included angle is the angle formed by OB and OC, calculated as follows: In the formula for The area; In the formula for The half perimeter, , , They are The side lengths of the three sides; In the formula for The radius.
8. The method for regularizing building extraction from high-resolution remote sensing images guided by spatial morphology information according to claim 1, characterized in that: The pyramid pooling module includes four different pooling operations of different sizes: 1x1, 2x2, 3x3, and 6x6, resulting in feature maps of multiple sizes. Then, a regular 1×1 convolution is used to reduce the number of channels in these feature maps. Finally, a bilinear interpolation upsampling operation is used to obtain feature maps of the same size as those in front of the pyramid module, and these maps are then stitched together on the channels to obtain a regularized extraction prediction map of the building object.
