A video understanding evaluation method, device and medium

By extracting representative samples from video samples and sampling based on inter-frame similarity and semantic matching, the problem of insufficient evaluation accuracy in video understanding evaluation is solved, and efficient and accurate evaluation results are achieved.

CN123182091APending Publication Date: 2026-11-27BEIJING HUMANOID ROBOTICS INNOVATION CENTER CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611137056.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-07-29
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing video understanding evaluation methods struggle to balance evaluation accuracy and computational cost, with traditional frame extraction strategies resulting in low evaluation efficiency and insufficient accuracy.

Method used

By extracting representative video samples from the full video sample set, determining the sampling probability of frames based on inter-frame similarity and semantic matching, sampling is performed and a sampled frame set is constructed to evaluate the model under test.

Benefits of technology

While reducing computational overhead, we can improve evaluation accuracy, avoid information loss and noise introduction, and ensure the validity and accuracy of evaluation results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123182091A_ABST
    Figure CN123182091A_ABST
Patent Text Reader

Abstract

The present disclosure provides a video understanding evaluation method, device and medium, the method comprising: extracting part of video samples from a full set of video samples as representative video samples; for each representative video sample, determining the inter-frame similarity between each frame in the representative video sample and other frames within a preset time neighborhood, and the semantic matching degree between each frame and a question text; based on the inter-frame similarity between each frame in the representative video sample and other frames within a preset time neighborhood, and the semantic matching degree between each frame and a question text, determining the sampling probability of each frame in the representative video sample; based on the sampling probability of each frame in the representative video sample, sampling the representative video sample to obtain a set of sampled frames of the representative video sample; based on the set of sampled frames of each representative video sample, evaluating the video understanding capability of the model under test. Through the present disclosure, the evaluation accuracy of the model can be improved while reducing the overhead.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the fields of artificial intelligence and computer vision, and in particular to a video understanding evaluation method, device and medium. Background Technology

[0002] In recent years, the rapid development of large-scale multimodal model (VLM) has made video understanding a crucial component of model evaluation. For example, the Qwen3-VL series and InternVL-3.5-VL series models are typically evaluated using open evaluation frameworks (such as OpenCompass). In video tasks, most evaluation frameworks default to uniform frame extraction or per-second frame extraction strategies, converting long videos into a fixed number of frames before inputting them into the model for inference. These strategies are simple to implement and easy to reproduce, but the computational cost of evaluation increases linearly with video length and sample size.

[0003] To reduce computational overhead, researchers have proposed several solutions: reducing the sample size through random downsampling, or selecting key frames through optical flow variations and inter-frame differences to reduce the number of frames, but the evaluation accuracy is often not ideal. Summary of the Invention

[0004] This disclosure provides a video understanding evaluation method, device, and medium to address the problem of insufficient evaluation accuracy in existing video understanding evaluation methods.

[0005] To address the aforementioned problems, firstly, a video understanding evaluation method is provided, the method comprising: A portion of video samples are extracted from the full video sample set as representative video samples; For each representative video sample, determine the inter-frame similarity between each frame in the representative video sample and other frames in the preset time neighborhood, as well as the semantic matching degree between each frame and the question text; Based on the inter-frame similarity between each frame in the representative video sample and other frames in the preset time neighborhood, as well as the semantic matching degree between each frame and the question text, the sampling probability of each frame in the representative video sample is determined. Based on the sampling probability of each frame in the representative video sample, the representative video sample is sampled to obtain the sampled frame set of the representative video sample. The video understanding ability of the tested model is evaluated based on the sampled frame set of representative video samples.

[0006] In conjunction with the first aspect, in one possible implementation, the step of extracting a portion of video samples from the full video sample set as representative video samples includes: Extract the representation vector of each video sample from the full video sample set; Cluster the representation vectors of all video samples to obtain at least one category; For each category, a predetermined number of samples that are closest to the center of that category are selected as the representative video samples.

[0007] In conjunction with the first aspect, in one possible implementation, extracting the representation vector of each video sample in the full video sample set includes: For each video sample in the full video sample set, the visual part of the video sample is encoded through a visual representation model to obtain the visual representation of the video sample. By using a text representation model, the text portion of the video sample is encoded to obtain the text representation of the video sample. The visual representation of the video sample is merged with the textual representation of the video sample to obtain the representation vector of the video sample.

