Ocean remote sensing picture-text retrieval method and system based on class perception expert routing

By employing a class-aware expert routing approach, this study addresses the differences in information content and alignment in marine remote sensing image retrieval. It utilizes a hybrid Transformer network and expert model for feature optimization, resolving the issues of information content and alignment differences between categories and improving the accuracy and stability of retrieval.

CN123138461APending Publication Date: 2026-11-20OCEAN UNIV OF CHINA
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611279509.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-21
Publication Date
2026-11-20

AI Technical Summary

Technical Problem

Existing technologies fail to effectively consider the uneven differences in information content between categories and the differences in cross-modal alignment in marine remote sensing image retrieval, resulting in low retrieval accuracy.

Method used

A class-aware expert routing approach is adopted. Through single-modal and cross-modal feature optimization, and by using a hybrid Transformer network and expert model, feature extraction and alignment are performed on remote sensing data with different information content and alignment. Clustering algorithm is used to obtain information content and alignment features, and feature optimization and similarity calculation are achieved through class-aware expert routing.

Benefits of technology

It improves the robustness of feature extraction and the accuracy of cross-modal alignment, and enhances the accuracy and stability of marine remote sensing image retrieval.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123138461A_ABST
    Figure CN123138461A_ABST
Patent Text Reader

Abstract

The present application belongs to the technical field of cross-modal retrieval of marine remote sensing data, and particularly relates to a marine remote sensing image-text retrieval method and system based on class perception expert routing, which comprises the following steps: mapping marine remote sensing image data and text data to image embedding and text embedding, respectively entering single-modal image and single-modal text information driven Transformer for information-driven feature optimization processing, adopting class perception expert routing to distribute expert weights, and outputting image features and text features in the last layer; at the same time, the image embedding and the text embedding jointly enter cross-modal alignment driven Transformer for alignment-driven feature optimization processing, adopt class perception expert routing to distribute expert weights, output image features and text features in the last layer, and finally calculate ternary loss. The present application solves the problems of uneven information quantity among categories and inaccurate cross-modal alignment, and finally improves the accuracy of model retrieval.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of remote sensing image tampering detection technology, and specifically relates to a marine remote sensing image retrieval method and system based on class-aware expert routing. Background Technology

[0002] Marine remote sensing data, characterized by its all-day, all-weather, and all-directional nature, is widely used in important fields such as pollution monitoring and target identification. Remote sensing image retrieval utilizes cross-modal retrieval algorithms to automatically retrieve accurate text data describing a satellite remote sensing image, or to automatically retrieve matching remote sensing images from a database based on given text data.

[0003] Currently, the key processes of cutting-edge image-text retrieval methods mainly involve: performing feature engineering on text and image data to extract corresponding text and image features; then calculating the similarity between the two features, and using the image and text features with the highest similarity as the best retrieval matching pair. However, this image-text retrieval method faces the problem of huge computational costs. Therefore, the pre-trained network method based on Contrastive Language-Image Pre-training (CLIP) has become a research hotspot in the field of cross-modal retrieval. The process mainly involves: pre-training CLIP's image encoder and text encoder on a large-scale dataset; then, directly transferring the pre-trained image encoder and text encoder to the cross-modal retrieval network to generate text and image features and calculate triplet loss in the downstream task; where CLIP's image encoder and text encoder are both Transformer networks.

[0004] The above methods still have the following shortcomings when applied to the field of marine remote sensing imagery:

[0005] The information content varies significantly between categories. Marine remote sensing data includes many categories, such as ships, beaches, and islands, and different categories have different amounts of information. For example, the ship category contains information such as ship color, number of ships, and ship location, thus it has a high information content and is more discriminative. This allows for better image-text matching in cross-modal retrieval. In contrast, the beach category contains less information, usually just the semantic meaning of "beach," resulting in lower discriminativeness and hindering better cross-modal matching. Current methods do not consider the uneven information content between categories and use a uniform training mode for all categories, making it impossible for the model to simultaneously handle data with varying information content, thus failing to perform well in retrieval tasks.

[0006] Achieving accurate alignment across modalities is challenging. While the methods described above, trained on cross-modal datasets, can map multimodal data into a unified space, remote sensing data inherently exhibits cross-modal discrepancies. In certain classes, such as data with limited information, the unified space effectively achieves global alignment across modalities. However, for data with high information content, the inconsistency between images and text becomes fully apparent. For example, in the ship category, images contain rich information, but text only describes some or partial details, highlighting the inherent cross-modal discrepancies in remote sensing. Current methods fail to consider these cross-modal discrepancies across different categories, applying a uniform alignment mechanism to all data types. This prevents the model from accurately learning alignment strategies suitable for varying alignment levels, thus limiting retrieval performance. Summary of the Invention

[0007] To address the shortcomings of existing technologies, this invention proposes a marine remote sensing image retrieval method and system based on class-aware expert routing. It designs an alignment-driven feature optimization method and an expert hybrid model, solving the problem of difficulty in achieving accurate alignment across modalities.

[0008] To achieve the above objectives, the first aspect of this application proposes a marine remote sensing image retrieval method based on class-aware expert routing, comprising the following steps:

[0009] S1. Single-modal information drives Transformer input:

