Video query retrieval method and system based on semantic deep model

Through the video query retrieval method based on the semantic depth model, rich features of the video are extracted and semantic vectors are generated, which solves the shortcomings of traditional video retrieval methods in semantic understanding and achieves more accurate and efficient video retrieval effects.

CN118093938BActive Publication Date: 2024-09-13JIANGXI TIANPENG TECH DEV CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202410198615.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-02-22
Publication Date
2024-09-13
Estimated Expiration
2044-02-22

AI Technical Summary

Technical Problem

Traditional video retrieval methods have difficulty understanding video content at the semantic level, resulting in inaccurate and irrelevant retrieval results, and ignoring important feature information such as scenes, characters, and actions.

Method used

Adopt a video query retrieval method based on semantic deep models, extract rich feature information from videos through deep learning technology, build a deep neural network model to map features to semantic space, generate semantic vectors, and calculate semantic vector similarity for video retrieval and sorting .

Benefits of technology

It significantly improves the accuracy and efficiency of video retrieval, can accurately match video content at the semantic level, provides personalized sorting, meets user needs, and is suitable for various types of video libraries and query conditions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118093938B
    Figure CN118093938B
Patent Text Reader

Abstract

The present invention discloses a video query retrieval method and system based on a semantic deep model, belonging to the field of information retrieval technology. In order to solve the problem of poor accuracy and relevance of retrieval results for video retrieval, rich and comprehensive feature information can be extracted from the video through deep learning technology to more accurately describe the video content. By constructing a deep neural network model, the extracted video features are mapped to the semantic space, and a semantic vector representation is generated, which effectively realizes the transformation from image features to semantic understanding, significantly improves the accuracy and efficiency of video retrieval, and according to the query conditions input by the user, by calculating the similarity between two semantic vectors, the most semantically similar videos are quickly retrieved in the video library, and sorted according to the similarity, providing users with a more friendly and practical query experience, which can be flexibly applied to various types of video libraries and different query conditions, and has good scalability and adaptability.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of information retrieval technology, and in particular to a video query retrieval method and system based on a semantic depth model. Background Art

[0002] With the explosive growth of video data, video retrieval has become an important technical requirement. Traditional video retrieval methods usually perform similarity matching based on visual features such as color, texture, and shape. However, these methods have difficulty understanding video content at the semantic level, resulting in inaccurate and irrelevant retrieval results.

[0003] The following defects often exist in the prior art:

[0004] Traditional video retrieval methods usually only use some features in the video, such as color, texture, and shape, while ignoring other important feature information, such as scenes, characters, and actions. This incomplete feature extraction method may lead to inaccurate and irrelevant retrieval results. At the same time, traditional video retrieval methods usually only focus on the visual features of the video, while ignoring the semantic information of the video. Due to the lack of in-depth understanding of the video content, these methods are difficult to perform accurate similarity matching at the semantic level. Summary of the invention

[0005] The purpose of the present invention is to provide a video query retrieval method and system based on a semantic depth model to solve the problems raised in the above background technology.

[0006] To achieve the above object, the present invention provides the following technical solution: a video query retrieval method based on a semantic depth model, comprising the following steps:

[0007] Step 1: Use deep learning technology to extract rich feature information from the video, including color, texture, shape, and motion;

[0008] Step 2: Build a deep neural network model to map the extracted video features into the semantic space and generate a semantic vector;

[0009] Step 3: Measure the similarity between the two videos at the semantic level by calculating the similarity between the two semantic vectors;

[0010] Step 4: According to the query condition input by the user, the most semantically similar video is retrieved from the video library. First, the query condition input by the user is represented by a semantic vector, and then the video most similar to the semantic vector is searched in the video library;

[0011] Step 5: Sort the retrieved videos according to the similarity calculation results, and put the videos that best meet the user's needs at the front.

[0012] Furthermore, in step four, the similarity between the semantic vector of the query condition input by the user and the semantic vector of each video in the video library is calculated, and the similarity of each video in the video library is compared according to the similarity threshold to obtain the video that is most similar to the semantic vector of the query condition input by the user.

[0013] Furthermore, the present invention provides a video query retrieval system based on a semantic depth model, which is applied in the above-mentioned video query retrieval method based on a semantic depth model, comprising:

[0014] Feature extraction module for:

[0015] Use deep learning technology to deeply analyze the input video and extract color, texture, shape, and motion feature information from the input video;

[0016] Semantic modeling module for:

[0017] Build a deep neural network model to map video features into semantic space, capture the temporal information and contextual relationship of video content, and generate semantic vector representation;

[0018] Similarity calculation module, used for:

[0019] By calculating the similarity between two semantic vectors, the similarity between two videos at the semantic level is measured;

[0020] Video retrieval module for:

[0021] Retrieve the most semantically similar videos from the video library according to the query conditions input by the user, represent the query conditions input by the user with a semantic vector, and then search for the video library with the most similar video to the semantic vector;

[0022] Result sorting module, used to:

[0023] According to the similarity calculation results, the retrieved videos are sorted and the video that best meets the user's needs is adjusted to the front.

[0024] Furthermore, the feature extraction module includes:

