A remote sensing small target recognition method, system, device and medium based on CoordConv and YOLOv5
By adding the small target detection head and Coord_C3 module to the YOLOv5 network, the problem of low detection accuracy of small targets in remote sensing images is solved, high-precision and robust remote sensing small target recognition is achieved, and the multi-scale detection capability of the model is enhanced.
Patent Information
- Application Number
- CN202310983129.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-07
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2043-08-07
AI Technical Summary
The existing technology has low detection accuracy for small targets in remote sensing images, and fails to effectively consider the spatial location information of features, resulting in frequent missed detections and false detections.
A detection head for small target detection is added to the YOLOv5 network, and the CoordConv module is introduced to extract the spatial position information of features. The Coord_C3 module is constructed, combined with CSPDarknet53 and the spatial pyramid pooling structure, to improve the target recognition accuracy of the model.
By adding the detection head and Coord_C3 module, the network's multi-scale target detection capability is expanded, the detection accuracy and recognition rate of small targets are improved, and the robustness and generalization ability of the model are enhanced.
Smart Images

Figure CN117152625B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of deep learning remote sensing target recognition, and specifically relates to a remote sensing small target recognition method, system, equipment and medium based on CoordConv and YOLOv5. Background Art
[0002] Remote sensing target detection is a frontier and hot topic in current target detection. It has important significance and applications in vehicle detection, long-range target tracking, unmanned driving, aerial reconnaissance, military, navigation, salvage, etc. Remote sensing images are affected by factors such as altitude, light intensity, shadows, and the characteristics of dense distribution of targets, small scale and complex background in remote sensing images make remote sensing target detection difficult. Therefore, it is very important to improve the effect of remote sensing target detection, which is also the basis for subsequent advanced visual tasks such as video recognition and trajectory tracking.
[0003] With the rapid development of science and technology and remote sensing technology, the quantity and quality of remote sensing images have been continuously improved, providing strong data support for remote sensing target detection. The research on target detection of remote sensing images is a key technology in both military and civilian applications and has engineering application value. Therefore, how to accurately, quickly and effectively extract useful information from complex remote sensing images has become particularly important, making the detection technology of specific targets in remote sensing images a research hotspot in recent years.
[0004] Traditional target detection mainly uses methods such as Histogram of Oriented Gradient (HOG), AdaBoost algorithm framework and Support Vector Machine (SVM) in machine learning. It selects candidate image regions, uses a sliding window to frame a part of the detection image, and then uses a pre-designed feature extraction frame to complete feature extraction. Finally, it performs classification detection through methods such as Support Vector Machine and Deformable Part Model (DPM). Since most of the feature information extracted by traditional algorithms is shallow, it expresses less information, has weak robustness and generalization, and has high detection time complexity. Target detection algorithms based on deep learning can be divided into two major categories: dual-stage and single-stage. The dual-stage target detection algorithm needs to first go through the stage of generating a large number of candidate frames by the algorithm before entering the target detection stage of candidate frame correction and screening. The advantage is high detection accuracy, but it is slower than the single-stage algorithm; the single-stage target detection algorithm only needs one calculation to locate the target for detection. The advantage is fast detection speed, but it is lower in accuracy than the dual-stage algorithm. Among the single-stage target detection algorithms, the YOLO series algorithm is the most widely used.
[0005] At present, a remote sensing target recognition method based on YOLO has been proposed. In the patent application with publication number CN114998756A, a remote sensing image detection method, device and storage medium based on YOLO V5 is disclosed. The method first obtains remote sensing images of uniform size to form a remote sensing image data set, obtains the detection target annotation result image of each remote sensing image, and thus obtains a remote sensing image sample set, wherein the samples in the remote sensing image sample set include remote sensing images and detection target annotation result images matching the remote sensing images; the samples in the remote sensing image sample set are randomly divided into a training set and a test set according to a preset ratio; then, based on the sample data in the training set and the test set, the improved YOLO V5 model is trained, and the improved YOLO V5 model includes a feature extraction module, a CBAM module, a feature fusion module and a classification output module; finally, the target detection is performed on the remote sensing image based on the trained improved YOLO V5 model. This invention improves the accuracy of target detection in remote sensing images by combining YOLOv5 with the CBAM module; however, this method does not have a detection head for small targets, so the detection accuracy for small and dense targets is still low.
[0006] In the patent application with publication number CN115497005A, a YOLOV4 remote sensing target detection method integrating feature transfer and attention mechanism is disclosed. The method preprocesses remote sensing image data through the Mosaic data enhancement method; constructs a YOLOV4 remote sensing target detection model integrating feature transfer and attention mechanism; inputs the remote sensing data into the model for training; obtains the remote sensing image to be detected, and preprocesses the remote sensing image to a uniform size; inputs the processed remote sensing image into the trained target detection model for detection, and outputs the detection result, i.e., the bounding box position and target category of the remote sensing target in the image to be detected. The invention improves the accuracy of remote sensing target detection by combining YOLOv4 with the attention mechanism; however, the method does not take into account the spatial position information of the features when extracting features, so the target detection accuracy is still low.
[0007] In summary, the prior art has the following defects and deficiencies:
[0008] 1. Since the number of small target pixels in remote sensing images is less than that in ordinary images, and the existing technology is mainly aimed at remote sensing large target detection, there is no detection head suitable for small target detection, which leads to missed detection and false detection of remote sensing small targets;
[0009] 2. The existing technology is based on the YOLO series. It realizes the detection of small targets by adding attention modules and feature fusion modules, but does not take into account the spatial position information of the features, resulting in low target detection accuracy. Summary of the invention
[0010] In order to overcome the shortcomings of the above-mentioned prior art, the purpose of the present invention is to provide a remote sensing small target recognition method, system, device and medium based on CoordConv and YOLOv5. Firstly, a detection head for small target detection is added to the YOLOv5 network to improve the detection and recognition rate of small targets; based on coordinate convolution (CoordConv), a Coord_C3 module is proposed, which can obtain the spatial position information of the feature while extracting the feature semantic information, thereby improving the target recognition accuracy of the model; the present invention effectively obtains the spatial position information of the feature by integrating the deep learning remote sensing target recognition method of the Coord_C3 module, thereby improving the recognition accuracy of remote sensing dense small targets.
[0011] In order to achieve the above object, the technical solution adopted by the present invention is:
[0012] A remote sensing small target recognition method based on CoordConv and YOLOv5, comprising the following steps:
[0013] Step 1: Obtain a remote sensing data set; preprocess the remote sensing data set to obtain a training set, a validation set, and a test set, and use the K-means clustering algorithm to cluster the training set to obtain the optimal anchor box size;
[0014] Step 2: Build a remote sensing small target recognition network based on CoordConv and YOLOv5;
[0015] Step 3: Set network training parameters;
[0016] Step 4: According to the network training parameters set in step 3, the remote sensing small target recognition network based on CoordConv and YOLOv5 constructed in step 2 is trained using the training set obtained in step 1 and the optimal anchor frame size of the training set. After each round of training, a training weight file is obtained; the training weight file is verified by the verification set obtained in step 1, and the training weight file with the highest accuracy is selected as the optimal weight file;
[0017] Step 5: Input the test set obtained in step 1 and the optimal weight file obtained in step 4 into the remote sensing small target recognition network based on CoordConv and YOLOv5 trained in step 4 for target recognition to obtain the target recognition result.
[0018] The implementation method of step 1 includes:
[0019] Step 101: Obtain a remote sensing data set: obtain a remote sensing image data set I from a satellite, the remote sensing image data set I includes an original remote sensing image data set R and a remote sensing image label data set L, I = {R, L};
[0020] Step 102: Divide the data set: Divide the remote sensing image data set I obtained in step 101 into training set I train = {R train ,L train}、Validation set I val = {R val ,L val} and test set I test = {R test ,L test};
[0021] Step 103: Dataset enhancement: The training set I in step 102 train = {R train ,L train}Perform image resizing and data augmentation operations to obtain an enhanced training set
[0022] Step 104: Anchor box optimization: Use the K-means clustering algorithm to optimize the enhanced training set in step 103 In The anchor box is optimized to obtain the optimal anchor box size.
[0023] The remote sensing small target recognition network based on CoordConv and YOLOv5 in step 2 includes a backbone network Backbone, a neck network Neck and a detection head Head;
[0024] The backbone network Backbone uses CSPDarket53 as the basic network, including a series of CBS structure, Coord_C3 structure and spatial pyramid pooling structure SPPF, the CBS structure includes a convolution layer conv, batch normalization BN and activation function SiLU; the Coord_C3 structure includes coordinate feature extraction CoordCBS and a residual structure, the residual structure has a convolution layer conv1*1, batch normalization operation BN and activation function Leaky-relu; the spatial pyramid pooling structure SPPF includes three maximum pooling MaxPool2d with different kernel sizes and two CBS structures;
[0025] The neck network Neck fuses the features of different layers through upsampling and concatenation to extract effective structural information;
[0026] The detection head Head adds a detection head, and adds a detection head to the 23rd layer of the remote sensing small target network based on CoordConv and YOLOv5 to detect small targets.
[0027] The construction of the Coord_C3 module includes:
[0028] Step 201: Construct a CoordCBS module: connect the coordinate convolution module CoorConv, the batch normalization operation BN and the activation function SiLU in series to construct a CoordCBS module. The CoordCBS module is expressed as follows:
[0029] CoordCBS=CoordConv+BN+SiLU
[0030] Step 202: Constructing a Coord_C3 module: Connecting the CoordCBS module obtained in step 201 in series and in parallel with the n bottleneck layers of the bottleneck layer to construct a Coord_C3 module, where n≥3. The Coord_C3 module is expressed as follows:
[0031] Coord_C3 = Concat((CoordCBS + BottleNeck), CoordCBS) + CoordCBS, where Concat(·) represents the concatenation of two or more feature maps, and BottleNeck = Concat((CoordCBS + CoordCBS), CoordCBS)
[0032] The detection heads are four small target detection heads of different scales, which are used to detect targets of different scales.
[0033] In step 3, the following settings are set: training round epoch ≥ 300, batch size batch_size ≥ 16, learning rate ≤ 10 -5 , loss threshold ≤ 0.001, correlation coefficient conf-thres ≤ 0.5, intersection-over-union coefficient iou-thres ≤ 0.5.
[0034] In the step 5, the following settings are made: batch size batch_size ≥ 8, correlation coefficient conf-thres ≤ 0.5, and intersection-over-union coefficient iou-thres ≤ 0.5.
[0035] The present invention also provides a remote sensing small target recognition system based on CoordConv and YOLOv5, comprising:
[0036] Dataset module: used to obtain remote sensing datasets; preprocess the remote sensing datasets to obtain training sets, validation sets, and test sets, and use the K-means clustering algorithm to cluster the training sets to obtain the optimal anchor box size;
[0037] Network construction module: used to build a remote sensing small target recognition network based on CoordConv and YOLOv5, and add a small target detection head to the detection head;
[0038] Network training module: used to train the remote sensing small target recognition network based on CoordConv and YOLOv5 using the training set and the optimal anchor box size of the training set. After each round of training, a training weight file is obtained; the training weight file is verified by the verification set, and the training weight file with the highest accuracy is selected as the optimal weight file.
[0039] The present invention also provides a remote sensing small target recognition device based on CoordConv and YOLOv5, comprising:
[0040] A memory storing a computer program of the remote sensing small target recognition method based on CoordConv and YOLOv5, which is a computer-readable device;
[0041] A processor is used to implement the remote sensing small target recognition method based on CoordConv and YOLOv5 when executing the computer program.
[0042] The present invention also provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, it can implement the remote sensing small target recognition method based on CoordConv and YOLOv5.
[0043] Compared with the prior art, the present invention has the following beneficial effects:
[0044] 1. The present invention adds a detection head for small target detection to the YOLOv5 network, thereby expanding the multi-scale target detection capability of the network and improving the detection accuracy of small targets.
[0045] 2. The present invention replaces the original C3 structure of YOLOv5 with a Coord_C3 structure with spatial position information. CoorConv adds coordinate information to the convolution, so that it has spatial perception ability. The improved network adds spatial position information on the basis of feature semantic information, thereby improving the recognition accuracy of the target.
[0046] In summary, the present invention improves the detection and recognition rate of small targets by adding a detection head for small target detection in the YOLOv5 network; a Coord_C3 module is proposed based on coordinate convolution (CoordConv), which can obtain the spatial position information of the feature while extracting the feature semantic information, thereby improving the target recognition accuracy of the model; the present invention effectively obtains the spatial position information of the feature by integrating the deep learning remote sensing target recognition method of the Coord_C3 module, improves the recognition accuracy of remote sensing dense small targets, and has the advantages of high target recognition accuracy and high algorithm robustness. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] Figure 1 It is a schematic diagram of the principle flow of an embodiment of the present invention.
[0048] Figure 2 It is a YOLOv5 network structure diagram in the prior art.
[0049] Figure 3 It is a diagram of the improved YOLOv5 network structure of the present invention.
[0050] Figure 4 It is the Coord_C3 structure diagram of the present invention.
[0051] Figure 5 is a simulation diagram of the present invention; wherein, Figure 5 (a) is the original remote sensing image, Figure 5 (b) is the image after the object in the original image 5(a) is recognized by using the present invention. DETAILED DESCRIPTION
[0052] The technical solution of the present invention is further described in detail below in conjunction with the accompanying drawings.
[0053] like Figure 1 As shown, a remote sensing small target recognition method based on CoordConv and YOLOv5 includes the following steps:
[0054] Step 1: Read in remote sensing image dataset;
[0055] The remote sensing image dataset is preprocessed and divided into training set, validation set and test set, including image resizing and data enhancement operations to obtain a complete sample dataset. The training set is clustered using the K-means clustering algorithm to obtain the optimal size of the anchor box.
[0056] Step 101: Obtain remote sensing data set: Obtain remote sensing image data set I from a satellite. The remote sensing image data set I includes an original remote sensing image data set R = {R1, R2, ... R n} and remote sensing image label dataset L = {L1, L2, ... L n}, n>6000, I={R,L}, where n represents the nth remote sensing image, and the size of each remote sensing image in R is 512×512;
[0057] Step 102: Divide the data set: Divide the remote sensing image data set I obtained in step 101 into training set I train = {R train ,L train}、Validation set I val = {R val ,L val} and test set I test= {R test ,L test}.
[0058] Step 103: Dataset enhancement: The training set I in step 102 train = {R train ,L train}Perform image resizing and data augmentation operations to obtain an enhanced training set
[0059] Step 104: Anchor box optimization: Use the K-means clustering algorithm to enhance the training set in step 103 In The anchor box is optimized to obtain the optimal anchor box size.
[0060] Among them, the specific steps of the K-means algorithm are:
[0061] Initialization operation: select K data points as the initial centroids. These centroids can be selected randomly or by other methods.
[0062] Assignment operation: assign each data point to the cluster represented by the centroid closest to it;
[0063] Update operation: recalculate the centroid of each cluster by taking the mean of all data points in the cluster as the new centroid;
[0064] Repeat the above assignment and update operations until the centroid no longer changes significantly or the upper limit of the iteration number is reached.
[0065] Step 2: Build a remote sensing small target recognition network based on CoordConv and YOLOv5;
[0066] The remote sensing small target recognition network based on CoordConv and YOLOv5 includes a backbone network Backbone, a neck network Neck and a detection head Head;
[0067] The backbone network Backbone uses CSPDarket53 as the basic network, including a series of CBS structure, Coord_C3 structure and spatial pyramid pooling structure SPPF (Spatial Pyramid Pooling-Fast), the CBS structure includes a convolution layer conv, batch normalization BN and activation function SiLU; the Coord_C3 structure includes coordinate feature extraction CoordCBS and a residual structure, the residual structure has a convolution layer conv1*1, batch normalization operation BN and activation function Leaky-relu; the spatial pyramid pooling structure SPPF includes three maximum pooling MaxPool2d with different kernel sizes and two CBS structures;
[0068] The neck network Neck fuses the features of different layers through upsampling and concatenation to extract effective structural information;
[0069] The detection head Head adds a detection head, and adds a detection head to the 23rd layer of the remote sensing small target network based on CoordConv and YOLOv5 to detect small targets.
[0070] The construction of the Coord_C3 module includes:
[0071] Step 201: Build the CoordCBS module: Figure 4 As shown, the coordinate convolution module CoorConv, batch normalization operation BN and activation function SiLU are connected in series to construct the CoordCBS module, which is expressed as follows:
[0072] CoordCBS=CoordConv+BN+SiLU
[0073] Step 202: Constructing a Coord_C3 module: Connecting the CoordCBS module obtained in step 201 in series and in parallel with the n bottleneck layers of the bottleneck layer to construct a Coord_C3 module, where n≥3. The Coord_C3 module is expressed as follows:
[0074] Coord_C3 = Concat((CoordCBS + BottleNeck), CoordCBS) + CoordCBS, where Concat(·) represents the concatenation of two or more feature maps, and BottleNeck = Concat((CoordCBS + CoordCBS), CoordCBS)
[0075] The detection heads are small target detection heads of four different scales, which are used to detect targets of different scales and sizes, thereby improving the generalization ability of the model and the accuracy of target detection and recognition.
[0076] Step 3: Set network training parameters;
[0077] Set the training round epoch ≥ 300, batch size batch_size ≥ 16, and learning rate ≤ 10 -5 , loss threshold ≤ 0.001, correlation coefficient conf-thres ≤ 0.5, intersection-over-union coefficient iou-thres ≤ 0.5.
[0078] Step 4: According to the network training parameters set in step 3, use the enhanced training set in step 103 The remote sensing small target recognition network based on CoordConv and YOLOv5 constructed in step 2 is trained with the optimal anchor box size of the training set obtained in step 104. After each round of training, a weight file pt is obtained. i , where i represents the number of training rounds; the validation set I obtained in step 102 val = {R val ,L val}For training weight file pt i Perform verification and select the weight file with the highest verification accuracy as the optimal weight file pt;
[0079] Step 5: The test set I obtained in step 102 test = {R test ,L test} and the optimal weight file pt obtained in step 4 are input into the remote sensing small target recognition network based on CoordConv and YOLOv5 trained in step 4 to perform target recognition and obtain the target recognition result.
[0080] Set network test parameters: set batch size batch_size ≥ 8, correlation coefficient conf-thres ≤ 0.5, and intersection-over-union coefficient iou-thres ≤ 0.5.
[0081] like Figure 3 As shown, the present invention also provides a remote sensing small target recognition system based on CoordConv and YOLOv5, comprising:
[0082] Dataset module: used to obtain the remote sensing dataset in step 1; preprocess the remote sensing dataset to obtain the training set, validation set and test set, cluster the training set using the K-means clustering algorithm, and obtain the optimal anchor frame size;
[0083] Network construction module: used to implement the construction of a remote sensing small target recognition network based on CoordConv and YOLOv5 in step 2, and add a small target detection head to the detection head;
[0084] Network training module: used to implement the training set and the optimal anchor frame size of the training set in step 4 to train the remote sensing small target recognition network based on CoordConv and YOLOv5. After each round of training, a training weight file is obtained; the training weight file is verified by the verification set, and the training weight file with the highest accuracy is selected as the optimal weight file.
[0085] The present invention also provides a remote sensing small target recognition device based on CoordConv and YOLOv5, comprising:
[0086] A memory storing a computer program of the remote sensing small target recognition method based on CoordConv and YOLOv5, which is a computer-readable device;
[0087] A processor is used to implement the remote sensing small target recognition method based on CoordConv and YOLOv5 when executing the computer program.
[0088] The present invention also provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, it can implement the remote sensing small target recognition method based on CoordConv and YOLOv5.
[0089] like Figure 2 As shown in the figure, the YOLOv5 network in the prior art consists of three parts. The first part is the input end. The input image is obtained by data enhancement, adaptive anchor box calculation and adaptive image scaling to obtain a 640×640 image. The second part is the backbone network, which uses the CSPDarknet53 network to scale and extract features of the image through the Conv layer and the C3 layer to obtain richer information features. The third part is the neck, which adopts a multi-scale detection method to combine the feature pyramid network structure (FPN) with the top-down path aggregation network structure (PAN) to achieve the purpose of fusing and predicting the feature maps of three different scales of 20×20, 40×40 and 80×80. The network only contains three detection heads of deep features. At the same time, when extracting features, only the semantic information of the features is obtained, so the detection accuracy of small targets is still low.
[0090] like Figure 3As shown in the figure, the improved YOLOv5 network of the present invention consists of three parts. The first part is the input end, including data enhancement and K-means adaptive anchor frame calculation to obtain a 512×512 image; the second part is the backbone network, which uses the CSPDarknet53 network, and scales and extracts features of the image through the CoordCBS layer and the Coord_C3 layer to obtain richer semantic information features and spatial information features; the third part is the neck, which adopts a multi-scale detection method and adds a detection head for small targets to the shallow feature part of the network, so as to achieve the purpose of fusing and predicting the feature maps of four different scales of 10×10, 20×20, 40×40 and 80×80, thereby improving the detection accuracy of small targets.
[0091] The effect of the present invention is further described below in conjunction with simulation experiments:
[0092] 1. Simulation experiment conditions
[0093] The hardware platform of the simulation experiment of the present invention is: the processor is Intel i5-10400F, the main frequency is 2.9GHz, and the running memory is 16G.
[0094] The software platform of the simulation experiment platform of the present invention is: Windows 11 operating system and PyCharm, PyTorch1.11, and CUDA11.3.
[0095] 2. Simulation steps
[0096] The training set of remote sensing images and validation set I val = {R val ,L val} Input into the remote sensing small target recognition network model based on CoordConv and YOLOv5 for optimization training. The training process is: cluster the training set through the K-means clustering algorithm to obtain the optimal size of the anchor frame; the input image will be extracted through the feature extraction network to obtain feature maps of different scales, and then these feature maps will be classified and regressed, and the regression results will be reconstructed to obtain more refined feature maps. On this basis, classification and regression operations are performed again, and the loss is calculated to complete the small target detection based on the present invention. Single-scale training is used in all detections, the image input size is 512×512 pixels, and the number of iterations epoch is set to 300.
[0097] 3. Simulation content and results analysis
[0098] The simulation experiment of the present invention uses the present invention to perform target recognition processing on a remote sensing image containing a small target, and the results are as follows: Figure 5 shown.
[0099] Combine the following Figure 5 The simulation effect of the present invention is further described.
[0100] Figure 5 (a) is the original remote sensing image, Figure 5 (b) is the image after the target in the original image 5(a) is detected and identified using the method of the present invention.
[0101] like Figure 5 As shown in (b), it can be seen that the present invention can clearly and accurately mark the position and size range of small targets in the image in the form of a rectangular box, proving the effectiveness of the Coord_C3 module based on coordinate convolution CoordConv proposed in the present invention; the present invention can also accurately identify the car in the upper right corner of the image and the car in the upper parking space, and there is no misidentification or missed identification, proving the effectiveness of adding a small target detection head to the YOLOv5 network. In summary, the experimental results show that the remote sensing small target recognition method based on CoordConv and YOLOv5 proposed in the present invention can accurately identify small targets in remote sensing images.
Claims
1. A remote sensing small target recognition method based on CoordConv and YOLOv5, characterized by: The following steps are involved: Step 1: Obtain a remote sensing data set; preprocess the remote sensing data set to obtain a training set, a validation set, and a test set, and use the K-means clustering algorithm to cluster the training set to obtain the optimal anchor box size; Step 2: Build a remote sensing small target recognition network based on CoordConv and YOLOv5; The remote sensing small target recognition network based on CoordConv and YOLOv5 includes a backbone network Backbone, a neck network Neck and a detection head Head; The backbone network Backbone uses CSPDarket53 as the basic network, including a series of CBS structure, Coord_C3 structure and spatial pyramid pooling structure SPPF, the CBS structure includes a convolution layer conv, batch normalization BN and activation function SiLU; the Coord_C3 structure includes coordinate feature extraction CoordCBS and a residual structure, the residual structure has a convolution layer conv1*1, batch normalization operation BN and activation function Leaky-relu; the spatial pyramid pooling structure SPPF includes three maximum pooling MaxPool2d with different kernel sizes and two CBS structures; The neck network Neck fuses the features of different layers through upsampling and concatenation to extract effective structural information; The detection head Head, adds a detection head, adds a detection head to the 23rd layer of the remote sensing small target network based on CoordConv and YOLOv5, for detecting small targets; The Coord_C3 structure includes: Step 201: Construct a CoordCBS module: connect the coordinate convolution module CoorConv, the batch normalization operation BN and the activation function SiLU in series to construct a CoordCBS module. The CoordCBS module is expressed as follows: CoordCBS=CoordConv+BN+SiLU Step 202: Constructing a Coord_C3 module: Connecting the CoordCBS module obtained in step 201 in series and in parallel with the n bottleneck layers of the bottleneck layer to construct a Coord_C3 module, where n≥3. The Coord_C3 module is expressed as follows: Coord_C3 = Concat((CoordCBS+BottleNeck),CoordCBS)+CoordCBS, where Concat(·) represents the concatenation of two or more feature maps, and BottleNeck = Concat((CoordCBS+CoordCBS),CoordCBS); Step 3: Set network training parameters; Step 4: According to the network training parameters set in step 3, the remote sensing small target recognition network based on CoordConv and YOLOv5 constructed in step 2 is trained using the training set obtained in step 1 and the optimal anchor frame size of the training set. After each round of training, a training weight file is obtained; the training weight file is verified by the verification set obtained in step 1, and the training weight file with the highest accuracy is selected as the optimal weight file; Step 5: Input the test set obtained in step 1 and the optimal weight file obtained in step 4 into the remote sensing small target recognition network based on CoordConv and YOLOv5 trained in step 4 for target recognition to obtain the target recognition result.
2. A remote sensing small target recognition method based on CoordConv and YOLOv5 according to claim 1, characterized in that: The implementation method of step 1 is: Step 101: Obtain a remote sensing data set: obtain a remote sensing image data set I from a satellite, the remote sensing image data set I includes an original remote sensing image data set R and a remote sensing image label data set L, I = {R, L}; Step 102: Divide the data set: Divide the remote sensing image data set I obtained in step 101 into training set I train = {R train ,L train }、Validation set I val = {R val ,L val } and test set I test = {R test ,L test }; Step 103: Dataset enhancement: The training set I in step 102 train = {R train ,L train }Perform image resizing and data augmentation operations to obtain an enhanced training set Step 104: Anchor box optimization: Use the K-means clustering algorithm to optimize the enhanced training set in step 103 In The anchor box is optimized to obtain the optimal anchor box size.
3. The remote sensing small target recognition method based on CoordConv and YOLOv5 according to claim 1, characterized in that: The detection heads are four small target detection heads of different scales, which are used to detect targets of different scales.
4. The remote sensing small target recognition method based on CoordConv and YOLOv5 according to claim 1, characterized in that: In step 3, the following settings are set: training round epoch ≥ 300, batch size batch_size ≥ 16, learning rate ≤ 10 -5 , loss threshold ≤ 0.001, correlation coefficient conf-thres ≤ 0.5, intersection-over-union coefficient iou-thres ≤ 0.
5.
5. The remote sensing small target recognition method based on CoordConv and YOLOv5 according to claim 1, characterized in that: In the step 5, the following settings are made: batch size batch_size ≥ 8, correlation coefficient conf-thres ≤ 0.5, and intersection-over-union coefficient iou-thres ≤ 0.
5.
6. A remote sensing small target recognition system based on CoordConv and YOLOv5 based on the method according to any one of claims 1 to 5, characterized in that: include: Dataset module: used to obtain remote sensing datasets; The remote sensing data set is preprocessed to obtain the training set, validation set and test set. The training set is clustered using the K-means clustering algorithm to obtain the optimal anchor box size. Network construction module: used to build a remote sensing small target recognition network based on CoordConv and YOLOv5, and add a small target detection head to the detection head; Network training module: used to train the remote sensing small target recognition network based on CoordConv and YOLOv5 using the training set and the optimal anchor box size of the training set. After each round of training, a training weight file is obtained; the training weight file is verified by the verification set, and the training weight file with the highest accuracy is selected as the optimal weight file.
7. A remote sensing small target recognition device based on CoordConv and YOLOv5, characterized by: include: A memory storing a computer program of a remote sensing small target recognition method based on CoordConv and YOLOv5 as described in any one of claims 1 to 5, which is a computer-readable device; A processor, used to implement a remote sensing small target recognition method based on CoordConv and YOLOv5 as described in any one of claims 1 to 5 when executing the computer program.
8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, it can implement a remote sensing small target recognition method based on CoordConv and YOLOv5 as described in any one of claims 1 to 5.
Citation Information
Patent Citations
Rolov5-based remote sensing image detection method and device and storage medium
CN114998756A
YOLOV4 remote sensing target detection method fusing feature transfer and attention mechanism
CN115497005A
YOLOv3-based synchronous end-to-end license plate positioning and recognition method
CN111914839A
SAR image small target identification method based on Center Net2
CN114170196A
Multi-scale underwater fish school detection method based on attention module
CN114170497A