[0010] Mapping marine remote sensing image data and text data to image embedding and text embedding Then they enter the single-modal image information driven Transformer and the single-modal text information driven Transformer respectively;

[0011] S2. Single-modal information-driven feature optimization and class-aware expert routing:

[0012] The image embedding and the text embedding Information-driven feature optimization is performed in N layers of both a single-modal image-driven Transformer and a single-modal text-driven Transformer to obtain optimized image features. and text optimization features The image optimization features and the text optimization features After assigning expert weights through class-aware expert routing in the expert hybrid model, the outputs of the last layer of the single-modal image information-driven Transformer and the single-modal text information-driven Transformer are mapped to the same dimension to generate image features. Text features ;

[0013] S3, Cross-modal alignment-driven feature optimization and class-aware expert routing:

[0014] Meanwhile, the image embedding and the text embedding These features are then fed into the cross-modal alignment-driven Transformer. Within the N layers of the cross-modal alignment-driven Transformer, image optimization features are obtained through alignment-driven feature optimization processing. and text optimization features The image optimization features and text optimization features After assigning expert weights through class-aware expert routing in the expert hybrid model, the cross-modal alignment drives the output of the last layer of the Transformer to be mapped to the same dimension, generating image features. and text features ;

[0015] S4. Calculation of ternary loss:

[0016] The image features With the text features Computational information drives the Transformer ternary loss, while the image features and text features Calculate the alignment-driven Transformer ternary loss and sum the results to obtain the total loss. Iterate through steps S1-S4 and perform backpropagation training.

[0017] S5. Inputs and Outputs:

[0018] Input the marine remote sensing image or marine remote sensing text to be retrieved, and output the marine remote sensing text or marine remote sensing image.

[0019] Furthermore, the image embedding and the text embedding Information-driven feature optimization is performed in N layers of both single-modal image-driven and single-modal text-driven Transformers to obtain optimized image features. and text optimization features ,include:

[0020] S2.1, the image embedding and the text embedding In both single-modal image-driven and single-modal text-driven Transformers, intermediate image features are obtained after N layers of Transformer processing. and text intermediate features In this process, each of the N Transformer layers undergoes self-attention, residual connection, and layer normalization in sequence.

[0021] S2.2, the intermediate features of the image and the text intermediate features Information-driven feature optimization processing is used to obtain optimized image features. and text optimization features The information-driven feature optimization process employs the k-means clustering algorithm to obtain information-rich data corresponding to the image and text, including: the category, cluster center features, and variance features of the image and text. This information-rich data is then convolved and mapped to image information activation factors and text information activation factors. These activation factors are then correlated with the image's intermediate features. and the text intermediate features Spatial concatenation is performed to obtain optimized image features. and text optimization features .

[0022] Furthermore, the image optimization features and the text optimization features After assigning expert weights through the class-aware expert routing of the expert hybrid model, the outputs of the last layer of the single-modal image information-driven Transformer and the single-modal text information-driven Transformer are mapped to the same dimension to generate image features. Text features ,include:

[0023] S2.3, the image optimization features and the text optimization features The expert hybrid model employs a class-aware expert routing definition to define class-aware expert queries, and is continuously trained and optimized, respectively, to optimize the image features. and the text optimization features Perform similarity calculations, after The activation weight of each expert is obtained and represented as follows:

[0024] = ;

[0025] = ;

[0026] in, Number of representative experts The index number representing the expert. Representing the Each expert corresponds to a feedforward neural network. Optimization features that drive the Transformer based on image information And class perception expert query The number of channels, 'Represents optimized features that drive the Transformer with text information' Class perception expert query The number of channels, It is a superparameter. Representative expert hybrid model, This represents the image expert routing layer that drives the Transformer based on image information. This represents a text expert routing layer that drives the Transformer with text information.

[0027] S2.4, the image optimization features and the text optimization features Separately with the image expert routing layer and text expert routing layer Residual connections, after layer normalization, generate the first... Image output of Transformer driven by single-modal image information Text output of Transformer driven by single-modal text information ;

[0028] S2.5 The outputs of the last layer of the single-modal image information-driven Transformer and the single-modal text information-driven Transformer are mapped to the same dimension to generate image features. Text features .

[0029] Furthermore, the image embedding and the text embedding They all enter the cross-modal alignment-driven Transformer, where image optimization features are obtained through alignment-driven feature optimization processing in the N layers of the cross-modal alignment-driven Transformer. and text optimization features ,include:

[0030] S3.1, the image embedding and the text embedding In the cross-modal alignment driven Transformer, the intermediate features of the image are obtained after N layers of Transformer processing. and text intermediate features In this process, each of the N Transformer layers sequentially performs self-attention, residual connections, and layer normalization.

[0031] S3.2, the intermediate features of the image and the text intermediate features Image optimization features are obtained by performing alignment-driven feature optimization processing. and text optimization features The alignment-driven feature optimization process involves subtracting the image cluster center features and text cluster center features obtained from the information-driven feature optimization process, subtracting the image variance features and text variance features, and then spatially concatenating them. After convolutional mapping to obtain alignment activation factors, these are then respectively coupled with the image intermediate features. and the text intermediate features Combined, image optimization features are obtained. and text optimization features .

