An underwater acoustic target recognition method based on effective receptive field regulation

By constructing the AEU-Net model in underwater acoustic target recognition, and using adaptive size convolution kernels and ERF-Server network branches to regulate the effective receptive field, the problem of insufficient information extraction by deep learning models in complex ocean environments is solved and improved It improves the recognition accuracy and adaptability, reduces the number of parameters, and meets the real-time requirements.

CN118135389BActive Publication Date: 2024-09-24ZHEJIANG UNIV
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202410547532.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-05-06
Publication Date
2024-09-24
Estimated Expiration
2044-05-06

AI Technical Summary

Technical Problem

Existing underwater acoustic target recognition methods are affected by problems such as occlusion, attitude changes, multiple targets, uneven illumination, and noise interference in complex ocean environments. Moreover, the effective receptive field of the deep learning model is insufficient and cannot effectively extract global information.

Method used

An underwater acoustic target recognition method based on effective receptive field regulation is proposed. By constructing the AEU-Net model, using adaptive size convolution kernel and ERF-Server network branch, multi-scale ERF information is extracted and fused, and the convolution kernel is adjusted. The size is adjusted to match the feature map resolution and enhance the global perception of the model.

Benefits of technology

It improves the accuracy and adaptability of underwater acoustic target recognition, significantly reduces the number of parameters, improves real-time performance, and can more effectively extract physical features and global information in underwater acoustic data sets.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118135389B
    Figure CN118135389B
Patent Text Reader

Abstract

The present invention discloses an underwater acoustic target recognition method based on effective receptive field (ERF) regulation. The proposed AEU-Net model has multiple resolution branches, each of which has a separate convolution kernel, and each of which will adaptively adjust the size under the premise of matching the resolution during the training process; the AEU-Net model includes an ERF-Server that can regulate the effective receptive field during the forward propagation process, which has two operations of increasing or decreasing the effective receptive field of the feature map of any specified module. The present invention can capture the acoustic physical information of underwater acoustic target samples in multiple interactive dimensions, and perform feature fusion of effective receptive field information of multiple scales to adapt to sonar image targets of different sizes, and improve the accuracy and recognition speed of underwater acoustic targets.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of ocean underwater target recognition, and in particular to an underwater acoustic target recognition method based on effective receptive field regulation. Background Art

[0002] Underwater acoustic target recognition is essentially an image processing problem. Semantic segmentation models are usually used to predict each pixel of an image based on feature information extracted from the image. Currently, semantic segmentation tasks on mainstream underwater acoustic datasets are mainly affected by complex ocean environments (such as object occlusion, target posture changes, multiple targets, uneven lighting), strong noise interference, and other issues. In addition, the dataset samples for underwater acoustic target recognition contain a large amount of acoustic physics information and are very sensitive to the global perception of the model in space. At present, deep learning-based recognition methods have shown great advantages over time-frequency-based methods in terms of performance indicators and real-time performance, and have become the mainstream method in the field.

[0003] The concept of effective receptive field is proposed relative to the theoretical receptive field. The effective receptive field only accounts for a small part of the theoretical receptive field. As the number of layers increases, the proportion of the model's effective receptive field in the theoretical receptive field decreases, and the shrinking rate of the ratio of the two will also decrease. Therefore, if the number of layers is large, the improvement of the model's ERF will not be significant. At present, there is a lack of research based on deep learning models, especially on effective receptive field vision models, in related fields.

[0004] Most of the existing convolutional vision models are based on the small kernel residual block proposed by ResNet, which is 3*3 in size. This means that even with a very deep number of layers, a large ERF cannot be obtained. In the underwater acoustic target recognition task, since the frequency domain information is evenly distributed in the entire sample, such models used on general datasets cannot extract sufficient and global information. Even if a network with a small kernel, such as the High-Resolution Network (HRNet), obtains better spatial sensitivity through multi-channel interaction and global maintenance of high-resolution representation, it cannot perform well on underwater acoustic target datasets due to insufficient ERF resources. At the same time, in the existing research on multi-channel resolution representation, convolution kernels of different sizes, or directly on the effective receptive field, the main research ideas are based on the respective experiments of these high and low, different-sized representations (feature semantic information) or convolution kernels (feature semantic extraction methods) (for example, HRNet uses 3*3 residual blocks, while RepLKNet does not consider multi-channel resolution fusion), and often achieve good results. However, it is relatively rare to explore the relationship between matching and adaptation for both models at multiple scales. On the other hand, the effectiveness of effective receptive fields has been widely demonstrated in visual models such as vision transformers and swin transformers (ViTs). They perform well in many downstream computer vision tasks, which is believed to be attributed to the large number of parameters carried in the model design, which brings about a partial improvement in the effective receptive field. Summary of the invention

[0005] In view of the shortcomings of the prior art, the present invention proposes an underwater acoustic target recognition method based on effective receptive field regulation. The method is directly designed based on the kernel size that is positively correlated with ERF, and specifically extracts multi-scale ERF information and performs fusion and interaction.

