Neural network for underwater transparent target prediction based on event feature guidance

Through a neural network guided by event features, combined with RGB and event images, and using the YOLOv7 backbone network and multi-layer feature fusion module, the problem of underwater transparent biological detection is solved and high-accuracy and high-speed detection results are achieved.

CN118552840BInactive Publication Date: 2024-09-24CHINA UNIV OF PETROLEUM (EAST CHINA)
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411027885.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-30
Publication Date
2024-09-24
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

It is difficult to detect transparent organisms underwater. It is difficult for existing technologies to effectively detect transparent targets. Traditional visual feature detection methods are ineffective, and the lack of large-scale annotated data sets limits the application of deep learning methods.

Method used

Using a neural network guided by event features, combined with RGB images and event images, through the YOLOv7 backbone network, edge clue search module, enhanced representation aggregation module and feature pyramid network, multi-level features are extracted and fused to achieve accurate positioning of transparent objects.

Benefits of technology

It achieves an accuracy of 72.6% and a detection speed of 66.4 frames per second, which is better than other methods. It provides better real-time detection results in complex environments, retains the sparsity of event features, and digs deep into detailed information to improve detection performance. .

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118552840B
    Figure CN118552840B
Patent Text Reader

Abstract

The present invention discloses a neural network for underwater transparent target prediction based on event feature guidance, which belongs to the field of neural network technology, including using submanifold sparse convolution to design event ELAN module and event MP1 module to extract features from input images; using edge clue search module to extract edge semantics related to the target from low-level features containing detail information, and using high-level features containing global position information to supervise to obtain boundary enhanced features; iterating multiple enhanced representation aggregation modules to weightedly fuse the obtained boundary enhanced features and extracted features, and then integrating the weighted fused features with multi-level features; inputting the result of feature integration into feature pyramid network to obtain underwater transparent target prediction results. The present invention achieves better detection results while ensuring real-time performance, retains the sparsity of event features, mines detail information, and deepens feature aggregation to improve detection performance.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention discloses a neural network for underwater transparent target prediction based on event feature guidance, and belongs to the technical field of neural network. Background Art

[0002] The detection of underwater transparent organisms is different from the detection of general underwater objects. Due to their transparent body color, transparent targets lack obvious visual features, making it difficult to directly apply traditional visual feature detection methods based on color, shape, etc. Since the propagation of light is affected by factors such as scattering and refraction of water, it is easy to cause color image distortion, which brings greater difficulties to the detection of transparent organisms. Although marine ecologists often emphasize the key role of transparency, this aspect has not yet attracted attention in the field of actual detection, and there is a lack of large-scale annotated data sets, which limits the application of deep learning methods. In general, the detection task of underwater transparent organisms is a major challenge. Since underwater environments usually have problems with light attenuation and scattering, the RGB images obtained by shooting underwater species using traditional frame cameras will be greatly affected. An alternative to the prior art is the event camera, which does not capture the entire scene image at a fixed frequency, but only generates an event signal immediately when the pixel-level brightness suddenly exceeds a preset threshold. Event cameras have the characteristics of high dynamic range, low latency, and high efficiency, and perform well in complex lighting environments and high-speed motion scenes. Therefore, it is very feasible to apply event cameras to the detection task of underwater transparent organisms. The present invention makes use of the unique advantages of event cameras to extract features from event frames generated by event cameras and color frames generated by ordinary frame-based cameras respectively, and the useful information in the two types of images is integrated to improve the detection results. Summary of the invention

[0003] The purpose of the present invention is to provide a neural network for underwater transparent target prediction based on event feature guidance, so as to solve the problem of difficulty in transparent target prediction in the prior art.

[0004] The neural network for underwater transparent target prediction guided by event features uses YOLOv7 as the backbone network, including:

[0005] S1 processes the RGB image and the event image respectively; the RGB image is sequentially input into four CBS modules, one ELAN module, three overlay modules and an SPPCSPC module; the event image is sequentially input into four CBS modules, one event ELAN module, three event overlay modules and an SPPCSPC module;

[0006] S2 applies the edge clue search module ECSM to extract the edge semantics related to the target from the low-level features containing detail information, and uses the high-level features containing global position information for supervision to obtain the features of boundary enhancement; the features processed by the CBS module in RGB image processing, the features processed by the ELAN module, and the features processed by the last superposition module are connected to ECSM;

[0007] S3 iterates multiple enhanced representation aggregation module DRAMs, imports the features processed by the first superposition module, the features processed by the first event superposition module, and the results of ECSM into the first DRAM, imports the features processed by the second superposition module, the features processed by the second event superposition module, and the results of ECSM into the second DRAM, and imports the features processed by the two SPPCSPC modules and the results of ECSM into the third DRAM;

