Video watching point analysis method and device, equipment and medium

By converting the speech in the video into text and using a pre-trained language model to analyze the video content, it solves the problems of high labor cost and hardware cost in the existing video point of view analysis methods, and achieves a unified video content outline generation and efficient analysis process. .

CN118632089APending Publication Date: 2024-09-10GUANGZHOU SHIYUAN ELECTRONICS CO LTD +1
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202310213999.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-07
Publication Date
2024-09-10

AI Technical Summary

Technical Problem

Existing video point-of-view analysis methods have problems such as high labor costs, inconsistent generated video content outlines, increased hardware costs, and poor scene applicability.

Method used

By obtaining the speech in the video to be analyzed and converting it into text, obtaining the timestamp of each text sentence according to the ending punctuation mark, splicing the text sentences, and using the pre-trained language model for vector representation, predicting the starting and ending positions of the highlights , extract interesting clips and summaries, and use a single-layer linear network to generate video content outlines.

Benefits of technology

Automated analysis is realized, labor costs are saved, the generated video content outline is unified, hardware costs are reduced, and scene applicability and analysis efficiency are improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118632089A
    Figure CN118632089A
Patent Text Reader

Abstract

The invention belongs to the technical field of video analysis, and discloses a video watching point analysis method and device, equipment and a medium, and the method comprises the steps: converting voice in a to-be-analyzed video into characters, and obtaining text content; splicing the text statements according to the timestamps; sequentially sliding the last character of the ith spliced statement forwards by a second preset length to obtain an (i + 1) th spliced statement; inputting each spliced statement into a pre-training language model, and performing vector representation on the spliced statements; predicting a viewing point starting position and a viewing point ending position according to the splicing vector, and extracting a viewing point fragment according to the viewing point starting position and the viewing point ending position; extracting a viewpoint abstract of the viewpoint fragment; and predicting each character in the viewpoint abstract by using a single-layer linear network to obtain a video content outline. According to the method, the labor cost can be saved through automatic calculation, a unified analysis standard is provided, and the generated video content outline can be unified.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of video analysis technology, for example, to a video highlight analysis method, device, equipment and medium. Background Art

[0002] The number of videos on the Internet is currently growing explosively, and people's demand for quickly browsing the specific content of videos is increasing. In order to help users quickly understand the video content and improve the user experience, video highlights extraction is needed. Video highlights extraction includes extracting the start time of the video highlights and the structured summary of the highlights segment. There are two existing methods for analyzing video highlights: the first is the manual analysis method, which obtains the location of the highlights segment by observing and slicing the video frame by frame by the video uploader, extracts the start time of the segment, and summarizes the segment to obtain the highlights summary. The manual analysis method consumes a large amount of labor costs, and different people have different understandings of the video highlights, which will make the generated video content outline uneven. The second method is the device acquisition assisted analysis method, which analyzes user behavior by adding terminal acquisition devices to obtain video highlights information. The device acquisition assisted analysis method requires the use of terminal acquisition devices, which increases hardware costs, has poor scene applicability, and requires multiple users to be analyzed to obtain unified results.

[0003] In summary, existing video highlight analysis methods have the problems of high labor costs, uneven generated video content outlines, increased hardware costs, and / or poor scene applicability. Summary of the invention

[0004] The purpose of this application is to provide a video highlight analysis method, device, equipment and medium, which can solve the problems of existing video highlight analysis methods, such as high labor costs, uneven generated video content outlines, increased hardware costs, and / or poor scene applicability. To achieve the above purpose, this application provides a video highlight analysis method, including:

[0005] Obtaining a video to be analyzed, converting speech in the video to be analyzed into text to obtain text content;

[0006] Obtaining a timestamp corresponding to the first character of each text sentence in the text content according to the end punctuation mark, and concatenating the text sentences according to the timestamp to obtain a concatenated text; the length of the concatenated sentences of the concatenated text is a first preset length;

[0007] Sequentially slide the last character of the i-th concatenated sentence forward by a second preset length to obtain the i+1-th concatenated sentence; wherein i≥1;

[0008] Inputting each of the concatenated sentences into a pre-trained language model, performing vector representation on the concatenated sentences, and obtaining a concatenated vector;

[0009] Predicting a starting position and an ending position of a highlight according to the splicing vector, and extracting a highlight segment according to the starting position and the ending position of the highlight;

[0010] Extracting a highlight summary of the highlight segment;

[0011] A single-layer linear network is used to predict each character in the highlight summary to obtain the video content outline.