[0025] Feature extraction unit, used to:

[0026] Use specific layers in CNN to detect and extract color distribution and color histogram information in the video, analyze texture patterns and structures in the video through CNN, perform contour detection and shape recognition on objects in the video, and combine optical flow technology to detect motion patterns and dynamic changes in the video;

[0027] Feature fusion unit, used for:

[0028] Integrate the extracted color, texture, shape and motion features, and effectively combine each feature to form a unified feature vector;

[0029] Feature normalization unit, used to:

[0030] The extracted features are normalized.

[0031] Furthermore, the semantic modeling module includes:

[0032] Timing information capture unit, used to:

[0033] Use RNN to capture the timing information in the video, analyze the temporal and spatial relationship between consecutive frames in the video, and capture dynamic changes and continuous actions;

[0034] Contextual relationship modeling unit, used to:

[0035] Use the self-attention mechanism in the Transformer architecture to model the contextual relationship of video content;

[0036] Feature fusion and semantic conversion unit, used for:

[0037] The information obtained from the temporal information capture unit and the contextual relationship modeling unit is fused, and the fused features are converted into a high-level semantic vector representation;

[0038] Semantic vector normalization unit, used to:

[0039] The generated semantic vectors are normalized.

[0040] Furthermore, the similarity calculation module includes:

[0041] Semantic vector input unit, used for:

[0042] Receive the semantic vector from the semantic modeling module, and format and preprocess the input semantic vector;

[0043] Similarity measurement unit, used to:

[0044] Select a suitable similarity measurement method according to specific needs, such as cosine similarity or Euclidean distance, calculate the similarity of the two input semantic vectors, and obtain a value as a measure of similarity;

[0045] A threshold setting unit, for:

[0046] Set the similarity threshold and dynamically adjust the similarity threshold based on actual retrieval results and user feedback.

[0047] Furthermore, the threshold setting unit includes:

[0048] A threshold initial value extraction module is used to extract the initial value of the similarity threshold;

[0049] A cycle duration setting module, used to set the observation cycle duration of the similarity threshold; wherein the observation cycle duration of the similarity threshold includes 30-90 unit durations, and the unit duration is 24 hours;

[0050] A comparison result extraction module is used to extract, for each observation period, the comparison result between the similarity values ​​corresponding to all two semantic vectors in the observation period and the initial similarity threshold;

[0051] A real similarity value extraction module, used for retrieving the real similarity values ​​of the two semantic vectors contained in the actual retrieval effect and user feedback when the comparison result between the similarity values ​​corresponding to the two semantic vectors and the similarity initial threshold value indicates that the similarity values ​​of the two semantic vectors are lower than the corresponding similarity threshold value;

[0052] A threshold adjustment judgment module, used to judge whether the initial similarity threshold needs to be adjusted by using the difference between the real similarity value and the similarity values ​​corresponding to the two semantic vectors;

[0053] The adjustment execution module is used to adjust the initial similarity threshold using a threshold adjustment model when it is determined that the initial similarity threshold needs to be adjusted; wherein the structure of the threshold adjustment model is as follows:

[0054]

[0055]

[0056] Among them, S yt It indicates the similarity threshold corresponding to the initial similarity threshold after adjustment; S wy Indicates the preset judgment threshold; S q represents the similarity judgment value; k represents the total number of observation cycles; S wj represents the stability parameter of similarity judgment in the jth observation period; S 01j and S 02j They represent the first similarity stability parameter and the second similarity stability parameter of the j-th observation period respectively; S y represents the similarity threshold; λ represents the ratio parameter.

[0057] Furthermore, the threshold adjustment judgment module includes:

[0058] A group number extraction module, for extracting the number of groups consisting of two semantic vectors below the corresponding similarity threshold in each observation period when a comparison result between the similarity values ​​corresponding to the two semantic vectors and the similarity initial threshold indicates that the similarity values ​​of the two semantic vectors are below the corresponding similarity threshold;

[0059] A value retrieval module is used to retrieve the similarity value corresponding to each group of two semantic vectors below the corresponding similarity threshold in each observation period;

[0060] The stability parameter acquisition module is used to obtain the similarity judgment stability parameter contained in each observation period by using the similarity values ​​corresponding to the two semantic vectors below the corresponding similarity threshold in each observation period; wherein the similarity judgment stability parameter is obtained by the following formula:

[0061]

[0062]

[0063]

[0064] Among them, S w represents the stability parameter of similarity judgment; n represents the number of groups corresponding to two semantic vectors below the corresponding similarity threshold; S 01 and S 02 Respectively represent the first similarity stability parameter and the second similarity stability parameter; S i represents the similarity value of the two semantic vectors in the i-th group below the corresponding similarity threshold; S y represents the similarity threshold; m represents the number of groups corresponding to two semantic vectors that are not less than the corresponding similarity threshold; S zi Indicates the true similarity value of two semantic vectors below the corresponding similarity threshold; S j Represents the similarity value corresponding to the two semantic vectors whose jth value is not less than the corresponding similarity threshold;

