Automobile target detection and fine grit recognition algorithm based on remote sensing image
Through the improved YOLOv7 network, combined with the concentrated feature pyramid CFP-C and the multi-scale module MS, the problem of low vehicle detection efficiency in complex backgrounds in remote sensing image detection is solved, and accurate identification and fine-grained feature extraction of different vehicle types are achieved. Improved detection accuracy and efficiency.
Patent Information
- Application Number
- CN202410858274.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-28
- Publication Date
- 2024-10-01
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing remote sensing image detection algorithms have low detection efficiency in complex backgrounds and cannot accurately distinguish different vehicle types. Moreover, they are affected by hardware equipment, weather, light and other factors, making feature extraction difficult, resulting in reduced detection accuracy.
The improved YOLOv7 network is used, combined with the concentrated feature pyramid CFP-C and the multi-scale module MS, and an efficient attention module and a local global feature pooling module are introduced to reduce background interference, extract multi-scale features, and enhance the recognition ability of different vehicle types.
It improves the accuracy and efficiency of vehicle detection in remote sensing images, reduces background interference, can more accurately identify and distinguish different models of cars, and enhances the ability to extract fine-grained features.
Smart Images

Figure CN118736412A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to target detection in remote sensing images, and specifically to target detection and fine-grained recognition based on remote sensing images. The present invention can accurately distinguish vehicles in remote sensing images, accurately identify vehicles and give labels, and belongs to the field of deep learning. Background Art
[0002] Remote sensing image target detection and scene recognition based on deep learning methods have become important research and development directions in recent years. At present, the convolutional neural network detection method based on deep learning has become the mainstream, including two-stage detection networks, such as R-CNN, Fast R-CNN, Faster R-CNN, etc., and single-stage detection networks, such as the YOLO series and SSD series. However, as the network continues to deepen, the texture and geometric information of small targets in the image will be lost quickly. In response to this series of problems, in 2020, Tang et al. improved the network architecture of the YOLO V3 vehicle image detection algorithm, and the detection accuracy was significantly improved. In 2020, Zhao et al. calculated the loss function of the fully convolutional network and trained the network with calibration data to obtain a network model suitable for detecting aerial vehicles.
[0003] However, these algorithms have some problems, such as too many artificial parameters, large amount of redundant calculations, high time cost, poor robustness, etc. In addition, in complex car detection scenarios, the algorithm's detection efficiency is low and it is unable to correctly distinguish vehicle types. The acquired natural images often contain complex background information and are affected by factors such as hardware equipment, weather, light, and surrounding small objects, which often makes feature extraction difficult. Most cars have similar visual appearance features. Only by finding distinctive local details can the subtle differences between different types of cars be highlighted. Therefore, this method aims to propose a remote sensing image car target detection and fine-grained recognition method based on deep learning to solve the uneven distribution of car data of different categories and accurately identify car types. Summary of the invention
[0004] In view of the above problems, the present invention focuses on remote sensing image automobile target detection and fine-grained recognition technology. Through the background filtering network, the background area of the remote sensing automobile image is quickly filtered out, and the automobile fine-grained classification network is used to detect and distinguish the categories of automobiles. Most algorithms only detect automobile targets without fine-grained classification of automobile targets. In addition, some automobile detection algorithms ignore the interference of background information on features, resulting in reduced detection accuracy. However, problems are prone to occur when using YOLOv7 in remote sensing image automobile target recognition and fine-grained recognition, such as inaccurate automobile detection is easily affected by complex backgrounds, and it is not specific enough when extracting detailed features, making it difficult to distinguish different types of vehicles. Therefore, in the present invention, a remote sensing image automobile target detection and fine-grained recognition algorithm based on deep learning will be adopted, and an improved YOLOv7 will be used as the backbone network. In this way, accurate target detection and classification of different models of automobiles, including sedans, trucks, urban off-road vehicles (SUVs), etc., can be achieved, while reducing interference caused by background.
[0005] The technical solution of the present invention is: a target detection and fine-grained recognition algorithm based on remote sensing images, which is special in that it includes the following steps: In order to solve the problem of complex background information similar to cars, such as roads, buildings, and water bodies, in remote sensing images, the present invention proposes an improved target detection method of YOLOv7, that is, by adding a centralized feature pyramid CFP-C (Centralized Feature Pyramid-Coordinate) in the backbone network. After the feature map output by the backbone network is smoothed by CFP-C, the noise contained in it is suppressed; due to the introduction of the efficient attention module CA (Coordinate attention) in CFP-C, the horizontal and vertical information will be encoded into the channel domain, so the network can achieve a wide range of regional attention without bringing more computational complexity; this solves the problem of low detection efficiency caused by the complex background of car detection in remote sensing images.
[0006] In order to solve the uneven detection performance of vehicles of different scales in the process of remote sensing image automobile target detection, the present invention proposes a new MS (Multi-Scale) module with multi-scale feature fusion. The module aims to enhance the ability of real-time target detection to extract multi-scale features. The new MS module introduces multiple branches, each branch is responsible for processing feature maps of different levels, and extracts multi-scale feature information at different levels at the same time. In this way, the model can more comprehensively identify image targets. This makes the model pay more attention to important features and improves the performance of automobile image detection.
[0007] When recognizing cars in remote sensing images at a fine-grained level, their visual features are difficult to distinguish and their inter-class differences are small, which causes the model's accurate regression box to match an incorrect category during reasoning. To solve this problem, the present invention proposes a new FFP (Local feature and Global feature Pooling) that extracts global features by selecting relevant deep descriptors. The intrinsic relationships between different components are deeply mined to obtain representative local features. This further improves the ability of the remote sensing image car detection network to distinguish different types of cars.
[0008] The establishment of the dataset uses remote sensing satellites, drones or other remote sensing equipment to obtain automobile image data. Images are collected at different times, locations and angles to increase the diversity of the data. The collected images are preprocessed, including denoising, image enhancement, and scale adjustment, to ensure image quality and consistency. The images are labeled, that is, the automobile targets are selected in the image and the corresponding category labels are assigned to each target, such as sedans, trucks, SUVs, etc. The size and diversity of the dataset are increased by applying data augmentation techniques such as rotation, mirroring, and translation to improve the robustness of the training model. The dataset is divided into training sets, validation sets, and test sets, usually divided in a certain proportion, so that different data subsets can be used when training, optimizing, and evaluating the model. The dataset is quality controlled to check the accuracy and consistency of the annotations and exclude low-quality or incorrectly labeled samples. Ensure that the number of samples in each category is relatively balanced, avoid too many or too few categories in the dataset, and avoid the model being biased towards certain categories. BRIEF DESCRIPTION OF THE DRAWINGS
[0009] Figure 1 A basic YOLOv7 overall block diagram provided by the present invention; Figure 2 A feature pyramid CFP-C block diagram provided by the present invention; Figure 3 A novel MS module block diagram provided by the present invention; Figure 4 A new FFP block diagram provided by the present invention; Figure 5 An improved YOLOv7 block diagram provided by the present invention; Figure 6 It is an overall schematic diagram of the present invention. DETAILED DESCRIPTION
[0010] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0011] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art of the present invention. The terms used in the specification of the present invention herein are only for the purpose of describing specific embodiments and are not intended to limit the present application.
[0012] The present invention proposes an improved centralized feature pyramid, that is, adding Coordinate attention to MLP, such as Figure 2 As shown in Figure 2. Considering the limitation of computing power on mobile terminals, the currently popular attention mechanism is mainly Squeeze-and Excitation (SE) attention. It calculates channel attention with the help of 2D global pooling, providing significant performance improvement at a relatively low computational cost. However, SE attention only considers inter-channel information, ignoring the importance of position information in capturing object structure in visual tasks.
[0013] The present invention introduces the Coordinate attention mechanism into the MLP of the centralized feature pyramid CFP, so that the mobile network can participate in large-area calculations while avoiding a large amount of computational overhead. In order to alleviate the loss of car image position information caused by 2D global pooling, the channel attention is decomposed into two parallel one-dimensional feature encoding processes to effectively integrate the spatial coordinate information into the generated attention map. Specifically, the present invention introduces CA and utilizes two one-dimensional global pooling operations to aggregate the vertical and horizontal input features into two independent direction-aware feature maps respectively. The two feature maps embedded with direction-specific information are encoded into two attention maps respectively, each of which captures the long-range dependency of the input feature map along a spatial direction, thereby retaining the position information. The two attention maps are then applied to the input feature map by multiplication to enhance the feature extraction capability and reduce the impact of the background on the car detection process. Through this method, the invention improves the original centralized feature pyramid CFP, named the improved centralized feature pyramid CFP-C, such as Figure 3As shown in the figure, the CFP-C module consists of a lightweight MLP (Multi-Layer Perceptron) connected in parallel with the visual center LVC (Learnable Visual Center). For the MLP in the CFP-C module, its role is to capture global long-term dependencies and retain the position information in the generated attention map. Using this module can obtain more comprehensive and accurate remote sensing image targets with large scale differences, thereby improving target recognition capabilities and classification accuracy, and more accurately locating targets. The process can be expressed by the following formula.
[0014] in For LVC, this module is mainly composed of convolutional layers, fully connected layers, and dictionary encoders. The input features are encoded through the convolutional layer, and the CBR (Conv3×3 BN-ReLU) module with normalized convolution and ReLU activation functions is used to process the encoding and transmit it to the dictionary encoder. The encoder can obtain complete information about the entire encoded image, and then the output of the encoder is fed to the fully connected layer and the convolutional layer to predict the features of the prominent key classes. The use of the LVC module in remote sensing car images can capture the local corner area of the car image. Through this module, the car target that needs to be detected in the remote sensing car image and the background and buildings similar to the car target can be better identified, and the car target that needs to be detected can be better found. In addition, for remote sensing car images, the target that needs to be detected is not necessarily in the center of the image. The cars in the remote sensing car image may be randomly distributed. This module can also consciously adjust the area of concern of the network through learning to avoid missed detection, thereby improving the accuracy of remote sensing car detection. This process can be expressed as: The calculation formula of Z is as shown below: in Finally, by connecting the output results of MLP and LVC in parallel, the network can fully extract the remote sensing car image. In order to enable the network to fully extract the remote sensing car image and reduce the image caused by complex background, such as Figure 3 shown. MS-Block is used to enhance the ability of real-time object detectors to extract multi-scale features of remote sensing vehicle images while maintaining fast inference speed. Figure 3 As shown. is the input feature. Then X is decomposed into n different groups represented as In order to reduce the computational cost, n = 3 is chosen. In addition, each group must go through a reverse bottleneck layer, expressed as , where k is the kernel size, to obtain The mathematical representation can be described as follows: According to the formula, the reverse bottleneck layer is not connected to , but rather allow it to act as a cross-level connection and retain information from the previous layer. Finally, all splits are connected and a 1×1 convolution is applied to interact between all splits, each encoding features at a different scale. This 1×1 convolution is also used to adjust the number of channels as the network goes deeper.
[0015] like Figure 4 As shown, for each image in the database, its global-local perception representation is learned. Specifically, global features are extracted by localization of salient objects, and local features are extracted by the intrinsic correlation of parts. Then, the two-level features are aggregated together to enhance the ability to discriminate subtle differences between fine-grained classes. Similarly, when a query image is given, its global-local perception representation is also learned. Then, a similarity score is designed to measure the correlation between the query and database images. Finally, the candidate objects are returned based on the similarity score to extract detailed features. Therefore, this topic applies this network between RepConv and ImpConv of YOLOv7 to improve the fine-grained recognition ability of remote sensing images for vehicles.
[0016] In order to solve the problem of target recognition in remote sensing car images under complex background environments, the present invention adds a CPF-C module after the SPPCSP module of the YOLOv7 network to reduce the impact of background interference on recognition. Fine-grained recognition of remote sensing car images has always been difficult, mainly due to the lack of image detail information. To this end, the present invention introduces the FFP module to enhance fine-grained recognition capabilities. Accurate recognition of fine targets is achieved by continuously combining local and partial features for extraction. Although the ELAN1 module in YOLOv7 can enhance feature extraction, it greatly increases the amount of calculation. To solve this problem, the present invention replaces ELAN1 with the self-proposed MS-Block module, which greatly reduces the amount of calculation while improving the feature extraction capability, effectively realizing fine remote sensing car target recognition. The specific structure is as follows Figure 5 shown.
[0017] The above-mentioned embodiments only express several implementation methods of the present invention, and the description thereof is relatively specific and detailed, but it cannot be understood as limiting the scope of the invention patent. It should be pointed out that for ordinary technicians in this field, several modifications and improvements can be made without departing from the concept of the present application, which all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be based on the attached claims.
Claims
1. A method for detecting and recognizing automobile targets based on remote sensing images, characterized in that: include: Step 1: Manually annotate the public remote sensing dataset Cars Overhead With Context (COWC), and divide the annotated dataset into a training set and a test set according to a set ratio; preprocess the remote sensing images in the training set to obtain a remote sensing image dataset after data enhancement; Step 2: Building a remote sensing image target detection and fine-grained recognition network, wherein the remote sensing image automobile target detection and fine-grained recognition algorithm network includes a feature extraction module, a channel attention module, a dense and global space pyramid structure module, and a loss function module; Step 3: Pre-train and optimize the network structure and parameters of the remote sensing image automobile target detection and fine-grained recognition algorithm built in step 2; Step 4: Input the preprocessed test set data set into the remote sensing image vehicle target detection and fine-grained recognition algorithm network that has been trained in step 3, and output the accurate classification results of the remote sensing image.
2. The method for detecting and recognizing automobile targets based on remote sensing images according to claim 1, characterized in that: In step 2, the feature extraction module adds a centralized feature pyramid CFP-C to the backbone network; the feature map output by the backbone network is smoothed by CFP-C to suppress the noise contained in it.
3. In the remote sensing image-based automobile target detection and fine-grained recognition algorithm as described in claim 1, the multi-scale feature fusion module in step 2 introduces multiple branches, each branch is responsible for processing feature maps of different levels, and extracts multi-scale feature information at different levels at the same time.
4. In the remote sensing image-based automobile target detection and fine-grained recognition algorithm as described in claim 1, the feature extraction module in step 2 extracts global features by selecting relevant deep descriptors; deeply mines the intrinsic relationship between different components to obtain representative local features, thereby further improving the remote sensing image automobile detection network's ability to distinguish different types of automobiles.
5. The remote sensing image-based automobile target detection and fine-grained recognition algorithm as claimed in claim 1, characterized in that: The loss function in step 2 is the classification loss function, and the formula is as follows: X up =CMLP(GN(DConν(GN(X in ))+X in ))+DConν(GN(X in ))+X in。
Citation Information
Cited By
Wrist image fracture recognition and detection method and system based on improved YOLOv8 network
CN119992603A