[0008] In conjunction with the first aspect, in one possible implementation, determining the sampling probability of each frame in the representative video sample based on the inter-frame similarity between each frame in the representative video sample and other frames within a preset temporal neighborhood, and the semantic matching degree between each frame and the question text, includes: Based on the inter-frame similarity between each frame in the representative video sample and other frames in the preset time neighborhood, the similarity density value of each frame is determined. Based on the relationship that the initial score is inversely correlated with the similarity density value and positively correlated with the semantic matching degree, the initial score of each frame in the representative video sample is determined; By using a smooth convolution kernel, a sliding convolution operation is performed on the initial scores of each frame in the representative video sample. Based on the result of this sliding convolution operation, the sampling probability of each frame in the representative video sample is obtained.

[0009] In conjunction with the first aspect, in one possible implementation, determining the similarity density value of each frame based on the inter-frame similarity between each frame in the representative video sample and other frames within a preset temporal neighborhood includes: The similarity density value of the frame is obtained by weighted summing of the inter-frame similarity between the frame and other frames in the preset time neighborhood.

[0010] In conjunction with the first aspect, in one possible implementation, sampling the representative video sample based on the sampling probability of each frame in the representative video sample to obtain a set of sampled frames for the representative video sample includes: The representative video sample is divided into at least one sampling time window according to a preset time length; For each sampling time window, the target number of sampling frames within that sampling time window is determined based on the sum of the sampling probabilities of each frame within that window and a preset minimum number of sampling frames. Select the frame with the highest sampling probability within the sampling time window as the sampling frame within the sampling time window; By summarizing the sampled frames within each sampling time window, a set of sampled frames for the representative video sample is obtained.

[0011] In conjunction with the first aspect, in one possible implementation, determining the target number of sampling frames within the sampling time window based on the sum of the sampling probabilities of each frame within the sampling time window and a preset minimum number of sampling frames includes: Allocate a preset minimum number of sampling frames to each sampling time window; Based on the proportion of the sum of sampling probabilities of each frame within each sampling time window, the remaining quota in the preset total number of sampling frames for the representative video sample is allocated to determine the target number of sampling frames for each sampling time window.

[0012] In conjunction with the first aspect, in one possible implementation, the evaluation of the video understanding capability of the tested model based on the sampled frame set of each representative video sample includes: For each representative video sample, a preset number of frames with the highest sampling probability are selected from the sampled frame set of that representative video sample as a subset of frames; The subset of frames is input into the tested model for inference to obtain a coarse score. If the coarse evaluation score is less than or equal to a preset low score threshold, or if the coarse evaluation score is greater than or equal to a preset high score threshold, the coarse evaluation score will be determined as the evaluation result of the tested model on the representative video sample. When the coarse evaluation score is between the preset low score threshold and the preset high score threshold, the sampled frame set of the representative video sample is input into the tested model for inference to obtain the fine evaluation score, and the fine evaluation score is determined as the evaluation result of the tested model on the representative sample.

[0013] In a second aspect, a computer device is provided, comprising: a processor, a memory, and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the computer device is running, the processor communicates with the memory via the bus, and the machine-readable instructions, when executed by the processor, perform the steps of a video understanding evaluation method as described in the first aspect, or in combination with any possible implementation of the first aspect.

[0014] Thirdly, a computer-readable storage medium is provided, on which a computer program is stored, which, when executed by a processor, performs the steps of a video understanding evaluation method as described in the first aspect, or in conjunction with any possible implementation of the first aspect.

[0015] The beneficial effects of the embodiments disclosed herein include: This disclosure, at the frame selection level, determines the sampling probability of each frame in the representative samples based on inter-frame similarity and semantic matching degree between frames and the question text. Inter-frame similarity identifies and removes redundant frames from the video samples, while semantic matching degree ensures that effective visual content strongly relevant to the evaluation task is prioritized. Compared to the blind keyframe extraction or random downsampling in existing technologies, this solution effectively avoids evaluation bias caused by information loss or noise introduction while reducing hardware computational overhead and shortening evaluation time, thus improving evaluation accuracy while reducing overhead.

[0016] Furthermore, at the video sample selection level, this disclosure uses the representation vectors of video samples for clustering. For each category, a predetermined number of samples closest to the center of that category are selected as representative video samples. This selection mechanism ensures that the retained samples uniformly cover different semantic clusters in the feature space, thereby removing a large number of homogeneous and redundant samples while maximizing the retention of the semantic diversity required for evaluation, effectively avoiding the sample distribution bias caused by traditional random sampling. Attached Figure Description

