A video description and retrieval method based on large model

Through the video description and retrieval method of the large model, natural language description is generated through frame-level information extraction and temporal information integration, which solves the problems of insufficient video content understanding and low retrieval accuracy in the existing technology, and achieves efficient and accurate video retrieval. , suitable for diverse needs.

CN118551078BActive Publication Date: 2024-10-01浪潮智能终端有限公司
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202411025300.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-30
Publication Date
2024-10-01
Estimated Expiration
2044-07-30

AI Technical Summary

Technical Problem

Existing video description and retrieval technologies cannot fully capture the dynamic characteristics and detailed information of video content, resulting in low retrieval accuracy, insufficient understanding, and poor scalability, making it difficult to meet the growing needs for video description and retrieval.

Method used

Adopting a large model-based video description and retrieval method, through frame-level information extraction, temporal information integration and video description generation, the pre-trained visual language large model is used to generate natural language descriptions, combined with inter-frame information, to achieve an in-depth understanding of video content. and efficient retrieval.

Benefits of technology

It improves the accuracy and efficiency of video retrieval, can capture the main content and semantic information of videos, meets users' personalized and diversified retrieval needs, and is suitable for automatic analysis and retrieval in fields such as security monitoring.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118551078B_ABST
    Figure CN118551078B_ABST
Patent Text Reader

Abstract

The invention discloses a video description and retrieval method based on a large model, and relates to the technical field of data processing and video retrieval. A video description and retrieval method based on a large model realizes the description and accurate retrieval of video content by utilizing the powerful capabilities of the large model. In video description generation, a rich video content description is obtained through frame-level information extraction, temporal information integration and video description generation steps; in video retrieval, accurate video retrieval results are obtained through retrieval information parsing and a retrieval method based on video description. The accuracy and efficiency of retrieval are improved through more powerful representation learning capabilities and in-depth understanding of video semantic information.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of data processing and video retrieval, and relates to a video description and retrieval method based on a large model. Background Art

[0002] With the rapid development of information technology, video, as an important information carrier, plays an increasingly important role in people's daily life and work. However, the complexity and diversity of video content make it a challenging task to effectively describe and retrieve it.

[0003] In the field of video description and retrieval, there are currently some specific existing technologies. The following are some specific existing technologies and their characteristics:

[0004] Keyword-based retrieval methods mainly rely on manually annotated or automatically extracted keywords for video retrieval. After the user enters the keyword, the system returns relevant videos by matching the keyword in the video metadata or title. This method cannot fully capture the dynamic characteristics and detailed information of the video content, resulting in low retrieval accuracy. In addition, the accuracy and completeness of the keywords also seriously affect the retrieval results.

[0005] Retrieval methods based on traditional computer vision technology use traditional visual features such as color, texture, and shape to describe video content, and perform retrieval by calculating the similarity between features. However, traditional visual features can only describe shallow information in the video and are difficult to capture high-level semantic concepts and dynamic behaviors in the video, so the retrieval effect is limited.

[0006] Video retrieval based on simple machine learning models uses simple machine learning models to classify and retrieve videos. These models are usually trained based on manually extracted features. However, relying on manual feature extraction is tedious and may miss important information. At the same time, simple models have limited ability to understand complex video content.

[0007] With the application of deep learning in the field of video analysis, deep learning methods usually use convolutional neural networks (CNN) or recurrent neural networks (RNN) to extract video features for retrieval or classification. Although deep learning can automatically learn video features, the depth and breadth of video content understanding still need to be improved.

[0008] In summary, the existing technologies have the following problems to varying degrees:

[0009] Insufficient understanding of video content: Traditional methods can often only extract shallow features of the video, such as color, texture, etc., but cannot deeply understand the semantic information in the video, resulting in inaccurate description and low retrieval efficiency.

[0010] Low retrieval accuracy: Since keyword-based retrieval methods cannot fully capture the dynamic characteristics and contextual information of video content, the retrieval results often deviate greatly from user needs.

[0011] Poor scalability: Faced with the ever-changing video content and user needs, traditional methods are difficult to flexibly adjust and optimize, and cannot meet the growing needs of video description and retrieval.

[0012] Therefore, the present invention proposes a video description and retrieval method based on a large model, aiming to improve the accuracy and efficiency of retrieval through more powerful representation learning capabilities and in-depth understanding of video semantic information. Summary of the invention

[0013] In order to make up for the deficiencies of the prior art, the present invention provides a video description and retrieval method based on a large model. The video description generation and retrieval technology can realize automatic analysis and retrieval of videos and improve the efficiency and accuracy of retrieval. The present invention is implemented by the following technical scheme: The present invention provides a video description and retrieval method based on a large model, including the specific steps of the video description generation method,

