Unsupervised Hash learning system and method for large-scale cross-modal retrieval

Through the unsupervised hash learning system, the problems of unlabeled data representation, semantic association and high concurrent requests in cross-modal retrieval are solved, achieving efficient, accurate retrieval and system scalability.

CN118657188AInactive Publication Date: 2024-09-17HEFEI ZHONGKE CLOUD NUMBER TECH CO LTD
View PDF 0 Cites 3 Cited by

Patent Information

Application Number
CN202411004266.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-25
Publication Date
2024-09-17
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing cross-modal retrieval systems have problems in large-scale data processing, such as high annotation costs, low retrieval performance due to semantic differences, inability to effectively represent unlabeled data, lack of semantic association and high concurrent request functions.

Method used

An unsupervised hash learning system is designed, including an autoencoder hash learning unit, a hash coding optimization unit and a variational autoencoder hash learning unit. Binary hash codes are generated through the TensorFlow framework, combined with cross-modal representation. The learning module and objective function design optimization module achieves effective representation of unlabeled data and semantic association between different modalities, and optimizes the loss function and high concurrent request capabilities.

Benefits of technology

It improves the accuracy and efficiency of retrieval, reduces the cost of retrieval, enhances the applicability and scalability of the system, and adapts to large-scale data environments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118657188A
    Figure CN118657188A
Patent Text Reader

Abstract

The invention discloses an unsupervised Hash learning system and method for large-scale cross-modal retrieval, and relates to the technical field of retrieval systems.The unsupervised Hash learning system comprises an unsupervised Hash learning module, a cross-modal representation learning module and an objective function design optimization module; a database of the cross-modal representation learning module maps data to the unsupervised Hash learning module to serve as data input, data output of the unsupervised Hash learning module serves as an optimization target of the target function design optimization module, and the unsupervised Hash learning module is used for generating binary Hash codes and conducting optimization learning; the unsupervised Hash learning module comprises an auto-encoder Hash learning unit, a Hash encoding optimization unit and a variational auto-encoder Hash learning unit. According to the method, the unsupervised Hash learning module is designed, so that the function of effectively representing the unlabeled data is realized, the problem that the cost is increased due to the fact that a traditional retrieval system depends on a large amount of labeled data is solved, and the retrieval efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of retrieval systems, and in particular to an unsupervised hash learning system and method for large-scale cross-modal retrieval. Background Art

[0002] With the rapid development of information technology, large-scale cross-modal retrieval has become increasingly important in the fields of images, texts, etc. However, existing technologies have a series of shortcomings and problems in facing this challenge, which hinder the performance and efficiency of the system in practical applications.

[0003] Existing cross-modal retrieval systems have huge costs in annotating large-scale data. The process of obtaining labeled data is complex and time-consuming. There are semantic differences in cross-modal data, which leads to reduced retrieval performance and low retrieval efficiency.

[0004] Therefore, this application proposes an unsupervised hash learning system and method for large-scale cross-modal retrieval, which effectively solves the bottleneck problem of the prior art in large-scale cross-modal retrieval, improves the accuracy and efficiency of retrieval, and has a broader application prospect.

[0005] 1. Patent document CN114329109B discloses a multimodal retrieval method and system based on weakly supervised hash learning. The above patent reduces the computational complexity and improves the retrieval accuracy, but the above patent cannot achieve the effective representation function of unlabeled data.

[0006] 2. Patent document CN112035700B discloses a CNN-based speech deep hashing learning method and system. The above patent solves the limitations of manual features and poor feature expressiveness in the feature extraction process of existing content-based speech retrieval systems, and can further improve retrieval accuracy and efficiency. However, the above patent cannot realize the function of semantic association between different modalities.

[0007] 3. Patent document CN110110063B discloses a method for constructing a question-answering system based on hash learning. The above patent achieves the effects of high model accuracy, low memory overhead and short response time in online question-answering scenarios, but the above patent cannot realize the function of defining an optimized loss function.

[0008] 4. Patent document CN112434035B discloses an indexing method and system for a concurrent hash index data structure based on machine learning. The above patent realizes retraining of the machine learning model and performs hash expansion operations when the probability of hash conflict exceeds a threshold, so that the machine learning model can adapt to the newly inserted data and maintain high index performance. However, the above patent cannot realize the high concurrent request function of the model.

[0009] In summary, the above patents cannot realize the functions of effectively representing unlabeled data, semantic associations between different modalities, defining optimized loss functions, and high concurrent requests for models, resulting in increased retrieval costs, low retrieval accuracy, low retrieval efficiency, inability to adapt to large-scale data, and limited system applicability.