[0008] The output result of the first DRAM of S4 is subjected to feature fusion after the convolution layer, and then connected to the MP1 module, ELAN module, reparameterization module and detection head in sequence;

[0009] The output result of the second DRAM of S5 is subjected to feature fusion after passing through the convolution layer, and then connected to the MP1 module for feature fusion again, and then connected to the MP1 module, the reparameterization module and the detection head in sequence;

[0010] The output result of the third DRAM of S6 is subjected to feature fusion, and then connected to the event superposition module, the reparameterization module and the detection head in sequence;

[0011] The output result of the third DRAM of S7 is set with a branch, which performs convolution and upsampling, and then is imported into the first MP1 module in S5, and then convolution and upsampling are performed again, and then imported into the MP1 module in S4; the output of the ELAN module in S4 leads to a branch, and the branch is sequentially connected to the MP1 module in S5 and the event superposition module in S6;

[0012] S8 inputs the output results of all detection heads into the feature pyramid network FPN to obtain the underwater transparent target prediction results.

[0013] The CBS module consists of a Conv layer, a BN layer, and an activation function;

[0014] The ELAN module includes three branches. The first branch includes a CBS module. The second branch includes five CBS modules in turn. The third branch is led out from the first CBS module of the second branch, connected to the third CBS module of the second branch, and then merged with the remaining two branches. After merging, it passes through another CBS module.

[0015] The superimposed modules include an MP1 module and an ELAN module;

[0016] The MP1 module includes two branches, one branch includes a maximum pooling layer and a CBS module, and the other branch includes two CBS modules in sequence. The two branches of the MP1 module are fused;

[0017] The SPPCSPC module is a convolutional neural network module used to extract image features.

[0018] The input of the event ELAN module is sent to two VSC convolutions respectively. The output of one VSC convolution is finally spliced, and the output of the other VSC convolution is divided into two branches. One branch is finally spliced, and the other branch is finally spliced ​​after four VSC convolutions in sequence. The final spliced ​​content is input into 1×1 convolution and then output;

[0019] The event superposition module includes an event MP1 module and an event ELAN module;

[0020] The input of the event MP1 module is divided into two branches, one is concatenated after maximum pooling through VSC convolution, and the other is concatenated after VSC convolution and SC convolution in sequence.

[0021] The activation function and BN layer in the submanifold sparse convolution SSC only process active sites;

[0022] Submanifold sparse convolution SSC captures the non-zero elements in the feature map and marks the non-zero elements as active input sites. When the SC convolution calculates the output site, if there is an active input site in the receptive field of the output site, the output site is recorded as an active site; when the receptive field of the output site is full of zero elements, the inactive site is discarded and the ground state of the inactive site is set to 0;

[0023] VSC convolution fills each dimension of the input tensor multiple times to ensure that the output tensor has the same shape as the input tensor. When calculating the output site, VSC convolution regards the site of non-zero elements in the receptive field as the active site.

[0024] In the CBS module, ELAN module, and three superposition modules, five layers of features f1, f2, f3, f4, and f5 are extracted from the RGB image. The five layers of features of the RGB image are collectively referred to as f i , i=1,2,3,4,5, ECSM combines low-level features f1, f2 and high-level features f5 to model the edge information related to the object;

[0025] ECSM unifies the channels of f1, f2, and f5 to 256 by using three 1×1 convolutional layers, and performs sampling operations on f1 and f5 to ensure the same resolution, and obtains , , , , , It is f1, f2, and f5 after unified resolution;

[0026] exist and between, and Dot product calculations are performed between them to obtain two adaptive weights V1 and V2. and Fuse with V1 and V2 respectively, connect the two sets of features after fusion, and obtain the edge feature f through a 1×1 convolution layer and a Sigmoid function. e .

[0027] DRAM includes edge features f e Use downsampling operation and activation, and e i Perform element-by-element multiplication and then add it to f i Fusion obtains the feature fusion result f m :

[0028] ;

[0029] In the formula, represents downsampling, represents element-wise multiplication, In the CBS module, the event ELAN module, and the three event superposition modules, five layers of features e1, e2, e3, e4, and e5 are extracted from the event image. The five layers of features of the event image are collectively referred to as e i ;

[0030] DRAM uses 1×1 convolution operation to convert f m The channel size is reduced to 32 and then input into 5 branches b1, b2, b3, b4, and b5 respectively. b1 includes a maximum pooling layer and a 1×1 convolution layer. b2, b3, b4, and b5 are four parallel convolution branches with different expansion rates.

[0031] The expansion rates of b2, b3, b4, and b5 are 1, 3, 5, and 7, respectively;