[0032] Furthermore, the image optimization features and text optimization features After assigning expert weights through class-aware expert routing in the expert hybrid model, the cross-modal alignment drives the output of the last layer of the Transformer to be mapped to the same dimension, generating image features. and text features ,include:

[0033] S3.3, the image optimization features and the text optimization features The expert hybrid model employs a class-aware expert routing definition to define class-aware expert queries, and is continuously trained and optimized, respectively, to optimize the image features. and the text optimization features Perform similarity calculations, after The activation weight of each expert is obtained and represented as follows:

[0034] = ;

[0035] = ;

[0036] in, Number of representative experts The index number representing the expert. Representing the Each expert corresponds to a feedforward neural network, where u represents the image optimization feature. And class perception expert query The number of channels, u' represents the text optimization feature. Class perception expert query The number of channels, It is a superparameter. Representative expert hybrid model, This represents the image expert routing layer that drives the Transformer through cross-modal alignment. This represents the text expert routing layer that drives the Transformer for cross-modal alignment;

[0037] S3.4, the image optimization features and the text optimization features Image expert routing layer that drives Transformer with cross-modal alignment respectively and text expert routing layer Residual connections, after layer normalization, generate the first... Layer cross-modal alignment drives the image output of the Transformer and text output ;

[0038] S3.5 The outputs of the last layer of the single-modal image information-driven Transformer and the single-modal text information-driven Transformer are mapped to the same dimension to generate image features. Text features .

[0039] Furthermore, the calculation of the ternary loss is expressed as follows:

[0040] ;

[0041] ;

[0042] in, This represents a negative sample image generated by the Transformer, driven by image information. This represents negative sample text generated by the Transformer, driven by textual information. Represents the similarity between two features; , Indicates the interval parameter. This indicates that the information drives the Transformer ternary loss. This represents a negative sample image generated by the alignment-driven Transformer. This represents negative sample text generated by the alignment-driven Transformer. This represents the alignment-driven Transformer ternary loss.

[0043] A second aspect of this invention proposes a marine remote sensing image retrieval system based on class-aware expert routing, the marine remote sensing image retrieval system comprising:

[0044] Single-modal information drives the Transformer input module to map marine remote sensing image data and text data to image embeddings. and text embedding Then they enter the single-modal image information driven Transformer and the single-modal text information driven Transformer respectively;

[0045] A single-modal information-driven feature optimization and class-aware expert routing module is used to embed the image. and the text embedding Information-driven feature optimization is performed in N layers of both a single-modal image-driven Transformer and a single-modal text-driven Transformer to obtain optimized image features. and text optimization features The image optimization features and the text optimization features After assigning expert weights through the class-aware expert routing of the expert hybrid model, the outputs of the last layer of the single-modal image information-driven Transformer and the single-modal text information-driven Transformer are mapped to the same dimension to generate image features. Text features ;

[0046] A cross-modal alignment-driven feature optimization and class-aware expert routing module is used to embed the image. and the text embedding These features are then fed into the cross-modal alignment-driven Transformer. Within the N layers of the cross-modal alignment-driven Transformer, image optimization features are obtained through alignment-driven feature optimization processing. and text optimization features The image optimization features and text optimization features After assigning expert weights through class-aware expert routing in the expert hybrid model, the cross-modal alignment drives the output of the last layer of the Transformer to be mapped to the same dimension, generating image features. and text features ;

[0047] The ternary loss calculation module is used to calculate the image features. With the text features Calculate the ternary loss, while the image features and text features Calculate the ternary loss and sum the results to obtain the total loss. Iterate through steps S1-S4 and perform backpropagation training.

[0048] The input and output modules are used to input marine remote sensing images or marine remote sensing text to be retrieved, and to output marine remote sensing text or marine remote sensing images.

[0049] Compared with the prior art, the advantages of the present invention are as follows:

[0050] Different training strategies are employed for class features encompassing varying amounts of information, improving the robustness of feature extraction. Practical experience shows that cross-modal retrieval accuracy is highly correlated with class; some classes, such as bare land, have lower retrieval accuracy, while others, such as airports, have higher accuracy. Furthermore, this invention compares intra-class variance with retrieval results, finding a strong positive correlation—the larger the variance, the higher the retrieval accuracy. Therefore, this invention proposes an important conclusion: retrieval accuracy is highly correlated with the amount of information contained in remote sensing data. This invention proposes an information-driven feature optimization method. For input data, a clustering algorithm is used to cluster the data, obtaining the data's class, corresponding cluster center features, and variance features as indicators of the information content contained in the data. These information content features are convolved and mapped to information activation factors, which are then combined with the input features to obtain optimized features. Based on the optimized features, this invention proposes class-aware expert routing. By defining class-aware expert queries, similarity calculations and softmax operations are performed with the optimized features, aligning the functions of different experts with the amount of information, enabling different experts to process data with different amounts of information, ultimately improving the robustness of feature extraction.

