Semantic segmentation system for aerial video images of low-altitude unmanned aerial vehicle

By using multi-layer cascaded encoder and decoder components in the UAV video image segmentation system, combined with global-local feature fusion and multi-scale feature fusion modules, the accuracy problem of small-size target segmentation in UAV images is solved and achieved It achieves efficient segmentation effects on complex backgrounds.

CN118799573APending Publication Date: 2024-10-18BEIJING UNION UNIVERSITY
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202410785947.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-18
Publication Date
2024-10-18

AI Technical Summary

Technical Problem

Existing image segmentation methods have accuracy and efficiency challenges when processing UAV video images, especially in segmenting small-sized targets in complex backgrounds. Traditional models are difficult to effectively handle small and distorted objects in UAV images. Features.

Method used

A semantic segmentation system for low-altitude UAV aerial video images is designed, using multi-layer cascaded encoder components and decoder components, combined with global-local feature fusion module and multi-scale feature fusion module, through cascade gated attention and The multi-head self-attention mechanism extracts and fuses image features to achieve accurate segmentation of small targets.

Benefits of technology

It significantly improves the segmentation accuracy of small targets and the segmentation capabilities of multi-scale targets in drone video images, can effectively process images in complex backgrounds, and improves the accuracy of image analysis.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118799573A_ABST
    Figure CN118799573A_ABST
Patent Text Reader

Abstract

The invention discloses a semantic segmentation system for aerial video images of a low-altitude unmanned aerial vehicle. The semantic segmentation system comprises an encoder assembly and a decoder assembly, the encoder assembly comprises multiple layers of cascaded encoders; the encoder is configured to perform global attention calculation and local attention calculation to obtain global semantic features and local semantic features, and meanwhile, the local semantic features with low relevancy are covered and removed in a mask form; the decoder assembly comprises a global-local feature fusion module, a multi-scale feature fusion module and a de-coding head module. According to the method, the accuracy of small-size target semantic segmentation of the unmanned aerial vehicle video image under a complex background is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer vision, and in particular to a semantic segmentation system for low-altitude unmanned aerial vehicle aerial video images. Background Art

[0002] With the development of computer vision technology and the improvement of GPU computing power, the combination of drones and computer vision technology has shown great potential, especially in accurate and efficient image segmentation. This technology plays a vital role in urban planning, disaster assessment, environmental monitoring, and the construction of new environmental maps.

[0003] Existing image segmentation methods, such as those that rely on edge detection, threshold processing, and region-based techniques, face challenges in accuracy and timeliness when dealing with complex and diverse real-world scenes. Methods based on convolutional neural networks (CNNs), such as fully convolutional networks (FCNs), U-Net, and SegNet, have improved the accuracy and efficiency of image semantic segmentation. And through cascade structures, dilated convolutions, or spatial attention mechanisms, the segmentation capabilities of small and multi-scale targets are improved. However, the special shooting angles and high-altitude positions of drone images result in small and distorted objects in the images and complex backgrounds, and traditional models still have shortcomings in dealing with these problems. For example, although the SegFormer model performs well in processing natural scenes, it is not optimized for dense small objects in drone images. Summary of the invention

[0004] The purpose of the present invention is to provide a semantic segmentation system for low-altitude UAV aerial video images, aiming to solve the problem of how to improve the accuracy of semantic segmentation of UAV video images, especially for the segmentation of small-sized targets in complex backgrounds.

[0005] In order to achieve the above object, the present invention adopts the following technical solution:

[0006] A semantic segmentation system for low-altitude drone aerial video images, the system comprising an encoder component and a decoder component;

[0007] The encoder component includes multiple layers of cascaded encoders;

[0008] The encoder is configured to extract and downsample image features of its input image, remove channels of low importance in the channel dimension by masking, and perform global self-attention calculation on the image features to obtain global semantic features, and perform local attention calculation on the image features to obtain local semantic features;

[0009] The decoder component includes a global-local feature fusion module, a multi-scale feature fusion module and a decoding head module;

[0010] The global-local feature fusion module is configured to perform feature fusion on the global semantic features and local semantic features of the encoders at each layer, and use cascade gated attention to perform weighted calculation on the output of the encoders at each layer to obtain a first fused feature;

[0011] The multi-scale feature fusion module is configured to upsample the first fusion features corresponding to each layer of the encoder and perform feature fusion in the same dimension, and then reduce the channel dimension through the convolution module to obtain the second fusion feature;