[0032] In b2, f m Perform 3×3 convolution operation; in b3, b4, and b5, f m Calculate (2i-3)×(2i-3) convolutions, and then fuse them with the previous branch to achieve cross-scale interactive learning, and then perform dilated convolution operations;

[0033] DRAM uses the InceptionV2 network structure to decompose the convolution kernel and converts the f mCalculate the (2i-3)×(2i-3) convolution to two cores for operation:

[0034] ; ;

[0035] In the formula, Indicates After the expansion of the branches, f m , Indicates that the expansion rate is The 3×3 convolution operation, Indicates ×1 convolution operation, Indicates 1× The convolution operation, Indicates The number of branches that have not been expanded is f m .

[0036] Will Connect them, perform 1×1 convolution operation, and perform residual connection to obtain the final output :

[0037] ;

[0038] In the formula, Indicates a 1×1 convolution operation. Indicates that All except Perform serial operation.

[0039] The loss function of the neural network includes the regression parameter loss L reg , classification loss L cls and confidence loss L obj , L cls and L obj Using binary cross entropy loss BCEWithLogitsLoss, L reg use loss;

[0040] loss include:

[0041] ; ; ;

[0042] In the formula, Represents the loss function Applying the power operation, is the power parameter, is the distance between the center point of the predicted bounding box and the true bounding box The result of the power operation, c is the diagonal distance of the minimum bounding rectangle, β and v represent intermediate parameters, w and h represent the height and width of the prediction box, w gt 、h gt Represent the height and width of the ground-truth box respectively.

[0043] Use F1 score and average precision AP as evaluation indicators to measure the accuracy of the neural network, and frames per second FPS to measure the calculation speed of the neural network:

[0044] ; ; ;

[0045] In the formula, P is the precision, R is the recall, represents the average accuracy of different detection thresholds, Indicates The average precision under the detection threshold.

[0046] Compared with the prior art, the present invention has the following beneficial effects: the present invention explores the edge semantics related to the target and deeply mines the multi-level features to highlight the structure of the object and realizes the accurate positioning of transparent object detection; the accuracy of the present invention reaches 72.6%, and the FPS reaches 66.4f / s, which is superior to other methods in overall performance. The present invention achieves better detection results while ensuring real-time performance; the sparsity of event features is retained, detailed information is mined, and feature aggregation is deepened to improve detection performance. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] Figure 1 It is a technical flow chart of the present invention;

[0048] Figure 2 It is a distribution plot of each category in the dataset. DETAILED DESCRIPTION

[0049] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention is described clearly and completely below. Obviously, the described embodiments are part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0050] The neural network for underwater transparent target prediction guided by event features uses YOLOv7 as the backbone network, including:

[0051] S1 processes the RGB image and the event image respectively; the RGB image is sequentially input into four CBS modules, one ELAN module, three overlay modules and an SPPCSPC module; the event image is sequentially input into four CBS modules, one event ELAN module, three event overlay modules and an SPPCSPC module;

[0052] S2 applies the edge clue search module ECSM to extract the edge semantics related to the target from the low-level features containing detail information, and uses the high-level features containing global position information for supervision to obtain the features of boundary enhancement; the features processed by the CBS module in RGB image processing, the features processed by the ELAN module, and the features processed by the last superposition module are connected to ECSM;

[0053] S3 iterates multiple enhanced representation aggregation module DRAMs, imports the features processed by the first superposition module, the features processed by the first event superposition module, and the results of ECSM into the first DRAM, imports the features processed by the second superposition module, the features processed by the second event superposition module, and the results of ECSM into the second DRAM, and imports the features processed by the two SPPCSPC modules and the results of ECSM into the third DRAM;

[0054] The output result of the first DRAM of S4 is subjected to feature fusion after the convolution layer, and then connected to the MP1 module, ELAN module, reparameterization module and detection head in sequence;

[0055] The output result of the second DRAM of S5 is subjected to feature fusion after passing through the convolution layer, and then connected to the MP1 module for feature fusion again, and then connected to the MP1 module, the reparameterization module and the detection head in sequence;

[0056] The output result of the third DRAM of S6 is subjected to feature fusion, and then connected to the event superposition module, the reparameterization module and the detection head in sequence;

[0057] The output result of the third DRAM of S7 is set with a branch, which performs convolution and upsampling, and then is imported into the first MP1 module in S5, and then convolution and upsampling are performed again, and then imported into the MP1 module in S4; the output of the ELAN module in S4 leads to a branch, and the branch is sequentially connected to the MP1 module in S5 and the event superposition module in S6;

[0058] S8 inputs the output results of all detection heads into the feature pyramid network FPN to obtain the underwater transparent target prediction results.