[0051] Different training strategies are employed for class features covering different alignment degrees, improving the accuracy of cross-modal alignment. Remote sensing data inherently exhibits alignment differences. For example, for data with high information content, images contain rich information, but text can only describe part or a portion of it, forming its inherent cross-modal difference characteristic. Therefore, this invention designs an alignment-driven feature optimization method. For the input data, a clustering algorithm is used to cluster the data, obtaining the category to which the image and text belong, the corresponding cluster center features, and variance features. The cluster center features and variance features of the image and text are subtracted and combined as a measure of alignment degree. These features are convolved and mapped to alignment activation factors, which are then combined with the input features to obtain optimized features. Based on the optimized features, this application proposes class-aware expert routing. By defining class-aware expert queries, similarity calculations and softmax are performed between them and the optimized features to achieve consistency between expert functions and alignment degree, enabling different experts to process data with different alignment degrees, ultimately improving the accuracy of cross-modal alignment. Attached Figure Description

[0052] To more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the following description of the embodiments will be briefly introduced. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0053] In the attached diagram:

[0054] Figure 1 This is a flowchart illustrating the marine remote sensing image retrieval method based on class-aware expert routing in this specific embodiment.

[0055] Figure 2 This is a schematic diagram of the information-driven feature optimization process in this specific implementation.

[0056] Figure 3 This is a schematic diagram of the alignment-driven feature optimization process in this specific embodiment;

[0057] Figure 4 This is a schematic diagram of the marine remote sensing image retrieval system based on class-aware expert routing in this specific embodiment. Detailed Implementation

[0058] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments will be clearly and completely described below with reference to the accompanying drawings. The following embodiments are used to illustrate the present invention, but are not intended to limit the scope of the present invention.

[0059] In the following description, references to terms such as "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of the present invention. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples. Moreover, without contradiction, those skilled in the art can combine and integrate the different embodiments or examples described in this specification, as well as the features of different embodiments or examples.

[0060] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of embodiments of the present invention, "a plurality of" means two or more, unless otherwise explicitly specified.

[0061] The present invention will be further described below with reference to the accompanying drawings and specific embodiments.

[0062] Example 1:

[0063] See Figure 1 This embodiment provides a marine remote sensing image retrieval method based on class-aware expert routing, including the following steps:

[0064] S1. Single-modal information drives Transformer input:

[0065] Mapping marine remote sensing image data and text data to image embedding and text embedding Then they enter the single-modal image information driven Transformer and the single-modal text information driven Transformer respectively;

[0066] S2, Single-modal information-driven feature optimization and class-aware expert routing:

[0067] Image embedding and text embedding Information-driven feature optimization is performed in N layers of both a single-modal image-driven Transformer and a single-modal text-driven Transformer to obtain optimized image features. and text optimization features Image optimization features and text optimization features After assigning expert weights through class-aware expert routing in the expert hybrid model, the outputs of the last layer of the single-modal image-driven Transformer and the single-modal text-driven Transformer are transformed and mapped to the same dimension to generate image features. Text features ;

[0068] S3, Cross-modal alignment-driven feature optimization and class-aware expert routing:

[0069] Meanwhile, image embedding and the text embedding These features are then fed into the cross-modal alignment-driven Transformer. Within the N layers of the cross-modal alignment-driven Transformer, image optimization features are obtained through alignment-driven feature optimization processing. and text optimization features Image optimization features and text optimization features After assigning expert weights through class-aware expert routing in an expert hybrid model, cross-modal alignment drives the output of the last layer of the Transformer to be mapped to the same dimension, generating image features. and text features ;

[0070] S4. Calculation of ternary loss:

[0071] The image features With the text features Calculate the ternary loss, while the image features and text features Calculate the ternary loss and sum the results to obtain the total loss. Iterate through steps S1-S4 and perform backpropagation training.

[0072] S5. Inputs and Outputs:

[0073] Input the marine remote sensing image or marine remote sensing text to be retrieved, and output the marine remote sensing text or marine remote sensing image.

[0074] In some embodiments, image embedding and text embedding Information-driven feature optimization is performed in N layers of both a single-modal image-driven Transformer and a single-modal text-driven Transformer to obtain optimized image features. and text optimization features .

[0075] Specifically, S2.1, image embedding and text embedding In both single-modal image-driven and single-modal text-driven Transformers, intermediate image features are obtained after N layers of Transformer processing. and text intermediate features In this process, each of the N Transformer layers undergoes self-attention, residual connections, and layer normalization in sequence, as shown below:

[0076] ;

[0077] ;

[0078] in, Representing the Layer image information drives the input to the Transformer. The number of layers that drive the Transformer based on image information. Represents self-attention, Representing the Layered image information drives the intermediate image features of the Transformer; Representing the Layer text information drives the input of the Transformer. The number of layers that drive the Transformer based on text information. Representing the Layered text information drives the intermediate text features of the Transformer; Representative level normalization.

[0079] S2.2, see also Figure 2 Image intermediate features and text intermediate features Information-driven feature optimization processing is used to obtain optimized image features. and text optimization features The information-driven feature optimization process employs the k-means clustering algorithm to obtain information-rich data corresponding to both images and text. This data includes the categories, cluster center features, and variance features of the images and text. The information-rich data is then convolved to generate image and text information activation factors. These activation factors are then correlated with intermediate image features. and text intermediate features Spatial concatenation is performed to obtain optimized image features. and text optimization features , represented as:

[0080] ;

[0081] ;

[0082] ;

[0083] ;

[0084] in, Represents the convolution operation. Represents the cluster center features of an image. Represents the variance features of the image. Indicates image category, Representative features are cascaded spatially. This represents the convolution operation. Represents the image activation factor. Representative features are cascaded by channel; Indicates the features of text cluster centers. Represents text variance features. Indicates the text activation factor. Indicates the text category.