[0010] To this end, the present application proposes an unsupervised hash learning system and method for large-scale cross-modal retrieval that can realize the effective representation of unlabeled data, the function of semantic association between different modalities, the function of defining optimized loss functions and the function of high concurrent request of models. Summary of the invention

[0011] The purpose of the present invention is to provide an unsupervised hash learning system and method for large-scale cross-modal retrieval, so as to solve the technical problems proposed in the above background technology that the effective representation function of unlabeled data, the function of semantic association between different modalities, the function of defining optimized loss functions and the high concurrent request function of the model cannot be realized, resulting in increased retrieval cost, low retrieval accuracy, low retrieval efficiency, inability to adapt to large-scale data and limited system applicability.

[0012] To achieve the above-mentioned object, the present invention provides the following technical solutions: an unsupervised hash learning system for large-scale cross-modal retrieval, comprising an unsupervised hash learning module, a cross-modal representation learning module and an objective function design optimization module, wherein the unsupervised hash learning module is used to generate binary hash codes and perform optimization learning;

[0013] The unsupervised hash learning module includes: an autoencoder hash learning unit, a hash coding optimization unit and a variational autoencoder hash learning unit;

[0014] The autoencoder hash learning unit constructs an autoencoder network structure, including an encoder and a decoder, and introduces a binarization layer, uses a deep learning framework TensorFlow, trains the network by minimizing the reconstruction loss, and generates a binary hash code;

[0015] The hash code optimization unit introduces an L2 regularization term to optimize the generated hash code, adds a regularization term to the generated hash code, adjusts the loss function, and balances the quality and sparsity of the hash code;

[0016] The variational autoencoder hash learning unit introduces a variational inference network to increase the randomness of hash code generation and improve generalization performance. The variational inference network is used to generate hash codes and training is performed by minimizing the variational inference loss.

[0017] Preferably, the cross-modal representation learning module is used to map the retrieval feature data to a shared embedding;

[0018] The cross-modal representation learning module includes: an image feature extraction unit, a text feature extraction unit, and a cross-modal shared representation unit;

[0019] A convolutional neural network is designed in the image feature extraction unit for image feature extraction, including a pre-trained VGG model. The deep learning framework TensorFlow is used to select the CNN structure for end-to-end training.

[0020] The text feature extraction unit uses a recurrent neural network to extract text features. It considers using the pre-trained word embedding Word2Vec, uses the natural language processing library and deep learning framework to build a neural network that adapts to text data, and integrates the pre-trained word vectors.

[0021] The cross-modal shared representation unit designs a shared representation learning layer, maps image and text features to a shared embedding space through shared weights, combines image and text features, and implements end-to-end training through a shared layer to preserve cross-modal information in the shared space.

[0022] Preferably, the objective function design optimization module is used to train and optimize the objective function;

[0023] The objective function design optimization module includes: representation learning loss unit, hash coding loss unit and regularization term unit;

[0024] The representation learning loss unit designs the loss function and uses contrast loss to ensure the accuracy of the cross-modal representation learning module. The loss function module in the deep learning framework is used to train the model in combination with the goal of shared representation.

[0025] The hash coding loss unit designs a loss function, uses binary cross entropy to promote the generation of compact binary hash codes, combines the generated hash codes with the target hash codes, and trains by minimizing the loss function;

[0026] The regularization term unit introduces L2 regularization to prevent overfitting, adds the regularization term to the overall loss function, and adjusts the regularization strength.

[0027] Preferably, the cross-modal representation learning module is further designed with a data preparation preprocessing module, and the data preparation preprocessing module is used to obtain a large-scale cross-modal data set and perform preprocessing;

[0028] The data preparation preprocessing module includes: data collection unit, data cleaning and standardization unit and data splitting preprocessing unit;

[0029] The data collection unit obtains large-scale cross-modal datasets containing images and texts from multiple sources through web crawlers and API interfaces, and uses real-time data collection strategies to ensure the diversity and representativeness of the datasets, paying attention to processing data formats and quality differences from different sources;

[0030] The data cleaning and standardization unit uses image processing tools and text processing tools to clean and standardize data, including processing missing values ​​and outliers, standardizing image size, and standardizing text format;

[0031] The data splitting preprocessing unit uses the tool library to divide the data set into training set, validation set and test set, performs image normalization and text vectorization preprocessing, and applies data preprocessing technology to ensure the consistency of model input.

[0032] Preferably, the unsupervised hash learning module is further designed with an optimization algorithm training module, and the optimization algorithm training module is used to optimize and adjust the learning rate of the unsupervised hash learning module;

[0033] The optimization algorithm training module includes: an optimization algorithm selection unit, a learning rate adjustment unit and a distributed training unit;