[0065] The comprehensive parameter acquisition module is used to integrate the similarity judgment stability parameters contained in each observation period to generate a comprehensive similarity judgment value; wherein the similarity judgment value is obtained by the following formula:

[0066]

[0067] Among them, S q represents the similarity judgment value; k represents the total number of observation cycles; S wj represents the stability parameter of similarity judgment in the jth observation period; S 01j and S 02jdenote the first similarity stability parameter and the second similarity stability parameter of the j-th observation period respectively;

[0068] The threshold adjustment execution module is used to determine that the initial similarity threshold needs to be adjusted when the similarity determination value is lower than a preset determination threshold.

[0069] Furthermore, the video retrieval module includes:

[0070] The query condition processing unit is used to:

[0071] Receive the query conditions entered by the user, extract keywords, scenes, characters and other information, and convert them into semantic vector representation;

[0072] Video library index unit, used to:

[0073] Establish an index structure for the video library, pre-process the videos in the video library by interacting with the feature extraction module and the semantic modeling module, and generate a corresponding semantic vector representation for each video;

[0074] Retrieve matching unit, used to:

[0075] By interacting with the similarity calculation module, the similarity between the semantic vector of the query condition and the semantic vector of each video in the video library is calculated, and the videos most relevant to the user's query condition are screened out according to the similarity threshold.

[0076] Furthermore, the result sorting module includes:

[0077] The result receiving unit is used for:

[0078] Receiving a similarity value output by a similarity calculation module;

[0079] Sequencing application unit for:

[0080] Sort the videos according to the similarity calculation results;

[0081] Output display unit for:

[0082] The sorted video retrieval results are returned to the user.

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

[0084] 1. The present invention can extract rich and comprehensive feature information from videos through deep learning technology, including color, texture, shape and motion, etc. These features can more accurately describe the video content and provide a solid foundation for subsequent semantic modeling. By building a deep neural network model, the extracted video features are mapped into the semantic space and a semantic vector representation is generated, which effectively realizes the transformation from image features to semantic understanding and significantly improves the accuracy and efficiency of video retrieval.

[0085] 2. The present invention can accurately measure the similarity between two videos at the semantic level by calculating the similarity between two semantic vectors, thereby providing an accurate matching basis for subsequent video retrieval. According to the query conditions input by the user, the most semantically similar videos are quickly retrieved from the video library and sorted according to the similarity. This personalized sorting puts the videos that best meet the user's needs at the front, providing users with a more friendly and practical query experience. It can be flexibly applied to various types of video libraries and different query conditions, and has good scalability and adaptability.

[0086] 3. The feature extraction module and semantic modeling module of the present invention can comprehensively extract the color, texture, shape and motion features in the video, so as to more accurately describe the video content. The similarity calculation module can accurately measure the semantic similarity between videos by calculating the similarity between two semantic vectors, thereby improving the accuracy and efficiency of retrieval. The video retrieval module is based on the user's query conditions. The system can quickly retrieve the most semantically similar videos in the video library and sort them according to the similarity. The personalized sorting of the result sorting module provides users with a more friendly and practical query experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0087] Figure 1 It is a flow chart of a video query retrieval method based on a semantic depth model of the present invention;

[0088] Figure 2 It is a module schematic diagram of the video query and retrieval system of the present invention. DETAILED DESCRIPTION

[0089] 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.

[0090] To solve the technical problem of poor accuracy and relevance of video retrieval results, please refer to Figure 1 , the present invention provides the following technical solutions:

[0091] The video query retrieval method based on the semantic depth model includes the following steps:

[0092] Step 1: Use deep learning technology to extract rich feature information from the video, including color, texture, shape, and motion. These feature information can fully describe the video content and provide basic data for subsequent semantic modeling;

[0093] Step 2: Build a deep neural network model to map the extracted video features into the semantic space and generate a semantic vector representation. This step is the bridge from image features to semantic understanding and is crucial to improving the accuracy and efficiency of video retrieval.

[0094] Step 3: By calculating the similarity between the two semantic vectors, the similarity between the two videos at the semantic level is measured, providing an accurate matching basis for subsequent video retrieval;

[0095] Step 4: According to the query condition input by the user, the most semantically similar video is retrieved from the video library. First, the query condition input by the user is represented by a semantic vector, and then the video most similar to the semantic vector is searched in the video library;

[0096] Step 5: Sort the retrieved videos according to the similarity calculation results, and put the videos that best meet the user's needs at the front. This step can provide users with a more friendly query experience and improve the practicality of video retrieval.

[0097] In the above embodiment, the similarity between the semantic vector of the query condition input by the user and the semantic vector of each video in the video library is calculated, and the similarity of each video in the video library is compared according to the similarity threshold to obtain the video that is most similar to the semantic vector of the query condition input by the user.

[0098] Specifically, deep learning technology can extract rich and comprehensive feature information from videos, including color, texture, shape, and motion. These features can more accurately describe the video content and provide a solid foundation for subsequent semantic modeling. By building a deep neural network model, the extracted video features are mapped into the semantic space and a semantic vector representation is generated, which effectively realizes the transformation from image features to semantic understanding and significantly improves the accuracy and efficiency of video retrieval.

