Cross-video alignment few-shot video summarization method based on multi-scale time segmentation

By employing multi-scale temporal segmentation and cross-video alignment techniques, this method addresses the issues of coarse cross-video semantic alignment and temporal misalignment in existing methods. It improves the accuracy of key segment localization and the generalization ability of the model in video summarization, and enables effective modeling of complex temporal structures.

CN123178673APending Publication Date: 2026-11-27CHINA THREE GORGES UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611336934.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-31
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing few-sample video summarization methods suffer from problems such as coarse cross-video semantic alignment, significant temporal misalignment, and insufficient ability to locate key segments.

Method used

A cross-video alignment method based on multi-scale temporal segmentation is adopted. Through a multi-scale temporal segmentation module, a temporal offset cross-attention module, a segment similarity alignment module, a self-attention module, and a cross-channel gating fusion module, a hierarchical video representation is constructed to capture temporal semantic information at different time scales. Fine-grained semantic alignment and adaptive fusion are then performed to generate video summaries.

Benefits of technology

It significantly improves the accuracy of key event localization and the generalization ability of the model, effectively captures complex temporal structures, and enhances the key segment representation ability and discrimination stability of video summarization.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123178673A_ABST
    Figure CN123178673A_ABST
Patent Text Reader

Abstract

The application discloses a cross-video alignment few-shot video summarization method based on multi-scale time sequence segmentation, and belongs to the field of computer vision. A query, a support video sequence and a support summary are obtained; a multi-scale video sequence is obtained through a multi-scale time sequence segmentation module; an enhanced support video sequence is generated through a time offset cross-attention module; a fragment similarity alignment module establishes fragment-level fine-grained semantic correspondence, and outputs an enhanced query video sequence; self-attention captures long-range time sequence dependence of the query video; a cross-channel gate fusion module fuses global and cross-video alignment features; a prediction head outputs frame importance scores, the scores are calibrated using alignment confidence, and representative frames are screened to generate a video summary. The application constructs hierarchical video representation, captures multi-scale time sequence semantics, and improves complex time sequence structure modeling capability. The application constructs hierarchical video representation, captures multi-scale time sequence semantics, and improves complex time sequence structure modeling capability.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of computer vision technology, and more specifically to a cross-video alignment few-shot video summarization method based on multi-scale temporal segmentation. Background Technology

[0002] With the rapid development of the internet and mobile devices, video data has exploded. How to automatically extract key content from long videos and generate concise and representative video summaries has become an important research direction in the field of computer vision. Video summarization technology can effectively improve the efficiency of video browsing, retrieval, and content understanding, and has wide application value in scenarios such as intelligent surveillance, short video recommendation, video retrieval, and human-computer interaction.

[0003] Few-shot video summarization methods treat the video to be summarized as the query set, and use videos of the same category and their corresponding summaries as the support set and support summaries, thereby achieving cross-video assisted learning. This method significantly simplifies the training process and improves the model's generalization ability while maintaining low annotation requirements. However, existing few-shot video summarization methods employ global feature matching, performing similarity modeling only at the frame level, lacking the ability to characterize the fine-grained temporal semantic structure across videos. Since key events in different videos often differ in duration, location, and local context, relying solely on global matching can easily lead to semantic misalignment, thus reducing the accuracy of key event localization. Furthermore, existing methods are insufficient in modeling complex temporal structures within videos, making it difficult to simultaneously consider local dynamic changes and long-term temporal dependencies. Summary of the Invention

[0004] The technical problem of this invention is to solve the problems of coarse cross-video semantic alignment, obvious temporal misalignment, and insufficient ability to locate key segments in existing few-sample video summarization methods.