[0034] The optimization algorithm selection unit selects the Adam optimization algorithm, sets the learning rate and momentum, and uses the optimizer provided by the deep learning framework to monitor the effect of the learning rate during training;

[0035] The learning rate adjustment unit designs the learning rate attenuation and dynamic adjustment strategies to ensure the training stability. During the training process, the learning rate is periodically updated to adapt to the convergence of the model.

[0036] The distributed training unit uses multiple GPUs and multiple nodes to accelerate the training process, and uses the distributed training tools provided by the deep learning framework to adjust the network structure to ensure that it adapts to the distributed environment.

[0037] Preferably, the unsupervised hash learning system is further designed with a model evaluation and tuning module, which is used to perform application evaluation and optimization on the model in the cross-modal representation learning module;

[0038] The model evaluation and tuning module includes: evaluation indicator selection unit, cross-validation unit and hyperparameter adjustment unit;

[0039] The evaluation indicator selection unit selects the retrieval accuracy and MAP evaluation indicators to ensure the comprehensiveness of the evaluation model performance, designs the evaluation function, and selects appropriate indicators according to the specific task;

[0040] The cross-validation unit uses cross-validation techniques to ensure the robustness of model performance and avoid overfitting of the model to a specific data set. The data set is divided into multiple subsets, and the model is trained and validated multiple times.

[0041] The hyperparameter adjustment unit adjusts the network structure and hyperparameters to improve model performance. It uses network search and Bayesian optimization to automate the process of adjusting hyperparameters and adjusts model parameters based on experimental results.

[0042] Preferably, the unsupervised hash learning system is also designed with a large-scale deployment module, which is used to deploy models and improve the performance of the system;

[0043] Large-scale deployment modules include: hardware acceleration unit, approximate retrieval technology unit and distributed inference unit;

[0044] The hardware acceleration unit uses the GPU support of the deep learning framework to configure the hardware environment and deploy it on GPU and other acceleration hardware to improve system performance;

[0045] The approximate search technology unit integrates the approximate search library, reduces the search space through hash technology, and uses local sensitive hashing to accelerate the actual search process and improve search efficiency;

[0046] The distributed inference unit uses TensorFlow Serving, a model service deployment tool provided by the deep learning framework, to deploy the model in a distributed environment, supporting high concurrent requests and ensuring the scalability of the system.

[0047] Preferably, the reconstruction loss specific function formula of the loss function is as follows:

[0048] , where X is the input data, is the reconstructed data output by the autoencoder;

[0049] The specific function formula of the hash coding loss loss function is as follows:

[0050] , where B is the actual binary hash code, is the hash code generated by the model;

[0051] The specific function formula of the variational autoencoder loss function is as follows:

[0052] , where μ j and σ j is the mean and standard deviation of the latent variable, X i is the input data, is the reconstructed data output by the variational autoencoder.

[0053] Preferably, the learning method comprises the following steps:

[0054] S1. Data preparation and preprocessing: Collect a large amount of unlabeled data from different sources to ensure the diversity and representativeness of the data, handle missing values ​​and outliers, standardize the data format, and ensure the consistency and quality of the data;

[0055] S2. Feature learning representation: Design appropriate feature extraction methods, use deep neural networks and autoencoders to extract high-level features of the data;

[0056] S3. Model training optimization: Select appropriate unsupervised learning models, including autoencoders, variational autoencoders, and clustering algorithms, and define loss functions to ensure that the model learns useful representations in an unsupervised manner.

[0057] S4. Model evaluation application: Select appropriate evaluation indicators, including clustering accuracy and reconstruction error, and use validation sets and test sets to evaluate the model to ensure the generalization performance of the learned representation on unlabeled data.

[0058] Preferably, the learning method further comprises the following steps:

[0059] S11. Divide the dataset into training set, validation set and test set, and perform necessary preprocessing, including image normalization and text vectorization;

[0060] S21. Use dimensionality reduction, clustering or other representation learning methods to map the original data into a more compact representation space to retain the key information of the data;

[0061] S31. Select optimization algorithms, including stochastic gradient descent (SGD) and Adam, to train the model and adjust hyperparameters to improve performance.

[0062] S41. Apply the learned representations to practical tasks, including data dimensionality reduction, anomaly detection, and clustering, while ensuring that the deployment of the model meets performance and efficiency requirements.

[0063] Compared with the prior art, the present invention has the following beneficial effects:

[0064] 1. The present invention realizes the effective representation function of unlabeled data by designing an unsupervised hash learning module, solves the problem of increased cost of traditional retrieval systems relying on a large amount of labeled data, improves retrieval efficiency and makes the system more suitable for applications in real scenarios;

