Classroom live-recording video slicing method and system

Through audio analysis and classification labeling of classroom recorded videos, the problem of the inability of existing technology to specifically mark video slices is solved, enabling fine-grained slicing of videos and efficient acquisition of teaching information, improving the learning and teaching experience.

CN118736460APending Publication Date: 2024-10-01BEIJING BOHUI DATA TECH CO LTD
View PDF 0 Cites 5 Cited by

Patent Information

Application Number
CN202410786706.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-18
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

The existing technology cannot specifically mark each slice of the classroom video, resulting in low viewing efficiency and low efficiency in obtaining teaching information.

Method used

By obtaining the classroom recording video for preprocessing, extracting audio data and conducting speech analysis, identifying speaker identifiers and slices, performing first-level classification, second-level classification and third-level classification, marking teaching activities and blank activities, and classifying them according to these classifications. Video is sliced.

Benefits of technology

It realizes fine-grained slice marking of classroom videos, improves viewing efficiency and the overall experience of obtaining teaching information, and supports more refined learning and teaching evaluation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118736460A_ABST
    Figure CN118736460A_ABST
Patent Text Reader

Abstract

The invention provides a slicing method and system for a class live-recorded video, and the method comprises the steps: obtaining the class live-recorded video, and carrying out the preprocessing of the class live-recorded video, and obtaining analysis data; according to the analysis data, performing first-level classification, second-level classification and third-level classification on each section in the classroom live-recording video; and adding the first-level classification, the second-level classification and the third-level classification to corresponding slices of the class live-recorded video, and slicing the class live-recorded video according to the first-level classification, the second-level classification and the third-level classification to obtain target slices. According to the method, the indexing system for the class live-recorded video is introduced for slicing, so that the problem that each section of the class video cannot be specifically marked in the prior art is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of smart education technology, and in particular to a slicing method and system for classroom recording videos. Background Art

[0002] With the popularization of smart classrooms, classroom videos are widely used in online learning, teaching review, teacher training, and teaching evaluation information platform systems. It has become a normal practice to obtain classroom teaching information by watching classroom videos. However, for classroom videos, there are many videos for each course in a semester, and 20 to 30 videos are very common. Moreover, a single video is long, ranging from 40 to 50 minutes to one or two hours. In addition, classroom videos are different from MOOC videos, and are usually not divided into sections in the platform system. In this case, the means of efficient viewing are limited, and they mainly rely on sliding playback and double-speed playback. At the same time, classroom videos are not textbooks after all. They have their own content organization methods, which not only reflect the characteristics of classroom teaching, but also reflect the personal style of teachers. This makes classroom videos have a certain liveness and diversity in content. The limitations of viewing methods and the uniqueness of content will affect the viewing efficiency of classroom videos in the platform system, and thus affect the overall experience of users in obtaining classroom teaching information.

[0003] Existing platform systems mostly present classroom videos at the file granularity, and users can only watch them at the file granularity. If technical means, especially artificial intelligence technology, can be used to further deconstruct classroom videos, convert them from unstructured videos into structured video slices, and form structured indexing with smaller information granularity, the platform system will be able to present classroom videos at a smaller granularity. Through this structured video slicing, users can watch at a more detailed level, which can not only greatly improve viewing efficiency, but also significantly improve the overall experience of obtaining classroom teaching information.

[0004] However, the existing video slicing technology based on file granularity can only simply mark large segments of classroom videos, but cannot provide specific markings within each segment. Therefore, when learning based on existing video slices, it is impossible to achieve higher learning efficiency by marking the slices. Summary of the invention

[0005] The present application provides a method and system for slicing a classroom video recording to solve the problem that the prior art cannot specifically mark each slice of the classroom video.

[0006] In a first aspect, the present application provides a method for slicing a classroom video recording, the slicing method comprising:

[0007] Obtain a classroom video and preprocess the classroom video to obtain analysis data; the analysis data includes the start and end timestamps, transcribed text, speaker identification, multi-person simultaneous speaking identification and single speaker identification of each slice in the classroom video, wherein the speaker identification includes a teacher identification and a student identification;

[0008] According to the analysis data, each slice in the classroom recording video is respectively classified into a primary classification, a secondary classification and a tertiary classification; the primary classification includes teaching activities and blank activities, the secondary classification includes a teaching secondary classification corresponding to the teaching activities and a blank secondary classification corresponding to the blank activities, the teaching secondary classification includes declarative teaching, interpretive teaching, skill-based teaching, mapping teaching, and guiding teaching, the blank secondary classification includes blank, classroom discussion, and teacher-student interaction, and the tertiary classification includes a label mark corresponding to the teaching secondary classification;

[0009] The first-level classification, the second-level classification and the third-level classification are added to the corresponding slices of the classroom recording video, and the classroom recording video is sliced ​​according to the first-level classification, the second-level classification and the third-level classification to obtain the target slices.

[0010] Preferably, the step of preprocessing the classroom video includes:

[0011] Extract the audio of the classroom video and decode it to generate PCM audio data;

[0012] The PCM audio data is processed to remove human voice and background sound to obtain human voice data;

[0013] Performing speech analysis on the human voice data to obtain sentence-level human voice segments, each of which includes a start and end timestamp, a transcribed text, a speaker identifier, a multi-person simultaneous speaker identifier, and a single speaker identifier;

[0014] The speaker with the highest frequency in all the vocal segments is calculated and marked as a teacher identifier, and the remaining speakers are marked as student identifiers.

[0015] Preferably, the slicing method further comprises:

[0016] Separating the classroom video according to the start and end timestamps and the speaker identifier to obtain a plurality of speaking segments and a plurality of blank segments connected by timestamps;

[0017] Calculate the time length of the blank segments between adjacent speaking segments, mark the blank segments whose time length is greater than a first preset time and less than a second preset time as pause intervals, mark the blank segments whose time length is greater than the second preset time as the blank in the blank activity, obtain a plurality of blank slices, and separate all the blank slices from the speaking segments to obtain a plurality of first speaking segments.