[0017] Figure 1 A flowchart of a video understanding evaluation method provided in this embodiment of the disclosure; Figure 2 A flowchart of another video understanding evaluation method provided in an embodiment of this disclosure. Detailed Implementation

[0018] This disclosure provides a video understanding evaluation method, device, and medium. Preferred embodiments of this disclosure are described below with reference to the accompanying drawings. It should be understood that the preferred embodiments described herein are for illustrative and explanatory purposes only and are not intended to limit this disclosure. Furthermore, the embodiments and features described in this application can be combined with each other unless otherwise specified.

[0019] This disclosure provides a video understanding evaluation method. Figure 1 A flowchart of a video understanding evaluation method provided in this disclosure embodiment is shown below. Figure 1 As shown, the method includes: S101. Extract a portion of video samples from the full video sample set as representative video samples; S102. For each representative video sample, determine the inter-frame similarity between each frame in the representative video sample and other frames in the preset time neighborhood, as well as the semantic matching degree between each frame and the question text. S103. Based on the inter-frame similarity between each frame in the representative video sample and other frames in the preset time neighborhood, and the semantic matching degree between each frame and the question text, determine the sampling probability of each frame in the representative video sample. S104. Based on the sampling probability of each frame in the representative video sample, sample the representative video sample to obtain the sampled frame set of the representative video sample. S105. Based on the sampled frame set of each representative video sample, evaluate the video understanding ability of the tested model.

[0020] In this embodiment, inter-frame similarity is used to measure the degree of visual similarity between any two frames in a video, reflecting the redundancy of the video content. Semantic matching between a frame and the question text is used to measure the relevance between the content of a frame and the question to be evaluated (e.g., what are the people in the video doing?), ensuring that the extracted frames can answer the core requirements of the evaluation task.

[0021] By using a two-stage screening process involving video samples and frames, the computational load on the tested model during the inference phase can be significantly reduced, while maintaining coverage of key events and semantic content, thereby improving the efficiency and effectiveness of the evaluation.

[0022] For example, let the full set of video samples be denoted as The corresponding frame set is Constructing efficient evaluation operators This allows it to approximate the full evaluation operator as closely as possible when computational resources are limited. : ; in, Indicates efficient evaluation operator The computational overhead, This indicates the preset maximum computing resources.

[0023] In another embodiment provided in this disclosure, step S101 extracts a portion of video samples from the full video sample set as representative video samples, including: Extract the representation vector of each video sample from the full video sample set; Cluster the representation vectors of all video samples to obtain at least one category; For each category, a predetermined number of samples that are closest to the center of that category are selected as representative video samples.

[0024] In this embodiment of the disclosure, feature clustering is used to map video samples to a feature space. Samples with similar semantics (small feature vector distance) are grouped into one class by a clustering algorithm. In each class, only the sample closest to the class center is retained as a representative sample, ensuring that representative samples under each class are covered, preserving semantic diversity, fundamentally avoiding evaluation bias, and removing redundancy at the sample level, reducing the benchmark size for subsequent evaluations.

[0025] Clustering algorithms can include K-Means clustering, hierarchical clustering, and Gaussian mixture models. Representation vector extraction can employ CLIP (Contrastive Language-Image Pre-training, a text-image pre-training model based on contrastive learning) and DINO (Distillation with No Labels, a self-distillation visual pre-training model without labels). Distance metrics can include Euclidean distance, cosine similarity, and Mahalanobis distance.

[0026] For example, each video sample First, encode it into a representation vector. Then, the representation vectors of all video samples are clustered to obtain a set of categories. ,and . No. Class center is Retain and center Minimum distance One sample: ; The representative video sample set is ,in ,and (The specific size depends on the budget and coverage requirements).

[0027] In another embodiment provided in this disclosure, extracting the representation vector of each video sample in the full video sample set includes: for each video sample in the full video sample set, encoding the visual part of the video sample using a visual representation model to obtain the visual representation of the video sample; encoding the text part of the video sample using a text representation model to obtain the text representation of the video sample; and merging the visual representation of the video sample with the text representation of the video sample to obtain the representation vector of the video sample.

[0028] In this embodiment of the disclosure, the visual representation model is used to extract video image features (such as appearance, action, scene, etc.) to obtain the visual representation of the video sample; the text representation model is used to extract features of text information associated with the video (such as questions, context, or subtitles) to obtain the text representation of the video sample.