[0012] Preferably, the step of sequentially sliding the last character of the i-th concatenated sentence forward by a second preset length to obtain the i+1-th concatenated sentence comprises:

[0013] Taking the first character of the concatenated text as the starting point, intercepting the first preset length of characters to obtain the first concatenated sentence;

[0014] Slide the last character of the first concatenated sentence forward by the second preset length to obtain a second concatenated sentence;

[0015] Determine whether the last character of the i-th concatenated sentence is the last character of the concatenated text; if not, slide the last character of the i-th concatenated sentence forward by the second preset length to obtain the i+1-th concatenated sentence.

[0016] Preferably, predicting the starting position and the ending position of the viewing point according to the splicing vector includes:

[0017] Input the concatenated vector into the softmax layer of the single-layer pointer network for mapping to obtain a mapping vector;

[0018] Splitting the mapping vector to obtain a starting position vector and an ending position vector;

[0019] The starting position of the viewing point is determined according to the starting position vector, and the ending position of the viewing point is determined according to the ending position vector.

[0020] Preferably, the using a single-layer linear network to predict each character in the highlight summary to obtain a video content outline includes:

[0021] Inputting the vector corresponding to each character in the highlight summary into the sigmoid layer of the single-layer linear network, classifying each character in the highlight summary to obtain a first classification label and a second classification label;

[0022] Delete the characters corresponding to the second classification label to obtain the video content outline.

[0023] Preferably, obtaining the timestamp corresponding to the first character of each text sentence in the text content according to the end punctuation mark includes:

[0024] Counting the ending punctuation marks in the text content;

[0025] The timestamp corresponding to the first character of each of the text sentences is obtained according to the end punctuation mark.

[0026] Preferably, converting the speech in the video to be analyzed into text to obtain text content includes:

[0027] Acquire the speech in the video to be analyzed;

[0028] The ASR speech recognition tool is used to convert the speech in the video to be analyzed into text to obtain the text content.

[0029] Preferably, extracting the highlight summary of the highlight segment includes:

[0030] The highlight segment is input into the pre-trained language model, and vector representation is performed on the highlight segment to obtain the highlight summary.

[0031] The present application provides a video highlight analysis device, comprising:

[0032] A speech-to-text conversion module is used to obtain a video to be analyzed, convert the speech in the video to be analyzed into text, and obtain text content;

[0033] A text sentence splicing module, used for obtaining the timestamp corresponding to the first character of each text sentence in the text content according to the end punctuation mark, splicing each of the text sentences according to the timestamp to obtain a spliced ​​text; the length of the spliced ​​sentence of the spliced ​​text is a first preset length;

[0034] A concatenated sentence sliding module, used for sequentially sliding the last character of the i-th concatenated sentence forward by a second preset length to obtain the i+1-th concatenated sentence; wherein i≥1;

[0035] A first vector representation module, used for inputting each of the concatenated sentences into a pre-trained language model, performing vector representation on the concatenated sentences, and obtaining a concatenated vector;

[0036] A highlight segment extraction module is used to predict a highlight start position and a highlight end position according to the splicing vector, and extract a highlight segment according to the highlight start position and the highlight end position;

[0037] A highlight summary extraction module, used to extract a highlight summary of the highlight segment;

[0038] The character prediction module is used to predict each character in the highlight summary using a single-layer linear network to obtain a video content outline.

[0039] The present application also provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, it implements any of the above-mentioned video highlight analysis methods and / or any of the above-mentioned steps of the video highlight analysis method.

[0040] The present application also provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the method for analyzing video highlights described in any one of the above items and / or the steps of the method for analyzing video highlights described in any one of the above items are implemented.

[0041] A video highlight analysis method of the present application includes obtaining a video to be analyzed, converting the speech in the video to be analyzed into text, and obtaining text content. Obtain the timestamp corresponding to the first character of each text sentence in the text content, splice each text sentence according to the timestamp, and obtain a spliced ​​text; the length of the spliced ​​sentence of the spliced ​​text is a first preset length; slide the last character of the i-th spliced ​​sentence forward by a second preset length in sequence to obtain the i+1-th spliced ​​sentence; wherein i≥1. Input each of the spliced ​​sentences into a pre-trained language model, and perform vector representation on the spliced ​​sentence to obtain a splicing vector. The spliced ​​text is slidably segmented by a fixed step sliding method, so that the spliced ​​text can be encoded by the pre-trained language model, and the text that exceeds the length limit can be prevented from being cut, thereby preventing the loss of a large amount of text information. Predict the starting position and the ending position of the highlight according to the splicing vector, and extract the highlight segment according to the starting position and the ending position of the highlight. Extract the highlight summary of the highlight segment, and use a single-layer linear network to predict each character in the highlight summary to obtain the video content outline. Automatic calculation can save labor costs, and with a unified analysis standard, the generated video content outline can be unified. In addition, the above-mentioned video highlight analysis method does not rely on external acquisition equipment, can save hardware costs, can reduce the error caused by equipment acquisition, and has stronger scene applicability. It only needs to analyze the video content once to obtain the video content outline, which has high video analysis efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] Figure 1 A schematic diagram of a flow chart of a video highlight analysis method according to an embodiment;

