A vehicle target detection method based on SSD algorithm

By introducing CBAM, GSE and MSRF modules into the SSD algorithm, the VGG16 network structure is optimized, which solves the problem of low vehicle vehicle target detection accuracy in complex scenarios and achieves efficient and accurate vehicle vehicle target detection.

CN114419600BInactive Publication Date: 2024-09-24HEBEI UNIV OF TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210090867.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-01-26
Publication Date
2024-09-24
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The traditional vehicle vehicle target detection algorithm based on deep learning has poor detection results in complex road scenes, especially when vehicles are densely packed and targets are small, and the accuracy is low, making it difficult to meet the needs of real-time detection.

Method used

A car model target detection network based on the SSD algorithm is designed. By adding CBAM, customized GSE module and MSRF module, and reducing the number of convolutional layers after the backbone part of the VGG16 network, depth-separable convolution and Soft-NMS algorithms are used. , to improve detection accuracy and speed.

Benefits of technology

It significantly improves the accuracy of vehicle target detection in complex scenes, has high detection speed and minimum calculation amount, and is superior to other classic target detection algorithms, especially when detecting occluded targets.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114419600B
    Figure CN114419600B
Patent Text Reader

Abstract

The present invention discloses a vehicle target detection network and detection method based on the SSD algorithm. The detection network first introduces a global semantic extraction module on the basis of the original SSD network, integrates the features of multiple scale feature maps, and then integrates with the features from the low-level features, making full use of global semantic information and position information, thereby improving the accuracy of vehicle target detection; at the same time, a multi-scale receptive field module is designed to increase the network width and depth, and hole convolutions with different spatial intervals are used at the high level of the network to effectively enhance the network feature extraction capability and improve the network's adaptability to target scales. In addition, the number of convolution kernels used in the second half of the backbone network VGG16 and for extracting features of different scales is halved, and the convolution of the feature extraction part is replaced by a depth-separable convolution. After verification by the image data set, the vehicle target detection network designed based on the SSD network of the present invention has the highest detection accuracy with the minimum amount of calculation and parameter.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of intelligent recognition and detection technology, and in particular to a vehicle target detection network and a detection method based on an SSD algorithm. Background Art

[0002] Vehicle type target detection is one of the important directions in the field of computer vision. It is the research basis of many fields such as vehicle tracking and intelligent transportation. It has important research significance and broad application prospects. In scenarios such as obstacle analysis for autonomous driving and vehicle type screening for public security agencies, vehicle type target detection can provide accurate information about various types of vehicles and effectively improve the efficiency of subsequent tasks. In vehicle type target detection tasks, affected by factors such as the complexity of the traffic environment and the driving status of the vehicle, the detection accuracy of traditional algorithms is low, which reduces the effectiveness of vehicle type detection. Therefore, improving the problems of false detection and missed detection in vehicle type target detection and improving accuracy have become hot topics in the field of vehicle type detection.

[0003] At present, vehicle target detection algorithms based on deep learning are mainly divided into two categories. One is a two-stage target detection algorithm, represented by the R-CNN series. This type of algorithm has high detection accuracy, but due to the characteristics of the two-stage network structure, the detection speed is slow and is not suitable for real-time detection. In order to improve the detection speed, researchers have successively proposed another type of fast and real-time single-stage target detection algorithm, such as the SSD series, RFBNet, RetinaNet, YOLO series, etc. The above typical target detection algorithms perform well in general object detection, such as large target detection, close-range road sign detection, and road defect detection.

[0004] Soon after YOLO was released, Liu et al. published the SSD detection algorithm, which is also a single-stage target detection algorithm. The SSD algorithm uses VGG16 as the backbone network. Its detection speed is fast and its accuracy is improved to a certain extent. However, it still has certain defects. In complex road scenes with dense vehicles and small targets, it still has shortcomings such as poor detection effect and low accuracy. Summary of the invention

[0005] In order to overcome the defects of the above-mentioned prior art, the present invention proposes a vehicle target detection network and a detection method based on the SSD algorithm to improve the vehicle target detection accuracy in complex scenes.