[0005] The purpose of this invention is to solve the above-mentioned problems and propose a cross-video alignment few-shot video summarization method based on multi-scale temporal segmentation, comprising the following steps: Step 1: Obtain the query set video sequence, the support set video sequence, and the support summary video sequence; Step 2: The query set video sequence and the support set video sequence are divided into multiple scales and time series using the multi-scale temporal segmentation module to capture semantic change features at different time scales and obtain multi-scale query video sequence and multi-scale support video sequence. Step 3: Input the multi-scale support video sequence and the support summary video sequence into the temporal offset cross-attention module, dynamically associate the semantic information at different temporal positions, and generate the enhanced support video sequence; Step 4: The enhanced support video sequence is aligned with the input segment similarity module of the multi-scale query video sequence to establish a segment-level fine-grained semantic correspondence between the query video and the support video, and an enhanced query video sequence is generated. Step 5: Use a self-attention module to model the query set video sequence, capture the long-range temporal dependencies within the query video, and obtain the global query video sequence; Step 6: Input the enhanced query video sequence and the global query video sequence into the cross-channel gating fusion module, perform adaptive fusion of global context information and cross-video alignment information, and output fusion features; Step 7: Input the fused features into the prediction head and output the frame-level importance score. Use the confidence response of the segment similarity alignment output to adaptively calibrate the frame-level importance score. Based on the calibrated importance score, select representative frames and generate a video summary.

[0006] Furthermore, Step 1 includes the following sub-steps: 1) Determine the video categories of the query set videos and the support set videos, so that the query set videos and the support set videos belong to the same category; 2) Extract frame-level visual features from the query set video sequence, the support set video sequence, and the support summary video sequence, respectively.

[0007] The optimized frame-level visual features include extracting frame-level visual features using the GoogLeNet network and sampling video frames at preset frame intervals to output the feature vectors of the corresponding frames.

[0008] Furthermore, Step 2 includes the following sub-steps: 1) Perform temporal segmentation modeling on the query set video sequences and the support set video sequences at multiple different time scales; 2) Resample the time series segments obtained at each time scale, and align the segments at different scales to a uniform length through linear interpolation; 3) Weighted fusion of multi-scale segments to generate multi-scale query video sequences and multi-scale support video sequences.

[0009] Furthermore, Step 3 includes the following sub-steps: 1) Divide the supporting summary video sequence into several uniform sub-intervals, average pool the features of each sub-interval, and generate a set of action prototypes; 2) Perform linear mapping on multi-scale support video sequences to predict the temporal offset corresponding to the temporal position of each event; 3) Based on the predicted temporal offset, perform temporal reordering on the multi-scale support video sequences; 4) Perform attention interaction between the reordered supporting video features and the action prototype to obtain attention features; 5) The support summary video sequence features and attention features are adaptively fused through a gating mechanism to obtain an enhanced support video sequence.

[0010] The optimized Step 4 includes the following sub-steps: 1) Normalize the multi-scale query video sequences and the enhanced support video sequences; 2) Calculate the cosine similarity between segments and construct a cross-video segment level similarity matrix; 3) Based on the similarity matrix, the supporting segments are weighted and aggregated, and frame-level alignment features are obtained through temporal interpolation; 4) Extract the most relevant confidence responses in the frame dimension from the fragment-level similarity matrix and upsample them to the original time scale for confidence enhancement of subsequent prediction branches.

[0011] Furthermore, in Step 5, the self-attention module, based on the scaling dot product self-attention mechanism, mines the long-range temporal dependencies between query video frames and outputs the global query video sequence.

[0012] The optimized Step 6 includes the following sub-steps: 1) Perform a linear transformation on the frame-level alignment features of the enhanced query video sequence to unify the feature dimensions; 2) Combine the global query video sequence features and the aligned features after dimensional unification, and calculate the channel fusion weights using a gating function; 3) Use fusion weights to perform channel-weighted fusion of the global query video sequence and alignment features to obtain fused features, and then perform linear mapping and normalization to obtain output features.

