Airport runway remote sensing image target detection and segmentation method based on improved Mask R-CNN
By replacing the region generation network with the rotation region generation network in Mask R-CNN, and using the RRoI Align layer and attention mechanism, the airport runway remote sensing image target detection method is improved, which solves the invalid background problem introduced by the horizontal candidate frame and improves detection. The accuracy and reduction of missed detection and false detection rates enable more efficient airport runway target detection and segmentation.
Patent Information
- Application Number
- CN202410801905.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-20
- Publication Date
- 2024-09-03
AI Technical Summary
The existing airport runway remote sensing image target detection method uses horizontal candidate frames, which leads to the interference of invalid background information, reduces detection accuracy, and has high missed detection and false detection rates.
The improved Mask R-CNN method replaces the region generation network with the rotation region generation network, uses the RRoI Align layer and integrates the attention mechanism into the backbone feature extraction network, adds an angle regression loss function, generates rotation candidate frames and enhances feature extraction capabilities.
It improves the accuracy of airport runway target detection and segmentation, reduces the missed detection and false detection rates, and enhances the effectiveness and practicality of detection.
Smart Images

Figure CN118587600A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of image segmentation and recognition based on deep learning, and in particular to an airport runway remote sensing image target detection and segmentation method based on an improved Mask R-CNN. Background Art
[0002] Object detection in remote sensing images is one of the current research hotspots in the field of image processing. As an important national infrastructure, airports are a key component of air transportation. They carry important tasks such as takeoff and landing of aircraft and play an extremely important role. However, due to the different shapes of airports, complex backgrounds, and susceptibility to interference from various environmental features such as roads and residential areas around airports, accurate and real-time airport detection still has problems and challenges.
[0003] The traditional method of detecting airport runways in remote sensing images is mainly based on visual saliency methods. Visual saliency methods mainly use the flatness, surface uniformity, herringbone markings and other characteristics of the runway to extract underlying features, such as linear features, texture features, shape features, etc. to locate and extract the runway. The main problem with this method is that it relies on custom thresholds to identify features. These thresholds are usually set based on specific data sets or conditions and lack the necessary flexibility and adaptability. Therefore, when faced with environments and conditions that are different from the original training or set thresholds, these thresholds may not be able to effectively distinguish between runway and non-runway features, increasing the risk of false alarms. In addition, traditional airport runway target detection methods are often limited by feature expression capabilities and computational efficiency, and cannot meet the needs of complex scenarios.
[0004] With the rapid development of deep learning technology, more and more researchers have applied deep learning methods to many complex tasks such as image classification, target recognition, image segmentation and detection, and have achieved good results. Therefore, some scholars have begun to study the detection of airports and airport runways in remote sensing images based on deep learning.
[0005] At present, the airport runway target detection algorithms based on deep learning are mainly divided into two categories. One is to convert the detection into a regression problem, represented by YOLO, which improves the detection speed by directly predicting the bounding box. However, the YOLO network directly divides the original image into map grids, which makes the target position too rough, resulting in low accuracy and unsatisfactory detection effect. The other is region-based target detection, such as RCNN, Fast RCNN, Faster RCNN and Mask RCNN. Compared with the regression method, these algorithms adopt a two-stage detection strategy. First, horizontal candidate boxes are generated through the region generation network to locate the target, and then these candidate regions are classified and bounding box regressed, so that the detection result is more accurate. However, the two-stage target detection algorithms are mostly designed for natural scenes, and generally generate horizontal candidate boxes to locate the target. This method has achieved considerable success in natural scenes. However, for the detection of long, narrow and arbitrarily oriented rotating targets such as airport runways, because the horizontal candidate box is the maximum circumscribed rectangle of the airport runway, the generated candidate box will cover a large amount of invalid background information, thereby reducing the accuracy of the detection. Moreover, a single remote sensing image easily contains multiple airport runway targets and the airport runways are closely connected, so it is easy to lose feature information, resulting in low detection accuracy and high missed detection rate. Summary of the invention
[0006] The purpose of the present invention is to overcome the shortcomings of the prior art and provide an airport runway remote sensing image target detection and segmentation method based on an improved Mask R-CNN, which solves the problem that the existing detection method uses a horizontal candidate box for target positioning and introduces a large amount of invalid background, and reduces the probability of missed detection and false detection.
[0007] In order to achieve the above object, the technical solution adopted by the present invention is: based on the improved Mask R-CNN airport runway remote sensing image target detection and segmentation method, comprising the following steps:
[0008] S1. Create a network model: Improve the network model based on the Mask R-CNN network;
[0009] S2. Obtaining the airport runway remote sensing image dataset, annotating the acquired airport runway remote sensing image, and converting it into a sample dataset that can be used for Mask R-CNN network training;
[0010] S3, dividing the sample data set into a training set and a test set, then training the network model with the training set, and testing the training results with the test set to obtain a trained network model that meets the performance requirements;
[0011] S4. Use the trained network model for automatic recognition of airport runway remote sensing images, and input the airport runway remote sensing images into the network model to realize runway recognition and segmentation.
[0012] In step S1, a modified network model is obtained based on the Mask R-CNN network, wherein the improvements include: replacing the region generation network in the Mask R-CNN network with a rotation region generation network RRPN, replacing the RoI Align layer with the RRoI Align layer, and integrating the attention mechanism into the backbone feature extraction network, and adding the angle regression loss to the regression loss function in the network loss function to form a new loss function.
[0013] In step S2, remote sensing images containing airport runways are screened out from the public dataset, and polygonal bounding boxes are annotated on the collected airport runway images using Labelme to generate an annotation file of type json; the json annotation file is converted to generate a sample dataset that meets the requirements of Mask R-CNN network training and detection.
[0014] The sampling points selected by RRoI Align during bilinear interpolation are coordinate-shifted, and the RRoIAlign layer accurately maps these rotation boxes to the corresponding feature maps.
[0015] The loss function of the network model includes classification loss and regression loss, where the regression loss function adds angle regression loss. The regression loss function after adding the angle is:
[0016] L(p,l,v * , v)=L cls (p,l)+λlL reg (v * , v)
[0017] Among them, p represents the confidence of the category, l represents the positive and negative sample labels of the rotated candidate box, that is, when l is 1, it represents a positive sample, and when l is 0, it represents a negative sample, and v * It is represented as the parameterized coordinates of the rotated candidate box and the bounding box of the real sample, and v is represented as the parameterized coordinates of the bounding box of the rotated candidate box for the target prediction result.
[0018] The attention mechanism integrated into the backbone feature extraction network is the CBAM attention module. Its CBAM generates attention maps in the channel dimension and spatial dimension of the input feature map respectively to enhance the network's perception of information in space and channels. The ResNet50 network in the backbone network is connected to the FPN network after spatial attention operation and channel attention operation in turn to extract features.
[0019] The generation mechanism of the candidate box of the rotation region generation network RRPN is controlled by scale, aspect ratio and angle to generate rectangular boxes in any direction.
[0020] When the rotation angle θ is set for the rotation region generation network RRPN, when the value after θ+kπ exceeds the specified interval, θ is updated to θ+kπ; at the same time, in order to enhance the data during the training process, an angle α is rotated around the center of the image, α∈[0,2π), at this time, the direction of the candidate box is θ=θ+α+kπ, and the center of the candidate box is calculated as follows:
[0021]
[0022] Where T and R are the translation matrix and rotation matrix respectively,
[0023]
[0024]
[0025] In the RRPN network, Rotated Bounding Box Representation is used to correct the bounding box, and the bounding box regression is performed only for positive samples;
[0026] Positive samples must meet the following conditions:
[0027] 1) When the intersection-over-union (IOU) between the candidate box and the true label of the sample is greater than 0.7;
[0028] 2) The angle difference between the candidate box and the true label of the sample is less than 15°.
[0029] The ratio of training set to test set is 7:3.
[0030] The advantages of the present invention are: the improved Mask R-CNN airport runway remote sensing image target detection and segmentation method not only has higher detection and segmentation accuracy, but also has lower missed detection rate and false detection, and has higher effectiveness and practicality. Specific advantages include:
[0031] (1) Using a rotational region generation network instead of a region generation network can generate a rotational candidate box that is more in line with the shape of the airport runway, thereby avoiding the interference of a large amount of invalid background information brought by the horizontal candidate box;
[0032] (2) An attention mechanism is added to the backbone feature extraction network so that the network allocates attention to airport runway feature maps of different scales, thereby strengthening the extraction of local feature information to better capture detailed information and reduce problems such as missed detection and false detection in airport runway target detection. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] The following is a brief description of the contents expressed in the drawings of the present invention and the symbols in the drawings:
[0034] Figure 1This is a schematic diagram of the structure of the existing Mask R-CNN network model;
[0035] Figure 2 Schematic diagram for comparing horizontal candidate boxes and rotation candidate boxes;
[0036] Figure 3 It is a schematic diagram of the candidate frame of the present invention;
[0037] Figure 4 This is a schematic diagram of IOU calculation of the present invention;
[0038] Figure 5 Schematic diagram of the RRoI Align calculation method of the present invention;
[0039] Figure 6 This is a structural diagram of the CBAM of the present invention;
[0040] Figure 7 The backbone feature extraction network structure diagram for the present invention that introduces the attention mechanism.
[0041] The marks in the above figure are: DETAILED DESCRIPTION
[0042] The specific implementation of the present invention will be further explained in detail below by describing the optimal embodiment with reference to the accompanying drawings.
[0043] The improved Mask R-CNN airport runway remote sensing image target detection and segmentation method of the present invention comprises the following steps:
[0044] S1: Acquisition of airport runway remote sensing image dataset;
[0045] S2: Annotate the acquired remote sensing images of the airport runway and convert them into sample datasets that can be used for Mask R-CNN network training;
[0046] S3: Divide the sample data set generated by S2 into a training set and a test set;
[0047] S4: Replace the region generation network in the Mask R-CNN network with a rotation region generation network, and integrate the attention mechanism into the backbone feature extraction network;
[0048] S5: Send the training set in the sample data set to the Mask R-CNN network improved by S4 for training to obtain the optimal performance model after training;
[0049] S6: The test set in the sample data set is tested using the optimal performance model obtained through training in S5 to obtain the airport runway detection and segmentation results.
[0050] In some embodiments, the acquisition of the airport runway remote sensing image dataset in S1 is to filter out remote sensing images containing airport runways from the public DIOR dataset.
[0051] In some embodiments, S2 includes:
[0052] Use Labelme to annotate the collected airport runway images with polygonal bounding boxes and generate a json annotation file; convert the json annotation file to generate a sample dataset that meets the requirements of Mask R-CNN network training and detection.
[0053] The ratio of training set to test set in S3 is 7:3.
[0054] S4 includes: After replacing the region generation network with the rotation region generation network, the traditional RoI Align layer is optimized using the RRoI Align layer. RRoI Align can effectively align the image under rotation; add an attention mechanism to the backbone feature extraction network, and the attention mechanism used is the CBAM hybrid attention mechanism. Add angle regression loss to the regression loss function in the improved Mask R-CNN network loss function.
[0055] The airport runway remote sensing image target detection and segmentation method based on the improved Mask R-CNN provided by the present invention not only has higher detection and segmentation accuracy, but also has lower missed detection rate and false detection rate, and has high effectiveness and practicability.
[0056] Labelme is used to annotate the collected airport runway images with polygonal bounding boxes, annotate the runway areas, and generate a json annotation file with the same name as the original image. The json annotation file is converted to generate a sample dataset that meets the requirements of Mask R-CNN training. Specifically, the original image information, polygonal bounding box annotation information, and annotation target category information can be obtained by parsing the json file, and then converted into the COCO dataset format used by the Mask R-CNN target detection network model in this article through a Python script.
[0057] The above target detection dataset and semantic segmentation dataset are divided into training set and test set in a ratio of 7:3, where the training set contains 884 sample images and the test set contains 379 sample images. In the Mask R-CNN network, the region generation network is replaced with a rotation region generation network, the rotation candidate box is used to locate the target, and the CBAM hybrid attention mechanism is added to the backbone feature extraction network to form an improved Mask R-CNN network model.
[0058] The training set is sent to the improved Mask R-CNN network for training, where the model training parameters are set as follows: the input image resolution is set to 800*800, the number of iterations is set to 200, the initial learning rate is set to 0.002, and the learning rate is decayed at the 100th and 150th times, the decay multiple is 0.1, the SGD stochastic gradient descent method is selected to optimize the model parameters, the momentum unit momentum is set to 0.9, the aspect ratio of the candidate box is set to {1:25, 1:35, 1:45, 1:55, 55:1, 45:1, 35:1, 25:1}, and the angle parameter of the rotation candidate box is selected to be 15° intervals. After the training is completed, the optimal performance model is obtained and saved. The test set is tested with the optimal performance model to obtain the detected airport runway area and the airport runway segmentation. The model that meets the requirements of the optimal performance after the test is used as the model for recognition and segmentation. In practical applications, the remote sensing image is input into the model to automatically output the detection and segmentation results of the insufficient drinking.
[0059] After deep learning convolutional neural networks played a huge role in the field of target detection, target detection models have been continuously optimized and updated. The Mask R-CNN network model based on Faster R-CNN (such as Figure 1), this model adds the FCN semantic segmentation module on the basis of FasterR-CNN, and realizes the detection and segmentation tasks of the target at the same time. Mask R-CNN also introduces the Feature Pyramid Network (FPN), which makes full use of the multi-layer feature maps from low to high resolution to improve the detection and segmentation accuracy of the target. The model is mainly divided into three parts. First, in the backbone feature extraction network, the bottom-up network, the top-down network and the horizontal connection network are combined to obtain feature maps of different scales and fuse them, so that the network has high-resolution shallow features and richer deep feature information. Secondly, the region generation network (RPN) is used to extract the candidate box of the target object. RPN generates a series of candidate boxes by sliding a small window (usually a 3x3 filter) on the feature map of the backbone feature extraction network, and maps the feature map in each sliding window into a low-dimensional feature vector through the convolution layer, and then calculates the score to provide high-precision target candidate boxes. Finally, when extracting the target region (Region of Interest, RoI), the Mask R-CNN network model made another important optimization, that is, replacing the ROI pooling layer (RoI Pooling) with the RoI Align layer. This method can reduce the error in the mapping relationship between the original image and the extracted feature map. RoI Align uses bilinear interpolation to calculate the coordinate values of the sampling points in each grid after segmentation, and then performs maximum pooling on them. The coordinates of the candidate boxes obtained in this way are almost the same as the original coordinates, which greatly reduces the mapping error and thus improves the detection accuracy of the network.
[0060] In order to achieve the recognition, detection and segmentation of airport runways, this solution improves the model. In view of the current problems of deep learning in airport runways, this paper improves it based on the Mask-RCNN network model. First, the rotated region generation network (RRPN) is used to replace the traditional region generation network (RPN) to generate a rotated candidate box that better fits the shape of the airport runway. Secondly, RRoI Align is used to optimize the RoI Align layer of the Mask-RCNN model, accurately cropping out the features in the feature map that match the airport runway area to ensure that important information about the airport runway is not lost. Finally, the attention mechanism is further introduced into the backbone feature extraction network to reduce missed detection and false detection of airport runways.
[0061] (1) Replacement Region Generation Network
[0062] The traditional Mask R-CNN network model uses the RPN network in the region generation network to generate horizontal candidate boxes, such as Figure 2As shown in (a). During detection, the horizontal candidate box is drawn based on the maximum circumscribed rectangle of the target, so this method performs well in horizontal target detection tasks, but is limited when dealing with rotated targets. Airport runways usually have long and narrow shape features, and various rotation angles. The horizontal candidate box generated by RPN will contain a lot of background information when capturing airport runways in non-horizontal or non-vertical directions, which affects the detection accuracy. Therefore, in the region generation network of the Mask R-CNN network model, the rotation region generation network RRPN is chosen to replace RPN. Its candidate box generation mechanism is controlled by scale, aspect ratio and angle, and can generate rectangular boxes in any direction, such as Figure 2 (b) as shown. Figure 2 The left part is Figure 2 (a), the right part is Figure 2 (b).
[0063] Assume that the size of the airport runway remote sensing image is I H xI W , I H ,I W is the length and width of the image; after adding the angle parameter, the airport runway rotation candidate box can be expressed as (x, y, h, w, θ), such as Figure 3 As shown, (x, y) is the coordinate value of the center point of the candidate box, h, w are the length and width of the candidate box respectively, and θ is the angle between the positive X axis and the long side of the candidate box, that is, the rotation angle. Considering that the model can identify targets in the direction and the opposite direction, this paper adopts a special processing method to optimize the setting of the angle parameter θ in the rotation candidate box model. We keep the setting of θ so that it covers half of the angle space. In this case, even if the direction of the rotation box is θ, a unique integer k can be found by calculation so that the result of θ+kπ falls within the half-angle interval, which can maintain the consistency and effectiveness of θ while reducing redundant direction detection. Therefore, when the value after θ+kπ exceeds the specified interval, we update θ to θ+kπ. This method not only simplifies the calculation process of the model, but also improves the accuracy and efficiency of target detection, which is especially suitable for the detection scenario of airport runways in this paper. At the same time, in order to enhance the data during training, an angle α can be rotated around the center of the image, α∈[0, 2π). At this time, the direction of the candidate box is θ=θ+α+kπ, and the center of the candidate box is calculated as follows:
[0064]
[0065] Where T and R are the translation matrix and rotation matrix respectively, x′ and y′ represent the center coordinates of the candidate box after the direction changes, δ x and δ y Represent the translation along the x-axis and y-axis respectively;
[0066]
[0067] Because the generated rotated candidate box and the real box not only have differences in scale and position, but also in angle, the original bounding box regression method (only correcting the position and width and height) cannot perform angle regression. Therefore, Rotated Bounding Box Representation is used in the RRPN network to correct the bounding box. Only positive samples are regressed, and positive samples must meet the following conditions:
[0068] 1) When the intersection over union (IOU) between the candidate box and the true label of the sample is greater than 0.7;
[0069] 2) The angle difference between the candidate box and the true label of the sample is less than 15°.
[0070] The condition for judging as a negative sample is when the l0U between the candidate box and the true sample label is less than 0.3 and when the I0U between the candidate box and the true sample label is greater than 0.7, but the angle between the two boxes is greater than 15°. Candidate boxes that do not meet both positive and negative sample conditions are discarded and do not participate in the training and learning of the network model. The schematic diagram of the l0U calculation method between the candidate box and the true sample label is shown in the figure. Figure 4 , the specific calculation steps are shown in Table 1:
[0071] Table 1 Rotation IOU calculation steps
[0072] Table.1 Calculation steps of rotation IOU
[0073]
[0074] (2) Optimize the RoI Align layer
[0075] The RoI Align layer in the target region alignment network of the Mask R-CNN network model is a method for accurately cropping and aligning regions of interest based on regular rectangles. However, for the rotated candidate regions of airport runway targets facing any direction generated by RRPN in this paper, the traditional RoI Align may not be able to capture the accurate information of the airport runway with the rotation angle. Therefore, this paper uses RRoI Align to replace the RoI Align layer. RRoI Align can effectively align features in the case of rotation to maintain the spatial consistency of the airport runway on the feature map, and accurately crop the features that match the region in the feature map to ensure that important information of the airport runway is not lost.
[0076] RoI Align uses bilinear interpolation to process the feature map where the candidate box is located to avoid inaccurate features caused by boundaries. The sampling points selected by RRoI Align during bilinear interpolation are coordinate-shifted. The calculation formula for the coordinate shift process is shown in Formula 4. Through the RRoI Align layer, these rotated boxes can be accurately mapped on the corresponding feature maps.
[0077]
[0078] The dotted line represents the airport runway feature map, and the solid line represents the sampling area of interest. xx and yy represent the coordinates of the sampling points in the feature map, center w and center h They represent the coordinates of the center point of the feature map (dot), and θ represents the current rotation angle, such as Figure 5 shown.
[0079] In the loss function calculation part of the network model, the loss function of RPN consists of classification loss and regression loss. The classification loss function usually uses cross entropy loss, and the regression loss function usually uses smooth L1 loss. However, the RPN regression loss function only contains position regression loss. Since this paper uses RRPN to replace the RPN in the Mask R-CNN network model, it is necessary to add angle regression loss to the regression loss function. The calculation formula is shown in Formula 5.
[0080] L(p,l,v * , v)=L cls (p,l)+λlL reg (v * ,v)#(5)
[0081] Among them, p represents the confidence of the category, l represents the positive and negative sample labels of the rotated candidate box, that is, when l is 1, it represents a positive sample, and when l is 0, it represents a negative sample, and v * It is represented as the parameterized coordinates of the rotated candidate box and the bounding box of the real sample. v is represented as the parameterized coordinates of the bounding box of the rotated candidate box for the target prediction result. L cls , L re g are the classification loss and regression loss functions respectively.
[0082] (3) Introducing the attention mechanism
[0083] Due to the redundant background information in remote sensing images, the network is easily distracted by the background during detection, interfering with feature extraction information. In addition, for a single remote sensing image that easily contains multiple airport runway targets and the airport runways are closely connected, it is easy to lose feature information, resulting in low detection accuracy and high missed detection rate. However, the proposed attention mechanism can assign different weights to different areas, assign high weights to the target area, and ignore the background area, which can help the network focus on the foreground and increase the feature information of the target.
[0084] CBAM (Convolution Block Attention Module) is a hybrid attention mechanism that combines space and channels. It is a lightweight attention module that can be integrated into any convolutional neural network with minimal cost. CBAM generates attention maps in the channel dimension and spatial dimension of the input feature map to enhance the network's perception of information in space and channels. Its structure is as follows: Figure 6 As shown in the figure. Since different channels have different features, the features on the same feature map can also be divided into background and foreground. Channel attention can allocate weights on key channels according to the importance of different channels, while spatial attention can allocate more weights to the foreground area on the map. Combining these two attention mechanisms can effectively extract more important features in channels and spaces. The overall network framework of CBAM is shown in the figure. Figure 6 shown.
[0085] The channel attention module first performs global average pooling (AvgPool) and maximum pooling (MaxPool) operations on the input feature map. The description features F c_avg and F c_max Then, these two features are added through a shared multi-layer perceptron and processed by the Sigmoid function to obtain M c (F). Finally, the channel weight coefficient M c (F) is multiplied with the input feature map F to obtain the channel attention feature map F′. As shown in equations (6) and (7).
[0086] M c (F) = σ(MLP(F c_avg )+MLP(F c_max ))#(6)
[0087]
[0088] The spatial attention module then performs average pooling and maximum pooling operations on the input feature map F′ to obtain the description feature F c_avg and F c-maxThen these two features are horizontally spliced and aggregated and passed into the 7×7 convolution kernel for operation (f 7 ×7 Then, the obtained result is subjected to Sigmoid (σ) operation to obtain M s (F′). Finally, by using the spatial weight coefficient M s (F′) is multiplied with the input feature map F′ to obtain the mixed attention feature map F″. As shown in equations (8) and (9).
[0089] M s (F′)=σ(f 7×7 ([F s_avg ; F s_max ]))#(8)
[0090]
[0091] After optimizing the model using RRPN and RROI Align, the model can better cope with the detection of rotated targets. On this basis, this paper chooses to apply the attention mechanism to the backbone feature extraction network of the Mask R-CNN network model, so as to help the network dynamically allocate attention to airport runway feature maps of different scales, so that the airport runway feature maps with lower resolution but rich semantic information can receive more attention, while the airport runway feature maps with higher resolution can be properly modulated to better capture detailed information, thereby improving the perception ability and accuracy of the model. The backbone feature extraction network structure diagram with the introduction of the attention mechanism is shown in the figure below. Figure 7 shown.
[0092] Experimental verification:
[0093] The hyperparameters used in model training in this scheme are set as follows: the number of iterations is 200, the initial learning rate is set to 0.002, and the learning rate is decayed at the 100th and 150th times, the decay multiple is 0.1, the SGD stochastic gradient descent method is selected to optimize the model parameters, and the momentum unit is set to 0.9 to prevent the local optimal solution from appearing during the training process and accelerate the convergence of the network. In addition, since the length and width of the airport runway are relatively large, in order to make the ratio of the candidate box fit the airport runway well, by counting all images in the airport runway dataset, the length and width ratio of the rotation box generated by its annotation is calculated to obtain the results shown in Table 3. That is, the length and width ratio of most runways is distributed between 1:20 and 1:60, so the length and width ratio of the candidate box is set to {1:25, 1:35, 1:45, 1:55, 55:1, 45:1, 35:1, 25:1}.
[0094] Table 3 Statistics of runway length-width ratio in airport runway data set
[0095] Table.3 Statistical Table of Length and Width Ratio in Airport RunwayDataset
[0096]
[0097] For the setting of the angle θ of the rotation candidate box, in order to obtain higher network model accuracy, while ensuring the efficiency of the network model and sufficient computer computing power, the angle parameters of the rotation candidate box are selected at intervals of 15°.
[0098] In the application of rotated candidate box target detection, especially for airport runway targets with long, narrow shapes and arbitrary directions, non-maximum suppression (NMS) is particularly critical. As a judgment criterion, IOU is sensitive to rotation angle and aspect ratio, which leads to large differences under slight changes. Therefore, in the NMS process, this sensitivity may cause too many bounding boxes in the result or the correct box to be incorrectly suppressed, thus affecting the accuracy of the network model. Therefore, the Skew-NMS method and continuous network model parameter debugging are chosen to finally suppress the candidate boxes within the following two ranges:
[0099] (1) When the IOU with the candidate box with the highest confidence is greater than 0.5;
[0100] (2) When the IOU between two candidate boxes is greater than 0.3 and less than 0.5, and their angle difference is less than 15°.
[0101] Experimental results analysis
[0102] Based on the airport runway dataset constructed in this paper, the original Mask R-CNN model, the rotated Mask R-CNN model that uses RRPN to replace RPN, and the rotated Mask R-CNN model that introduces the attention mechanism are used to obtain the model parameters after sufficient training and tuning on the training set. The trained model is used to evaluate the model performance on the validation set. Some of the obtained indicators are shown in Table 4.
[0103] Table 4 Comparison of main indicators of three methods on airport runway dataset
[0104] Table.4 Comparison of main indicators of three methods on the airportrunway dataset
[0105]
[0106] From the results in Table 4, it can be observed that after replacing the RPN network, the network model using RRPN shows a good improvement in the detection and segmentation of airport runways. The detection accuracy and segmentation accuracy of the target detection and segmentation model based on the rotation Mask R-CNN model on the airport runway dataset reached 70.25% and 57.92%, respectively, which are 2.86% and 2.33% higher than the original Mask R-CNN model. This shows that the Mask R-CNN network model improved by the rotation candidate box effectively improves the detection and segmentation accuracy of airport runway targets. On the other hand, the rotation Mask R-CNN model that further introduces the attention mechanism has achieved 73.07% and 62.80% detection accuracy and segmentation accuracy on the airport runway dataset, respectively, which are 5.68% and 4.88% higher than the original Mask R-CNN model. Compared with the rotation Mask R-CNN model, the introduction of the attention mechanism further improves the performance by 2.82% and 2.55%. This improvement is due to the fact that the attention mechanism enhances the response of the feature extractor to the airport runway target, suppresses background noise, and reduces the false detection and missed detection of airport runway target detection, thereby improving the detection and segmentation accuracy of the airport runway. The experimental performance of this paper on the airport runway dataset is quite significant. The experimental results are not only clearly verified in numbers, but also visually displayed, intuitively showing the excellent performance of this method in the runway detection task.
[0107] Obviously, the specific implementation of the present invention is not limited to the above-mentioned methods. As long as various non-substantial improvements are made using the method concept and technical solution of the present invention, they are all within the protection scope of the present invention.
Claims
1. An improved Mask R-CNN airport runway remote sensing image target detection and segmentation method is characterized by: The steps include: S1. Create a network model: Improve the network model based on the Mask R-CNN network; S2. Obtaining the airport runway remote sensing image dataset, annotating the acquired airport runway remote sensing image, and converting it into a sample dataset that can be used for Mask R-CNN network training; S3, dividing the sample data set into a training set and a test set, then training the network model with the training set, and testing the training results with the test set to obtain a trained network model that meets the performance requirements; S4. Use the trained network model for automatic recognition of airport runway remote sensing images, and input the airport runway remote sensing images into the network model to realize runway recognition and segmentation.
2. The method for detecting and segmenting airport runway remote sensing images based on an improved Mask R-CNN as claimed in claim 1, characterized in that: In step S1, a modified network model is obtained based on the Mask R-CNN network, wherein the improvements include: replacing the region generation network in the Mask R-CNN network with a rotation region generation network RRPN, replacing the Rol Align layer with the RRol Align layer, and integrating the attention mechanism into the backbone feature extraction network, and adding the angle regression loss to the regression loss function in the network loss function to form a new loss function.
3. The improved Mask R-CNN airport runway remote sensing image target detection and segmentation method according to claim 1, characterized in that: In step S2, remote sensing images containing airport runways are screened out from the public dataset, and polygonal bounding boxes are annotated on the collected airport runway images using Labelme to generate an annotation file of type json; the json annotation file is converted to generate a sample dataset that meets the requirements of Mask R-CNN network training and detection.
4. The method for detecting and segmenting airport runway remote sensing images based on improved Mask R-CNN as claimed in claim 2, characterized in that: The sampling points selected by RRoI Align during bilinear interpolation are coordinate-shifted, and these rotation boxes are accurately mapped on the corresponding feature maps through the RRoI Align layer.
5. The method for detecting and segmenting airport runway remote sensing images based on improved Mask R-CNN as claimed in claim 2, characterized in that: The loss function of the network model includes classification loss and regression loss, where the regression loss function adds angle regression loss. The regression loss function after adding the angle is: L(p,l,v * ,v)=L cls (p,l)+λlL reg (v * ,v) Among them, o represents the confidence of the category, l represents the positive and negative sample labels of the rotated candidate box, that is, when l is 1, it represents a positive sample, and when l is 0, it represents a negative sample, v * It is represented as the parameterized coordinates of the rotated candidate box and the bounding box of the real sample, and v is represented as the parameterized coordinates of the bounding box of the rotated candidate box for the target prediction result.
6. The method for detecting and segmenting airport runway remote sensing images based on an improved Mask R-CNN according to any one of claims 1 to 5, characterized in that: The attention mechanism integrated into the backbone feature extraction network is the CBAM attention module. Its CBAM generates attention maps in the channel dimension and spatial dimension of the input feature map respectively to enhance the network's perception of information in space and channels. The ResNet50 network in the backbone network is connected to the FPN network after spatial attention operation and channel attention operation in turn to extract features.
7. The method for detecting and segmenting airport runway remote sensing images based on an improved Mask R-CNN according to any one of claims 1 to 5, characterized in that: The generation mechanism of the candidate box of the rotation region generation network RRPN is controlled by scale, aspect ratio and angle to generate rectangular boxes in any direction.
8. The method for detecting and segmenting airport runway remote sensing images based on improved Mask R-CNN as claimed in claim 7, characterized in that: When the rotation angle θ is set for the rotation region generation network RRPN, when the value after θ+kπ exceeds the specified interval, θ is updated to θ+kπ; at the same time, in order to enhance the data during the training process, an angle α is rotated around the center of the image, α∈[0,2π), at this time, the direction of the candidate box is θ=θ+α+kπ, and the center of the candidate box is calculated as follows: Where T and R are the translation matrix and rotation matrix respectively, In the RRPN network, Rotated Bounding Box Representation is used to correct the bounding box, and the bounding box regression is performed only for positive samples; Positive samples must meet the following conditions: 1) When the intersection-over-union (IOU) between the candidate box and the true label of the sample is greater than 0.7; 2) The angle difference between the candidate box and the true label of the sample is less than 15°.
9. The method for detecting and segmenting airport runway remote sensing images based on an improved Mask R-CNN according to any one of claims 1 to 5, characterized in that: The ratio of training set to test set is 7:3.
Citation Information
Patent Citations
Small target detection method based on attention mechanism
CN114202672A
Remote sensing image airport runway extraction method based on boundary and context joint learning
CN116778315A
Leaf vegetable crop detection method and device based on Mask R-CNN
CN117765370A
Remote sensing image runway target detection method based on improved Oriented R-CNN
CN117935057A
Method for identification and recognition of aircraft take-off and landing runway based on pspnet network
US20220315243A1
Cited By
Feature decoupling refining and confusion minimization constraint combined remote sensing directed target identification method
CN119723370A
Moon rockfall rotating target detection method and device based on yolk-R model
CN120047758A
Building emergency monitoring method and system based on remote sensing image
CN120107801A
Hematoma positioning method and device of cerebral apoplexy surgical robot, medium and robot
CN120431164A
Mask R-CNN-based remote sensing image small-size aircraft target detection method
CN121353739A