[0099] In the above embodiment, by calculating the similarity between two semantic vectors, the similarity between two videos at the semantic level can be accurately measured, providing an accurate matching basis for subsequent video retrieval.

[0100] In the above embodiment, the method can quickly retrieve the most semantically similar videos in the video library according to the query conditions input by the user, and sort them according to the similarity. This personalized sorting puts the videos that best meet the user's needs at the front, providing the user with a more friendly and practical query experience. The method can be flexibly applied to various types of video libraries and different query conditions, and has good scalability and adaptability.

[0101] See also Figure 2 , a video query retrieval system based on semantic deep model, including:

[0102] Feature extraction module for:

[0103] Use deep learning technology to deeply analyze the input video and extract color, texture, shape, and motion feature information from the input video;

[0104] Semantic modeling module for:

[0105] Build a deep neural network model to map video features into a semantic space, capture the temporal information and contextual relationships of the video content, generate semantic vector representations, and provide high-quality semantic data for subsequent video retrieval;

[0106] Similarity calculation module, used for:

[0107] By calculating the similarity between two semantic vectors, the similarity between two videos at the semantic level is measured, and cosine similarity and Euclidean distance measurement methods are used to provide accurate matching basis for video retrieval, ensuring that the retrieval results are highly relevant to the user's query conditions;

[0108] Video retrieval module for:

[0109] Retrieve the most semantically similar videos from the video library according to the query conditions input by the user, represent the query conditions input by the user with a semantic vector, and then search for the video library with the most similar video to the semantic vector;

[0110] Result sorting module, used to:

[0111] According to the similarity calculation results, the retrieved videos are sorted, and the videos that best meet the user's needs are adjusted to the front, providing a clear and orderly result display to facilitate users to quickly locate and select the required videos.

[0112] Specifically, the feature extraction module and the semantic modeling module can comprehensively extract the color, texture, shape and motion features in the video, thereby more accurately describing the video content. The similarity calculation module can accurately measure the semantic similarity between videos by calculating the similarity between two semantic vectors, thereby improving the accuracy and efficiency of retrieval. The video retrieval module is based on the user's query conditions. The system can quickly retrieve the most semantically similar videos in the video library and sort them according to similarity. The personalized sorting of the result sorting module provides users with a more friendly and practical query experience.

[0113] The feature extraction module includes:

[0114] Feature extraction unit, used to:

[0115] Use specific layers in CNN to detect and extract color distribution and color histogram information in the video, identify the main colors and color changes in the video to reflect the theme or emotion of the video, analyze the texture patterns and structures in the video through CNN to identify different materials and surface textures. The detailed analysis of texture helps to understand the details of the scene and the texture of the object. Perform contour detection and shape recognition on the objects in the video, analyze the basic shape, size, direction, etc. of the object, and provide a basis for subsequent object recognition. Combined with optical flow technology to detect motion patterns and dynamic changes in the video, analyze the motion trajectory, speed, direction, etc. of the object to understand the dynamic events in the video;

[0116] Feature fusion unit, used for:

[0117] Integrate the extracted color, texture, shape and motion features, and effectively combine each feature to form a unified feature vector to provide a more comprehensive description of the video content;

[0118] Feature normalization unit, used to:

[0119] The extracted features are standardized to ensure the comparability and consistency between different features.

[0120] In the above embodiment, by using CNN to extract multiple features such as color, texture, shape and motion, the system is able to provide a richer and more comprehensive description of the video content, which helps to more accurately understand the subject, emotion, objects and dynamic events of the video.

[0121] In the above embodiment, the feature fusion unit effectively combines different features to form a unified feature vector, providing a more comprehensive description of the video content, and the feature standardization unit ensures the comparability and consistency between different features, further improving the accuracy and efficiency of retrieval.

[0122] In the above embodiment, by combining the extraction and analysis of multiple features, the system can more accurately measure the similarity between videos, thereby improving the accuracy of video retrieval and providing users with more accurate and relevant retrieval results.

[0123] The semantic modeling module includes:

[0124] Timing information capture unit, used to:

[0125] Use RNN to capture the timing information in the video, analyze the temporal and spatial relationship between consecutive frames in the video, and capture dynamic changes and continuous actions;

[0126] Contextual relationship modeling unit, used to:

[0127] The self-attention mechanism in the Transformer architecture is used to model the contextual relationship of the video content. By analyzing the associations and dependencies between different video clips, the overall content and theme of the video can be understood.

[0128] Feature fusion and semantic conversion unit, used for:

[0129] The information obtained from the temporal information capture unit and the contextual relationship modeling unit is fused, and the fused features are converted into high-level semantic vector representations to ensure that the semantic vector can fully and accurately reflect the semantic content of the video;

[0130] Semantic vector normalization unit, used to:

[0131] The generated semantic vectors are standardized to ensure the comparability and consistency between different vectors, which helps to improve the accuracy of similarity calculation and the efficiency of retrieval.

[0132] In the above embodiments, by using the RNN and Transformer architecture, the timing information and contextual relationships in the video can be effectively captured, which helps to understand the dynamic changes, continuous actions and overall content themes in the video, and improves the in-depth understanding of the video content.