[0018] Preferably, the slicing method further comprises:

[0019] Traversing all the first speech segments according to the start and end timestamps, the multi-person simultaneous speaking identifier, and the single-person speaking identifier, to obtain a plurality of first discussion segments, wherein the timestamps of each of the first discussion segments do not overlap, the first discussion segments include at least one first multi-person speaking segment, and the sum of the time lengths of all the first multi-person speaking segments is greater than a third preset time;

[0020] When the segment immediately following the first multi-person speaking segment whose timestamp is at the end of the first discussion segment is a first single-person speaking segment, and the time length of the first single-person speaking segment is greater than the third preset time, the first discussion segment is marked as the classroom discussion in the blank activity to obtain several classroom discussion slices, and all the classroom discussion slices are separated from the first speaking segment to obtain several second speaking segments.

[0021] Preferably, the slicing method further comprises:

[0022] Traversing all the second speech segments according to the start and end timestamps and the speaker identifier, obtaining a plurality of second discussion segments, wherein the timestamps of each second discussion segment do not overlap, the second discussion segments include at least one first student speech segment, a first teacher speech segment immediately preceding the first student speech segment at the front of the second discussion segment with a timestamp, a second teacher speech segment immediately following the first student speech segment at the back of the second discussion segment with a timestamp, and a sum of the time lengths of all the first student speech segments in the second discussion segment being greater than a third preset time;

[0023] When the segment immediately following the first student speech segment whose timestamp is at the end of the two discussion segments is a second teacher speech segment, and the time length of the second teacher speech segment is greater than the fourth preset time and the sum of the time lengths of all the first student speech segments is greater than the third preset time, the second discussion segment is marked as the teacher-student interaction in the blank activity to obtain a number of teacher-student interaction slices, and all the teacher-student interaction slices are separated from the second speech segment to obtain a number of third speech segments.

[0024] Preferably, the slice further comprises:

[0025] Inputting the transcribed text corresponding to the third speech segment into a language model for semantic paragraph segmentation to obtain a plurality of segmented texts, and performing paragraph segmentation on all the third speech segments using each of the segmented texts to obtain a plurality of teaching slices;

[0026] The corresponding teaching slices are marked by a custom indexing system and the divided text to obtain a number of declarative teaching slices, interpretative teaching slices, skill-based teaching slices, mapping teaching slices and guiding teaching slices.

[0027] Preferably, the slice further comprises:

[0028] Performing correlation analysis on all the declarative teaching slices, the interpretative teaching slices, the skill-based teaching slices, the mapping-based teaching slices, and the guiding-based teaching slices, and merging the slices with the same marking attributes and continuous timestamps;

[0029] The start and end timestamps, titles and summaries of all merged slices are updated according to the semantic model.

[0030] Preferably, the slice further comprises:

[0031] The transcribed text corresponding to the third speech segment is processed according to the language model using an adaptive variable length sliding window strategy, wherein the adaptive variable length sliding window strategy includes taking the starting position of the last paragraph divided from the previous sliding window as the starting position of the division of the next sliding window; when the content of a sliding window is divided into only one paragraph structure, adjusting the size of the sliding window to 1.5 times the original size and re-dividing the paragraphs; and the initial size of the sliding window is 4096 characters.

[0032] In a second aspect, the present application further provides a slicing system for classroom recorded videos, the slicing system comprising:

[0033] A data acquisition module, wherein the data acquisition module is configured to acquire classroom recording videos;

[0034] A data preprocessing module, wherein the data preprocessing module is configured to preprocess each slice in the classroom video to obtain analysis data; the analysis data includes the start and end timestamps, the transcribed text, the speaker identification, the multi-person simultaneous speaking identification and the single speaker identification of each slice in the classroom video, wherein the speaker identification includes the teacher identification and the student identification;

[0035] A classification and marking module, wherein the classification and marking module has a semantic model, and the classification and marking module is configured to perform primary classification, secondary classification, and tertiary classification on each slice in the classroom recording video according to the analysis data; the primary classification includes teaching activities and blank activities, the secondary classification includes a teaching secondary classification corresponding to the teaching activities and a blank secondary classification corresponding to the blank activities, the teaching secondary classification includes declarative teaching, interpretative teaching, skill-based teaching, mapping teaching, and guiding teaching, the blank secondary classification includes blank, classroom discussion, and teacher-student interaction, and the tertiary classification includes a label mark corresponding to the teaching secondary classification;

[0036] A slicing module, wherein the slicing module is configured to append the primary classification, the secondary classification and the tertiary classification to corresponding slices of the classroom recording video, and slice the classroom recording video according to the primary classification, the secondary classification and the tertiary classification to obtain target slices.

[0037] Preferably, the data preprocessing module is further configured to:

[0038] Extract the audio of the classroom video and decode it to generate PCM audio data;

[0039] The PCM audio data is processed to remove human voice and background sound to obtain human voice data;

[0040] Performing speech analysis on the human voice data to obtain sentence-level human voice segments, each of which includes a start and end timestamp, a transcribed text, a speaker identifier, a multi-person simultaneous speaker identifier, and a single speaker identifier;

[0041] The speaker with the highest frequency in all the vocal segments is calculated and marked as a teacher identifier, and the remaining speakers are marked as student identifiers.

[0042] It can be seen from the above content that the present application provides a method and system for slicing classroom recorded videos, the slicing method comprising obtaining classroom recorded videos, and preprocessing the classroom recorded videos to obtain analysis data; the analysis data comprises the start and end timestamps, transcription text, speaker identification, multi-person simultaneous speaking identification and single-person speaking identification of each slice in the classroom recorded video, wherein the speaker identification comprises a teacher identification and a student identification; according to the analysis data, each slice in the classroom recorded video is respectively classified into a primary classification, a secondary classification and a tertiary classification; the primary classification comprises teaching activities and blank activities, the secondary classification comprises teaching activities and blank activities, The first-level classification includes a second-level classification of teaching corresponding to the teaching activity and a second-level classification of blank space corresponding to the blank space activity. The second-level classification of teaching includes declarative teaching, interpretative teaching, skill-based teaching, mapping teaching, and guiding teaching. The second-level classification of blank space includes blank, classroom discussion, and teacher-student interaction. The third-level classification includes a label mark corresponding to the second-level classification of teaching; the first-level classification, the second-level classification, and the third-level classification are attached to the corresponding slices of the classroom recording video, and the classroom recording video is sliced ​​according to the first-level classification, the second-level classification, and the third-level classification to obtain the target slice. The present application solves the problem that the prior art cannot specifically mark each slice of the classroom video through the above method. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] In order to more clearly illustrate the technical solution of the present application, the drawings required for use in the embodiments are briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0044] Figure 1 A flowchart of a method for slicing a classroom video recording for this application;