[0006] The technical solution adopted by the present invention to solve the above technical problems is to design a vehicle target detection network based on the SSD algorithm, characterized in that the vehicle target detection network is based on the SSD neural network, adds CBAM, and a customized GSE module and MSRF module; and the number of convolution kernels of the convolution layer after the Pool2 layer of the VGG16 network backbone part of the SSD neural network and the four feature extraction modules is halved, and the convolution of the four feature extraction modules is replaced by a depthwise separable convolution; finally, the Soft-NMS method (improved non-maximum suppression algorithm) is used to replace the traditional NMS method.

[0007] Specifically, Feature1 in the output of the two convolutional layers in the backbone part of the VGG16 network is processed in two ways. The first is to directly input Feature1 into the Detector&Classifier layer, and the second is to input Feature1 into CBAM; CBAM inputs the features obtained after processing Feature1 into the first GSE module; Feature2 in the output of the two convolutional layers in the backbone part of the VGG16 network and the outputs of the first three feature extraction modules, Feature3, Feature4, and Feature5, are combined into two groups, Feature2, Feature3, and Feature4 are the first group of features, and Feature3, Feature4, and Feature5 are the second group of features; the first group of features and the output of CBAM are input into the first GSE module, and The second set of features and the output of the first GSE module are input to the second GSE module; the first GSE module processes the two parts of the input, and the output is input to the second GSE module and the Detector&Classifier layer at the same time; the second GSE module processes the two parts of the input, and the output is input to the Detector&Classifier layer; at the same time, the outputs Feature4 and Feature5 of the second and third feature extraction modules are processed by an MSRF module respectively, and the outputs of the MSRF module are input to the Detector&Classifier layer, and the output Feature6 of the fourth feature extraction module is directly input to the Detector&Classifier layer; finally, in post-processing, Soft-NMS is used instead of the original NMS algorithm to detect occluded targets.

[0008] The input of the GSE module consists of two parts, namely a set of features consisting of three feature maps and features from another layer. When processing a set of input features, the GSE module first uses 1×1 convolution to perform dimensionality increase on two of the feature maps with larger scales, and then uses transposed convolution to upsample the two feature maps with smaller scales to the scale of the lowest layer. The three processed feature maps are then concatenated in the fourth dimension, the time dimension, and the positions of the channel and time dimensions are swapped to obtain a 4-dimensional feature map with dimensions C×T×W×H. The 4-dimensional feature map is then convolved using a 3D convolutional network, and the first two dimensions are merged to restore it to a 3D feature map with a size of C×W×H. Finally, the other input of the GSE module is downsampled and concatenated with the above-restored 3D feature map and a 2D convolution is performed to obtain a new feature layer containing shallow features and global context information.

[0009] The MSRF module includes four branches, among which the first layer of the first branch is an average pooling layer, and the second layer is a 1×1 convolution layer; the first layers of the second, third, and fourth branches are all 1×1 convolution layers, and the second layers of the three branches are 1×3 convolution layers, 3×1 convolution layers, and 3×3 convolution layers, respectively, and the third layers of the three branches are all 3×3 dilated convolution layers with a rate of 2. The features input to the MSRF module are processed by the four branches of the MSRF module respectively, and then the output of the second layer of the first branch of the MSRF module and the output of the third layer of the second, third, and fourth branches are merged to obtain a new feature layer.

[0010] Furthermore, the present invention provides a vehicle target detection method based on the SSD algorithm, characterized in that the method is based on the vehicle target detection network as described above, and the method comprises the following steps:

[0011] Step 1: Prepare the car model dataset

[0012] 1.1 Collect some car model images from BDD100K and KITTI open source datasets;

[0013] 1.2 Use Labelmg annotation tool to annotate the vehicle model images collected in step 1.1;

[0014] 1.3 The vehicle model images marked in step 1.2 are expanded by flipping, mirroring, changing brightness and adding Gaussian white noise to obtain a labeled vehicle model image database;

[0015] 1.4 Randomly divide the labeled vehicle model image database in step 1.3, and divide no less than 60% of it into the training set and the rest into the test set;