[0012] The decoding head module is configured to first reduce the channel dimension of the second fusion feature to a preset number of prediction categories through a fully connected layer, and then restore it to the original image size through bilinear interpolation and predict the semantic category of each pixel in the image;

[0013] The original image size is the image size input to the encoder component.

[0014] Preferably, the encoder comprises an Overlapping Patch Embedding Module and a Transformer Blocks Module;

[0015] The overlapping patch embedding module comprises a convolutional layer, a channel importance evaluation layer and a mask layer;

[0016] The Transformer Blocks module includes an efficient multi-head self-attention layer and a KNN clustering layer, the efficient multi-head self-attention layer is connected to a hybrid feedforward network layer, the KNN clustering layer is connected to a Hilbert transform layer, and the Hilbert transform layer is connected to a MoblieNetv2 layer.

[0017] Preferably, the global-local feature fusion module comprises a multi-layer perceptron layer, a first depth-wise separable convolutional layer, and a second depth-wise separable convolutional layer.

[0018] Preferably, the encoder component includes four layers of cascaded encoders, and the four layers of cascaded encoders correspond to the global semantic features and local semantic features of output stages 1 to 4 respectively;

[0019] Correspondingly, the global-local feature fusion module outputs the first fusion features of stage 1 to stage 4.

[0020] Preferably, the multi-scale feature fusion module is further configured as follows:

[0021] Up-sampling the first fusion features corresponding to stage 2, stage 3, and stage 4 respectively, so that the first fusion features corresponding to stage 2, stage 3, and stage 4 have the same dimension as the first fusion features corresponding to stage 1;

[0022] A multilayer perceptron is used to fuse the first fusion feature corresponding to stage 1 and the first fusion features corresponding to stages 2, 3, and 4 after upsampling, and then a convolution module is used to reduce the dimension of the fused channel to obtain a second fusion feature.

[0023] Preferably, the global-local feature fusion module is further configured as follows:

[0024] The first fusion feature is obtained by the method shown in the following formula:

[0025] Concat_out = Concat(x global , x local ,dim=-1)

[0026]

[0027]

[0028] where x global represents the global semantic feature, x local represents local semantic features, dim=-1 represents the last dimension of the current tensor, Concat represents the feature fusion function, Concat_out represents the features after the fusion of global semantic features and local semantic features, δ represents the Sigmoid activation function, β represents the batch normalization function, f 5×5 and f 3×3 They represent the depthwise separable convolution calculation functions with kernel sizes of 5 and 3, respectively, MLP represents the fully connected layer calculation function, and X CGAM represents the features after cascaded gated attention, X output represents the first fusion feature, represents the features of the encoder output corresponding to stage 1, represents the features of the encoder output corresponding to stage 2, represents the features of the encoder output corresponding to stage 3, Represents the features of the encoder output corresponding to stage 4.

[0029] Preferably, the global-local feature fusion module comprises a multi-layer perceptron layer, a first depth-wise separable convolutional layer, and a second depth-wise separable convolutional layer.

[0030] Preferably, the decoding head module includes a fully connected layer, a 2-dimensional Dropout layer and a 1×1 convolutional layer.

[0031] Preferably, the system also includes a model training module, which is configured to pre-train the weight parameters of the global-local feature fusion module before model training and freeze the weight parameters of the global-local feature fusion module during model training.

[0032] Preferably, the model training module is further configured as follows:

[0033] The encoder component and the decoder component are trained using the loss function shown below:

[0034]

[0035] Where N represents all pixels in the image, represents the true label of the i-th training sample, y i Represents the predicted output of the i-th training sample, CE loss represents the cross-entropy loss function.

[0036] Preferably, the model training module includes a preprocessing unit, and the preprocessing unit is configured as follows:

[0037] After obtaining the training data index, multiple training data are obtained by obtaining the height and width of the label image for scaling, length and width distortion, image flipping, image rotation, Gaussian blur, and color gamut transformation, and the multiple training data are combined into a batch through the data loading auxiliary function.

[0038] The advantages of the present invention are:

[0039] The semantic segmentation system for low-altitude UAV aerial video images provided by the present invention can effectively process multi-scale targets in UAV video images by combining the multi-scale features extracted by the encoder in a cascade manner, extract useful local semantic features in a novel way and merge them with the global semantic features that originally contain global semantic information, thereby improving the segmentation accuracy of small targets in UAV remote sensing scenes.