[0045] Figure 2 A flowchart of preprocessing in a slicing method for classroom video recording in this application;

[0046] Figure 3 This is a first flow chart of a slicing classification implementation method in a slicing method of classroom recording videos in this application;

[0047] Figure 4 This is a second flow chart of a slicing classification implementation method in a slicing method for classroom recording videos of this application;

[0048] Figure 5 A third flow chart of a slicing classification implementation method in a slicing method for classroom recording videos of this application;

[0049] Figure 6 This is a fourth flow chart of an implementation method of slicing classification in a slicing method of classroom recording videos in this application;

[0050] Figure 7 This is a fifth flow chart of an implementation method of slicing classification in a slicing method of classroom recording videos in this application;

[0051] Figure 8 A schematic diagram of a slicing system for classroom recording videos for this application. DETAILED DESCRIPTION

[0052] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0053] Figure 1 The present invention is a flowchart of a method for slicing classroom recorded videos for this application.

[0054] See also Figure 1 It can be seen that this embodiment provides a slicing method for classroom recording videos, and the slicing method includes:

[0055] S100, obtaining a classroom recording video, and preprocessing the classroom recording video to obtain analysis data; the analysis data includes the start and end timestamps, transcription text, speaker identification, multiple simultaneous speaking identification and single speaker identification of each slice in the classroom recording video, wherein the speaker identification includes a teacher identification and a student identification. Specifically, in this embodiment, the classroom recording video may be an implementation recording video and a historical recording video, and the classroom recording video is converted into the start and end timestamps, transcription text, speaker identification, multiple simultaneous speaking identification and single speaker identification required for slice classification by implementing preprocessing.

[0056] Figure 2 This is a flowchart of the preprocessing method of slicing classroom recording videos in this application.

[0057] See also Figure 2 It can be seen that, further, in some embodiments, the step of preprocessing the classroom video includes:

[0058] S110, extracting the audio of the classroom recording video and decoding it to generate PCM audio data;

[0059] S120, stripping the human voice and background sound from the PCM audio data to obtain human voice data;

[0060] S130, performing speech analysis processing on the human voice data to obtain sentence-level human voice segments, each of which includes a start and end timestamp, a transcribed text, a speaker identifier, a multi-person simultaneous speaker identifier, and a single speaker identifier;

[0061] S140, calculating the speaker with the highest frequency in all the vocal segments, marking it as a teacher identifier, and marking the remaining speakers as student identifiers.

[0062] Specifically, in this embodiment, the classroom video recording is analyzed by audio and voice processing technology, and a slice sequence without audio is extracted, and a coarse-grained teaching activity slice sequence is generated. The specific implementation steps are as follows:

[0063] The first step is to input the classroom recording video, extract the audio, and decode it to generate PCM audio data.

[0064] In the second step, the PCM audio data is processed to remove the human voice and background sound, and the human voice data is extracted as the data source for subsequent processing.

[0065] The third step is to analyze the preprocessed audio data through speech analysis technologies such as voice activity detection, audio classification, speech transcription, and voiceprint recognition to generate sentence-level human voice segments, and each segment includes the following information: (1) start and end timestamps; (2) transcription text; (3) speaker identification; (4) multiple people speaking at the same time (group) or a single person speaking (solo) identification. We initially record the speaker identification with the highest frequency as the teacher, and the remaining speaker identifications are recorded as students.

[0066] The slicing method also includes:

[0067] S200, according to the analysis data, each slice in the classroom recording video is respectively classified into a primary classification, a secondary classification and a tertiary classification; the primary classification includes teaching activities and blank activities, the secondary classification includes a teaching secondary classification corresponding to the teaching activities and a blank secondary classification corresponding to the blank activities, the teaching secondary classification includes declarative teaching, interpretative teaching, skill-based teaching, mapping teaching, and guiding teaching, the blank secondary classification includes blank, classroom discussion, and teacher-student interaction, and the tertiary classification includes a label mark corresponding to the teaching secondary classification. Specifically, in this embodiment, each slice in the classroom recording video is respectively classified into a primary classification, a secondary classification and a tertiary classification by using the start and end timestamps, the transcribed text, the speaker identifier, the multi-person simultaneous speaking identifier and the single-person speaking identifier in the analysis data, so that the primary classification, the secondary classification and the tertiary classification are marked on each slice in the classroom recording video.

[0068] Figure 3 This is the first flow chart of the implementation method of slicing classification in a slicing method for classroom recording videos in this application.

[0069] See also Figure 3 It can be seen that, further, in some embodiments, the slicing method further includes:

[0070] S211, separating the classroom recording video according to the start and end timestamps and the speaker identifier to obtain a plurality of speaking segments and a plurality of blank segments connected by timestamps;

[0071] S212, calculate the time length of the blank segments between adjacent speaking segments, mark the blank segments whose time length is greater than a first preset time and less than a second preset time as pause intervals, mark the blank segments whose time length is greater than the second preset time as the blank in the blank activity, obtain a plurality of blank slices, and separate all the blank slices from the speaking segments to obtain a plurality of first speaking segments.