[0059] The CBS module consists of a Conv layer, a BN layer, and an activation function;

[0060] The ELAN module includes three branches. The first branch includes a CBS module. The second branch includes five CBS modules in turn. The third branch is led out from the first CBS module of the second branch, connected to the third CBS module of the second branch, and then merged with the remaining two branches. After merging, it passes through another CBS module.

[0061] The superimposed modules include an MP1 module and an ELAN module;

[0062] The MP1 module includes two branches, one branch includes a maximum pooling layer and a CBS module, and the other branch includes two CBS modules in sequence. The two branches of the MP1 module are fused;

[0063] The SPPCSPC module is a convolutional neural network module used to extract image features.

[0064] The input of the event ELAN module is sent to two VSC convolutions respectively. The output of one VSC convolution is finally spliced, and the output of the other VSC convolution is divided into two branches. One branch is finally spliced, and the other branch is finally spliced ​​after four VSC convolutions in sequence. The final spliced ​​content is input into 1×1 convolution and then output;

[0065] The event superposition module includes an event MP1 module and an event ELAN module;

[0066] The input of the event MP1 module is divided into two branches, one is concatenated after maximum pooling through VSC convolution, and the other is concatenated after VSC convolution and SC convolution in sequence.

[0067] The activation function and BN layer in the submanifold sparse convolution SSC only process active sites;

[0068] Submanifold sparse convolution SSC captures the non-zero elements in the feature map and marks the non-zero elements as active input sites. When the SC convolution calculates the output site, if there is an active input site in the receptive field of the output site, the output site is recorded as an active site; when the receptive field of the output site is full of zero elements, the inactive site is discarded and the ground state of the inactive site is set to 0;

[0069] VSC convolution fills each dimension of the input tensor multiple times to ensure that the output tensor has the same shape as the input tensor. When calculating the output site, VSC convolution regards the site of non-zero elements in the receptive field as the active site.

[0070] In the CBS module, ELAN module, and three superposition modules, five layers of features f1, f2, f3, f4, and f5 are extracted from the RGB image. The five layers of features of the RGB image are collectively referred to as f i, i=1,2,3,4,5, ECSM combines low-level features f1, f2 and high-level features f5 to model the edge information related to the object;

[0071] ECSM unifies the channels of f1, f2, and f5 to 256 by using three 1×1 convolutional layers, and performs sampling operations on f1 and f5 to ensure the same resolution, and obtains , , , , , It is f1, f2, and f5 after unified resolution;

[0072] exist and between, and Dot product calculations are performed between them to obtain two adaptive weights V1 and V2. and Fuse with V1 and V2 respectively, connect the two sets of features after fusion, and obtain the edge feature f through a 1×1 convolution layer and a Sigmoid function. e .

[0073] DRAM includes edge features f e Use downsampling operation and activation, and e i Perform element-by-element multiplication and then add it to f i Fusion obtains the feature fusion result f m :

[0074] ;

[0075] In the formula, represents downsampling, represents element-wise multiplication, In the CBS module, the event ELAN module, and the three event superposition modules, five layers of features e1, e2, e3, e4, and e5 are extracted from the event image. The five layers of features of the event image are collectively referred to as e i ;

[0076] DRAM uses 1×1 convolution operation to convert f m The channel size is reduced to 32 and then input into 5 branches b1, b2, b3, b4, and b5 respectively. b1 includes a maximum pooling layer and a 1×1 convolution layer. b2, b3, b4, and b5 are four parallel convolution branches with different expansion rates.

[0077] The expansion rates of b2, b3, b4, and b5 are 1, 3, 5, and 7, respectively;

[0078] In b2, fm Perform 3×3 convolution operation; in b3, b4, and b5, f m Calculate (2i-3)×(2i-3) convolutions, and then fuse them with the previous branch to achieve cross-scale interactive learning, and then perform dilated convolution operations;

[0079] DRAM uses the InceptionV2 network structure to decompose the convolution kernel and converts the f m Calculate the (2i-3)×(2i-3) convolution to two cores for operation:

[0080] ; ;

[0081] In the formula, Indicates After the expansion of the branches, f m , Indicates that the expansion rate is The 3×3 convolution operation, Indicates ×1 convolution operation, Indicates 1× The convolution operation, Indicates The number of branches that have not been expanded is f m .

[0082] Will Connect them, perform 1×1 convolution operation, and perform residual connection to obtain the final output :

[0083] ;

[0084] In the formula, Indicates a 1×1 convolution operation. Indicates that All except Perform serial operation.

[0085] The loss function of the neural network includes the regression parameter loss L reg , classification loss L cls and confidence loss L obj , L cls and L obj Using binary cross entropy loss BCEWithLogitsLoss, L reg use loss;