[0085] In step S2, image feature optimization and text optimization features After assigning expert weights through class-aware expert routing in the expert hybrid model, the outputs of the last layer of the single-modal image-driven Transformer and the single-modal text-driven Transformer are transformed and mapped to the same dimension to generate image features. Text features Specifically:

[0086] S2.3, Image Optimization Features and the text optimization features Unlike classic expert hybrid models, this embodiment uses a class-aware expert routing definition for class-aware expert queries, which are continuously trained and optimized, and then combined with image optimization features. and text optimization features Perform similarity calculations, after The activation weight of each expert is obtained and represented as follows:

[0087] = ;

[0088] = ;

[0089] in, Number of representative experts This represents an expert's index number. Representing the Each expert corresponds to a feedforward neural network. Optimization features that drive the Transformer based on image information And class perception expert query The number of channels, 'Represents optimized features that drive the Transformer with text information' Class perception expert query The number of channels, It is a superparameter. Representative expert hybrid model, This represents the image expert routing layer that drives the Transformer based on image information. This represents the text expert routing layer that drives the Transformer with text information.

[0090] S2.4 Image Optimization Features and text optimization features Separately with the image expert routing layer and text expert routing layer Residual connections, after layer normalization, generate the first... Image output of Transformer driven by single-modal image information Text output of Transformer driven by single-modal text information ; indicates as:

[0091] ;

[0092] ;

[0093] in, Representation layer normalization.

[0094] S2.5, the final layer outputs of the single-modal image information driven Transformer and the single-modal text information driven Transformer are mapped to the same dimension to generate image features. Text features .

[0095] In step S3, image embedding and the text embedding They all enter the cross-modal alignment-driven Transformer, where image optimization features are obtained through alignment-driven feature optimization processing in the N layers of the cross-modal alignment-driven Transformer. and text optimization features Specifically:

[0096] S3.1 Image Embedding and text embedding In the cross-modal alignment driven Transformer, the intermediate features of the image are obtained after N layers of Transformer processing. and text intermediate features In this process, each of the N Transformer layers sequentially performs self-attention, residual connections, and layer normalization; represented as:

[0097] ;

[0098] ;

[0099] in, Representing the Layer alignment drives the image input of the Transformer. This represents the number of image layers that align the driving Transformer. Representing the Layer alignment drives the intermediate features of the image in the Transformer. Representing the Layer alignment drives the text input of the Transformer. 'Represents the number of text layers that aligns to drive the Transformer. Representing the Layer alignment drives the text intermediate features of the Transformer. Representation layer normalization, This indicates self-attention.

[0100] S3.2, see also Figure 3 Image intermediate features and the text intermediate features Image optimization features are obtained by performing alignment-driven feature optimization processing. and text optimization features The alignment-driven feature optimization process involves subtracting the image cluster center features and text cluster center features obtained from the information-driven feature optimization process, subtracting the image variance features and text variance features, and then spatially concatenating them. After convolution mapping to obtain alignment activation factors, these are then compared with the image intermediate features. and text intermediate features Channel cascading is performed to obtain optimized image features. and text optimization features , represented as:

[0101] ;

[0102] ;

[0103] ;

[0104] in, This represents the number of image layers that align the driving Transformer. This represents the number of text layers in the alignment-driven Transformer. Represents the cluster center features of an image. Represents the variance features of the image. Indicates image category, Representative features are cascaded spatially. This represents the convolution operation. Representative features are cascaded by channel; Indicates the features of text cluster centers. Represents text variance features. Indicates alignment activation factor, Indicates the text category.

[0105] In some embodiments, image optimization features and text optimization features After assigning expert weights through class-aware expert routing in the expert hybrid model, the cross-modal alignment drives the output of the last layer of the Transformer to be mapped to the same dimension, generating image features. and text features .

[0106] Specifically, S3.3, the image optimization features and the text optimization features The expert hybrid model employs a class-aware expert routing definition to define class-aware expert queries, and is continuously trained and optimized, respectively, to optimize the image features. and the text optimization features Perform similarity calculations, after The activation weight of each expert is obtained and represented as follows:

[0107] = ;

[0108] = ;

[0109] in, Number of representative experts Represents the expert index number. Representing the Each expert corresponds to a feedforward neural network, where u represents the image optimization feature. And class perception expert query The number of channels, u' represents the text optimization feature. Class perception expert query The number of channels, It is a superparameter. Representative expert hybrid model, Cross-modal alignment drives the Transformer's image expert routing layer. This represents the text expert routing layer that drives the Transformer for cross-modal alignment.

[0110] S3.4, the image optimization features and the text optimization features Image expert routing layer that drives Transformer with cross-modal alignment respectively and text expert routing layer Residual connections, after layer normalization, generate the first... Layer cross-modal alignment drives the image output of the Transformer and text output , represented as:

[0111] ;

[0112] .

[0113] S3.5 The outputs of the last layer of the single-modal image information-driven Transformer and the single-modal text information-driven Transformer are mapped to the same dimension to generate image features. Text features .