[0072] Specifically, in this embodiment, the time intervals between adjacent segments in each segment of the classroom recording video are calculated. Among them, the time intervals greater than 5 seconds but less than 1 minute are marked as pause intervals, and the pause intervals are used to mark the end positions of continuous vocal segments that are relatively independent and semantically complete. Time intervals exceeding 1 minute are recorded as "blanks", so that the slices with the main type of "blank activity" and the secondary type of "blank" are stripped out. A slice sequence of "blank activity" is formed. The remaining segments form a slice sequence of "teaching activity" with the "blank" slices as the dividing boundary.

[0073] Figure 4 This is the second flow chart of the implementation method of slicing classification in a slicing method for classroom recording videos in this application.

[0074] See also Figure 4 It can be seen that, further, in some embodiments, the slicing method further includes:

[0075] S221, traversing all the first speech segments according to the start and end timestamps, the multi-person simultaneous speaking identifier, and the single-person speaking identifier, to obtain a plurality of first discussion segments, wherein the timestamps of each of the first discussion segments do not overlap, the first discussion segments include at least one first multi-person speaking segment, and the sum of the time lengths of all the first multi-person speaking segments is greater than a third preset time;

[0076] S222, when the segment immediately following the first multi-person speaking segment whose timestamp is at the end of the first discussion segment is a first single-person speaking segment, and the time length of the first single-person speaking segment is greater than the third preset time, the first discussion segment is marked as the classroom discussion in the blank activity to obtain a plurality of classroom discussion slices, and all the classroom discussion slices are separated from the first speaking segment to obtain a plurality of second speaking segments.

[0077] Specifically, in this embodiment, in order to identify the "classroom discussion" part in the "blank activity", it is necessary to traverse each of the first speech segment slices processed by S212 in sequence. In this process, the starting point of a "classroom discussion" is the start time of the first multi-person speaking segment, and the end time needs to start from the start time and traverse backward in sequence until a situation is found in which the duration of continuous single-person speaking segments exceeds 30 seconds. At this time, the end time of the last multi-person speaking segment in the segment before the continuous single-person speaking is preliminarily marked as the end point of this "classroom discussion" slice. Then, this "classroom discussion" slice is judged. If the cumulative duration of multiple people speaking at the same time exceeds 30 seconds, it is considered to be a valid "classroom discussion", otherwise, the discussion is considered invalid. The above logical judgment will then continue until the audio content of each of the first speech segment slices is fully analyzed.

[0078] After the above judgment, the several "classroom discussion" slices are integrated into the "blank activity" slice sequence in chronological order. Each slice of the "teaching activity" in the previous step is divided by "classroom discussion" to form a new "teaching activity" slice. At this time, each "teaching activity" slice only contains a single person's speech segment, which can be divided into teacher-student interaction and teacher's one-way teaching according to the label content.

[0079] It should be noted that the classroom discussion may also include single-person speaking segments, and the single-person speaking segments are all located between multi-person speaking segments, that is, there are teacher explanations in the classroom discussion, but the time length of the single-person speaking segments needs to be less than the third preset time.

[0080] Figure 5 This is the third flow chart of the implementation method of slicing classification in a slicing method for classroom recording videos in this application.

[0081] See also Figure 5 It can be seen that, further, in some embodiments, the slicing method further includes:

[0082] S231, traversing all the second speech segments according to the start and end timestamps and the speaker identifier, obtaining a plurality of second discussion segments, wherein the timestamps of each second discussion segment do not overlap, the second discussion segments include at least one first student speech segment, a first teacher speech segment immediately preceding the first student speech segment at the front of the second discussion segment with a timestamp, a second teacher speech segment immediately following the first student speech segment at the back of the second discussion segment with a timestamp, and a sum of the time lengths of all the first student speech segments in the second discussion segment being greater than a third preset time;

[0083] S232, when the segment immediately following the first student speech segment whose timestamp is at the end of the two discussion segments is a second teacher speech segment, and the time length of the second teacher speech segment is greater than the fourth preset time and the sum of the time lengths of all the first student speech segments is greater than the third preset time, the second discussion segment is marked as the teacher-student interaction in the blank activity to obtain a number of teacher-student interaction slices, and all the teacher-student interaction slices are separated from the second speech segment to obtain a number of third speech segments.

[0084] Specifically, in this embodiment, in order to strip out the "teacher-student interaction" slice, it is necessary to further divide each slice of the second speech segment after S222 processing according to the timestamp and speaker identifier corresponding to the segment. The "teacher-student interaction" judgment process is to find the first student speech according to the time sequence, and take the student speech and the last sentence of the previous teacher speech as the starting time of a teacher-student interaction. The end time needs to be judged by a condition. The judgment process is to traverse the subsequent segments from the starting time of the teacher-student interaction. When the teacher speaks, the judgment is triggered. If the teacher continues to speak for more than 2 minutes, the interaction is considered to be over, and the last sentence of the previous student speech of the teacher speech is taken as the end time of the interaction. Otherwise, continue to traverse and find the next teacher speech until a teacher speech segment of more than 2 minutes is found or the end of the traversal of the slice is found. This process is initially recorded as a "teacher-student interaction", and then the "teacher-student interaction" is judged. If the cumulative time of the student speech exceeds 30 seconds, it is considered to be a "teacher-student interaction". The above process is repeated for the judgment of the next teacher-student interaction, and the above operation is performed on each of the second speech segment slices.

[0085] After the above process is completed, the "teacher-student interaction" slice is separated and integrated into the "blank activity". At this time, each "teaching activity" slice is cut again with "teacher-student interaction" as the boundary to form a new "teaching activity" slice, and each new slice sequence only contains the teacher's one-way teaching.

[0086] It should be noted that the teacher-student interaction may also include teacher speaking segments, and the teacher speaking segments are all located between student speaking segments, that is, there is teacher explanation in the teacher-student interaction, but the time length of the teacher speaking segments needs to be less than the fourth preset time.

[0087] Figure 6 This is the fourth flow chart of the implementation method of slicing classification in a slicing method for classroom recording videos in this application.

[0088] See also Figure 6 It can be seen that the slice also includes:

[0089] S241, inputting the transcribed text corresponding to the third speech segment into a language model for semantic paragraph segmentation to obtain a plurality of segmented texts, and performing paragraph segmentation on all the third speech segments using each of the segmented texts to obtain a plurality of teaching slices;