[0086] loss include:

[0087] ; ; ;

[0088] In the formula, Represents the loss function Applying the power operation, is the power parameter, is the distance between the center point of the predicted bounding box and the true bounding box The result of the power operation, c is the diagonal distance of the minimum bounding rectangle, β and v represent intermediate parameters, w and h represent the height and width of the prediction box, w gt 、h gt Represent the height and width of the ground-truth box respectively.

[0089] Use F1 score and average precision AP as evaluation indicators to measure the accuracy of the neural network, and frames per second FPS to measure the calculation speed of the neural network:

[0090] ; ; ;

[0091] In the formula, P is the precision, R is the recall, represents the average accuracy of different detection thresholds, Indicates The average precision under the detection threshold.

[0092] The technical process of the present invention is as follows Figure 1 As shown in the figure, the RGB image is input into the YOLOv7 backbone network to extract features, and then branches are generated. One branch designs the edge clue search module ECSM to enhance the extraction of detail information, and then designs the enhanced representation aggregation module DRAM to fuse multi-dimensional information ×3. The other branch does not design ECSM, but directly designs the enhanced representation aggregation module DRAM. For event images, two event modules are designed by improving the YOLOv7 backbone network and adding sub-manifold sparse convolution SSC. Then, the enhanced representation aggregation module DRAM is input, and the feature pyramid network FPN is used for the final fusion. The final prediction result is obtained by inputting three detection heads.

[0093] The overall framework of this method can be divided into the following six steps: using the backbone network of YOLOv7 to extract features from RGB frames; using submanifold sparse convolution to improve the YOLOv7 backbone network; using the improved backbone network to extract features of event images; designing an edge clue search module ECSM to further mine detail information based on the underlying features extracted from the RGB frames; designing an enhanced representation aggregation module DRAM to further fuse and enhance event frame features, RGB frame features, and edge information; using an underwater transparent organism detection model for training and predicting the images to be detected.

[0094] The YOLOv7 network is improved. The event camera responds to slight changes in light intensity, so the events are very sparse and there is a certain amount of noise interference. To address this problem, the present invention proposes to improve the network using submanifold sparse convolution SSC, and designs the event ELAN module and event MP1 module. As a special convolution operation, SSC only focuses on non-zero elements, so it is very suitable for feature extraction of sparse events.

[0095] In this paper, an event-based dataset UWTB and an event-guided underwater transparent target detection network framework UTNet are developed. The types and scenes are expanded, and 5670 pairs of RGB images and corresponding event images are recorded and annotated at a resolution of 346×260, adding a total of 11340 images. The proposed UTNet designs two parallel encoding branches to extract the rich background information in the RGB image and the dynamic change information in the event, respectively, to achieve higher-precision detection results.

[0096] The event camera consists of two channels: an active pixel sensor (APS) and a dynamic vision sensor (DVS). The APS outputs traditional RGB images, while the DVS outputs asynchronous event information. Unlike traditional cameras, event cameras mimic the working principle of biological vision systems and respond asynchronously to brightness changes of each pixel. For a pixel (x, y) at timestamp t, the event camera triggers an event when:

[0097] ;

[0098] Where L represents the logarithmic brightness, t' is the time of the last event triggered at (x, y), θ is a constant threshold, Indicates the polarity of the event, i.e., an increase or decrease in brightness.

[0099] The dynamic vision sensor channel of the event camera can output event stream information with high dynamic range and low latency. The output event stream is converted into event images, and deep learning detection algorithms can be applied. However, the lack of background information in event images poses a major challenge to object detection. The RGB image output by the active pixel sensor channel can make up for this deficiency and increase the salient features of transparent underwater organisms.

[0100] In order to further promote the research in the field of underwater transparency, the Aque-Eye dataset has been greatly expanded and named UWTB. Seven different transparent aquatic species have been carefully selected. They have strong transparency, different morphologies, and wide distribution. They include glass catfish, glass lala fish, beautiful white shrimp, red-tailed glassfish, red-bellied glassfish, flame jellyfish, and moon jellyfish. The distribution of each transparent biological species in the dataset is shown in the figure below. Figure 2 shown.

[0101] In order to simulate the complex effects of different lighting conditions in underwater scenes, a range of lighting colors and intensities were deliberately used, including strong light, natural light, and low light. In addition, the complex morphological characteristics of these organisms were carefully captured from multiple vantage points and angles to ensure that the dataset contains a rich visual perspective. This approach enhances the overall diversity of the dataset and provides a more accurate and comprehensive representation of transparent underwater organisms in their ecological environment.