[0006] The specific technical solutions are as follows:

[0007] An underwater acoustic target recognition method based on effective receptive field regulation includes the following steps:

[0008] S1: Build a pixel-by-pixel labeled underwater sonar segmentation image dataset;

[0009] S2: Build and train the AEU-Net model based on U-Net, which is implemented through the following sub-steps:

[0010] S2.1: The information interaction module of the high-resolution network is embedded in each single-resolution module of U-Net, so that each module is expanded into the first and second resolution branches; the original image is downsampled after a preprocessing convolution layer. In the downsampling stage, the first branch output of the previous module is input into the first branch of the corresponding module in the upsampling stage through a skip connection. The judgment basis of the corresponding module is that the resolution of the feature map is the same; the second branch output of the previous module is divided into two paths, one of which is convolved with a residual block with a step size of 1 and used as the first branch input of the next module, and the other is downsampled with a residual block with a step size of 2 at the same time and used as the second branch input of the next module; in the upsampling process, the first branch output of the previous module is input to the first branch of the next module after upsampling, and the first branch output of the previous module is convolved with a residual block with a step size of 1 and used as the second branch input of the next module; the second branch output of each module in the upsampling stage is spliced ​​in the channel dimension, and then passes through a one-dimensional convolution and a fully connected layer in sequence to output the classification label;

[0011] S2.2: The convolution kernel of each branch is reconstructed using channel-by-channel convolution, wherein the channel-by-channel convolution has an adaptive size convolution kernel whose size matches the resolution of the feature map of each branch;

[0012] S2.3: Construct an ERF-Server network branch for realizing skip connection and complete the construction of the AEU-Net model; the ERF-Server network branch includes two operations, U-Serve and D-Serve. For the feature map representation of each module output of the downsampling, after passing through the large-core convolution block of U-Serve, the new semantic information after the effective receptive field ERF is improved; for the feature map representation of each module output of the downsampling, after passing through the residual convolution block of D-Serve with a fixed size of 3*3, the new semantic information after the ERF is reduced is obtained; the upsampling output of the first branch of the previous module of the corresponding module in the upsampling stage, as well as the output of U-Serve and the output of D-Serve, are spliced ​​to the corresponding module in the upsampling stage according to the channel allocation coefficient;

[0013] S2.4: Input the underwater sonar segmentation image dataset into AEU-Net for training to obtain a trained AEU-Net model; during training, the kernel size of the adaptive size convolution kernel is adjusted within the kernel size range preset in the feature map of the current module, and the training goal is to minimize the loss function of the adaptive size convolution kernel;

[0014] S3: Input the underwater sonar segmentation image to be tested into the trained AEU-Net model to obtain the recognition result.

[0015] Furthermore, in S2.2, one convolution kernel of the channel-by-channel convolution is responsible for one channel, one channel is convolved by only one convolution kernel, and the number of feature map channels after the convolution is completed is the same as the number of input channels; the adaptive size convolution kernel controls the size of the kernel through its own loss function.

[0016] Furthermore, the updating logic of the adaptive size convolution kernel loss function during training is as follows: the adaptive size convolution kernel loss function guides the adaptive convolution kernel to select and update the kernel size according to the difference between the predicted pixels of samples of different categories and the pixels in the true labels in each training.

[0017] Based on the update logic of the adaptive size convolution kernel loss function during training, the recognition targets of the underwater sonar segmentation image dataset are artificially divided into two categories: the first target and the second target. If the predicted pixels of the first target are mislocated or insufficiently filled compared with their true labels, the corresponding loss function becomes larger. At this time, the kernel size of the adaptive convolution kernel is increased to reduce the loss function; conversely, if the predicted pixels of the second target are missed or misjudged compared with their true labels, the corresponding loss function becomes larger. At this time, the loss function is reduced by reducing the kernel size of the adaptive convolution kernel. The expression of the loss function is as follows:

[0018]

[0019] In the formula, k p It is the dimensionally normalized value of the size of the adaptive convolution kernel of the current module and the prediction deviation of the first target and the second target.

[0020] Furthermore, the small target prediction deviation is expressed by Hausdorff distance, and the specific formula is as follows:

[0021]

[0022] The large target prediction deviation is expressed by the Dice coefficient, and the specific formula is as follows:

[0023]

[0024] In the formula, A={ a 1 , a 2 , …, a p},B={ b 1 , b 2 , …, b p}, set A is the predicted pixel set, set B is the real label pixel set, and ||ab|| represents the Euclidean distance between two pixels.

[0025] Furthermore, the kernel size of the adaptive convolution kernel is adjusted within the kernel size interval preset in the feature map of the current module, and the kernel size intervals corresponding to the feature maps of different resolutions do not overlap with each other; the kernel size interval is determined by the size function, and the expression is as follows:

[0026] ;

[0027] ;