[0090] S242, marking the corresponding teaching slices through the custom indexing system and the divided text to obtain a plurality of declarative teaching slices, interpretive teaching slices, skill-based teaching slices, mapping teaching slices and guiding teaching slices.

[0091] Specifically, in this embodiment, in terms of time series, the slice sequence of each of the third speech segments obtained in S232 is cut again according to the pause intervals divided in the third step to obtain a plurality of segments with the pause intervals as segmentation boundaries, in preparation for the subsequent semantic segmentation of the large model.

[0092] A classroom recording course is divided into a "blank activity" slice sequence and a "teaching activity" slice sequence, where the "blank activity" slice contains a slice sequence with three label dimensions: blank, teacher-student interaction, and classroom discussion. Since "teaching activities" are still coarse-grained, each of its slice sequences is divided more finely to form a complete "teaching activity" slice sequence, thereby completing the classification and labeling of the declarative teaching slices, the interpretive teaching slices, the skill-based teaching slices, the mapping teaching slices, and the guiding teaching slices in the teaching activities.

[0093] We added preset labels to the slices in S232 through the prompt word template and the big model. In the prompt word template, we added a custom indexing system and expected output examples to guide the big model to determine the labels corresponding to the slices according to our intentions and output the format and content we want. The slice labels of "teaching activities" were determined at this stage of the process.

[0094] The application of the language model includes processing the transcribed text corresponding to the third speech segment using an adaptive variable-length sliding window strategy according to the language model, wherein the adaptive variable-length sliding window strategy includes using the starting position of the last paragraph divided from the previous sliding window as the starting position for dividing the next sliding window; when the content of a sliding window is divided into only one paragraph structure, adjusting the size of the sliding window to 1.5 times the original size and re-dividing the paragraphs; and the initial size of the sliding window is 4096 characters.

[0095] Specifically, in this embodiment, each "teaching activity" slice sequence obtained by processing S232 is further segmented into paragraphs through semantic relevance to obtain several paragraphs with start and end timestamps and achieve further segmentation of the "teaching activity" sequence.

[0096] Specifically, the transcribed text of "teaching activities" is input into the large language model by setting the prompt word template for semantic paragraph segmentation. In the face of long text input processing, we adopt the sliding window strategy, but the sliding window with a fixed step size will greatly affect the division of semantic paragraphs, for example, the same semantic paragraph is divided into two sliding windows. Therefore, we adopt an adaptive variable-length sliding window strategy, and the sliding window size is set to 4096 characters. During the reasoning process, the starting position of the last paragraph divided from the previous window is used as the starting position of the next sliding window, that is, the sliding step is set according to the semantic integrity. In addition, when the content of a sliding window is divided into only one paragraph structure, it is considered that the semantic length of the content exceeds the preset window size. At this time, the sliding window size will be readjusted to 1.5 times the previous window, and the paragraph division will be re-performed, and so on, until the content in the sliding window is divided into multiple semantic paragraphs or the paragraph division is completed, at which time the next window size is restored to the initial value of 4096 bytes. After the above process, the "teaching activities" slice sequence is obtained.

[0097] Figure 7 This is the fifth flow chart of the implementation method of slicing classification in a slicing method for classroom recording videos in this application.

[0098] See also Figure 7 It can be seen that, further, in some embodiments, the slicing further includes:

[0099] S251, performing correlation analysis on all the declarative teaching slices, the interpretative teaching slices, the skill-based teaching slices, the mapping-based teaching slices, and the guiding-based teaching slices, and merging the slices with the same marking attributes and continuous timestamps;

[0100] S252, updating the start and end timestamps, titles and summaries of all merged slices according to the semantic model.

[0101] Specifically, in some embodiments, a correlation analysis is performed on the "teaching activity" slice of S242. If the indexing attributes of several consecutive paragraphs in the divided paragraphs are the same, they are considered to have a strong semantic association. At this time, they will be merged and the start and end times will be updated. At the same time, the title and abstract of the merged paragraphs will be updated in combination with the large model.

[0102] The slicing method also includes:

[0103] S300, append the first-level classification, the second-level classification and the third-level classification to the corresponding slices of the classroom recording video, and slice the classroom recording video according to the first-level classification, the second-level classification and the third-level classification to obtain the target slices. Specifically, in this embodiment, the mark of each slice corresponding to the first-level classification, the second-level classification and the third-level classification is appended to the corresponding slice of the classroom recording video, so as to complete the specific marking of each slice in the classroom recording video.

[0104] Figure 8 A schematic diagram of a slicing system for classroom recording videos for this application.

[0105] See also Figure 8 It can be seen that this embodiment also provides a slicing system for classroom recording videos, and the slicing system includes:

[0106] The data acquisition module 100 is configured to acquire classroom recording videos. Specifically, in this embodiment, the data acquisition module 100 acquires and stores classroom recording videos to provide a data source for subsequent slicing.

[0107] A data preprocessing module 200 is configured to preprocess each slice in the classroom video to obtain analysis data; the analysis data includes the start and end timestamps, transcribed text, speaker identification, multiple simultaneous speakers identification and single speaker identification of each slice in the classroom video, wherein the speaker identification includes a teacher identification and a student identification. Specifically, in this embodiment, the data preprocessing module 200 converts the classroom video into the start and end timestamps, transcribed text, speaker identification, multiple simultaneous speakers identification and single speaker identification required for slice classification.

[0108] Among them, the specific processing flow of the data preprocessing module 200 includes extracting the audio of the classroom recording video and decoding it to generate PCM audio data; stripping the PCM audio data of human voice and background sound to obtain human voice data; performing speech analysis on the human voice data to obtain sentence-level human voice segments, each of which includes a start and end timestamp, a transcribed text, a speaker ID, a multi-person simultaneous speaker ID, and a single speaker ID; calculating the speaker with the highest frequency in all the human voice segments, marking it as a teacher ID, and marking the remaining speakers as student IDs.