[0029] Merging visual and textual representations in the feature space creates a representation vector that comprehensively reflects the semantics of the video. Using this representation vector for sample selection ensures that the chosen representative video samples are not only diverse in visual appearance but also representative in task semantics.

[0030] The visual representation and text representation can be merged by directly concatenating the feature vectors, which concatenates the visual representation and text representation end to end to obtain the representation vector of the video sample; or by using a weighted summation method.

[0031] In another embodiment provided in this disclosure, step S103 determines the sampling probability of each frame in the representative video sample based on the inter-frame similarity between each frame in the representative video sample and other frames in a preset time neighborhood, and the semantic matching degree between each frame and the question text, including: Based on the inter-frame similarity between each frame in the representative video sample and other frames in the preset time neighborhood, the similarity density value of each frame is determined. Based on the relationship that the initial score is inversely correlated with the similarity density value and positively correlated with the semantic matching degree, the initial score of each frame in the representative video sample is determined. By using a smooth convolution kernel, a sliding convolution operation is performed on the initial scores of each frame in the representative video sample. Based on the result of this sliding convolution operation, the sampling probability of each frame in the representative video sample is obtained.

[0032] In this embodiment of the disclosure, the similarity density value may reflect the redundancy of a frame within a preset time neighborhood. If a frame is highly similar to a large number of surrounding frames (e.g., in a static or transitional phase), the density value of that frame is high; conversely, if the frame differs significantly from other frames (i.e., in an area with dense visual content changes), the similarity density value is low. The similarity density value of a frame is inversely correlated with the information content of that frame. Therefore, the sampling probability of frames with high similarity density values ​​should be suppressed, and the initial score is inversely correlated with the similarity density value.

[0033] The similarity density value can be determined by nearest neighbor density estimation. Specifically, the similarity of the Xth frame with the highest similarity to the current frame is used as the density estimate of the current frame.

[0034] The semantic matching degree between a frame and the question text is used to measure the degree of fit between the visual content of a single frame and the current evaluation question text. If a frame and the question text are highly semantically matched, it means that the frame contains the key visual information needed to answer the question and is a valid frame that contributes highly to the evaluation results. In order to make it easier for such high-value frames to be sampled and retained, the initial score of the frame needs to be increased. Therefore, the initial score is positively correlated with the semantic matching degree.

[0035] After determining the initial score for each frame, a temporal sliding weighted smoothing is performed on the initial score using a smooth convolution kernel. This can eliminate sudden changes in single-frame scores, weaken isolated noise interference, and take into account the temporal continuity of the video.

[0036] Specifically, by using a smooth convolution kernel, the initial score sequence is slidably weighted and summed along the frame time sequence to obtain the smoothed score. Then, the smoothed score is normalized to obtain the sampling probability of each frame.

[0037] In another embodiment provided in this disclosure, the similarity density value of each frame is determined based on the inter-frame similarity between each frame in the representative video sample and other frames within a preset time neighborhood, including: The similarity density value of the frame is obtained by weighted summing of the inter-frame similarity between the frame and other frames in the preset time neighborhood.

[0038] In some embodiments, kernel density estimation (KDE) can be used to determine the similarity density value of frames, with decreasing weights assigned based on temporal distance, focusing on using immediate neighboring frames to calculate the similarity density, and weakening interference from distant irrelevant frames.

[0039] For example, video samples The set of frames is . Represents video samples The first frame in the video. Represents video samples The first in frame, Represents video samples The total number of frames. Frame similarity is calculated using the similarity of the image representations of the frames, and the matching degree between the frames and the question text is calculated using the CLIP (Graphic Image-Text Alignment) representation model.

[0040] For video samples The first in j frame The Gaussian kernel function was used to analyze the frame and video samples. The similarity density value of a frame is obtained by weighted summing of the inter-frame similarities of all other frames in the frame. .frame initial score ,in, Representing a frame With question text The semantic matching degree between them For monotonic functions (e.g.) ).

[0041] In another embodiment provided in this disclosure, step S104, based on the sampling probability of each frame in the representative video sample, samples the representative video sample to obtain a set of sampled frames for the representative video sample, including: dividing the representative video sample into at least one sampling time window according to a preset time length; for each sampling time window, determining the target number of sampled frames within the sampling time window based on the sum of the sampling probabilities of each frame within the window and a preset minimum number of sampled frames; selecting the frame with the highest target number of sampled frames within the sampling time window as the sampled frame within the sampling time window; and summarizing the sampled frames within each sampling time window to obtain a set of sampled frames for the representative video sample.