[0040] Furthermore, the global-local feature fusion module can fuse local semantic features with global semantic features according to their relative position relationship. The new design allows the missing local semantic information of the encoder component to be compensated.

[0041] Furthermore, the overlapping patch embedding module can obtain global semantic information while retaining important local semantic information, thereby improving the segmentation capability of multi-scale targets in UAV video images.

[0042] Furthermore, the multi-scale feature fusion module can upsample and concatenate the first fusion features of different scales to obtain semantic segmentation results close to the original resolution and improve the accuracy of image analysis.

[0043] Furthermore, multi-scale low-loss feature fusion is achieved through the global-local feature fusion module and the multi-scale feature fusion module, thereby improving the segmentation capability of multi-scale targets in UAV images. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] Figure 1 1 is a schematic diagram of the structure of a semantic segmentation system for low-altitude drone aerial video images in an embodiment of the present invention;

[0045] Figure 2 is a schematic diagram of the structure of an encoder in an embodiment of the present invention;

[0046] Figure 3 It is a schematic diagram of the execution flow of a multi-scale feature fusion module and a decoding head module in an embodiment of the present invention;

[0047] Figure 4 is a loss curve of a semantic segmentation system of low-altitude UAV aerial video images in an embodiment of the present invention on the AeroScapes dataset;

[0048] Figure 5 is a loss curve of a semantic segmentation system of a low-altitude UAV aerial video image in an embodiment of the present invention on the ISPRSBVaihingen dataset;

[0049] Figure 6 This is an example of the AeroScapes dataset used to train a semantic segmentation system for low-altitude drone aerial video images.

[0050] Figure 7 It is a schematic diagram of the segmentation results of a semantic segmentation system for low-altitude drone aerial video images in an embodiment of the present invention, wherein the left side is the system input image and the right side is the corresponding segmented image. DETAILED DESCRIPTION

[0051] The semantic segmentation system for low-altitude drone aerial video images provided in this embodiment has multiple innovations. First, channel attention is used to retain important channels in the overlapping embedding process of feature maps. At the same time, for the retained channels, the system adaptively downsamples important semantic information to facilitate local attention. Second, a novel strategy is designed to achieve the fusion of local and global semantic features without the need for position encoding, which is a multi-scale low-loss feature fusion network decoder (MLFFN), which includes a global-local feature fusion module (CGAM), a multi-scale feature fusion module (MTFF) and a decoding head module (Seg). Third, in order to overcome the high computing resource requirements of training the model from scratch and the risk of falling into a local minimum, the system adopts a training strategy including partial freezing of weights and transfer learning. The final experimental results show that this method significantly accelerates the convergence speed, and the performance of the model in drone image segmentation is significantly higher than the prior art. The present invention is further described in detail below in conjunction with the accompanying drawings and embodiments.

[0052] See attached Figure 1 , Figure 1 The structure diagram of a semantic segmentation system for low-altitude drone aerial video images. The semantic segmentation system for low-altitude drone aerial video images provided in this embodiment includes an encoder component and a decoder component. The semantic segmentation system is a GSegformer model, the encoder component includes a MixTransformer-B2 (MiT-B2) encoder, and the decoder component includes a multi-scale low-loss feature fusion network decoder (MLFFN).

[0053] The encoder component includes a multi-layer cascaded encoder. The encoder is configured to extract and downsample the image features of its input image, remove the channels of low importance through masks in the channel dimension, and perform global self-attention calculation on the image features to obtain global semantic features, and perform local attention calculation on the image features to obtain local semantic features;

[0054] Specifically, the encoder component includes four layers of cascaded encoders, and the output of the previous encoder is the input of the next encoder. Figure 2 The encoder includes an Overlap Patch Embedding (OPE) module and a Transformer Blocks module. The Overlap Patch Embedding module includes a convolutional layer, a channel importance evaluation layer and a mask layer. The Transformer Blocks module includes an efficient multi-head self-attention layer (Efficient self Attn) and a KNN clustering layer. The efficient multi-head self-attention layer is connected to a mixed feedforward network layer (Mix FFN), the KNN clustering layer is connected to a Hilbert transform layer, and the Hilbert transform layer is connected to a MoblieNetv2 layer (Local Attn).