[0109] The data preprocessing module 200 is responsible for audio extraction from the classroom recording video, decoding to generate PCM audio data, and analyzing the audio data, and includes four functional submodules. The first is the human voice separation submodule, which uses the human voice separation model to extract clear human voice in the video and reduce noise. The second is the voice activity detection submodule, which is responsible for dividing the human voice audio into independent human voice segments and marking the timestamp for each segment. The third is the audio classification submodule, which classifies the human voice segments into multiple people speaking at the same time or a single person speaking. Finally, the speech transcription and voiceprint recognition submodules can transcribe the voice segments into text and distinguish the speakers. Finally, sentence-level audio segments are obtained, each of which contains information such as start and end time, transcribed text, single or multiple people speaking at the same time, speaker identification, etc.

[0110] A classification marking module 300, wherein the classification marking module 300 has a semantic model, and the classification marking module 300 is configured to perform primary classification, secondary classification, and tertiary classification on each slice in the classroom recording video according to the analysis data; the primary classification includes teaching activities and blank activities, the secondary classification includes a teaching secondary classification corresponding to the teaching activities and a blank secondary classification corresponding to the blank activities, the teaching secondary classification includes declarative teaching, interpretative teaching, skill-based teaching, mapping teaching, and guiding teaching, the blank secondary classification includes blank, classroom discussion, and teacher-student interaction, and the tertiary classification includes a label mark corresponding to the teaching secondary classification. Specifically, in this embodiment, the classification marking module 300 performs logical slicing of the audio clips processed by the data preprocessing module 200 into "teaching activities" and "blank activities". (1) Slicing of "blank activities": First, the "blank" segments are divided through the data preprocessing module 200, and the segments of multiple people speaking at the same time in the data preprocessing module 200 are integrated and calculated to obtain the "classroom discussion" in the blank activities. In addition, it can also distinguish between the teacher and student speeches in the single-person speaking segments, and calculate the "teacher-student interaction" segments based on this evaluation. (2) Slicing of "teaching activities": It mainly focuses on slicing the teacher's one-way lectures through the indexing system, adopts an adaptive variable-length sliding window strategy, and works with the large model on the basis of ensuring semantic integrity, divides the text into semantic paragraphs, creates semantic paragraphs with indexing tags, and provides titles and summaries for the merged sliced ​​text paragraphs.

[0111] The slicing module 400 is configured to attach the primary classification, the secondary classification and the tertiary classification to the corresponding slices of the classroom recording video, and slice the classroom recording video according to the primary classification, the secondary classification and the tertiary classification to obtain target slices. Specifically, in this embodiment, the slicing module 400 is used to attach the primary classification, the secondary classification and the tertiary classification to the corresponding slices of the classroom recording video, and slice the classroom recording video according to the primary classification, the secondary classification and the tertiary classification, so as to complete the specific marking of each slice in the classroom recording video.

[0112] Exemplarily, the slicing scheme includes:

[0113] In the first stage, we will make a rough cut of the “teaching activities” and a fine cut of the “blank activities” for the classroom recordings. The specific implementation steps are as follows:

[0114] The first step is to extract audio data from the uploaded video through the data preprocessing module and decode it to generate an audio file M i (i represents the i-th recorded video).

[0115] The second step is to use the voice separation technology of the speech analysis module to analyze the audio data M i Preprocess the audio and record it as C i .

[0116] In the third step, the system analyzes the pre-processed audio C through the voice analysis module's voice activity detection, audio classification, voice transcription, voiceprint recognition and other technologies. i , segment the audio segments of human voice at the sentence level into a set T1, U = [u1,u2,…,u n ], each segment contains information such as start and end time, transcription text, speaker identification, speech category (single person speaking or multiple people speaking at the same time), etc.

[0117] The fourth step is to calculate the time interval between two adjacent segments in U and perform different processing for different interval lengths. (1) Some segments with a duration of more than 1 minute are recorded as “blank” and integrated into the “blank activity” slice sequence and recorded as B1 = [b1, b2, …, b m ](for all j∈[1,m]), each b j (j∈[1,m]) is a structure instance of Classslice. The primary_type attribute of each instance is assigned to "blank activity", the secondary_type attribute is assigned to "blank", the slice_bg and slice_ed attributes are assigned by voice activity detection to determine the start and end time of the slice, and the other attributes are set to empty. Then the entire audio file is divided with B1 as the boundary to obtain several "teaching activity" slice sequences, denoted as, where T1=[t1,t2,…,t n ], each t i (For all i∈[1,n]) corresponds to a slice structure instance, the primary_type attribute of the instance is assigned the value of "teaching activity", the slice_bg and slice_ed attributes are filled with specific values ​​by voice activity detection, and other attributes are set to empty. (2) Several segments with a duration of less than 1 minute but more than 5 seconds are recorded as pause intervals S stop , S stop =[s1,s2,…,s c ].

[0118] Step 5: To extract the “classroom discussion” slice, perform the following operations on each slice sequence in T1: (1) Find the first segment u in each slice where multiple people speak at the same time. i , and record it as the starting time of a "classroom discussion" iThen continue to traverse and find the kth to eth segments as the first continuous single-person speaking time period exceeding 30 seconds, and then record the end time of the k-1th segment as end k-1 , then calculate start i to the end k-1 Check if the cumulative duration of multiple people speaking at the same time in the corresponding segment exceeds 30 seconds. If so, start i to the end k-1 The corresponding segment is recorded as a valid "classroom discussion", otherwise it is recorded as an invalid discussion. Then continue to perform the above operations in the "teaching activity" slice. (If no single-person speaking period lasting 30 seconds is found after the traversal, it is considered that there is no "classroom discussion" slice in the slice, and continue to judge the next slice). Perform the above process for each slice to obtain k "classroom discussion" segments, and record them as B2 = [b1, b2, ..., b k ], for each b j (j∈[1,k]) is a Classslice structure instance. The slice_bg and slice_ed attributes of each instance are updated to the merged start and end time, the secondary_type attribute value is updated to "classroom discussion", and the primary_type attribute value remains unchanged. Then B1 and B2 are merged, and recorded as B3 = [b1, b2, ..., b q ] (where q = k + m), and the “classroom discussion” and “blank” time series slices of the “blank activity” B3 are obtained. In addition, each slice in T1 is re-divided by B2 as the boundary and recorded as T2 = [t1, t2, …, t p ](where p=n+k).