[0028] In the formula, k m is the median of the kernel size interval of the adaptive convolution kernel, f(r) is the size function, and r is the size represented by the feature map of the current module.

[0029] Furthermore, bilinear interpolation is used for upsampling.

[0030] Furthermore, in S2.3, channel allocation is achieved through a channel allocation coefficient, and the channel allocation coefficient C k It is a preset hyperparameter, a 1*3 vector, each component is between 0 and 1 and the sum is 1, representing the ratio of the three sets of feature maps: D-Serve output, U-Serve output, and the upsampling output of the first branch of the previous module of the corresponding module in the upsampling stage. The number of channels is rounded when allocating.

[0031] Furthermore, in S2.4, the ERF distribution of the feature graph of each module of the entire AEU-Net model is obtained, where the actual ERF is calculated by the size of the adaptive size convolution kernel of each branch and the number of convolution layers it has experienced, and the expression is as follows:

[0032]

[0033] Right now

[0034]

[0035] In the formula, Output pixel value S for the nth convolutional layer n The standard deviation of ; (i, j) is the index of the element in the i-th row and j-th column of the k×k adaptive size convolution kernel; k is the size of the adaptive size convolution kernel for convolving the feature maps of each module of the underwater acoustic target signal, and n is the number of stacked layers of the original image from the input to the current convolution layer.

[0036] An electronic device comprises a memory and one or more processors, wherein the memory stores executable codes, and when the one or more processors execute the executable codes, they are used to implement the underwater acoustic target recognition method based on effective receptive field regulation.

[0037] A computer-readable storage medium stores a program, which, when executed by a processor, implements the underwater acoustic target recognition method based on effective receptive field regulation.

[0038] The beneficial effects of the present invention are:

[0039] (1) The AEU-Net model constructed in the present invention is based on the general models U-Net and HRNet in the field of computer vision. It is specialized for underwater acoustic datasets through an independently designed network branch called ERF-Server. It can make the effective receptive field properties that are originally fixed with the network structure adjustable and trainable. This feature can also be used to enable each module of the model to better extract the physical features in the underwater acoustic dataset, fuse the semantic information of ERFs of various scales from large to small, and achieve recognition accuracy and adaptability for sonar targets of different sizes.

[0040] (2) The structure proposed in the present invention matches the convolution kernel size with the feature map resolution. It can extract richer global information and target shape information in high-resolution representations through large kernels, and extract finer local texture information in low-resolution representations with small kernels, instead of using a relatively large convolution kernel group or a relatively small 3×3 residual speed throughout the network. Compared with the large kernel size group commonly used in standard data sets, it can significantly reduce the number of parameters and increase the training speed while improving performance, so that the model can be applied to scenarios with high real-time requirements such as underwater.

[0041] (3) The AEU-Net model proposed in the present invention has a reconstructed adaptive multi-scale information interaction module. In each resolution module, a matching convolution kernel is used to efficiently extract different information of the current scale, and the feature map semantic information obtained by the two semantic branches U-Serve and D-Serve adjusted by the previous downsampling module through the ERF-Server is supplemented, so that the current size resolution matching semantic information, the global large effective receptive field information, and the global small receptive field information are integrated. Compared with the design of the global large kernel, it can exchange information from the semantic resources and the effective receptive field scale resources with a smaller number of parameters, thereby improving the feature extraction capability of underwater acoustic target images with physical information covering the entire sample image and high requirements for global perception capability. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] Figure 1Flow chart of an underwater acoustic target recognition method based on effective receptive field regulation in an embodiment of the present invention.

[0043] Figure 2 Schematic diagram of the backbone network of AEU-Net constructed in an embodiment of the present invention.

[0044] Figure 3 Schematic diagram of matching between the median of the variable kernel size and the size represented by the feature map in an embodiment of the present invention.

[0045] Figure 4 This is an example comparing the effects of the ERF-Server of the present invention and the prior art.

[0046] Figure 5 Schematic diagram of the fusion details of three-dimensional information of each resolution module during the upsampling process in an embodiment of the present invention.

[0047] Figure 6 Schematic diagram of an electronic device for implementing an underwater acoustic target recognition method based on effective receptive field regulation in an embodiment of the present invention. DETAILED DESCRIPTION

[0048] The present invention will be described in detail below according to the accompanying drawings and preferred embodiments, and the purpose and effect of the present invention will become more clear. The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.

[0049] An underwater acoustic target recognition method based on effective receptive field regulation includes the following steps:

[0050] S1: Build an underwater sonar segmentation image dataset, in which each pixel of each underwater sonar segmentation image has a label.

[0051] At present, the number of data sets in the field of underwater acoustic target recognition is relatively small, and underwater acoustic sonar image target underwater acoustic recognition classification is a challenging problem. In this embodiment, the underwater sonar segmentation image is collected by Tritech Tritech1200i side scan sonar. The collected underwater sonar segmentation image is a two-dimensional matrix form of the original echo intensity information of the side scan sonar, and the image is stored in the format of bmp with a resolution of 12000×8200 pixels.