[0102] The event data files captured by the DVAIS346 event camera were converted into event images with a resolution of 346 × 260. Finally, 11,340 RGB images and corresponding event images were collected and annotated, and the annotated images were divided into training, validation, and test sets in a ratio of 8:1:1.

[0103] Event cameras respond to subtle changes in light intensity, so event information is very sparse and there is a certain amount of noise interference. Using traditional convolution to process such sparse data can easily lead to feature distortion, amplify noise information, and generate a large number of redundant calculations. Submanifold sparse convolution, as a special convolution operation, only focuses on non-zero elements, so it is very suitable for feature extraction of sparse events. The present invention uses submanifold sparse convolution to process event images, which greatly improves the computational efficiency while maintaining the sparsity of event features.

[0104] When identifying transparent organisms, the image quality tends to deteriorate due to the poor underwater imaging environment, making the biological features more blurred. Therefore, enhancing the extraction of edge detail cues is crucial to help the algorithm locate the target more accurately. For example, Zhou et al. proposed to calculate and integrate low-level features to obtain edge information, which enhanced the network's capture of details. Although low-level features contain rich detail information, they also have a lot of noise interference. Inspired by this, in the edge cue search module, high-level semantic information is combined to supervise low-level information in order to more accurately extract edge features related to the target object.

[0105] Since transparent organisms have high transparency, it is very difficult to detect them in complex underwater environments. However, simply adding multiple layers of features using a feature pyramid network is not enough to accurately fuse features. The present invention constructs an enhanced representation aggregation module, which combines the event feature map guided by edge features with the RGB feature map and amplifies the fused features to mine deep contextual semantic information and expand the receptive field to improve the detection effect.

[0106] The embodiment runs on the Ubuntu 20.04.5 operating system, and the hardware configuration is NVIDIA GeForce RTX 3090 GPU and Intel (R) Core (TM) i7-12700KF processor. The Python 3.8.6 programming environment and the Pytorch 1.11.0 deep learning framework are used to train and test the network model. In the training phase, the Adam optimizer is used, and the batch size is set to 16. The experiment is trained for a total of 300 epochs. The entire training takes about 26 hours.

[0107] In order to prove the effectiveness of the algorithm in underwater transparent recognition tasks, several mainstream detection algorithms, such as CenterNet, RetinaNet, YOLOv4, YOLOv5, YOLOX, YOLOv7, YOLOv, FasterR-CNN, and UTNet, were selected to detect each transparent biological category in the UWTB dataset and calculate the mAP and FPS values ​​of each category. The inputs of this experiment are RGB images and event images, and features are extracted from them respectively. Except for UTNet, other algorithms subsequently concatenate the two sets of features and input them into the FPN network for fusion to obtain the final prediction result. The default parameters provided by the model are used for training and testing.

[0108] Table 1 Comparative experimental results of seven categories of UWTB dataset

[0109] ;

[0110] In Table 1, method 1 is FasterR-CNN; method 2 is CenterNet; method 3 is RetinaNet; method 4 is CenterNet; method 5 is EfficientDet; method 6 is YOLOv4; method 7 is YOLOv5; method 8 is YOLOv5-Ghost; method 9 is YOLOX; method 10 is YOLOv7; method 11 is YOLOv8; the method of the present invention is UTNet. Table 1 shows the comparison results of the method of the present invention with 11 mainstream frameworks on the UWTB dataset. It is obvious that the method of the present invention outperforms all other models on the dataset under the mAP evaluation index. Specifically, compared with the suboptimal YOLOv7, the average detection accuracy of UTNet increased by 2.3%, demonstrating its excellent detection performance. In terms of detection speed, UTNet is basically on par with YOLOv5-Ghost, slightly lower than YOLOv7, and faster than most algorithms. Overall, the method achieves a balance between light weight and high accuracy, and is suitable for detection tasks in actual situations.

[0111] In order to analyze the performance of the proposed method under different input types and verify the effectiveness of each key component, ablation experiments are designed and the results are shown in Tables 2 and 3. The experiment is divided into two main parts.

[0112] The first part of the experiment is based on the basic architecture proposed in this paper (excluding other design modules). By testing the following four input types: RGB image, event image, fusion image of RGB and event image, and input of RGB and event image separately, it demonstrates the superiority of extracting event image features as supplementary information of RGB image features. The specific results are shown in Table 2.

[0113] Table 2 Ablation experiments on different input types

[0114] ;

[0115] In Table 2, R+E is the image prediction processing method using TransCODNet; R E is the input of RGB and Event respectively.

[0116] Table 3 Ablation experiments of different components

[0117] ;

