Semantic segmentation and height estimation method for remote sensing scene
By constructing a remote sensing knowledge-guided multi-task learning perception network, using multi-scale and multi-head attention mechanisms to achieve cross-task information interaction, it solves the problem of insufficient impact of multi-scale and auxiliary tasks in the existing technology, and improves semantic segmentation and semantic segmentation in remote sensing scenes. Highly estimated prediction accuracy.
Patent Information
- Application Number
- CN202410966897.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-18
- Publication Date
- 2024-10-29
AI Technical Summary
Existing remote sensing multi-task learning methods fail to fully consider the impact of multi-scale and auxiliary tasks on remote sensing scenes, resulting in an insufficient knowledge base and insufficient interaction of relevant knowledge between tasks, affecting the prediction effects of semantic segmentation and height estimation.
Construct a remote sensing knowledge-guided multi-task learning perception network, including a multi-scale encoder, a multi-scale knowledge-guided fusion module and a final prediction module, to achieve cross-task information interaction and knowledge sharing through a multi-head attention mechanism. The main tasks are semantic segmentation and height estimation. The auxiliary tasks are edge detection and semantic edge detection, forming a rich knowledge base to improve the connection between tasks and prediction accuracy.
Through cross-task knowledge sharing, the connection between tasks is enhanced, the prediction accuracy of semantic segmentation and height estimation is improved, the application field of multi-task learning is broadened, and better visualization effects and quantitative indicators are achieved in experiments.
Smart Images