[0055] The MiT module in the MiT-B2 encoder uses an overlapping patch embedding module to extract and downsample the features (patches) of the input image, while removing the channels of low importance in the channel dimension through masks. These features are then fed into the efficient multi-head self-attention layer and the hybrid feedforward network layer.

[0056] Specifically, the overlapping patch embedding module contains a convolution layer, a channel importance evaluation layer and a mask layer. Here, the overlapping patch embedding module uses only one convolution layer with different strides and kernel sizes to obtain overlapping patches. The specific parameters are as follows. The parameters of the first convolution layer are kernel size (K) = 7, stride (S) = 4, padding (P) = 3, and the parameters of the second to fourth convolution layers are K = 3, S = 2, and P = 1. These layers project the input into the embedding space and generate features of the same size as the non-overlapping process. Then, each channel is evaluated using the channel importance evaluation layer to calculate their importance scores. Specifically, the feature map is processed using two cascaded convolution layers (each with a stride of 1) and the ReLU activation function is applied. Then, the processed feature map is average pooled, and the features in each channel become a score symbolizing the degree of importance. The pooled result is flattened, and the score of each channel is calculated through a fully connected layer, and then the Sigmoid activation function is applied to obtain the normalized score. The mask layer is used to filter the pooled feature map. After sorting the scores of all channels and finding the cutoff value, only the 50% channels with the highest scores (high importance channels) are retained, and the remaining channels (low importance channels) are replaced with masks. The feature map of the high importance channel is then used as the input of the efficient multi-head self-attention layer for calculation, and finally the global semantic feature is obtained. At this time, the dimension of the global semantic feature is (B, H×W, E / 2). At the same time, the feature map (patch) of the low importance channel is KNN clustered using the KNN clustering layer to find the point with the highest distance correlation in space. The Hilbert transform layer uses the Hilbert curve to convert the two-dimensional into one-dimensional. At this time, after Hilbert's reordering, a token sequence with high to low correlation is obtained, and the local important features are learned through the MoblieNetv2 layer. At this time, the dimension of the local semantic feature is (B, H×W, E / 2). The GSegFormer model does not use position encoding in MiT, saving a lot of computational resources. Instead, two linear transformation layers are added to the ordinary feed-forward layer to integrate the position information from the spatial domain, followed by a 3×3 two-dimensional convolutional layer to integrate the spatial position information.

[0057] In this embodiment, the parameters of the MiT-B2 encoder are shown in Table 1. 'Embeded Dims' represents the dimension of the input data in the overlapping patch embedding module, and 'Num Heads' represents the number of heads in the multi-head attention mechanism in the first to fourth stages. 'PatchSize' represents the size of the convolution kernel for obtaining overlapping slices at each stage, and 'Strides' represents the sampling stride for obtaining overlapping slices at each stage. 'SR Ratios' represents the reduction coefficient when K and V are input when calculating the attention mechanism at each stage, and 'MLP Ratio' is the ratio between the sizes of the hidden layer and the embedding layer in the multi-layer perceptron (MLP).

[0058] Table 1

[0059]

[0060] Please continue to refer to the attached Figure 1 , the decoder component includes a global-local feature fusion module (CGAM), a multi-scale feature fusion module (MTFF) and a decoding head module (Seg). The global-local feature fusion module is configured to fuse the global semantic features and local semantic features of each layer of encoder, and use cascade gated attention to perform weighted calculation on the output of each layer of encoder to obtain the first fused feature; the multi-scale feature fusion module is configured to upsample the first fused features corresponding to each layer of encoder and fuse them in the same dimension, and then reduce the channel dimension through the convolution module to obtain the second fused feature, and the decoding head module is configured to first reduce the channel dimension of the second fused feature to a preset number of prediction categories through a fully connected layer, and then restore the second fused feature to the original image size and predict the semantic category of each pixel in the image; wherein the original image size is the image size of the input encoder component.

[0061] Specifically, in the multi-scale low-loss feature fusion network decoder (MLFFN) network, the representation of small objects in the high-level network becomes increasingly limited or even lost as the resolution of image features decreases as the network goes deeper. And when interpolation is used, the interpolated pixels tend to have strong correlations with neighboring pixels of different categories, which may lead to interference of other categories in the feature information of small objects and boundaries. To this end, we propose a global-local feature fusion module (CGAM). The global-local feature fusion module includes a multi-layer perceptron layer (MLP), a first depth-separable convolution layer (DSC), and a second depth-separable convolution layer (DSC). It is worth noting that in order to capture a larger receptive field without using too many parameters, the CGAM module adopts DSC with kernel sizes of 5 and 3. The first layer of DSC processes the input features and calculates weights. The second layer of DSC further refines the features based on these weights. The two DSC layers work together to implement a gated attention mechanism, where the global-local feature fusion module can adaptively focus on specific spatial and channel features based on the calculated weights. .