[0052] S2: Build and train the AEU-Net (Adjustable Effective Receptive Field U-shape Network) model based on the U-shape Network (U-Net).

[0053] like Figure 1 As shown in the figure, AEU-Net includes: downsampling stage, upsampling stage, and ERF-Server network branch; each single resolution module of U-Net is expanded by using the information interaction module of HRNet, so that the original module has two resolution branches, of which the first branch is the original resolution and the second branch is 1 / 2 of the original resolution. After the original image is preprocessed by the convolution layer, it is input into the downsampling stage. The output of each module in the downsampling stage is transmitted to the next module and jumps to the corresponding upsampling module through ERF-Server; ERF-Server specifically refers to the two operations of U-Serve and D-Serve, which work together to obtain the feature representation after the ERF change; in the downsampling stage, each module uses an adaptive size convolution kernel for compensation during the downsampling process. The output of each module in the upsampling stage is spliced ​​in the channel dimension. In this way, each upsampling stage has three sets of feature map sources (i.e., inputs), namely: the output of the sampling on the first branch of the previous module, the output of U-Serve in ERF-Server, and the output of D-Serve in ERF-Server. These three are based on the channel allocation coefficient C k The channel splicing and fusion are performed, and the channel allocation coefficient will give each of the three sets of feature maps a ratio and the sum is 1. Finally, the output of each upsampling module is spliced ​​to obtain the fused features without losing any channels. The fused features contain multi-scale information; finally, one-dimensional convolution is performed and the classification label is output after passing through the fully connected layer to complete the recognition.

[0054] S2 is implemented through the following sub-steps:

[0055] S2.1: The information interaction module of HRNet is embedded into the single resolution module of U-Net (i.e., embedded into each module) to obtain a U-shaped high-resolution feature extraction network with enhanced global information perception ability.

[0056] Specifically, the upsampling stage and the downsampling stage are used as the backbone network. The semantic information recovery of the upsampling stage, the downsampling stage and the skip connection all come from the structure of U-Net itself. U-Net is used to extract the features of the image. Before entering the backbone network, the original image is first input into a preprocessing convolution layer to downsample the resolution to 1 / 4 of the original image size as the initial input of the backbone network. Each module in the downsampling stage gradually reduces the resolution of the feature map by half through a convolution operation with a step size of 2. In this process, the semantic information gradually becomes low-level and abstract as the convolution proceeds. It can increase the robustness to some small perturbations of the input image, such as image translation and rotation, and can also reduce the risk of overfitting, reduce the amount of calculation, and increase the size of the receptive field. The skip connection uses the output of a module in the downsampling stage as the input of the corresponding module (referring to the module with the same resolution) in the upsampling stage.

[0057] After the information interaction module of HRNet is embedded in the single resolution module of U-Net, each module consists of two branches of adjacent resolutions (with a resolution ratio difference of 1 / 2), called the first branch and the second branch. The forward propagation module in each branch is reconstructed by the large-core convolution block, and the semantic information between the adjacent resolution branches is reconstructed in the information interaction mode of HRNet, such as Figure 2 As shown, the resolution is reduced by downsampling the 3*3 residual block and the upscaling is performed by bilinear interpolation.

[0058] like Figure 2 As shown, in this embodiment, module 1 is used as the first single-resolution module, and modules 2 to 7 are referred to in sequence; the downsampling stage includes modules 1 to 4, and the upsampling stage includes modules 4 to 7. The feature map with a resolution of 1 / 4 after the preprocessing convolution layer is divided into two paths, one of which is input into the first branch of module 1 without any operation, and the other is simultaneously downsampled to 1 / 8 (that is, downsampled to half of the original) and input into the second branch of module 1, and the two branches are parallel. The two branches of each module interact across scales, and then are output after several large-core convolutions.

[0059] During the downsampling process, the output of the first branch of the previous module is input to the first branch of the corresponding resolution module in the upsampling stage through a skip connection; the second branch output of the previous module is divided into two paths, one of which is convolved through a residual block with a step size of 1 and used as the first branch input of the next module, and the other is downsampled through a residual block with a step size of 2 and used as the second branch input of the next module.

[0060] During the upsampling process, the first branch output of the previous module is input to the first branch of the next module after upsampling, and the first branch output of the previous module is convolved with a residual block with a step size of 1 and used as the second branch input of the next module; in this embodiment, bilinear interpolation is used for upsampling. In this embodiment, the entire backbone network has a total of 5 outputs, namely, the second branch outputs of modules 4, 5, 6, and 7 and the first branch output of module 7. The second branch output of each module in the upsampling stage is uniformly upsampled to the highest resolution and then spliced, and finally one-dimensional convolution is performed, and the classification result is output after passing through the fully connected layer.