[0133] In the above embodiment, the feature fusion and semantic conversion unit integrates the information from different units and converts it into a high-level semantic vector representation, ensuring that the semantic vector can fully and accurately reflect the semantic content of the video, providing strong support for subsequent similarity calculation and retrieval.

[0134] The similarity calculation module includes:

[0135] Semantic vector input unit, used for:

[0136] Receive semantic vectors from the semantic modeling module, format and preprocess the input semantic vectors to ensure that they are suitable for similarity calculation;

[0137] Similarity measurement unit, used to:

[0138] Select a suitable similarity measurement method according to specific needs, such as cosine similarity or Euclidean distance, calculate the similarity of the two input semantic vectors, and obtain a value as a measure of similarity;

[0139] A threshold setting unit, for:

[0140] Set a similarity threshold and dynamically adjust the similarity threshold based on actual retrieval results and user feedback to ensure the accuracy and practicality of the retrieval results.

[0141] In the above embodiment, the similarity measurement unit accurately measures the semantic vector from the semantic modeling module, which helps to ensure the accuracy and reliability of similarity calculation and improve the accuracy of video retrieval.

[0142] In the above embodiment, the threshold setting unit allows the similarity threshold to be dynamically adjusted according to the actual retrieval effect and user feedback, which helps to balance the accuracy and recall rate of video retrieval and meet the needs of different users and practical applications. Accurate similarity calculation and flexible threshold setting help improve the efficiency and accuracy of video retrieval and provide users with more accurate and relevant retrieval results.

[0143] Specifically, the threshold setting unit includes:

[0144] A threshold initial value extraction module is used to extract the initial value of the similarity threshold;

[0145] A cycle duration setting module, used to set the observation cycle duration of the similarity threshold; wherein the observation cycle duration of the similarity threshold includes 30-90 unit durations, and the unit duration is 24 hours;

[0146] A comparison result extraction module is used to extract, for each observation period, the comparison result between the similarity values ​​corresponding to all two semantic vectors in the observation period and the initial similarity threshold;

[0147] A real similarity value extraction module, used for retrieving the real similarity values ​​of the two semantic vectors contained in the actual retrieval effect and user feedback when the comparison result between the similarity values ​​corresponding to the two semantic vectors and the similarity initial threshold value indicates that the similarity values ​​of the two semantic vectors are lower than the corresponding similarity threshold value;

[0148] A threshold adjustment judgment module, used to judge whether the initial similarity threshold needs to be adjusted by using the difference between the real similarity value and the similarity values ​​corresponding to the two semantic vectors;

[0149] The adjustment execution module is used to adjust the initial similarity threshold using a threshold adjustment model when it is determined that the initial similarity threshold needs to be adjusted; wherein the structure of the threshold adjustment model is as follows:

[0150]

[0151]

[0152] Among them, S yt It indicates the similarity threshold corresponding to the initial similarity threshold after adjustment; S wy Indicates the preset judgment threshold; S q represents the similarity judgment value; k represents the total number of observation cycles; S wj represents the stability parameter of similarity judgment in the jth observation period; S 01j and S 02j They represent the first similarity stability parameter and the second similarity stability parameter of the j-th observation period respectively; S y represents the similarity threshold; λ represents the ratio parameter.

[0153] The technical effect of the above technical solution is: the threshold initial value extraction module can extract the initial value of the similarity threshold, providing a basis for subsequent threshold adjustment. The cycle duration setting module can set the observation cycle duration of the similarity threshold to ensure the timeliness and accuracy of the threshold adjustment. By setting a suitable observation cycle, the similarity changes of the semantic vectors can be better monitored. The comparison result extraction module can extract the comparison results between the similarity values ​​corresponding to all two semantic vectors in the observation cycle and the similarity initial threshold for each observation cycle. The extraction of such comparison results helps to better understand the similarity state of the semantic vectors. When the comparison result shows that the similarity values ​​of the two semantic vectors are lower than the initial threshold, the real similarity value extraction module can retrieve the real similarity values ​​of the two semantic vectors contained in the actual retrieval effect and user feedback. This retrieval mechanism can better understand the actual needs and feedback of users and improve the accuracy of semantic similarity judgment. The threshold adjustment judgment module uses the difference between the real similarity value and the similarity values ​​corresponding to the two semantic vectors to determine whether the initial similarity threshold needs to be adjusted. This judgment mechanism can be dynamically adjusted according to actual needs and feedback to improve the accuracy and adaptability of similarity threshold setting. When it is determined that the initial similarity threshold needs to be adjusted, the adjustment execution module uses the threshold adjustment model to adjust the initial similarity threshold. This adjustment mechanism can be dynamically adjusted according to the actual situation to ensure that the setting of the similarity threshold is more accurate and reasonable. The above technical solution of this embodiment can automatically adjust and optimize the threshold through the preset threshold adjustment model and algorithm to achieve intelligent management of semantic similarity judgment. This automated and intelligent approach can greatly improve the efficiency and accuracy of semantic similarity judgment and reduce the possibility of manual intervention and misjudgment.