[0062] In this embodiment, the four-layer cascaded encoders respectively and sequentially output the global semantic features and local semantic features of stages 1 to 4. Correspondingly, the global-local feature fusion module outputs the first fusion features corresponding to stages 1 to 4 respectively.

[0063] The global-local feature fusion module dynamically processes the semantic features that affect small objects and edge details according to the context information of the spatial features before the second fusion. Specifically, the global semantic features and local semantic features of each layer of encoder are fused according to formula (1), and the fused features are further processed and weighted with the input according to formulas (2) and (3) to obtain the final output, so as to dynamically retain important features;

[0064] Concat_out = Concat(x global ,x local ,dim=-1) (1)

[0065]

[0066] Among them, x global represents the global semantic feature, x local represents local semantic features, dim=-1 represents the last dimension of the current tensor, Concat_out represents the features after the fusion of global semantic features and local semantic features, δ represents the Sigmoid activation function, β represents the batch normalization function (BN), f 5×5 and f 3×3They represent the depth-wise separable convolution calculation functions with kernel sizes of 5 and 3 respectively, and MLP represents the fully connected layer calculation function, which means that Concat_out passes through the fully connected layer, X CGAM represents the features after cascaded gated attention, X output represents the first fusion feature, represents the features of the encoder output corresponding to stage 1, represents the features of the encoder output corresponding to stage 2, represents the features of the encoder output corresponding to stage 3, Represents the features of the encoder output corresponding to stage 4.

[0067] Formula (1) represents the process of fusing global semantic features with local semantic features, formula (2) represents the process of gating attention to features by the global-local feature fusion module, and formula (3) represents the process of weighted concatenation of the features output by each stage and the features output corresponding to formula (2).

[0068] Based on the global-local feature fusion module, the present invention designs a multi-scale feature fusion module for fusing multi-scale feature maps with different semantics. Figure 3 As shown in the figure, the execution process of the multi-scale feature fusion module (MTFF) and the decoding head module (Seg), first, the multi-scale feature fusion module upsamples the first fusion features corresponding to stage 2, stage 3, and stage 4 respectively, so that the first fusion features corresponding to stage 2, stage 3, and stage 4 have the same dimension as the first fusion features corresponding to stage 1. Secondly, a multi-layer perceptron (MLP) is used to fuse the first fusion features corresponding to stage 1 and the first fusion features corresponding to stage 2, stage 3, and stage 4 after upsampling, and then a convolution module is used to reduce the channel dimension from 4C to 1C (C is the number of channels) to obtain a second fusion feature. The second fusion feature is input into the decoding head module, which includes a fully connected layer (FC layer), a 2D Dropout layer, and a 1×1 convolution layer. That is, the channel dimension of the second fusion feature is first reduced to the preset number of prediction categories through a fully connected layer, which is the total number of classifications of image pixels; then it is placed in a 2DDropout layer and restored to the original image size through bilinear interpolation. Finally, a 1×1 convolutional layer is used to perform pixel-level classification prediction in drone video images.

[0069] Furthermore, the semantic segmentation system for low-altitude UAV aerial video images provided in this embodiment also includes a model training module, and the model training module is configured to: pre-train the weight parameters of the global-local feature fusion module before model training, and freeze the weight parameters of the global-local feature fusion module during model training.

[0070] In this embodiment, when training the model, the pre-trained weight parameter file of the global-local feature fusion module is trained on ImageNet-1k, which can greatly improve the model performance. The model is trained using the cross entropy loss function and the optimizer Adam. In train.py, the optimizer and loss function can be selected as needed, not limited to the cross entropy loss function, nor limited to the Adam optimizer used as an example.

[0071] In order to ensure that the results of the present invention are of the same standard as the benchmark model SegFormer, this embodiment trains the encoder component and the decoder component in the model training process using the loss function shown in the following formula:

[0072]

[0073] Where N is the total number of pixels in the image. represents the true label, y i Represents the predicted output of the model.