[0013] The optimized Step 7 includes the following sub-steps: 1) The prediction head outputs the original frame-level importance score, and the score is calibrated by aligning the output confidence response with the segment similarity. 2) The kernel time segmentation (KTS) algorithm is used for shot detection, and the shot-level importance is obtained by calculating the mean of the frame importance scores within the shot; 3) The Knapsack algorithm is used to select high-scoring shots and representative frames to generate video summaries under the preset summary duration constraint; the summary duration constraint is 15% of the total duration of the original video.

[0014] Compared with the prior art, the beneficial effects of the present invention include: 1) The few-sample video summarization model based on multi-scale temporal segmentation proposed in this invention effectively captures temporal semantic information at different time scales by constructing hierarchical video representation, thereby enhancing the model's ability to model complex temporal structures.

[0015] 2) The cross-video segment alignment mechanism designed in this invention combines segment similarity modeling and temporal offset cross-attention module to realize the modeling of fine-grained semantic correspondence across videos, and further introduces segment-level alignment information to adaptively recalibrate frame-level importance prediction, which significantly improves the accuracy of key event localization.

[0016] 3) This invention proposes a cross-channel fusion module, which performs adaptive gating fusion of global temporal features and cross-video alignment features in the channel dimension to achieve information selection of different semantic channels, thereby improving the discrimination ability and stability of key segment representation. Attached Figure Description

[0017] The present invention will be further described below with reference to the accompanying drawings and embodiments.

[0018] Figure 1 This is a framework diagram of a few-sample video summarization model based on multi-scale temporal segmentation, according to an embodiment of the present invention.

[0019] Figure 2 This is a schematic diagram of the segmentation of the multi-scale temporal segmentation module in an embodiment of the present invention.

[0020] Figure 3 This is a schematic diagram of the framework of the cross-channel gating fusion module in an embodiment of the present invention. Detailed Implementation

[0021] The technical solution of the present invention will be clearly and completely described below with reference to the accompanying drawings and embodiments. The following embodiments are only some embodiments of the present invention, and not all embodiments. All embodiments obtained by those skilled in the art without creative effort are within the protection scope of the present invention.

[0022] like Figure 1 As shown, the cross-video alignment few-shot video summarization method based on multi-scale temporal segmentation includes the following steps: Step 1: Obtain the query set video sequence, the support set video sequence, and the support summary video sequence.

[0023] 1) Determine the video categories of the query set videos and the support set videos, so that the query set videos and the support set videos belong to the same category; This implementation uses the GPT-3.5 model to generate a category for each video based on the prompt "The following lines are the video titles. The videos are then categorized according to their titles," thus obtaining the video categories.

[0024] 2) Extract frame-level visual features from the query set video sequence, the support set video sequence, and the support summary video sequence, respectively.

[0025] Frame-level visual features include extracting frame-level visual features using the GoogLeNet network, sampling video frames at preset frame intervals, and outputting the feature vector of the corresponding frame.

[0026] For the input video sequence The GoogLeNet algorithm is used to extract visual features: one frame is sampled every 15 frames, and the feature vector of that frame is obtained through the network. The feature dimension is 1024.

[0027] The dataset is divided into three parts: the query set consists of videos to be summarized; the support set consists of another video of the same category; and the support summary videos are human-generated, real summaries of the support set videos. The support set videos and support summaries are used to guide the generation of summaries from the query videos.

[0028] Step 2: The query set video sequence and the support set video sequence are divided into multiple scales using the multi-scale temporal segmentation module to capture semantic change features at different time scales, resulting in multi-scale query video sequences and multi-scale support video sequences.

[0029] Input query set video sequence Supports summary video sequences At different time scales We will then perform segmented modeling. The expression for the i-th video segment is: ; In the formula, For length, Step size, Indicates the first Frame characteristics This represents the corresponding fragment. Indicates the first The length of the segment obtained by dividing at each time scale.

[0030] The time series segments at each scale are resampled, and then aligned to a uniform length by linear interpolation. By simplifying the entire video sequence, we can obtain the segment sequence at this scale, expressed as: ; In the formula, This represents the segment length.