[0065] 2. The present invention realizes the function of semantic association between different modalities by designing a cross-modal representation learning module, better captures cross-modal semantic information, and improves the accuracy of the model in cross-modal retrieval tasks;

[0066] 3. The present invention realizes the function of defining and optimizing the loss function by designing an objective function design optimization module, solves the problem that the model needs to weigh multiple factors such as compactness and relevance during the learning process, improves the quality of the representation learned by the model in an unsupervised scenario, and enhances the generalization ability of the model;

[0067] 4. The present invention realizes the high concurrent request function of the model by designing a large-scale deployment module, solves the problem of hardware resource consumption in a large-scale environment, enhances the scalability of the system, and adapts to application scenarios of different scales. BRIEF DESCRIPTION OF THE DRAWINGS

[0068] Figure 1 It is a schematic diagram of the system working process of the present invention;

[0069] Figure 2 It is a flow chart of the learning method of the present invention. DETAILED DESCRIPTION

[0070] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0071] Example 1

[0072] See also Figure 1 and Figure 2 , an embodiment provided by the present invention: an unsupervised hash learning system for large-scale cross-modal retrieval, comprising an unsupervised hash learning module, a cross-modal representation learning module and an objective function design optimization module, wherein the unsupervised hash learning module is used to generate binary hash codes and perform optimization learning;

[0073] The unsupervised hash learning module includes: an autoencoder hash learning unit, a hash coding optimization unit and a variational autoencoder hash learning unit;

[0074] The autoencoder hash learning unit constructs an autoencoder network structure, including an encoder and a decoder, and introduces a binarization layer, uses a deep learning framework TensorFlow, trains the network by minimizing the reconstruction loss, and generates a binary hash code;

[0075] The hash code optimization unit introduces an L2 regularization term to optimize the generated hash code, adds a regularization term to the generated hash code, adjusts the loss function, and balances the quality and sparsity of the hash code;

[0076] The variational autoencoder hash learning unit introduces a variational inference network to increase the randomness of hash code generation and improve generalization performance. The variational inference network is used to generate hash codes and training is performed by minimizing the variational inference loss.

[0077] Furthermore, input data, including images and text information, is obtained from unlabeled training data. The encoder network of the autoencoder is used to map the input data to the latent space, and a compact representation of the input is learned. The encoder network is usually composed of multiple fully connected layers or convolutional layers. The representation of the input data in the latent space is obtained. The decoder network of the autoencoder is used to map the representation of the latent space back to the original data space, and an output as similar as possible to the input data is reconstructed. The reconstruction loss, that is, the difference between the input data and the decoder output, is calculated. By minimizing this loss, it is ensured that the learned representation can effectively restore the original data.

[0078] Using the encoder part of the learned autoencoder, the input data is mapped into binary hash codes, and the hash code loss function is defined to ensure that the generated code can meet the requirements of compactness and relevance. Through optimization algorithms such as gradient descent, the parameters in the hash code generation process are adjusted to minimize the hash code loss and continuously optimize the generated hash code.

[0079] The variational autoencoder structure is introduced. Different from ordinary autoencoders, VAE introduces latent variables to make the learned representation more random and interpretable. In the encoder network, sampling is done from the distribution of latent variables to introduce randomness so that the same input can be mapped to different latent representations. The decoder network is used to reconstruct the input data and calculate the reconstruction loss, including the KL divergence of the data reconstruction part and the latent variables, to ensure the continuity and integrity of the latent space. Similar to the autoencoder hash learning unit, the encoder part generates binary hash codes while retaining the randomness of the latent variables.

[0080] Example 2

[0081] See also Figure 1 and Figure 2 , an embodiment provided by the present invention: an unsupervised hash learning system for large-scale cross-modal retrieval, wherein the cross-modal representation learning module is used to map shared embedding of retrieval feature data;

[0082] The cross-modal representation learning module includes: an image feature extraction unit, a text feature extraction unit, and a cross-modal shared representation unit;

[0083] A convolutional neural network is designed in the image feature extraction unit for image feature extraction, including a pre-trained VGG model. The deep learning framework TensorFlow is used to select the CNN structure for end-to-end training.

[0084] The text feature extraction unit uses a recurrent neural network to extract text features. It considers using the pre-trained word embedding Word2Vec, uses the natural language processing library and deep learning framework to build a neural network that adapts to text data, and integrates the pre-trained word vectors.

[0085] The cross-modal shared representation unit designs a shared representation learning layer, maps image and text features to a shared embedding space through shared weights, combines image and text features, and implements end-to-end training through a shared layer to preserve cross-modal information in the shared space;