[0043] Figure 2 A schematic diagram of a flow chart of character sliding on a concatenated sentence according to an embodiment;

[0044] Figure 3 A schematic diagram of a process for predicting a starting position and an ending position of a viewing point according to an embodiment;

[0045] Figure 4 A schematic diagram of a process of predicting characters of a highlight summary according to an embodiment;

[0046] Figure 5 A schematic block diagram of the structure of a video highlight analysis device according to an embodiment;

[0047] Figure 6 The present invention is a schematic block diagram of the structure of a computer device according to an embodiment.

[0048] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0049] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0050] It will be understood by those skilled in the art that, unless expressly stated, the singular forms "a", "an", "above", and "the" used herein may also include plural forms. It should be further understood that the term "comprising" used in the specification of the present invention refers to the presence of features, integers, steps, operations, elements, modules, and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, modules, components, and / or groups thereof. It should be understood that when we refer to an element as being "connected" or "coupled" to another element, it may be directly connected or coupled to the other element, or there may be an intermediate element. In addition, the "connection" or "coupling" used herein may include wireless connection or wireless coupling. The term "and / or" used herein includes all or any module and all combinations of one or more associated listed items.

[0051] It will be understood by those skilled in the art that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as generally understood by those skilled in the art in the art to which the present invention belongs. It should also be understood that terms such as those defined in general dictionaries should be understood to have meanings consistent with the meanings in the context of the prior art, and will not be interpreted with idealized or overly formal meanings unless specifically defined as herein.

[0052] In one embodiment, referring to Figure 1, is a flow chart of a video highlight analysis method disclosed in the present application, the method comprising:

[0053] S1: Obtain a video to be analyzed, convert the speech in the video to be analyzed into text, and obtain text content.

[0054] Acquire the speech in the video to be analyzed;

[0055] The ASR speech recognition tool is used to convert the speech in the video to be analyzed into text to obtain the text content.

[0056] The video to be analyzed includes image data and voice data. The video format of the video to be analyzed includes one or more of MPEG format, AVI format, ASF format, MOV format and WMV format, which is not limited here.

[0057] The ASR speech recognition tool can be Tencent Cloud ASR or Baidu Cloud ASR, and there is no limitation here.

[0058] S2: Obtain the timestamp corresponding to the first character of each text sentence in the text content according to the end punctuation mark, and concatenate the text sentences according to the timestamp to obtain a concatenated text; the length of the concatenated sentence of the concatenated text is a first preset length.

[0059] Counting the ending punctuation marks in the text content;

[0060] The timestamp corresponding to the first character of each of the text sentences is obtained according to the end punctuation mark.

[0061] The ending punctuation marks include period, question mark and exclamation mark. The first character is the character at the beginning of each text sentence. The timestamp corresponding to the first character is calculated in seconds.

[0062] For example, the text content is (1) Hi, everyone, welcome to watch this episode of horoscopes, (2) I am the host, Mr. Gu. (3) Today we will talk about the three horoscope months in (4) of the 12 horoscopes. The first character of sentence (1) corresponds to the first second, the first character of sentence (2) corresponds to the fourth second, the first character of sentence (3) corresponds to the sixth second, and the first character of sentence (4) corresponds to the eighth second. By splicing the text sentences according to the timestamps, the resulting spliced ​​text is (1) Hi, everyone, welcome to watch this episode of horoscopes, I am the host, Mr. Gu. (2) Today we will talk about the three horoscope months in the 12 horoscopes.

[0063] The first preset length represents the maximum input length of the pre-trained language model. The length of the concatenated text is relatively long, so the concatenated text needs to be divided. The first preset length can be 512 or other lengths.

[0064] S3: Slide the last character of the i-th concatenated sentence forward in sequence by a second preset length to obtain the i+1-th concatenated sentence; wherein i≥1.

