Offshore platform target detection method based on multi-temporal heterogeneous remote sensing images and pseudo-twin network
By transforming the YOLOv8 network structure based on multi-temporal heterogeneous remote sensing images and pseudo-twin networks, and combining the feature extraction and fusion modules, the problem of false detection, false detection and missed detection in offshore platform detection has been solved, achieving efficient and accurate results. Offshore platform inspection.
Patent Information
- Application Number
- CN202410445944.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-15
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2044-04-15
AI Technical Summary
In the existing technology, remote sensing images that only rely on a single phase and a single sensor are difficult to accurately detect offshore engineering platforms, and are prone to errors, misdetections, and missed detections.
Using a method based on multi-temporal heterogeneous remote sensing images and pseudo-twin networks, by constructing a pseudo-twin network of YOLOv8 network structure, transforming its single-branch backbone feature extraction structure to simultaneously input SAR and optical images, combined with C2f_CloAtt, SPD_Conv and CAM modules, to achieve Feature extraction and fusion improve the detection capabilities of small targets on offshore engineering platforms.
It achieves efficient detection of offshore engineering platforms, reduces labor costs, improves detection accuracy and automation levels, and avoids missed and wrong detections of a single phase and single type of remote sensing images.
Smart Images

Figure CN118247680B
Abstract
Description
Technical Field
[0001] The present invention relates to a target detection method based on heterogeneous remote sensing images, and in particular to a target detection method for an offshore platform based on multi-phase heterogeneous remote sensing images and a pseudo-twin network. Background Art
[0002] Remote sensing image target detection is the process of automatically identifying and locating specific targets or objects in images using computer vision and machine learning algorithms using image data of the earth's surface obtained using remote sensing technology. Remote sensing image target detection has a wide range of applications in urban planning, environmental monitoring, agriculture, forest management, disaster response, etc. The present invention is mainly aimed at the detection of offshore platforms. Offshore platforms are workbenches that provide production and living facilities for activities such as drilling, oil production, shipping, observation, navigation, and construction at sea. The construction, use, and demolition cycle of offshore platforms is long. They are widely distributed in the sea area and have various forms. They are stable in distribution in a short period of time, but they will be newly built or demolished as time changes. The human and material costs consumed in counting the number of offshore platforms are high and the benefits are low. Therefore, it is urgent to adopt a method that can efficiently detect offshore platforms, effectively improve the automation level of relevant implementation units, reduce labor costs, and improve their economic benefits.
[0003] Remote sensing images have many advantages such as fast imaging, wide coverage, and strong timeliness, and have become an important data source in the field of target detection. Due to the different characteristics of data obtained by optical and SAR sensors, remote sensing images obtained by a single sensor have their own advantages and disadvantages. Optical remote sensing images have the characteristics of high spatial resolution, intuitiveness, susceptibility to cloud and atmosphere, and weak penetration. SAR images can achieve all-weather observation and strong penetration, but the image speckle noise is obvious and relatively difficult to interpret. The characteristics of offshore platforms in optical images such as Sentinel 2 are diverse shapes, wide distribution, small targets, and easy to be confused with offshore ships, wind power and other targets. It is difficult to accurately extract offshore platforms by relying solely on the reflection signals of Sentinel optical images or SAR images in a single phase. Summary of the invention
[0004] Purpose of the invention: The purpose of the present invention is to provide a method for offshore platform target detection based on multi-temporal heterogeneous remote sensing images and pseudo-twin networks, so as to overcome the defects of false detection, misdetection, missed detection, etc. existing in the technical method of small target detection of remote sensing images that only relies on single-temporal phase and single sensor.
[0005] Technical solution: The offshore platform target detection method based on multi-temporal heterogeneous source remote sensing images and pseudo-twin network of the present invention includes:
[0006] S1. Construct an offshore platform dataset based on multi-temporal and heterogeneous remote sensing images;
[0007] S2. Construct an offshore platform target detection model based on a pseudo-twin network of the YOLOv8 network structure, transform the original single-branch trunk feature extraction structure of the YOLOv8 network structure into a trunk feature extraction network structure of the offshore platform target detection model that can simultaneously input SAR images and optical images of different phases, and obtain three effective feature layers of different scales on each branch; then construct feature enhancement network layers based on optical and SAR images respectively, realize further feature extraction of effective feature layers on each branch, and improve the model's feature extraction capability for small targets of offshore platforms; and perform feature fusion on the three effective feature layers of optical and SAR images in the last layer of the Neck part of the feature enhancement network layer to obtain feature information of different scales; finally, implement classification and regression operations through YOLO Head to obtain prediction and regression results;
[0008] S3, training the offshore platform target detection model constructed in step S2 based on the offshore platform data set based on multi-temporal heterogeneous source remote sensing images in step S1, and obtaining a prediction network model suitable for the scenario of the data set;
[0009] S4, inputting the optical and SAR image pairs to be detected into the prediction network model obtained in step S3, and outputting the position information of the offshore platform target detection frame in the optical and SAR image pairs to be detected.
[0010] Furthermore, step S1 specifically includes:
[0011] (1) Multiple Sentinel-1 and Sentinel-2 remote sensing images with the same spatial range acquired at different times are selected as data sources, cropped to a preset pixel size, and annotated to form a set of offshore platform datasets based on multi-temporal heterogeneous source remote sensing images. The dataset includes: optical image and SAR image pairs of offshore platforms and corresponding label files;
[0012] (2) Perform data sample expansion preprocessing on the offshore platform dataset based on multi-temporal and heterogeneous remote sensing images, and at the same time, add negative samples to the dataset to enhance the sample dataset;
[0013] (3) The enhanced offshore platform dataset based on multi-temporal and heterogeneous remote sensing images is divided into a training set and a validation set.
[0014] Furthermore, in step (1), the data source is cropped to a preset pixel size and annotated, specifically:
[0015] The data source is cropped to a uniform size of preset pixels. The cropping areas of optical images and SAR images are the same, and images with offshore engineering platforms are screened out. The cropped image pairs are manually annotated using Labelimg software to form an offshore engineering platform dataset based on multi-temporal heterogeneous source remote sensing images.
[0016] Furthermore, the method for expanding the data samples in step (2) is color jittering, which performs data enhancement by adjusting the hue, brightness and saturation of the optical image; the negative samples are ships and offshore wind power.
[0017] Furthermore, in step S2, the original single-branch trunk feature extraction structure of the YOLOv8 network structure is transformed into a trunk feature extraction network structure of the offshore platform target detection model that can simultaneously input optical and SAR images, and three effective feature layers of different scales on each branch are obtained, specifically:
[0018] (1) The C2f_CloAtt structure is used in both the optical branch and the SAR branch. The C2f_CloAtt structure introduces the CloAttention module in each bottleneck part. The C2f_CloAtt structure includes the C2f module and the CloAttention module. The CloAttention module consists of a local branch and a global branch. In the global branch, downsampling and self-attention mechanisms are used to effectively extract low-frequency global information in the offshore platform dataset. The expression is:
[0019] X global =Attntion(Q g ,Pool(K g ),Pool(V g ))
[0020] Among them, Q g is the query tensor in the global branch, which represents the feature vector extracted from the remote sensing image in the global branch and is used to find targets related to offshore platforms in the remote sensing image; K g is the key tensor in the global branch, representing the feature vectors at different positions in the remote sensing image in the global branch, used to compare with Q g Compare and determine which locations are relevant to the offshore platform targets currently being focused on; V g is the value tensor in the global branch, indicating the feature representation of each position in the remote sensing image in the global branch. g When matched, the V g It is used to update the results of offshore platform target recognition; Pool (K g )、Pool(V g ) are respectively g 、V g Perform pooling operation; Attntion is the self-attention function; X global is the weighted global feature;
[0021] AttnConv is used in the local branch, and the structure of AttnConv is the same as that of standard attention. In the local branch, the corresponding Q is first obtained by linearly transforming the fully connected neural network through the feature vector p ,K p ,V p , the expression is:
[0022] Q p ,K p ,V p =FC(X in )
[0023] Among them, Q p K represents the feature vector extracted from the remote sensing image in the local branch, which is used to find targets related to offshore platforms in the remote sensing image; p Represents the feature vectors at different locations in the remote sensing image in the local branch, which are used to compare with Q p Compare and determine which locations are relevant to the offshore platform targets currently being focused on; V p Indicates the feature representation of each position in the remote sensing image in the local branch. When a position is consistent with Q p When matched, the V p Used to update the results of offshore platform target identification; X in is the input feature vector of AttnConv, FC represents a fully connected neural network;
[0024] Secondly, after linear transformation of the fully connected neural network, Q p , K p 、V p Use depthwise separable convolution to enhance the network branch's ability to perceive local information, thereby retaining spatial information while improving computational efficiency. The expression is:
[0025] V s =DWconv(V p )
[0026] Q l =DWconv(Q p )
[0027] K l =DWconv(K p )
[0028] Among them, V s is the value tensor after depthwise separable convolution in the local branch; Q l is the query tensor after depthwise separable convolution in the local branch; K lis the key tensor after depthwise separable convolution in the local branch; DWconv is the depthwise separable convolution function;
[0029] Then, by l , K l Perform a Hadamard product, and pass the result through a fully connected layer and apply the Swish activation function, as well as another fully connected layer, to finally generate a context-aware weight between -1 and 1, expressed as:
[0030] Attn t =FC(Swish(FC(Q l ⊙K l )))
[0031] Among them, ⊙ is the Hadamard product, Swish is the Swish activation function, Attn t is the original context-aware weight, FC is the fully connected neural network;
[0032] The original context-aware weights are normalized by the Tanh function, and the expression is:
[0033]
[0034] Among them, d is the number of channels of the original context-aware weight, and Attn is the final context-aware weight generated after nonlinear transformation.
[0035] Then, the final context-aware weight Attn is combined with V s Generate weighted local features, the expression is:
[0036] X local =(Attn⊙V s )
[0037] Among them, X local It is the weighted local feature representation;
[0038] Then, the outputs of the global branch and the local branch are concatenated in the channel dimension through Concat, and a fully connected layer network is applied in the channel dimension, as shown below:
[0039] X t =Concat(X local ,X global )
[0040] X out =FC(X t )
[0041] Among them, X tIt is the concatenated local feature and global feature representation; X out Given X t Feature representation of the output of the post-fully connected layer network;
[0042] (2) In the SAR branch, the spatial depth conversion convolution SPD_Conv is used to replace the Conv operation of the SAR branch backbone extraction network to convert the image spatial information into depth information;
[0043] (3) In the backbone feature extraction networks of the optical branch and the SAR branch, three effective feature layers of different scales are obtained respectively, and feature extraction is performed by introducing the SPPF structure in the last effective feature layer of each branch; the SPPF structure performs feature extraction by using maximum pooling.
[0044] Furthermore, in step S2, feature enhancement network layers based on optical and SAR images are constructed respectively to achieve further feature extraction of the effective feature layer on each branch, specifically:
[0045] The three effective feature layers obtained from the trunk feature extraction network on each branch are transmitted to the Neck structure of the feature enhancement network layer, and feature extraction is further enhanced through up- and down-sampling;
[0046] In the three effective feature layers transmitted from the SAR branch, SPD_Conv is used to replace the original stride convolution and pooling layers of the model, and the spatial dimension information of the feature map is converted into depth dimension information using the spatial depth layer SPD. More information is retained by increasing the number of channels, and then the non-stride convolution layer is used to maintain the spatial dimension while reducing the number of channels.
[0047] In the optical branch, the feature map containing spatial attention is obtained by fusing the contextual attention module (CAM) and the target object of interest, namely the offshore platform, is discovered by calculating the target position significance. Further attention is paid to the offshore platform target to achieve enhanced feature extraction.
[0048] Furthermore, enhanced feature extraction is implemented on the optical branch, specifically:
[0049] In one branch, CAM generates a feature map containing spatial attention by performing maximum pooling and average pooling operations on the input features and fusing them in the channel dimension; in the other branch, the attention map is calculated through convolution operations to reflect the influence of neighboring pixels on the position significance in the local spatial dimension; finally, the features on the two branches are spliced in the channel; therefore, in the effective feature layer F p , p∈{1,2,…,n}, CAM is expressed as:
[0050] att1=σ(Conv3×3 (Concat(max(F p ),avg(F p ))))
[0051] att2=σ(Conv 3×3 (F p ))
[0052] CAM=att1+att2
[0053] Among them, σ represents the sigmoid operation; Conv 3×3 represents a 3×3 convolution operation; max(·) and avg(·) represent the maximum pooling and average pooling of the channel dimension respectively; att1 is the attention feature map on one branch of CAM; att2 is the attention feature map on the other branch of CAM.
[0054] The offshore platform target detection system based on multi-temporal heterogeneous source remote sensing images and pseudo-twin network of the present invention comprises:
[0055] The dataset construction module is used to construct an offshore platform dataset based on multi-temporal and heterogeneous remote sensing images;
[0056] The model building module is used to build an offshore platform target detection model based on a pseudo-twin network of the YOLOv8 network structure. The original single-branch trunk feature extraction structure of the YOLOv8 network structure is transformed into a trunk feature extraction network structure of the offshore platform target detection model that can simultaneously input SAR images and optical images of different phases, and obtain three effective feature layers of different scales on each branch; then, feature enhancement network layers based on optical and SAR images are respectively constructed to achieve further feature extraction of the effective feature layers on each branch, thereby improving the model's feature extraction capability for small offshore platform targets; and in the last layer of the Neck part of the feature enhancement network layer, the three effective feature layers of optical and SAR images are respectively fused to obtain feature information of different scales; finally, classification and regression operations are implemented through YOLO Head to obtain prediction and regression results;
[0057] A model training module is used to train the offshore platform target detection model constructed by the model construction module based on the offshore platform dataset based on multi-temporal heterogeneous remote sensing images constructed by the dataset construction module, and obtain a prediction network model suitable for the dataset scenario;
[0058] The testing module is used to input the optical and SAR image pairs to be detected into the prediction network model obtained by the model training module, and output the position information of the offshore platform target detection frame in the optical and SAR image pairs to be detected.
[0059] An electronic device of the present invention comprises:
[0060] A memory storing executable program code;
[0061] a processor coupled to the memory;
[0062] The processor calls the executable program code stored in the memory to execute the steps of the above-mentioned offshore platform target detection method based on multi-temporally heterogeneous source remote sensing images and pseudo-twin networks.
[0063] A computer-readable storage medium of the present invention stores computer instructions, which, when called, are used to execute the steps of the above-mentioned offshore platform target detection method based on multi-temporally heterogeneous source remote sensing images and pseudo-twin networks.
[0064] Beneficial effects: Compared with the prior art, the advantages of the present invention are:
[0065] (1) The method of the present invention uses the offshore platform on the remote sensing image as the detection object, fully utilizing the advantages of heterogeneous and multi-temporal remote sensing data, realizing the complementary advantages of data, and avoiding missed detection and wrong detection caused by using only a single-phase and single-type remote sensing image as the detection object.
[0066] (2) In terms of model transformation, the pseudo-twin network structure enables the model to better combine the features of heterogeneous remote sensing images, combining their respective advantages to achieve richer feature extraction effects. At the same time, the different characteristics of heterogeneous images and the detection of small targets such as offshore platforms are fully considered. The C2f_CloAtt structure, SPD_Conv operation, and CAM module are used to extract richer feature information of offshore platforms and improve the detection and recognition capabilities of small targets.
[0067] (3) Achieve high-efficiency offshore platform inspection work, effectively improve the automation level of relevant implementation units, reduce labor costs, and improve their economic benefits. BRIEF DESCRIPTION OF THE DRAWINGS
[0068] Figure 1 is a flow chart of the method of the present invention;
[0069] Figure 2 Detailed flow chart of the method of the present invention;
[0070] Figure 3 This is a structural diagram of the offshore platform target detection model constructed by the present invention;
[0071] Figure 4 The original remote sensing images of the embodiments of the present invention are: (a) optical image of the embodiment, (b) SAR image of the embodiment;
[0072] Figure 5This is a detection effect diagram of an embodiment of the present invention;
[0073] Figure 6 This is a partial enlarged view of the detection effect of an embodiment of the present invention. DETAILED DESCRIPTION
[0074] The present invention is described in detail below with reference to the accompanying drawings and specific embodiments.
[0075] Multi-temporal remote sensing images can enrich the consistency and difference information in remote sensing images and provide richer semantic information. Multi-temporal remote sensing image data contains offshore platform image data collected at different times, which enables the change data of offshore platforms at multiple time points in the same area to be monitored and analyzed. By combining multi-temporal heterogeneous remote sensing images, the accuracy and reliability of the data can be improved. Based on multi-temporal heterogeneous remote sensing images, more comprehensive, detailed, and multi-level offshore platform data information can be provided, which enhances the complementarity between optical remote sensing image data sources and SAR remote sensing image data sources, and helps to reduce the defects and errors that may exist in a single data source. Therefore, according to the characteristics that the offshore platform has a relatively stable distribution at sea and does not change within a certain period of time, the advantages of combining multi-temporal remote sensing optical images and SAR images to achieve information complementarity can be used to construct an offshore platform target detection method based on a pseudo-twin target detection network model to improve the comprehensiveness and accuracy of offshore platform interpretation. This method can make full use of the advantages of heterogeneous remote sensing data, realize the complementary advantages of data, improve the detection accuracy of offshore engineering platforms, and realize the automatic recognition of offshore engineering platform targets in heterogeneous remote sensing images, which is of great significance.
[0076] In order to solve the problem of easy misdetection, false detection and missed detection of small targets, which makes it difficult to detect offshore platforms, and to achieve high-precision and accurate detection effects, the method of the present invention uses YOLOv8 as the benchmark model, and improves the backbone end and the neck end of the original YOLOv8 model respectively, forming an offshore platform target detection model based on multi-phase heterogeneous remote sensing images and pseudo-twin networks (referred to as the offshore platform target detection model). The target detection model extracts features from optical images and SAR images respectively, and then performs feature fusion, making full use of the advantages of optical and SAR remote sensing data, improving the detection accuracy of offshore platforms, and realizing the automatic recognition of offshore platform targets in heterogeneous remote sensing images.
[0077] The present invention discloses a method for detecting offshore platform targets based on multi-phase heterogeneous remote sensing images and pseudo-twin networks. The method comprises: (1) constructing an offshore platform data set suitable for multi-phase heterogeneous remote sensing images using Sentinel-1 and Sentinel-2 remote sensing images; (2) constructing an offshore platform target detection model based on a pseudo-twin network of a YOLOv8 network structure, transforming the original single-branch trunk feature extraction structure into a trunk feature extraction network structure of an offshore platform target detection model that can simultaneously input Sentinel-1 and Sentinel-2 remote sensing images, i.e., optical and SAR images, to obtain three effective feature layers of different scales on each branch; then constructing feature enhancement network layers based on optical and SAR images respectively, realizing further feature extraction of effective feature layers on each branch, and improving the model's feature extraction capability for small offshore platform targets; and performing feature fusion on the three effective feature layers of optical and SAR images in the last layer of the Neck part of the feature enhancement network layer to obtain feature information of different scales; finally, implementing classification and regression operations through YOLO Head to obtain prediction and regression results. (3) Train the offshore platform target detection model, input the offshore platform data set based on multi-temporal heterogeneous remote sensing images in step (1) into step (2), and obtain a prediction network model suitable for the scenario of the data set. (4) Input the full-scene Sentinel 1 and Sentinel 2 image pairs that did not participate in the model training into the prediction network model obtained in step (3), and directly output the position information of the offshore platform target detection frame in the Sentinel image pair to be detected. The present invention has a good detection effect on small targets in remote sensing images, has the ability to detect offshore platforms with a minimum of 5×5 pixels, and can accurately distinguish and exclude targets such as ships and offshore wind power.
[0078] like Figure 1 and Figure 2 As shown, the offshore platform target detection method based on multi-temporal heterogeneous source remote sensing images and pseudo-twin network of the present invention specifically includes the following steps:
[0079] S1. Use Sentinel-1 and Sentinel-2 remote sensing images to construct a marine platform dataset based on multi-temporal and heterogeneous remote sensing images; specifically:
[0080] (1) Collect Sentinel-1 and Sentinel-2 images of the same offshore area at different time phases. At this time, the Sentinel images are original large remote sensing images. The original images need to be cropped to a uniform size of 640×640 pixels. The cropping areas of optical and SAR images are the same, and images with offshore platforms are screened out. The cropped image pairs are manually annotated with offshore platforms using Labelimg software. Draw a rectangular bounding box in the image. The rectangular bounding box is used to specify and locate the target object of the offshore platform in the image. Each rectangular bounding box is associated with a specific category label. The category label in this dataset is offshore platform. At the same time, the coordinates of the rectangular bounding box define the position of the offshore platform in the image, and the width and height of the rectangular bounding box describe the size of the offshore platform in the image. Through labeling, a set of offshore platform datasets based on multi-phase heterogeneous remote sensing images is formed. The dataset contains optical and SAR image pairs of offshore platforms and corresponding label files.
[0081] (2) Due to the limited facilities of offshore platforms, the existing data sets cannot meet the training requirements of deep learning network models. Therefore, it is necessary to perform data sample expansion preprocessing. The method of data sample expansion is color jittering, which is to enhance the data by adjusting the hue, brightness and saturation of the optical image. At the same time, negative samples are added to the data set. The negative samples are other artificial targets at sea, such as offshore wind power and ships, to achieve the effect of enhancing the sample data set.
[0082] (3) The offshore platform dataset based on multi-temporal heterogeneous remote sensing images is divided into a training set and a validation set. The test set is composed of full-view Sentinel-1 and Sentinel-2 images of other temporal phases.
[0083] S2. Construct an offshore platform target detection model based on a pseudo-twin network of the YOLOv8 network structure, transform the original single-branch trunk feature extraction structure into a trunk feature extraction network structure of an offshore platform target detection model that can simultaneously input optical and SAR images, and obtain three effective feature layers of different scales on each branch; then construct feature enhancement network layers based on optical and SAR images respectively, to achieve further feature extraction of the effective feature layers on each branch, and improve the model's feature extraction capabilities for small targets of offshore platforms; and in the last layer of the Neck part of the feature enhancement network layer, perform feature fusion on the three effective feature layers of optical and SAR images respectively to obtain feature information of different scales; finally, implement classification and regression operations through YOLO Head to obtain prediction and regression results. Figure 3 As shown in the figure, the offshore platform target detection model structure based on multi-temporal heterogeneous source remote sensing images and pseudo-twin network is demonstrated.
[0084] The specific implementation steps are:
[0085] (1) The optical image dataset and SAR image dataset in the offshore platform dataset based on multi-temporal heterogeneous remote sensing images are respectively input into the offshore platform target detection model, and the feature extraction backbone network of the offshore platform target detection model is used to extract features of the offshore platform dataset based on multi-temporal heterogeneous remote sensing images.
[0086] (2) In processing high-frequency local information, the optical branch and the SAR branch use the C2f_CloAtt structure at the same time, which enables the model to better process high-frequency information and thus improve performance;
[0087] In the main feature extraction network of the optical branch and the SAR branch, in order to more effectively process high-frequency local information, the C2f module is improved to introduce the attention mechanism to improve the performance of target detection and achieve more refined feature selection and fusion. The core of the attention mechanism is to let the network focus on feature information. By combining the advantages of shared and context-aware weights, the C2f module is combined with the CloAttention module to form the C2f_CloAtt structure.
[0088] The CloAttention module consists of a local branch and a global branch. In the global branch, downsampling and self-attention mechanisms are used to effectively extract low-frequency global information in the offshore platform dataset. The expression is:
[0089] X glabal =Attntion(Q g ,Pool(K g ),Pool(V g )) (1)
[0090] The self-attention mechanism is a technique used in sequence models to calculate the interactions between different positions in a sequence. Query (Q, Query), key (K, Key), and value (V, Value) are the three basic components in the self-attention calculation. Q is a feature vector extracted from an image, which is used to find relevant targets in the image; K is a feature vector at different positions in the image, which is used to compare with Q to determine which positions are related to the current target of interest; V is a feature representation of each position in the image. When a position matches Q, V at that position is used to update the target recognition result. Among them, Q g is the query tensor in the global branch, which represents the feature vector extracted from the remote sensing image in the global branch and is used to find targets related to offshore platforms in the remote sensing image; K g is the key tensor in the global branch, representing the feature vectors at different positions in the remote sensing image in the global branch, used to compare with Q g Compare and determine which locations are relevant to the offshore platform targets currently being focused on; V gis the value tensor in the global branch, which represents the feature representation of each position in the remote sensing image in the global branch. g When the V g It is used to update the results of offshore platform target recognition; Pool (K g )、Pool(V g ) are respectively g 、V g Perform pooling operation; Attntion is the self-attention function; X global is the weighted global feature.
[0091] The global branch effectively reduces the number of floating point operations per second (FLOPs) required to calculate attention, while generating a global receptive field. Although the global branch effectively captures low-frequency global information, it lacks processing of high-frequency local information. Therefore, AttnConv is proposed in the local branch to overcome this shortcoming. AttnConv uses both shared weights and context-aware weights. In the AttnConv structure, it is the same as the standard attention, Q p , K p and V p It is obtained by linear transformation:
[0092] Q p ,K p ,V p =FC(X in ) (2)
[0093] In formula (2), Q p is the feature vector extracted from the remote sensing image in the local branch, which is used to find targets related to offshore platforms in the remote sensing image; K p is the feature vector at different positions in the remote sensing image in the local branch, used to compare with Q p Compare and determine which locations are relevant to the offshore platform targets currently being focused on; V p is the feature representation of each position in the remote sensing image in the local branch. p When the V p Used to update the results of offshore platform target identification; X in is the input feature vector of AttnConv, and FC represents a fully connected neural network. After linear transformation, V p The local feature information aggregation processing of shared weights is performed through deep convolution (DWconv), and the weights of DWconv are globally shared:
[0094] V s =DWconv(V p ) (3)
[0095] Among them, V s is the value tensor after the depth-separable convolution processing, which contains the local feature information in the remote sensing image. p After integrating the local information of Q with the shared weights, p , K p Combined with the generated context-aware weights, at this time, two DWconvs are used to aggregate Q p and K p The local information of the image is obtained; then the Hadamard product is calculated; and the result is transformed by the Swish function and the Tanh function to obtain the context-aware weight between -1 and 1; finally, the generated weight is used to enhance the local features. The process is as follows:
[0096] Q l =DWconv(Q p ) (4)
[0097] K l =DWconv(K p ) (5)
[0098] Attn t =FC(Swish(FC(Q l ⊙K l ))) (6)
[0099]
[0100] X local =(Attn⊙V s ) (8)
[0101] Among them, Q l The query tensor after depthwise separable convolution in the local branch; K l is the key tensor after depthwise separable convolution in the local branch; ⊙ is the Hadamard product; d is the number of channels of the original context-aware weight; Attn t is the original context-aware weight; Attn is the final context-aware weight generated after nonlinear transformation; X local is the weighted local feature representation. Then, the outputs of the global branch and the local branch are concatenated in the channel dimension through Concat, and a fully connected layer network is applied in the channel dimension, as shown below:
[0102] X t =Concat(X local ,X global ) (9)
[0103] Xout =FC(X t ) (10)
[0104] Among them, X t It is the concatenated local feature and global feature representation; X out Given X t Feature representation of the network output after the fully connected layer.
[0105] The C2f_CloAtt structure introduces the CloAttention module in each bottleneck part. The CloAttention module enables the context-aware weights to better adapt to the input content during the local perception process. The introduction of shared weights enables the model to better process high-frequency information, thereby improving performance.
[0106] (3) In the SAR branch, SPD_Conv is used to replace the Conv operation of the SAR branch backbone extraction network to convert image spatial information into depth information, so that the SAR branch can learn SAR image features more effectively;
[0107] In order to further extract the features of SAR images, in the backbone feature extraction network of the SAR branch, the Conv operation is replaced by the spatial depth conversion convolution SPD_Conv, that is, it is realized by the spatial to depth layer (SPD) and the non-step convolution layer (Conv), and the image spatial information is converted into depth information, so that the model SAR branch can learn SAR image features more effectively. SPD_Conv first converts the input feature map through the SPD layer, and then the output result is convolved through the Conv layer. This combination can reduce the size of the spatial dimension without losing information, while retaining the information in the channel, which helps to improve the model's detection performance for offshore platforms on the SAR branch.
[0108] The role of the SPD layer is to reduce each spatial dimension of the input feature map to a channel dimension while retaining the information within the channel. SPD is achieved by mapping each pixel or feature of the input feature map to a channel, in which the size of the spatial dimension is reduced while the size of the channel dimension is increased. After the SPD layer, a non-stride convolution operation is performed. Unlike the stride convolution, the non-stride convolution does not move across the feature map, but instead performs a convolution operation on each pixel or feature map. This helps reduce the over-downsampling problem that may occur in the SPD layer while retaining more fine-grained information.
[0109] (4) In the backbone feature extraction networks of the optical branch and the SAR branch, three effective feature layers of different scales are obtained respectively, and the SPPF structure is introduced in the last effective feature layer of each branch for feature extraction. The SPPF structure uses the maximum pooling with the same pooling kernel for feature extraction, which improves the classification accuracy of the feature map while improving the classification speed.
[0110] (5) The three effective feature layers obtained from the trunk feature extraction network on each branch are transmitted to the Neck structure of the feature enhancement network layer, and the feature extraction is further enhanced through up- and down-sampling.
[0111] In the three effective feature layers transmitted from the SAR branch, SPD_Conv replaces the original stride convolution and pooling layers of the model. The SPD layer is used to convert the spatial dimension information of the feature map into depth dimension information, and more information is retained by increasing the number of channels. Then, the non-stride convolution layer is used to maintain the spatial dimension while reducing the number of channels. In the Neck structure, SPD_Conv can further process the feature map to obtain features of different scales, thereby improving the ability to detect objects of different sizes.
[0112] (6) In the optical branch, the feature map containing spatial attention is obtained by integrating the contextual attention module (CAM) and calculating the target position saliency to find the target of interest, that is, the offshore platform. Further attention is paid to the offshore platform target, and the feature extraction is enhanced to improve the feature extraction capability of small targets.
[0113] For the effective feature layer transmitted from the optical branch, the contextual attention module (CAM) is integrated during the strong feature extraction. The CAM module calculates the saliency of the position from the channel dimension and the local spatial dimension respectively. In one of the branches of the CAM module, a feature map containing spatial attention can be generated by performing maximum pooling and average pooling operations on the input features and fusing them in the channel dimension; in the other branch of the CAM module, the attention map is calculated through a 3×3 convolution operation to reflect the influence of neighboring pixels on the position saliency in the local spatial dimension; finally, the features on the two branches are spliced in the channel. Therefore, in the effective feature layer F p , p∈{1,2,…,n}, CAM can be expressed as:
[0114] att1=σ(Conv 3×3 (Concat(max(F p ),avg(F p )))) (11)
[0115] att2=σ(Conv 3×3 (F p)) (12)
[0116] CAM=att1+att2 (13)
[0117] Among them, att1 is the attention feature map generated on one branch of the CAM module; att2 is the attention feature map generated on the other branch of the CAM module; σ represents the sigmoid operation; max(·) and avg(·) represent the maximum pooling and average pooling of the channel dimension respectively. The CAM module can obtain a feature map containing spatial attention after convolution in the channel dimension, and find the target of interest by calculating the position significance of the target. Therefore, the CAM module is applied to the initial stage of each layer of Neck, which can preferentially receive the upper layer features.
[0118] (7) In the last layer of the Neck part of the feature enhancement network structure, the three effective feature layers of the optical and SAR images are concat-fused respectively to obtain feature information of different scales, thereby realizing the heterogeneous information fusion of the pseudo-twin target detection model; and the classification and regression operations are implemented through YOLO Head (the detection head part of the pseudo-twin target detection model) to obtain the prediction and regression results.
[0119] S3, training an offshore platform target detection model, inputting the offshore platform data set (training set and validation set) based on multi-temporal heterogeneous remote sensing images in step (1) into step (2), and obtaining a prediction network model suitable for the data set scenario; the specific implementation steps are:
[0120] The offshore platform dataset based on multi-temporal heterogeneous remote sensing images in step (1) is input into step (2), and the optical and SAR images are respectively subjected to feature extraction through the offshore platform target detection model. The feature extraction capability of the network is continuously optimized through the feature enhancement network layer, and the feature extraction effect is further enhanced, and finally the offshore platform target detection model is obtained.
[0121] S4. Input the optical and SAR image pairs to be detected (ie, the test set) into the prediction network model obtained in step S3, and output the position information of the offshore platform target detection frame in the optical and SAR image pairs to be detected.
[0122] Figure 4 (a) is the original image of the Sentinel-1 remote sensing image of the embodiment, Figure 4 (b) is the original Sentinel-2 remote sensing image of the entire scene of the embodiment. Figure 5 The figure shows the detection result of an embodiment of the present invention, and the red rectangular frame is the position of the offshore platform target detection frame detected by the offshore platform target detection model. Figure 6This is a local enlarged view of the detection result of an embodiment of the present invention. The red rectangular box is the location of the offshore platform target detection box. The offshore platform target detection method based on multi-temporal heterogeneous source remote sensing images and pseudo-twin networks can achieve a minimum offshore platform detection capability of 5×5 pixels.
[0123] The offshore platform target detection system based on multi-temporal heterogeneous source remote sensing images and pseudo-twin network of the present invention comprises:
[0124] The dataset construction module is used to construct an offshore platform dataset based on multi-temporal and heterogeneous remote sensing images;
[0125] The model building module is used to build an offshore platform target detection model based on a pseudo-twin network of the YOLOv8 network structure. The original single-branch trunk feature extraction structure of the YOLOv8 network structure is transformed into a trunk feature extraction network structure of the offshore platform target detection model that can simultaneously input SAR images and optical images of different phases, and obtain three effective feature layers of different scales on each branch; then, feature enhancement network layers based on optical and SAR images are respectively constructed to achieve further feature extraction of the effective feature layers on each branch, thereby improving the model's feature extraction capability for small offshore platform targets; and in the last layer of the Neck part of the feature enhancement network layer, the three effective feature layers of optical and SAR images are respectively fused to obtain feature information of different scales; finally, classification and regression operations are implemented through YOLO Head to obtain prediction and regression results;
[0126] A model training module is used to train the offshore platform target detection model constructed by the model construction module based on the offshore platform dataset based on multi-temporal heterogeneous remote sensing images constructed by the dataset construction module, and obtain a prediction network model suitable for the dataset scenario;
[0127] The testing module is used to input the optical and SAR image pairs to be detected into the prediction network model obtained by the model training module, and output the position information of the offshore platform target detection frame in the optical and SAR image pairs to be detected.
[0128] An electronic device of the present invention comprises:
[0129] A memory storing executable program code;
[0130] a processor coupled to the memory;
[0131] The processor calls the executable program code stored in the memory to execute the steps of the above-mentioned offshore platform target detection method based on multi-temporally heterogeneous source remote sensing images and pseudo-twin networks.
[0132] A computer-readable storage medium of the present invention stores computer instructions, which, when called, are used to execute the steps of the above-mentioned offshore platform target detection method based on multi-temporally heterogeneous source remote sensing images and pseudo-twin networks.
Claims
1. A method for detecting offshore platform targets based on multi-temporal heterogeneous remote sensing images and pseudo-twin networks, characterized in that: include: S1. Construct an offshore platform dataset based on multi-temporal and heterogeneous remote sensing images; S2. Construct an offshore platform target detection model based on a pseudo-twin network of the YOLOv8 network structure, transform the original single-branch trunk feature extraction structure of the YOLOv8 network structure into a trunk feature extraction network structure of the offshore platform target detection model that can simultaneously input SAR images and optical images of different phases, and obtain three effective feature layers of different scales on each branch; then construct feature enhancement network layers based on optical and SAR images respectively, realize further feature extraction of effective feature layers on each branch, and improve the model's feature extraction capability for small targets of offshore platforms; and perform feature fusion on the three effective feature layers of optical and SAR images in the last layer of the Neck part of the feature enhancement network layer to obtain feature information of different scales; finally, implement classification and regression operations through YOLO Head to obtain prediction and regression results; The original single-branch backbone feature extraction structure of the YOLOv8 network structure is transformed into a backbone feature extraction network structure of the offshore platform target detection model that can simultaneously input SAR images and optical images of different phases, and obtain three effective feature layers of different scales on each branch, specifically: (1) The C2f_CloAtt structure is used in both the optical branch and the SAR branch. The C2f_CloAtt structure introduces the CloAttention module in each bottleneck part. The C2f_CloAtt structure includes the C2f module and the CloAttention module. The CloAttention module consists of a local branch and a global branch. In the global branch, downsampling and self-attention mechanisms are used to effectively extract low-frequency global information in the offshore platform dataset. The expression is: X global =Attntion(Q g ,Pool(K g ),Pool(V g )) Among them, Q g is the query tensor in the global branch, which represents the feature vector extracted from the remote sensing image in the global branch and is used to find targets related to offshore platforms in the remote sensing image; K g is the key tensor in the global branch, representing the feature vectors at different positions in the remote sensing image in the global branch, used to compare with Q g Compare and determine which locations are relevant to the offshore platform targets currently being focused on; V g is the value tensor in the global branch, which represents the feature representation of each position in the remote sensing image in the global branch. g When the V g It is used to update the results of offshore platform target recognition; Pool (K g )、Pool(V g ) are respectively g 、V g Perform pooling operation; Attntion is the self-attention function; X global is the weighted global feature; AttnConv is used in the local branch, and the structure of AttnConv is the same as the standard attention. In the local branch, the fully connected neural network linear transformation is first performed through the feature vector to obtain the corresponding Q p , K p , V p , the expression is: Q p ,K p ,In p =FC(X in ) Among them, Q p K represents the feature vector extracted from the remote sensing image in the local branch, which is used to find targets related to offshore platforms in the remote sensing image; p Represents the feature vectors at different locations in the remote sensing image in the local branch, which are used to compare with Q p Compare and determine which locations are relevant to the offshore platform targets currently being focused on; V p Indicates the feature representation of each position in the remote sensing image in the local branch. When a position is consistent with Q p When the V p Used to update the results of offshore platform target identification; X in is the input feature vector of AttnConv, FC represents a fully connected neural network; Secondly, after linear transformation of the fully connected neural network, Q p , K p , V p Use depthwise separable convolution to enhance the network branch's ability to perceive local information, thereby retaining spatial information while improving computational efficiency. The expression is: V s =DWconv(V p ) Q l =DWconv(Q p ) K l =DWconv(K p ) Among them, V s is the value tensor after depthwise separable convolution in the local branch; Q l is the query tensor after depthwise separable convolution in the local branch; K l is the key tensor after depthwise separable convolution in the local branch; DWconv is the depthwise separable convolution function; Then, by l , K l Perform a Hadamard product, and pass the result through a fully connected layer and apply the Swish activation function, as well as another fully connected layer, to finally generate a context-aware weight between -1 and 1, expressed as: Attn t =FC(Swish(FC(Q l ⊙K l ))) Among them, ⊙ is the Hadamard product, Swish is the Swish activation function, Attn t is the original context-aware weight, FC is the fully connected neural network; The original context-aware weights are normalized by the Tanh function, and the expression is: Among them, d is the number of channels of the original context-aware weight, Attn is the final context-aware weight generated after nonlinear transformation; Then, the final context-aware weight Attn is combined with V s Generate weighted local features, the expression is: X local =(Attn⊙V s ) Among them, X local It is the weighted local feature representation; Then, the outputs of the global branch and the local branch are concatenated in the channel dimension through Concat, and a fully connected layer network is applied in the channel dimension, as shown below: X t =Concat(X local ,X global ) X out =FC(X t ) Among them, X t It is the concatenated local feature and global feature representation; X out Given X t Feature representation of the output of the post-fully connected layer network; (2) In the SAR branch, the spatial depth conversion convolution SPD_Conv is used to replace the Conv operation of the SAR branch backbone extraction network to convert the image spatial information into depth information; (3) In the backbone feature extraction networks of the optical branch and the SAR branch, three effective feature layers of different scales are obtained respectively, and the SPPF structure is introduced in the last effective feature layer of each branch for feature extraction; the SPPF structure is used for feature extraction by using maximum pooling; S3, training the offshore platform target detection model constructed in step S2 based on the offshore platform data set based on multi-temporal heterogeneous source remote sensing images in step S1, and obtaining a prediction network model suitable for the scenario of the data set; S4, inputting the optical and SAR image pairs to be detected into the prediction network model obtained in step S3, and outputting the position information of the offshore platform target detection frame in the optical and SAR image pairs to be detected.
2. The offshore platform target detection method based on multi-temporal heterogeneous remote sensing images and pseudo-twin network according to claim 1 is characterized in that: Step S1 specifically includes: (1) Multiple Sentinel-1 and Sentinel-2 remote sensing images with the same spatial range acquired at different times are selected as data sources, cropped to a preset pixel size, and annotated to form a set of offshore platform datasets based on multi-temporal heterogeneous source remote sensing images. The dataset includes: optical image and SAR image pairs of offshore platforms and corresponding label files; (2) Perform data sample expansion preprocessing on the offshore platform dataset based on multi-temporal and heterogeneous remote sensing images, and at the same time, add negative samples to the dataset to enhance the sample dataset; (3) The enhanced offshore platform dataset based on multi-temporal and heterogeneous remote sensing images is divided into a training set and a validation set.
3. The offshore platform target detection method based on multi-temporal heterogeneous remote sensing images and pseudo-twin networks according to claim 2 is characterized in that: In step (1), the data source is cropped to a preset pixel size and annotated, specifically: The data source is cropped to a uniform size of preset pixels. The cropping areas of optical images and SAR images are the same, and images with offshore engineering platforms are screened out. The cropped image pairs are manually annotated using Labelimg software to form an offshore engineering platform dataset based on multi-temporal heterogeneous source remote sensing images.
4. The offshore platform target detection method based on multi-temporal heterogeneous remote sensing images and pseudo-twin networks according to claim 2 is characterized in that: The method for data sample expansion in step (2) is color jittering, which performs data enhancement by adjusting the hue, brightness and saturation of the optical image; the negative samples are ships and offshore wind power.
5. The offshore platform target detection method based on multi-temporal heterogeneous remote sensing images and pseudo-twin network according to claim 1 is characterized in that: In step S2, feature enhancement network layers based on optical and SAR images are constructed respectively to achieve further feature extraction of the effective feature layer on each branch, specifically: The three effective feature layers obtained from the trunk feature extraction network on each branch are transmitted to the Neck structure of the feature enhancement network layer, and feature extraction is further enhanced through up- and down-sampling; In the three effective feature layers transmitted from the SAR branch, SPD_Conv is used to replace the original stride convolution and pooling layers of the model, and the spatial dimension information of the feature map is converted into depth dimension information using the spatial depth layer SPD. More information is retained by increasing the number of channels, and then the non-stride convolution layer is used to maintain the spatial dimension while reducing the number of channels. In the optical branch, the feature map containing spatial attention is obtained by fusing the contextual attention module (CAM) and the target object of interest, namely the offshore platform, is discovered by calculating the target position significance. Further attention is paid to the offshore platform target to achieve enhanced feature extraction.
6. The offshore platform target detection method based on multi-temporal heterogeneous remote sensing images and pseudo-twin networks according to claim 5 is characterized in that: Enhanced feature extraction is implemented on the optical branch, specifically: In one branch, CAM generates a feature map containing spatial attention by performing maximum pooling and average pooling operations on the input features and fusing them in the channel dimension. In the other branch, the attention map is calculated through convolution operations to reflect the influence of neighboring pixels on the position significance in the local spatial dimension. Finally, the features on the two branches are spliced in the channel. Therefore, in the effective feature layer F p , p∈{1, 2, ..., n}, CAM is expressed as: att1=σ(Conv 3×3 (Concat(max(F p ),avg(F p )))) att2=σ(Conv 3×3 (F p )) CAM=att1+att2 Among them, σ represents the sigmoid operation; Conv 3×3 represents a 3×3 convolution operation; max(·) and avg(·) represent the maximum pooling and average pooling of the channel dimension respectively; att1 is the attention feature map on one branch of CAM; att2 is the attention feature map on the other branch of CAM.
7. Offshore platform target detection system based on multi-temporal heterogeneous remote sensing images and pseudo-twin network, characterized by: include: The dataset construction module is used to construct an offshore platform dataset based on multi-temporal and heterogeneous remote sensing images; The model building module is used to build an offshore platform target detection model based on a pseudo-twin network of the YOLOv8 network structure. The original single-branch trunk feature extraction structure of the YOLOv8 network structure is transformed into a trunk feature extraction network structure of the offshore platform target detection model that can simultaneously input SAR images and optical images of different phases, and obtain three effective feature layers of different scales on each branch; then, feature enhancement network layers based on optical and SAR images are respectively constructed to achieve further feature extraction of the effective feature layers on each branch, thereby improving the model's feature extraction capability for small offshore platform targets; and in the last layer of the Neck part of the feature enhancement network layer, the three effective feature layers of optical and SAR images are respectively fused to obtain feature information of different scales; finally, classification and regression operations are implemented through YOLO Head to obtain prediction and regression results; The original single-branch backbone feature extraction structure of the YOLOv8 network structure is transformed into a backbone feature extraction network structure of the offshore platform target detection model that can simultaneously input SAR images and optical images of different phases, and obtain three effective feature layers of different scales on each branch, specifically: (1) The C2f_CloAtt structure is used in both the optical branch and the SAR branch. The C2f_CloAtt structure introduces the CloAttention module in each bottleneck part. The C2f_CloAtt structure includes the C2f module and the CloAttention module. The CloAttention module consists of a local branch and a global branch. In the global branch, downsampling and self-attention mechanisms are used to effectively extract low-frequency global information in the offshore platform dataset. The expression is: X global =Attntion(Q g ,Pool(K g ),Pool(V g )) Among them, Q g is the query tensor in the global branch, which represents the feature vector extracted from the remote sensing image in the global branch and is used to find targets related to offshore platforms in the remote sensing image; K g is the key tensor in the global branch, representing the feature vectors at different positions in the remote sensing image in the global branch, used to compare with Q g Compare and determine which locations are relevant to the offshore platform targets currently being focused on; V g is the value tensor in the global branch, which represents the feature representation of each position in the remote sensing image in the global branch. g When the V g It is used to update the results of offshore platform target recognition; Pool (K g )、Pool(V g ) are respectively g 、V g Perform pooling operation; Attntion is the self-attention function; X global is the weighted global feature; AttnConv is used in the local branch, and the structure of AttnConv is the same as the standard attention. In the local branch, the fully connected neural network linear transformation is first performed through the feature vector to obtain the corresponding Q p , K p , V p , the expression is: Q p ,K p ,In p =FC(X in ) Among them, Q p K represents the feature vector extracted from the remote sensing image in the local branch, which is used to find targets related to offshore platforms in the remote sensing image; p Represents the feature vectors at different locations in the remote sensing image in the local branch, which are used to compare with Q p Compare and determine which locations are relevant to the offshore platform targets currently being focused on; V p Indicates the feature representation of each position in the remote sensing image in the local branch. When a position is consistent with Q p When the V p Used to update the results of offshore platform target identification; X in is the input feature vector of AttnConv, FC represents a fully connected neural network; Secondly, after linear transformation of the fully connected neural network, Q p , K p , V p Use depthwise separable convolution to enhance the network branch's ability to perceive local information, thereby retaining spatial information while improving computational efficiency. The expression is: V s =DWconv(V p ) Q l =DWconv(Q p ) K l =DWconv(K p ) Among them, V s is the value tensor after depthwise separable convolution in the local branch; Q l is the query tensor after depthwise separable convolution in the local branch; K l is the key tensor after depthwise separable convolution in the local branch; DWconv is the depthwise separable convolution function; Then, by l , K l Perform a Hadamard product, and pass the result through a fully connected layer and apply the Swish activation function, as well as another fully connected layer, to finally generate a context-aware weight between -1 and 1, expressed as: Attn t =FC(Swish(FC(Q l ⊙K l ))) Among them, ⊙ is the Hadamard product, Swish is the Swish activation function, Attn t is the original context-aware weight, FC is the fully connected neural network; The original context-aware weights are normalized by the Tanh function, and the expression is: Among them, d is the number of channels of the original context-aware weight, Attn is the final context-aware weight generated after nonlinear transformation; Then, the final context-aware weight Attn is combined with V s Generate weighted local features, the expression is: X local =(Attn⊙V s ) Among them, X local It is the weighted local feature representation; Then, the outputs of the global branch and the local branch are concatenated in the channel dimension through Concat, and a fully connected layer network is applied in the channel dimension, as shown below: X t =Concat(X local ,X global ) X out =FC(X t ) Among them, X t It is the concatenated local feature and global feature representation; X out Given X t Feature representation of the output of the post-fully connected layer network; (2) In the SAR branch, the spatial depth conversion convolution SPD_Conv is used to replace the Conv operation of the SAR branch backbone extraction network to convert the image spatial information into depth information; (3) In the backbone feature extraction networks of the optical branch and the SAR branch, three effective feature layers of different scales are obtained respectively, and the SPPF structure is introduced in the last effective feature layer of each branch for feature extraction; the SPPF structure is used for feature extraction by using maximum pooling; A model training module is used to train the offshore platform target detection model constructed by the model construction module based on the offshore platform dataset based on multi-temporal heterogeneous remote sensing images constructed by the dataset construction module, and obtain a prediction network model suitable for the dataset scenario; The testing module is used to input the optical and SAR image pairs to be detected into the prediction network model obtained by the model training module, and output the position information of the offshore platform target detection frame in the optical and SAR image pairs to be detected.
8. An electronic device, characterized in that: The device comprises: A memory storing executable program code; a processor coupled to the memory; The processor calls the executable program code stored in the memory to execute the steps of the offshore platform target detection method based on multi-temporal heterogeneous source remote sensing images and pseudo-twin networks as described in any one of claims 1-7.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, which, when called, are used to execute the steps of the offshore platform target detection method based on multi-temporally heterogeneous source remote sensing images and pseudo-twin networks as described in any one of claims 1 to 7.
