Cross-scale CNN ship identification method based on edge enhancement

By introducing super-resolution reconstruction, contour information enhancement, attention mechanism and atrous convolution feature enhancement module into the ship recognition algorithm, the problem of low ship recognition accuracy in the existing technology is solved, and higher recognition and recognition are achieved. Cross-scale recognition effects.

CN118570745APending Publication Date: 2024-08-30SHANGHAI OCEAN UNIV
View PDF 0 Cites 3 Cited by

Patent Information

Application Number
CN202410632406.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-21
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

Existing ship recognition algorithms have low recognition accuracy under a variety of mixed data sets. Especially in complex scenes, cross-scale targets and different resolutions, it is difficult to effectively extract image detail features, resulting in poor recognition results.

Method used

The cross-scale CNN method based on edge enhancement is used to extract ship contour features through the pre-processing module of super-resolution reconstruction and contour information enhancement, and the attention mechanism and the cross-scale feature enhancement module based on atrous convolution are introduced into the recognition network. Improve recognition effect.

Benefits of technology

It improves the recognition accuracy of ships and cross-scale targets in low-resolution images, and significantly improves the accuracy of ship recognition, especially in low- and medium-resolution images and dense scenes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118570745A
    Figure CN118570745A
Patent Text Reader

Abstract

The invention discloses a cross-scale CNN ship identification method based on edge enhancement, and belongs to the technical field of computer vision. Comprising the steps that a ship target recognition data set is established, a ship recognition model is constructed, the established model comprises two parts of image preprocessing and network recognition, the recognition network is based on a YOLOX network, an attention mechanism module is added behind each CSPLayer in a backbone network of the recognition network, and a ship target recognition data set is established; a cross-scale feature enhancement module is added between each Concat + Csplayer structure in the neck pyramid network; and completing the training of the ship identification model by using the ship target identification data set. According to the invention, through the preprocessing module combining super-resolution reconstruction and contour information enhancement, ship feature information of medium and low resolution images is improved; an attention mechanism and a cross-scale feature enhancement module are added in a recognition network, high-quality sample features are extracted, cross-scale information is enhanced by obtaining target features from multiple scales, and the target recognition rate is increased.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer vision technology, and in particular to a cross-scale CNN ship recognition method based on edge enhancement. Background Art

[0002] Ships are indispensable means of transportation and military equipment in the ocean. Their detection and identification have always played an important role in maritime transportation, economy, national defense and security. Studies have shown that more than 1 billion people rely on the ocean as their main source of food, and global marine fisheries alone employ 260 million people. About 80% of trade goods are transported by sea. As the carrier of maritime economic activities, it is of great significance to identify and track ships. At the same time, maritime border security is an important part of national defense. By identifying and tracking potential threatening military ships, the monitoring and defense of maritime borders can be strengthened, and national security and territorial integrity can be maintained. Therefore, ship classification, identification and tracking are of great significance to safeguarding the maritime economy and national security. Rapid and accurate identification of the specific types of ships at sea is very helpful for both military and civilian use. It is necessary to effectively detect and identify ship targets in satellite images.

[0003] At present, the research methods of ship recognition and classification are mainly divided into two categories: recognition based on traditional algorithms and recognition based on deep learning. The commonly used traditional algorithms are: template matching-based methods, which identify ships by comparing the similarity between the target image and the predefined template; feature-based methods, such as using geometric features, texture features, frequency domain features, etc. to identify ships. Deep learning is a field that has emerged in machine learning in recent years. It has made breakthrough progress in many types of applications. Ship detection and recognition methods based on deep learning have gradually become a research hotspot. Deep learning technology can automatically learn features from data, has good generalization ability and robustness, and gradually replaces the previous manual feature method to become the first choice for ship detection research.

[0004] Current ship recognition algorithms are often targeted at a specific data set. In data sets with different image mixtures, complex scenes, cross-scale targets, and different resolutions will affect the recognition accuracy. Therefore, it is very important to more effectively extract the detailed features of the image under multiple mixed data sets and retain these features in the network to achieve higher accuracy. Summary of the invention