[0016] Step 2: Train the vehicle model object detection network

[0017] 2.1 Use the training set to train the vehicle type target detection network

[0018] Prepare the pre-trained weight file of VGG16 on the ImageNet dataset, place the pre-trained weight file in the training code, and load the weights of the partial VGG network used by the SSD neural network; set the training method of freezing training to accelerate the training efficiency and prevent the weights from being damaged; initialize the network parameters of the remaining part of the vehicle type target detection network, input the training set, when Epoch <= 50, train the entire vehicle type target detection network, set BATCH_SIZE = 16, lr = 0.0005; when 50 < Epoch < 100, train the vehicle type target detection network, set BATCH_SIZE = 8, lr = 0.0001; the vehicle type target detection network outputs the predicted class, the offset of the bounding box position, and the offset of the size; calculate the Loss value according to the information predicted by the vehicle type target detection network and the corresponding true label, and adjust the learning rate parameter according to the decrease of the Loss until the model converges and the total number of training rounds ends, then the training of the vehicle type target detection network is completed;

[0019] 2.2 Use the test set to test the vehicle type target detection network trained in step 2.1. When the mAP value of this network is greater than 82.52, then this vehicle type target detection network is an effective network;

[0020] Step 3: Vehicle type target detection

[0021] After normalizing the size of the captured traffic picture to the same size as the pictures in the vehicle type picture database in step 1, input it into the vehicle type target detection network that is tested to be effective in step 2.2, and the position and class of the vehicle type target in this picture can be obtained.

[0022] Compared with the prior art, the vehicle target detection network of the present invention first introduces a global semantic extraction module based on the original SSD network, integrates the features of multiple scale feature maps, and then integrates them with the features from the lower layer, effectively utilizing the advantages of both, making full use of global semantic information and position information, and improving the accuracy of vehicle target detection; at the same time, a multi-scale receptive field module is designed to increase the network width and depth, and hollow convolutions with different spatial intervals are used at the high level of the network to effectively enhance the network feature extraction ability and improve the network's adaptability to target scales. In addition, the number of convolution kernels used in the second half of the backbone network VGG16 and for extracting features of different scales is halved, and the convolution of the feature extraction part is replaced by a depth-separable convolution to obtain a vehicle target detection network. During post-processing, the use of the Soft-NMS algorithm increases the detection accuracy of occluded targets. After verification by the image data set, the vehicle target detection network designed based on the SSD network of the present invention has the highest detection accuracy compared with some other classic target detection algorithms with the minimum amount of calculation and parameters. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] Figure 1 A schematic diagram of the vehicle target detection network structure and principle of an embodiment of the present invention;

[0024] Figure 2 A schematic diagram of the GSE module principle of a vehicle target detection network according to an embodiment of the present invention;

[0025] Figure 3 A schematic diagram of the MSRF module principle of a vehicle target detection network according to an embodiment of the present invention;

[0026] Figure 4 The detection results of a group of car model pictures taken in different environments using the SSD neural network (a group consists of three pictures, corresponding to different light and dark light environments and scenes of different complexity);

[0027] Figure 5 The vehicle target detection network of the present invention is used for Figure 4 Detection results for the same set of vehicle model images in . DETAILED DESCRIPTION

[0028] The specific implementation of the present invention is further described in detail below in conjunction with the accompanying drawings and example diagrams.

[0029] The present invention provides a vehicle type target detection network based on the SSD algorithm, referred to as the vehicle type target detection network for short.

[0030] The SSD neural network is a feature extraction layer based on the backbone of the VGG16 network, and then four feature extraction modules are added. After the input image is processed by the backbone of the VGG16 network and the four feature extraction modules, the output Feature1 (38*38 size) and Feature2 (19*19 size) of the two convolutional layers (Conv4_3, Conv7) in the backbone of the VGG16 network are selected, as well as the output Feature3 (10*10 size), Feature4 (5*5 size), Feature5 (3*3 size), and Feature6 (1*1 size) of the four feature extraction modules. After these six scale feature maps are input into the Detector&Classifier layer (prediction and classification regression layer), they are processed by the NMS algorithm (non-maximum suppression algorithm) to obtain the predicted category and position (this part is the existing technology).