[0014] (1) Frame-level information extraction;

[0015] For the input video, first split it into frame images;

[0016] Using the pre-trained visual language model, the specific prompt P1 and the frame image are used as the input of the visual language model, and the output is a piece of natural language information as the frame-level information F;

[0017] (2) Integration of temporal information;

[0018] For the frame-level information extracted based on the video frame, it is fused with the frame-level information of the temporally adjacent video frames;

[0019] The fusion method is to obtain n frames before and after the current frame as adjacent frames according to the video playback order, integrate the frame-level information F0 of the current frame and the information Fn of the adjacent frames in order, input them into the large language model, extract and summarize the information based on the specific promptP2, and thus generate more temporal and coherent frame information containing inter-frame description information;

[0020] The frame-level information and the frame information containing the inter-frame description information together constitute the information extracted and summarized for each frame;

[0021] (3) Video description generation;

[0022] Extract and summarize information for each frame as part of the video description;

[0023] The video description extracts and summarizes the information of each frame and inputs it into the large language model. Based on the specific prompt P3, the information is extracted and summarized to generate the overall description of the video.

[0024] The overall description of the video is included as part of the video description;

[0025] The specific steps of video retrieval are:

[0026] (1) Retrieval information analysis;

[0027] The search information is a language description, a search image, or a combination of the language description and the search image;

[0028] When the search information is a language description, the search information is directly used as the search input;

[0029] When the retrieval information is a retrieval image, the trained visual language model is used to obtain the frame-level information of the image using a specific prompt P1 as the retrieval input;

[0030] When the retrieval information is a combination of a language description and a retrieval image, the language description and the frame-level information of the retrieval image are combined as the retrieval input;

[0031] (2) Retrieval of video descriptions;

[0032] Generate prompt P4 based on the search input and the overall description of the video, input it into the large language model, and obtain the result of the relevance between the video description and the search input;

[0033] When the result of the association is positive, the video is determined as a candidate video search result; when the result of the association is negative, the video is excluded as a search result;

[0034] For the candidate video retrieval results, generate promptP5 by combining the retrieval input and the frame information containing the inter-frame description information, input it into the large language model, and input the correlation result between the frame and the retrieval input;

[0035] When the relevance result is positive, the frame is judged as a relevance frame of the video retrieval result;

[0036] The relevance result is a descriptive statement expressing affirmation or negation;

[0037] The video retrieval result includes the video retrieval result and the associated frames of the retrieval result.

[0038] The beneficial effects of the present invention are:

[0039] In terms of video description, the large model can generate accurate video descriptions by learning multimodal information such as vision, audio, and text in the video. These descriptions can not only capture the main content of the video, but also express the semantic information and emotional color of the video, providing users with a richer understanding of the video.

[0040] In terms of video retrieval, the big model can build an efficient indexing and retrieval mechanism by learning the key features and semantic information in the video. When the retrieval information is obtained, the video related to the query is retrieved from a large video library. This video retrieval method based on the big model not only improves the accuracy and efficiency of retrieval, but also meets the user's needs for personalized and diversified retrieval.

[0041] In summary, the video description and retrieval method based on the big model has broad application prospects and important research value. This invention proposes a novel video description and retrieval method, which realizes accurate description and efficient retrieval of video content by utilizing the powerful capabilities of the big model, and provides strong support for the processing and application of video content.

[0042] In the field of security monitoring, video analysis technology is crucial for the detection and prevention of abnormal events. Through the video description generation and retrieval technology of the present invention, automatic analysis and retrieval of security monitoring videos can be achieved, thereby improving monitoring efficiency and accuracy. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] The present invention will be further described below in conjunction with the accompanying drawings;

[0044] Figure 1 The flowchart of the video description and retrieval method of the present invention is shown in FIG. DETAILED DESCRIPTION

[0045] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the specific embodiments of the present invention are described in detail below in conjunction with the accompanying drawings. In the following description, many specific details are set forth to facilitate a full understanding of the present invention. However, the present invention can be implemented in many other ways different from those described herein, and those skilled in the art can make similar improvements without violating the connotation of the present invention, so the present invention is not limited by the specific embodiments disclosed below.

[0046] The accompanying drawing is a specific embodiment of a large model-based video description and retrieval method of the present invention. Specific embodiment one:

[0048] 1. Video Description Generation

[0049] 1. Frame-level information extraction:

[0050] For the input video, first split it into frame images.

[0051] The specific prompt P1 is a prompt describing the information to be extracted from the picture, including but not limited to information such as objects, people, scenes, actions, relationships, colors, textures, etc. contained in the picture.

[0052] Using the pre-trained visual language model, the specific prompt P1 and the frame image are used as the input of the visual language model at the same time, and the output is a piece of natural language information as frame-level information.