[0065] The second preset length is fixed and can prevent the spliced ​​text from being split. Slide the last character of the first spliced ​​sentence forward by the second preset length to obtain the second spliced ​​sentence; slide the last character of the second spliced ​​sentence forward by the second preset length to obtain the third spliced ​​sentence. Slide the last character of the i-1th spliced ​​sentence forward by the second preset length to obtain the i-th spliced ​​sentence. When the last character of the i-th spliced ​​sentence is the last character of the spliced ​​text, stop the above process of sliding the last character of the spliced ​​sentence forward.

[0066] Preferably, the first preset length is set to 512, and the second preset length is set to 127.

[0067] For example, when the concatenated text contains 10 characters in total, the concatenated text is represented by T=t1, t2, t3, t4, t5, t6, t7, t8, t9, t 10 The first preset length is 5, and the second preset length is 1. Starting from the first character t1 of the concatenated text, intercept the second character to the fifth character according to the first preset length, and obtain T1 = t1, t2, t3, t4, t5. Slide the last character of T1 forward by 1 character, intercept the first preset length characters, and obtain T2 = t4, t5, t6, t7, t8. Slide the last character of T2 forward by 1 character, and intercept from t7 to the last character t of the concatenated text. 10 , we get T3 = t7, t8, t9, t 10 .

[0068] S4: Input each of the concatenated sentences into a pre-trained language model, perform vector representation on the concatenated sentences, and obtain a concatenated vector.

[0069] The pre-trained language model may be a LEBERT model or other models, which are not limited here. The embodiment of the present application takes the pre-trained language model as an example of a LEBERT model optimized for Chinese.

[0070] The LEBERT model uses the entire vocabulary of Chinese sequence labels to enhance the BERT model. External vocabulary information is directly integrated into the BERT model through a full vocabulary adaptation layer. The LEBERT model helps to integrate deep vocabulary knowledge in the lower layers of the BERT model.

[0071] The LEBERT model has two versions, namely the base version and the large version. The base version has 12 layers, a hidden layer size of 768, and a multi-head attention mechanism with 12 heads; the large version has 24 layers, a hidden layer size of 1024, and a multi-head attention mechanism with 16 heads. This application embodiment takes the base version of the LEBERT model as an example.

[0072] The calculation formula of the splicing vector is as follows:

[0073] E i =M(T i );

[0074] Among them, T i represents the i-th concatenated sentence, the first preset length of the i-th concatenated sentence is 512, M represents the base version of the LEBERT model, E i represents the i-th splicing vector, and the dimension of the i-th splicing vector is 512×768.

[0075] S5: predicting a starting position and an ending position of a highlight according to the splicing vector, and extracting a highlight segment according to the starting position and the ending position of the highlight.

[0076] Input the concatenated vector into the softmax layer of the single-layer pointer network for mapping to obtain a mapping vector;

[0077] Splitting the mapping vector to obtain a starting position vector and an ending position vector;

[0078] The starting position of the viewing point is determined according to the starting position vector, and the ending position of the viewing point is determined according to the ending position vector.

[0079] The segment between the highlight start position and the highlight end position is the highlight segment.

[0080] S6: extracting a highlight summary of the highlight segment.

[0081] The highlight segment is input into the pre-trained language model, and vector representation is performed on the highlight segment to obtain the highlight summary.

[0082] The calculation formula of the highlight summary is as follows:

[0083] S i =M(Vi );

[0084] Among them, S i is the i-th highlight summary, M represents the base version of the LEBERT model, V i Represents the i-th highlight segment.

[0085] S7: Use a single-layer linear network to predict each character in the highlight summary to obtain a video content outline.

[0086] Inputting the vector corresponding to each character in the highlight summary into the sigmoid layer of the single-layer linear network, classifying each character in the highlight summary to obtain a first classification label and a second classification label;

[0087] Delete the characters corresponding to the second classification label to obtain the video content outline.

[0088] The first classification label corresponds to the characters that need to be retained, and the second classification label corresponds to the characters that need to be deleted.