[0031] By using linear interpolation, it is uniformly aligned to a length of N, thus obtaining the aligned representation. .

[0032] To fuse all scale segments, the expression is: ; ; In the formula, Indicates the first Weights for each scale.

[0033] Finally, a multi-scale query video sequence is generated. and multi-scale support for video sequences .

[0034] Step 3: Input the multi-scale support video sequence and the support summary video sequence into the temporal offset cross-attention module, dynamically associate the semantic information at different temporal positions, and generate the enhanced support video sequence.

[0035] Will support video summary sequences Divided into Divide the data into uniform sub-intervals and perform average pooling on the features of each sub-interval to generate a compact set of action prototypes. The expression is: ; ; ; In the formula, Indicates the first The number of time steps contained in each sub-interval Indicates time position The corresponding feature representation, This represents a compressed representation of the features of the supporting video segment in the temporal dimension, with each prototype corresponding to the semantic center of a local temporal segment.

[0036] A linear mapping is performed on the multi-scale support video sequence Z_p to predict the offset corresponding to each event location. t, the expression is: ; In the formula, For learnable parameters, Indicates supported sequence lengths. This indicates the offset at each time position.

[0037] Based on the predicted offset, for multi-scale video sequences Perform temporal reordering to obtain the offset supporting video sequence, expressed as: ; In the formula, This indicates the supported video sequence after the offset.

[0038] Offset support video sequence With action prototype By performing interaction through scaling dot product attention, we obtain attention features, expressed as: ; In the formula, This indicates attentional characteristics.

[0039] Will support video summary sequences With attention characteristics Adaptive fusion using a gating mechanism yields enhanced support video sequences. The expression is: ; ; In the formula, This indicates that the gating weights support both video clip features and action prototypes. This represents element-wise multiplication. This represents the support video segment features after temporal offset cross-attention enhancement.

[0040] Step 4: The enhanced support video sequence is aligned with the input segment similarity module of the multi-scale query video sequence to establish a segment-level fine-grained semantic correspondence between the query video and the support video, and an enhanced query video sequence is generated.

[0041] Multi-scale query set video sequences With attention-enhanced support video sequences via temporal offset Normalization was performed separately to obtain as well as The expression is: ; ; In the formula, This represents a multi-scale query set of video sequences. ; This indicates a support video sequence that has undergone temporal offset and attention enhancement.

[0042] A cross-video segment level similarity matrix A is constructed using cosine similarity calculation, expressed as: ; In the formula, This represents the cosine similarity calculation; A represents the similarity matrix. .

[0043] The similarity matrix is ​​normalized, and weighted aggregation is performed on supporting fragments. Interpolation is then performed in the time dimension to obtain frame-level features. The expression is: ; ; In the formula, Indicates fragment-level alignment features. ; This represents the aligned frame-level features. .

[0044] In the fragment-level similarity matrix Support for video dimensions Select the most relevant response from the list. The expression is: ; In the formula, Indicates the most relevant response. .

[0045] The most relevant response Upsampling to the original time scale is used to enhance the confidence of subsequent prediction branches. The expression is: ; In the formula, This is an upsampling operation.

[0046] Step 5: Use a self-attention module to model the query set video sequence, capture the long-range temporal dependencies within the query video, and obtain the global query video sequence.

[0047] Query video sequence The global query video sequence is obtained through the self-attention module. The expression is: ; ; In the formula, This indicates a query for a video sequence. ; This indicates a global query for video sequences. ; These are the learnable linear transformation matrices, ; The feature dimension of a single attention head; This represents the global features after self-attention modeling. .

[0048] Step 6: Input the enhanced query video sequence and the global query video sequence into the cross-channel gating fusion module. Adaptive fusion of global context information and cross-video alignment information is performed, and the fused features are output. The framework diagram of the cross-channel fusion module is shown below. Figure 3 As shown.

