Key frame extraction method based on analytical sparse representation
By introducing analytic sparse representation and MCP sparse regularization into video signal processing and optimizing the sparse coding model, the problem of poor key frame extraction in the existing technology is solved, and more efficient calculations and stronger structural representation are achieved.
Patent Information
- Application Number
- CN202111548537.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-17
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2041-12-17
AI Technical Summary
The existing key frame extraction algorithm based on sparse coding cannot effectively extract the key frames of the video, and fails to consider the structural information of the video frame in the sparse coefficient matrix, resulting in poor extraction results.
Adopt a key frame extraction method based on analytic sparse representation, use minimax concave penalty (MCP) sparse regularization and analytic sparse coding model, calculate the sparse coefficient matrix through the matrix product of the video matrix and its transposed matrix, and optimize the sparse constraints to extract key frames .
It reduces the computational complexity of the key frame extraction algorithm, reduces the compression rate, and forms a symmetric sparse coefficient matrix, which improves the structure and significantly improves the accuracy and compression efficiency of key frame extraction.
Smart Images

Figure CN114220059B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to a computer vision key frame extraction technology, in particular to a key frame extraction method based on analytical sparse representation. Background Art
[0002] Artificial intelligence is increasingly permeating our lives. The research on humanoid robots can assist human life or replace humans in harsh environments. Computer vision, as an important part of humanoid robots, gives robots the ability to perceive surrounding information. The development of computer vision has further expanded the breadth of robot perception accuracy, making it easier and more accurate to handle the next task. Video processing is an important topic in computer vision. Since the amount of video data is huge and contains a lot of noise, it is very important to effectively extract the key frame information of the video. Video signals are composed of connected frames, and the temporal redundancy is particularly large, that is, the correlation between frames is very strong, so it is very suitable to use key frame extraction methods. Key frame extraction is to use a small group of frames with the largest amount of information to represent the original video, which greatly alleviates the pressure of high-dimensional video signal processing and supplements and improves the theory of video signal analysis and processing.
[0003] At present, key frame extraction based on sparse coding has attracted great attention due to its outstanding advantages, simplicity and mature mathematical analysis. Sparse coding of signals has a perfect mathematical representation. It uses a small number of elements to describe the signal through a dictionary or transformation, and can obtain a more concise representation of complex signals, thereby improving signal processing performance. It is worth noting that traditional sparse coding can extract some (sparse) frames, which contain the main information of the original video, that is, the original video information can be approximately represented by a few key frames. The existing key frame extraction algorithms based on sparse coding are mainly based on the relatively mature synthesis model at this stage, which requires a sparse coefficient matrix to learn, and the original video can be represented as a linear combination of several selected key frames. Specifically, the rows corresponding to the few non-zero elements of the sparse coefficient matrix represent the few (sparse) key frames of the entire video.
[0004] The effectiveness of sparse coding key frame extraction methods depends on the regularization term used to constrain sparsity, which is usually based on the L1 or L0 norm. For example, the Sparse Modeling Representation Selection (SMRS) method for video classification and summarization uses the L1 norm to achieve sparse representations corresponding to key frames. In addition, determinant metrics are also used as sparse constraints to obtain better key frame extraction results. However, existing sparse constraints cannot extract valid key frames, and are basically based on traditional synthesis models without considering the structural information of video frames in the sparse coefficient matrix. Therefore, it is necessary to develop more effective algorithms to obtain better video key frames. Summary of the invention
[0005] In order to solve the problems pointed out in the prior art, the present invention proposes a key frame extraction method based on analytic sparse representation, which utilizes the analytic sparse representation model and minimax concave penalty (MCP) sparse regularization to extract key frames of videos, reduces the computational complexity of the key frame extraction algorithm, and reduces the compression rate of key frame extraction.
[0006] The technical solution for achieving the purpose of the present invention is:
[0007] A key frame extraction method based on analytical sparse representation includes the following steps:
[0008] (1) Convert the video signal into a computer-recognizable internal matrix representation, where the rows of the matrix represent the image information of each frame of the video;
[0009] (2) Design an analytical sparse coding model based on minimax concave penalty (MCP) sparse regularization;
[0010] (3) The video matrix is used as the original signal and the transposed matrix of the video matrix is used as the parsing dictionary and introduced into the parsing sparse coding model;
[0011] (4) calculating a sparse coefficient matrix by analyzing the sparse coding algorithm, wherein the non-zero rows of the sparse coefficient matrix represent the index of the key frame;
[0012] (5) Select the corresponding key frame of the video according to the index of the key frame.
[0013] Furthermore, in step (3), the original video signal is introduced into the analytical sparse coding model, and the matrix product of the video matrix and its transposed matrix is the sparse coefficient. The analytical sparse coding problem is optimized, that is, the sparse coefficient matrix that satisfies the MCP sparse constraint is obtained. The constructed analytical sparse coding formula is as follows:
[0014]
[0015] Where S is the original video signal, S T is the transposed matrix of the video signal, and X is the sparse coefficient matrix. MCP (X) is the MCP sparse constraint, and its specific expression is as follows:
[0016]
[0017] Among them, ρ and λ are weight coefficients, which are generally greater than 0 and less than 1.
[0018] Furthermore, in step (4), a sparse coefficient matrix is calculated by analyzing the sparse coding algorithm, wherein the non-zero rows of the sparse coefficient matrix represent the index of the key frame; and the sparse coefficient matrix of step (3) is calculated by using FBP. The following formula is calculated and solved:
[0019]
[0020]
[0021] X is a sparse coefficient matrix where the non-zero rows represent the key frame indices in the video.
[0022] Furthermore, the step (5) of selecting the corresponding key frame of the video according to the index of the key frame uses the video key frame compression rate (Summary length) and F-measure as evaluation indicators, which is the ratio of the number of extracted key frames to the number of all video frames, and its unit is %. The smaller the value, the stronger the video compression level. Given a video, its key frame compression rate is:
[0023]
[0024] Where N select is the number of key frames extracted, N whole The total number of frames in the video.
[0025] At the same time, F-measure is used to measure the accuracy of the extracted key frames. The definition of F-measure is as follows:
[0026]
[0027] P and R are precision and recall respectively. The higher the F-measure is, the better the extracted key frames are, and the more accurately they can reflect the content of the original video.
[0028] The key frame extraction method based on analytical sparse coding proposed in the present invention has the following advantages over the traditional video key frame extraction method based on synthetic sparse coding:
[0029] (1) Aiming at the problem of strong redundancy of video signals, the present invention proposes a key frame extraction method based on analytical sparse coding, which will reduce the computational complexity of the key frame extraction algorithm and reduce the compression rate of the key frame extraction;
[0030] (2) The key frame extraction method proposed in the present invention can form a symmetric sparse coefficient matrix when a sparse coefficient matrix is used to represent the video key frame, which has higher structurality than the traditional synthetic sparse coding method. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] Figure 1 This is a schematic diagram of the key frame extraction model based on analytical sparse coding proposed in the present invention.
[0032] Figure 2 Schematic diagram of the optimization algorithm. DETAILED DESCRIPTION
[0033] The method of the present invention is described in detail below in conjunction with the accompanying drawings and embodiments.
[0034] like Figure 1 As shown, the key frame extraction method based on analytical sparse coding has the following process: first, the video is converted into a matrix representation, and each column of the video matrix is a signal of each frame of the video. Then the video matrix signal is input into the designed analytical sparse coding model. The model includes an analytical dictionary, an original signal and a sparse coefficient matrix. The original signal is the video matrix, the analytical dictionary is the transposed matrix of the video matrix, and the sparse coefficient matrix is the matrix product of the analytical dictionary and the original signal. In order to pay full attention to the sparse constraint of the sparse coefficient matrix, the present invention introduces MCP as a sparse constraint. The MCP constraint acts on the sparse coefficient matrix. Due to the symmetrical nature of the expression of the video signal by analytical sparse coding, the generated sparse coefficient matrix presents a phenomenon of non-zero rows and columns being symmetrical ("well" shaped distribution). Therefore, this model has better expression characteristics for structured video data.
[0035] Step 1: Convert the video into a matrix representation, where each column of the video matrix represents a signal of each frame of the video;
[0036] This dataset uses video signals. Each video consists of multiple video frames, and each video frame is an image containing video information.
[0037] Step 2: Design a parsing sparse coding model based on minimax concave penalty (MCP) sparse regularization;
[0038] In order to better select a few key frames, the model introduces the MCP sparse regularization constraint to impose sparse constraints on the generated sparse coefficient matrix. This constraint can make the sparse matrix have strong sparsity and can be solved by convex optimization method.
[0039] Step 3: Use the video matrix as the original signal and the transposed matrix of the video matrix as the parsing dictionary, and bring them into the parsing sparse coding model of step 2;
[0040] Use the original video signal to bring it into the analytical sparse coding model, the matrix product of the video matrix and its transposed matrix is the sparse coefficient, and the analytical sparse coding problem is optimized, that is, the sparse coefficient matrix that satisfies the MCP sparse constraint is obtained. The constructed analytical sparse coding formula is as follows:
[0041]
[0042] Where S is the original video signal, s T is the transposed matrix of the video signal, and X is the sparse coefficient matrix. MCP (X) is the MCP sparse constraint, and its specific expression is as follows:
[0043]
[0044] Among them, ρ and λ are weight coefficients, which are generally greater than 0 and less than 1.
[0045] Step 4: Calculate the sparse coefficient matrix by analyzing the sparse coding algorithm, such as Figure 2 As shown, the non-zero rows of the sparse coefficient matrix represent the indices of the key frames;
[0046] Use FBP to calculate the sparse coefficient matrix of step 3. Calculate and solve the following formula:
[0047]
[0048]
[0049] X is a sparse coefficient matrix where the non-zero rows represent the key frame indices in the video.
[0050] Step 5: Select the corresponding key frame of the video according to the key frame index obtained in step 4;
[0051] In order to test the effect of the key frames extracted in step 5, a test set is used to verify it. The present invention uses the video key frame compression rate (Summary length) and F-measure as evaluation indicators. The key frame compression rate is an objective standard for evaluating video processing. It is often used as a key frame measurement method. It is used for the ratio of the number of extracted key frames to the number of all video frames. Its unit is %. The smaller the value, the stronger the video compression level. Given a video, its key frame compression rate is
[0052]
[0053] Where N select is the number of key frames extracted, N whole The total number of frames in the video.
[0054] At the same time, we use F-measure to measure the accuracy of the extracted key frames. The definition of F-measure is as follows
[0055]
[0056] P and R are precision and recall respectively. The higher the F-measure is, the better the extracted key frames are, and the more accurately they can reflect the content of the original video.
Claims
1. A key frame extraction method based on analytical sparse representation, Its characteristics are: The steps include: (1) Convert the video signal into a computer-recognizable internal matrix representation, where the rows of the matrix represent the image information of each frame of the video; (2) Design an analytical sparse coding model based on minimax concave penalty (MCP) sparse regularization; (3) The video matrix is used as the original signal and the transposed matrix of the video matrix is used as the parsing dictionary and introduced into the parsing sparse coding model; (4) calculating a sparse coefficient matrix by analyzing the sparse coding algorithm, wherein the non-zero rows of the sparse coefficient matrix represent the index of the key frame; (5) Select the corresponding key frame of the video according to the index of the key frame; in: In step (3), the original video signal is introduced into the analytical sparse coding model, and the matrix product of the video matrix and its transposed matrix is the sparse coefficient. The analytical sparse coding problem is optimized, that is, the sparse coefficient matrix that satisfies the MCP sparse constraint is obtained. The analytical sparse coding formula constructed is as follows: Where S is the original video signal, S T is the transposed matrix of the video signal, X is the sparse coefficient matrix; J MCP (X) is the MCP sparse constraint, and its specific expression is as follows: Among them, ρ and λ are weight coefficients, which are generally greater than 0 and less than 1; In step (4), a sparse coefficient matrix is calculated by analyzing the sparse coding algorithm, wherein the non-zero rows of the sparse coefficient matrix represent the index of the key frame; the sparse coefficient matrix of step (3) is calculated by using FBP; and the following formula is calculated and solved: X is a sparse coefficient matrix where the non-zero rows represent the key frame indices in the video.
2. The key frame extraction method based on analytical sparse representation according to claim 1, Its characteristics are: Step (5) selects the corresponding video key frame according to the key frame index by using the video key frame compression ratio (Summarylength) and F-measure as evaluation indicators, which are the ratio of the number of extracted key frames to the number of all video frames. The unit is %, and the smaller the value, the stronger the video compression level. Given a video, its key frame compression ratio is: Where N select is the number of key frames extracted, N whole The total number of frames in the video; At the same time, F-measure is used to measure the accuracy of the extracted key frames; the definition of F-measure is as follows: P and R are precision and recall respectively. The higher the F-measure is, the better the extracted key frames are, and the more accurately they can reflect the content of the original video.
Citation Information
Patent Citations
Real-time compression and reconstruction method of Video-SAR (Synthetic Aperture Radar) image
CN105741333A
Video abstract selection method based on sparse kernel dictionary
CN107886054A