[0074] In this embodiment, after the training is completed, the relevant loss function and MioU line graph are automatically generated and saved in the logs directory. The weights are frozen for the first 50 epochs of the training process, so the loss graph will start to drop sharply at Epoch = 50 on the x-axis, such as Figure 4 and Figure 5 shown.

[0075] Furthermore, the model training module includes a preprocessing unit, and the preprocessing unit is configured as follows:

[0076] After obtaining the training data index, multiple training data are obtained by obtaining the height and width of the label image for scaling, length and width distortion, flipping the image, rotating the image, Gaussian blurring, and color gamut transformation, and the multiple training data are combined into a batch through the data loading auxiliary function. The above method greatly increases the diversity of training samples and improves the generalization ability of the model. In this embodiment, image datasets taken by unmanned aerial vehicles (UAVs) are selected for model training, such as AeroScapes and ISPRS Vaihingen datasets. These datasets contain different scenes such as urban landscapes and rural areas, and the images contain multi-scale and small target features, such as Figure 6 The dataset format is based on the VOC2007 format. After the data is imported, it will be automatically divided into training, test and validation sets and model training will be performed after preprocessing.

[0077] Finally, the semantic segmentation system based on the trained low-altitude UAV aerial video images performs real-time semantic segmentation. Any UAV is used to shoot the video. During the prediction stage, the input video will be automatically adjusted to the size required for the semantic segmentation system input. The semantic segmentation system achieves a real-time processing speed of 19.6 frames on RTX4060.

[0078] Test: After training is completed, the trained optimal weights will be saved as best_weights.pth in the logs directory. Run predict.py to perform semantic segmentation on the input video in real time. The segmentation results are shown in Figure 7 .

[0079] In summary, the semantic segmentation system for low-altitude UAV aerial video images provided by the present invention uses deep learning and attention mechanism to improve the segmentation accuracy of small-sized and multi-sized objects. It can be applied to a variety of UAV tasks, such as urban planning, disaster assessment, environmental monitoring, and the construction of new environmental maps.

[0080] Furthermore, by efficiently utilizing overlapping embedded patches, the global semantic information is obtained while retaining important local semantic information, thereby improving the segmentation capability of multi-scale targets in UAV images.

[0081] Furthermore, the methods of transfer learning and partial freezing of weights are adopted to reduce the computing resources required for model training and accelerate model convergence.

[0082] Furthermore, an effective training strategy is provided to prevent the model from falling into a local optimal solution during the training process, thereby improving the overall performance of the model.

[0083] Furthermore, the multi-scale low-loss feature fusion network decoder is used to improve the segmentation capability of multi-scale targets in UAV video images.

[0084] It should be noted that the above embodiments illustrate rather than limit the invention and that those skilled in the art may devise alternative embodiments without departing from the scope of the appended claims. In the claims, the word "comprising" does not exclude the presence of elements not listed in the claims. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several different elements and by means of a suitably programmed PC. The use of the words first and second does not indicate any order and the words may be interpreted as names.

[0085] The above are preferred embodiments of the present invention and the technical principles used therein. For those skilled in the art, any obvious changes such as equivalent transformations, simple replacements, etc. based on the technical solution of the present invention, without departing from the spirit and scope of the present invention, are within the scope of protection of the present invention.

Claims

1. A semantic segmentation system for low-altitude drone aerial video images, characterized in that: The system includes an encoder component and a decoder component; The encoder component includes multiple layers of cascaded encoders; The encoder is configured to extract and downsample image features of its input image, and at the same time, extract channels of low importance through masks in the channel dimension, and perform global attention calculation on the image features to obtain global semantic features, and perform local attention calculation on the image features to obtain local semantic features; The decoder component includes a global-local feature fusion module, a multi-scale feature fusion module and a decoding head module; The global-local feature fusion module is configured to perform feature fusion on the global semantic features and local semantic features of the encoders at each layer, and use cascade gated attention to perform weighted calculation on the output of the encoders at each layer to obtain a first fused feature; The multi-scale feature fusion module is configured to upsample the first fusion features corresponding to each layer of the encoder and perform feature fusion in the same dimension, and then reduce the channel dimension through a convolution module to obtain a second fusion feature; The decoding head module is configured to first reduce the channel dimension of the second fusion feature to a preset number of prediction categories through a fully connected layer, and then restore it to the original image size through bilinear interpolation and predict the semantic category of each pixel in the image; The original image size is the image size input to the encoder component.

