Remote sensing image fine-grained target detection method and system based on feature balance
Through the feature balancing method and multi-scale feature extraction technology, the classification bias and information redundancy problems in fine-grained target detection in remote sensing images are solved, and efficient target positioning and fine-grained recognition are achieved, which is suitable for a variety of application scenarios.
Patent Information
- Application Number
- CN202410699754.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-31
- Publication Date
- 2024-08-30
AI Technical Summary
Fine-grained target detection in remote sensing images has problems such as small inter-class differences, large intra-class differences, classification bias caused by sample imbalance, and insufficient expression of tail target category features. Existing methods have problems such as information redundancy affecting detection accuracy.
Using a method based on feature balancing, a fine-grained target detection sample data set is constructed through sample labeling and processing, a model for the feature learning stage and classification learning stage is constructed, and multi-scale feature maps and rotating region feature alignment algorithms are used to extract features of target candidate frames. , and alleviate the sample imbalance problem through improved loss functions and feature simulation modules.
It achieves precise automated positioning and fine-grained identification of remote sensing image targets, improves detection effects, is suitable for different application scenarios and types of ground objects, and is universal and adaptive.
Smart Images

Figure CN118570447A
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of remote sensing image processing, and in particular relates to a remote sensing image fine-grained target detection method and system based on feature balance. Background Art
[0002] With the advantages of large range, near real-time, and easy data acquisition, satellite remote sensing has become one of the important means of wide-area target search, and plays an important role in various industries such as ocean, meteorology, and military. In recent years, due to the rapid development of remote sensing high-resolution imaging technology, multi-source satellite and high-resolution remote sensing observation data have increased significantly, providing rich data resources for target positioning and identification. At the same time, in terms of technical methods, with the continuous breakthroughs in artificial intelligence technology, methods such as deep learning driven by data models and based on large samples can intelligently realize the extraction and mining of remote sensing ground object information by learning the remote sensing characteristics of the target, providing a technical basis for the rapid and automated detection of remote sensing image targets.
[0003] As an important branch in the field of image recognition, fine-grained target detection in remote sensing images requires not only the positioning of targets, but also a more refined sub-classification of targets under the same meta-class category, such as detecting aircraft models, ship levels, vehicle types, etc. However, due to the small inter-class differences and large intra-class differences between sub-class targets in remote sensing images, coupled with the classification bias caused by sample imbalance and insufficient expression of tail target category features, fine-grained target detection has always been considered a very challenging research direction. At the same time, targets in remote sensing images are often directional, and features change with changes in direction. Existing methods for achieving target positioning based on horizontal boxes will have a lot of information redundancy, which will affect the accuracy and effect of target detection. Summary of the invention
[0004] The technical problem solved by the present invention is: to overcome the deficiencies of the prior art and provide a remote sensing image fine-grained target detection method and system based on feature balance, which can accurately and automatically realize the positioning and fine-grained recognition of the target.
[0005] The purpose of the present invention is achieved through the following technical solutions: a method for fine-grained target detection in remote sensing images based on feature balance, comprising: labeling and processing preset remote sensing image data samples to obtain a fine-grained target detection sample data set; constructing a basic model for a feature learning stage; using the fine-grained target detection sample data set to train the basic model for the feature learning stage, and combining the preset loss calculation to iteratively optimize the network to obtain the model training weight result for the feature learning stage; constructing a detection network for a fine-grained classification learning stage; inputting the fine-grained target detection sample data set into the detection network for the fine-grained classification learning stage, using the model training weight result for the feature learning stage as the initial weight, combining the preset verification set accuracy and the loss calculation to iteratively optimize the network to obtain a trained detection model; inputting the remote sensing image data set to be processed into the trained detection model to obtain a fine-grained target detection result for the remote sensing image.
[0006] In the above-mentioned method for fine-grained target detection in remote sensing images based on feature balance, the preset remote sensing image data are labeled and processed to obtain a fine-grained target detection sample data set, including: constructing a fine-grained target category system, sample collection specifications and interpretation mark manual based on the preset remote sensing image data and preset expert experience knowledge; based on the fine-grained target category system, sample collection specifications and interpretation mark manual, annotating the target position and attribute information in the image in the form of a rotated rectangular frame; slicing the labeled image to form a preliminary sample data set; and cleaning and quality inspecting the preliminary sample data set again to obtain a fine-grained target detection sample data set.
[0007] In the above-mentioned fine-grained target detection method for remote sensing images based on feature balance, the basic model for constructing the feature learning stage includes: obtaining a multi-scale feature map through the backbone network and the feature pyramid; using the multi-scale feature map as the input of the directional region proposal generation network to generate a series of target candidate boxes with directions; then using the rotation region feature alignment algorithm to extract the features of the target candidate boxes from the multi-scale feature map and input them into the head network to obtain the target positioning and classification results in the feature learning stage.
[0008] In the above-mentioned remote sensing image fine-grained target detection method based on feature balance, the backbone network of the basic model in the feature learning stage is composed of a repeatedly stacked module structure, each module includes a convolution kernel selection submodule and a feedforward network submodule; wherein, the convolution kernel selection submodule dynamically adjusts the receptive field of the network as needed, and the convolution kernel selection submodule is composed of a fully connected layer, a GELU activation function, a selective convolution kernel sequence and a second fully connected layer; the feedforward network submodule is used for channel mixing and feature refinement, and the feedforward network submodule includes a fully connected layer, a depth-separable convolution layer, a GELU activation function and a second fully connected layer.
[0009] In the above-mentioned remote sensing image fine-grained target detection method based on feature balance, constructing the detection network in the fine-grained classification learning stage includes: improving the foreground candidate box classification loss function in the classification stage of the detection network in the fine-grained classification learning stage to correct the category bias caused by the imbalance of tail category samples; adding a feature simulation module to the detection network in the fine-grained classification learning stage to increase the feature diversity of the tail category targets.
[0010] A remote sensing image fine-grained target detection system based on feature balance comprises: a first module, which is used to perform sample annotation and processing on preset remote sensing image data to obtain a fine-grained target detection sample data set; a second module, which is used to construct a basic model in a feature learning stage; a third module, which is used to train the basic model in the feature learning stage using the fine-grained target detection sample data set, and iteratively optimize the network in combination with a preset loss calculation to obtain a model training weight result in the feature learning stage; a fourth module, which is used to construct a detection network in a fine-grained classification learning stage; a fifth module, which is used to input the fine-grained target detection sample data set into the detection network in the fine-grained classification learning stage, use the model training weight result in the feature learning stage as the initial weight, and iteratively optimize the network in combination with a preset verification set accuracy and loss calculation to obtain a trained detection model; and a sixth module, which is used to input the remote sensing image data set to be processed into the trained detection model to obtain a fine-grained target detection result of the remote sensing image.
[0011] In the above-mentioned remote sensing image fine-grained target detection system based on feature balance, the preset remote sensing image data are labeled and processed to obtain a fine-grained target detection sample data set, including: constructing a fine-grained target category system, sample collection specifications and interpretation mark manual based on the preset remote sensing image data and preset expert experience knowledge; based on the fine-grained target category system, sample collection specifications and interpretation mark manual, the target position and attribute information in the image are labeled in the form of a rotated rectangular frame; the labeled image is sliced to form a preliminary sample data set; the preliminary sample data set is cleaned and quality inspected again to obtain a fine-grained target detection sample data set.
[0012] In the above-mentioned fine-grained target detection system for remote sensing images based on feature balance, the basic model for constructing the feature learning stage includes: obtaining a multi-scale feature map through the backbone network and feature pyramid; using the multi-scale feature map as the input of the directional region proposal generation network to generate a series of target candidate boxes with directions; then using the rotation region feature alignment algorithm to extract the features of the target candidate boxes from the multi-scale feature map and input them into the head network to obtain the target positioning and classification results in the feature learning stage.
[0013] In the above-mentioned fine-grained target detection system for remote sensing images based on feature balance, the backbone network of the basic model in the feature learning stage is composed of a repeatedly stacked module structure, each module includes a convolution kernel selection submodule and a feedforward network submodule; wherein, the convolution kernel selection submodule dynamically adjusts the receptive field of the network as needed, and the convolution kernel selection submodule is composed of a fully connected layer, a GELU activation function, a selective convolution kernel sequence and a second fully connected layer; the feedforward network submodule is used for channel mixing and feature refinement, and the feedforward network submodule includes a fully connected layer, a depth-separable convolution layer, a GELU activation function and a second fully connected layer.
[0014] In the above-mentioned remote sensing image fine-grained target detection system based on feature balance, constructing the detection network in the fine-grained classification learning stage includes: improving the foreground candidate box classification loss function in the classification stage of the detection network in the fine-grained classification learning stage to correct the category bias caused by the imbalance of tail category samples; adding a feature simulation module to the detection network in the fine-grained classification learning stage to increase the feature diversity of tail category targets.
[0015] Compared with the prior art, the present invention has the following beneficial effects:
[0016] (1) The present invention effectively alleviates the problems of sample imbalance and insufficient sample data of tail target categories by optimizing the loss function and adding a feature simulation module, thereby improving the effect of fine-grained target detection;
[0017] (2) The present invention is applicable to different application scenarios and different types of terrain features, and has strong universality and adaptability. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present invention. Moreover, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:
[0019] Figure 1 is a flow chart of a remote sensing image fine-grained target detection method based on feature balance provided by an embodiment of the present invention;
[0020] Figure 2 It is a network architecture diagram for fine-grained detection of remote sensing image targets provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0021] Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present disclosure and to be able to fully convey the scope of the present disclosure to those skilled in the art. It should be noted that, in the absence of conflict, the embodiments of the present invention and the features described in the embodiments can be combined with each other. The present invention will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0022] Figure 1 FIG. 1 is a flow chart of a method for fine-grained target detection in remote sensing images based on feature balance provided by an embodiment of the present invention. Figure 1 As shown, the remote sensing image fine-grained target detection method based on feature balance includes:
[0023] The preset remote sensing image data is labeled and processed to obtain a fine-grained target detection sample data set;
[0024] Construct the basic model of the feature learning phase;
[0025] The basic model of the feature learning stage is trained using a fine-grained target detection sample data set, and the network is iteratively optimized in combination with the preset loss calculation to obtain the model training weight results of the feature learning stage;
[0026] Construct a detection network for the fine-grained classification learning phase;
[0027] The fine-grained target detection sample data set is input into the detection network in the fine-grained classification learning phase, the model training weight results in the feature learning phase are used as the initial weights, and the network is iteratively optimized in combination with the preset validation set accuracy and loss calculation to obtain a trained detection model;
[0028] The remote sensing image dataset to be processed is input into the trained detection model to obtain the fine-grained target detection results of the remote sensing image.
[0029] The preset remote sensing image data are sample labeled and processed to obtain a fine-grained target detection sample data set, including: constructing a fine-grained target category system, sample collection specifications and interpretation mark manual based on the preset remote sensing image data and preset expert experience knowledge; based on the fine-grained target category system, sample collection specifications and interpretation mark manual, the target position and attribute information in the image are labeled in the form of a rotating rectangular frame; the labeled image is sliced to form a preliminary sample data set; the preliminary sample data set is cleaned and quality inspected again to obtain a fine-grained target detection sample data set.
[0030] The basic model for constructing the feature learning stage includes: obtaining a multi-scale feature map through the backbone network and feature pyramid; using the multi-scale feature map as the input of the directional region proposal generation network to generate a series of target candidate boxes with directions; then using the rotation region feature alignment algorithm to extract the features of the target candidate boxes from the multi-scale feature map and input them into the head network to obtain the target positioning and classification results in the feature learning stage.
[0031] The backbone network of the basic model in the feature learning stage consists of a repeatedly stacked module structure, each module includes a convolution kernel selection submodule and a feedforward network submodule; the convolution kernel selection submodule dynamically adjusts the receptive field of the network as needed, and the convolution kernel selection submodule consists of a fully connected layer, a GELU activation function, a selective convolution kernel sequence and a second fully connected layer; the feedforward network submodule is used for channel mixing and feature refinement, and the feedforward network submodule includes a fully connected layer, a depth-separable convolution layer, a GELU activation function and a second fully connected layer.
[0032] Constructing the detection network in the fine-grained classification learning stage includes: improving the foreground candidate box classification loss function in the classification stage of the detection network in the fine-grained classification learning stage to correct the category bias caused by the imbalance of tail category samples; adding a feature simulation module to the detection network in the fine-grained classification learning stage to increase the feature diversity of tail category targets.
[0033] Specifically, the method comprises the following steps:
[0034] Step 1: Collect remote sensing image data for sample annotation and processing to obtain a fine-grained target detection sample dataset.
[0035] Step 1-1: Collect high-resolution satellite image data and build a classification system of fine-grained targets, sample collection specifications and interpretation manuals based on expert experience and knowledge to assist in sample collection;
[0036] Step 1-2: Based on the target classification system, sample collection specifications, interpretation sign manual and other auxiliary information, use automatic or semi-automatic methods to mark the target location and attribute information in the image in the form of a rotating rectangular frame, and conduct preliminary quality inspection;
[0037] Step 1-3: Slice the annotated images and label information according to the DOTA standard data format, set the slice size to 1024*1024, and retain 50% overlap between slices to initially form a sample data set;
[0038] Step 1-4: Clean and quality check the sample data set again, delete samples that do not meet the requirements, such as those without annotation information or those with annotation targets out of bounds, and modify problems such as inaccurate annotation boxes and incorrect annotation attributes.
[0039] Step 1-5: Randomly divide the cleaned sample data set into training set and validation set in a ratio of 8:2 to ensure that the number of target categories in each data set is consistent.
[0040] Step 2: Build the basic model Oriented R-CNN in the feature learning stage. First, obtain a multi-scale feature map through the backbone network and feature pyramid; then use the multi-scale feature map as the input of the oriented region proposal generation network (OrientedRPN) to generate a series of target candidate boxes with orientations; then use the rotated region feature alignment algorithm (Rotated RoIAlign) to extract the features of the target candidate boxes from the multi-scale feature map and input them into the head network to obtain the target positioning and classification results in the feature learning stage. Figure 2 shown.
[0041] Step 2-1: The backbone network of the Oriented R-CNN model uses LSKNet to extract image features. The network consists of a repeatable stacked module structure, each of which includes a convolution kernel selection submodule and a feedforward network submodule. Among them, the convolution kernel selection submodule dynamically adjusts the receptive field of the network as needed, and consists of a fully connected layer, a GELU activation function, a selective convolution kernel sequence, and a second fully connected layer; the feedforward network submodule is used for channel mixing and feature refinement, and also includes a fully connected layer, a depth-separable convolution layer, a GELU activation function, and a second fully connected layer.
[0042] Step 2-2: Use feature pyramid FPN to concatenate and fuse the 1-5 level feature maps output by the backbone network LSKNet to generate a multi-scale feature map.
[0043] Step 2-3: Perform a sliding window operation on the multi-scale feature map, and preset k horizontal anchor frames with fixed proportions and scales (default k = 9) in the feature image area under each sliding window as the initial detection frame.
[0044] Step 2-4: Input the anchor box and the feature map of the corresponding scale into two parallel convolution branches of the OrientedRPN, namely, a 1×1 convolution branch is used for the classification of the candidate box, and outputs the probability value of the candidate box belonging to the foreground or background; the other 1×1 convolution is used for position regression, and outputs the center coordinate offset value of the candidate box relative to the anchor box.
[0045] Step 2-5: By decoding the regressed center coordinate offset value, the position information of the rotated candidate box is obtained as input for precise positioning.
[0046] Step 2-6: Use the Rotated RoIAlign algorithm to convert the parallelogram candidate box output by the Oriented RPN into a rotated rectangular candidate box of the same size, and map it back to the multi-scale feature map to extract the features of the rotated rectangular candidate box and generate the candidate region feature map.
[0047] Step 2-7: After the candidate region feature map is processed by the two fully connected layers at the head, the regression branch and the classification branch output the results of target box positioning and classification respectively.
[0048] Step 3: Use the sample data set in step 1 to train the basic model Oriented R-CNN in step 2, and iteratively optimize the network in combination with loss calculation to obtain the model training weight results in the feature learning stage.
[0049] Step 3-1: Enhance the samples of the category with a small number of targets in the training set generated in step 1, including color enhancement, random cropping, Copy-Paste and other means, to initially alleviate the learning bias caused by category imbalance.
[0050] Step 3-2: Input the enhanced training sample set into the basic model Oriented R-CNN for training, and evaluate the model accuracy on the validation set. Use the optimization algorithm based on stochastic gradient descent, combined with softmax cross entropy loss to calculate the gradient, iteratively optimize and update the network parameters, and preliminarily obtain the model training weight results in the feature learning stage.
[0051] Step 4: Fix the feature extraction layer of Oriented R-CNN, improve the loss function, and add a feature simulation module to build a detection network for the fine-grained classification learning stage.
[0052] Step 4-1: Improve the foreground candidate box classification loss function in the Oriented R-CNN classification stage to correct the category bias caused by the imbalance of the tail category samples. The optimized loss function is calculated as follows:
[0053] Step 4-1-1: Introduce a pair of complementary long-term and short-term indicators to reflect the learning status of the classifier from two aspects: the degree of preference for different prospect categories and the classification accuracy of each category. Among them, the long-term indicator can capture the classifier's tendency towards different categories and the relationship between categories during the training phase, thereby guiding the realization of classification balance. The commonly used statistical method is the second-order dynamic statistical method, that is, the confusion matrix The calculation formula is as follows;
[0054]
[0055] Where i and j are the foreground categories of the target, and it is assumed that the learning weight of foreground category i is higher than that of foreground category j; n is the target sample, y n,i Represents the unique heat value of the nth sample in category i; is the output probability value that the nth sample belongs to category j; is an indicator function, which outputs 1 if the condition is met, otherwise it outputs 0; i,j is the statistical value between categories i and j; C is the number of foreground categories of the target; k is the foreground category sequence in the range of [1, C], z j 、z k are the model prediction values corresponding to categories j and k.
[0056] Short-term indicators are used to evaluate the correctness of classification results, using the predicted probability vector It indicates that by focusing on the hard-to-classify categories, the classification ability of the model can be improved.
[0057] Step 4-1-2: Based on the long-term and short-term indicators, we designed a foreground classification balance loss function L for the foreground target candidate box to solve the problem of fine-grained recognition difficulty caused by the long tail of the foreground target samples. FCBL (background loss remains unchanged), the calculation formula is as follows:
[0058]
[0059] Among them, L FCBL is the loss value of foreground classification; C is the number of foreground categories of the target; i is the ground truth category label of each foreground candidate box; j is the non-ground truth foreground category (1≤j≤C, j≠i); p i and p C+1 Represents the predicted probability values of foreground and background respectively; p′ j is the probability value of the target box belonging to the non-ground truth foreground category j; w j is an automatically adjustable weight parameter. j and w j The calculation steps are as follows.
[0060] Step 4-1-3: In order to correct the deviation between categories, an adaptive category-aware edge value is introduced between any two foreground categories, which is logarithmically proportional to the long-term index of the corresponding category. For example, for the sampled foreground category i, its edge value δ with another foreground category j is ij It can be calculated by the following formula:
[0061]
[0062] Among them, δ ijis the edge value between foreground category i and another foreground category j, α is the parameter that controls the range of edge value, M i,i and M j,j are the long-term indicator values for prospect categories i and j, respectively.
[0063] Step 4-1-4: Calculate the probability value of the non-ground truth foreground category j of the target box by the following formula:
[0064]
[0065] Among them, p′ j is the probability value that the target box belongs to the non-ground truth foreground category j (1≤j≤C, j≠i), z j is the model prediction value corresponding to category j.
[0066] Step 4-1-5: When calculating the binary cross entropy loss for each non-ground truth foreground category j (1≤j≤C, j≠i), add an automatically adjustable weight parameter w j , the calculation formula is as follows:
[0067]
[0068] Among them, w j is an automatically adjustable weight parameter, is the preset threshold, Indicates the corresponding short-term indicator.
[0069] Weight parameter w j The addition of plays an important role in distinguishing confusing categories and suppressing easy-to-classify categories, which can effectively ensure the loss of misclassified categories. At the same time, the loss of non-ground truth foreground classes with higher probability is increased by setting a threshold This improves the classifier's ability to distinguish between true target categories and similar categories, achieving better classification and recognition effects.
[0070] Step 4-2: Add the feature simulation module to Oriented R-CNN to increase the feature diversity of the tail category targets. The feature simulation module is constructed as follows:
[0071] Step 4-2-1: Fix the feature extraction part of Oriented R-CNN in step 2 That is, the backbone network, feature pyramid, rotation region feature alignment structure, etc.
[0072] Step 4-2-2: Traverse all target samples, for the true target box b of category i GT = [x, y, w, h, θ], calculate the bounding box after position transformation Among them, x, y are the center coordinates of the real target frame, w, h are the length and width of the real target frame, θ is the rotation angle of the real target frame, and the random number η j ∈[-1,1](j=1,2,3,4,5). Iterate N times to generate N different sets of η j (j=1,2,3,4,5), you can get N transformed border information.
[0073] Step 4-2-3: N transformed borders Input the feature extraction part of the network one by one, that is, Get the feature information of each transformed target box.
[0074] Step 4-2-4: Traverse all categories and calculate the mean u of all features h belonging to each category i i and variance v i , and use the exponential moving average function to change the corresponding origin μ i and deviation σ i , that is, μ i ←βμ i +(1-β)u i , σ i ←βσ i +(1-β)v i .
[0075] Step 4-2-5: Randomly select c categories, and for each category i, Continuously generate new feature distributions, repeat m times to generate m simulated features. i is the target feature distribution of the generated category i, μ i is the target feature origin of category i, σ i is the target feature deviation of category i, ∈ is a random tensor, represents a random tensor that follows a normal distribution with mean 0 and variance 1, and ⊙ is a tensor multiplication operation.
[0076] Step 5: Input the sample data set in step 1 into the detection network in step 4, use the training results of step 3 as the initial weight of the model, combine the validation set accuracy and loss calculation to iteratively optimize the network, and obtain the final trained model.
[0077] Step 5-1: Perform horizontal flipping and scale enhancement processing on the training set samples generated in step 1 to improve the diversity of target features.
[0078] Step 5-2: Input the enhanced sample data into the detection network of step 4, initialize the model with the training results of step 3, and execute the training process after setting a series of hyperparameters.
[0079] Step 5-3: Evaluate the results of model training through the validation set accuracy and loss value, and iteratively optimize the network until the model indicators meet the requirements to obtain the final trained model.
[0080] Step 6: Use the model trained in step 5 to perform inference and obtain fine-grained target detection results of remote sensing images.
[0081] Step 6-1: The remote sensing image dataset to be processed is used as input and passed into the trained detection model.
[0082] Step 6-2: Use a sliding window method to perform slice reasoning on the large-scale remote sensing image. After merging the results, the detection results of the entire scene image can be obtained, including the location of the target frame and fine-grained attribute information.
[0083] The present embodiment also provides a remote sensing image fine-grained target detection system based on feature balance, which includes: a first module, which is used to perform sample annotation and processing on preset remote sensing image data to obtain a fine-grained target detection sample data set; a second module, which is used to construct a basic model in the feature learning stage; a third module, which is used to train the basic model in the feature learning stage using the fine-grained target detection sample data set, and iteratively optimize the network in combination with a preset loss calculation to obtain the model training weight result in the feature learning stage; a fourth module, which is used to construct a detection network in the fine-grained classification learning stage; a fifth module, which is used to input the fine-grained target detection sample data set into the detection network in the fine-grained classification learning stage, use the model training weight result in the feature learning stage as the initial weight, and iteratively optimize the network in combination with the preset verification set accuracy and loss calculation to obtain a trained detection model; a sixth module, which is used to input the remote sensing image data set to be processed into the trained detection model to obtain the fine-grained target detection result of the remote sensing image.
[0084] In order to solve the problems of classification bias, insufficient expression of tail target category features, and horizontal frame information redundancy in fine-grained target detection in high-resolution satellite images, this embodiment uses high-resolution optical remote sensing satellite images as input, represents the target position and direction information in the form of a rotating frame, and enhances the feature information of the tail category target by designing a feature simulation module and a foreground classification loss function, so as to achieve target positioning and fine-grained recognition more accurately and automatically.
[0085] This embodiment effectively alleviates the problems of sample imbalance and insufficient sample data of the tail target category by optimizing the loss function and adding a feature simulation module, and improves the effect of fine-grained target detection; this embodiment is suitable for different application scenarios and different types of land objects, and has strong universality and adaptability.
[0086] Although the present invention has been disclosed as above in the form of a preferred embodiment, it is not intended to limit the present invention. Any person skilled in the art may make possible changes and modifications to the technical solution of the present invention by using the methods and technical contents disclosed above without departing from the spirit and scope of the present invention. Therefore, any simple modifications, equivalent changes and modifications made to the above embodiments based on the technical essence of the present invention without departing from the content of the technical solution of the present invention shall fall within the protection scope of the technical solution of the present invention.
Claims
1. A remote sensing image fine-grained target detection method based on feature balance, characterized in that include: The preset remote sensing image data is labeled and processed to obtain a fine-grained target detection sample data set; Construct the basic model of the feature learning phase; The basic model of the feature learning stage is trained using a fine-grained target detection sample data set to obtain the model training weight results of the feature learning stage; Construct a detection network for the fine-grained classification learning phase; The fine-grained target detection sample data set is input into the detection network in the fine-grained classification learning phase, and the model training weight result in the feature learning phase is used as the initial weight to obtain a trained detection model; The remote sensing image dataset to be processed is input into the trained detection model to obtain the fine-grained target detection results of the remote sensing image.
2. The method for fine-grained target detection in remote sensing images based on feature balance according to claim 1, characterized in that: The preset remote sensing image data is labeled and processed to obtain a fine-grained target detection sample data set including: The preset remote sensing image data and preset expert experience knowledge are used to construct a classification system of fine-grained targets, sample collection specifications and interpretation sign manuals; Based on the classification system of fine-grained targets, sample collection specifications and interpretation sign manual, the target location and attribute information in the image are marked in the form of a rotating rectangular frame; Slice the labeled images to form a preliminary sample data set; The preliminary sample data set is cleaned and quality inspected again to obtain a fine-grained target detection sample data set.
3. The method for fine-grained target detection in remote sensing images based on feature balance according to claim 1, characterized in that: The basic models for constructing the feature learning phase include: A multi-scale feature map is obtained through the backbone network and feature pyramid; the multi-scale feature map is used as the input of the directional region proposal generation network to generate a series of target candidate boxes with directions; then the rotation region feature alignment algorithm is used to extract the features of the target candidate boxes from the multi-scale feature map and input them into the head network to obtain the target positioning and classification results in the feature learning stage.
4. The method for fine-grained target detection in remote sensing images based on feature balance according to claim 3 is characterized in that: The backbone network of the basic model in the feature learning stage consists of a repeatedly stacked module structure, each module includes a convolution kernel selection submodule and a feedforward network submodule; the convolution kernel selection submodule dynamically adjusts the receptive field of the network as needed, and the convolution kernel selection submodule consists of a fully connected layer, a GELU activation function, a selective convolution kernel sequence and a second fully connected layer; the feedforward network submodule is used for channel mixing and feature refinement, and the feedforward network submodule includes a fully connected layer, a depth-separable convolution layer, a GELU activation function and a second fully connected layer.
5. The method for fine-grained target detection in remote sensing images based on feature balance according to claim 1, characterized in that: Building a detection network for the fine-grained classification learning phase includes: Improve the foreground candidate box classification loss function in the detection network classification stage of the fine-grained classification learning stage to correct the category bias caused by the imbalance of tail category samples; A feature simulation module is added to the detection network in the fine-grained classification learning stage to increase the feature diversity of tail category objects.
6. A remote sensing image fine-grained target detection system based on feature balance, characterized in that include: The first module is used to label and process the preset remote sensing image data to obtain a fine-grained target detection sample data set; The second module is used to build the basic model of the feature learning stage; The third module is used to train the basic model in the feature learning stage using the fine-grained target detection sample data set to obtain the model training weight result in the feature learning stage; The fourth module is used to build the detection network in the fine-grained classification learning stage; The fifth module is used to input the fine-grained target detection sample data set into the detection network of the fine-grained classification learning stage, use the model training weight result of the feature learning stage as the initial weight, and obtain the trained detection model; The sixth module is used to input the remote sensing image data set to be processed into the trained detection model to obtain the target fine-grained detection results of the remote sensing image.
7. The remote sensing image fine-grained target detection system based on feature balance according to claim 6, characterized in that: The preset remote sensing image data is labeled and processed to obtain a fine-grained target detection sample data set including: The preset remote sensing image data and preset expert experience knowledge are used to construct a classification system of fine-grained targets, sample collection specifications and interpretation sign manuals; Based on the classification system of fine-grained targets, sample collection specifications and interpretation manuals, the target location and attribute information in the image are marked in the form of a rotating rectangular frame; Slice the labeled images to form a preliminary sample data set; The preliminary sample data set is cleaned and quality inspected again to obtain a fine-grained target detection sample data set.
8. The remote sensing image fine-grained target detection system based on feature balance according to claim 6, characterized in that: The basic models for constructing the feature learning phase include: A multi-scale feature map is obtained through the backbone network and feature pyramid; the multi-scale feature map is used as the input of the directional region proposal generation network to generate a series of target candidate boxes with directions; then the rotation region feature alignment algorithm is used to extract the features of the target candidate boxes from the multi-scale feature map and input them into the head network to obtain the target positioning and classification results in the feature learning stage.
9. The remote sensing image fine-grained target detection system based on feature balance according to claim 8, characterized in that: The backbone network of the basic model in the feature learning stage consists of a repeatedly stacked module structure, each module includes a convolution kernel selection submodule and a feedforward network submodule; the convolution kernel selection submodule dynamically adjusts the receptive field of the network as needed, and the convolution kernel selection submodule consists of a fully connected layer, a GELU activation function, a selective convolution kernel sequence and a second fully connected layer; the feedforward network submodule is used for channel mixing and feature refinement, and the feedforward network submodule includes a fully connected layer, a depth-separable convolution layer, a GELU activation function and a second fully connected layer.
10. The remote sensing image fine-grained target detection system based on feature balance according to claim 6, characterized in that: Building a detection network for the fine-grained classification learning phase includes: Improve the foreground candidate box classification loss function in the detection network classification stage of the fine-grained classification learning stage to correct the category bias caused by the imbalance of tail category samples; A feature simulation module is added to the detection network in the fine-grained classification learning stage to increase the feature diversity of tail category objects.
Citation Information
Cited By
Method and device for detecting fine-grained target of SAR (Synthetic Aperture Radar) image based on instance feature enhancement
CN119516166A
Single-stage fine-grained target detection method and device based on remote sensing image
CN119992334A
Building emergency monitoring method and system based on remote sensing image
CN120107801A