[0042] In this embodiment, if frames are extracted solely based on global sampling probability, the sampling results are prone to concentrate on a few semantically hot segments, resulting in no sampled frames and missing temporal information for other time periods. Therefore, this disclosure divides representative video samples into several sampling time windows, setting a minimum number of sampled frames for each window. This ensures that even time periods with weak semantic relevance to the problem text are not completely discarded, achieving full coverage of basic timeline information, guaranteeing event sequence and action integrity, and preserving complete event semantics while reducing the number of frames. Simultaneously, the target number of sampled frames within each window is positively correlated with the sum of the sampling probabilities of each frame within that window, allowing windows with stronger semantic relevance to be allocated more sampled frames within the overall computing power budget.

[0043] The sampling time window can be a fixed length or an adaptive length window, with the window boundaries determined based on semantic changes in the video content (such as scene transitions or action start points). Sampling time windows can be non-overlapping, or adjacent windows can have partial frame overlap. Of course, other window lengths and overlap methods can also be used, and this disclosure does not impose any restrictions on them.

[0044] In another embodiment provided in this disclosure, the target number of sampling frames in the sampling time window is determined based on the sum of the sampling probabilities of each frame in the sampling time window and a preset minimum number of sampling frames, including: allocating a preset minimum number of sampling frames to each sampling time window; and allocating the remaining quota in the preset total number of sampling frames of the representative video sample according to the proportion of the sum of the sampling probabilities of each frame in each sampling time window, thereby determining the target number of sampling frames for each sampling time window.

[0045] For example, the frames selected from each window are merged into a set of sampled frames for the video sample. The total number of frames does not exceed the budget limit. The overall selection is denoted as a constrained operator. : ; in, Indicates the length of the sampling time window. This represents the sampling probability of each frame in the video sample.

[0046] This operator maintains the temporal integrity of actions and events in the video while covering key semantic regions through window partitioning and minimum retention frame constraints.

[0047] In another embodiment provided in this disclosure, step S105 evaluates the video understanding ability of the model under test based on the sampled frame set of each representative video sample, including: For each representative video sample, a preset number of frames with the highest sampling probability are selected from the sampled frame set of that representative video sample as a subset of frames; A subset of frames is input into the model under test for inference to obtain a coarse score. If the coarse evaluation score is less than or equal to the preset low score threshold, or greater than or equal to the preset high score threshold, the coarse evaluation score will be determined as the evaluation result of the tested model on the representative video sample. If the coarse evaluation score is between a preset low score threshold and a preset high score threshold, the sampled frame set of the representative video sample is input into the model under test for inference to obtain the fine evaluation score, and the fine evaluation score is determined as the evaluation result of the model under test on the representative sample.

[0048] In this embodiment, a unified hierarchical scheduling mechanism is used to further reduce inference costs. The core idea is "first use a small number of frames for coarse evaluation, then use the full set of frames for fine evaluation as needed": for each representative video sample, a small number of frames are first sent to the model under test for low-cost inference. The coarse evaluation score determines whether fine evaluation is needed. If the coarse evaluation score is very poor or very good, it means that the model's performance on this sample is clear and can be directly output without consuming computing power for fine evaluation; only when the coarse evaluation score is in the middle range is the video sample finely evaluated, and the entire set of sampled frames is input to the model under test.

[0049] In other words, the confidence level of the coarse evaluation score is determined based on its numerical value. If the confidence level of the coarse evaluation score is high, it is determined as the evaluation result; if the confidence level of the coarse evaluation score is low, a fine evaluation is performed on the video sample, and the fine evaluation score is determined as the evaluation result. Specifically, cases where the coarse evaluation score is greater than or equal to a preset high score threshold and less than or equal to a preset low score threshold are determined as high confidence, while cases where the coarse evaluation score is less than the preset high score threshold but greater than the preset low score threshold are determined as low confidence.

[0050] The difference between coarse and fine evaluation lies in the number of frames fed into the model. Both involve actual inference by the tested model, ensuring the authenticity and fairness of the evaluation. This mechanism quickly identifies samples with high or low evaluation scores at low cost, and centrally allocates complete inference resources to intermediate samples, achieving dynamic allocation of inference resources.