[0049] The frame-level features obtained through the similarity alignment module are linearly transformed to obtain features of uniform dimension, expressed as follows: ; In the formula, Features representing a unified dimension This represents frame-level features.

[0050] Global query video sequence Features of a unified dimension The fusion weights are obtained by fusing through a gating function, and the expression is: ; In the formula, This indicates the weight allocation of each semantic channel at different time locations. .

[0051] fusion weight Global query video sequence and features of a unified dimension Channel fusion is performed to obtain the fusion feature, expressed as: ; In the formula, This indicates the fusion characteristics after channel fusion, and ⊙ represents element-wise multiplication.

[0052] The fused features are linearly mapped and normalized to obtain the output features, expressed as follows: ; In the formula, Indicates the final characteristics after fusion. .

[0053] Step 7: Input the fused features into the prediction head and output the frame-level importance score. Use the confidence response of the segment similarity alignment output to adaptively calibrate the frame-level importance score. Based on the calibrated importance score, select representative frames and generate a video summary.

[0054] The output feature X is processed by the prediction head to generate a frame-level importance score P, expressed as: ; In the formula, This represents the frame-level importance score.

[0055] The prediction head consists of a shared set of fully connected layers, tanh activation function dropout, and normalization layers; through two parallel branches, the first branch outputs the proposed importance score and fragment center position, and the other branch outputs fragment length offset for calibrating the summary boundary.

[0056] Frame-level response obtained using the fragment similarity alignment module For the original importance score Adaptive calibration is performed to obtain the calibrated importance score. The expression is: ; In the formula, This represents the frame-level alignment confidence obtained by upsampling the fragment-level similarity response. This represents the frame-level importance score after calibration.

[0057] Kernel Time Segmentation (KTS) is used for shot detection, and the average frame-level importance score within a shot is calculated to obtain the importance score for each shot.

[0058] Using Knapsack, high-scoring shots are selected under length constraints to obtain representative frames of the video, and the summary length is limited to 15% of the original video.

[0059] During training, a multi-task loss function, including classification loss, center loss, and binary cross-entropy loss, is used for model training.

[0060] To verify the effectiveness of the above embodiments, the present invention was applied in practice. The F1-score, Kendall's τ, and Spearman's ρ correlation coefficient were used as evaluation metrics for comparison with other state-of-the-art methods. Specifically, the benchmark datasets SumMe and TVSum were used to evaluate the network.

[0061] The F1 score evaluates the quality of the video summarization generated by the model, and is expressed as: ; ; ; In the formula, For the predicted video summary, This is a summary of the actual video.

[0062] Kendall's And Spearman's The correlation coefficient is used to evaluate the similarity between model-generated summaries and human-generated summaries, and is expressed as: ; ; ; In the formula, C is the number of identical pairs of video frames, D is the number of distinct pairs of video frames, dis represents the difference between two video frames, and n is the number of frames in the video.

[0063] The umMe dataset consists of 25 video sequences, covering a rich variety of video content and camera angles. The video sources include original footage and edited publicly available videos, with a duration of approximately 1-6 minutes.

[0064] The TVSum dataset consists of 50 long video sequences divided into 10 categories. The videos cover a wide range of content, including documentaries, news, and video blogs. All videos in this dataset are post-processed structured videos, with a duration of approximately 2-10 minutes.

[0065] During the experiment, this invention employs a few-shot learning strategy for training. Each training sample consists of a query video and an auxiliary video of the same category. The auxiliary video is randomly selected from samples of the same category in the training set and is equipped with manually annotated auxiliary summaries to guide the model in predicting keyframes in the query video. In each training cycle, an auxiliary video is randomly matched for each query video to enhance the model's generalization ability.

[0066] To ensure the stability and reproducibility of the experimental results, all experiments were run independently five times, and the final result was the average of the five experiments. In the experimental setup, 20% of the videos in the dataset were randomly selected as the test set, and the remaining 80% of the videos were used for model training.