[0114] The calculation of the ternary loss is as follows: First, a triplet is constructed from the training set, containing an anchor point, a positive sample of the same class as the anchor point, and a negative sample of a different class. Then, a neural network extracts the feature vectors of the three elements, and the distances from the anchor point to the positive samples and from the anchor point to the negative samples are calculated separately. The core logic is that when the distance between a negative sample and the anchor point fails to increase by at least [a certain percentage] compared to the positive sample, the ternary loss is calculated. When the security gap is large enough, the system will generate a positive loss and propagate it backward, thereby continuously "bringing similar systems closer together and pushing away dissimilar systems" in the feature space, which can be represented as:

[0115] ;

[0116] ;

[0117] in, This represents a negative sample image generated by the Transformer, driven by image information. This represents negative sample text generated by the Transformer, driven by textual information. Represents the similarity between two features; , Indicates the interval parameter. This indicates that the information drives the Transformer ternary loss. This represents a negative sample image generated by the alignment-driven Transformer. This represents negative sample text generated by the alignment-driven Transformer. This represents the alignment-driven Transformer ternary loss.

[0118] Final loss function Represented as:

[0119] .

[0120] Example 2:

[0121] Please see Figure 4 Based on the same inventive concept, this invention also provides a marine remote sensing image retrieval system based on class-aware expert routing, including:

[0122] Single-modal information drives the Transformer input module to map marine remote sensing image data and text data to image embeddings. and text embedding Then they enter the single-modal image information driven Transformer and the single-modal text information driven Transformer respectively;

[0123] A single-modal information-driven feature optimization and class-aware expert routing module is used to embed the image. and the text embedding Information-driven feature optimization is performed in N layers of both a single-modal image-driven Transformer and a single-modal text-driven Transformer to obtain optimized image features. and text optimization features The image optimization features and the text optimization features After assigning expert weights through the class-aware expert routing of the expert hybrid model, the outputs of the last layer of the single-modal image information-driven Transformer and the single-modal text information-driven Transformer are mapped to the same dimension to generate image features. Text features ;

[0124] A cross-modal alignment-driven feature optimization and class-aware expert routing module is used to embed the image. and the text embedding These features are then fed into the cross-modal alignment-driven Transformer. Within the N layers of the cross-modal alignment-driven Transformer, image optimization features are obtained through alignment-driven feature optimization processing. and text optimization features The image optimization features and text optimization features After assigning expert weights through class-aware expert routing in the expert hybrid model, the cross-modal alignment drives the output of the last layer of the Transformer to be mapped to the same dimension, generating image features. and text features ;

[0125] The ternary loss calculation module is used to calculate the image features. With the text features Calculate the ternary loss, while the image features and text features Calculate the ternary loss and sum the results to obtain the total loss. Iterate through steps S1-S4 and perform backpropagation training.

[0126] The input and output modules are used to input marine remote sensing images or marine remote sensing text to be retrieved, and to output marine remote sensing text or marine remote sensing images.

[0127] Example 3:

[0128] This invention conducts experiments based on the RSITMD remote sensing image-text matching dataset (containing approximately 4000 high-resolution image-text pairs). In the data preprocessing stage, images are standardized and scaled to 224×224 pixels, and text undergoes conventional word segmentation and truncation. The entire dataset is randomly divided into training, validation, and test sets in an 8:1:1 ratio. The model is deployed on an NVIDIA RTX A6000 GPU (48GB VRAM) platform, using the RemoteCLIP remote sensing image-text pre-trained model (RemoteCLIP with a ViT-B-32 backbone, RemoteCLIP ViT-B-32) as the backbone network to initialize Transformer parameters. The last six layers of the conventional feedforward neural network are replaced with the expert hybrid model proposed in this invention. During end-to-end joint training, image-text features are first activated by dynamic K-means clustering, and then fed into the information-driven Transformer and alignment-driven Transformer branches to achieve class-aware expert routing and feature fusion. For optimization, the system adopts a triplet loss based on hard-negative sample mining (with a margin parameter of 0.2). The model uses the Adam optimizer for parameter optimization, with a batch size of 600 and an initial learning rate of 5 × 10⁻⁶. -5 (With a decay rate of 0.1), the weights are iteratively updated through backpropagation, and the final output is the best-performing image and text retrieval model on the validation set.

[0129] This invention evaluates the cross-modal matching performance of a model using an image-text retrieval dataset. The domain-standard recall rate (Recall@K, encompassing R@1, R@5, and R@10) is used as a quantification metric to test the bidirectional retrieval performance of image-to-text and text-to-image searches. Furthermore, the arithmetic mean of each R@K metric, i.e., Mean Recall (mR), is introduced as a comprehensive metric to measure overall cross-modal retrieval performance.

[0130] To verify the effectiveness and advancement of this invention, current mainstream dedicated remote sensing retrieval frameworks and general visual language fine-tuning paradigms were selected as baseline methods for comparative experiments. These included:

[0131] RemoteCLIP: A cutting-edge pre-trained model for contrastive remote sensing visual language, representing a baseline paradigm based on full parameter fine-tuning using massive amounts of remote sensing data;

[0132] GeoRSCLIP: A pre-trained model for geographic remote sensing visual language contrast, which enhances the alignment capability of geospatial features based on the CLIP architecture;

[0133] MoE: Classical Hybrid Expert Model, representing a traditional network architecture that uses efficient parameter fine-tuning to achieve multimodal feature routing.