[0154] In summary, the threshold setting unit in the above technical solution provides a dynamic, accurate and automated method for determining semantic similarity, which helps to better understand the actual needs and feedback of users and improve the accuracy and adaptability of semantic similarity determination.

[0155] Specifically, the threshold adjustment judgment module includes:

[0156] A group number extraction module, for extracting the number of groups consisting of two semantic vectors below the corresponding similarity threshold in each observation period when a comparison result between the similarity values ​​corresponding to the two semantic vectors and the similarity initial threshold indicates that the similarity values ​​of the two semantic vectors are below the corresponding similarity threshold;

[0157] A value retrieval module is used to retrieve the similarity value corresponding to each group of two semantic vectors below the corresponding similarity threshold in each observation period;

[0158] The stability parameter acquisition module is used to obtain the similarity judgment stability parameter contained in each observation period by using the similarity values ​​corresponding to the two semantic vectors below the corresponding similarity threshold in each observation period; wherein the similarity judgment stability parameter is obtained by the following formula:

[0159]

[0160]

[0161]

[0162] Among them, S w represents the stability parameter of similarity judgment; n represents the number of groups corresponding to two semantic vectors below the corresponding similarity threshold; S 01 and S 02 Respectively represent the first similarity stability parameter and the second similarity stability parameter; S i represents the similarity value of the two semantic vectors in the i-th group below the corresponding similarity threshold; S y represents the similarity threshold; m represents the number of groups corresponding to two semantic vectors that are not less than the corresponding similarity threshold; S zi Indicates the true similarity value of two semantic vectors below the corresponding similarity threshold; S j Represents the similarity value corresponding to the two semantic vectors whose jth value is not less than the corresponding similarity threshold;

[0163] The comprehensive parameter acquisition module is used to integrate the similarity judgment stability parameters contained in each observation period to generate a comprehensive similarity judgment value; wherein the similarity judgment value is obtained by the following formula:

[0164]

[0165] Among them, S q represents the similarity judgment value; k represents the total number of observation cycles; S wj represents the stability parameter of similarity judgment in the jth observation period; S 01j and S 02j denote the first similarity stability parameter and the second similarity stability parameter of the j-th observation period respectively;

[0166] The threshold adjustment execution module is used to determine that the initial similarity threshold needs to be adjusted when the similarity determination value is lower than a preset determination threshold.

[0167] The technical effect of the above technical solution is: when the similarity value of two semantic vectors is lower than the similarity threshold, the group number extraction module can extract the number of semantic vector groups below the threshold in each observation period, and the value retrieval module can retrieve the similarity values ​​corresponding to these semantic vectors below the threshold. The two modules work together to provide the necessary data basis for the subsequent stability parameter calculation. Using the similarity values ​​corresponding to the two semantic vectors below the similarity threshold in each observation period, the stability parameter acquisition module can calculate the similarity judgment stability parameter of each observation period. This parameter reflects the stability of the similarity of the semantic vectors below the threshold in each observation period, which helps to determine whether the similarity threshold needs to be adjusted. The comprehensive parameter acquisition module integrates the similarity judgment stability parameters of each observation period to generate a comprehensive similarity judgment value. This judgment value integrates the information of all observation periods and provides a comprehensive indicator for determining whether the similarity threshold needs to be adjusted. The threshold adjustment execution module automatically determines whether the initial similarity threshold needs to be adjusted based on the comparison result between the comprehensive similarity judgment value and the preset judgment threshold. This automated judgment and execution method improves the intelligence and response speed of the system. By carefully analyzing and processing semantic vectors below the similarity threshold and making comprehensive judgments based on data from multiple observation periods, the module can more accurately identify situations where the similarity threshold needs to be adjusted, thereby improving the accuracy and stability of similarity judgments. Since the similarity of semantic vectors may change over time and context, the module can better adapt to this changing semantic environment by dynamically monitoring and adjusting the similarity threshold, thereby improving the adaptability and robustness of the system.

[0168] In summary, the threshold adjustment judgment module in the above technical solution realizes accurate, stable and dynamic management of the similarity threshold through meticulous data processing, comprehensive parameter acquisition and automated threshold adjustment judgment and execution mechanism, which helps to improve the accuracy of semantic similarity judgment and the overall performance of the system.

[0169] The video retrieval module includes:

[0170] The query condition processing unit is used to:

[0171] Receive the query conditions entered by the user, extract keywords, scenes, characters and other information, and convert them into semantic vector representation;

[0172] Video library index unit, used to:

[0173] Establish an index structure for the video library to quickly retrieve videos similar to the query conditions. Preprocess the videos in the video library by interacting with the feature extraction module and the semantic modeling module to generate a corresponding semantic vector representation for each video.

[0174] Retrieve matching unit, used to:

[0175] By interacting with the similarity calculation module, the similarity between the semantic vector of the query condition and the semantic vector of each video in the video library is calculated, and the videos most relevant to the user's query condition are screened out according to the similarity threshold.

[0176] In the above embodiment, by receiving the query conditions input by the user, the system can automatically extract keywords, scenes, characters and other information, and convert them into semantic vector representations, providing users with a more concise and intuitive query method and reducing the steps that users need to manually select and extract features.