[0086] Further, the input data from the image modality is obtained, which may be the original image or a preprocessed image representation, and a convolutional neural network is used as an image feature extractor to extract high-level features in the image through structures such as convolutional layers and pooling layers. The features extracted by the convolutional neural network are encoded into image-specific representations using fully connected layers or other structures to ensure efficient modeling of the image modality;

[0087] Obtain input data from the text modality, which can be raw text or text that has been represented as word embeddings. Use structures such as recurrent neural networks (RNNs) or transformers as text feature extractors to capture contextual information and semantic relationships in the text. Use fully connected layers or other structures to encode the text features extracted by RNNs or transformers into text-specific representations to ensure efficient modeling of the text modality.

[0088] The outputs of the image feature extraction unit and the text feature extraction unit are passed to the cross-modal shared representation unit, and a shared representation learning structure is designed, which can be a fully connected layer, an attention mechanism, etc. The parameters of the shared representation learning structure are adjusted through the training process so that the input image and text features are meaningfully correlated with each other in the shared representation space. Reconstruction loss is introduced, and the difference between the generated shared representation and the original image and text features is calculated to prompt the model to learn shared representations with more semantic associations. The reconstruction loss is minimized using optimization algorithms such as gradient descent. By continuously adjusting the parameters of the shared representation learning structure, the model is optimized to adapt to the cross-modal representation learning task of data in different modalities. An alignment mechanism is introduced during the training process to ensure that the shared representation space is sensitive to data in different modalities and to improve the generalization of representation learning.

[0089] Example 3

[0090] See also Figure 1 and Figure 2 , an embodiment provided by the present invention: an unsupervised hash learning system for large-scale cross-modal retrieval, wherein the objective function design optimization module is used to train and optimize the objective function;

[0091] The objective function design optimization module includes: representation learning loss unit, hash coding loss unit and regularization term unit;

[0092] The representation learning loss unit designs the loss function and uses contrast loss to ensure the accuracy of the cross-modal representation learning module. The loss function module in the deep learning framework is used to train the model in combination with the goal of shared representation.

[0093] The hash coding loss unit designs a loss function, uses binary cross entropy to promote the generation of compact binary hash codes, combines the generated hash codes with the target hash codes, and trains by minimizing the loss function;

[0094] The regularization term unit introduces L2 regularization to prevent overfitting, adds regularization terms to the overall loss function, and adjusts the regularization strength;

[0095] Furthermore, the difference between the original data and the model-reconstructed data is calculated. The mean square error (MSE) or cross entropy is usually used as the reconstruction loss function. The reconstruction loss is used as one of the objective functions of representation learning to ensure that the representation learned by the model can retain the information of the original data as much as possible. The input data is mapped to a binary hash code through the representation learned by the model, and a hash code loss function is defined to make the actual generated hash code as close to the ideal hash code as possible, ensuring that the generated code can meet the requirements of compactness and relevance. The hash code loss is used as one of the optimization goals, and the hash code generation process is optimized by minimizing the loss function. Continuously improve the quality and relevance of the generated hash codes; introduce the L2 regularization term to constrain the size of the model parameters and prevent the model from overfitting, add the regularization term to the entire objective function, and comprehensively consider the reconstruction loss, hash code loss, and the influence of the regularization term to form the final optimization objective function; select appropriate optimization algorithms, such as stochastic gradient descent (SGD), Adam, etc., to minimize the objective function, adjust the model parameters, and tune the model's hyperparameters, including learning rate, regularization coefficient, etc., to improve the performance and generalization ability of the model. Through the iterative training process, continuously update the model parameters until convergence or stopping conditions are reached.

[0096] Example 4

[0097] See also Figure 1 and Figure 2 , an embodiment provided by the present invention: an unsupervised hash learning system for large-scale cross-modal retrieval, wherein the cross-modal representation learning module is further designed with a data preparation preprocessing module, and the data preparation preprocessing module is used to obtain a large-scale cross-modal data set and perform preprocessing;

[0098] The data preparation preprocessing module includes: data collection unit, data cleaning and standardization unit and data splitting preprocessing unit;

[0099] The data collection unit obtains large-scale cross-modal datasets containing images and texts from multiple sources through web crawlers and API interfaces, and uses real-time data collection strategies to ensure the diversity and representativeness of the datasets, paying attention to processing data formats and quality differences from different sources;

[0100] The data cleaning and standardization unit uses image processing tools and text processing tools to clean and standardize data, including processing missing values ​​and outliers, standardizing image size, and standardizing text format;

[0101] The data splitting preprocessing unit uses the tool library to divide the data set into training set, validation set and test set, performs image normalization and text vectorization preprocessing, and applies data preprocessing technology to ensure the consistency of model input;