[0089] A video highlight analysis method according to an embodiment of the present application includes obtaining a video to be analyzed, converting the speech in the video to be analyzed into text, and obtaining text content. Obtain the timestamp corresponding to the first character of each text sentence in the text content, and splice each text sentence according to the timestamp to obtain a spliced ​​text; the length of the spliced ​​sentence of the spliced ​​text is a first preset length. Slide the last character of the i-th spliced ​​sentence forward by a second preset length in sequence to obtain the i+1-th spliced ​​sentence; wherein i≥1. Input each of the spliced ​​sentences into a pre-trained language model, and represent the spliced ​​sentence by a vector to obtain a splicing vector. The spliced ​​text is slidably segmented by a fixed step sliding method, so that the spliced ​​text can be encoded by the pre-trained language model, and the text that exceeds the length limit can be prevented from being cut, thereby preventing the loss of a large amount of text information. Predict the starting position and the ending position of the highlight according to the splicing vector, and extract the highlight segment according to the starting position and the ending position of the highlight. Extract the highlight summary of the highlight segment, and use a single-layer linear network to predict each character in the highlight summary to obtain the video content outline. Automatic calculation can save labor costs, and with a unified analysis standard, the generated video content outline can be unified. In addition, the above-mentioned video highlight analysis method does not rely on external acquisition equipment, can save hardware costs, can reduce the error caused by equipment acquisition, and has stronger scene applicability. It only needs to analyze the video content once to obtain the video content outline, which has high video analysis efficiency.

[0090] In one embodiment, referring to Figure 2, the step of sequentially sliding the last character of the i-th concatenated sentence forward by a second preset length to obtain the i+1-th concatenated sentence comprises:

[0091] S31: Taking the first character of the concatenated text as the starting point, intercepting the first preset length of characters to obtain the first concatenated sentence.

[0092] Exemplarily, the first character of the concatenated text is t1, the first preset length is 5, and 4 characters are cut backward from t1 so that the length of the first concatenated sentence is the first preset length. Then the first concatenated sentence T1 = t1, t2, t3, t4, t5.

[0093] S32: Slide the last character of the first concatenated sentence forward by the second preset length to obtain a second concatenated sentence.

[0094] For example, the second preset length is 1, and the last character t5 of the first concatenated sentence T1 is slid forward by 1 character to obtain t4. Taking t4 as the starting point, 4 characters are intercepted backward, so that the length of the second concatenated sentence is the first preset length, and the second concatenated sentence T2 = t4, t5, t6, t7, t8.

[0095] S33: Determine whether the last character of the i-th concatenated sentence is the last character of the concatenated text; if not, slide the last character of the i-th concatenated sentence forward by the second preset length to obtain the i+1-th concatenated sentence.

[0096] When the last character of the i-th concatenated sentence is the last character of the concatenated text, it indicates that the concatenated text is divided into the first concatenated sentence to the i-th concatenated sentence.

[0097] When the last character of the i-th concatenated sentence is not the last character of the concatenated text, it means that the process of dividing the concatenated text has not been completed. The last character of the i-th concatenated sentence is slid forward by a second preset length to obtain the i+1-th concatenated sentence, and it is determined whether the last character of the i+1-th concatenated sentence is the last character of the concatenated text.

[0098] The concatenated text is segmented by sliding with a fixed second preset length to obtain a concatenated sentence. The concatenated sentence can be encoded by a pre-trained language model, which can prevent the concatenated text that exceeds the length limit from being cut, thereby preventing the loss of a large amount of text information.

[0099] As described above, the last character of the i-th concatenated sentence is slid forward by the second preset length in sequence to obtain the i+1-th concatenated sentence, including taking the first character of the concatenated text as the starting point, intercepting the first preset length of characters, and obtaining the first concatenated sentence. The last character of the first concatenated sentence is slid forward by the second preset length to obtain the second concatenated sentence. It is determined whether the last character of the i-th concatenated sentence is the last character of the concatenated text. If not, the last character of the i-th concatenated sentence is slid forward by the second preset length to obtain the i+1-th concatenated sentence. The concatenated text is slidingly segmented by a fixed second preset length sliding method to obtain a concatenated sentence. The concatenated sentence can be encoded by a pre-trained language model, which can prevent the cutting of the concatenated text that exceeds the length limit, thereby preventing the loss of a large amount of text information.

[0100] In one embodiment, referring to Figure 3 , the predicting the starting position and the ending position of the viewing point according to the splicing vector includes:

[0101] S51: Input the concatenated vector into the softmax layer of the single-layer pointer network for mapping to obtain a mapping vector.

[0102] When the first preset length is 512, the dimension of the concatenated vector is 512×768, and the concatenated vector is mapped through the softmax layer of the single-layer pointer network to obtain a mapping vector, and the dimension of the mapping vector is 512×2.

[0103] The formula for mapping the splicing vector is as follows:

[0104] D i =softmax(W e E i +b e );

[0105] Among them, D i is the i-th mapping vector, softmax represents the softmax mapping function, W e represents the weight matrix, b e represents the bias matrix, E i represents the i-th concatenation vector.

[0106] S52: Split the mapping vector to obtain a starting position vector and an ending position vector.

