Video content identification method based on multi-modal feature fusion and related equipment
Through the video content recognition method of multimodal feature fusion, combined with video and text features, the problem of low accuracy in video content recognition in traditional methods is solved, and more accurate understanding and recognition of complex video scenes is achieved.
Patent Information
- Application Number
- CN202411420356.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-12
- Publication Date
- 2024-11-15
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
When traditional video scene understanding methods process complex video data, the accuracy of video content recognition is low, which limits its application effect in actual applications.
Using a video content recognition method based on multimodal feature fusion, by obtaining video data and text data, feature extraction and visual feature inference, combining video and text features for interactive processing, and generating multimodal features to improve video content recognition accuracy.
It improves the data processing capability of video scene understanding method and the accuracy of video content recognition, and can more effectively understand complex video scenes and identify complex video content.
Smart Images

Figure FT_1 
Figure FT_2 
Figure FT_3
Abstract
Description
Technical Field
[0001] The present application relates to the field of artificial intelligence technology, and in particular to a video content recognition method based on multimodal feature fusion and related equipment. Background Art
[0002] Video scene understanding methods have shown broad application potential in multiple fields. At present, video scene understanding methods can be used to classify target objects, and a series of subsequent processing can be performed on the classification results. These subsequent processing include information collection, tracking, and behavior prediction of target objects, which provide important technical support for video surveillance, autonomous driving and other fields. However, traditional video scene understanding methods only extract features from video data, and then perform content recognition based on video features. It is difficult to process complex video data, and the accuracy of video content recognition is low. This problem limits the accuracy of video scene understanding methods in practical applications. Therefore, how to improve the data processing capabilities of video scene understanding methods and improve the accuracy of video content recognition has become a technical problem that needs to be solved urgently. Summary of the invention
[0003] The main purpose of the embodiments of the present application is to propose a video content recognition method and related equipment based on multimodal feature fusion, aiming to improve the data processing capability of the video scene understanding method and improve the accuracy of video content recognition.
[0004] To achieve the above-mentioned purpose, a first aspect of an embodiment of the present application proposes a video content recognition method based on multimodal feature fusion, the method comprising: Acquire target video data and text data of the target video data; Extracting features from the target video data to obtain target video features; Performing feature extraction on the text data to obtain original text features; Performing visual feature inference according to the original text feature to obtain a visual inference feature; wherein the visual inference feature is used to characterize the content change process of the target video data; Performing feature interaction processing on the visual reasoning feature and the target video feature to obtain a multimodal feature; Content recognition is performed on the target video data according to the multimodal features.
[0005] In some embodiments, the original text features include sentence-level features and multiple word-level features, and performing visual feature reasoning based on the original text features to obtain visual reasoning features includes: Performing a linear transformation on each of the sentence-level features to obtain a question feature; Perform visual content reasoning according to the problem features to obtain visual content reasoning features; Concatenate the question feature corresponding to the current sentence-level feature and the visual content reasoning feature corresponding to the previous sentence-level feature to obtain an updated text feature; Performing word importance measurement according to the word-level features and the updated text features to obtain word importance measurement data; wherein the word importance measurement data represents the importance of each word in the updated text features; The visual content reasoning feature is updated according to the word importance measurement data to obtain the visual reasoning feature.
[0006] In some embodiments, the word importance measurement is performed according to the word-level feature and the updated text feature to obtain word importance measurement data, including: Activating the updated text feature to obtain an activated text feature; Perform word feature similarity measurement based on the word-level feature and the activated text feature to obtain word feature similarity information; The word feature similarity information is normalized to obtain word importance measurement data.
[0007] In some embodiments, performing feature interaction processing on the visual reasoning feature and the target video feature to obtain a multimodal feature includes: Inputting the plurality of frame-level features and the visual reasoning features into a preset video content recognition network; wherein the video content recognition network comprises: an initial vertex feature construction unit, a vertex feature aggregation unit, and a feature fusion unit; The frame-level feature and the visual reasoning feature are connected in series by the initial vertex feature construction unit to obtain an initial vertex feature; Performing vertex feature aggregation processing on each of the initial vertex features by the vertex feature aggregation unit to obtain an aggregated vertex feature; The feature fusion unit performs feature fusion processing on the aggregated vertex features, the visual reasoning features and the initial vertex features to obtain the multimodal features.
[0008] In some embodiments, performing vertex feature aggregation processing on each of the initial vertex features by the vertex feature aggregation unit to obtain an aggregated vertex feature includes: Selecting a target vertex feature and a selected vertex feature from the initial vertex features; wherein the selected vertex feature is different from the target vertex feature; Performing a first vertex feature correlation measurement based on the target vertex feature and each of the selected vertex features to obtain first vertex feature correlation measurement data; A weighted aggregation process is performed according to the first vertex feature correlation measurement data, the target vertex feature and each of the selected vertex features to obtain the aggregated vertex feature.
[0009] In some embodiments, performing feature fusion processing on the aggregated vertex features, the visual reasoning features, and the initial vertex features by the feature fusion unit to obtain multimodal features includes: Performing a second vertex feature correlation measurement based on each of the aggregated vertex features and the visual reasoning features to obtain second vertex feature correlation measurement data; Performing weighted aggregation processing according to the second vertex feature correlation measurement data and the initial vertex feature to obtain a weighted aggregation feature; The multimodal feature is obtained by multiplying the weighted aggregate feature and the corresponding feature elements in the visual reasoning feature.
[0010] In some embodiments, the target video feature further includes a video-level feature, and after the feature fusion unit performs feature fusion processing on the aggregated vertex feature and the visual reasoning feature to obtain a multimodal feature, the method further includes: Optimizing the video content recognition network specifically includes: Acquire candidate video data and candidate text data corresponding to the candidate video data from a preset video data batch; Extracting features from the candidate video data to obtain candidate video features; Extracting features from the candidate text data to obtain candidate text features; Constructing a multimodal feature similarity matrix according to the candidate video features, the candidate text features, the target video features and the original text features; Constructing a matching loss function according to the multimodal feature similarity matrix and a preset label matrix; Classifying the multimodal features according to preset feature classification information to obtain multiple feature classification groups; Constructing a supervised contrastive learning loss function based on the feature classification group, the multimodal features, and the original text features; The target video content recognition network is optimized in batches according to the matching loss function and the supervised contrastive learning loss function.
[0011] To achieve the above-mentioned purpose, a second aspect of an embodiment of the present application proposes a video content recognition system based on multimodal feature fusion, the system comprising: A data acquisition module, used to acquire target video data and text data of the target video data; A visual feature extractor, used to extract features from the target video data to obtain target video features; A text feature extractor, used to extract features from the text data to obtain original text features; A semantic parsing module, used for performing visual feature inference based on the original text features to obtain visual inference features; wherein the visual inference features are used to characterize the content change process of the target video data; A multimodal information interaction module, used for performing feature interaction processing on the visual reasoning feature and the target video feature to obtain a multimodal feature; A content recognition module is used to perform content recognition on the target video data according to the multimodal features.
[0012] To achieve the above objectives, a third aspect of an embodiment of the present application proposes an electronic device, which includes a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the method described in the first aspect is implemented.
[0013] To achieve the above-mentioned purpose, the fourth aspect of an embodiment of the present application proposes a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method described in the first aspect is implemented.
[0014] The video content recognition method and related equipment based on multimodal feature fusion proposed in the present application first obtain the target video data and the text data of the target video data, and respectively extract the target video features from the target video data and the original text features from the text data. Then, visual feature reasoning is performed according to the original text features to obtain visual reasoning features; wherein the visual reasoning features are used to characterize the content change process of the target video data. Finally, the visual reasoning features and the target video features are subjected to feature interaction processing to obtain multimodal features, and the content of the target video data is recognized according to the multimodal features. Therefore, the video content recognition method based on multimodal feature fusion proposed in the present application optimizes the text features, and fuses the video features and the optimized text features into multimodal features, so as to recognize the video content through the multimodal features and improve the accuracy of the video content recognition. At the same time, the present application can comprehensively understand the video scene content based on the information of both vision and text by fusing the video features and the optimized text features into multimodal features, so as to improve the processing ability of the video scene understanding method for video data, and realize the understanding of complex video scenes and the recognition of complex video content. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] Figure 1 This is an optional flow chart of a video content recognition method based on multimodal feature fusion provided in an embodiment of the present application; Figure 2 It is an overall architecture diagram of a video content recognition method based on multimodal feature fusion provided in an embodiment of the present application; Figure 3 yes Figure 1 Flow chart of step S104 in FIG. Figure 4 yes Figure 3 Flow chart of step S304 in FIG. Figure 5 yes Figure 1 Flow chart of step S105 in FIG. Figure 6 yes Figure 5 Flow chart of step S503 in FIG. Figure 7 yes Figure 5 Flow chart of step S504 in FIG. Figure 8 is another optional flow chart of the video content recognition method based on multimodal feature fusion provided in an embodiment of the present application; Fig. 9 It is a structural diagram of a video content recognition system based on multimodal feature fusion provided in an embodiment of the present application; Fig.10 It is a schematic diagram of the hardware structure of the electronic device provided in the embodiment of the present application. DETAILED DESCRIPTION
[0016] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0017] It should be noted that, although the functional modules are divided in the system schematic diagram and the logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than the module division in the system or the order in the flowchart. The terms "first", "second", etc. in the specification, claims and the above drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.
[0018] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.
[0019] First, some nouns involved in this application are analyzed: Artificial intelligence (AI) is a new technical science that studies and develops theories, methods, technologies and application systems for simulating, extending and expanding human intelligence. AI is a branch of computer science that attempts to understand the essence of intelligence and produce a new type of intelligent machine that can respond in a similar way to human intelligence. Research in this field includes robotics, speech recognition, image recognition, natural language processing and expert systems. AI can simulate the information process of human consciousness and thinking. AI is also a theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results.
[0020] Natural language processing (NLP): NLP uses computers to process, understand and apply human languages (such as Chinese, English, etc.). NLP is a branch of artificial intelligence and an interdisciplinary subject between computer science and linguistics. It is often referred to as computational linguistics. Natural language processing includes grammatical analysis, semantic analysis, and text understanding. Natural language processing is often used in technical fields such as machine translation, handwritten and printed character recognition, speech recognition and text-to-speech conversion, information intent recognition, information extraction and filtering, text classification and clustering, information analysis and opinion mining. It involves data mining related to language processing, machine learning, knowledge acquisition, knowledge engineering, artificial intelligence research, and linguistic research related to language computing.
[0021] Existing video scene understanding methods can be used to identify the content in the video, and a series of subsequent processing can be performed based on the video recognition results. These subsequent processing include information collection, tracking, and behavior prediction of the target object, which provides important technical support for video surveillance, autonomous driving and other fields. However, traditional video scene understanding methods only extract features from video data, and then identify video content based on video features. They are difficult to process complex video data, and the accuracy of video content recognition is low. This problem limits the accuracy of video scene understanding methods in practical applications. Therefore, how to improve the data processing capabilities of video scene understanding methods and improve the accuracy of video content recognition has become a technical problem that needs to be solved urgently.
[0022] Based on this, the embodiments of the present application provide a video content recognition method and related equipment based on multimodal feature fusion, aiming to enhance the data processing capability of the video scene understanding method and improve the accuracy of video content recognition.
[0023] The video content recognition method based on multimodal feature fusion and related devices provided in the embodiments of the present application are specifically illustrated through the following embodiments. First, the video content recognition method based on multimodal feature fusion in the embodiments of the present application is described.
[0024] The embodiments of the present application can acquire and process relevant data based on artificial intelligence technology. Artificial Intelligence (AI) is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results.
[0025] AI basic technologies generally include sensors, dedicated AI chips, cloud computing, distributed storage, big data processing technology, operation / interaction systems, mechatronics, etc. AI software technologies mainly include computer vision technology, robotics technology, biometrics technology, speech processing technology, natural language processing technology, and machine learning / deep learning.
[0026] The video content recognition method based on multimodal feature fusion provided in the embodiment of the present application relates to the field of artificial intelligence technology. The video content recognition method based on multimodal feature fusion provided in the embodiment of the present application can be applied to a terminal, can also be applied to a server side, and can also be software running in a terminal or a server side. In some embodiments, the terminal can be a smart phone, a tablet computer, a laptop computer, a desktop computer, etc.; the server side can be configured as an independent physical server, or can be configured as a server cluster or a distributed system composed of multiple physical servers, and can also be configured as a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms; the software can be an application that implements a video content recognition method based on multimodal feature fusion, etc., but is not limited to the above forms.
[0027] The present application can be used in many general or special computer system environments or configurations. For example: personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, distributed computing environments including any of the above systems or devices, etc. The present application can be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present application can also be practiced in distributed computing environments, in which tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules can be located in local and remote computer storage media including storage devices.
[0028] Figure 1 is an optional flowchart of a video content recognition method based on multimodal feature fusion provided in an embodiment of the present application. Figure 1 The method may include but is not limited to steps S101 to S106.
[0029] Step S101, obtaining target video data and text data of the target video data; Step S102, extracting features from the target video data to obtain target video features; Step S103, extracting features from the text data to obtain original text features; Step S104, performing visual feature inference based on the original text features to obtain visual inference features; wherein the visual inference features are used to characterize the content change process of the target video data; Step S105, performing feature interaction processing on the visual reasoning features and the target video features to obtain multimodal features; Step S106: performing content recognition on the target video data according to the multimodal features.
[0030] In the steps S101 to S106 shown in the embodiment of the present application, the target video data and the text data of the target video data are first obtained, and the target video features are extracted from the target video data and the original text features are extracted from the text data. Then, visual feature reasoning is performed according to the original text features to obtain visual reasoning features; wherein the visual reasoning features are used to characterize the content change process of the target video data. Finally, the visual reasoning features and the target video features are subjected to feature interaction processing to obtain multimodal features, and the content of the target video data is recognized according to the multimodal features. Therefore, the video content recognition method and related equipment based on multimodal feature fusion proposed in the present invention application optimize the text features, and fuse the video features and the optimized text features into multimodal features, so as to recognize the video content through the multimodal features and improve the accuracy of video content recognition. At the same time, the present invention application can comprehensively understand the content of the video scene based on the information of both vision and text by fusing the video features and the optimized text features into multimodal features, so as to improve the processing ability of the video scene understanding method for video data, and realize the understanding of complex video scenes and the recognition of complex video content.
[0031] Figure 2 is an overall architecture diagram of the video content recognition method based on multimodal feature fusion provided in the embodiment of the present application. Figure 1 and Figure 2 As shown, in step S102 of some embodiments, the target video data can be feature extracted by a visual encoder to obtain target video features. The visual encoder can be an attention-based visual encoder (Vision Transformer, ViT). Specifically, the target video data is split according to the number of frames to obtain multiple image data, each image data is subjected to image block processing to obtain image block data, and each image block data is subjected to position information embedding processing to obtain image block embedding features. The multiple image block embedding features are input into ViT, feature encoding processing is performed based on ViT and the multiple image block embedding features to obtain image features, and target video features are constructed based on the image features. The target video features include: video-level features and multiple frame-level features. In the following embodiments of the present application, the video-level features are obtained by Indicates that the frame-level features are obtained by express, represents the image feature of the kth frame, K represents the number of frames in the video, and the image feature is obtained by extracting features from each frame of image data in the target video data.
[0032] In step S103 of some embodiments, feature extraction can be performed on the text data by a text encoder to obtain original text features. The text encoder can be an attention-based encoder model (Transformer). Specifically, the text data is split according to each image data to obtain multiple segmented text data. Word symbolization is performed on each segmented text data to obtain word symbolized data. Feature extraction is performed on the word symbolized data to obtain word symbolized features. Position information embedding is performed on the word symbolized features to obtain word embedding features. Multiple word embedding features are input into the Transformer, and feature encoding is performed on the word embedding features based on the Transformer to obtain word features. Original text features are constructed based on the word features. Among them, the original text features include: sentence-level features and multiple word-level features. In the following embodiments of the present application, sentence-level features are obtained by Indicates that word-level features are obtained by express. represents the mth word feature in the word-level feature, and M represents the total number of word features.
[0033] In step S104 of some embodiments, visual feature inference is performed based on the original text features to obtain visual inference features, wherein the visual inference features are used to characterize the content change process of the target video data.
[0034] See also Figure 3 In some embodiments, the original text features include sentence-level features and multiple word-level features, and step S104 includes but is not limited to steps S301 to S305: Step S301, performing linear transformation on each sentence-level feature to obtain a question feature; Step S302, performing visual content reasoning according to the question feature to obtain a visual content reasoning feature; Step S303, concatenating the question feature corresponding to the current sentence-level feature and the visual content reasoning feature corresponding to the previous sentence-level feature to obtain an updated text feature; Step S304, performing word importance measurement according to the word-level features and the updated text features to obtain word importance measurement data; wherein the word importance measurement data represents the importance of each word in the updated text features; Step S305 , updating the visual content reasoning feature according to the word importance measurement data to obtain the visual reasoning feature.
[0035] In step S301 of some embodiments, each sentence-level feature is linearly transformed to obtain a problem feature. Specifically, the sentence-level feature is linearly transformed according to the total number of steps of visual content reasoning to obtain multiple identical problem features. The total number of problem features is the same as the total number of steps of visual content reasoning. Therefore, for each step of visual content reasoning, there is a current sentence-level feature corresponding to the current step, and a problem feature corresponding to the current sentence-level feature. The process of linearly transforming each sentence-level feature can be expressed as: ; Where t represents the current step of visual content reasoning, Indicates the question feature corresponding to the current sentence-level feature, and represents the target training parameters at step t.
[0036] In step S302 of some embodiments, visual content reasoning is performed based on the question features to obtain visual content reasoning features. Specifically, the step of performing visual content reasoning based on the question features to obtain visual content reasoning features can be performed multiple times to update the visual content reasoning features. When the step of video content reasoning is more than once, the total number of steps of visual content reasoning can be pre-set or obtained through training. For each step of video content reasoning, there is a corresponding sentence-level feature. The first step of visual content reasoning includes: concatenating the question features and the initial text reasoning features to obtain an updated text feature corresponding to the first sentence-level feature; performing word importance measurement based on the word-level features and the updated text features corresponding to the first sentence-level features to obtain word importance measurement data corresponding to the first sentence-level feature; performing feature update on the initial text reasoning features based on the word importance measurement data corresponding to the first sentence-level feature to obtain the visual content reasoning features corresponding to the first sentence-level feature. Starting from the second step of visual content reasoning, each step includes: concatenating the problem feature and the visual content reasoning feature corresponding to the previous sentence-level feature to obtain the updated text feature corresponding to the current sentence-level feature; measuring the word importance according to the word-level feature and the updated text feature corresponding to the current sentence-level feature to obtain the word importance measurement data corresponding to the current sentence-level feature; updating the visual content reasoning feature corresponding to the previous sentence-level feature again according to the word importance measurement data to obtain the visual content reasoning feature corresponding to the current sentence-level feature. Among them, the initial text reasoning feature is obtained by random initialization, and the word importance measurement data corresponding to each step represents the importance of each word in the updated text feature. It should be noted that in step S302 of the embodiment of the present application, for each step of visual content reasoning, the specific reasoning process is similar, and there is only a difference in the specific values of the visual content reasoning feature, the updated text feature and the word importance measurement data. Therefore, the specific steps of each step of visual content reasoning can be described exemplarily by steps S303 to S305.
[0037] In step S303 of some embodiments, the question feature corresponding to the current sentence-level feature and the visual content inference feature corresponding to the previous sentence-level feature are connected in series to obtain an updated text feature. The specific steps of connecting the question feature corresponding to the current sentence-level feature and the visual content inference feature corresponding to the previous sentence-level feature in series can be expressed as: ; Among them, t-1 represents the previous step of visual content reasoning, represents the updated text feature corresponding to the current sentence-level feature, represents the visual content inference feature corresponding to the previous sentence-level feature. When t=1, the visual content inference feature corresponding to the previous sentence-level feature is composed of the initial text inference feature express.
[0038] In step S304 of some embodiments, word importance measurement is performed based on the word-level features and the updated text features to obtain word importance measurement data, wherein the word importance measurement data represents the importance of each word in the updated text features.
[0039] See also Figure 4 In some embodiments, step S304 includes but is not limited to steps S401 to S403: Step S401, activating the updated text feature to obtain an activated text feature; Step S402, performing word feature similarity measurement based on word-level features and activated text features to obtain word feature similarity information; Step S403, normalizing the word feature similarity information to obtain word importance measurement data.
[0040] In step S401 of some embodiments, the updated text feature is activated to obtain the activated text feature. The activation is implemented by an activation function, and the activation function is a linear rectification function (RectificationLinear Unit, ReLU). Specifically, the process of activating the updated text feature can be expressed as: ; in, represents the activated text feature at step t, represents the ReLU activation function, and Indicates updating text features Parameters required for activation processing. It is worth noting that and Shared at every step of visual context reasoning.
[0041] In step S402 of some embodiments, word feature similarity measurement is performed according to word-level features and activated text features, and word feature similarity information can be obtained. Specifically, first, each word feature is extracted from the word-level features. Then, word feature similarity measurement is performed according to each word feature and activated text features. Among them, the process of performing word feature similarity measurement according to each word feature and activated text features can be expressed as: ; in, Represents the word feature similarity information between the activated text feature and the mth word feature in the word-level feature at the tth step, , and Represents the parameter matrix required to calculate word feature similarity information, represents the hyperbolic tangent function in the activation function. , and Share every step of the way.
[0042] In step S403 of some embodiments, the word feature similarity information is normalized to obtain word importance measurement data. Specifically, the process of normalizing the word feature similarity information to obtain word importance measurement data can be expressed as: ; in, Represents the word importance measurement data corresponding to the mth word feature in the word-level feature at the tth step.
[0043] In step S305 of some embodiments, the visual content reasoning feature is updated according to the word importance measurement data to obtain a visual reasoning feature. The visual reasoning feature represents the visual content reasoning feature corresponding to the current step in the last step of the visual content reasoning. Specifically, the process of updating the visual content reasoning feature according to the word importance measurement data can be expressed as: ; in, represents the visual content reasoning feature corresponding to the t-th step. It should be noted that if the t-th step is the last step of visual content reasoning, the visual content reasoning feature of the t-th step is obtained by using the visual content reasoning feature express.
[0044] In steps S301 to S305 shown in the embodiment of the present application, first, a question feature is obtained by linearly transforming each sentence-level feature. Then, visual content reasoning is performed based on the question feature to obtain a visual content reasoning feature. Among them, the specific process of visual content reasoning includes multiple repeated steps, and the total number of steps of visual content reasoning can be pre-set or obtained through training. In each step of visual content reasoning, it includes: concatenating the question feature corresponding to the current sentence-level feature and the visual content reasoning feature corresponding to the previous sentence-level feature to obtain an updated text feature; measuring the importance of words based on the word-level feature and the updated text feature to obtain word importance measurement data; updating the visual content reasoning feature based on the word importance measurement data to obtain the visual content reasoning feature corresponding to the current sentence-level feature. In the first step of visual content reasoning, the visual content reasoning feature corresponding to the previous sentence-level feature is the initial visual content reasoning feature, and the initial visual content reasoning feature is obtained by random initialization. In the last step of visual content reasoning, the visual content reasoning feature corresponding to the current sentence-level feature is the visual reasoning feature. Therefore, the video content recognition method based on multimodal feature fusion shown in the embodiment of the present application uses visual content reasoning to multiple times measure the importance of words in the original text features, and optimizes the original text features through word importance measurement data, and finally obtains visual reasoning features, which can more accurately measure the importance of each word feature in the original text features, so as to improve the accuracy of the method in obtaining effective information from text data, and ultimately improve the efficiency of video content recognition.
[0045] See also Figure 5 In some embodiments, step S105 includes but is not limited to steps S501 to S504: Step S501, inputting a plurality of frame-level features and visual reasoning features into a preset video content recognition network; wherein the video content recognition network comprises: an initial vertex feature construction unit, a vertex feature aggregation unit, and a feature fusion unit; Step S502, the frame-level features and the visual reasoning features are connected in series through the initial vertex feature construction unit to obtain the initial vertex features; Step S503, performing vertex feature aggregation processing on each initial vertex feature through a vertex feature aggregation unit to obtain an aggregated vertex feature; Step S504: A feature fusion unit performs feature fusion processing on the aggregated vertex features, the visual reasoning features, and the initial vertex features to obtain multimodal features.
[0046] In step S502 of some embodiments, the initial vertex feature can be obtained by connecting the frame-level feature and the visual reasoning feature in series through the initial vertex feature construction unit. Specifically, each image feature is extracted from the frame-level feature by the initial vertex feature construction unit, and a fully connected feature interaction graph is constructed based on each image feature and the visual reasoning feature. The fully connected feature interaction graph is composed of vertices and edges. Among them, an edge is composed of two vertices connected, and the edge is used to represent the relationship between the frames of the image; each vertex corresponds to an initial vertex feature, and each initial vertex feature is obtained by connecting each image feature and the visual reasoning feature in series. The process of connecting each image feature and the visual reasoning feature in series to obtain the initial vertex feature can be expressed as: ; in, , K represents the number of video frames, Represents the initial vertex features obtained by concatenating the k-th frame image and the visual content inference features.
[0047] In steps S501 to S504 shown in the embodiment of the present application, a plurality of frame-level features and visual reasoning features are first input into a preset video content recognition network; wherein the video content recognition network includes: an initial vertex feature construction unit, a vertex feature aggregation unit, and a feature fusion unit. Then, the frame-level features and the visual reasoning features are connected in series by the initial vertex feature construction unit to obtain the initial vertex features, and each initial vertex feature is subjected to vertex feature aggregation processing by the vertex feature aggregation unit to obtain the aggregated vertex features. Finally, the aggregated vertex features, the visual reasoning features, and the initial vertex features are subjected to feature fusion processing by the feature fusion unit to obtain multimodal features. Therefore, the video content recognition method based on multimodal feature fusion proposed in the present application obtains multimodal features by fusing visual reasoning features and frame-level features, and can simultaneously comprehensively understand the information of both visual and textual aspects to improve the accuracy of identifying the video content.
[0048] See also Figure 6 In some embodiments, step S503 includes but is not limited to steps S601 to S603: Step S601, selecting a target vertex feature and a selected vertex feature from the initial vertex features; wherein the selected vertex feature is different from the target vertex feature; Step S602, performing first vertex feature correlation measurement according to the target vertex feature and each selected vertex feature to obtain first vertex feature correlation measurement data; Step S603 , performing weighted aggregation processing according to the first vertex feature correlation measurement data, the target vertex feature and each selected vertex feature to obtain an aggregated vertex feature.
[0049] In step S602 of some embodiments, the first vertex feature correlation measurement is performed according to the target vertex feature and each selected vertex feature, and the first vertex feature correlation measurement data can be obtained. Specifically, the dot product processing is first performed according to the target vertex feature and each selected vertex feature to obtain the candidate vertex feature correlation measurement data. Then, the candidate vertex feature correlation measurement data is normalized by a normalized exponential function (softmax) to obtain the first vertex feature correlation measurement data.
[0050] The process of performing the first vertex feature correlation measurement based on the target vertex feature and each selected vertex feature to obtain the candidate vertex feature correlation measurement data can be expressed as: ; in, Represents the correlation measurement data of the candidate vertex features corresponding to the target vertex features and the selected fixed-point features, is the i-th initial vertex feature, used to represent the target vertex feature, is the jth initial vertex feature, used to represent the selected vertex feature, , and They are used to map the target vertex features and the selected vertex features to the preset feature subspaces. for The transposed matrix of .
[0051] The process of normalizing the candidate vertex feature correlation measurement data through the normalized exponential function (softmax) to obtain the first vertex feature correlation measurement data can be expressed as: ; in, Represents the first vertex feature correlation measurement data corresponding to the target vertex feature and the selected fixed-point feature.
[0052] In step S603 of some embodiments, the specific process of performing weighted aggregation processing according to the first vertex feature correlation measurement data, the target vertex feature and each selected vertex feature to obtain the aggregated vertex feature can be expressed as: ; in, Represents aggregated vertex features.
[0053] Steps S601 to S603 shown in the embodiment of the present application calculate the first vertex feature correlation measurement data of the target vertex feature, and perform weighted aggregation processing based on the first vertex feature correlation measurement data, the target vertex feature and each selected vertex feature to obtain the aggregated vertex feature, which can establish a dependency relationship between the target vertex feature and multiple selected vertex features, thereby more accurately obtaining the inter-frame changes of the image content and text content. Therefore, the video content recognition method based on multimodal feature fusion shown in the embodiment of the present application can better identify and track the video content to be identified in the time dimension, so as to more accurately capture the dynamic evolution process of the video content.
[0054] See also Figure 7 In some embodiments, step S504 includes but is not limited to steps S701 to S703: Step S701, performing a second vertex feature correlation measurement according to each aggregated vertex feature and the visual reasoning feature to obtain second vertex feature correlation measurement data; Step S702, performing weighted aggregation processing according to the second vertex feature correlation measurement data and the initial vertex features to obtain weighted aggregation features; Step S703, multiplying the weighted aggregation feature and the corresponding feature elements in the visual reasoning feature to obtain a multimodal feature.
[0055] In step S701 of some embodiments, a second vertex feature correlation measurement is performed according to each aggregated vertex feature and visual reasoning feature to obtain second vertex feature correlation measurement data. Specifically, a dot product is first performed according to each aggregated vertex feature, visual reasoning feature and weight distribution matrix to obtain selected vertex feature correlation measurement data. Then, the selected vertex feature correlation measurement data is normalized by a softmax function to obtain second vertex feature correlation measurement data. Among them, the value of the weight distribution matrix can be preset or obtained through training. The process of performing a second vertex feature correlation measurement according to each aggregated vertex feature and visual reasoning feature to obtain the second vertex feature correlation measurement data can be expressed as: ; in, Represents the second vertex feature correlation measurement data, represents the softmax function, represents the weight distribution matrix, represents the kth aggregate vertex feature, Represents visual reasoning features.
[0056] In step S702 of some embodiments, the specific process of performing weighted aggregation processing according to the second vertex feature correlation measurement data and the initial vertex features to obtain the weighted aggregation features can be expressed as: ; in, Represents weighted aggregate features.
[0057] In step S703 of some embodiments, the process of obtaining the multimodal feature by multiplying the weighted aggregate feature and the corresponding feature elements in the visual reasoning feature can be expressed as: ; in, Represents multimodal features.
[0058] Steps S701 to S703 shown in the embodiment of the present application perform weighted aggregation processing on the initial vertex features to obtain weighted aggregation features, and multiply the weighted aggregation features with the corresponding feature elements in the visual reasoning features to obtain multimodal features. Higher weight values can be accurately assigned to video image features related to text content, thereby more effectively integrating the text features and image features of the video.
[0059] See also Figure 8 In some embodiments, after step S504, the video content recognition method based on multimodal feature fusion also includes a step of optimizing the video content recognition network.
[0060] The steps of optimizing the video content recognition network include but are not limited to steps S801 to S808: Step S801, obtaining candidate video data and candidate text data corresponding to the candidate video data from a preset video data batch; Step S802, extracting features from the candidate video data to obtain candidate video features; Step S803, extracting features from the candidate text data to obtain candidate text features; Step S804, constructing a multimodal feature similarity matrix based on the candidate video features, the candidate text features, the target video features and the original text features; Step S805, constructing a matching loss function according to the multimodal feature similarity matrix and a preset label matrix; Step S806, classifying the multimodal features according to preset feature classification information to obtain multiple feature classification groups; Step S807, constructing a supervised contrastive learning loss function according to the feature classification group, the multimodal features and the original text features; Step S808 , optimizing the video content recognition network in batches according to the matching loss function and the supervised contrastive learning loss function.
[0061] In step S804 of some embodiments, a multimodal feature similarity matrix can be constructed according to the candidate video features, the candidate text features, the target video features and the original text features. The multimodal feature similarity matrix includes: a first multimodal feature similarity matrix and a second multimodal feature similarity matrix. Specifically, firstly, cosine similarity measurement is performed according to the candidate text features and the target video features to obtain first cosine similarity measurement data; cosine similarity measurement is performed according to the candidate video features and the original text features to obtain second cosine similarity measurement data. Then, the first cosine similarity measurement data is normalized row by row by the softmax function to obtain first cosine similarity normalized data; the second cosine similarity measurement data is normalized row by row by the softmax function to obtain second cosine similarity normalized data. Finally, the first multimodal feature similarity matrix is constructed according to the first cosine similarity normalized data; the second multimodal feature similarity matrix is constructed according to the second cosine similarity normalized data. The first multimodal feature similarity matrix contains first cosine similarity normalized data corresponding to original text features and all candidate video features, and the second multimodal feature similarity matrix contains second cosine similarity normalized data corresponding to target video features and all candidate text features.
[0062] The process of performing cosine similarity measurement based on the candidate text features and the target video features to obtain the first cosine similarity measurement data can be expressed as: ; in, represents the first cosine similarity measurement data corresponding to the original text features and the candidate video features, represents the candidate video features, It indicates the transposition of the candidate video features, and s indicates the original text features.
[0063] The first cosine similarity measurement data is normalized row by row through the softmax function to obtain the first cosine similarity normalized data, which can be expressed as: ; in, represents the first cosine similarity normalized data corresponding to the original text feature and the i-th candidate video feature, represents the first cosine similarity measurement data corresponding to the original text feature and the i-th candidate video feature, The first cosine similarity measurement data corresponding to the original text feature and the b-th candidate video feature, B represents the total amount of video data in the current video data batch, Represents the temperature coefficient used to adjust the probability distribution during row-by-row normalization.
[0064] The process of performing cosine similarity measurement based on the candidate video features and the original text features to obtain the second cosine similarity measurement data can be expressed as: ; in, represents the second cosine similarity measurement data corresponding to the target video feature and the candidate text feature, represents the candidate text features, It indicates that the candidate text features are transformed, and v indicates the target video features.
[0065] The second cosine similarity measurement data is normalized row by row through the softmax function to obtain the second cosine similarity normalized data, which can be expressed as: ; in, represents the second multimodal feature similarity matrix corresponding to the target video feature and the i-th candidate text feature, represents the second cosine similarity measurement data corresponding to the target video feature and the i-th candidate text feature, Represents the second cosine similarity measurement data corresponding to the target video feature and the bth candidate text feature.
[0066] In step S805 of some embodiments, a matching loss function is constructed based on the multimodal feature similarity matrix and the preset label matrix. The preset label matrix includes a first label matrix and a second label matrix. The label matrix is a 0-1 matrix, which is constructed based on the target label, and the target label includes: a first target label and a second target label. The first target label is used to characterize whether the original text feature and the candidate video feature match, wherein if the first target label represents that the original text feature matches the i-th candidate video feature, then the position corresponding to the i-th candidate video feature in the first label matrix takes a value of 1, otherwise it takes a value of 0. The second target label is used to characterize whether the target video feature matches each candidate text feature, and if the second target label represents that the target video feature matches the i-th candidate text feature, then the position corresponding to the i-th candidate text feature in the second label matrix takes a value of 1, otherwise it takes a value of 0. Specifically, first, the relative entropy divergence is calculated according to the first label matrix and the first multimodal feature similarity matrix to obtain the first relative entropy divergence data (Kullback-Leibler divergence, KLD); the relative entropy divergence is calculated according to the second label matrix and the second multimodal feature similarity matrix to obtain the second relative entropy divergence data. Then, the first relative entropy divergence data and the second relative entropy divergence data are summed to obtain the comprehensive relative entropy divergence data corresponding to the original text features and the target video features. Through the above steps, the comprehensive relative entropy divergence data corresponding to each original text feature and each target video feature in the current video data batch can be calculated. Then, the expected value of the comprehensive relative entropy divergence data corresponding to each original text feature and each target video feature is calculated to obtain the expected comprehensive relative entropy divergence data. Finally, a matching loss function is constructed based on the expected comprehensive relative entropy divergence data.
[0067] The process of constructing a matching loss function based on the multimodal feature similarity matrix and the preset label matrix can be expressed as: ; in, represents the matching loss function of the current video data batch, represents the first relative entropy divergence data, represents the second relative entropy divergence data, represents the first multimodal feature similarity matrix, represents the first label matrix, represents the second multimodal feature similarity matrix, represents the second label matrix, and D represents the set of all video data in the current video data batch.
[0068] In step S806 of some embodiments, the multimodal features are classified according to preset feature classification information to obtain multiple feature classification groups. Specifically, a prompt is set for the classification information of the multimodal features through a prompt learner (PromptLearner), and the prompt may be: A Video of [CLASS], where [CLASS] is the feature classification information that needs to be filled in. The classification information of the multimodal features is matched according to the prompt and the feature classification information to obtain the multimodal feature classification information. The multimodal features are classified according to the multimodal feature classification information to obtain multiple feature classification groups, and the multimodal feature matches in the same feature classification group have the same multimodal feature classification information.
[0069] In step S807 of some embodiments, a supervised contrastive learning loss function is constructed according to the feature classification group, the multimodal feature and the original text feature. Specifically, firstly, a target multimodal feature is selected from the multimodal feature. The target multimodal feature classification information of the target multimodal feature is obtained. According to the multimodal feature classification information of the target multimodal feature, a target feature classification group and a selected feature classification group for matching the target multimodal feature are obtained, and the target feature classification group and the selected feature classification group are different. The same type of multimodal feature is selected from the target feature classification group, and the same type of original text feature is selected from multiple original text features according to the same type of multimodal feature. A heterogeneous multimodal feature is selected from the selected feature classification group, and a heterogeneous original text feature is selected from multiple original text features according to the heterogeneous multimodal feature. A homogeneous original text feature classification group is constructed according to the homogeneous original text feature, and a heterogeneous original text feature classification group is constructed according to the heterogeneous original text feature. A supervised contrastive learning loss function is constructed according to the multimodal feature, the homogeneous original text feature, the heterogeneous original text feature, the homogeneous original text feature classification group and the heterogeneous original text feature classification group. Therefore, the video content recognition method based on multimodal feature fusion shown in the embodiment of the present application can integrate feature classification information into the supervised comparative learning process to optimize the video content recognition network, so that the multimodal features output by the video content recognition network are closer to similar features, thereby improving the robustness of the feature representation space and further improving the accuracy of video content recognition.
[0070] In some embodiments, the process of constructing a supervised contrastive learning loss function according to multimodal features, homogeneous original text features, heterogeneous original text features, homogeneous original text feature classification groups, and heterogeneous original text feature classification groups can be expressed as: ; in, represents the supervised contrastive learning loss function of the current video data batch, represents the supervised contrastive learning loss function corresponding to the i-th target multimodal feature, represents the classification group of similar original text features corresponding to the i-th target multimodal feature, express The total number of similar raw text features in , represents the classification group of heterogeneous original text features corresponding to the i-th target multimodal feature, , represents the i-th target multimodal feature, represents the pth original text feature in the same original text feature classification group, Represents the ath raw text feature in the heterogeneous raw text feature classification group.
[0071] In step S808 of some embodiments, the video content recognition network is optimized in batches according to the matching loss function and the supervised contrast learning loss function. Specifically, a total loss function is first constructed according to the matching loss function and the supervised contrast learning loss function. Then, the video content recognition network is optimized in batches according to the total loss function. The process of constructing the total loss function according to the matching loss function and the supervised contrast learning loss function can be expressed as: ; in, represents the total loss function of the current video data batch, represents the matching loss function of the current video data batch, Represents the supervised contrastive learning loss function for the current batch of video data.
[0072] In steps S801 to S808 illustrated in the embodiment of the present application, first, candidate video data and candidate text data corresponding to the candidate video data are obtained from a preset video data batch. Then, feature extraction is performed on the candidate video data to obtain candidate video features; and feature extraction is performed on the candidate text data to obtain candidate text features. Thereafter, a multimodal feature similarity matrix is constructed based on the candidate video features, the candidate text features, the target video features, and the original text features, and a matching loss function is constructed based on the multimodal feature similarity matrix and the preset label matrix. Next, the multimodal features are classified and processed according to the preset feature classification information to obtain multiple feature classification groups, and a supervised contrast learning loss function is constructed based on the feature classification groups, the multimodal features, and the original text features. Finally, the video content recognition network is optimized in batches according to the matching loss function and the supervised contrast learning loss function. Therefore, the video content recognition method based on multimodal feature fusion shown in the embodiment of the present application can optimize the video content recognition network based on multimodal feature similarity and feature classification information, so that the multimodal features output by the video content recognition network are more accurate, thereby improving the content recognition accuracy of the video content recognition method based on multimodal feature fusion.
[0073] In some embodiments, the video content recognition method based on multimodal feature fusion provided by the present application can be applied to the field of autonomous driving. Specifically, the target video data is road condition video data, the text data is road condition text data of the road condition video data, and the road condition text data represents the road condition in the road condition video data. By extracting features from the road condition video data, road video features are obtained; and by extracting features from the road condition text data, road text features are obtained. Thereafter, visual feature reasoning is performed based on the road text features to obtain visual reasoning features; wherein the visual reasoning features are used to represent the road condition change process of the road condition video data. Then, the visual reasoning features and the road video features are subjected to feature interaction processing to obtain multimodal features, and the multimodal features include road condition features of the video modality and the text modality. Finally, the road condition video data is subjected to road condition recognition based on the multimodal features to obtain road condition recognition information. Wherein, the road condition recognition information includes at least one of the following: obstacle information, road sign information, traffic instruction information, vehicle-to-vehicle distance information, and weather information. The road condition recognition information is used to plan and modify the vehicle's driving route and driving speed.
[0074] In some embodiments, the video content recognition method based on multimodal feature fusion provided by the present application can be applied to the field of video surveillance. Specifically, the target video data is surveillance video data, the text data is surveillance text data of the surveillance video data, and the surveillance text data represents the scene conditions in the surveillance video data. By extracting features from the surveillance video data, surveillance video features are obtained; and for the surveillance text data, surveillance text features are obtained. Thereafter, visual feature reasoning is performed based on the surveillance text features to obtain visual reasoning features; wherein the visual reasoning features are used to represent the scene change process in the surveillance video data. Then, the visual reasoning features and the surveillance video features are subjected to feature interaction processing to obtain multimodal features, and the multimodal features include surveillance features of video modality and text modality. Finally, video surveillance content recognition is performed on the surveillance video data based on the multimodal features to obtain video surveillance content recognition information. Among them, the video surveillance content recognition information includes at least one of the following: background information, target object category information, target object identification information, and target object behavior information. The video surveillance content recognition information is used to analyze and predict the behavior of the target object. Taking the video surveillance content recognition information in a parking lot as an example, the background information may be the parking space vacancy information of the parking lot, the target object may be a vehicle, the target object category information may be the type information of the vehicle or the model information of the vehicle, the target object identification information may be the license plate number information of the vehicle, and the target object behavior information is used to characterize whether the vehicle is moving forward, reversing, parking, entering the parking lot or leaving the parking lot, etc. The video surveillance content recognition information in the parking lot can be used to assist in finding a parking location, calculating the parking time and fee, or controlling the release of vehicles entering and leaving the parking lot, etc.
[0075] See also Fig. 9 The embodiment of the present application further provides a video content recognition system based on multimodal feature fusion, which can implement the above-mentioned video content recognition method based on multimodal feature fusion, and the system includes: The data acquisition module 901 is used to acquire target video data and text data of the target video data; A visual feature extractor 902 is used to extract features from target video data to obtain target video features; A text feature extractor 903 is used to extract features from text data to obtain original text features; The semantic parsing module 904 is used to perform visual feature inference based on the original text features to obtain visual inference features; wherein the visual inference features are used to characterize the content change process of the target video data; The multimodal information interaction module 905 is used to perform feature interaction processing on the visual reasoning features and the target video features to obtain multimodal features; The content identification module 906 is used to perform content identification on the target video data according to the multimodal features.
[0076] The specific implementation of the video content recognition system based on multimodal feature fusion is basically the same as the specific implementation of the video content recognition method based on multimodal feature fusion mentioned above, and will not be repeated here.
[0077] The embodiment of the present application also provides an electronic device, the electronic device includes a memory and a processor, the memory stores a computer program, and the processor implements the above-mentioned video content recognition method based on multimodal feature fusion when executing the computer program. The electronic device can be any intelligent terminal including a tablet computer, a car computer, etc.
[0078] See also Fig.10 , Fig.10 The hardware structure of an electronic device of another embodiment is illustrated, and the electronic device includes: The processor 1001 may be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of the present application; The memory 1002 can be implemented in the form of a read-only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM). The memory 1002 can store an operating system and other application programs. When the technical solution provided in the embodiment of this specification is implemented by software or firmware, the relevant program code is stored in the memory 1002, and the processor 1001 calls and executes the video content recognition method based on multimodal feature fusion in the embodiment of this application; Input / output interface 1003, used to implement information input and output; Communication interface 1004, used to realize communication interaction between the device and other devices, which can be realized through wired mode (such as USB, network cable, etc.) or wireless mode (such as mobile network, WIFI, Bluetooth, etc.); A bus 1005 , which transmits information between various components of the device (e.g., the processor 1001 , the memory 1002 , the input / output interface 1003 , and the communication interface 1004 ); The processor 1001 , the memory 1002 , the input / output interface 1003 and the communication interface 1004 are connected to each other in communication within the device via the bus 1005 .
[0079] An embodiment of the present application also provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, it implements the above-mentioned video content recognition method based on multimodal feature fusion.
[0080] The memory, as a non-transient computer-readable storage medium, can be used to store non-transient software programs and non-transient computer executable programs. In addition, the memory may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory may optionally include a memory remotely disposed relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0081] The video content recognition method and related equipment based on multimodal feature fusion provided by the embodiment of the present application first obtain the target video data and the text data of the target video data, and respectively extract the target video features from the target video data and the original text features from the text data. Then, visual feature reasoning is performed according to the original text features to obtain visual reasoning features; wherein the visual reasoning features are used to characterize the content change process of the target video data. Finally, the visual reasoning features and the target video features are subjected to feature interaction processing to obtain multimodal features, and the target video data is subjected to content recognition according to the multimodal features. Therefore, the video content recognition method based on multimodal feature fusion proposed by the present invention application first optimizes the text features, and then fuses the video features and the optimized text features into multimodal features, so as to perform video content recognition through multimodal features and improve the accuracy of video content recognition. At the same time, the present invention application can comprehensively understand the content of the video scene based on the information of both vision and text by fusing the video features and the optimized text features into multimodal features, so as to improve the processing ability of the video scene understanding method for video data, and realize the understanding of complex video scenes and the recognition of complex video content.
[0082] The embodiments described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. Those skilled in the art will appreciate that with the evolution of technology and the emergence of new application scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.
[0083] Those skilled in the art will appreciate that the technical solutions shown in the figures do not constitute a limitation on the embodiments of the present application, and may include more or fewer steps than shown in the figures, or a combination of certain steps, or different steps.
[0084] The system embodiments described above are merely illustrative, and the units described as separate components may or may not be physically separated, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the present embodiment.
[0085] Those skilled in the art will appreciate that all or some of the steps in the methods disclosed above, and the functional modules / units in the systems and devices may be implemented as software, firmware, hardware, or a suitable combination thereof.
[0086] The terms "first", "second", "third", "fourth", etc. (if any) in the specification of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0087] It should be understood that in the present application, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.
[0088] In the several embodiments provided in the present application, it should be understood that the disclosed systems and methods can be implemented in other ways. For example, the system embodiments described above are only schematic. For example, the division of the above units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of systems or units, which can be electrical, mechanical or other forms.
[0089] The units described above as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0090] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0091] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including multiple instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as RAM), disk or optical disk and other media that can store programs.
[0092] The preferred embodiments of the present application are described above with reference to the accompanying drawings, but the scope of the rights of the present application is not limited thereto. Any modification, equivalent substitution and improvement made by a person skilled in the art without departing from the scope and essence of the present application should be within the scope of the rights of the present application.
Claims
1. Video content recognition method based on multimodal feature fusion, It is characterized in that The method comprises: Acquire target video data and text data of the target video data; Extracting features from the target video data to obtain target video features; Performing feature extraction on the text data to obtain original text features; Performing visual feature inference according to the original text feature to obtain a visual inference feature; wherein the visual inference feature is used to characterize the content change process of the target video data; Performing feature interaction processing on the visual reasoning feature and the target video feature to obtain a multimodal feature; Content recognition is performed on the target video data according to the multimodal features.
2. The method according to claim 1, It is characterized in that The original text features include sentence-level features and multiple word-level features, and the visual feature reasoning is performed according to the original text features to obtain the visual reasoning features, including: Performing a linear transformation on each of the sentence-level features to obtain a question feature; Perform visual content reasoning according to the problem features to obtain visual content reasoning features; Concatenate the question feature corresponding to the current sentence-level feature and the visual content reasoning feature corresponding to the previous sentence-level feature to obtain an updated text feature; Performing word importance measurement according to the word-level features and the updated text features to obtain word importance measurement data; wherein the word importance measurement data represents the importance of each word in the updated text features; The visual content reasoning feature is updated according to the word importance measurement data to obtain the visual reasoning feature.
3. The method according to claim 2, It is characterized in that The word importance measurement is performed according to the word-level features and the updated text features to obtain word importance measurement data, including: Activating the updated text feature to obtain an activated text feature; Perform word feature similarity measurement based on the word-level feature and the activated text feature to obtain word feature similarity information; The word feature similarity information is normalized to obtain word importance measurement data.
4. The method according to claim 1, It is characterized in that The target video feature includes a plurality of frame-level features, and the visual reasoning feature and the target video feature are subjected to feature interaction processing to obtain a multimodal feature, including: Inputting the plurality of frame-level features and the visual reasoning features into a preset video content recognition network; wherein the video content recognition network comprises: an initial vertex feature construction unit, a vertex feature aggregation unit, and a feature fusion unit; The frame-level feature and the visual reasoning feature are connected in series by the initial vertex feature construction unit to obtain an initial vertex feature; Performing vertex feature aggregation processing on each of the initial vertex features by the vertex feature aggregation unit to obtain an aggregated vertex feature; The feature fusion unit performs feature fusion processing on the aggregated vertex features, the visual reasoning features and the initial vertex features to obtain the multimodal features.
5. The method according to claim 4, It is characterized in that The step of performing vertex feature aggregation processing on each of the initial vertex features by the vertex feature aggregation unit to obtain an aggregated vertex feature includes: Selecting a target vertex feature and a selected vertex feature from the initial vertex features; wherein the selected vertex feature is different from the target vertex feature; Performing a first vertex feature correlation measurement based on the target vertex feature and each of the selected vertex features to obtain first vertex feature correlation measurement data; A weighted aggregation process is performed according to the first vertex feature correlation measurement data, the target vertex feature and each of the selected vertex features to obtain the aggregated vertex feature.
6. The method according to claim 4, It is characterized in that The step of performing feature fusion processing on the aggregated vertex features, the visual reasoning features and the initial vertex features by the feature fusion unit to obtain multimodal features includes: Performing a second vertex feature correlation measurement based on each of the aggregated vertex features and the visual reasoning features to obtain second vertex feature correlation measurement data; Performing weighted aggregation processing according to the second vertex feature correlation measurement data and the initial vertex feature to obtain a weighted aggregation feature; The multimodal feature is obtained by multiplying the weighted aggregate feature and the corresponding feature elements in the visual reasoning feature.
7. The method according to claim 4, It is characterized in that After the feature fusion unit performs feature fusion processing on the aggregated vertex features and the visual reasoning features to obtain multimodal features, the method further includes: Optimizing the video content recognition network specifically includes: Acquire candidate video data and candidate text data corresponding to the candidate video data from a preset video data batch; Extracting features from the candidate video data to obtain candidate video features; Extracting features from the candidate text data to obtain candidate text features; Constructing a multimodal feature similarity matrix according to the candidate video features, the candidate text features, the target video features and the original text features; Constructing a matching loss function according to the multimodal feature similarity matrix and a preset label matrix; Classifying the multimodal features according to preset feature classification information to obtain multiple feature classification groups; Constructing a supervised contrastive learning loss function based on the feature classification group, the multimodal features, and the original text features; The video content recognition network is optimized in batches according to the matching loss function and the supervised contrastive learning loss function.
8. Video content recognition system based on multimodal feature fusion, It is characterized in that The system comprises: A data acquisition module, used to acquire target video data and text data of the target video data; A visual feature extractor, used for extracting features from the target video data to obtain target video features; A text feature extractor, used to extract features from the text data to obtain original text features; A semantic parsing module, used for performing visual feature inference based on the original text features to obtain visual inference features; wherein the visual inference features are used to characterize the content change process of the target video data; A multimodal information interaction module, used for performing feature interaction processing on the visual reasoning feature and the target video feature to obtain a multimodal feature; A content recognition module is used to perform content recognition on the target video data according to the multimodal features.
9. An electronic device, It is characterized in that The electronic device includes a memory and a processor, the memory stores a computer program, and the processor implements the video content recognition method based on multimodal feature fusion as described in any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium storing a computer program. It is characterized in that When the computer program is executed by a processor, the video content recognition method based on multimodal feature fusion described in any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Training method and device of visual text pre-training model, medium and equipment
CN115131638A
Cited By
Video multi-modal content management system and method based on multi-modal features
CN120599105A