[0134] The experimental results are shown in Table 1. In terms of the key performance indicator (mR), this invention achieves a significant breakthrough compared to current cutting-edge remote sensing benchmarks, improving by 4.24% compared to the MoE architecture. This strongly demonstrates that the proposed perceptual expert routing mechanism possesses excellent effectiveness and generalization in achieving complex cross-modal feature fusion. Specifically, in the text retrieval image task, the invention achieves an R@1 of 27.04% and an R@10 of 76.88%. This superior performance indicates that the cross-modal alignment-driven branch can construct alignment activation factors by mining the mean and variance differences between image and text features, thereby achieving high-precision mapping of text semantics to visual space and effectively overcoming the technical bottleneck of traditional methods in aligning complex scenes and small targets. Although this invention is slightly inferior to the traditional MoE in the R@1 metric of the image retrieval text task, its R@5 and R@10 are both globally optimal. This gain is mainly due to the feature optimization strategy in the information-driven branch. By extracting core information features through clustering, it not only enriches the diversity of the feature space, but also achieves effective decoupling between representations, thereby significantly enhancing the stability and robustness of the head retrieval results.

[0135] Table 1: Comparative Experiments

[0136]

[0137] The above are merely preferred embodiments of the present invention and are not intended to limit the present invention in any way. Although the present invention has been disclosed above with reference to preferred embodiments, it is not intended to limit the present invention. Any person skilled in the art can make some modifications or alterations to the above-described technical content to create equivalent embodiments without departing from the scope of the present invention. The implementation schemes in the above embodiments can also be further combined or replaced. Any simple modifications, equivalent changes and alterations made to the above embodiments based on the technical essence of the present invention without departing from the scope of the present invention shall still fall within the scope of the present invention.

Claims

1. A marine remote sensing image and text retrieval method based on class-aware expert routing, characterized in that, include: S1, Single-modal information drives Transformer input: Mapping marine remote sensing image data and text data to image embedding and text embedding Then they enter the single-modal image information driven Transformer and the single-modal text information driven Transformer respectively; S2, Single-modal information-driven feature optimization and class-aware expert routing: The image embedding and the text embedding Information-driven feature optimization is performed in N layers of both a single-modal image-driven Transformer and a single-modal text-driven Transformer to obtain optimized image features. and text optimization features The image optimization features and the text optimization features After assigning expert weights through class-aware expert routing in the expert hybrid model, the outputs of the last layer of the single-modal image information-driven Transformer and the single-modal text information-driven Transformer are mapped to the same dimension to generate image features. Text features ; S3, Cross-modal alignment-driven feature optimization and class-aware expert routing: Meanwhile, the image embedding and the text embedding These features are then fed into the cross-modal alignment-driven Transformer. Within the N layers of the cross-modal alignment-driven Transformer, image optimization features are obtained through alignment-driven feature optimization processing. and text optimization features The image optimization features and text optimization features After assigning expert weights through class-aware expert routing in the expert hybrid model, the cross-modal alignment drives the output of the last layer of the Transformer to be mapped to the same dimension, generating image features. and text features ; S4. Calculation of ternary loss: The image features With the text features Computational information drives the Transformer ternary loss, while the image features and text features Calculate the alignment-driven Transformer ternary loss and sum the results to obtain the total loss. Iterate through steps S1-S4 and perform backpropagation training. S5. Inputs and Outputs: Input the marine remote sensing image or marine remote sensing text to be retrieved, and output the marine remote sensing text or marine remote sensing image.

2. The method according to claim 1, characterized in that, The image embedding and the text embedding Information-driven feature optimization is performed in N layers of both single-modal image-driven and single-modal text-driven Transformers to obtain optimized image features. and text optimization features ,include: S2.1, the image embedding and the text embedding In both single-modal image-driven and single-modal text-driven Transformers, intermediate image features are obtained after N layers of Transformer processing. and text intermediate features In this process, each of the N Transformer layers undergoes self-attention, residual connection, and layer normalization in sequence. S2.2, the intermediate features of the image and the text intermediate features Information-driven feature optimization processing is used to obtain optimized image features. and text optimization features The information-driven feature optimization process employs the k-means clustering algorithm to obtain information-rich data corresponding to the image and text, including: the category, cluster center features, and variance features of the image and text. This information-rich data is then convolved and mapped to image information activation factors and text information activation factors. These activation factors are then correlated with the image's intermediate features. and the text intermediate features Spatial concatenation is performed to obtain optimized image features. and text optimization features .

3. The method according to claim 2, characterized in that, The image optimization features and the text optimization features After assigning expert weights through class-aware expert routing in the expert hybrid model, the outputs of the last layer of the single-modal image information-driven Transformer and the single-modal text information-driven Transformer are mapped to the same dimension to generate image features. Text features ,include: S2.3, the image optimization features and the text optimization features The expert hybrid model employs a class-aware expert routing definition to define class-aware expert queries, and is continuously trained and optimized, respectively, to optimize the image features. and the text optimization features After performing similarity calculations, The activation weight of each expert is obtained and represented as follows: = ; = ; in, Number of representative experts The index number representing the expert. Representing the Each expert corresponds to a feedforward neural network. Optimization features that drive the Transformer based on image information And class perception expert query The number of channels, 'Represents optimized features that drive the Transformer with text information' Class perception expert query The number of channels, It is a superparameter. Representative expert hybrid model, This represents the image expert routing layer that drives the Transformer based on image information. This represents a text expert routing layer that drives the Transformer with text information. S2.4, the image optimization features and the text optimization features Separately with the image expert routing layer and text expert routing layer Residual connections, after layer normalization, generate the first... Image output of Transformer driven by single-modal image information Text output of Transformer driven by single-modal text information ; S2.5 The outputs of the last layer of the single-modal image information-driven Transformer and the single-modal text information-driven Transformer are mapped to the same dimension to generate image features. Text features .