[0107] For the i-th mapping vector D i Split and get the i-th starting position vector and the i-th terminal position vector

[0108] S53: Determine the starting position of the viewing point according to the starting position vector, and determine the ending position of the viewing point according to the ending position vector.

[0109] The i-th starting position vector and the i-th terminal position vector The segment between is the i-th highlight segment.

[0110] As described above, predicting the starting position and the ending position of the viewing point according to the splicing vector includes inputting the splicing vector into the softmax layer of the single-layer pointer network for mapping to obtain a mapping vector. The mapping vector is split to obtain a starting position vector and an ending position vector. The starting position of the viewing point is determined according to the starting position vector, and the ending position of the viewing point is determined according to the ending position vector. The i-th starting position vector and the i-th terminal position vector The segment between is the i-th highlight segment.

[0111] In one embodiment, referring to Figure 4 , the single-layer linear network is used to predict each character in the highlight summary to obtain the video content outline, including:

[0112] S71: Input the vector corresponding to each character in the highlight summary into the sigmoid layer of the single-layer linear network, classify each character in the highlight summary, and obtain a first classification label and a second classification label.

[0113] For example, the summary of the i-th highlight is "Many Pinyin input software have an associative function", where "Pinyin input software", "associated" and "function" belong to the first classification label, and "many", "all have" and "of" belong to the second classification label.

[0114] S72: Delete the characters corresponding to the second classification label to obtain the video content outline.

[0115] Delete the characters corresponding to the second category label and retain the characters corresponding to the first category label, and the resulting video content outline is "Pinyin input software association function".

[0116] All the highlights summaries are processed in sequence according to the above steps S71-S72 to obtain the outline of all video contents of the video to be analyzed.

[0117] As described above, a single-layer linear network is used to predict each character in the highlight summary to obtain a video content outline, including inputting the vector corresponding to each character in the highlight summary into the sigmoid layer of the single-layer linear network, classifying each character of the highlight summary, and obtaining a first classification label and a second classification label. The characters corresponding to the second classification label are deleted to obtain a video content outline. All highlight summaries are classified in turn, and the characters corresponding to the second classification label are deleted, so that all video content outlines of the video to be analyzed can be obtained.

[0118] Reference Figure 5 , is a schematic block diagram of a video highlight analysis device disclosed in the present application, the device comprising:

[0119] The speech-to-text conversion module 10 is used to obtain a video to be analyzed, convert the speech in the video to be analyzed into text, and obtain text content;

[0120] A text sentence concatenation module 20 is used to obtain a timestamp corresponding to the first character of each text sentence in the text content according to the end punctuation mark, and concatenate each of the text sentences according to the timestamp to obtain a concatenated text; the length of the concatenated sentences of the concatenated text is a first preset length;

[0121] The concatenated sentence sliding module 30 is used to sequentially slide the last character of the i-th concatenated sentence forward by a second preset length to obtain the i+1-th concatenated sentence; wherein i≥1;

[0122] A first vector representation module 40, configured to input each of the concatenated sentences into a pre-trained language model, perform vector representation on the concatenated sentences, and obtain a concatenated vector;

[0123] A highlight segment extraction module 50 is used to predict a highlight start position and a highlight end position according to the splicing vector, and extract a highlight segment according to the highlight start position and the highlight end position;

[0124] A highlight summary extraction module 60 is used to extract a highlight summary of the highlight segment;

[0125] The character prediction module 70 is used to predict each character in the highlight summary using a single-layer linear network to obtain a video content outline.

[0126] As described above, the video highlight analysis device can implement the video highlight analysis method.

[0127] In one embodiment, the concatenated sentence sliding module 30 further includes:

[0128] A first interception unit, used for intercepting the first preset length of characters from the first character of the concatenated text as a starting point to obtain the first concatenated sentence;

[0129] A second interception unit, used for sliding the last character of the first concatenated sentence forward by the second preset length to obtain a second concatenated sentence;

[0130] The concatenated sentence determining unit is used to determine whether the last character of the i-th concatenated sentence is the last character of the concatenated text. If not, the last character of the i-th concatenated sentence is slid forward by the second preset length to obtain the i+1-th concatenated sentence.

[0131] In one embodiment, the highlight segment extraction module 50 further includes:

[0132] A concatenated vector mapping unit, used for inputting the concatenated vector into a softmax layer of a single-layer pointer network for mapping to obtain a mapping vector;

[0133] A mapping vector splitting unit, used for splitting the mapping vector to obtain a starting position vector and an ending position vector;