[0061] S2.2: For the U-shaped high-resolution feature extraction network, the convolution kernel of each branch of the backbone network except ERF-Server is further reconstructed using channel-wise convolution (DW conv). The channel-wise convolution has an adaptive size convolution kernel, and its size is positively correlated with the resolution of the feature map of each branch, thereby obtaining a new adaptive kernel size information interaction module for each module.

[0062] like Figure 3 As shown in the figure, unlike conventional convolution operations, a convolution kernel of DW convolution is responsible for one channel, and one channel is convolved by only one convolution kernel. At the same time, the number of channels in the feature map after convolution is the same as the number of input channels. The adaptive size convolution kernel controls the size of the kernel through its own loss function. This loss function is independent of the loss function of the training module for the convolution parameters. The adaptive size convolution kernel of each resolution feature map uses it to adjust its own kernel size during training.

[0063] The specific update logic of the adaptive size convolution kernel loss function during training is as follows: the adaptive size convolution kernel loss function guides the adaptive convolution kernel to select and update the kernel size according to the difference between the predicted pixels of samples of different categories and the pixels in the true labels in each training.

[0064] Based on the update logic of the adaptive size convolution kernel loss function, based on the update logic of the adaptive size convolution kernel loss function during training, the recognition targets of the sonar segmentation image data set are divided into two categories: large targets and small targets according to the artificially added prior knowledge. If the predicted pixels of the large target are mislocated or insufficiently filled compared with their true labels, the corresponding loss function becomes larger, and the loss function tends to be reduced by increasing the kernel size, and then a larger kernel size is iterated; conversely, if the predicted pixels of the small target are missed or misjudged compared with the true labels, the corresponding loss function becomes larger, and the loss function tends to be reduced by reducing the kernel size, and then a smaller kernel size is iterated; the expression of the loss function is as follows:

[0065]

[0066] In the formula, k p is the dimensionally normalized value of the adaptive convolution kernel size of the current module and the predicted deviation of the first target and the second target; ~ indicates positive correlation. It should be pointed out that both terms are meaningful only when the square root of the formula is positive, otherwise it is 0. This operation logic is specifically implemented by the relu function.

[0067] Among them, the small target prediction deviation is expressed by Hausdorff distance, and the specific formula is as follows:

[0068]

[0069] The large target prediction deviation is expressed by the Dice coefficient, and the specific formula is as follows:

[0070]

[0071] In the formula, A={ a 1 , a 2 , …, a p},B={ b 1 , b 2 , …, b p}, set A is the predicted pixel set, set B is the real label pixel set, and ||ab|| represents the Euclidean distance between two pixels.

[0072] The kernel size of the adaptive convolution kernel is an integer, which is positively correlated with the feature map resolution of the current module. It is adjusted and changed within the preset kernel size range, and the median intervals of the adaptive convolution kernel kernel sizes used by feature maps of different resolutions do not overlap. In addition, the median of these kernel size intervals is determined by the size function, and in the actual model training process, the change in size is reflected in the selection of one size from a group of sizes after each update. The corresponding relationship between the median of the kernel size interval of the adaptive convolution kernel and the size of the feature map representation is as follows: Figure 4 As shown, the size function expression is as follows:

[0073] ;

[0074] ;

[0075] Among them, k m is the median of the kernel size interval of the adaptive convolution kernel, f(r) is the size function, and r is the size represented by the feature map of the current module.

[0076] S2.3: For the reconstructed adaptive kernel size information interaction module, the network branch module ERF-Server is constructed to realize the skip connection and complete the construction of the AEU-Net model. The main function of ERF-Server is to take out some ERF information from the model, process it into the features we expect, and then send it back to the model itself. Figure 2 As shown, in this embodiment, the outputs of module 1, module 2, and module 3 are input into the ERF-Server network branch, the output of module 1 is correspondingly input into module 7, the output of module 2 is correspondingly input into module 6, and the output of module 3 is correspondingly input into module 5.

[0077] like Figure 3 As shown in the figure, ERF-Server receives acoustic semantic information from different modules in the downsampling stage of the model and performs two different operations to obtain acoustic semantic information of effective receptive fields of different scales:

[0078] The semantic information of the large effective receptive field is obtained through an operation called U-Serve, and is skipped and spliced ​​into the subsequent modules. U-Serve refers to a network branch composed of multiple channel-by-channel convolutions with fixed kernel sizes and the largest size itself (the maximum value within the variable range of the convolution kernel size of the branch with the highest resolution) with residual connections. It can receive the features of any module in the downsampling stage. After the large kernel convolution of U-Serve itself, the semantic information of the feature map after ERF is greatly improved relative to the original 3*3 residual block, and the result is adjusted with a 1*1 residual block. The number of channels is adjusted, and then it is spliced ​​into the subsequent specified module according to channel allocation. Then, the module obtains the new semantic information of this part of the feature map after the ERF information is improved, and further improves the richness of the ERF information of all channels. When allocating by channel, there is a channel allocation coefficient C k ,The fusion efficiency of new semantic information in this module is adjustable.