[0031] Table 1 VGG16 network backbone for SSD

[0032] name Number of convolution kernels Convolution kernel size Output size Conv1_1 64 3×3×3 300×300 Conv1_2 64 3×3×64 300×300 Pool1 - - 150×150 Conv2_1 128 3×3×64 150×150 Conv2_2 128 3×3×128 150×150 Pool2 - - 75×75 Conv3_1 256 3×3×128 75×75 Conv3_2 256 3×3×256 75×75 Conv3_3 256 3×3×256 75×75 Pool3 - - 38×38 Conv4_1 512 3×3×256 38×38 Conv4_2 512 3×3×512 38×38 Conv4_3 512 3×3×512 38×38 Pool4 - - 19×19 Conv5_1 512 3×3×512 19×19 Conv5_2 512 3×3×512 19×19 Conv5_3 512 3×3×512 19×19 Pool5(s=1) - - 19×19 Conv6 1024 3×3×512 19×19 Conv7 1024 3×3×512 19×19

[0033] The vehicle target detection network is based on the SSD neural network, and adds CBAM (Convolutional Block Attention Module), as well as a customized GSE (Global Semantic Extraction) module and MSRF (Mult-Scale Receptive Field) module; and the number of convolution kernels of the convolutional layers after the Pool2 layer of the VGG16 network backbone of the SSD neural network (Conv3_1~Conv7, a total of 11 convolutional layers) and the four feature extraction modules is halved, and the convolutions of the four feature extraction modules are replaced by depthwise separable convolutions. Specifically, Feature1 (38*38 size) in the output of the two convolutional layers in the backbone part of the VGG16 network is processed in two ways. The first is to directly input Feature1 into the Detector&Classifier layer, and the second is to input Feature1 into CBAM; CBAM inputs the features obtained after processing Feature1 into the first GSE module; Feature2 (19*19 size) in the output of the two convolutional layers in the backbone part of the VGG16 network and the outputs of the first three feature extraction modules Feature3 (10*10 size), Feature4 (5*5 size), and Feature5 (3*3 size) are combined into two groups, Feature2 (19*19 size), Feature3 (10*10 size), and Feature4 (5*5 size) are the first group of features (Group1), Feature3 (10*10 size), Feature4 (5*5 size) are the second group of features (Group2), and Feature3 (10*10 size), Feature4 (5*5 size) are the third group of features (Group3). *5 size), Feature5 (3*3 size) are the second group of features (Group2); the first group of features and the output of CBAM are input to the first GSE module, and the second group of features and the output of the first GSE module are input to the second GSE module; the first GSE module processes the two parts of the input, and the output obtained is input to the second GSE module and the Detector&Classifier layer at the same time; the second GSE module processes the two parts of the input, and the output obtained is input to the Detector&Classifier layer; at the same time, the outputs of the second and third feature extraction modules, Feature4 (5*5 size) and Feature5 (3*3 size), are processed by an MSRF module respectively, and the outputs of the MSRF module are input to the Detector&Classifier layer, and the output of the fourth feature extraction module, Feature6 (1*1 size), is directly input to the Detector&Classifier layer.Finally, in post-processing, the Soft-NMS algorithm is used instead of the original NMS algorithm to detect the occluded targets.

[0034] The input of the GSE module consists of two parts, namely a set of features consisting of three feature maps and features from another layer (PreLayer); when the GSE module processes a set of input features (three feature maps), it first uses 1×1 convolution (CONV) to perform dimensionality increase operation on two of the feature maps with larger scales, and then uses transposed convolution to upsample (UPSAMPLE) the two feature maps with smaller scales to the scale of the lowest layer. Then the three processed feature maps are concatenated (CONCAT) in the fourth dimension of time, and the positions of the channel and time dimensions are swapped (RESHAPE) to obtain a 4-dimensional feature map with dimensions of C×T×W×H; then a 3D convolutional network (3D CONV) is used to convolve the 4-dimensional feature map, and the first two dimensions are combined to restore the 3D feature map with a size of C×W×H; finally, the other input of the GSE module is downsampled (DOWNSAMPLE) and concatenated (CONCAT) with the above restored 3D feature map and 2D convolution (CONV) is performed to obtain a new feature layer containing shallow features and global context information.