[0053] A specific prompt P1 is set to describe the information that needs to be extracted from the frame image, such as "briefly describe the scene information, and describe the action status of the characters and the color and model information of the vehicle in detail."

[0054] Using the pre-trained visual language model, prompt P1 and the frame image are input into the visual language model to generate frame-level information F. This information may include "the scene is a daytime street scene with many pedestrians and vehicles; pedestrians are running, riding bicycles, and resting on the roadside; vehicles include white cars, black cars, and silver vans."

[0055] 2. Timing information integration:

[0056] In order to reflect the temporal relationship between video frames, the present invention proposes a temporal information integration method. The frame-level information extracted based on the video frame is fused with the frame-level information of the temporally adjacent video frames.

[0057] According to the playback order of the video, the n frames before and after the current frame are obtained as adjacent frames, and the frame-level information F0 of the current frame and the information Fn of the adjacent frames are integrated in sequence and input into the large language model. Information is extracted and summarized based on the specific prompt P2, thereby generating more temporal and coherent frame information containing inter-frame description information.

[0058] Sequential integration means that before each frame-level information, the offset description b of the frame relative to the current frame is added, and a language description is formed in sequence: [[bn, Fn]…[b-1, F-1], [b0, F0], [b+1, F1]…[bn, fn]]; specific embodiments of this information may include [[-1, the scene is a street scene during the day, including many pedestrians and vehicles; the pedestrians' actions are walking and resting on the roadside; the vehicles include red cars, black cars and silver vans. ], [0, the scene is a street scene during the day, including many pedestrians and vehicles; the pedestrians' actions are running, riding bicycles and resting on the roadside; the vehicles include white cars, black cars and silver vans. ], [1, the scene is a street scene during the day, including many pedestrians and vehicles; the pedestrians' actions are resting on the roadside; the vehicles include white cars, black cars and silver vans. ]].

[0059] The specific prompt P2 is a prompt that describes the information that needs to be extracted and summarized, including but not limited to the order of appearance of objects, changes in object size, increase or decrease in the number of characters, changes in scene depth, changes in the relationship between objects, changes in color and texture, etc.; for example: describing scene change information, pedestrian action information and vehicle information. A specific implementation example is: the scene is a street scene during the day; pedestrians are walking, running, riding bicycles and resting on the roadside; vehicles are red, black, white, silver sedans and silver vans.

[0060] The frame-level information and the frame information containing the inter-frame description information together constitute the information extracted and summarized for each frame.

[0061] 3. Video description generation:

[0062] The information for each frame is extracted and summarized as part of the video description.

[0063] The video description extracts and summarizes the information of each frame, inputs it into the large language model, extracts and summarizes the information based on the specific prompt P3, and thus generates an overall description of the video; for example, based on all the description information, summarizes the video scene and the information of pedestrians and vehicles that appear.

[0064] The overall description of the video is part of the video description; the specific implementation example includes: a daytime street scene with a large number of pedestrians, and the pedestrians are in various states such as walking, running, riding a bicycle, and resting on the roadside; the vehicles include cars and vans of various colors.

[0065] 2. Video Retrieval

[0066] 1. Retrieval information analysis:

[0067] The search information is a language description, or a search image, or a combination of the language description and the search image.

[0068] When the search information is a language description, the search information is directly used as the search input; a specific example is "help me find a white car."

[0069] The retrieval information is to use the trained visual language model to obtain the frame-level information of the picture as the retrieval input using a specific prompt P1 when retrieving the picture; in the specific embodiment here, a picture of a white car is input, and prompt P1 is as described above, "Briefly describe the scene information, and describe in detail the action status of the characters and the color and model information of the vehicle." Then the output is "There is a white car in the picture."

[0070] When the search information is a combination of a language description and a search image, the language description and the frame-level information of the search image are combined as the search input; the search input sample of the specific embodiment here is "Help me find a white car. There is a white car in the picture.".

[0071] 2. Video description-based retrieval

[0072] Prompt P4 is generated based on the retrieval input and the overall description of the video, and is input into the large language model to obtain the result of the correlation between the video description and the retrieval input; here, the above retrieval input and the above overall description of the video are connected as promptP4 and input into the large prediction model. The specific implementation example is "The search input is, help me find a white car. There is a white car in the picture. The overall description of the video is that it contains a daytime street scene with many pedestrians. The pedestrian states include walking, running, riding a bicycle, and resting on the roadside; the vehicles include cars and vans of various colors. Determine whether the search input and the overall description of the video are related. If there is a correlation, output yes, and if there is no correlation, output no.".

[0073] When the result of the association is positive, the video is determined as a candidate video retrieval result; when the result of the association is negative, the video is excluded as a retrieval result.

[0074] For the candidate video retrieval results, promptP5 is generated by combining the retrieval input and the frame information containing the inter-frame description information, and input into the large language model, and the correlation result of the frame and the retrieval input is input; the specific implementation example is "the search input is, help me find the white car. There is a white car in the picture. The description of this frame of the video is [[-1, the picture scene is a daytime street scene, including many pedestrians and vehicles; the pedestrian actions are walking and resting on the roadside; the vehicles include red cars, black cars and silver vans.], [0, the picture scene is a daytime street scene, including many pedestrians and vehicles; the pedestrian actions are running, riding a bicycle, and resting on the roadside; the vehicles include white cars, black cars and silver vans.], [1, the picture scene is a daytime street scene, including many pedestrians and vehicles; the pedestrian action is resting on the roadside; the vehicles include white cars, black cars and silver cars.]] Determine whether the search input and the overall description of the video are related. If there is a correlation, output yes, if there is no correlation, output no.".

[0075] When the relevance result is positive, the frame is determined to be a relevant frame of the video retrieval result.

[0076] The relevance result is a descriptive statement expressing affirmation or negation.

[0077] The video retrieval result includes the video retrieval result and the associated frames of the retrieval result.

Claims

1. A video description and retrieval method based on a large model, characterized in that: include, The specific steps of the video description generation method are: (1) Frame-level information extraction; For the input video, first split it into frame images; Using the pre-trained visual language model, the specific prompt P1 and the frame image are used as the input of the visual language model, and the output is a piece of natural language information as the frame-level information F; (2) Integration of temporal information; For the frame-level information extracted based on the video frame, it is fused with the frame-level information of the temporally adjacent video frames; The fusion method is to obtain n frames before and after the current frame as adjacent frames according to the video playback order, integrate the frame-level information F0 of the current frame and the information Fn of the adjacent frames in order, input them into the large language model, extract and summarize the information based on the specific prompt P2, and thus generate more temporal and coherent frame information containing inter-frame description information; The frame-level information and the frame information containing the inter-frame description information together constitute the information extracted and summarized for each frame; (3) Video description generation; Extract and summarize information for each frame as part of the video description; The video description extracts and summarizes the information of each frame and inputs it into the large language model. Based on the specific prompt P3, the information is extracted and summarized to generate the overall description of the video. The overall description of the video is included as part of the video description; The specific steps of video retrieval are: (1) Retrieval information analysis; The search information is a language description, a search image, or a combination of the language description and the search image; When the search information is a language description, the search information is directly used as the search input; When the retrieval information is a retrieval image, the trained visual language model is used to obtain the frame-level information of the image using a specific prompt P1 as the retrieval input; When the retrieval information is a combination of a language description and a retrieval image, the language description and the frame-level information of the retrieval image are combined as the retrieval input; (2) Retrieval of video descriptions; Generate prompt P4 based on the search input and the overall description of the video, input it into the large language model, and obtain the result of the relevance between the video description and the search input; When the result of the association is positive, the video is determined as a candidate video search result; when the result of the association is negative, the video is excluded as a search result; For the candidate video retrieval results, the prompt P5 is generated by combining the retrieval input and the frame information containing the inter-frame description information, and is input into the large language model, and the correlation result between the frame and the retrieval input is input; When the relevance result is positive, the frame is judged as a relevance frame of the video retrieval result; The relevance result is a descriptive statement expressing affirmation or negation; The video retrieval result includes the video retrieval result and the associated frames of the retrieval result.

2. The video description and retrieval method based on a large model according to claim 1, characterized in that: The specific prompt P1 is a prompt that describes the information that needs to be extracted from the picture, including but not limited to objects, people, scenes, actions, relationships, colors and texture information contained in the picture.

3. The video description and retrieval method based on a large model according to claim 1, characterized in that: Sequential integration means adding the offset description b of the frame relative to the current frame before each frame-level information, and forming a language description in sequence: [[bn, Fn]…[b-1, F-1], [b0, F0], [b+1, F1]…[bn, fn]].

4. The video description and retrieval method based on a large model according to claim 1, characterized in that: The specific prompt P2 is a prompt that describes the information that needs to be extracted and summarized, including but not limited to the order of appearance of objects, changes in object sizes, increases or decreases in the number of characters, changes in scene depth, changes in relationships between objects, and changes in color and texture.

Citation Information

Patent Citations

  • Video frame description information acquisition method and device and electronic equipment

    CN112966551A

  • Video retrieval method, device and system, electronic equipment and storage medium

    CN117493606A

  • Zero sample video time retrieval method, system and device and medium

    CN118132803A

  • Video description method based on cross-modal retrieval semantic enhancement and storage medium

    CN118153561A

  • Video content retrieval system

    US20180293313A1