[0067] On the SumMe and TVSum datasets, this invention is compared with current mainstream methods, and the results are shown in Table 1: Table 1

[0068] As can be seen from the table above, the MVS of this invention CA model in SumMe dataset F1 The score reached 57.24%, with a 2.59% improvement in the baseline STeMI for a smaller sample size; F1 score on the TVSum dataset. The score reached 61.96%, which is 1.07% higher than STeMI, proving that the present invention can better complete fine-grained semantic modeling across videos under conditions of few samples, and improve the performance of key segment localization.

[0069] In comparisons with traditional video summarization methods, MVS-CA demonstrates strong competitiveness despite leveraging additional modal information or more complex temporal modeling strategies in different settings. On the SumMe dataset, MVS-CA outperforms existing temporal modeling methods and approaches the performance of some multimodal methods. By jointly evaluating the performance of different methods, MVS-CA has proven to achieve a good balance. In short, MVS-CA's performance on both datasets is impressive compared to other state-of-the-art methods.

[0070] As can be seen from Table 1, the Kendall's τ and Spearman's ρ metrics of MVS-CA on the SumMe dataset are not very satisfactory. In the TVSum dataset, Kendall's τ and Spearman's ρ reach 0.1729 and 0.2081 respectively, while on the SumMe dataset they are only 0.1126 and 0.1277. This difference mainly stems from the degree of matching between the dataset's structural characteristics and the model's modeling approach. Specifically, videos in the SumMe dataset typically have more complex scene changes and stronger event discreteness, such as multi-view shooting, frequent switching, and non-continuous key events. In this case, although the multi-scale temporal segmentation proposed in this paper can capture key semantics at different temporal granularities and improve the discrimination ability of local segments by combining cross-video alignment mechanisms, the fragment-level enhancement information, after being mapped to the frame level, focuses more on local saliency modeling because the key events are relatively discretely distributed along the time axis. This weakens the consistency of global ranking to some extent, resulting in limited improvement in ranking-related metrics. In contrast, the video structure in the TVSum dataset is more continuous, and the event evolution is smoother. In this scenario, the hierarchical representation constructed by multi-scale segmentation and the cross-video alignment information can form a more stable propagation in the time dimension, enabling the model to not only accurately locate key segments, but also to learn consistent global ranking relationships more easily, thereby achieving higher Kendall's τ and Spearman's ρ values.

[0071] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on its differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. For the apparatus disclosed in the embodiments, since they correspond to the methods disclosed in the embodiments, the description is relatively simple; relevant parts can be referred to the method section.

[0072] The above description of the disclosed embodiments enables those skilled in the art to make or use the invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the invention. Therefore, the invention is not to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A cross-video alignment few-shot video summarization method based on multi-scale temporal segmentation, characterized in that, Includes the following steps: Step 1: Obtain the query set video sequence, the support set video sequence, and the support summary video sequence; Step 2: The query set video sequence and the support set video sequence are divided into multiple scales and time series using the multi-scale temporal segmentation module to capture semantic change features at different time scales and obtain multi-scale query video sequence and multi-scale support video sequence. Step 3: Input the multi-scale support video sequence and the support summary video sequence into the temporal offset cross-attention module, dynamically associate the semantic information at different temporal positions, and generate the enhanced support video sequence; Step 4: The enhanced support video sequence is aligned with the input segment similarity module of the multi-scale query video sequence to establish a segment-level fine-grained semantic correspondence between the query video and the support video, and an enhanced query video sequence is generated. Step 5: Use a self-attention module to model the query set video sequence, capture the long-range temporal dependencies within the query video, and obtain the global query video sequence; Step 6: Input the enhanced query video sequence and the global query video sequence into the cross-channel gating fusion module, perform adaptive fusion of global context information and cross-video alignment information, and output fusion features; Step 7: Input the fused features into the prediction head and output the frame-level importance score. Use the confidence response of the segment similarity alignment output to adaptively calibrate the frame-level importance score. Based on the calibrated importance score, select representative frames and generate a video summary.