[0035] Working principle and process of GSE module: The input of GSE module consists of two parts, namely the combination of three high-level features (Group1 / Group2) and the features from the previous layer (PreLayer). Its structure is as follows Figure 3 shown.

[0036] When processing high-level feature maps (Group1 / Group2), the GSE module first uses 1×1 convolution to perform dimensionality increase on the two feature maps with larger scales, which can increase the information interaction between channels and increase the nonlinearity of the model. After dimensionality increase, the two feature maps with smaller scales are upsampled to the lowest scale using transposed convolution. Bilinear interpolation is used here to calculate the enlarged features from the four nearest adjacent pixels in the feature map F through linear mapping. The formula for this process is:

[0037]

[0038] Among them, x=[i / λ]+α, y=[j / λ]+β, λ is the upsampling coefficient, [·] and {·} are integers and fractions respectively. Then the three processed feature maps are spliced ​​in the fourth dimension of time, and the positions of the channel and time dimensions are swapped to obtain a 4-dimensional feature map with dimensions of C×T×W×H. Next, use a 3D convolution kernel to convolve this 4-dimensional feature map, set the convolution kernel size of the time dimension to 3, padding to 1, and use a step size of 2 to convert the time dimension from 3 to 1. The first two dimensions are combined to restore the three-dimensional feature map with a size of C×W×H. In the 3D convolutional network, the value of the j-th feature map of the i-th convolution at the (x, y, z) position can be calculated according to the following formula:

[0039]

[0040] in the formula is the activation function, W, H, T, C are the same as described above, x and b are the weight parameters and bias values ​​of the corresponding positions respectively. Finally, the other input of the GSE module is downsampled and concatenated with the above restored 3D feature map (i.e., the Concatenation operation) and a 2D convolution is performed to obtain a new feature layer containing shallow features and global context information.

[0041] The MSRF module includes four branches, among which the first layer of the first branch is an average pooling layer (Avgpooling), and the second layer is a 1×1 convolution layer; the first layers of the second, third, and fourth branches are all 1×1 convolution layers for dimensionality reduction; the second layers of the three are 1×3 convolution layers, 3×1 convolution layers, and 3×3 convolution layers, respectively, which are used to extract features; the third layers of the three are all 3×3, rate 2 hollow convolution layers, which can increase the receptive field and capture multi-scale context information. The features input to the MSRF module (i.e., Input) are processed by the four branches of the MSRF module respectively, and then the output of the second layer of the first branch of the MSRF module and the output of the third layer of the second, third, and fourth branches are combined (i.e., Concatenation operation) to obtain a new feature layer.

[0042] The two feature maps Feature4 (5*5 size) and Feature5 (3*3 size) in the high-level of the SSD model are input into their respective MSRF modules for further feature processing.

[0043] Furthermore, the present invention provides a vehicle target detection method based on an improved SSD algorithm. The method is based on the vehicle target detection network as described above and comprises the following steps:

[0044] Step 1: Prepare the car model dataset

[0045] 1.1 Collect partial vehicle model pictures from the open-source BDD100K and KITTI datasets.

[0046] 1.2 Use the Labellmg annotation tool to annotate the vehicle model pictures collected in step 1.1.

[0047] 1.3 Expand the number of vehicle model pictures by flipping, mirroring, changing brightness, and adding Gaussian white noise to the vehicle model pictures annotated in step 1.2 to obtain a labeled vehicle model picture database.

[0048] 1.4 Randomly divide the labeled vehicle model picture database in step 1.3. Divide no less than 60% of it into the training set, and the remaining part into the test set. In this embodiment, 80% is selected as the training set, and the remaining 20% is the test set.

[0049] Step 2: Train the vehicle model object detection network

[0050] 2.1 Use the training set to train the vehicle model object detection network