[0118] In Table 3, Baseline indicates that the baseline model uses the YOLOv7 network structure. Different model architectures are used to extract features from RGB and event images respectively, and fusion detection is performed to verify the performance of each component. For the baseline model, all additional modules (i.e., edge clue search module and enhanced representation aggregation module) are removed, and the event ELAN module and event MP1 module designed using submanifold sparse convolution are not used. Only the 1×1 convolution layer in the enhanced representation aggregation module is retained to unify the number of feature channels, and a simple top-down method is used to fuse multiple layers of features. Compared with the baseline, model 2 improves the performance by 1.3% when using the event ELAN module and event MP1 module designed by submanifold sparse convolution. However, in actual experiments, the accuracy of feature extraction for RGB images using submanifold sparse convolution decreases. This proves that submanifold sparse convolution is only effective for sparse event features and is not suitable for single RGB image detection tasks. Therefore, only the event ELAN module and event MP1 module are used in event image processing. Compared with the baseline model, the detection accuracy of model 3 is improved by 0.8 percentage points. In addition, Model 4 achieves better overall performance, especially in terms of average precision, with a performance improvement of 2.1%. Therefore, the enhanced representation aggregation module fuses multi-dimensional features and deeply mines them, which is beneficial to improve the detection performance. Finally, the edge clue search module is integrated into the model to test the effectiveness of edge information. Model 5 achieves the best performance in underwater transparent object detection, with an average detection precision improvement of 2.4% compared to the baseline.

[0119] The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some or all of the technical features may be replaced by equivalents, and these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.

Claims

1. A neural network for underwater transparent target prediction based on event feature guidance, using YOLOv7 as the backbone network, characterized by: include: S1 processes the RGB image and event image separately; The RGB image is sequentially input into four CBS modules, one ELAN module, three overlay modules and SPPCSPC module; The event image is sequentially input into four CBS modules, one event ELAN module, three event superposition modules and SPPCSPC module; S2 applies the edge clue search module ECSM to extract the edge semantics related to the target from the low-level features containing detail information, and uses the high-level features containing global position information for supervision to obtain the features of boundary enhancement; the features processed by the CBS module in RGB image processing, the features processed by the ELAN module, and the features processed by the last superposition module are connected to ECSM; S3 iterates multiple enhanced representation aggregation module DRAMs, imports the features processed by the first superposition module, the features processed by the first event superposition module, and the results of ECSM into the first DRAM, imports the features processed by the second superposition module, the features processed by the second event superposition module, and the results of ECSM into the second DRAM, and imports the features processed by the two SPPCSPC modules and the results of ECSM into the third DRAM; The output result of the first DRAM of S4 is subjected to feature fusion after passing through the convolution layer, and then connected to the MP1 module, ELAN module, reparameterization module and detection head in sequence; The output result of the second DRAM of S5 is subjected to feature fusion after passing through the convolution layer, connected to the MP1 module for feature fusion again, and then connected to the MP1 module, the reparameterization module and the detection head in sequence; The output result of the third DRAM of S6 is subjected to feature fusion, and then connected to the event superposition module, the reparameterization module and the detection head in sequence; The output result of the third DRAM of S7 is set with a branch, which performs convolution and upsampling, and then is imported into the first MP1 module in S5, and then convolution and upsampling are performed again, and then imported into the MP1 module in S4; the output of the ELAN module in S4 leads to a branch, and the branch is sequentially connected to the MP1 module in S5 and the event superposition module in S6; S8 inputs the output results of all detection heads into the feature pyramid network FPN to obtain the underwater transparent target prediction results.

2. The neural network for underwater transparent target prediction based on event feature guidance according to claim 1 is characterized in that: The CBS module consists of a Conv layer, a BN layer, and an activation function; The ELAN module includes three branches. The first branch includes a CBS module. The second branch includes five CBS modules in turn. The third branch is led out from the first CBS module of the second branch, connected to the third CBS module of the second branch, and then merged with the remaining two branches. After merging, it passes through another CBS module. The superimposed modules include an MP1 module and an ELAN module; The MP1 module includes two branches, one branch includes a maximum pooling layer and a CBS module, and the other branch includes two CBS modules in sequence. The two branches of the MP1 module are fused; The SPPCSPC module is a convolutional neural network module used to extract image features.

3. The neural network for underwater transparent target prediction based on event feature guidance according to claim 2 is characterized in that: The input of the event ELAN module is sent to two VSC convolutions respectively. The output of one VSC convolution is finally spliced, and the output of the other VSC convolution is divided into two branches. One branch is finally spliced, and the other branch is finally spliced ​​after four VSC convolutions in sequence. The final spliced ​​content is input into 1×1 convolution and then output; The event superposition module includes an event MP1 module and an event ELAN module; The input of the event MP1 module is divided into two branches, one is concatenated after maximum pooling through VSC convolution, and the other is concatenated after VSC convolution and SC convolution in sequence.