[0119] Step 6: Count the speaker representations of each segment in T2. ​​The speaker ID with the largest proportion is recorded as rid, which represents the teacher's speech. The remaining sid = [1, rid) ∪ (rid, p)] represents the student's speech. At this time, loop the audio segments in the T2 set and find the first student speech segment t according to the time sequence. c , then the starting time of the first teacher-student interaction start1 is the starting time of the last sentence of the previous teacher's speech, that is, start1 = t c-1 , and then start judging from the cth time slice. If the speaker ID corresponding to the vth time slice is rid, then judge whether the teacher's continuous speech exceeds 2 minutes from the vth segment. If it exceeds two minutes, the interaction is considered to be over, and the end time of the v-1 segment is taken as the end time of this teacher-student interaction end1=t v-1Otherwise, the above process is repeated until a teacher speech segment of more than 2 minutes is found or the audio file ends. This process is initially recorded as a "teacher-student interaction", and the cumulative duration of student speeches in the "teacher-student interaction" exceeds 30 seconds. The above process is repeated for the next teacher-student interaction until the audio file ends. After the above operation, the "teacher-student interaction" slice sequence is obtained, recorded as B4 = [b1, b2, ..., b z ], the primary_type attribute value of each slice sequence in B4 is updated to "blank activity", and the secondary_type attribute value is updated to "teacher-student interaction". Then B3 and B4 are merged, and recorded as B5 = [b1, b2, ..., b w ] (where w = z + q), and the slice sequences of "classroom discussion", "blank" and "teacher-student interaction" of "blank activity" B5 are obtained. In addition, each slice sequence in T2 is re-divided with B4 as the boundary and recorded as T3 = [t1, t2, ..., t a ] (where a=z+p), a new "teaching activity" slice sequence is obtained. After the above processing, a coarse-grained "teaching activity" slice sequence T3 and a fine-grained "blank activity" slice sequence B5 are obtained.

[0120] Step 7: Replace each slice sequence in T3 with the pause interval S of step 3. stop Divide the boundary to obtain T4 = t1, t2, ..., t b ].

[0121] Phase II , the text corresponding to each slice in the "teaching activities" set T4 obtained by the first stage processing is input into the large model through the adaptive variable length sliding window strategy for semantic paragraph slicing, and the title and summary of the corresponding slice are generated under the premise of retaining the timestamp. In this process, each time slice of the T4 set is divided into g paragraphs, i.e. g slices, according to semantic integrity, denoted as T5 = [t1, t2, …, t g ].

[0122] Phase 3 , the second stage of “teaching activity” T5 is input into the big model through the preset indexing system, and the slice_label attribute of each slice in T5 is assigned through the big model.

[0123] Stage 4 , compare the slice_label attribute of each continuous time slice in T5, merge x continuous slices with high semantic similarity and correlation in T5, and re-record the merged T5 set as T6 = [t1, t2, …, t u] and update the slice_start and slice_end attribute values ​​of each merged slice. Then use the large model and prompt words to generate the slice_title and slice_outline attribute values ​​of each merged slice.

[0124] This embodiment has the following advantages:

[0125] Relying on artificial intelligence technology and using classroom recordings as a carrier, it intelligently analyzes the elements and structure of classroom teaching, extracts the operating rules and characteristics of classroom teaching, and forms sliced ​​indexing system data that accurately corresponds to classroom recordings. It enables online learning, teaching review, teacher training, teaching evaluation and other teaching activities, effectively improves learning efficiency and personalized learning experience, and promotes the sharing of educational resources and the improvement of teaching quality.

Claims

1. A slicing method for classroom video recording, characterized in that: The slicing method comprises: Obtain a classroom video and preprocess the classroom video to obtain analysis data; the analysis data includes the start and end timestamps, transcribed text, speaker identification, multi-person simultaneous speaking identification and single speaker identification of each slice in the classroom video, wherein the speaker identification includes a teacher identification and a student identification; According to the analysis data, each slice in the classroom recording video is respectively classified into a primary classification, a secondary classification and a tertiary classification; the primary classification includes teaching activities and blank activities, the secondary classification includes a teaching secondary classification corresponding to the teaching activities and a blank secondary classification corresponding to the blank activities, the teaching secondary classification includes declarative teaching, interpretive teaching, skill-based teaching, mapping teaching, and guiding teaching, the blank secondary classification includes blank, classroom discussion, and teacher-student interaction, and the tertiary classification includes a label mark corresponding to the teaching secondary classification; The first-level classification, the second-level classification and the third-level classification are added to the corresponding slices of the classroom recording video, and the classroom recording video is sliced ​​according to the first-level classification, the second-level classification and the third-level classification to obtain the target slices.

2. The method for slicing a classroom video according to claim 1, characterized in that: The step of preprocessing the classroom video includes: Extract the audio of the classroom video and decode it to generate PCM audio data; The PCM audio data is processed to remove human voice and background sound to obtain human voice data; Performing speech analysis on the human voice data to obtain sentence-level human voice segments, each of which includes a start and end timestamp, a transcribed text, a speaker identifier, a multi-person simultaneous speaker identifier, and a single speaker identifier; The speaker with the highest frequency in all the vocal segments is calculated and marked as a teacher identifier, and the remaining speakers are marked as student identifiers.

3. The method for slicing a classroom video according to claim 1, characterized in that: The slicing method also includes: Separating the classroom video according to the start and end timestamps and the speaker identifier to obtain a plurality of speaking segments and a plurality of blank segments connected by timestamps; Calculate the time length of the blank segments between adjacent speaking segments, mark the blank segments whose time length is greater than a first preset time and less than a second preset time as pause intervals, mark the blank segments whose time length is greater than the second preset time as the blank in the blank activity, obtain a plurality of blank slices, and separate all the blank slices from the speaking segments to obtain a plurality of first speaking segments.