4. The method according to claim 1, characterized in that, The image embedding and the text embedding They are all fed into the cross-modal alignment-driven Transformer, where image optimization features are obtained through alignment-driven feature optimization processing in the N layers of the cross-modal alignment-driven Transformer. and text optimization features ,include: S3.1, the image embedding and the text embedding In the cross-modal alignment driven Transformer, the intermediate features of the image are obtained after N layers of Transformer processing. and text intermediate features In this process, each of the N Transformer layers sequentially performs self-attention, residual connections, and layer normalization. S3.2, the intermediate features of the image and the text intermediate features Image optimization features are obtained by performing alignment-driven feature optimization processing. and text optimization features The alignment-driven feature optimization process involves subtracting the image cluster center features and text cluster center features, as well as subtracting the image variance features and text variance features obtained from the information-driven feature optimization process, and then spatially concatenating them. After convolutional mapping to obtain alignment activation factors, these are then respectively coupled with the image intermediate features. and the text intermediate features Combined, image optimization features are obtained. and text optimization features .

5. The method according to claim 4, characterized in that, The image optimization features and text optimization features After assigning expert weights through class-aware expert routing in the expert hybrid model, the cross-modal alignment drives the output of the last layer of the Transformer to be mapped to the same dimension, generating image features. and text features ,include: S3.3, the image optimization features and the text optimization features The expert hybrid model employs a class-aware expert routing definition to define class-aware expert queries, and is continuously trained and optimized, respectively, to optimize the image features. and the text optimization features After performing similarity calculations, The activation weight of each expert is obtained and represented as follows: = ; = ; in, Number of representative experts The index number representing the expert. Representing the Each expert corresponds to a feedforward neural network, where u represents the image optimization feature. And class perception expert query The number of channels, u' represents the text optimization feature. Class perception expert query The number of channels, It is a superparameter. Representative expert hybrid model, This represents the image expert routing layer that drives the Transformer across modal alignment. This represents the text expert routing layer that drives the Transformer for cross-modal alignment; S3.4, the image optimization features and the text optimization features Image expert routing layer that drives Transformer with cross-modal alignment respectively and text expert routing layer Residual connections, after layer normalization, generate the first... Layer cross-modal alignment drives the image output of the Transformer and text output ; S3.5 The outputs of the last layer of the single-modal image information-driven Transformer and the single-modal text information-driven Transformer are mapped to the same dimension to generate image features. Text features .

6. The method according to claim 1, characterized in that, The calculation of the ternary loss is expressed as follows: ; ; in, This represents a negative sample image generated by the Transformer, driven by image information. This represents negative sample text generated by the Transformer, driven by textual information. Represents the similarity between two features; , Indicates the interval parameter. This indicates that the information drives the Transformer ternary loss. This represents a negative sample image generated by the alignment-driven Transformer. This represents negative sample text generated by the alignment-driven Transformer. This represents the alignment-driven Transformer ternary loss.

7. A marine remote sensing image retrieval system based on class-aware expert routing, characterized in that, The marine remote sensing image retrieval system includes: Single-modal information drives the Transformer input module to map marine remote sensing image data and text data to image embeddings. and text embedding Then they enter the single-modal image information driven Transformer and the single-modal text information driven Transformer respectively; A single-modal information-driven feature optimization and class-aware expert routing module is used to embed the image. and the text embedding Information-driven feature optimization is performed in N layers of both a single-modal image-driven Transformer and a single-modal text-driven Transformer to obtain optimized image features. and text optimization features The image optimization features and the text optimization features After assigning expert weights through class-aware expert routing in the expert hybrid model, the outputs of the last layer of the single-modal image information-driven Transformer and the single-modal text information-driven Transformer are mapped to the same dimension to generate image features. Text features ; A cross-modal alignment-driven feature optimization and class-aware expert routing module is used to embed the image. and the text embedding These features are then fed into the cross-modal alignment-driven Transformer. Within the N layers of the cross-modal alignment-driven Transformer, image optimization features are obtained through alignment-driven feature optimization processing. and text optimization features The image optimization features and text optimization features After assigning expert weights through class-aware expert routing in the expert hybrid model, the cross-modal alignment drives the output of the last layer of the Transformer to be mapped to the same dimension, generating image features. and text features ; The ternary loss calculation module is used to calculate the image features. With the text features Calculate the ternary loss, while the image features and text features Calculate the ternary loss and sum the results to obtain the total loss. Iterate through steps S1-S4 and perform backpropagation training. The input and output modules are used to input marine remote sensing images or marine remote sensing text to be retrieved, and to output marine remote sensing text or marine remote sensing images.