[0051] Prepare the pre-trained weight file of VGG16 on the ImageNet dataset, place the pre-trained weight file in the training code, and load the weights of the partial VGG network used by the SSD neural network. Set the training method of freezing training to accelerate the training efficiency and prevent the weights from being damaged. Initialize the network parameters of the remaining part of the vehicle model object detection network, input the training set, when Epoch <= 50, train the entire vehicle model object detection network, set BATCH_SIZE = 16, lr = 0.0005. When 50 < Epoch < 100, train the vehicle model object detection network, set BATCH_SIZE = 8, lr = 0.0001. The vehicle model object detection network outputs the predicted category, the offset of the bounding box position, and the offset of the size. Calculate the Loss value according to the information predicted by the vehicle model object detection network and the corresponding true label, and adjust the learning rate parameter according to the decrease of Loss until the model converges and the total number of training epochs ends, then the training of the vehicle model object detection network is completed.

[0052] 2.2 Use the test set to test the vehicle model object detection network trained in step 2.1. When the mAP value (mean Average Precision, that is, the average value of AP for each category) of this network is greater than the existing classic network structure (refer to Table 2, the maximum value is 82.52), then this vehicle model object detection network is an effective network.

[0053] Step 3: Vehicle model object detection

[0054] After normalizing the size of the captured traffic image to the same size as the image in the vehicle image database in step 1, input it into the vehicle target detection network tested as valid in step 2.2 to obtain the location and category of the vehicle target in the image.

[0055] Table 2 Detection results of different detection models for 5 types of vehicle targets

[0056]

[0057] Table 2 compares the detection speed and average accuracy of different algorithms under their respective backbone network input sizes on the joint datasets of KITTI-Sub and BDD100K-Sub. It can be seen from Table 2 that the vehicle target detection network proposed in the present invention achieves the highest detection accuracy among all models. The vehicle target detection network improves the mAP by 4.43% over the traditional SSD algorithm and by 2.73% over the DSSD algorithm improved based on SSD. At the same time, it improves by 1.61% and 0.51% over Yolov3 and Yolov4 respectively. Thanks to the addition of GSE and MSRF, the vehicle target detection network of the present invention can effectively capture targets of various scales in the image.

[0058] Table 3 Scale comparison of different detection models

[0059] Method Para / M FLOPs / G Faster RCNN 28.316 489.315 SSD 24.150 30.602 DSSD 122.288 37.480 Yolov3 61.545 32.774 Yolov4 63.959 45.282 Vehicle Target Detection Network 20.843 23.231

[0060] Table 3 shows the size of the vehicle model object detection network and other models. In terms of model size, despite the addition of new modules, the network model of the present invention still has a small amount of calculation and parameters due to the adjustment of the model's channels and convolution methods.

[0061] Any matters not described in the present invention are applicable to the prior art.

Claims

1. A vehicle type target detection method based on the SSD algorithm, characterized in that the method is based on a vehicle type target detection network and comprises the following steps: Step 1: Prepare the car model dataset 1.1 Collect partial vehicle images from the open-source BDD100K and KITTI datasets; 1.2 Use the Labellmg annotation tool to annotate the vehicle images collected in step 1.1; 1.3 Expand the number of vehicle images by flipping, mirroring, changing brightness, and adding Gaussian white noise to the vehicle images with annotations completed in step 1.2 to obtain a labeled vehicle image database; 1.4 Randomly divide the labeled vehicle image database in step 1.3, and divide no less than 60% of it into the training set, and the remaining part into the test set; Step 2: Train the vehicle target detection network 2.1 Use the training set to train the vehicle target detection network Prepare the pre-trained weight file of VGG16 on the ImageNet dataset, put the pre-trained weight file into the training code, and load some VGG network weights used by the SSD neural network; Set the training method of freezing training to train the network model, accelerate the training efficiency, and prevent the weights from being damaged; initialize the network parameters of the remaining parts of the vehicle target detection network, input the training set, when Epoch <= 50, train the entire vehicle target detection network, set BATCH_SIZE = 16, lr = 0.0005; when 50 < Epoch < 100, train the vehicle target detection network, set BATCH_SIZE = 8, lr = 0.0001; the vehicle target detection network outputs the predicted class, the offset of the bounding box position, and the offset of the size; calculate the Loss value according to the information predicted by the vehicle target detection network and the corresponding true label, and adjust the learning rate parameter according to the decrease of Loss until the model converges and the total number of training rounds ends, then the training of the vehicle target detection network is completed; 2.2 Use the test set to test the vehicle target detection network trained in step 2.