4. The method for slicing a classroom video according to claim 3, characterized in that: The slicing method also includes: Traversing all the first speech segments according to the start and end timestamps, the multi-person simultaneous speaking identifier, and the single-person speaking identifier, to obtain a plurality of first discussion segments, wherein the timestamps of each of the first discussion segments do not overlap, the first discussion segments include at least one first multi-person speaking segment, and the sum of the time lengths of all the first multi-person speaking segments is greater than a third preset time; When the segment immediately following the first multi-person speaking segment whose timestamp is at the end of the first discussion segment is a first single-person speaking segment, and the time length of the first single-person speaking segment is greater than the third preset time, the first discussion segment is marked as the classroom discussion in the blank activity to obtain several classroom discussion slices, and all the classroom discussion slices are separated from the first speaking segment to obtain several second speaking segments.

5. The method for slicing a classroom video according to claim 4, characterized in that: The slicing method also includes: Traversing all the second speech segments according to the start and end timestamps and the speaker identifier, obtaining a plurality of second discussion segments, wherein the timestamps of each second discussion segment do not overlap, the second discussion segments include at least one first student speech segment, a first teacher speech segment immediately preceding the first student speech segment at the front of the second discussion segment with a timestamp, a second teacher speech segment immediately following the first student speech segment at the back of the second discussion segment with a timestamp, and a sum of the time lengths of all the first student speech segments in the second discussion segment being greater than a third preset time; When the segment immediately following the first student speech segment whose timestamp is at the end of the two discussion segments is a second teacher speech segment, and the time length of the second teacher speech segment is greater than the fourth preset time and the sum of the time lengths of all the first student speech segments is greater than the third preset time, the second discussion segment is marked as the teacher-student interaction in the blank activity to obtain a number of teacher-student interaction slices, and all the teacher-student interaction slices are separated from the second speech segment to obtain a number of third speech segments.

6. The method for slicing a classroom video according to claim 5, characterized in that: The slice also includes: Inputting the transcribed text corresponding to the third speech segment into a language model for semantic paragraph segmentation to obtain a plurality of segmented texts, and performing paragraph segmentation on all the third speech segments using each of the segmented texts to obtain a plurality of teaching slices; The corresponding teaching slices are marked by a custom indexing system and the divided text to obtain a number of declarative teaching slices, interpretative teaching slices, skill-based teaching slices, mapping teaching slices and guiding teaching slices.

7. The method for slicing a classroom video according to claim 6, characterized in that: The slice also includes: Performing correlation analysis on all the declarative teaching slices, the interpretative teaching slices, the skill-based teaching slices, the mapping-based teaching slices, and the guiding-based teaching slices, and merging the slices with the same marking attributes and continuous timestamps; The start and end timestamps, titles and summaries of all merged slices are updated according to the semantic model.

8. The method for slicing a classroom video according to claim 6, characterized in that: The slice also includes: The transcribed text corresponding to the third speech segment is processed according to the language model using an adaptive variable length sliding window strategy, wherein the adaptive variable length sliding window strategy includes taking the starting position of the last paragraph divided from the previous sliding window as the starting position of the division of the next sliding window; when the content of a sliding window is divided into only one paragraph structure, adjusting the size of the sliding window to 1.5 times the original size and re-dividing the paragraphs; and the initial size of the sliding window is 4096 characters.

9. A slicing system for classroom video recording, characterized in that: The slicing system is used to execute the slicing method of the classroom video recording according to any one of claims 1 to 8, and the slicing system includes: A data acquisition module (100), wherein the data acquisition module (100) is configured to acquire a classroom recording video; A data preprocessing module (200), the data preprocessing module (200) being configured to preprocess each slice in the classroom video recording to obtain analysis data; the analysis data comprising the start and end timestamps, the transcribed text, the speaker identification, the multi-person simultaneous speaking identification and the single-person speaking identification of each slice in the classroom video recording, wherein the speaker identification comprises the teacher identification and the student identification; A classification marking module (300), wherein the classification marking module (300) has a semantic model, and the classification marking module (300) is configured to perform primary classification, secondary classification, and tertiary classification on each slice in the classroom recording video according to the analysis data; the primary classification includes teaching activities and blank activities, the secondary classification includes a teaching secondary classification corresponding to the teaching activities and a blank secondary classification corresponding to the blank activities, the teaching secondary classification includes declarative teaching, interpretative teaching, skill-based teaching, mapping teaching, and guiding teaching, the blank secondary classification includes blank, classroom discussion, and teacher-student interaction, and the tertiary classification includes a label mark corresponding to the teaching secondary classification; A slicing module (400), wherein the slicing module (400) is configured to append the primary classification, the secondary classification and the tertiary classification to corresponding slices of the classroom recording video, and to slice the classroom recording video according to the primary classification, the secondary classification and the tertiary classification to obtain target slices.

10. The classroom video slicing system according to claim 9, characterized in that: The data preprocessing module (200) is further configured to: Extract the audio of the classroom video and decode it to generate PCM audio data; The PCM audio data is processed to remove human voice and background sound to obtain human voice data; Performing speech analysis on the human voice data to obtain sentence-level human voice segments, each of which includes a start and end timestamp, a transcribed text, a speaker identifier, a multi-person simultaneous speaker identifier, and a single speaker identifier; The speaker with the highest frequency in all the vocal segments is calculated and marked as a teacher identifier, and the remaining speakers are marked as student identifiers.

Citation Information

Cited By

  • Teaching quality evaluation method and device, storage medium and electronic equipment

    CN119904150A

  • Classroom analysis optimization method and system based on artificial intelligence

    CN120107860A

  • Method and system for multi-dimensionally summarizing classroom live-recorded texts

    CN120319248A

  • A method and system for multi-dimensional summarization of classroom transcripts

    CN120319248B

  • A knowledge graph construction method and system based on classroom recording video

    CN123030764A