2. The semantic segmentation system for low-altitude drone aerial video images according to claim 1, characterized in that: The encoder includes an Overlapping Patch Embedding Module and a Transformer Blocks Module; The overlapping patch embedding module comprises a convolutional layer, a channel importance evaluation layer and a mask layer; The Transformer Blocks module includes an efficient multi-head self-attention layer and a KNN clustering layer, the efficient multi-head self-attention layer is connected to a hybrid feedforward network layer, the KNN clustering layer is connected to a Hilbert transform layer, and the Hilbert transform layer is connected to a MoblieNetv2 layer.

3. The semantic segmentation system for low-altitude drone aerial video images according to claim 2, characterized in that: The global-local feature fusion module includes a multi-layer perceptron layer, a first depth-separable convolutional layer, and a second depth-separable convolutional layer.

4. The semantic segmentation system for low-altitude drone aerial video images according to claim 3, characterized in that: The encoder component includes four layers of cascaded encoders, and the four layers of cascaded encoders correspond to the global semantic features and local semantic features of output stages 1 to 4 respectively; Correspondingly, the global-local feature fusion module outputs the first fusion features of stage 1 to stage 4.

5. The semantic segmentation system for low-altitude drone aerial video images according to claim 4, characterized in that: The multi-scale feature fusion module is further configured as follows: Up-sampling the first fusion features corresponding to stage 2, stage 3, and stage 4 respectively, so that the first fusion features corresponding to stage 2, stage 3, and stage 4 have the same dimension as the first fusion features corresponding to stage 1; A multilayer perceptron is used to fuse the first fusion feature corresponding to stage 1 and the first fusion features corresponding to stages 2, 3, and 4 after upsampling, and then a convolution module is used to reduce the dimension of the fused channel to obtain a second fusion feature.

6. The semantic segmentation system for low-altitude drone aerial video images according to claim 5, characterized in that: The global-local feature fusion module is further configured as follows: The first fusion feature is obtained by the method shown in the following formula: Concat_out=Concat(x global ,x local ,dim=-1) X CGAM =δ(β(f 3×3 (δ(β(f 5×5 (MLP(Concat_out))))))) where x global represents the global semantic feature, x local represents local semantic features, dim=-1 represents the last dimension of the current tensor, Concat represents the feature fusion function, Concat_out represents the features after the fusion of global semantic features and local semantic features, δ represents the Sigmoid activation function, β represents the batch normalization function, f 5×5 and f 3×3 They represent the depthwise separable convolution calculation functions with kernel sizes of 5 and 3, respectively, MLP represents the fully connected layer calculation function, and X CGAM represents the features after cascaded gated attention, X output represents the first fusion feature, represents the features of the encoder output corresponding to stage 1, represents the features of the encoder output corresponding to stage 2, represents the features of the encoder output corresponding to stage 3, Represents the features of the encoder output corresponding to stage 4.

7. The semantic segmentation system for low-altitude drone aerial video images according to claim 6, characterized in that: The decoding head module includes a fully connected layer, a 2-dimensional Dropout layer and a 1×1 convolutional layer.

8. The semantic segmentation system for low-altitude drone aerial video images according to claim 1, characterized in that: The system also includes a model training module, which is configured to pre-train the weight parameters of the global-local feature fusion module before model training and freeze the weight parameters of the global-local feature fusion module during model training.

9. The semantic segmentation system for low-altitude drone aerial video images according to claim 8, characterized in that: The model training module is further configured as follows: The encoder component and the decoder component are trained using the loss function shown below: Where N is the total number of pixels in the image. represents the true label, y i Represents the predicted output of the model.

10. The semantic segmentation system for low-altitude drone aerial video images according to claim 9, characterized in that: The model training module includes a preprocessing unit, and the preprocessing unit is configured as follows: After obtaining the training data index, multiple training data are obtained by obtaining the height and width of the label image for scaling, length and width distortion, image flipping, image rotation, Gaussian blur, and color gamut transformation, and the multiple training data are combined into a batch through the data loading auxiliary function.

Citation Information

Cited By

  • Real-time semantic segmentation method and hardware acceleration system for aerial photography scene of unmanned aerial vehicle

    CN120544195A

  • Remote sensing image segmentation method, system and device and storage medium

    CN120747752A