[0051] In some embodiments, the coarse-fine evaluation two-stage process can be extended to multiple stages. For example, a three-stage evaluation scheme can be adopted, gradually increasing the number of frames input to the model in each stage. In the first stage, a very small number of frames are input to the model under test for rapid initial screening to obtain a first score. If the first score meets a preset confidence condition, it is determined as the evaluation result of the model under test on that video sample. The remaining video samples enter the second stage, where a moderate number of frames are input to the model under test for further inference to obtain a second score. If the second score meets a preset confidence condition, it is determined as the evaluation result of the model under test on that video sample. The remaining video samples enter the third stage, where the entire sampled frame set is input to the model under test for fine evaluation to obtain a fine evaluation score, which is determined as the evaluation result of the model under test on that video sample. Confidence can also be determined based on logits, probability distribution entropy, etc. For example, when determining confidence based on logits, the original predicted scores of each score category output by the tested model during coarse evaluation are extracted. If the difference between the logits of the highest score category and the logits of the second highest score category exceeds a preset difference threshold, the coarse evaluation score is determined to have high confidence. When determining confidence based on probability distribution entropy, the information entropy of the probability distribution output by the coarse evaluation is calculated. When this information entropy is lower than a preset entropy threshold, it indicates that the probability distribution output by the model is highly concentrated, and the coarse evaluation result is determined to have high confidence.

[0052] The preset low score threshold and preset high score threshold can be fixed thresholds, adaptive thresholds, or determined based on a validation set. Specifically, when using fixed thresholds, a pair of constant preset low score thresholds and preset high score thresholds can be pre-set based on historical evaluation experience or specific task characteristics, suitable for scenarios with fixed evaluation tasks. When using adaptive thresholds, the preset low score thresholds and preset high score thresholds for the current batch of video samples can be dynamically calculated based on the overall distribution characteristics (such as mean and variance) of the coarse evaluation scores, to adapt to fluctuations in video samples of different difficulty. When determined based on a validation set, video samples with known evaluation results are selected as the validation set. On this validation set, the evaluation accuracy and computational savings rate under different threshold combinations are tested, and the set of thresholds with the best overall performance (determined based on evaluation accuracy and computational savings rate) is selected as the preset thresholds in the actual evaluation.

[0053] For example, representative video samples From the sample set Extracting a smaller subset of frames (e.g., taking the few frames with the highest sampling probability), along with the question text. The sample was fed into the model under test, and a preliminary score was obtained: ; in, This is a coarse evaluation function.

[0054] Due to the significant reduction in the number of frames, the cost of coarse evaluation is significantly lower than that of full-frame inference, but it still reflects the actual inference of the tested model and can truly reflect the approximate performance of the model.

[0055] Set a preset low score threshold Compared with the preset highest threshold The tiered decision-making process is as follows: when or At that time, the model's performance was clearly biased towards low or high scores, and the evaluation results... Use the rough score directly ; when When, the set of sampled frames will be... All frames are fed into the tested model for complete inference and fine evaluation. The fine evaluation score is determined as the evaluation result of the tested model. ; in, This is a fine evaluation function.

[0056] The comprehensive representation is as follows: .

[0057] Figure 2 A flowchart of another video understanding evaluation method provided in this disclosure embodiment is shown below. Figure 2 As shown, Figure 2 As shown, in the efficient pre-evaluation stage: feature clustering is used to cluster the representation vectors of video samples in the full video sample set to obtain at least one category; for each category, a predetermined number of samples closest to the center of that category are taken as representative video samples; based on the inter-frame similarity between each frame in each representative video sample and other frames in a predetermined time neighborhood, and the semantic matching degree between each frame and the question text, a sampled frame set is obtained to retain representative information and remove redundancy. In the efficient evaluation stage: a subset of frames is selected from the sampled frame set and input into the tested model for coarse evaluation; if the coarse evaluation score is greater than or equal to a predetermined high score threshold, or less than or equal to a predetermined low score threshold, the coarse evaluation score is determined as the evaluation result; if the coarse evaluation score is in the middle range, that is, less than the predetermined low score threshold and greater than the predetermined high score threshold, the entire sampled frame set is input into the tested model for fine evaluation, and the fine evaluation score is determined as the evaluation result.