Figure CN118865130A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of multi-task perception technology, and more specifically, relates to a semantic segmentation and height estimation method for remote sensing scenes. Background Art
[0002] With the continuous development of computer vision, neural networks have made significant progress and performance in tasks such as semantic segmentation and depth estimation. In traditional deep learning, different visual tasks are solved separately by a single neural network, which is called single-task learning. In contrast, the concept of multi-task learning refers to a deep learning method that uses a deep neural network to solve multiple different tasks at the same time. Compared with a single neural network model to solve a single task, multi-task learning improves the detection accuracy of multiple tasks by utilizing the information shared between similar tasks. In addition, multi-task learning also has the advantages of better utilization of input feature information, reducing training time and inference time.
[0003] In the field of remote sensing technology, due to the performance limitations of deployed equipment, the efficiency and accuracy of algorithms are crucial for a variety of applications, including military reconnaissance, environmental monitoring, disaster assessment, etc.
[0004] In remote sensing scenarios, some recent studies have shown that there is a correlation between semantic segmentation and height estimation. Using a multi-task network to simultaneously learn these two tasks, semantic segmentation and height estimation, can maximize the mutually beneficial relationship between them. Pop-Net uses a pyramid network based on an encoder-dual decoder framework for semantic segmentation and height estimation. BAMTL uses edge detection as an auxiliary task and exploits the correlation between the main tasks, semantic segmentation and height estimation, thereby enhancing the prediction ability.
[0005] Existing semantic segmentation and height estimation methods have the following shortcomings: 1. Existing remote sensing multi-task learning methods do not simultaneously consider the impact of multi-scale and auxiliary tasks on the multi-task learning algorithm of remote sensing scenes, and the knowledge base is not rich enough; 2. Most of the existing remote sensing multi-task learning methods ignore the important interaction of relevant knowledge between different tasks, resulting in insufficient knowledge guidance ability, which affects the prediction effect of the main task, namely semantic segmentation and height estimation. Summary of the invention
[0006] The purpose of the present invention is to overcome the shortcomings of the prior art and provide a semantic segmentation and height estimation method for remote sensing scenes to enrich the knowledge base, improve the knowledge guidance ability, enhance the connection between tasks, and improve the prediction accuracy.
[0007] To achieve the above-mentioned object of the invention, the semantic segmentation and height estimation method for remote sensing scenes of the present invention is characterized by comprising the following steps:
[0008] (1) Constructing a remote sensing knowledge-guided multi-task learning perception network
[0009] The constructed remote sensing knowledge-guided multi-task learning perception network includes a multi-scale encoder, a multi-scale knowledge-guided fusion module, and a final prediction module. The multi-scale knowledge-guided fusion module includes a knowledge generation module and a cross-knowledge propagation module. The main tasks are semantic segmentation and height estimation, and the auxiliary tasks are semantic edge detection and edge detection.
[0010] 1.1) The remote sensing image I in RGB format acquired by the sensor v ∈R 3×H×W Input into the multi-scale encoder to extract the visible light image features and obtain 4 different scales with a dimension of N i The feature map F i , where i is the i-th scale, i = 1, 2, 3, 4, where R 3×H×W It represents a space with 3 channels, a height of H and a width of W. The channels of the remote sensing image are R, G, B, i.e. red, green and blue;
[0011] 1.2) The feature maps F of the four scales i , i = 1, 2, 3, 4 are input to the multi-scale knowledge guided fusion module. In the multi-scale knowledge guided fusion module, there are four knowledge generation modules corresponding to two main tasks and two auxiliary tasks. Among them, the first knowledge generation module corresponds to semantic segmentation, the second knowledge generation module corresponds to height estimation, the third knowledge generation module corresponds to edge detection, and the fourth knowledge generation module corresponds to semantic edge detection. The four knowledge generation modules all include four convolution modules, which respectively perform four-scale feature map F i , i=1,2,3,4 for convolution to generate feature maps of four scales under four tasks k is the task number, 1 corresponds to semantic segmentation, 2 corresponds to height estimation, 3 corresponds to edge detection, and 4 corresponds to semantic edge detection;
[0012] For the kth task, the feature map Perform upsampling and dimensionality reduction to obtain the same image as the remote sensing image I v Feature maps of the same size are intermediate predictions
[0013] In the multi-scale knowledge-guided fusion module, there are two cross-knowledge propagation modules corresponding to the main tasks, namely the semantic segmentation cross-knowledge propagation module and the height estimation cross-knowledge propagation module; the semantic segmentation cross-knowledge propagation module includes four multi-head attention mechanisms, and the feature maps of the four tasks at each scale Send it into a multi-head attention mechanism for information interaction to obtain the feature map at each scale The highly estimated cross-knowledge propagation module includes four multi-head attention mechanisms, feature maps of 4 tasks at each scale Send it into a multi-head attention mechanism for information interaction to obtain the feature map at each scale
[0014] For the kth, k=1,2 tasks, the feature map Perform upsampling and dimensionality reduction to obtain the same image as the remote sensing image I v The two-dimensional feature map of the same size, and then splicing the same position points of the four feature maps to obtain the final task feature map of the kth task Knowledge-guided semantic feature graph and knowledge-guided high features
[0015] 1.3) The final prediction module includes a semantic segmentation prediction module and a height estimation prediction module, which guides the knowledge into the semantic feature map Send it to the semantic segmentation prediction module to generate the final semantic segmentation prediction P s , guide knowledge to high features It is sent to the height estimation prediction module to generate the final prediction P of the height estimation h ;
[0016] (2) Training remote sensing knowledge to guide multi-task learning perception network
[0017] In each iteration, a remote sensing image I is randomly selected from the dataset. v Feed remote sensing knowledge to guide the multi-task learning perception network, and then:
[0018] 2.1) Sampling cross entropy to calculate intermediate predictions Semantic segmentation loss function
[0019]
[0020] Among them, the intermediate prediction Intermediate prediction The segmentation prediction value of the middle channel c, coordinate position u, v, C semantic category is the number of channels, is the true segmentation value of channel c and coordinate position u, v;
[0021] 2.2) Sample L1 loss to calculate intermediate predictions The height estimation loss function
[0022]
[0023] Among them, the intermediate prediction Intermediate prediction The predicted value of the height of the mid-coordinate position u, v, is the true height value of the coordinate position u, v;
[0024] 2.3) Use balanced cross entropy loss to calculate intermediate predictions The edge detection loss function is
[0025] in:
[0026]
[0027] Among them, the intermediate prediction Intermediate prediction The edge prediction value of the mid-coordinate position u, v, is the true edge value of the coordinate position u, v;
[0028] 2.4) Using a hybrid function of weighted cross entropy and balanced cross entropy to calculate the semantic edge detection loss function
[0029]
[0030] Intermediate prediction Intermediate prediction The semantic edge segmentation prediction value of the middle channel c, coordinate position u, v, C semantic category is the number of channels, is the true segmentation value of the semantic edge of channel c, coordinate position u, v, and w c is the weight of channel c;
[0031] 2.5) Sampling cross entropy to calculate the final prediction P of semantic segmentation s Semantic segmentation loss function
[0032]
[0033] Among them, the semantic segmentation final prediction P s ∈R C×H×W , The final prediction P for segmentation s The segmentation prediction value of the middle channel c, coordinate position u, v, C semantic category is the number of channels, is the true segmentation value of channel c and coordinate position u, v;
[0034] 2.6) Sample L1 loss to calculate the height estimate of the final prediction P h The height estimation loss function
[0035]
[0036] Among them, the height estimate of the final prediction P h ∈R H×W , The final prediction P for height estimation h The predicted value of the height of the mid-coordinate position u, v, is the true height value of the coordinate position u, v;
[0037] 2.7) Calculate the total training loss function
[0038]
[0039] Among them, w k is the weight of the kth task;
[0040] 2.8) Based on the total loss function is the training target, according to the total loss function Update the parameters of the remote sensing knowledge-guided multi-task learning perception network;
[0041] Repeat steps 2.1) to 2.8) until the network converges to obtain a trained remote sensing knowledge-guided multi-task learning perception network;
[0042] (3) Remote sensing image I v Input into the trained remote sensing knowledge to guide the multi-task learning perception network, and obtain the final semantic segmentation prediction P s and the final prediction P h .
[0043] The object of the present invention is achieved in this way.
[0044] The semantic segmentation and height estimation method for remote sensing scenes of the present invention is adapted to the uniqueness of remote sensing scenes, and a general knowledge-guided multi-task learning perception framework for remote sensing scenes is proposed. The framework uses a backbone network to generate multi-scale and multi-modal information, which constitutes a rich knowledge base. Under the guidance of this knowledge base, each main task can effectively learn the supplementary knowledge provided by other auxiliary tasks through a multi-scale knowledge-guided fusion module. This cross-task knowledge sharing not only enhances the connection between tasks, but also enables the main task to benefit from it and improve its prediction accuracy. By integrating auxiliary information from different auxiliary tasks, it aims to achieve more comprehensive feature representation and more accurate prediction results. This method not only broadens the application field of multi-task learning, but also provides a new solution for complex visual perception tasks in remote sensing scenes. Through a large number of experiments, the present invention has achieved good results in terms of visualization effects and quantitative indicators. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] Figure 1 It is a flowchart of a specific implementation method of the semantic segmentation and height estimation method for remote sensing scenes of the present invention;
[0046] Figure 2 It is a schematic diagram of a specific implementation of the semantic segmentation and height estimation method for remote sensing scenes in the present invention;
[0047] Figure 3 It is a partial visualization result of the semantic segmentation and height estimation method for remote sensing scenes of the present invention, wherein (a) is the input image, (b) is the true value, (c) is the visualization result of BAMTL, and (d) is the visualization result of the present invention. DETAILED DESCRIPTION
[0048] The specific implementation of the present invention is described below in conjunction with the accompanying drawings so that those skilled in the art can better understand the present invention. It should be noted that in the following description, when the detailed description of known functions and designs may dilute the main content of the present invention, these descriptions will be omitted here.
[0049] Figure 1 It is a flow chart of a specific implementation of the semantic segmentation and height estimation method for remote sensing scenes of the present invention.
[0050] In this embodiment, if Figure 1 As shown, the semantic segmentation and height estimation method for remote sensing scenes of the present invention comprises the following steps:
[0051] Step S1: Construct remote sensing knowledge-guided multi-task learning perception network
[0052] In this embodiment, if Figure 2 As shown, the constructed remote sensing knowledge-guided multi-task learning perception network includes a multi-scale encoder 1, a multi-scale knowledge-guided fusion module 2, and a final prediction module 3, wherein the multi-scale knowledge-guided fusion module includes a knowledge generation module 201 and a cross-knowledge propagation module 202, the main tasks are semantic segmentation and height estimation, and the auxiliary tasks are semantic edge detection and edge detection.
[0053] Step S1.1: Multi-scale feature extraction
[0054] The remote sensing image I in RGB format acquired by the sensor v ∈R 3×H×W Input into the multi-scale encoder 1 to extract the visible light image features and obtain 4 different scales with a dimension of N i The feature map F i , where i is the i-th scale, i = 1, 2, 3, 4, where R 3×H×WIt represents a space with 3 channels, a height of H and a width of W. The channels of the remote sensing image are R, G, B, i.e. red, green and blue.
[0055] Step S1.2: Multi-scale knowledge-guided fusion
[0056] The feature maps F of the four scales i , i = 1, 2, 3, 4 are input to the multi-scale knowledge guided fusion module 2. In the multi-scale knowledge guided fusion module, there are four knowledge generation modules 201 corresponding to two main tasks and two auxiliary tasks. Among them, the first knowledge generation module corresponds to semantic segmentation, the second knowledge generation module corresponds to height estimation, the third knowledge generation module corresponds to edge detection, and the fourth knowledge generation module corresponds to semantic edge detection. The four knowledge generation modules all include four convolution modules, which respectively perform four-scale feature map F i , i=1,2,3,4 for convolution to generate feature maps of four scales under four tasks k is the task number, 1 corresponds to semantic segmentation, 2 corresponds to height estimation, 3 corresponds to edge detection, and 4 corresponds to semantic edge detection.
[0057] For the kth task, the feature map Perform upsampling and dimensionality reduction to obtain the same image as the remote sensing image I v Feature maps of the same size are intermediate predictions
[0058] In the multi-scale knowledge guided fusion module 2, there are two cross-knowledge propagation modules 202 corresponding to the main tasks, namely the semantic segmentation cross-knowledge propagation module and the height estimation cross-knowledge propagation module; the semantic segmentation cross-knowledge propagation module includes four multi-head attention mechanisms, and the feature maps of the four tasks at each scale Send it into a multi-head attention mechanism for information interaction to obtain the feature map at each scale The highly estimated cross-knowledge propagation module includes four multi-head attention mechanisms, feature maps of 4 tasks at each scale Send it into a multi-head attention mechanism for information interaction to obtain the feature map at each scale
[0059] For the kth task, k=1,2, the feature map Perform upsampling and dimensionality reduction to obtain the same image as the remote sensing image I v The two-dimensional feature map of the same size, and then splicing the same position points of the four feature maps to obtain the final task feature map of the kth task Knowledge-guided semantic feature graph and knowledge-guided high features
[0060] Step S1.3: Generate semantic segmentation and height estimation final predictions
[0061] The final prediction module includes a semantic segmentation prediction module and a height estimation prediction module, which guides the knowledge into the semantic feature map. Send it to the semantic segmentation prediction module to generate the final semantic segmentation prediction P s , guide knowledge to high features It is sent to the height estimation prediction module to generate the final prediction P of the height estimation h .
[0062] In this embodiment, the HRNet v2 model is used as the multi-scale encoder, the convolution block is used as the knowledge generation module and the final prediction module, and the lightweight multi-head self-attention mechanism is used as the cross-knowledge propagation module.
[0063] Step S2: Training remote sensing knowledge to guide multi-task learning perception network
[0064] In order to unify the concepts, the present invention uses y to represent the true value of the task in the following formula: Represents the task prediction. In each iteration, a remote sensing image I is randomly selected from the dataset v Feed remote sensing knowledge to guide the multi-task learning perception network, and then:
[0065] Step S2.1: Sample cross entropy to calculate intermediate predictions Semantic segmentation loss function
[0066]
[0067] Among them, the intermediate prediction Intermediate prediction The segmentation prediction value of the middle channel c, coordinate position u, v, C semantic category is the number of channels, is the true segmentation value of channel c and coordinate position u, v;
[0068] Step S2.2: Sample L1 loss to calculate intermediate predictions The height estimation loss function
[0069]
[0070] Among them, the intermediate prediction Intermediate prediction The predicted value of the height of the mid-coordinate position u, v, is the true height value of the coordinate position u, v;
[0071] Step S2.3: Calculate intermediate predictions using balanced cross entropy loss Edge detection loss function
[0072] in:
[0073]
[0074] Among them, the intermediate prediction Intermediate prediction The edge prediction value of the mid-coordinate position u, v, is the true edge value of the coordinate position u, v;
[0075] Step S2.4: Calculate the intermediate prediction using a hybrid function of weighted cross entropy and balanced cross entropy Semantic edge detection loss function
[0076]
[0077] Intermediate prediction Intermediate prediction The semantic edge segmentation prediction value of the middle channel c, coordinate position u, v, C semantic category is the number of channels, is the true segmentation value of the semantic edge of channel c, coordinate position u, v, and w c is the weight of channel c;
[0078] Step S2.5: Sampling cross entropy to calculate the final semantic segmentation prediction P s Semantic segmentation loss function
[0079]
[0080] Among them, the semantic segmentation final prediction P s ∈R C×H×W , The final prediction P for segmentation s The segmentation prediction value of the middle channel c, coordinate position u, v, C semantic category is the number of channels, is the true segmentation value of channel c and coordinate position u, v;
[0081] Step S2.6: Sample L1 loss to calculate the height estimate of the final prediction P h The height estimation loss function
[0082]
[0083] Among them, the height estimate of the final prediction P h ∈RH×W , The final prediction P for height estimation h The predicted value of the height of the mid-coordinate position u, v, It is the real height value of the coordinate position u, v.
[0084] Step S2.7: Calculate the total training loss function
[0085]
[0086] Among them, w k is the weight of the kth task.
[0087] Step S2.8: Based on the total loss function is the training target, according to the total loss function Update the parameters of the remotely sensed knowledge-guided multi-task learning perception network.
[0088] Repeat steps S2.1 to S2.8 until the network converges to obtain a trained remote sensing knowledge-guided multi-task learning perception network.
[0089] Step S3: semantic segmentation and height estimation prediction
[0090] The remote sensing image I v Input into the trained remote sensing knowledge to guide the multi-task learning perception network, and obtain the final semantic segmentation prediction P s and the final prediction P h .
[0091] Experimental verification
[0092] The remote sensing multi-task learning perception model proposed in this invention is trained and tested on the Potsdam dataset and compared with BAMTL. The comparison results are shown in Table 1:
[0093]
[0094] Table 1
[0095] Table 1 shows the test results of the migration model proposed in this invention on the Potsdam dataset.
[0096] PixAcc, or pixel accuracy, is a metric for evaluating the performance of semantic segmentation models. It measures the proportion of pixel labels predicted by the model that are consistent with the true labels. It is calculated by dividing the number of pixels predicted correctly by the total number of pixels. If the predicted label of a pixel is the same as the true label, the pixel is considered correct.
[0097] In multi-category semantic segmentation tasks, mF1 refers to the average of the F1 scores of each category, that is, the F1 scores of all categories are averaged to obtain a comprehensive evaluation indicator. mF1 takes into account the performance of the model on each category, not just the overall pixel accuracy, so it is a more comprehensive evaluation indicator.
[0098] absRel is a relative error indicator that measures the difference between the model's predicted height and the true height relative to the true height. It reflects the size of the error between the predicted height and the true height, and is expressed in the form of a relative value, which makes it possible to compare data sets of different scales or different height ranges.
[0099] MAE is another commonly used error metric that measures the average of the absolute errors between the model's predicted heights and the true heights. MAE provides an intuitive measure of how large the average error in the model's predictions is.
[0100] From the results in Table 1, it can be seen that the method of the present invention surpasses the BAMTL method in multiple indicators of the two tasks, which proves the effectiveness of the method of the present invention. The visualization results of the method of the present invention and BAMTL are further compared. Figure 3 As shown in the figure, the method described in the present invention (Ours) has better detail effect and image contrast.
[0101] Although the above describes the illustrative specific embodiments of the present invention to facilitate the understanding of the present invention by those skilled in the art, it should be clear that the present invention is not limited to the scope of the specific embodiments. For those of ordinary skill in the art, as long as various changes are within the spirit and scope of the present invention as defined and determined by the attached claims, these changes are obvious, and all inventions and creations utilizing the concept of the present invention are protected.
Claims
1. A semantic segmentation and height estimation method for remote sensing scenes, characterized in that: The following steps are involved: (1) Constructing a remote sensing knowledge-guided multi-task learning perception network The constructed remote sensing knowledge-guided multi-task learning perception network includes a multi-scale encoder, a multi-scale knowledge-guided fusion module, and a final prediction module. The multi-scale knowledge-guided fusion module includes a knowledge generation module and a cross-knowledge propagation module. The main tasks are semantic segmentation and height estimation, and the auxiliary tasks are semantic edge detection and edge detection. 1.1) The remote sensing image I in RGB format acquired by the sensor v ∈R 3×H×W Input into the multi-scale encoder to extract the visible light image features and obtain 4 different scales with a dimension of N i The feature map F i , where i is the i-th scale, i = 1, 2, 3, 4, where R 3×H×W It represents a space with 3 channels, a height of H and a width of W. The channels of the remote sensing image are R, G, B, i.e. red, green and blue; 1.2) The feature maps F of the four scales i , i = 1, 2, 3, 4 are input to the multi-scale knowledge guided fusion module. In the multi-scale knowledge guided fusion module, there are four knowledge generation modules corresponding to two main tasks and two auxiliary tasks. Among them, the first knowledge generation module corresponds to semantic segmentation, the second knowledge generation module corresponds to height estimation, the third knowledge generation module corresponds to edge detection, and the fourth knowledge generation module corresponds to semantic edge detection. The four knowledge generation modules all include four convolution modules, which respectively perform four-scale feature map F i , i=1,2,3,4 for convolution to generate feature maps of four scales under four tasks k is the task number, 1 corresponds to semantic segmentation, 2 corresponds to height estimation, 3 corresponds to edge detection, and 4 corresponds to semantic edge detection; For the kth task, the feature map Perform upsampling and dimensionality reduction to obtain the remote sensing image I v Feature maps of the same size are intermediate predictions In the multi-scale knowledge-guided fusion module, there are two cross-knowledge propagation modules corresponding to the main tasks, namely the semantic segmentation cross-knowledge propagation module and the height estimation cross-knowledge propagation module; the semantic segmentation cross-knowledge propagation module includes four multi-head attention mechanisms, and the feature maps of the four tasks at each scale Send it into a multi-head attention mechanism for information interaction to obtain the feature map at each scale The highly estimated cross-knowledge propagation module includes four multi-head attention mechanisms, feature maps of 4 tasks at each scale Send it into a multi-head attention mechanism for information interaction to obtain the feature map at each scale For the kth, k=1,2th task, the feature map Perform upsampling and dimensionality reduction to obtain the remote sensing image I v The two-dimensional feature map of the same size, and then splicing the same position points of the four feature maps to obtain the final task feature map of the kth task Knowledge-guided semantic feature graph and knowledge-guided high features 1.3) The final prediction module includes a semantic segmentation prediction module and a height estimation prediction module, which guides the knowledge into the semantic feature map Send it to the semantic segmentation prediction module to generate the final semantic segmentation prediction P s , guide knowledge to high features It is sent to the height estimation prediction module to generate the final prediction P of the height estimation h ; (2) Training remote sensing knowledge to guide multi-task learning perception network In each iteration, a remote sensing image I is randomly selected from the dataset. v Feed remote sensing knowledge to guide the multi-task learning perception network, and then: 2.1) Sampling cross entropy to calculate intermediate predictions Semantic segmentation loss function Among them, the intermediate prediction Intermediate prediction The segmentation prediction value of the middle channel c and the coordinate position U,v, C semantic category is the number of channels, is the true segmentation value of channel c and coordinate position u,v; 2.2) Sample L1 loss to calculate intermediate predictions The height estimation loss function Among them, the intermediate prediction Intermediate prediction The predicted value of the height of the mid-coordinate position u,v, is the true height value of the coordinate position u,v; 2.3) Use balanced cross entropy loss to calculate intermediate predictions The edge detection loss function is in: Among them, the intermediate prediction Intermediate prediction The edge prediction value of the mid-coordinate position u,v, is the true edge value of the coordinate position u,v; 2.4) Using a hybrid function of weighted cross entropy and balanced cross entropy to calculate the semantic edge detection loss function Intermediate prediction For intermediate prediction The semantic edge segmentation prediction value of the middle channel c and the coordinate position u,v, C semantic category is the number of channels, is the true segmentation value of the semantic edge of channel c and coordinate position u,v, w c is the weight of channel c; 2.5) Sampling cross entropy to calculate the final prediction P of semantic segmentation s Semantic segmentation loss function Among them, the semantic segmentation final prediction P s ∈P C×H×W , The final prediction P for segmentation s The segmentation prediction value of the middle channel c and the coordinate position u,v, C semantic category is the number of channels, is the true segmentation value of channel c and coordinate position u,v; 2.6) Sample L1 loss to calculate the height estimate of the final prediction P h The height estimation loss function Among them, the height estimate of the final prediction P h ∈R H×W , The final prediction P for height estimation h The predicted value of the height of the mid-coordinate position u,v, is the true height value of the coordinate position u,v; 2.7) Calculate the total training loss function Among them, w k is the weight of the kth task; 2.8) Based on the total loss function is the training target, according to the total loss function Update the parameters of the remote sensing knowledge-guided multi-task learning perception network; Repeat steps 2.1) to 2.8) until the network converges to obtain a trained remote sensing knowledge-guided multi-task learning perception network; (3) Remote sensing image I v Input into the trained remote sensing knowledge to guide the multi-task learning perception network, and obtain the final semantic segmentation prediction P s and the final prediction P h .
2. The method for semantic segmentation and height estimation of remote sensing scenes according to claim 1, characterized in that: The HRNet v2 model is used as the multi-scale encoder, the convolutional block is used as the knowledge generation module and the final prediction module, and the lightweight multi-head self-attention mechanism is used as the cross-knowledge propagation module.
Citation Information
Cited By
Lightweight remote sensing image multi-task target sensing method
CN119964050A
Remote sensing data semantic segmentation and height estimation combined network training method, execution method, device, equipment, medium and program product
CN120563848A