[0079] The semantic information of the small effective receptive field is obtained through an operation called D-Serve, and is skipped and spliced ​​into the subsequent modules. D-Serve refers to a network branch composed of a fixed number of residual blocks. It can receive the features of any module in the downsampling stage, and retain the features of the early ERF in the acoustic frequency domain signal after the convolution layer with fewer layers than the backbone network. The result is adjusted with a 1*1 residual fast channel number, and then spliced ​​into the subsequent designated module according to the channel allocation. Then, the module obtains the new semantic information of the feature map after the ERF information is reduced, and further improves the richness of the ERF information of all channels. Since there is a distribution coefficient when allocating by channel, the fusion efficiency of this part of the new semantic information is adjustable. In this embodiment, D-serve processes the received information through a 3*3 residual block. Compared with the backbone branch using a large core group, D-serve controls the rapid improvement of ERF, so that the model can capture the ERF information of the current scale more deeply.

[0080] It should be noted that at the output end of ERF-Server, U-serve and D-serve will perform channel allocation with the upsampling result of the first branch of the previous module of the corresponding module in the backbone network, and replace the original channel with the new channel after the ERF-Server operation according to the channel allocation coefficient to obtain the feature representation after the ERF change. Channel allocation is achieved through the channel allocation coefficient, and the channel allocation coefficient C k is a preset hyperparameter, a 1*3 vector, each component is between 0 and 1 and the sum is 1, representing the proportion of the three sets of feature maps: D-Serve output, U-Serve output, and the upsampling output of the first branch of the previous module of the corresponding module in the upsampling stage. The number of channels is rounded when allocating. This hyperparameter is a real number, which increases the variability of the adjustment parameter. C k The larger the value assigned to D-Serve and U-Serve, the stronger the corresponding Server will play. Conversely, 0 means that the Server will not work.

[0081] S2.4: Input the underwater sonar segmentation image dataset into AEU-Net for training to obtain the trained AEU-Net. During training, the kernel size of the adaptive size convolution kernel is adjusted within the kernel size range preset in the feature map of the current module. The training goal is to minimize the loss function of the adaptive size convolution kernel. For the feature representation of the ERF after the ERF-Server is changed, the real ERF is calculated by the size of the adaptive size convolution kernel of each branch and the number of convolution layers it has experienced. The expression is as follows:

[0082]

[0083] Right now

[0084]

[0085] In the formula, Output pixel value S for the nth convolutional layer n The standard deviation, S n It is composed of the weighted sum of all input pixel values ​​within its receptive field, and its variance is calculated by considering the contribution of the elements in each adaptive-size convolution kernel to the output of each pixel; (i, j) is the index of the element in the i-th row and j-th column in the k×k adaptive-size convolution kernel; the ERF in the formula refers to the effective receptive field of the feature map of each module, where k is the size of the adaptive-size convolution kernel that convolves the feature maps of each module of the underwater acoustic target signal, and n refers to the number of stacked layers of the original image from the input to the current convolution layer.

[0086] While adjusting the kernel size during training, the ERF distribution of each module of the entire AEU-Net model is obtained and used as the ERF distribution after optimization for the information distribution of the sonar segmentation image dataset.

[0087] S3: Input the underwater sonar segmentation image to be tested into the trained AEU-Net model to obtain the recognition result.

[0088] Figure 5 It is the effect of the ERF-Server framework in the present invention on the change of the effective receptive field attribute of the feature map in the forward propagation through feature map splicing, and the effect diagram compared with ResNet and RepLKNet. The first row is the change of the effective receptive field of the existing ResNet front and back modules, the second row is the change of the effective receptive field of the existing RepKLNet front and back modules, and the third row is the effective receptive field calculated by selecting all channel feature maps of a certain module in the AEU-Net model proposed in the present invention, and then inputting it into the ERF-Server for testing the effective receptive field regulation. The darker the color in the figure, the greater the impact on the value of each pixel starting from the center, that is, the larger the ERF, thereby reflecting the size of the effective receptive field according to the depth. It illustrates the effectiveness of the ERF-Server involved in the present invention in regulating the effective receptive field.

[0089] The present invention provides an underwater acoustic target recognition method based on effective receptive field regulation. Compared with the existing segmentation network method used in the field, it has a larger and faster-changing ERF brought by large-core convolution, so it has more ERF resources, so that the network has a stronger ability to capture the global features of defect samples through the interaction of multi-scale ERF information, and focuses more on the overall shape of the defect when extracting information. On the other hand, it has an independent branch framework ERF-Server, which can actively regulate the changes in network ERF. The function of this module benefits from the large-core operation of U-serve, which can quickly improve the original effective receptive field. Since the size of the adaptive convolution kernel in the backbone network is larger than the traditional 3*3 convolution, D-serve can reduce the effective receptive field compared to the backbone network after using a 3*3 residual block, so that the effective receptive field information of each scale from small to large in the underwater sonar segmentation image originally input into AEU-Net can be fully utilized. The present invention can reduce the model parameter amount by nearly half compared to the original U-Net and HRNet while improving the recognition accuracy of the underwater sonar data set as a whole, so as to meet the real-time requirements of underwater target recognition.