[0102] Furthermore, the data collection unit collects large-scale unlabeled data from various sources through web crawlers and API interfaces, and determines the source of the data set, including images, text, audio, etc., to meet the cross-modal retrieval requirements of the system; uses image processing tools and text processing tools to detect and process missing values ​​in the data, adopts filling, deletion and interpolation methods to ensure the integrity of the data, identifies and processes outliers, uses statistical methods to eliminate the influence of outliers, and standardizes the data, such as normalization or standardization, to ensure the scale consistency between different modes or features, which is conducive to model learning, identifies and processes noise in the data, and uses filtering and smoothing methods to improve data quality; divides the entire data set into training set, validation set and test set for subsequent model training, tuning and evaluation. If multimodal data is involved, separate the data of different modes to ensure that each mode can independently provide information for the model, and further preprocesses different modes or features, including image cropping, text segmentation, etc., to extract higher-level information.

[0103] Example 5

[0104] See also Figure 1 and Figure 2 , an embodiment provided by the present invention: an unsupervised hash learning system for large-scale cross-modal retrieval, wherein the unsupervised hash learning system is further designed with a model evaluation and tuning module, the model evaluation and tuning module is used to perform application evaluation and optimization on the model in the cross-modal representation learning module;

[0105] The model evaluation and tuning module includes: evaluation indicator selection unit, cross-validation unit and hyperparameter adjustment unit;

[0106] The evaluation indicator selection unit selects the retrieval accuracy and MAP evaluation indicators to ensure the comprehensiveness of the evaluation model performance, designs the evaluation function, and selects appropriate indicators according to the specific task;

[0107] The cross-validation unit uses cross-validation techniques to ensure the robustness of model performance and avoid overfitting of the model to a specific data set. The data set is divided into multiple subsets, and the model is trained and validated multiple times.

[0108] The hyperparameter adjustment unit adjusts the network structure and hyperparameters to improve model performance. It uses network search and Bayesian optimization to automate the process of adjusting hyperparameters and adjusts model parameters based on experimental results.

[0109] Furthermore, the specific goals of the unsupervised learning task are determined, including dimensionality reduction, feature learning, and hash coding, so as to select evaluation indicators that are consistent with the task goals. According to the task goals, appropriate evaluation indicators are selected, including mean square error, retrieval accuracy, and MAP evaluation indicators, which are used to measure the performance of the model on the task; the training set is further divided into several parts, and a K-fold cross-validation strategy is usually adopted. For each fold, part of the training set is used for model training, and then the performance is evaluated on the retained validation set. This process is repeated until each fold serves as a validation set, and the evaluation indicators of the model performance of each fold are calculated to obtain the average performance of the model on different data subsets; the hyperparameters that need to be adjusted are determined, and the adjustment range is set, including the learning rate, regularization coefficient, and number of model layers. Appropriate hyperparameter tuning algorithms are selected, such as grid search, random search, Bayesian optimization, etc. After each round of hyperparameter adjustment, the validation set is used to evaluate the model performance. According to the performance evaluation results, the values ​​of the hyperparameters are adjusted, and the process is repeated until the optimal hyperparameter combination is found.

[0110] Working principle: First, the work of the unsupervised hash learning system begins with the data preparation preprocessing unit. The system collects a large amount of unlabeled training data, including images, text, audio, etc. The data cleaning and standardization unit is a key step to ensure data quality and consistency. When the system first contacts the data, it understands the characteristics of the data through exploratory analysis of the data and processes it according to the needs of specific tasks. The data is divided into training sets, validation sets, and test sets, providing a standardized basis for model learning;

[0111] Secondly, the system uses the learned data to learn and represent features. The core task of this stage is to learn useful representations of data through unsupervised learning algorithms. The design of feature extraction methods involves selecting appropriate model structures, such as autoencoders and variational autoencoders, to extract high-level abstract features from raw data. The representation learning process maps data to a more compact representation space through dimensionality reduction, clustering and other techniques, so that the final learned representation can better reflect the essential characteristics of the data.

[0112] Finally, the system trains and optimizes the model, evaluates the performance of the model and applies it to practical problems. It selects autoencoders, clustering algorithms, etc. according to specific tasks. The design of the objective function and the selection of the optimization algorithm directly affect the learning effect of the model. During the training process, the system optimizes the model parameters by minimizing the loss function so that the learned representation is more in line with the task requirements. The model evaluation phase is carried out through the validation set or test set, and appropriate evaluation indicators are selected to measure the model performance. Finally, the learned representation can be applied to practical problems, including data dimensionality reduction and anomaly detection. The whole process is an iterative process. By continuously adjusting the model and algorithm, the system gradually improves performance and generalization capabilities.