[0058] In some embodiments, the consistency between the video understanding evaluation method provided in this disclosure and the full evaluation can be verified through error analysis and ranking correlation analysis. Video samples Single sample error Defined as: ; in, For video samples Evaluation results under full-scale evaluation.

[0059] Overall ranking consistency is measured using the Spearman correlation coefficient: ; in, The consistency coefficient for video sample ranking. This represents the Spearman-level correlation operation function. This represents the set of evaluation results obtained from each video sample using the video understanding evaluation method provided in this disclosure. This represents the set of evaluation results for each video sample under full evaluation.

[0060] Expected to meet single-sample error And less than the preset error threshold, the consistency coefficient of video sample ranking Furthermore, computational costs have decreased significantly. ; in, This indicates the efficient evaluation operator corresponding to the video understanding evaluation method provided in this disclosure. The computational overhead, This represents the computational cost of the full evaluation operator.

[0061] Compared with existing technologies, this disclosure establishes a closed-loop accelerated evaluation system consisting of efficient pre-evaluation screening and efficient scheduling during evaluation. While ensuring evaluation accuracy and result stability, it achieves significant improvements in computational efficiency and resource savings. This disclosure has outstanding beneficial effects in the following aspects: (1) Significantly improve evaluation efficiency and reduce overall computation and time costs under limited hardware conditions; (2) The method parameters are adjustable and highly modular, making it easy to promote and apply in different video tasks and model architectures, and supporting subsequent expansion and upgrades.

[0062] In summary, this disclosure achieves an efficient, stable, and scalable video model evaluation process while ensuring evaluation quality, demonstrating significant technological advancement and engineering application value.

[0063] This disclosure provides a computer device, including a processor, a memory, and a bus. The memory stores machine-readable instructions executable by the processor. When the computer device is running, the processor communicates with the memory via the bus. When the machine-readable instructions are executed by the processor, they perform the steps of a video understanding evaluation method provided in any embodiment of this disclosure.

[0064] The computer device provided in this disclosure includes a processor, a memory, and a bus. The memory, also known as internal memory, stores execution instructions and includes main memory and external memory. The main memory temporarily stores data processed by the processor, as well as data exchanged with external storage devices such as hard disks. The processor exchanges data with external storage devices through main memory. When the electronic device is running, the processor and memory communicate via the bus, enabling the processor to execute the following instructions: A portion of video samples are extracted from the full video sample set as representative video samples. For each representative video sample, the inter-frame similarity between each frame in the representative video sample and other frames within a preset time neighborhood, as well as the semantic matching degree between each frame and the question text, are determined. Based on the inter-frame similarity between each frame in the representative video sample and other frames within the preset time neighborhood, and the semantic matching degree between each frame and the question text, the sampling probability of each frame in the representative video sample is determined. Based on the sampling probability of each frame in the representative video sample, the representative video sample is sampled to obtain the sampled frame set of the representative video sample. Based on the sampled frame sets of each representative video sample, the video understanding ability of the tested model is evaluated.

[0065] This disclosure provides a computer-readable storage medium storing a computer program. When a processor executes the program, it performs the steps of a video understanding evaluation method provided in any embodiment of this disclosure. The storage medium can be volatile or non-volatile computer-readable storage.