[0005] In view of the defects of the prior art, the present invention proposes a cross-scale CNN ship recognition method based on edge enhancement, which uses a pre-processing module based on super-resolution reconstruction and contour information enhancement to extract and enhance the ship contour features after super-resolution reconstruction of the image, thereby improving the ship recognition in the low-resolution image. Then, a recognition network that introduces an attention mechanism and a cross-scale feature enhancement module based on dilated convolution is used to further improve the recognition effect.

[0006] In order to achieve the above object, the present invention provides a cross-scale CNN ship recognition method based on edge enhancement, comprising the following steps:

[0007] (1) Collect image data and establish a ship target recognition dataset;

[0008] (2) Constructing a ship recognition model, which includes a preprocessing module and a recognition network; the preprocessing module includes super-resolution reconstruction, edge side window filtering and edge contour extraction; the recognition network is based on the YOLOX network, and an attention mechanism module is added after each convolution block in its backbone network, and a cross-scale feature enhancement module based on dilated convolution is added between each Concat+Csplayer structure in the neck pyramid network;

[0009] (3) using the ship target recognition data set to train the ship recognition model to obtain the trained ship recognition model;

[0010] (4) Obtain an image to be identified and perform image recognition using the ship recognition model.

[0011] Furthermore, the preprocessing module is specifically:

[0012] (2.1) The super-resolution reconstruction uses a three-layer convolutional neural network SRCNN to perform high-resolution fitting on low- and medium-resolution images through nonlinear mapping, and outputs a reconstructed high-resolution image;

[0013] (2.2) The edge side window filtering uses a non-sawtooth step edge type mean filter operator to filter each of the reconstructed high-resolution images, constructs 8 different straight edge and corner edge filter operators to weaken the non-edge pixel information in the target, and outputs a smooth contour image;

[0014] (2.3) The edge contour extraction uses the Sobel operator to extract edge contour information from the smooth contour image, and then performs inter-channel weighted addition of the obtained edge contour information and the original input image to obtain the final pre-processed image.

[0015] Furthermore, when training the ship recognition model, the preprocessing module also includes a cropping and labeling operation before super-resolution reconstruction; that is, the input image is cropped according to the input size of the recognition network to improve the training efficiency, and the ship category to be identified is manually labeled.

[0016] Furthermore, the attention mechanism module adopts the parameter-free attention mechanism SimAM.

[0017] Furthermore, the cross-scale feature enhancement module based on dilated convolution includes dilated convolution kernels with four dilation rates of 1×1, 3×3, 5×5 and 9×9 to form a multi-branch structure;

[0018] The feature map output by the ConCat layer in the original feature pyramid is subjected to the dilated convolution with different expansion rates in the multi-branch structure to extract multi-scale features, and then the feature map is spliced ​​and sent to the Csplayer layer for subsequent operations.

[0019] Furthermore, the step (3) is specifically as follows:

[0020] (3.1) constructing the loss function of the ship recognition model, including: regression loss function, category prediction loss function and confidence loss function;