2. The cross-video alignment few-shot video summarization method based on multi-scale temporal segmentation according to claim 1, characterized in that, Step 1 includes the following sub-steps: 1) Determine the video categories of the query set videos and the support set videos, so that the query set videos and the support set videos belong to the same category; 2) Extract frame-level visual features from the query set video sequence, the support set video sequence, and the support summary video sequence, respectively.

3. The cross-video alignment few-shot video summarization method based on multi-scale temporal segmentation according to claim 2, characterized in that, The frame-level visual features include extracting frame-level visual features using a GoogLeNet network, sampling video frames at preset frame intervals, and outputting the feature vector of the corresponding frame.

4. The cross-video alignment few-shot video summarization method based on multi-scale temporal segmentation according to claim 1, characterized in that, Step 2 includes the following sub-steps: 1) Perform temporal segmentation modeling on the query set video sequences and the support set video sequences at multiple different time scales; 2) Resample the time series segments obtained at each time scale, and align the segments at different scales to a uniform length through linear interpolation; 3) Weighted fusion of multi-scale segments to generate multi-scale query video sequences and multi-scale support video sequences.

5. The cross-video alignment few-shot video summarization method based on multi-scale temporal segmentation according to claim 1, characterized in that, Step 3 includes the following sub-steps: 1) Divide the supporting summary video sequence into several uniform sub-intervals, average pool the features of each sub-interval, and generate a set of action prototypes; 2) Perform linear mapping on multi-scale support video sequences to predict the temporal offset corresponding to the temporal position of each event; 3) Based on the predicted temporal offset, perform temporal reordering on the multi-scale support video sequences; 4) Perform attention interaction between the reordered supporting video features and the action prototype to obtain attention features; 5) The support summary video sequence features and attention features are adaptively fused through a gating mechanism to obtain an enhanced support video sequence.

6. The cross-video alignment few-shot video summarization method based on multi-scale temporal segmentation according to claim 1, characterized in that, Step 4 includes the following sub-steps: 1) Normalize the multi-scale query video sequences and the enhanced support video sequences; 2) Calculate the cosine similarity between segments and construct a cross-video segment level similarity matrix; 3) Based on the similarity matrix, the supporting segments are weighted and aggregated, and frame-level alignment features are obtained through temporal interpolation; 4) Extract the most relevant confidence responses in the frame dimension from the fragment-level similarity matrix and upsample them to the original time scale for confidence enhancement of subsequent prediction branches.

7. The cross-video alignment few-shot video summarization method based on multi-scale temporal segmentation according to claim 1, characterized in that, In Step 5, the self-attention module, based on the scaling dot product self-attention mechanism, mines the long-range temporal dependencies between query video frames and outputs the global query video sequence.

8. The cross-video alignment few-shot video summarization method based on multi-scale temporal segmentation according to claim 1, characterized in that, Step 6 includes the following sub-steps: 1) Perform a linear transformation on the frame-level alignment features of the enhanced query video sequence to unify the feature dimensions; 2) Combine the global query video sequence features and the aligned features after dimensional unification, and calculate the channel fusion weights using a gating function; 3) Use fusion weights to perform channel-weighted fusion of the global query video sequence and alignment features to obtain fused features, and then perform linear mapping and normalization to obtain output features.

9. The cross-video alignment few-shot video summarization method based on multi-scale temporal segmentation according to claim 1, characterized in that, Step 7 includes the following sub-steps: 1) The prediction head outputs the original frame-level importance score, and the score is calibrated by aligning the output confidence response with the segment similarity. 2) The kernel time segmentation (KTS) algorithm is used for shot detection, and the shot-level importance is obtained by calculating the mean of the frame importance scores within the shot; 3) The Knapsack algorithm is used to select high-scoring shots and representative frames to generate video summaries under the preset summary duration constraint; The summary duration is constrained to 15% of the total original video duration.