[0090] like Figure 6 As shown, the electronic device provided by an embodiment of the present invention includes a memory and one or more processors. The memory stores executable code. When the one or more processors execute the executable code, it is used to implement the underwater acoustic target recognition method based on effective receptive field regulation in the above embodiment.

[0091] The device of the present invention can be applied to any device with data processing capability, and the device with data processing capability can be a device or apparatus such as a computer. The device of the present invention can be implemented by software, or by hardware or a combination of software and hardware. Taking software implementation as an example, as a device in a logical sense, it is formed by the processor of any device with data processing capability in which it is located, reading the corresponding computer program instructions in the non-volatile memory into the memory and running them. From the hardware level, if Figure 6 As shown, it is a hardware structure diagram of any device with data processing capability where the device of the present invention is located, except Figure 6 In addition to the processor, memory, network interface, and non-volatile memory shown, any device with data processing capabilities in which the device of the present invention is located in the embodiments may also include other hardware, which will not be described in detail.

[0092] The implementation process of the functions and effects of each unit in the above-mentioned device is specifically described in the implementation process of the corresponding steps in the above-mentioned method, which will not be repeated here.

[0093] As for the device embodiment, since it basically corresponds to the method embodiment, the relevant parts can refer to the partial description of the method embodiment. The device embodiment described above is only schematic, and the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the scheme of the present invention. Ordinary technicians in this field can understand and implement it without paying creative work.

[0094] An embodiment of the present invention further provides a computer-readable storage medium having a program stored thereon. When the program is executed by a processor, the underwater acoustic target recognition method based on effective receptive field regulation in the above embodiment is implemented.

[0095] The computer-readable storage medium may be an internal storage unit of any device with data processing capability in any of the aforementioned embodiments, such as a hard disk or a memory. The computer-readable storage medium may also be an external storage device of any device with data processing capability, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), an SD card, a flash card (Flash Card), etc. equipped on the device. Furthermore, the computer-readable storage medium may also include both an internal storage unit and an external storage device of any device with data processing capability. The computer-readable storage medium is used to store computer programs and other programs and data required by any device with data processing capability, and may also be used to temporarily store data that has been output or is to be output.

[0096] Those skilled in the art can understand that the above are only preferred examples of the invention and are not intended to limit the invention. Although the invention is described in detail with reference to the above examples, those skilled in the art can still modify the technical solutions recorded in the above examples or replace some of the technical features therein with equivalents. Any modification, equivalent replacement, etc. made within the spirit and principle of the invention shall be included in the protection scope of the invention.

Claims

1. A method for underwater acoustic target recognition based on effective receptive field regulation, characterized in that: The following steps are involved: S1: Build a pixel-by-pixel labeled underwater sonar segmentation image dataset; S2: Build and train the AEU-Net model based on U-Net, which is implemented through the following sub-steps: S2.1: The information interaction module of the high-resolution network is embedded in each single-resolution module of U-Net, so that each module is expanded into the first and second resolution branches; the original image is downsampled after a preprocessing convolution layer. In the downsampling stage, the first branch output of the previous module is input into the first branch of the corresponding module in the upsampling stage through a skip connection. The judgment basis of the corresponding module is that the resolution of the feature map is the same; the second branch output of the previous module is divided into two paths, one of which is convolved with a residual block with a step size of 1 and used as the first branch input of the next module, and the other is downsampled with a residual block with a step size of 2 at the same time and used as the second branch input of the next module; in the upsampling process, the first branch output of the previous module is input to the first branch of the next module after upsampling, and the first branch output of the previous module is convolved with a residual block with a step size of 1 and used as the second branch input of the next module; the second branch output of each module in the upsampling stage is spliced ​​in the channel dimension, and then passes through a one-dimensional convolution and a fully connected layer in sequence to output the classification label; S2.2: The convolution kernel of each branch is reconstructed using channel-by-channel convolution, wherein the channel-by-channel convolution has an adaptive size convolution kernel whose size matches the resolution of the feature map of each branch; one convolution kernel of the channel-by-channel convolution is responsible for one channel, one channel is convolved by only one convolution kernel, and the number of feature map channels after the convolution is completed is the same as the number of input channels; the adaptive size convolution kernel controls the size of the kernel through its own loss function; The update logic of the adaptive convolution kernel loss function during training is as follows: The adaptive convolution kernel loss function guides the adaptive convolution kernel to select and update the kernel size according to the difference between the predicted pixels and the pixels in the real labels of samples of different categories in each training; Based on the update logic of the adaptive size convolution kernel loss function during training, the recognition targets of the underwater sonar segmentation image dataset are artificially divided into two categories: the first target and the second target. If the predicted pixels of the first target are mislocated or insufficiently filled compared with their true labels, the corresponding loss function becomes larger. At this time, the kernel size of the adaptive convolution kernel is increased to reduce the loss function; conversely, if the predicted pixels of the second target are missed or misjudged compared with their true labels, the corresponding loss function becomes larger. At this time, the loss function is reduced by reducing the kernel size of the adaptive convolution kernel. The expression of the loss function is as follows: In the formula, k p It is the dimensionally normalized value of the predicted deviation between the size of the adaptive convolution kernel of the current module and the first target and the second target; S2.3: Construct an ERF-Server network branch for realizing skip connection and complete the construction of the AEU-Net model; the ERF-Server network branch includes two operations, U-Serve and D-Serve. For the feature map representation of each module output of the downsampling, after passing through the large-core convolution block of U-Serve, the new semantic information after the effective receptive field ERF is improved; for the feature map representation of each module output of the downsampling, after passing through the residual convolution block of D-Serve with a fixed size of 3*3, the new semantic information after the ERF is reduced is obtained; the upsampling output of the first branch of the previous module of the corresponding module in the upsampling stage, as well as the output of U-Serve and the output of D-Serve, are spliced ​​to the corresponding module in the upsampling stage according to the channel allocation coefficient; The channel allocation is realized by the channel allocation coefficient, and the channel allocation coefficient C k It is a preset hyperparameter, a 1*3 vector, each component is between 0 and 1 and the sum is 1, representing the ratio of the three sets of feature maps: D-Serve output, U-Serve output, and the upsampled output of the first branch of the previous module of the corresponding module in the upsampling stage. The number of channels is rounded when allocating; S2.4: Input the underwater sonar segmentation image dataset into AEU-Net for training to obtain a trained AEU-Net model; during training, the kernel size of the adaptive size convolution kernel is adjusted within the kernel size range preset in the feature map of the current module, and the training goal is to minimize the loss function of the adaptive size convolution kernel; S3: Input the underwater sonar segmentation image to be tested into the trained AEU-Net model to obtain the recognition result.