[0134] A position determination unit is used to determine the starting position of the viewing point according to the starting position vector, and to determine the ending position of the viewing point according to the ending position vector.

[0135] In one embodiment, the character prediction module 70 further includes:

[0136] A character classification unit, used for inputting the vector corresponding to each character in the highlight summary into the sigmoid layer of the single-layer linear network, classifying each character in the highlight summary, and obtaining a first classification label and a second classification label;

[0137] A character deletion unit is used to delete the characters corresponding to the second classification label to obtain the video content outline.

[0138] In one embodiment, the text sentence splicing module 20 further includes:

[0139] An end punctuation mark counting unit, used for counting the end punctuation marks in the text content;

[0140] A timestamp acquisition unit is used to acquire the timestamp corresponding to the first character of each of the text sentences according to the end punctuation mark.

[0141] In one embodiment, the speech-to-text conversion module 10 further includes:

[0142] A voice acquisition unit, used to acquire the voice in the video to be analyzed;

[0143] The speech-to-text unit is used to convert the speech in the video to be analyzed into text using an ASR speech recognition tool to obtain the text content.

[0144] In one embodiment, the highlight summary extraction module 60 further includes:

[0145] A highlight summary extraction unit is used to input the highlight segment into the pre-trained language model, perform vector representation on the highlight segment, and obtain the highlight summary.

[0146] Reference Figure 6 In an embodiment of the present application, a computer device is also provided, the internal structure of which can be as follows: Figure 6 As shown. The computer device includes a processor, a memory, a network interface and a database connected through a system bus. Among them, the processor designed for the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating device, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store splicing vectors, etc. The network interface of the computer device is used to communicate with an external terminal through a network connection. Furthermore, the above-mentioned computer device can also be provided with an input device and a display screen, etc. When the computer program is executed by the processor, it implements a video highlight analysis method, including the following steps: obtaining a video to be analyzed, converting the speech in the video to be analyzed into text to obtain text content; obtaining the timestamp corresponding to the first character of each text sentence in the text content according to the end punctuation mark, and splicing each text sentence according to the timestamp to obtain a spliced ​​text; the length of the spliced ​​sentence of the spliced ​​text is a first preset length; sliding the last character of the i-th spliced ​​sentence forward by a second preset length in sequence to obtain the i+1-th spliced ​​sentence; wherein, i≥1; inputting each of the spliced ​​sentences into a pre-trained language model, performing vector representation on the spliced ​​sentences, and obtaining a splicing vector; predicting the starting position and the ending position of the highlights according to the splicing vector, and extracting the highlights segment according to the starting position and the ending position of the highlights; extracting the highlights summary of the highlights segment; using a single-layer linear network to predict each character in the highlights summary to obtain a video content outline. Those skilled in the art can understand that Figure 6 The structure shown in is merely a block diagram of a portion of the structure related to the present application solution and does not constitute a limitation on the computer device to which the present application solution is applied.

[0147] An embodiment of the present application also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, a video highlight analysis method is implemented, including the following steps: obtaining a video to be analyzed, converting the voice in the video to be analyzed into text, and obtaining text content; obtaining the timestamp corresponding to the first character of each text sentence in the text content according to the end punctuation mark, and splicing each text sentence according to the timestamp to obtain a spliced ​​text; the length of the spliced ​​sentence of the spliced ​​text is a first preset length; sliding the last character of the i-th spliced ​​sentence forward by a second preset length in sequence to obtain the i+1-th spliced ​​sentence; wherein i≥1; inputting each of the spliced ​​sentences into a pre-trained language model, performing vector representation on the spliced ​​sentences, and obtaining a splicing vector; predicting a starting position and an ending position of a highlight according to the splicing vector, and extracting a highlight segment according to the starting position and the ending position of the highlight; extracting a highlight summary of the highlight segment; using a single-layer linear network to predict each character in the highlight summary to obtain a video content outline.

[0148] It can be understood that the computer-readable storage medium in this embodiment can be a volatile readable storage medium or a non-volatile readable storage medium.