[0113] It will be apparent to those skilled in the art that the invention is not limited to the details of the exemplary embodiments described above and that the invention can be implemented in other specific forms without departing from the spirit or essential features of the invention. Therefore, the embodiments should be considered exemplary and non-limiting in all respects, and the scope of the invention is defined by the appended claims rather than the foregoing description, and it is intended that all variations falling within the meaning and scope of the equivalent elements of the claims be included in the invention. Any reference numeral in a claim should not be considered as limiting the claim to which it relates.

Claims

1. An unsupervised hashing learning system for large-scale cross-modal retrieval, Features: It includes an unsupervised hash learning module, a cross-modal representation learning module and an objective function design optimization module, wherein the unsupervised hash learning module is used to generate binary hash codes and perform optimization learning; The unsupervised hash learning module includes: an autoencoder hash learning unit, a hash coding optimization unit and a variational autoencoder hash learning unit; The autoencoder hash learning unit constructs an autoencoder network structure, including an encoder and a decoder, and introduces a binarization layer, uses a deep learning framework TensorFlow, trains the network by minimizing the reconstruction loss, and generates a binary hash code; The hash code optimization unit introduces an L2 regularization term to optimize the generated hash code, adds a regularization term to the generated hash code, adjusts the loss function, and balances the quality and sparsity of the hash code; The variational autoencoder hash learning unit introduces a variational inference network to increase the randomness of hash code generation and improve generalization performance. The variational inference network is used to generate hash codes and training is performed by minimizing the variational inference loss.

2. According to claim 1, an unsupervised hash learning system for large-scale cross-modal retrieval, Features: The cross-modal representation learning module is used to map the retrieval feature data to a shared embedding; The cross-modal representation learning module includes: an image feature extraction unit, a text feature extraction unit, and a cross-modal shared representation unit; A convolutional neural network is designed in the image feature extraction unit for image feature extraction, including a pre-trained VGG model. The deep learning framework TensorFlow is used to select the CNN structure for end-to-end training. The text feature extraction unit uses a recurrent neural network to extract text features. It considers using the pre-trained word embedding Word2Vec, uses the natural language processing library and deep learning framework to build a neural network that adapts to text data, and integrates the pre-trained word vectors. The cross-modal shared representation unit designs a shared representation learning layer, maps image and text features to a shared embedding space through shared weights, combines image and text features, and implements end-to-end training through a shared layer to preserve cross-modal information in the shared space.

3. The unsupervised hash learning system for large-scale cross-modal retrieval according to claim 1, Features: The objective function design optimization module is used to train and optimize the objective function; The objective function design optimization module includes: representation learning loss unit, hash coding loss unit and regularization term unit; The representation learning loss unit designs the loss function and uses contrast loss to ensure the accuracy of the cross-modal representation learning module. The loss function module in the deep learning framework is used to train the model in combination with the goal of shared representation. The hash coding loss unit designs a loss function, uses binary cross entropy to promote the generation of compact binary hash codes, combines the generated hash codes with the target hash codes, and trains by minimizing the loss function; The regularization term unit introduces L2 regularization to prevent overfitting, adds the regularization term to the overall loss function, and adjusts the regularization strength.

4. The unsupervised hash learning system for large-scale cross-modal retrieval according to claim 2, Features: The cross-modal representation learning module is also designed with a data preparation and preprocessing module, which is used to obtain a large-scale cross-modal data set and perform preprocessing; The data preparation preprocessing module includes: data collection unit, data cleaning and standardization unit and data splitting preprocessing unit; The data collection unit obtains large-scale cross-modal datasets containing images and texts from multiple sources through web crawlers and API interfaces, and uses real-time data collection strategies to ensure the diversity and representativeness of the datasets, paying attention to processing data formats and quality differences from different sources; The data cleaning and standardization unit uses image processing tools and text processing tools to clean and standardize data, including processing missing values ​​and outliers, standardizing image size, and standardizing text format; The data splitting preprocessing unit uses the tool library to divide the data set into training set, validation set and test set, performs image normalization and text vectorization preprocessing, and applies data preprocessing technology to ensure the consistency of model input.

5. The unsupervised hash learning system for large-scale cross-modal retrieval according to claim 1, Features: The unsupervised hash learning module is also designed with an optimization algorithm training module, which is used to optimize and adjust the learning rate of the unsupervised hash learning module; The optimization algorithm training module includes: an optimization algorithm selection unit, a learning rate adjustment unit and a distributed training unit; The optimization algorithm selection unit selects the Adam optimization algorithm, sets the learning rate and momentum, and uses the optimizer provided by the deep learning framework to monitor the effect of the learning rate during training; The learning rate adjustment unit designs the learning rate attenuation and dynamic adjustment strategies to ensure the training stability. During the training process, the learning rate is periodically updated to adapt to the convergence of the model. The distributed training unit uses multiple GPUs and multiple nodes to accelerate the training process, and uses the distributed training tools provided by the deep learning framework to adjust the network structure to ensure that it adapts to the distributed environment.