2. The underwater acoustic target recognition method based on effective receptive field regulation according to claim 1 is characterized in that: The second target prediction deviation is expressed by Hausdorff distance, and the specific formula is as follows: Hausdorff(A,B)=max{h(A,B),h(B,A)} h(A,B)=max a∈A min b∈B ||a-b|| h(B,A)=max b∈A min a∈B ||b-a|| The first target prediction deviation is expressed by the Dice coefficient, and the specific formula is as follows: In the formula, A={a 1 , a 2 , …, a p }, B={b 1 , b 2 , …, b p }, set A is the predicted pixel set, set B is the real label pixel set, and ||ab|| represents the Euclidean distance between two pixels.

3. The underwater acoustic target recognition method based on effective receptive field regulation according to claim 1 is characterized in that: The kernel size of the adaptive convolution kernel is adjusted within the kernel size interval preset in the feature map of the current module, and the kernel size intervals corresponding to feature maps of different resolutions do not overlap with each other; the kernel size interval is determined by the size function, and the expression is as follows: k m =f(r) In the formula, k m is the median of the kernel size interval of the adaptive convolution kernel, f(r) is the size function, and r is the size represented by the feature map of the current module.

4. The underwater acoustic target recognition method based on effective receptive field regulation according to claim 1 is characterized in that: Bilinear interpolation is used for upsampling.

5. The underwater acoustic target recognition method based on effective receptive field regulation according to claim 1 is characterized in that: In S2.4, the ERF distribution of the feature map of each module of the entire AEU-Net model is obtained, where the actual ERF is calculated by the size of the adaptive size convolution kernel of each branch and the number of convolution layers it has experienced, and the expression is as follows: Right now In the formula, Output pixel value S for the nth convolutional layer n The standard deviation of (i, j) is the index of the element in the i-th row and j-th column of the k×k adaptive size convolution kernel; k is the size of the adaptive size convolution kernel for convolving the feature maps of each module of the underwater acoustic target signal, and n is the number of stacked layers of the original image from the input to the current convolution layer.

6. An electronic device, characterized in that: It comprises a memory and one or more processors, wherein the memory stores executable codes, and when the one or more processors execute the executable codes, they are used to implement the underwater acoustic target recognition method based on effective receptive field regulation as described in any one of claims 1 to 5.

7. A computer-readable storage medium, characterized in that: A program is stored thereon, and when the program is executed by a processor, the underwater acoustic target recognition method based on effective receptive field regulation as described in any one of claims 1 to 5 is implemented.

Citation Information

Patent Citations

  • Water surface detection method based on polarization camera and RGB-D sensor

    CN111310651A

  • Multi-organ segmentation method based on improved 3D U-Net

    CN112348830A

  • Remote sensing image classification method and device based on multi-resolution feature fusion

    CN114550000A

  • Underwater image enhancement method based on brightness compensation residual network

    CN114881879A

  • Arbitrary angle target detection method based on coarse mask smooth label supervision

    CN115393710A