[0149] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media provided in this application and used in the embodiments may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (SSRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.

[0150] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, device, article or method including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, device, article or method. In the absence of further restrictions, an element defined by the sentence "includes a ..." does not exclude the presence of other identical elements in the process, device, article or method including the element.

[0151] The above description is only a preferred embodiment of the present invention, and does not limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made by using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.

Claims

1. A video highlight analysis method, characterized in that: include: Obtaining a video to be analyzed, converting speech in the video to be analyzed into text, and obtaining text content; Obtaining a timestamp corresponding to the first character of each text sentence in the text content according to the end punctuation mark, and concatenating the text sentences according to the timestamp to obtain a concatenated text; the length of the concatenated sentences of the concatenated text is a first preset length; Sequentially slide the last character of the i-th concatenated sentence forward by a second preset length to obtain the i+1-th concatenated sentence; wherein i≥1; Inputting each of the concatenated sentences into a pre-trained language model, performing vector representation on the concatenated sentences, and obtaining a concatenated vector; Predicting a starting position and an ending position of a highlight according to the splicing vector, and extracting a highlight segment according to the starting position and the ending position of the highlight; Extracting a highlight summary of the highlight segment; A single-layer linear network is used to predict each character in the highlight summary to obtain the video content outline.

2. The video highlight analysis method according to claim 1, characterized in that: The step of sequentially sliding the last character of the i-th concatenated sentence forward by a second preset length to obtain the i+1-th concatenated sentence comprises: Taking the first character of the concatenated text as the starting point, intercepting the first preset length of characters to obtain the first concatenated sentence; Slide the last character of the first concatenated sentence forward by the second preset length to obtain a second concatenated sentence; Determine whether the last character of the i-th concatenated sentence is the last character of the concatenated text; if not, slide the last character of the i-th concatenated sentence forward by the second preset length to obtain the i+1-th concatenated sentence.

3. The video highlight analysis method according to claim 1, characterized in that: The predicting the starting position and the ending position of the viewing point according to the splicing vector includes: Input the concatenated vector into the softmax layer of the single-layer pointer network for mapping to obtain a mapping vector; Splitting the mapping vector to obtain a starting position vector and an ending position vector; The starting position of the viewing point is determined according to the starting position vector, and the ending position of the viewing point is determined according to the ending position vector.

4. The video highlight analysis method according to claim 1, characterized in that: The single-layer linear network is used to predict each character in the highlight summary to obtain the video content outline, including: Inputting the vector corresponding to each character in the highlight summary into the sigmoid layer of the single-layer linear network, classifying each character in the highlight summary to obtain a first classification label and a second classification label; Delete the characters corresponding to the second classification label to obtain the video content outline.

5. The video highlight analysis method according to claim 1, characterized in that: The obtaining, according to the end punctuation mark, a timestamp corresponding to the first character of each text sentence in the text content includes: Counting the ending punctuation marks in the text content; The timestamp corresponding to the first character of each of the text sentences is obtained according to the end punctuation mark.

6. The video highlight analysis method according to claim 1, characterized in that: The step of converting the speech in the video to be analyzed into text to obtain text content includes: Acquire the speech in the video to be analyzed; The ASR speech recognition tool is used to convert the speech in the video to be analyzed into text to obtain the text content.

7. The video highlight analysis method according to claim 1, characterized in that: The step of extracting a highlight summary of the highlight segment includes: The highlight segment is input into the pre-trained language model, and vector representation is performed on the highlight segment to obtain the highlight summary.

8. A video highlight analysis device, characterized in that: include: A speech-to-text conversion module is used to obtain a video to be analyzed, convert the speech in the video to be analyzed into text, and obtain text content; A text sentence splicing module, used for obtaining the timestamp corresponding to the first character of each text sentence in the text content according to the end punctuation mark, splicing each of the text sentences according to the timestamp to obtain a spliced ​​text; the length of the spliced ​​sentence of the spliced ​​text is a first preset length; A concatenated sentence sliding module, used for sequentially sliding the last character of the i-th concatenated sentence forward by a second preset length to obtain the i+1-th concatenated sentence; wherein i≥1; A first vector representation module, used for inputting each of the concatenated sentences into a pre-trained language model, performing vector representation on the concatenated sentences, and obtaining a concatenated vector; A highlight segment extraction module is used to predict a highlight start position and a highlight end position according to the splicing vector, and extract a highlight segment according to the highlight start position and the highlight end position; A highlight summary extraction module, used to extract a highlight summary of the highlight segment; The character prediction module is used to predict each character in the highlight summary using a single-layer linear network to obtain a video content outline.

9. A computer device comprising a memory and a processor, wherein a computer program is stored in the memory, wherein: When the processor executes the computer program, the steps of the video highlight analysis method according to any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the video highlight analysis method according to any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • BERT-based text correction method and device after speech recognition, terminal and medium

    CN111310441A

  • Video dotting method and device

    CN112804580A

  • Text classification method and device

    CN113626603A

  • News video splitting method and system

    CN114051154A

  • Video abstract extraction method and system

    CN114547370A