[0177] In the above embodiment, the establishment of the video library index unit and the preprocessing of the videos in the video library enable the system to quickly retrieve videos similar to the query conditions. Through the interaction with the feature extraction module and the semantic modeling module, each video is converted into a corresponding semantic vector representation, thereby improving the efficiency and accuracy of the retrieval.

[0178] In the above embodiment, the retrieval matching unit calculates the similarity between the semantic vector of the query condition and the semantic vector of each video in the video library through interaction with the similarity calculation module, and selects the videos most relevant to the user's query condition according to the similarity threshold, thereby ensuring the accuracy and relevance of the retrieval results.

[0179] The result sorting module includes:

[0180] The result receiving unit is used for:

[0181] Receiving a similarity value output by a similarity calculation module;

[0182] Sequencing application unit for:

[0183] According to the similarity calculation results, apply an appropriate sorting algorithm to sort the videos;

[0184] Output display unit for:

[0185] The sorted video retrieval results are returned to the user, providing a clear and orderly result display to facilitate users to browse and select the required videos.

[0186] In the above embodiment, the result sorting module sorts the videos according to the similarity calculation results, ensuring the accuracy and reliability of the retrieval results, and can put the most relevant and similar videos in the front, improving user satisfaction, providing users with a clear and orderly result display, facilitating users to browse and select the required videos, enhancing practicality, helping to enhance user satisfaction and loyalty, and promoting the widespread application and acceptance of video retrieval systems.

[0187] The above description is only a preferred specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can make equivalent replacements or changes according to the technical scheme and inventive concept of the present invention within the technical scope disclosed by the present invention, which should be covered by the protection scope of the present invention.

Claims

1. A video query retrieval method based on a semantic deep model, characterized in that: The following steps are involved: Step 1: Use deep learning technology to extract rich feature information from the video, including color, texture, shape, and motion; Step 2: Build a deep neural network model to map the extracted video features into the semantic space and generate a semantic vector; Step 3: Measure the similarity between the two videos at the semantic level by calculating the similarity between the two semantic vectors; Step 4: According to the query condition input by the user, the most semantically similar video is retrieved from the video library. First, the query condition input by the user is represented by a semantic vector, and then the video most similar to the semantic vector is searched in the video library; Step 5: Sort the retrieved videos according to the similarity calculation results, and put the videos that best meet the user's needs at the front; In step 4, the similarity between the semantic vector of the query condition input by the user and the semantic vector of each video in the video library is calculated, and the similarity of each video in the video library is compared according to the similarity threshold to obtain the video that is most similar to the semantic vector of the query condition input by the user; The video query retrieval system based on the semantic depth model is applied in the above-mentioned video query retrieval method based on the semantic depth model, and includes: Feature extraction module for: Use deep learning technology to perform in-depth analysis on the input video and extract color, texture, shape, and motion feature information from the input video; Semantic modeling module for: Build a deep neural network model to map video features into semantic space, capture the temporal information and contextual relationship of video content, and generate semantic vector representation; Similarity calculation module, used for: By calculating the similarity between two semantic vectors, the similarity between two videos at the semantic level is measured; Video retrieval module for: Retrieve the most semantically similar videos from the video library according to the query conditions input by the user, represent the query conditions input by the user with a semantic vector, and then search for the video library with the most similar video to the semantic vector; Result sorting module, used to: According to the similarity calculation results, the retrieved videos are sorted and the video that best meets the user's needs is adjusted to the front; Wherein, the similarity calculation module includes: Semantic vector input unit, used for: Receive the semantic vector from the semantic modeling module, and format and preprocess the input semantic vector; Similarity measurement unit, used to: Select a suitable similarity measurement method according to specific needs, calculate the similarity of the two input semantic vectors, and obtain a value as a measure of similarity; A threshold setting unit, for: Set the similarity threshold and dynamically adjust the similarity threshold based on actual search results and user feedback; Wherein, the threshold setting unit includes: A threshold initial value extraction module is used to extract the initial value of the similarity threshold; A cycle duration setting module, used to set the observation cycle duration of the similarity threshold; wherein the observation cycle duration of the similarity threshold includes 30-90 unit durations, and the unit duration is 24 hours; A comparison result extraction module is used to extract, for each observation period, the comparison result between the similarity values ​​corresponding to all two semantic vectors in the observation period and the initial similarity threshold; A real similarity value extraction module, used for retrieving the real similarity values ​​of the two semantic vectors contained in the actual retrieval effect and user feedback when the comparison result between the similarity values ​​corresponding to the two semantic vectors and the similarity initial threshold value indicates that the similarity values ​​of the two semantic vectors are lower than the corresponding similarity threshold value; A threshold adjustment judgment module, used to judge whether the initial similarity threshold needs to be adjusted by using the difference between the real similarity value and the similarity values ​​corresponding to the two semantic vectors; The adjustment execution module is used to adjust the initial similarity threshold using a threshold adjustment model when it is determined that the initial similarity threshold needs to be adjusted; wherein the structure of the threshold adjustment model is as follows: Among them, S yt It indicates the similarity threshold corresponding to the initial similarity threshold after adjustment; S wy Indicates the preset judgment threshold; S q represents the similarity judgment value; k represents the total number of observation cycles; S wj represents the stability parameter of similarity judgment in the jth observation period; S 01j and S 02j They represent the first similarity stability parameter and the second similarity stability parameter of the j-th observation period respectively; S y represents the similarity threshold; λ represents the ratio parameter.