6. The unsupervised hash learning system for large-scale cross-modal retrieval according to claim 2, Features: The unsupervised hash learning system is also designed with a model evaluation and tuning module, which is used to perform application evaluation and optimization on the model in the cross-modal representation learning module; The model evaluation and tuning module includes: evaluation indicator selection unit, cross-validation unit and hyperparameter adjustment unit; The evaluation indicator selection unit selects the retrieval accuracy and MAP evaluation indicators to ensure the comprehensiveness of the evaluation model performance, designs the evaluation function, and selects appropriate indicators according to the specific task; The cross-validation unit uses cross-validation techniques to ensure the robustness of model performance and avoid overfitting of the model to a specific data set. The data set is divided into multiple subsets, and the model is trained and validated multiple times. The hyperparameter adjustment unit adjusts the network structure and hyperparameters to improve model performance. It uses network search and Bayesian optimization to automate the process of adjusting hyperparameters and adjusts model parameters based on experimental results.

7. The unsupervised hash learning system for large-scale cross-modal retrieval according to claim 1, Features: The unsupervised hash learning system is also designed with a large-scale deployment module, which is used to deploy models and improve the performance of the system; Large-scale deployment modules include: hardware acceleration unit, approximate retrieval technology unit and distributed inference unit; The hardware acceleration unit uses the GPU support of the deep learning framework to configure the hardware environment and deploy it on GPU and other acceleration hardware to improve system performance; The approximate search technology unit integrates the approximate search library, reduces the search space through hash technology, and uses local sensitive hashing to accelerate the actual search process and improve search efficiency; The distributed inference unit uses TensorFlow Serving, a model service deployment tool provided by the deep learning framework, to deploy the model in a distributed environment, supporting high concurrent requests and ensuring the scalability of the system.

8. The unsupervised hash learning system for large-scale cross-modal retrieval according to claim 3, Features: The specific function formula of the reconstruction loss of the loss function is as follows: , where X is the input data, is the reconstructed data output by the autoencoder; The specific function formula of the hash coding loss loss function is as follows: , where B is the actual binary hash code, is the hash code generated by the model; The specific function formula of the variational autoencoder loss function is as follows: , where μ j and σ j is the mean and standard deviation of the latent variable, X i is the input data, is the reconstructed data output by the variational autoencoder.

9. A learning method for an unsupervised hash learning system for large-scale cross-modal retrieval, applicable to an unsupervised hash learning system for large-scale cross-modal retrieval as described in any one of claims 1 to 8, Features: The learning method comprises the following steps: S1. Data preparation and preprocessing: Collect a large amount of unlabeled data from different sources, ensure the diversity and representativeness of the data, including processing missing values, outliers, and standardizing the data format, to ensure the consistency and quality of the data; S2. Feature learning representation: Design appropriate feature extraction methods, use deep neural networks and autoencoders to extract high-level features of the data; S3. Model training optimization: Select appropriate unsupervised learning models, including autoencoders, variational autoencoders, and clustering algorithms, and define loss functions to ensure that the model learns useful representations in an unsupervised manner. S4. Model evaluation application: Select appropriate evaluation indicators, including clustering accuracy and reconstruction error, and use validation sets and test sets to evaluate the model to ensure the generalization performance of the learned representation on unlabeled data.

10. The learning method of an unsupervised hash learning system for large-scale cross-modal retrieval according to claim 9, Features: The learning method further comprises the following steps: S11. Divide the dataset into training set, validation set and test set, and perform necessary preprocessing, including image normalization and text vectorization; S21. Use dimensionality reduction, clustering or other representation learning methods to map the original data into a more compact representation space to retain the key information of the data; S31. Select optimization algorithms, including stochastic gradient descent (SGD) and Adam, to train the model and adjust hyperparameters to improve performance. S41. Apply the learned representations including data dimensionality reduction, anomaly detection and clustering to practical tasks, while ensuring that the deployment of the model meets performance and efficiency requirements.

Citation Information

Cited By

  • Cross-modal medical image registration method and system based on Bayesian neural architecture search

    CN119205863A

  • Partial alignment data-oriented representation learning and clustering method and system based on cross-modal correspondence estimation and comparative learning

    CN121256420A

  • A partial alignment data-oriented representation learning and clustering method and system based on cross-modal correspondence estimation and contrastive learning

    CN121256420B