[0066] Through the above description of the embodiments, those skilled in the art can clearly understand that the embodiments of this disclosure can be implemented in hardware or by means of software plus necessary general-purpose hardware platforms. Based on this understanding, the technical solutions of the embodiments of this disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (such as a CD-ROM, USB flash drive, mobile hard drive, etc.) and includes several instructions to cause a computer device (such as a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments of this disclosure.

[0067] Those skilled in the art will understand that the accompanying drawings are merely schematic diagrams of a preferred embodiment, and the modules or processes in the drawings are not necessarily essential for implementing this disclosure.

[0068] The sequence numbers of the embodiments disclosed above are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.

[0069] Obviously, those skilled in the art can make various modifications and variations to this disclosure without departing from its spirit and scope. Therefore, if such modifications and variations fall within the scope of the claims of this disclosure and their equivalents, this disclosure is also intended to include such modifications and variations.

Claims

1. A video understanding evaluation method, characterized in that, The method includes: A portion of video samples are extracted from the full video sample set as representative video samples; For each representative video sample, determine the inter-frame similarity between each frame in the representative video sample and other frames in the preset time neighborhood, as well as the semantic matching degree between each frame and the question text; Based on the inter-frame similarity between each frame in the representative video sample and other frames in the preset time neighborhood, as well as the semantic matching degree between each frame and the question text, the sampling probability of each frame in the representative video sample is determined. Based on the sampling probability of each frame in the representative video sample, the representative video sample is sampled to obtain the sampled frame set of the representative video sample. The video understanding ability of the tested model is evaluated based on the sampled frame set of representative video samples.

2. The method according to claim 1, characterized in that, The step of extracting a portion of video samples from the full video sample set as representative video samples includes: Extract the representation vector of each video sample from the full video sample set; Cluster the representation vectors of all video samples to obtain at least one category; For each category, a predetermined number of samples that are closest to the center of that category are selected as the representative video samples.

3. The method according to claim 2, characterized in that, The extraction of the representation vector of each video sample in the full video sample set includes: For each video sample in the full video sample set, the visual part of the video sample is encoded through a visual representation model to obtain the visual representation of the video sample. By using a text representation model, the text portion of the video sample is encoded to obtain the text representation of the video sample. The visual representation of the video sample is merged with the textual representation of the video sample to obtain the representation vector of the video sample.

4. The method according to claim 1, characterized in that, The determination of the sampling probability of each frame in the representative video sample based on the inter-frame similarity between each frame in the representative video sample and other frames within a preset time neighborhood, and the semantic matching degree between each frame and the question text, includes: Based on the inter-frame similarity between each frame in the representative video sample and other frames in the preset time neighborhood, the similarity density value of each frame is determined. Based on the relationship that the initial score is inversely correlated with the similarity density value and positively correlated with the semantic matching degree, the initial score of each frame in the representative video sample is determined; By using a smooth convolution kernel, a sliding convolution operation is performed on the initial scores of each frame in the representative video sample. Based on the result of this sliding convolution operation, the sampling probability of each frame in the representative video sample is obtained.

5. The method according to claim 4, characterized in that, The determination of the similarity density value of each frame based on the inter-frame similarity between each frame in the representative video sample and other frames within a preset time neighborhood includes: The similarity density value of the frame is obtained by weighted summing of the inter-frame similarity between the frame and other frames in the preset time neighborhood.

6. The method according to claim 1, characterized in that, The step of sampling the representative video sample based on the sampling probability of each frame in the representative video sample to obtain the sampled frame set of the representative video sample includes: The representative video sample is divided into at least one sampling time window according to a preset time length; For each sampling time window, the target number of sampling frames within that sampling time window is determined based on the sum of the sampling probabilities of each frame within that window and a preset minimum number of sampling frames. Select the frame with the highest sampling probability within the sampling time window as the sampling frame within the sampling time window; By summarizing the sampled frames within each sampling time window, a set of sampled frames for the representative video sample is obtained.

7. The method according to claim 6, characterized in that, The step of determining the target number of sampling frames within the sampling time window based on the sum of the sampling probabilities of each frame within the sampling time window and a preset minimum number of sampling frames includes: Allocate a preset minimum number of sampling frames to each sampling time window; Based on the proportion of the sum of sampling probabilities of each frame within each sampling time window, the remaining quota in the preset total number of sampling frames for the representative video sample is allocated to determine the target number of sampling frames for each sampling time window.

8. The method according to claim 1, characterized in that, The set of sampled frames based on representative video samples is used to evaluate the video understanding ability of the tested model, including: For each representative video sample, a preset number of frames with the highest sampling probability are selected from the sampled frame set of that representative video sample as a subset of frames; The subset of frames is input into the tested model for inference to obtain a coarse score. If the coarse evaluation score is less than or equal to a preset low score threshold, or if the coarse evaluation score is greater than or equal to a preset high score threshold, the coarse evaluation score will be determined as the evaluation result of the tested model on the representative video sample. When the coarse evaluation score is between the preset low score threshold and the preset high score threshold, the sampled frame set of the representative video sample is input into the tested model for inference to obtain the fine evaluation score, and the fine evaluation score is determined as the evaluation result of the tested model on the representative sample.

9. A computer device, characterized in that, include: The computer device includes a processor, a memory, and a bus. The memory stores machine-readable instructions executable by the processor. When the computer device is running, the processor communicates with the memory via the bus. When the machine-readable instructions are executed by the processor, they perform the steps of a video understanding evaluation method as described in any one of claims 1 to 8.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, performs the steps of a video understanding evaluation method as described in any one of claims 1 to 8.