2. The video query retrieval system based on semantic deep model as claimed in claim 1, characterized in that: The feature extraction module comprises: Feature extraction unit, used to: Use specific layers in CNN to detect and extract color distribution and color histogram information in the video, analyze texture patterns and structures in the video through CNN, perform contour detection and shape recognition on objects in the video, and combine optical flow technology to detect motion patterns and dynamic changes in the video; Feature fusion unit, used for: Integrate the extracted color, texture, shape and motion features, and effectively combine each feature to form a unified feature vector; Feature normalization unit, used to: The extracted features are normalized.

3. The video query retrieval system based on semantic deep model as claimed in claim 1, characterized in that: The semantic modeling module includes: Timing information capture unit, used to: Use RNN to capture the timing information in the video, analyze the temporal and spatial relationship between consecutive frames in the video, and capture dynamic changes and continuous actions; Contextual relationship modeling unit, used to: Use the self-attention mechanism in the Transformer architecture to model the contextual relationship of video content; Feature fusion and semantic conversion unit, used for: The information obtained from the temporal information capture unit and the contextual relationship modeling unit is fused, and the fused features are converted into a high-level semantic vector representation; Semantic vector normalization unit, used to: The generated semantic vectors are normalized.

4. The video query retrieval system based on semantic deep model as claimed in claim 1, characterized in that: The threshold adjustment judgment module includes: A group number extraction module, for extracting the number of groups consisting of two semantic vectors below the corresponding similarity threshold in each observation period when a comparison result between the similarity values ​​corresponding to the two semantic vectors and the similarity initial threshold indicates that the similarity values ​​of the two semantic vectors are below the corresponding similarity threshold; A value retrieval module is used to retrieve the similarity value corresponding to each group of two semantic vectors below the corresponding similarity threshold in each observation period; The stability parameter acquisition module is used to obtain the similarity judgment stability parameter contained in each observation period by using the similarity values ​​corresponding to the two semantic vectors below the corresponding similarity threshold in each observation period; wherein the similarity judgment stability parameter is obtained by the following formula: Among them, S w represents the stability parameter of similarity judgment; n represents the number of groups corresponding to two semantic vectors below the corresponding similarity threshold; S 01 and S 02 Respectively represent the first similarity stability parameter and the second similarity stability parameter; S i represents the similarity value of the two semantic vectors in the i-th group below the corresponding similarity threshold; S y represents the similarity threshold; m represents the number of groups corresponding to two semantic vectors that are not less than the corresponding similarity threshold; S zi Indicates the true similarity value of two semantic vectors below the corresponding similarity threshold; S j Represents the similarity value corresponding to the two semantic vectors whose jth value is not less than the corresponding similarity threshold; The comprehensive parameter acquisition module is used to integrate the similarity judgment stability parameters contained in each observation period to generate a comprehensive similarity judgment value; wherein the similarity judgment value is obtained by the following formula: Among them, S q represents the similarity judgment value; k represents the total number of observation cycles; S wj represents the stability parameter of similarity judgment in the jth observation period; S 01j and S 02j denote the first similarity stability parameter and the second similarity stability parameter of the j-th observation period respectively; The threshold adjustment execution module is used to determine that the initial similarity threshold needs to be adjusted when the similarity determination value is lower than a preset determination threshold.

5. The video query retrieval system based on semantic deep model as claimed in claim 1, characterized in that: The video retrieval module comprises: The query condition processing unit is used to: Receive the query conditions entered by the user, extract keywords, scenes, and characters, and convert them into semantic vector representations; Video library index unit, used to: Establish an index structure for the video library, pre-process the videos in the video library by interacting with the feature extraction module and the semantic modeling module, and generate a corresponding semantic vector representation for each video; Retrieve matching unit, used to: By interacting with the similarity calculation module, the similarity between the semantic vector of the query condition and the semantic vector of each video in the video library is calculated, and the videos most relevant to the user's query condition are screened out according to the similarity threshold.

6. The video query retrieval system based on semantic deep model as claimed in claim 1, characterized in that: The result sorting module comprises: The result receiving unit is used for: Receiving a similarity value output by a similarity calculation module; Sequencing application unit for: Sort the videos according to the similarity calculation results; Output display unit for: The sorted video retrieval results are returned to the user.

Citation Information

Patent Citations

  • Lable feature near-duplicated video detection method based on convolutional neural network semantic classification

    CN111723692A

  • Video stream processing method and device, computer equipment and storage medium

    CN111898416A

  • Data processing method and device and computer readable storage medium

    CN113590854A

  • Dynamic video segment recommendation based on video playback location

    US20100199295A1

  • Audio search using codec frames

    US20160098999A1