4. The neural network for underwater transparent target prediction based on event feature guidance according to claim 3 is characterized in that: The activation function and BN layer in the submanifold sparse convolution SSC only process active sites; Submanifold sparse convolution SSC captures the non-zero elements in the feature map and marks the non-zero elements as active input sites. When the SC convolution calculates the output site, if there is an active input site in the receptive field of the output site, the output site is recorded as an active site. When the receptive field of the output site is an inactive site with all zero elements, the inactive site is discarded and the ground state of the inactive site is set to 0; VSC convolution fills each dimension of the input tensor multiple times to ensure that the output tensor has the same shape as the input tensor. When calculating the output site, VSC convolution regards the site of non-zero elements in the receptive field as the active site.

5. The neural network for underwater transparent target prediction based on event feature guidance according to claim 4 is characterized in that: In the CBS module, ELAN module, and three superposition modules, five layers of features f1, f2, f3, f4, and f5 are extracted from the RGB image. The five layers of features of the RGB image are collectively referred to as f i , i=1,2,3,4,5, ECSM combines low-level features f1, f2 and high-level features f5 to model the edge information related to the object; ECSM unifies the channels of f1, f2, and f5 to 256 by using three 1×1 convolutional layers, and performs sampling operations on f1 and f5 to ensure the same resolution, and obtains , , , , , It is f1, f2, and f5 after unified resolution; exist and between, and Dot product calculations are performed between them to obtain two adaptive weights V1 and V2. and Fuse with V1 and V2 respectively, connect the two sets of features after fusion, and obtain the edge feature f through a 1×1 convolution layer and a Sigmoid function. e .

6. The neural network for underwater transparent target prediction based on event feature guidance according to claim 5, characterized in that: DRAM includes edge features f e Use downsampling operation and activation, and e i Perform element-by-element multiplication and then add it to f i Fusion obtains the feature fusion result f m : ; In the formula, represents downsampling, represents element-wise multiplication, In the CBS module, the event ELAN module, and the three event superposition modules, five layers of features e1, e2, e3, e4, and e5 are extracted from the event image. The five layers of features of the event image are collectively referred to as e i ; DRAM uses 1×1 convolution operation to convert f m The channel size is reduced to 32 and then input into 5 branches b1, b2, b3, b4, and b5 respectively. b1 includes a maximum pooling layer and a 1×1 convolution layer. b2, b3, b4, and b5 are four parallel convolution branches with different expansion rates.

7. The neural network for underwater transparent target prediction based on event feature guidance according to claim 6, characterized in that: The expansion rates of b2, b3, b4, and b5 are 1, 3, 5, and 7, respectively; In b2, f m Perform 3×3 convolution operation; in b3, b4, and b5, f m Calculate (2i-3)×(2i-3) convolutions, and then fuse them with the previous branch to achieve cross-scale interactive learning, and then perform dilated convolution operations; DRAM uses the InceptionV2 network structure to decompose the convolution kernel and converts the f m Calculate the (2i-3)×(2i-3) convolution to two cores for operation: ; ; In the formula, Indicates After the expansion of the branches, f m , Indicates that the expansion rate is The 3×3 convolution operation, Indicates that ×1 convolution operation, Indicates 1× The convolution operation, Indicates The number of branches that have not been expanded is f m .

8. The neural network for underwater transparent target prediction based on event feature guidance according to claim 7, characterized in that: Will Connect them, perform 1×1 convolution operation, and perform residual connection to obtain the final output : ; In the formula, Indicates a 1×1 convolution operation. Indicates that All except Perform serial operation.

9. The neural network for underwater transparent target prediction based on event feature guidance according to claim 8, characterized in that: The loss function of the neural network includes the regression parameter loss L reg , classification loss L cls and confidence loss L obj , L cls and L obj Using binary cross entropy loss BCEWithLogitsLoss, L reg use loss; loss include: ; ; ; In the formula, Represents the loss function Applying the power operation, is the power parameter, is the distance between the center point of the predicted bounding box and the true bounding box The result of the power operation, c is the diagonal distance of the minimum bounding rectangle, β and v represent intermediate parameters, w and h represent the height and width of the prediction box, w gt 、h gt Represent the height and width of the ground-truth box respectively.

10. The neural network for underwater transparent target prediction based on event feature guidance according to claim 9, characterized in that: Use F1 score and average precision AP as evaluation indicators to measure the accuracy of the neural network, and frames per second FPS to measure the calculation speed of the neural network: ; ; ; In the formula, P is the precision, R is the recall, represents the average accuracy of different detection thresholds, Indicates The average precision under the detection threshold.