[0021] Loss final =λ iou Loss Giou (y,y')+λ obj Loss VariFocal (y,y')+λ cls Loss BCE (y,y')

[0022] Where: iou ,λ obj and λ cls Represents the weight parameter, Loss Giou (y, y') represents the regression loss function, which is calculated using the GIOU loss function; Loss VariFocal (y, y') represents the confidence loss function, which is calculated using the Varifocal loss function; Loss BCE (y, y') represents the category prediction loss function, which is calculated using the BCE Loss function;

[0023] (3.2) The ship target recognition data set is used to train the ship recognition model, and AP and mAP are used as model evaluation indicators for evaluation;

[0024] Precision=TP / (TP+FP)

[0025] Recall=TP / (TP+FN)

[0026] Among them: TP represents the number of targets predicted as ship targets and whose true labels are also ship targets; FP represents the number of targets predicted as non-ship targets but whose true labels are ship targets; FN represents the number of targets predicted as non-ship targets but whose true labels are ship targets. A curve is drawn for each category based on Recall and Precision. The area between the curve and the coordinate axis is the AP value. mAP is the average AP of all categories.

[0027] Beneficial effects of the present invention:

[0028] 1. For image data from various sources, a preprocessing module based on super-resolution reconstruction and contour information enhancement is proposed. After super-resolution of the image, the contour features of the ship are extracted and enhanced. Super-resolution reconstruction is performed on blurred images and medium and low-resolution images in the mixed data set. After super-resolution reconstruction, the ship contour features are enhanced through side window filtering to improve the ship recognition in low-resolution images.

[0029] 2. A feature pyramid that introduces spatial dilated convolution is designed. Dilated convolution is used to extract multi-scale features from cross-scale ship targets, and then the obtained multi-scale features are fused to improve the detection effect.

[0030] 3. In the feature extraction process of the backbone network, a parameter-free attention module is added to make the network pay more attention to the high-quality sample features and further improve the recognition rate of ship targets. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] Figure 1 The figure is a flow chart of a cross-scale CNN ship recognition method based on edge enhancement according to an embodiment of the present invention.

[0032] Figure 2 Schematic diagram of the ship identification model structure according to an embodiment of the present invention.

[0033] Figure 3 Schematic diagram of the structure of the preprocessing module of an embodiment of the present invention.

[0034] Figure 4 Schematic diagram of the super-resolution reconstruction structure in the preprocessing module of an embodiment of the present invention.

[0035] Figure 5 It is a side window operator used for extracting edges in the preprocessing module of an embodiment of the present invention.

[0036] Figure 6 This is a structural diagram of the attention mechanism of an embodiment of the present invention.

[0037] Figure 7 Schematic diagram of the structure of a cross-scale feature enhancement module according to an embodiment of the present invention.

[0038] Figure 8It is the expansion kernel of the cross-scale feature enhancement module in the embodiment of the present invention.

[0039] Fig. 9 Schematic diagram of comparing recognition network effects according to an embodiment of the present invention. DETAILED DESCRIPTION

[0040] The present invention will be further explained below in conjunction with the accompanying drawings and embodiments.

[0041] like Figure 1 As shown, the embodiment of the present invention provides a cross-scale CNN ship feature extraction method based on edge enhancement, comprising the following steps:

[0042] S101, collect image data and establish a ship target recognition data set;

[0043] In the embodiment of the present invention, the image data is selected from public data sets, including optical image data sets FGSCR-42, HRSC2016, HRSID, high-resolution SAR image data sets OpenSARShip and SSDD. At the same time, mainstream satellite image data such as GF series satellites and Sentinel series are collected. In other embodiments, the selection of appropriate scenes and corresponding data can also be determined according to the required recognition type task.

[0044] Detailed information of the data set used in the embodiment of the present invention is shown in Table 1.

[0045] Table 1

[0046]

[0047] S102, constructing a ship recognition model, the ship recognition model includes a preprocessing module and a recognition network; the preprocessing module includes super-resolution reconstruction, edge side window filtering and edge contour extraction; the recognition network is based on the YOLOX network, and an attention mechanism module is added after each convolution block in its backbone network, and a cross-scale feature enhancement module based on dilated convolution is added between each Concat+Csplayer structure in the neck pyramid network;

[0048] like Figure 2As shown in the figure, a ship recognition model (Side-YOLOX) is constructed, which consists of a preprocessing module and a recognition network. First, in the preprocessing module, the low-resolution image is reconstructed with super-resolution to enhance the contour information of the ship target in the image. Then, the ship contour features are extracted through side window filtering, and the original image is fused with the contour image to reduce noise and enhance the distinction of the ship. The preprocessed image is then sent to the recognition network, which is based on the YOLOX network. In its backbone network, a parameter-free attention mechanism (SimAM) is added after each CSPLayer layer to adaptively extract key features; the feature pyramid of spatial dilation convolution is used to replace the feature pyramid in the original YOLOX Neck network, that is, a cross-scale feature enhancement module based on dilated convolution is added between each original Concat+Csplayer structure, and the features of different scales and different images are fused through the feature pyramid of spatial dilation convolution.

[0049] like Figure 3 As shown, the preprocessing module is specifically:

[0050] (1) Cropping and labeling: This part is only used for ship recognition model training. The input image used for training is cropped according to the input size of the recognition network, and the ships to be identified are manually labeled.

[0051] (2) Super-resolution reconstruction: The input image is used to perform high-resolution fitting on the low-resolution image through nonlinear mapping using a three-layer convolutional neural network (SRCNN), and the reconstructed high-resolution image is output.

[0052] The three-layer convolutional neural network SRCNN is Figure 4 As shown in the figure. First, a high-resolution image is selected for low-resolution processing, and the generated low-resolution image is used as the training set of the three-layer convolutional neural network SRCNN, and the original high-resolution image is used as the validation set to train the super-resolution reconstruction network. Then the trained network is used to fit the input low-resolution image and reconstruct the output high-resolution image.

[0053] (3) Edge side window filtering: each reconstructed high-resolution image is filtered using a non-sawtooth step edge type mean filter operator.

[0054] Construct 8 different straight edge and corner edge filter operators to weaken the non-edge pixel information in the target, output a smooth contour image, fade the non-edge information, and highlight the contour information. The side window filter operator used is as follows: Figure 5 shown.

[0055] (4) The Sobel operator is used to extract edge contour information from the filtered image, and then the obtained edge contour information is weightedly added with the original input image between channels to obtain a preprocessed image, so that the image can retain the original color, texture and other information as much as possible while enhancing the edge contour information.

[0056] After the preprocessing module, the waves and noise are smoothed while retaining the original information to the greatest extent, further enhancing the ship contour information.

[0057] The recognition network is based on the YOLOX network, including the backbone network (Backbone), the neck pyramid network (Neck) and the detection head (Head). In the backbone network, an attention mechanism module is added after each CSPLayer, and a cross-scale feature enhancement module based on dilated convolution is added between each Concat+Csplayer structure in the neck pyramid network.

[0058] In remote sensing images, there is an imbalance in the number of targets between different categories of ship targets. The number of common ship categories is much higher than that of some rare ship categories. When only a few samples are available, fine-grained visual recognition will encounter difficulties in discovering key discrimination areas. When the number of category samples is too low, the model often finds it difficult to identify the location and type of the ship. At the same time, it will cause overfitting during training, making it difficult for the network to learn the overall distribution of the category or ignore important features, resulting in a decrease in performance. On the other hand, for categories with a large number of samples, the network should also pay more attention to high-quality samples in the image. Therefore, during network training, the network should focus more on the parts of the image that have a greater impact on the results (such as the rare ship samples and high-quality common ship samples mentioned above). Therefore, it is necessary to introduce an attention mechanism module into the network model. An attention mechanism is added after the CSPLayer layer in each Resblock of the YOLOX backbone network. However, adding an attention mechanism will bring additional parameter calculation burden to the network. Considering the effects and computational costs of each attention mechanism, SimAM, which does not require additional parameters, is introduced into the backbone network. Its structure is as follows: Figure 6As shown in the figure, SimAM is based on neuroscience theory. In neuroscience, information-rich neurons usually exhibit different discharge patterns from surrounding neurons and activated neurons inhibit surrounding neurons, which is called spatial inhibition. In other words, neurons with spatial inhibition effects should be given higher importance, and the simplest implementation is to measure the linear separability between a target neuron and other neurons. Therefore, the importance of each neuron is evaluated by optimizing an energy function and deriving its fast closed form solution, and the three-dimensional weights are directly inferred from the currently important neurons (taking into account the spatial and channel dimensions). The features extracted by Resblock with the added attention mechanism contain more critical and important feature information. By learning and selecting important features from the feature map, the classification performance of ships is further improved.

[0059] In ship detection and recognition in complex scenes, there are huge differences between micro-ship targets and giant ship targets. In the feature extraction process of the network, features are often not extracted at the same time. Therefore, a cross-scale feature enhancement module based on dilated convolution is added between each Concat+Csplayer structure in the neck pyramid network. By changing the receptive field size, the multi-scale target detection performance is improved, which not only has good results but also has lower computational costs. Figure 7 As shown in the figure, the cross-scale feature enhancement module based on dilated convolution includes dilated convolution kernels with four dilation rates of 1×1, 3×3, 5×5 and 9×9 to form a multi-branch structure. The feature map output by the ConCat layer in the Concat+Csplayer structure of the original neck pyramid network is input into the cross-scale feature enhancement module based on dilated convolution. Feature maps of different scales are extracted through dilated convolutions with different dilation rates in the multi-branch structure. The feature maps of different scales are then spliced ​​and the spliced ​​new feature maps are sent to the Csplayer layer. Compared with the receptive field of traditional ordinary convolution, in dilated convolution, as the dilation rate increases, the size of the receptive field of feature extraction can easily reach dozens of times the original. By combining the features extracted by dilated convolutions with different dilation rates in multiple branches, the model has better scale diversity and larger receptive field, and can extract both small and giant targets, thereby improving the recognition accuracy of cross-scale targets. In the feature fusion process of the pyramid, multi-scale target features are extracted and fused to improve the problem of low recognition accuracy under cross-scale conditions.

[0060] S103, using the ship target recognition data set to train the ship recognition model to obtain the trained ship recognition model;

[0061] The ship recognition model is trained using the ship target recognition dataset in step S101. The target recognition loss function of the ship recognition model includes regression loss function, category prediction loss and confidence loss. The former is such as IoU loss, and the latter two are such as Cross Entropy Loss loss, Focal Loss loss, etc. In terms of regression loss, we use GIOU loss function to calculate the loss function, where IOU represents the difference in the intersection ratio between the predicted box and the actual box. On this basis, GIoU introduces the minimum closed shape, which allows the predicted box to move as close to the real box as possible when the detection box and the real box do not overlap. Varifocal loss is introduced in the confidence loss, and the weight of high-quality positive samples is increased by using asymmetric training example weighting method. By proportionalizing the loss of negative samples to reduce their loss contribution, the positive samples are weighted by the training target, and the training focus is placed on high-quality positive samples. At the same time, in order to balance the loss between positive examples and negative examples, an adjustable proportional factor is added to the negative loss term. The final loss function can be expressed as follows:

[0062] Loss final =λ iou Loss Giou (y,y')+λ obj Loss VariFocal (y,y')+λ cls Loss BCE (y,y')

[0063] Where: iou ,λ obj and λ cls represents the weight of the corresponding loss function. According to the different importance of different loss functions, in this embodiment of the present invention, λ iou Set to 0.4, λ obj and λ cls Each is set to 0.3.

[0064] For the evaluation indicators of the model, the embodiment of the present invention uses the following indicators: AP (Average precision), that is, average precision and mAP (Mean Average Percision), that is, mean average precision. The former is used to evaluate the accuracy of the model for each category, and the latter is used to evaluate the overall performance of the model. The formulas of these indicators and their derivation processes are as follows:

[0065] Accuracy=(TP+TN) / (TP+FN+FP+TN)

[0066] Precision=TP / (TP+FP)

[0067] Recall=TP / (TP+FN)

[0068]

[0069]

[0070] Among them: TP (True Positive) represents the number of targets predicted as ship targets and whose true labels are also ship targets; TN (True Negative) represents the number of targets predicted as non-ship targets and whose true labels are also non-ship targets; FP (False Positive) represents the number of targets predicted as non-ship targets but whose true labels are ship targets; FN (False Negative) represents the number of targets predicted as non-ship targets but whose true labels are ship targets.

[0071] All model training experiments were conducted on an Intel(R) Core(TM) i9-10920X CPU@3.50GHz, 64GB RAM and NVIDIA GeForce RTX2080Ti 11GB GDDR6X video memory, CUDA version 10.0, Python 3.6 and torch 1.2 environment.

[0072] In the embodiment of the present invention, the optimizer we use is the Adaptive Motion Estimation (Adam) optimizer for model training. Adam can minimize the difference between the network prediction result and the true value. We set the hyperparameters to β1=0.9, β2=0.999 and ε=10-8. The initial learning rate is 10-6. For each set of experiments, we randomly divide the available data into a training set and a test set in a ratio of 8:2, and we train for 500 epochs to obtain the final results.

[0073] S104: Acquire an image to be recognized, and use the ship recognition model to perform image recognition.

[0074] In order to demonstrate the effectiveness of the present invention, we divide the targets in the dataset into five categories: Arleiburke (destroyer), CG51 (cruiser), DDG1000 (Zumwalt), CVN78 (aircraft carrier), and BOAT (civilian ship). We conduct a large number of experiments on the constructed dataset and compare it with the original YOLOX network. Fig. 9 Table 2 lists the specific comparison results:

[0075] Table 2

[0076]

[0077] It can be seen from Table 2 that compared with the original network, the accuracy of the proposed solution in all categories is improved. The accuracy of CVN78 is improved by about 0.15%, the Arleiburke category is improved by about 4.8%, the CG51 category is improved by about 4%, and the BOAT category has the most obvious improvement, from 42.45% to 52.57%, an increase of 10.12%.

[0078] The number of BOAT (civilian vessels) categories in the dataset is very large, and the differences between them are huge. The scales vary greatly from cargo ships to fishing boats, and they are often not detected at the same time in the image. At the same time, for the port scene, civilian ships tend to be densely clustered, which also brings difficulties to network recognition, so there are serious false detections and missed detections. In the low and medium resolution images, the category features of CG51 and Arleiburke are often indistinguishable and very easy to confuse. The scheme of the present invention has achieved good results in these three categories by adding an attention mechanism module, a cross-scale feature enhancement module and a contour enhancement module, indicating that the scheme of the present invention has higher accuracy for low and medium resolution images, and also achieves better results in dense scenes and cross-scale scenes, suppressing some false detection results and identifying a large number of targets that were previously missed by the network.

[0079] In summary, the solution of the present invention alleviates the difficulty of feature information extraction caused by resolution problems, cross-scale problems, etc., and improves the overall performance in the ship identification task.

[0080] In order to study the contributions of the three key modules of the attention mechanism module, the cross-scale feature enhancement module and the contour enhancement module, the embodiment of the present invention conducted an ablation experiment on the model on the data set. The results are shown in Table 3. Table 3 provides a detailed display of the experimental results under different modules. Scheme 1 only adds the attention mechanism module to the original model. It aims to study the improvement of accuracy by the model's selection of features. On this basis, Scheme 2 adds a cross-scale feature enhancement module. It aims to study the role of improving the receptive field through spatial dilation convolution in the feature pyramid. Scheme 3 combines the above three modules to further enhance the ship contour features on the basis of Scheme 2.

[0081] Table 3:

[0082]

[0083] We first examine the impact of the attention mechanism on the model. The above table shows that after using the attention mechanism (attention), the mean average precision of the model is about 1.9% higher than that of the original network, indicating that by focusing the model on high-quality samples, the recognition accuracy of the network can be effectively improved. Secondly, by adding spatial dilation convolution (receptive field) on this basis, the mean average precision of the model is again 1.41% higher, which shows that the introduction of feature pyramid by spatial dilation convolution effectively enhances the fusion of features of ship targets of different sizes. Finally, the results of scheme 3 show that by preprocessing the image before inputting it into the model (contour enhancement), the feature information of ship contours in medium and low resolution images is enhanced, which is conducive to the backbone network to extract more detailed features during feature extraction.

[0084] From the qualitative results of the ablation experiments, it can be inferred that the overall performance of the model combining the above modules is superior. However, since these three key components show different degrees of improvement in the ship recognition task, significant performance improvements are achieved by combining these key modules in turn.

[0085] It should be understood that the parts not elaborated in detail in this application belong to the prior art. The above description of the preferred embodiment is relatively detailed, and it cannot be considered as limiting the scope of protection of the patent of this application. Under the enlightenment of the present invention, ordinary technicians in this field can also make substitutions or deformations without departing from the scope of protection of the claims of this application, which fall within the scope of protection of this application. The scope of protection requested in this application shall be based on the attached claims.

Claims

1. A cross-scale CNN ship recognition method based on edge enhancement, characterized in that: The steps include: (1) Collect image data and establish a ship target recognition dataset; (2) Constructing a ship recognition model, which includes a preprocessing module and a recognition network; the preprocessing module includes super-resolution reconstruction, edge side window filtering and edge contour extraction; the recognition network is based on the YOLOX network, and an attention mechanism module is added after each convolution block in its backbone network, and a cross-scale feature enhancement module based on dilated convolution is added between each Concat+Csplayer structure in the neck pyramid network; (3) using the ship target recognition data set to train the ship recognition model to obtain the trained ship recognition model; (4) Obtain an image to be identified and perform image recognition using the ship recognition model.

2. The cross-scale CNN ship recognition method based on edge enhancement according to claim 1 is characterized in that: The preprocessing module is specifically: (2.1) The super-resolution reconstruction uses a three-layer convolutional neural network SRCNN to perform high-resolution fitting on low- and medium-resolution images through nonlinear mapping, and outputs a reconstructed high-resolution image; (2.2) The edge side window filtering uses a non-sawtooth step edge type mean filter operator to filter each of the reconstructed high-resolution images, constructs 8 different straight edge and corner edge filter operators to weaken the non-edge pixel information in the target, and outputs a smooth contour image; (2.3) The edge contour extraction uses the Sobel operator to extract edge contour information from the smooth contour image, and then performs inter-channel weighted addition of the obtained edge contour information and the original input image to obtain the final pre-processed image.

3. The cross-scale CNN ship recognition method based on edge enhancement according to claim 1 is characterized in that: When training the ship recognition model, the preprocessing module also includes a cropping and labeling operation before super-resolution reconstruction; that is, the input image is cropped according to the input size of the recognition network to improve the training efficiency, and the ship category to be identified is manually labeled.

4. The cross-scale CNN ship recognition method based on edge enhancement according to claim 1 is characterized in that: The attention mechanism module adopts the parameter-free attention mechanism SimAM.

5. The cross-scale CNN ship recognition method based on edge enhancement according to claim 1 is characterized in that: The cross-scale feature enhancement module based on dilated convolution includes dilated convolution kernels with four dilation rates of 1×1, 3×3, 5×5 and 9×9 to form a multi-branch structure; The feature map output by the ConCat layer in the original feature pyramid is subjected to the dilated convolution with different expansion rates in the multi-branch structure to extract multi-scale features, and then the feature map is spliced ​​and sent to the Csplayer layer for subsequent operations.

6. The cross-scale CNN ship recognition method based on edge enhancement according to claim 1 is characterized in that: The step (3) is specifically: (3.1) constructing the loss function of the ship recognition model, including: regression loss function, category prediction loss function and confidence loss function; Loss final =λ iou Loss Giou (y,y')+λ obj Loss VariFocal (y,y')+λ cls Loss BCE (y,y') Where: iou ,λ obj and λ cls Represents the weight parameter, Loss Giou (y, y') represents the regression loss function, which is calculated using the GIOU loss function; Loss VariFocal (y, y') represents the confidence loss function, which is calculated using the Varifocal loss function; Loss BCE (y, y') represents the category prediction loss function, which is calculated using the BCE Loss function; (3.2) The ship target recognition data set is used to train the ship recognition model, and AP and mAP are used as model evaluation indicators for evaluation; Precision=TP / (TP+FP) Recall=TP / (TP+FN) Among them: TP represents the number of targets predicted as ship targets and whose true labels are also ship targets; FP represents the number of targets predicted as non-ship targets but whose true labels are ship targets; FN represents the number of targets predicted as non-ship targets but whose true labels are ship targets. A curve is drawn for each category based on Recall and Precision. The area between the curve and the coordinate axis is the AP value. mAP is the average AP of all categories.

Citation Information

Cited By

  • Ship identification method and system based on high-resolution infrared simulation image

    CN119229303A

  • Road occupation construction detection method, system, equipment, medium and program product

    CN120259982A

  • SAR image ship target identification method and system based on improved NanoDet-Plus

    CN120655888A