1. When the mAP value of this network is greater than 82.52, this vehicle target detection network is an effective network; Step 3: Vehicle target detection After normalizing the size of the captured traffic image to the same size as the images in the vehicle image database in step 1, input it into the vehicle target detection network that is tested as effective in step 2.2, and the position and class of the vehicle target in this image can be obtained; The vehicle target detection network is based on the SSD neural network, and adds CBAM, as well as the custom GSE module and MSRF module; and, halve the number of convolutional kernels of the convolutional layer after the Pool2 layer of the VGG16 network backbone of the SSD neural network and the four feature extraction modules, and at the same time replace the convolution of the four feature extraction modules with depthwise separable convolution; Specifically, Feature1 in the output of the two convolutional layers in the backbone part of the VGG16 network is processed in two ways. The first is to directly input Feature1 into the Detector&Classifier layer, and the second is to input Feature1 into CBAM; CBAM inputs the features obtained after processing Feature1 into the first GSE module; Feature2 in the output of the two convolutional layers in the backbone part of the VGG16 network and the outputs of the first three feature extraction modules, Feature3, Feature4, and Feature5, are combined into two groups, Feature2, Feature3, and Feature4 are the first group of features, and Feature3, Feature4, and Feature5 are the second group of features; the first group of features and the output of CBAM are input into the first GSE module, the second set of features and the output of the first GSE module are input to the second GSE module; the first GSE module processes the two parts of the input, and the output obtained is input to the second GSE module and the Detector&Classifier layer at the same time; the second GSE module processes the two parts of the input, and the output obtained is input to the Detector&Classifier layer; at the same time, the outputs Feature4 and Feature5 of the second and third feature extraction modules are processed by an MSRF module respectively, and the outputs of the MSRF module are input to the Detector&Classifier layer, and the output Feature6 of the fourth feature extraction module is directly input to the Detector&Classifier layer; finally, in post-processing, the Soft-NMS algorithm is used instead of the original NMS algorithm; The input of the GSE module consists of two parts, namely a set of features consisting of three feature maps and features from another layer. When processing a set of input features, the GSE module first uses 1×1 convolution to perform dimensionality increase on two of the feature maps with larger scales, and then uses transposed convolution to upsample the two feature maps with smaller scales to the scale of the lowest layer. The three processed feature maps are then concatenated in the fourth dimension, the time dimension, and the positions of the channel and time dimensions are swapped to obtain a 4-dimensional feature map with a dimension of C×T×W×H. The 4-dimensional feature map is then convolved using a 3D convolutional network, and the first two dimensions are combined to restore it to a 3D feature map with a size of C×W×H. Finally, the other input of the GSE module is downsampled and concatenated with the above-restored 3D feature map and a 2D convolution is performed to obtain a new feature layer containing shallow features and global context information. The MSRF module includes four branches, among which the first layer of the first branch is an average pooling layer, and the second layer is a 1×1 convolution layer; the first layers of the second, third and fourth branches are all 1×1 convolution layers, and the second layers of the three are 1×3 convolution layers, 3×1 convolution layers and 3×3 convolution layers respectively, and the third layers of the three are all 3×3 atrous convolution layers with a rate of 2; the features input to the MSRF module are processed by the four branches of the MSRF module respectively, and then the output of the second layer of the first branch of the MSRF module and the output of the third layer of the second, third and fourth branches are merged to obtain a new feature layer.

2. The vehicle type target detection method based on the SSD algorithm according to claim 1 is characterized in that: In step 1, 80% of the vehicle model image database is divided into a training set and the remaining 20% ​​is a test set.