A teaching video knowledge graph construction method, device, equipment and storage medium

Through key frame extraction and content analysis of teaching videos, the teaching video knowledge graph is automatically constructed, which solves the time-consuming and inaccurate problems of manually constructing the graph in the existing technology, and improves the efficiency and accuracy of the graph.

CN117973526BActive Publication Date: 2024-09-06DARK MATTER ARTIFICIAL INTELLIGENT (BEIJING) TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410325434.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-03-21
Publication Date
2024-09-06
Estimated Expiration
2044-03-21

AI Technical Summary

Technical Problem

When building a teaching video knowledge graph, the existing technology requires manual viewing and recording of the video, which consumes a lot of time and labor costs, and due to the influence of human factors, it is easy to lead to inaccuracy and inefficiency of the graph.

Method used

By extracting text information from key frames of teaching videos, performing entity recognition and relationship extraction, a video knowledge graph is constructed, and clustering and integration are performed based on content similarity to reduce manual intervention and improve the accuracy and efficiency of the graph.

Benefits of technology

It realizes the automatic construction of teaching video knowledge graph without manual viewing of videos, reduces labor costs, improves the effectiveness and accuracy of the graph, and avoids the influence of human factors.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117973526B
    Figure CN117973526B
Patent Text Reader

Abstract

The present application provides a method, device, equipment and storage medium for constructing a teaching video knowledge graph, wherein a teaching video set is obtained; text information is extracted from the key frames in each teaching video; entity recognition and relationship extraction are performed on the text information of each key frame to obtain the association relationship between every two knowledge points; and the video knowledge graph of the teaching video is constructed based on the association relationship between every two knowledge points in each key frame. Each teaching video is clustered to obtain multiple video clusters; the video knowledge graphs of the teaching videos in each video cluster are integrated to obtain the video cluster knowledge graph of each video cluster; the video cluster knowledge graphs of each video cluster are integrated to obtain the video set knowledge graph of the teaching video set. The above method is used to avoid the waste of manpower costs when constructing the teaching knowledge graph, while improving the effectiveness and accuracy of the constructed teaching video knowledge graph.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a method, device, equipment and storage medium for constructing a teaching video knowledge graph. Background Art

[0002] With the rapid development of the Internet, the education and training industry has gradually shifted to online, and online learning has become a major way of learning. On this basis, a large number of course videos have been produced and shared, allowing users to learn based on these course videos. In order to facilitate users to obtain and consult the relevant content of the course videos, the teaching video knowledge graph is usually constructed based on the main knowledge content in the course videos. In this way, users do not need to spend a lot of time watching the entire teaching video. Through the teaching video knowledge graph, they can know the relevant knowledge content taught in each teaching video, which is convenient for users to screen subsequent courses and sort out knowledge points.

[0003] In the prior art, when constructing a teaching video knowledge graph based on the main knowledge content in the course video, the video manager usually records the knowledge content in the course video manually after watching the complete course video, and then draws the knowledge graph of the teaching video after analyzing and summarizing the recorded knowledge content based on his subjective cognition and experience. However, it was found in the study that when constructing the knowledge graph by the above method, since the managers need to spend a lot of time watching the teaching videos, it will increase the workload of the managers and waste manpower costs; in addition, due to the limitations of the managers' cognitive ability, the interference of human factors and the influence of subjective experience, when using their cognitive ability and experience to draw the knowledge graph, the drawn knowledge graph will be inconsistent with the facts and inaccurate, thereby reducing the effectiveness and accuracy of the obtained teaching video knowledge graph. Summary of the invention

[0004] In view of this, the purpose of the present invention is to provide a method, device, equipment and storage medium for constructing a teaching video knowledge graph, so as to avoid the waste of manpower costs when constructing a teaching knowledge graph, and at the same time improve the effectiveness and accuracy of the constructed teaching video knowledge graph.

[0005] In a first aspect, an embodiment of the present application provides a method for constructing a teaching video knowledge graph, the method comprising:

[0006] Acquire a teaching video set, wherein the teaching video set includes at least one teaching video;

[0007] For each teaching video, extract the text information of each key frame from each key frame in the teaching video;

[0008] Perform entity recognition on the text information of each key frame to obtain the knowledge points of each key frame, and then perform relationship extraction on the knowledge points of each key frame to obtain the association relationship between every two knowledge points of each key frame;

[0009] Construct a video knowledge graph of the teaching video based on the knowledge points of each key frame and the association relationship between every two knowledge points of each key frame;

[0010] Based on the content similarity between the root nodes of the video knowledge graph of each two teaching videos, each teaching video is clustered to obtain multiple video clusters;

[0011] For each video cluster, based on the content similarity between the root nodes of the video knowledge graphs of every two teaching videos in the video cluster, the video knowledge graphs of each teaching video in the video cluster are integrated to obtain the video cluster knowledge graph of the video cluster;

[0012] The video cluster knowledge graphs of each video cluster are integrated to obtain the video set knowledge graph of the teaching video set.

[0013] Optionally, for each teaching video, before extracting text information of each key frame from each key frame in the teaching video, the method further includes:

[0014] Extracting a plurality of video frames from the teaching video at preset time intervals;

[0015] Calculating the image similarity between every two video frames;

[0016] Based on the image similarity between every two of the video frames, a plurality of video frames extracted from the teaching video are deduplicated to obtain key frames of the teaching video.

[0017] Optionally, extracting text information of each key frame from each key frame in the teaching video includes:

[0018] Get the preset extraction position of the text information;

[0019] For each key frame of the teaching video, the text at the preset extraction position in the key frame is extracted as the text information of the key frame.

[0020] Optionally, the step of constructing a video knowledge graph of the teaching video based on the knowledge points of each key frame and the association relationship between every two knowledge points of each key frame includes:

[0021] Generate a single-frame knowledge graph of each key frame based on the knowledge points of each key frame and the association relationship between every two knowledge points of each key frame;

[0022] Based on the content similarity between the nodes of the single-frame knowledge graphs of different key frames, the single-frame knowledge graphs of each key frame are integrated to obtain the video knowledge graph of the teaching video.

[0023] Optionally, for each key frame, each node in the single-frame knowledge graph of the key frame corresponds to each knowledge point of the key frame, and the logical relationship between every two nodes in the single-frame knowledge graph of the key frame corresponds to the association relationship between every two knowledge points.

[0024] Optionally, the single-frame knowledge graphs of each key frame are integrated based on the content similarity between the nodes of the single-frame knowledge graphs of different key frames to obtain the video knowledge graph of the teaching video, including:

[0025] For every two key frames, calculate the content similarity between the root node of the single-frame knowledge graph of the first key frame of the two key frames and the leaf node of the single-frame knowledge graph of the second key frame of the two key frames;

[0026] Determine whether the content similarity between the root node of the single-frame knowledge graph of the first key frame of the two key frames and the leaf node of the single-frame knowledge graph of the second key frame of the two key frames exceeds a first preset threshold;

[0027] If the content similarity between the root node of the single-frame knowledge graph of the first key frame of the two key frames and the leaf node of the single-frame knowledge graph of the second key frame of the two key frames exceeds a first preset threshold, the root node of the single-frame knowledge graph of the first key frame of the two key frames is integrated as a child node of the leaf node of the single-frame knowledge graph of the second key frame of the two key frames to obtain the video knowledge graph of the teaching video.

[0028] Optionally, the content similarity includes a text edit distance score, and the clustering of the teaching videos based on the content similarity between the root nodes of the video knowledge graph of every two teaching videos to obtain multiple video clusters includes:

[0029] For every two teaching videos, calculate the text edit distance score of the root node of the video knowledge graph of the two teaching videos;

[0030] Determine whether the text edit distance score of the root node of the video knowledge graph of the two teaching videos exceeds a second preset threshold;

[0031] If the text editing distance score of the root node of the video knowledge graph of the two teaching videos exceeds the second preset threshold, the two teaching videos are clustered as the same video cluster.

[0032] In a second aspect, an embodiment of the present application provides a device for constructing a teaching video knowledge graph, the device comprising:

[0033] A video set acquisition module, used to acquire a teaching video set, wherein the teaching video set includes at least one teaching video;

[0034] The information extraction module is used to extract the text information of each key frame from each key frame in each teaching video;

[0035] The knowledge point analysis module is used to perform entity recognition on the text information of each key frame to obtain the knowledge point of each key frame, and then perform relationship extraction on the knowledge points of each key frame to obtain the association relationship between every two knowledge points of each key frame;

[0036] A first knowledge graph construction module is used to construct a video knowledge graph of the teaching video based on the knowledge points of each key frame and the association relationship between every two knowledge points of each key frame;

[0037] A video clustering module is used to cluster each teaching video based on the content similarity between the root nodes of the video knowledge graph of each two teaching videos to obtain multiple video clusters;

[0038] The second knowledge graph construction module integrates the video knowledge graphs of each teaching video in the video cluster based on the content similarity between the root nodes of the video knowledge graphs of every two teaching videos in the video cluster to obtain the video cluster knowledge graph of the video cluster;

[0039] The third knowledge graph construction module is used to integrate the video cluster knowledge graphs of each video cluster to obtain the video set knowledge graph of the teaching video set.

[0040] Optionally, the device further comprises:

[0041] A key frame acquisition module, used for extracting a plurality of video frames from the teaching video at a preset time interval before extracting text information of each key frame from each key frame in the teaching video;

[0042] Calculating the image similarity between every two video frames;

[0043] Based on the image similarity between every two of the video frames, a plurality of video frames extracted from the teaching video are deduplicated to obtain key frames of the teaching video.

[0044] Optionally, extracting text information of each key frame from each key frame in the teaching video includes:

[0045] Get the preset extraction position of the text information;

[0046] For each key frame of the teaching video, the text at the preset extraction position in the key frame is extracted as the text information of the key frame.

[0047] Optionally, the step of constructing a video knowledge graph of the teaching video based on the knowledge points of each key frame and the association relationship between every two knowledge points of each key frame includes:

[0048] Generate a single-frame knowledge graph of each key frame based on the knowledge points of each key frame and the association relationship between every two knowledge points of each key frame;

[0049] Based on the content similarity between the nodes of the single-frame knowledge graphs of different key frames, the single-frame knowledge graphs of each key frame are integrated to obtain the video knowledge graph of the teaching video.

[0050] Optionally, for each key frame, each node in the single-frame knowledge graph of the key frame corresponds to each knowledge point of the key frame, and the logical relationship between every two nodes in the single-frame knowledge graph of the key frame corresponds to the association relationship between every two knowledge points.

[0051] Optionally, the single-frame knowledge graphs of each key frame are integrated based on the content similarity between the nodes of the single-frame knowledge graphs of different key frames to obtain the video knowledge graph of the teaching video, including:

[0052] For every two key frames, calculate the content similarity between the root node of the single-frame knowledge graph of the first key frame of the two key frames and the leaf node of the single-frame knowledge graph of the second key frame of the two key frames;

[0053] Determine whether the content similarity between the root node of the single-frame knowledge graph of the first key frame of the two key frames and the leaf node of the single-frame knowledge graph of the second key frame of the two key frames exceeds a first preset threshold;

[0054] If the content similarity between the root node of the single-frame knowledge graph of the first key frame of the two key frames and the leaf node of the single-frame knowledge graph of the second key frame of the two key frames exceeds a first preset threshold, the root node of the single-frame knowledge graph of the first key frame of the two key frames is integrated as a child node of the leaf node of the single-frame knowledge graph of the second key frame of the two key frames to obtain the video knowledge graph of the teaching video.

[0055] Optionally, the content similarity includes a text edit distance score, and the clustering of the teaching videos based on the content similarity between the root nodes of the video knowledge graph of every two teaching videos to obtain multiple video clusters includes:

[0056] For every two teaching videos, calculate the text edit distance score of the root node of the video knowledge graph of the two teaching videos;

[0057] Determine whether the text edit distance score of the root node of the video knowledge graph of the two teaching videos exceeds a second preset threshold;

[0058] If the text editing distance score of the root node of the video knowledge graph of the two teaching videos exceeds the second preset threshold, the two teaching videos are clustered as the same video cluster.

[0059] In the third aspect, an embodiment of the present application provides a computer device, comprising: a processor, a memory and a bus, the memory storing machine-readable instructions executable by the processor, and when the computer device is running, the processor and the memory communicate through the bus, and when the machine-readable instructions are executed by the processor, the steps of the teaching video knowledge graph construction method described in any one of the optional implementations of the first aspect are performed.

[0060] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, executes the steps of the method for constructing a teaching video knowledge graph described in any optional implementation manner in the first aspect above.

[0061] The technical solution provided by this application includes but is not limited to the following beneficial effects:

[0062] This application extracts key frames from each teaching video in the teaching video collection, identifies and extracts the knowledge points indicated by the text information of each key frame and the relationship between each knowledge point, and can obtain the knowledge points and the relationship between knowledge points in the teaching video without the need for people to watch the teaching video and record manually, thereby reducing the workload of relevant personnel and avoiding the waste of manpower costs. Then, after constructing a knowledge graph based on the acquired knowledge points and the relationship between knowledge points, this application clusters and integrates the teaching videos and the knowledge graph based on the similarity between each node, realizing the optimization of the knowledge graph based on objective quantitative indicators, avoiding the interference of human factors and the influence of subjective judgment, and improving the effectiveness and accuracy of the constructed teaching video knowledge graph.

[0063] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, preferred embodiments are given below and described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0064] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.

[0065] Figure 1 A flowchart of a method for constructing a teaching video knowledge graph provided by the first embodiment of the present invention is shown;

[0066] Figure 2 A flowchart of a key frame extraction method provided in Embodiment 1 of the present invention is shown;

[0067] Figure 3 A flowchart of a text information extraction method provided by the first embodiment of the present invention is shown;

[0068] Figure 4 A flowchart of a method for constructing a video knowledge graph provided by the first embodiment of the present invention is shown;

[0069] Figure 5 A flowchart of a specific method for constructing a video knowledge graph provided by the first embodiment of the present invention is shown;

[0070] Figure 6 A flow chart of a video clustering method provided by the first embodiment of the present invention is shown;

[0071] Figure 7 A schematic diagram of the structure of a teaching video knowledge graph construction device provided by the second embodiment of the present invention is shown;

[0072] Figure 8 A schematic diagram of the structure of a computer device provided in Embodiment 3 of the present invention is shown. DETAILED DESCRIPTION

[0073] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings 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. The components of the embodiments of the present invention generally described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present invention provided in the drawings is not intended to limit the scope of the claimed invention, but merely represents selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present invention.

[0074] Embodiment 1

[0075] To facilitate understanding of this application, Figure 1 The flowchart of a method for constructing a teaching video knowledge graph provided in the first embodiment of the present invention is described to provide a detailed explanation of the first embodiment of the present application.

[0076] See also Figure 1 As shown, Figure 1 A flowchart of a method for constructing a teaching video knowledge graph provided by the first embodiment of the present invention is shown, wherein the method comprises steps S101 to S107:

[0077] S101: Acquire a teaching video set, wherein the teaching video set includes at least one teaching video.

[0078] Specifically, the standard for the number of videos in the teaching video set is based on at least 3 teaching videos. Each teaching video in the teaching video set belongs to the same subject or the same teaching topic to ensure the richness and diversity of the knowledge graph. The teaching video should be a PPT (PowerPoint, presentation) courseware video. First, all teaching videos are preliminarily reviewed and classified to distinguish between PPT learning videos and promotional videos. This application is for the construction of a teaching video knowledge graph for PPT screen recording teaching videos. In the PPT courseware of each teaching video, text information belonging to the title, directory, and content is included. When the knowledge points are extracted later, the extraction is based on the above text information.

[0079] When importing a single teaching video, multiple video formats are supported, including but not limited to teaching videos in MP4, AVI, WMV and other video formats. At the same time, it can upload to the database backend and support uploading of large amounts of video, ensuring that the video data is safely and stably stored on the server configured with the teaching video set.

[0080] S102: For each teaching video, extract text information of each key frame from each key frame in the teaching video.

[0081] Specifically, an efficient picture frame extraction technology is adopted, for example, using the FFmpeg tool (an open source computer program for recording, converting digital audio and video, and converting them into streams), and customizing the time interval, for example, every 3 seconds, to extract key frames from the video.

[0082] S103: Perform entity recognition on the text information of each key frame to obtain the knowledge points of each key frame, and then perform relationship extraction on the knowledge points of each key frame to obtain the association relationship between every two knowledge points of each key frame.

[0083] Specifically, we first use advanced OCR (Optical Character Recognition) technology to automatically identify the text in each key frame to obtain the text information of each key frame, and then perform entity recognition on the text information of each key frame to determine the knowledge points contained in each key frame. Then, we perform relationship extraction on the knowledge points of each key frame to obtain the association relationship between every two knowledge points of each key frame.

[0084] When the teaching video is a PPT courseware video, its key frame is a PPT screenshot, and the text information in the key frame has a title and a body, the title, body and its hierarchy, such as the first-level and second-level titles, are automatically identified and annotated to improve the clarity of information organization. In the case where the automatic recognition function is not enough to cover all the text information, a manual marking tool is provided to ensure accuracy. Here, the identified title is extracted as a knowledge point.

[0085] In addition, if there is a table of contents page in the PPT courseware, based on the OCR recognition results of each key frame, rules can be used to determine which key frames with text segments such as "table of contents", "chapter", "content", etc. are stored as table of contents pages.

[0086] S104: Construct a video knowledge graph of the teaching video based on the knowledge points of each key frame and the association relationship between every two knowledge points of each key frame.

[0087] Specifically, for each key frame, based on the association between every two knowledge points in the key frame (represented as a hierarchical relationship in the knowledge graph), a clear tree-like knowledge structure is designed for each key frame (corresponding to each PPT screenshot), and then all single-page knowledge tree structures are integrated to form a complete video knowledge tree, that is, the tree-like knowledge structure of each key frame is summarized and spliced ​​to obtain the video knowledge graph of the teaching video. In the above integration process, the hierarchical structure of the knowledge tree can be automatically adjusted, and manual intervention can be performed when necessary to ensure logic and accuracy.

[0088] S105: Clustering the teaching videos based on the content similarity between the root nodes of the video knowledge graph of every two teaching videos to obtain multiple video clusters.

[0089] Specifically, through similarity analysis, teaching videos with high similarity in the teaching video set are automatically aggregated into a video cluster to facilitate subsequent analysis and application.

[0090] S106: For each video cluster, based on the content similarity between the root nodes of the video knowledge graphs of every two teaching videos in the video cluster, the video knowledge graphs of the teaching videos in the video cluster are integrated to obtain the video cluster knowledge graph of the video cluster.

[0091] Specifically, based on the content and structural similarity of the root nodes, the association between videos is automatically identified and established. The main steps include: for each video cluster, based on the content similarity between the root nodes of the video knowledge graphs of each two teaching videos in the video cluster, that is, the text editing distance score, if it is greater than a preset score threshold, then the root nodes of the video knowledge graphs of the two teaching videos are considered to be associated, and the video knowledge graphs of the two teaching videos are integrated into the same group of associated graphs (the root nodes of the video knowledge graphs in the same group of associated graphs are associated with each other), and all the group associated graphs finally obtained are used as the video cluster knowledge graph of the video cluster.

[0092] In addition to the above method, the video knowledge graphs of two teaching videos can also be integrated based on the following method: for each video knowledge graph A and B of two teaching videos, traverse all its nodes, that is, given a node a of A and a node b of B, calculate the node semantic similarity. If the similarity score is higher than a certain set threshold, establish an association relationship between node a and node b, and integrate video knowledge graphs A and B into the same set of association graphs. The threshold can be adjusted according to the actual operation process.

[0093] When calculating the semantic similarity between nodes, it can be combined with the correlation between the ASR (Automatic Speech Recognition) content and the knowledge points in the video. When setting the similarity comparison threshold, according to the actual application requirements, for example, the similarity threshold is set to 65%, and the correlation is quantitatively evaluated. The method for calculating the semantic similarity includes: inputting the text of two nodes C and D into a trained Bert model (a pre-trained model), obtaining their semantic vectors C_emb and D_emb respectively, and calculating the cosine similarity of C_emb and D_emb, that is, obtaining the semantic similarity of nodes C and D.

[0094] S107: Integrate the video cluster knowledge graphs of each video cluster to obtain the video set knowledge graph of the teaching video set.

[0095] Specifically, the video cluster knowledge graphs of each video cluster are integrated, packaged and stored to obtain the video set knowledge graph of the teaching video set, thereby completing the construction of the teaching video knowledge graph.

[0096] After completing steps S101 to S107 to obtain the video collection knowledge graph, you can enter the expert review, graph revision and knowledge graph release stages in sequence. In the expert review stage, experts in the industry are invited to conduct a comprehensive and detailed review; the feedback provided by experts includes but is not limited to the accuracy, completeness and practicality of the graph content. In the graph revision stage, according to the feedback from experts, the knowledge graph is revised as necessary, including but not limited to adding new levels, modifying or supplementing entity content, adjusting association relationships, etc.; at the same time, the knowledge graph is continuously iterated and optimized to ensure its scientificity and practicality. In the knowledge graph release stage, after all revisions are completed, a final review and confirmation is carried out; after ensuring the quality of the knowledge graph, it is officially released to the public to provide users with high-quality knowledge navigation and learning resources.

[0097] When publishing the knowledge graph, the constructed knowledge graph is displayed through a visual display interface. Specifically, the knowledge graph visualization technology based on the mechanical layout algorithm is used to abstract the job business knowledge graph generated by multi-video aggregation into a tree structure with associations. By calculating the association strength and hierarchical relationship between nodes, users can have a clearer understanding of the overall situation of the knowledge graph. At the same time, the mechanical layout algorithm is used to optimize the tree structure display of the job business knowledge graph. The algorithm considers the association strength and hierarchical relationship between nodes to achieve a dynamic and balanced layout of the knowledge graph. At the same time, according to the attribute information of the nodes, the nodes are classified and different layout strategies are adopted to provide intuitive and clear visual effects. In addition, multi-level custom display is supported, and the display depth of the levels can be adjusted as needed. Through interface design, the relationship and distinction between levels are ensured to be clear and discernible.

[0098] In terms of display details, different colors can be used to represent different levels of information, and different colors can be used to distinguish levels, making the hierarchical relationship clearer and easier to identify, such as blue for level 1, yellow for level 2, green for level 3, and so on. Dynamic text size adjustment can also be performed, that is, the node content is displayed inside the physical circle. If the canvas is enlarged, the displayed text content is enlarged accordingly, and if the canvas is reduced, the displayed text content is reduced accordingly; or the excess text is automatically replaced with ellipsis, and the entire content is displayed when hovering; or text layout optimization is performed, that is, the distance between physical nodes needs to be calculated, and there is no overlap or intersection; after re-layout, it needs to be calculated again to meet the basic principle of "no overlap and no intersection" to ensure the correctness of the node position. Edge relationship optimization can also be performed to ensure that the associated edges do not overlap and intersect as much as possible, provide a clear visual display of the map, and directly display the associated relationship on the edge to enhance the user's understanding of the connectivity between nodes.

[0099] In the above display interface, the following functions are provided to facilitate the viewing and use of the knowledge graph. First, users can fold or expand the knowledge graph. Specifically, 2-3 layers of graph data can be expanded, and the folding function can be used to hide the content beyond this part of the hierarchy, so that the hierarchical relationship is clearer and the interface is simpler; users can freely expand the folded hierarchy to explore the deeper structure of the knowledge graph; in addition, the "+" or "-" sign is displayed in the interface, which is used to observe the "+" sign of each node to determine whether there is a next-level node before displaying the "+" sign; if there is no next-level node, there is no need to display the "+" or "-" sign. Second, users can zoom in or out of the knowledge graph. Specifically, the graph canvas area supports zooming in and out, and the mouse or touch screen gesture event is used to scroll the canvas to zoom in or out, so that the graph is displayed in a suitable visualization area to adapt to different screens or meet specific needs. Third, users can explore paths in the knowledge graph. Specifically, path exploration is divided into inter-node path exploration and multi-level path exploration. When performing inter-node path exploration, you can click on a node to display the path content related to the entity; when performing multi-level path exploration, the interface shows the user the association relationships of 2 to 8 layers at most. This path exploration function can help users understand the information in the knowledge graph more deeply. Fourth, users can perform keyword or entity search on the knowledge graph. Specifically, users can enter keywords to search, and the relevant nodes will be highlighted; support precise search or fuzzy search for keywords in nodes; support search of different characters such as Chinese, English, and numbers, and display upstream and downstream information and association relationships related to the nodes.

[0100] In an alternative embodiment, see Figure 2 As shown, Figure 2 The flowchart of the key frame extraction method provided by the first embodiment of the present invention is shown, wherein, for each teaching video, before extracting the text information of each key frame from each key frame in the teaching video, the method further includes steps S201 to S203:

[0101] S201: extracting a plurality of video frames from the teaching video at preset time intervals.

[0102] S202: Calculate the image similarity between every two video frames.

[0103] S203: performing deduplication processing on the multiple video frames extracted from the teaching video based on the image similarity between every two of the video frames to obtain key frames of the teaching video.

[0104] Specifically, multiple video frames are extracted from the teaching video at preset time intervals, and a deduplication strategy is used to perform similarity analysis on the extracted video frames, and duplicate or highly similar frames are removed according to the similarity analysis results to reduce redundant information. The similarity analysis method includes but is not limited to calculating the similarity sim(E, F) of two video frames (recorded as video frame E and video frame F) using a hash algorithm.

[0105] When performing video frame deduplication processing, the similarity sim(E, F) is calculated for all adjacent video frame combinations (E, F). If the similarity sim(E, F) is greater than a preset threshold, a to-be-deleted mark is added to the video frame F. After traversing all video frames, all video frames with to-be-deleted marks are deleted.

[0106] In an alternative embodiment, see Figure 3 As shown, Figure 3 A flowchart of a text information extraction method provided by the first embodiment of the present invention is shown, wherein the text information of each key frame is extracted from each key frame in the teaching video, including steps S301 to S302:

[0107] S301: Obtain a preset extraction position of text information.

[0108] Specifically, the location area where the text information to be extracted is located is preconfigured, and the location area is used as a preset extraction location for the text information.

[0109] S302: For each key frame of the teaching video, extract the text at the preset extraction position in the key frame as the text information of the key frame.

[0110] Specifically, the text at the preset extraction position in each key frame is extracted to obtain the text information of each key frame. When the text at the preset position is extracted, the extracted text information can also be classified according to the font size of the text. For example, the text with the largest font size is extracted as the title information, and the text with the smallest font size is extracted as the content information.

[0111] In an alternative embodiment, see Figure 4 As shown, Figure 4 A flowchart of a method for constructing a video knowledge graph provided by the first embodiment of the present invention is shown, wherein the video knowledge graph of the teaching video is constructed based on the knowledge points of each key frame and the association relationship between every two knowledge points of each key frame, including steps S401 to S402:

[0112] S401: Generate a single-frame knowledge graph of each key frame based on the knowledge points of each key frame and the association relationship between every two knowledge points of each key frame.

[0113] S402: Based on the content similarity between the nodes of the single-frame knowledge graphs of different key frames, the single-frame knowledge graphs of each key frame are integrated to obtain the video knowledge graph of the teaching video.

[0114] Specifically, the correlation relationship between two knowledge points includes but is not limited to causal relationship, parallel relationship, etc.

[0115] In an optional implementation scheme, for each key frame, each node in the single-frame knowledge graph of the key frame corresponds to each knowledge point of the key frame, and the logical relationship between every two nodes in the single-frame knowledge graph of the key frame corresponds to the association relationship between every two knowledge points.

[0116] In an alternative embodiment, see Figure 5 As shown, Figure 5 A flowchart of a specific method for constructing a video knowledge graph provided by the first embodiment of the present invention is shown, wherein the single-frame knowledge graphs of each key frame are integrated based on the content similarity between the nodes of the single-frame knowledge graphs of different key frames to obtain the video knowledge graph of the teaching video, including steps S501 to S503:

[0117] S501: For every two key frames, calculate the content similarity between the root node of the single-frame knowledge graph of the first key frame of the two key frames and the leaf node of the single-frame knowledge graph of the second key frame of the two key frames.

[0118] S502: Determine whether the content similarity between the root node of the single-frame knowledge graph of the first key frame of the two key frames and the leaf node of the single-frame knowledge graph of the second key frame of the two key frames exceeds a first preset threshold.

[0119] S503: If the content similarity between the root node of the single-frame knowledge graph of the first key frame of the two key frames and the leaf node of the single-frame knowledge graph of the second key frame of the two key frames exceeds a first preset threshold, the root node of the single-frame knowledge graph of the first key frame of the two key frames is integrated as a child node of the leaf node of the single-frame knowledge graph of the second key frame of the two key frames to obtain the video knowledge graph of the teaching video.

[0120] Specifically, for two key frames G and H, the content similarity between the root node of the single-frame knowledge graph of key frame G and the leaf node of the single-frame knowledge graph of key frame H is calculated. If the content similarity is greater than the first preset threshold, the single-frame knowledge graph of key frame G is attached to the leaf node of the single-frame knowledge graph of key frame H.

[0121] In an alternative embodiment, see Figure 6As shown, Figure 6 A flowchart of a video clustering method provided by the first embodiment of the present invention is shown, wherein the content similarity includes a text edit distance score, and the teaching videos are clustered based on the content similarity between the root nodes of the video knowledge graph of each two teaching videos to obtain multiple video clusters, including steps S601 to S603:

[0122] S601: For every two teaching videos, calculate the text edit distance score of the root node of the video knowledge graph of the two teaching videos.

[0123] S602: Determine whether the text editing distance score of the root node of the video knowledge graph of the two teaching videos exceeds a second preset threshold.

[0124] S603: If the text edit distance score of the root node of the video knowledge graph of the two teaching videos exceeds the second preset threshold, the two teaching videos are clustered as the same video cluster.

[0125] Specifically, the purpose of clustering is to group knowledge graphs with high similarity to facilitate users to search for similar content.

[0126] In addition, after completing the construction of the teaching video knowledge graph, the following adaptive recommendation method based on the knowledge graph can be used to push knowledge points to users. The adaptive recommendation method based on the knowledge graph is applied to the adaptive recommendation system, which comprehensively considers the personalized needs of users and historical learning data, accurately mines knowledge points that meet user needs from the knowledge graph, and makes personalized recommendations. The following are the detailed steps of the recommendation process.

[0127] Step 1: Preliminary recall of course videos using a path-based recommendation algorithm. First, the system starts from the relevant knowledge points and uses a path-based recommendation strategy to retrieve a video list containing the current node and its subordinate nodes. The video set P is defined as the knowledge point video P0 contained in the current node and the video set P of each of its child nodes. i -P n , P i is the video set of the i-th node, P n is the video set of the nth node, i and n are non-zero natural numbers, and n is the number of child nodes, that is, Then, a specific algorithm is used to calculate the relevance of each video to the current knowledge point to ensure the accuracy and relevance of the recommendation results.

[0128] Step 2: Perform a preliminary sorting of the videos. First, perform a preliminary sorting based on the matching degree of the number of knowledge points, giving priority to videos that contain more relevant knowledge points. Divide the videos into two categories: those with knowledge points in the title and those without knowledge points in the title. Prioritize videos with the current knowledge point in the title, and assign a basic weight of 0.6. Then, sort by the number of knowledge point hits. In each category of videos, further sort by the number of knowledge point hits. For example, if a specific knowledge point is mentioned multiple times in a course content, the video will be ranked higher.

[0129] Step 3: Sort by video viewing popularity. Count the number of people who have learned each video and sort them in descending order. This ensures that the recommended videos are not only relevant to the knowledge point, but also widely welcomed and recognized.

[0130] Step 4: Sort by learning status. Consider the user's personal learning status, such as the courses that have been taken and not taken, and further adjust the sorting. The courses that have been taken will be placed at the back of the list to provide new learning materials for students.

[0131] Step 5: Generation and display of the final video list. After the above multiple rounds of sorting, the system generates a video recommendation list containing the preset rankings (for example, the top 30). For videos with the same score, the system uses a random algorithm to arrange them to increase the diversity of recommendations.

[0132] This application is based on the construction method, display method and adaptive push method of the above-mentioned knowledge graph. By automating the construction of the knowledge graph through video, the learner's resource retrieval time can be significantly reduced, thereby improving learning efficiency. This solution helps learners find the required information faster, so that they can focus more on learning and understanding. And the use of video to build a knowledge graph not only improves the utilization value of video data, but also provides users with more accurate search and recommendation services. This means that users can find what they need more accurately, and the recommendation service can also provide more explanatory results. In addition, the video knowledge mining technology used in this application can automatically build a knowledge graph, thereby saving the cost of human annotation. This automated method reduces manual intervention, reduces costs, and also improves the efficiency of building a knowledge graph. At the same time, the construction process of the above-mentioned knowledge graph and the related systems of the application only need ordinary personnel to operate, and the graph construction can be completed without the participation of professional related personnel. This means that the system has high ease of use, can reduce dependence on professionals, thereby reducing operating costs. And the method of building a knowledge graph based on video is scalable and can be applied to other video learning scenarios. This versatility makes the solution have a wider application prospect and can meet the learning needs in different scenarios.

[0133] Embodiment 2

[0134] See also Figure 7 As shown, Figure 7 A schematic diagram of the structure of a teaching video knowledge graph construction device provided by the second embodiment of the present invention is shown, wherein the device includes:

[0135] The video set acquisition module 701 is used to acquire a teaching video set, wherein the teaching video set includes at least one teaching video;

[0136] The information extraction module 702 is used to extract text information of each key frame from each key frame in each teaching video;

[0137] The knowledge point analysis module 703 is used to perform entity recognition on the text information of each key frame to obtain the knowledge point of each key frame, and then perform relationship extraction on the knowledge points of each key frame to obtain the association relationship between every two knowledge points of each key frame;

[0138] The first knowledge graph construction module 704 is used to construct a video knowledge graph of the teaching video based on the knowledge points of each key frame and the association relationship between every two knowledge points of each key frame;

[0139] The video clustering module 705 is used to cluster the teaching videos based on the content similarity between the root nodes of the video knowledge graph of every two teaching videos to obtain multiple video clusters;

[0140] The second knowledge graph construction module 706 integrates the video knowledge graphs of each teaching video in the video cluster based on the content similarity between the root nodes of the video knowledge graphs of each two teaching videos in the video cluster to obtain the video cluster knowledge graph of the video cluster;

[0141] The third knowledge graph construction module 707 is used to integrate the video cluster knowledge graphs of each video cluster to obtain the video set knowledge graph of the teaching video set.

[0142] In an optional embodiment, the device further comprises:

[0143] A key frame acquisition module, used for extracting a plurality of video frames from the teaching video at a preset time interval before extracting text information of each key frame from each key frame in the teaching video;

[0144] Calculating the image similarity between every two video frames;

[0145] Based on the image similarity between every two of the video frames, a plurality of video frames extracted from the teaching video are deduplicated to obtain key frames of the teaching video.

[0146] In an optional implementation manner, extracting text information of each key frame from each key frame in the teaching video includes:

[0147] Get the preset extraction position of the text information;

[0148] For each key frame of the teaching video, the text at the preset extraction position in the key frame is extracted as the text information of the key frame.

[0149] In an optional implementation scheme, the video knowledge graph of the teaching video is constructed based on the knowledge points of each key frame and the association relationship between every two knowledge points of each key frame, including:

[0150] Generate a single-frame knowledge graph of each key frame based on the knowledge points of each key frame and the association relationship between every two knowledge points of each key frame;

[0151] Based on the content similarity between the nodes of the single-frame knowledge graphs of different key frames, the single-frame knowledge graphs of each key frame are integrated to obtain the video knowledge graph of the teaching video.

[0152] In an optional implementation scheme, for each key frame, each node in the single-frame knowledge graph of the key frame corresponds to each knowledge point of the key frame, and the logical relationship between every two nodes in the single-frame knowledge graph of the key frame corresponds to the association relationship between every two knowledge points.

[0153] In an optional implementation, the single-frame knowledge graphs of each key frame are integrated based on the content similarity between the nodes of the single-frame knowledge graphs of different key frames to obtain the video knowledge graph of the teaching video, including:

[0154] For every two key frames, calculate the content similarity between the root node of the single-frame knowledge graph of the first key frame of the two key frames and the leaf node of the single-frame knowledge graph of the second key frame of the two key frames;

[0155] Determine whether the content similarity between the root node of the single-frame knowledge graph of the first key frame of the two key frames and the leaf node of the single-frame knowledge graph of the second key frame of the two key frames exceeds a first preset threshold;

[0156] If the content similarity between the root node of the single-frame knowledge graph of the first key frame of the two key frames and the leaf node of the single-frame knowledge graph of the second key frame of the two key frames exceeds a first preset threshold, the root node of the single-frame knowledge graph of the first key frame of the two key frames is integrated as a child node of the leaf node of the single-frame knowledge graph of the second key frame of the two key frames to obtain the video knowledge graph of the teaching video.

[0157] In an optional embodiment, the content similarity includes a text edit distance score, and the teaching videos are clustered based on the content similarity between the root nodes of the video knowledge graph of every two teaching videos to obtain multiple video clusters, including:

[0158] For every two teaching videos, calculate the text edit distance score of the root node of the video knowledge graph of the two teaching videos;

[0159] Determine whether the text edit distance score of the root node of the video knowledge graph of the two teaching videos exceeds a second preset threshold;

[0160] If the text editing distance score of the root node of the video knowledge graph of the two teaching videos exceeds the second preset threshold, the two teaching videos are clustered as the same video cluster.

[0161] Embodiment 3

[0162] Based on the same application concept, see Figure 8 As shown, Figure 8 FIG. 4 shows a schematic diagram of the structure of a computer device provided by Embodiment 3 of the present invention, wherein: Figure 8 As shown, a computer device 800 provided in Embodiment 3 of the present application includes:

[0163] A processor 801, a memory 802 and a bus 803, wherein the memory 802 stores machine-readable instructions executable by the processor 801. When the computer device 800 is running, the processor 801 communicates with the memory 802 via the bus 803. When the processor 801 is running, the machine-readable instructions execute the steps of the teaching video knowledge graph construction method shown in the above-mentioned embodiment 1.

[0164] Embodiment 4

[0165] Based on the same application concept, 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, the steps of the teaching video knowledge graph construction method described in any of the above embodiments are executed.

[0166] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the system and device described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.

[0167] The computer program product for constructing a teaching video knowledge graph provided in an embodiment of the present invention includes a computer-readable storage medium storing program code. The instructions included in the program code can be used to execute the method described in the previous method embodiment. The specific implementation can be found in the method embodiment, which will not be repeated here.

[0168] The teaching video knowledge graph construction device provided in the embodiment of the present invention can be specific hardware on the device or software or firmware installed on the device. The implementation principle and technical effects of the device provided in the embodiment of the present invention are the same as those of the aforementioned method embodiment. For the sake of brief description, the parts not mentioned in the system embodiment can refer to the corresponding contents in the aforementioned method embodiment. Technical personnel in the relevant field can clearly understand that for the convenience and simplicity of description, the specific working processes of the systems, devices and units described above can all refer to the corresponding processes in the aforementioned method embodiment, and will not be repeated here.

[0169] In the embodiments provided by the present invention, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, and the indirect coupling or communication connection of devices or units can be electrical, mechanical or other forms.

[0170] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0171] In addition, each functional unit in the embodiment provided by the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0172] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc., which can store program codes.

[0173] It should be noted that similar numbers and letters represent similar items in the following figures. Therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures. In addition, the terms "first", "second", "third", etc. are only used to distinguish the description and are not to be understood as indicating or implying relative importance.

[0174] Finally, it should be noted that the above-described embodiments are only specific implementations of the present invention, which are used to illustrate the technical solutions of the present invention, rather than to limit them. The protection scope of the present invention is not limited thereto. Although the present invention is described in detail with reference to the above-described embodiments, those skilled in the art should understand that any person skilled in the art can still modify the technical solutions described in the above-described embodiments within the technical scope disclosed by the present invention, or can easily think of changes, or perform equivalent replacements on some of the technical features thereof; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention. They should all be covered within the protection scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims

1. A method for constructing a teaching video knowledge graph, characterized in that: The method comprises: Acquire a teaching video set, wherein the teaching video set includes at least one teaching video; For each teaching video, extract the text information of each key frame from each key frame in the teaching video; Perform entity recognition on the text information of each key frame to obtain the knowledge points of each key frame, and then perform relationship extraction on the knowledge points of each key frame to obtain the association relationship between every two knowledge points of each key frame; Construct a video knowledge graph of the teaching video based on the knowledge points of each key frame and the association relationship between every two knowledge points of each key frame; Based on the content similarity between the root nodes of the video knowledge graph of each two teaching videos, each teaching video is clustered to obtain multiple video clusters; For each video cluster, based on the content similarity between the root nodes of the video knowledge graphs of every two teaching videos in the video cluster, the video knowledge graphs of each teaching video in the video cluster are integrated to obtain the video cluster knowledge graph of the video cluster; The video cluster knowledge graphs of each video cluster are integrated to obtain the video set knowledge graph of the teaching video set.

2. The method according to claim 1, characterized in that For each teaching video, before extracting text information of each key frame from each key frame in the teaching video, the method further includes: Extracting a plurality of video frames from the teaching video at preset time intervals; Calculating the image similarity between every two video frames; Based on the image similarity between every two of the video frames, a plurality of video frames extracted from the teaching video are deduplicated to obtain key frames of the teaching video.

3. The method according to claim 1, characterized in that The step of extracting text information of each key frame from each key frame in the teaching video comprises: Get the preset extraction position of the text information; For each key frame of the teaching video, the text at the preset extraction position in the key frame is extracted as the text information of the key frame.

4. The method according to claim 1, characterized in that: The video knowledge graph of the teaching video is constructed based on the knowledge points of each key frame and the association relationship between every two knowledge points of each key frame, including: Generate a single-frame knowledge graph of each key frame based on the knowledge points of each key frame and the association relationship between every two knowledge points of each key frame; Based on the content similarity between the nodes of the single-frame knowledge graphs of different key frames, the single-frame knowledge graphs of each key frame are integrated to obtain the video knowledge graph of the teaching video.

5. The method according to claim 4, characterized in that For each key frame, each node in the single-frame knowledge graph of the key frame corresponds to each knowledge point of the key frame, and the logical relationship between every two nodes in the single-frame knowledge graph of the key frame corresponds to the association relationship between every two knowledge points.

6. The method according to claim 4, characterized in that The single-frame knowledge graphs of each key frame are integrated based on the content similarity between the nodes of the single-frame knowledge graphs of different key frames to obtain the video knowledge graph of the teaching video, including: For every two key frames, calculate the content similarity between the root node of the single-frame knowledge graph of the first key frame of the two key frames and the leaf node of the single-frame knowledge graph of the second key frame of the two key frames; Determine whether the content similarity between the root node of the single-frame knowledge graph of the first key frame of the two key frames and the leaf node of the single-frame knowledge graph of the second key frame of the two key frames exceeds a first preset threshold; If the content similarity between the root node of the single-frame knowledge graph of the first key frame of the two key frames and the leaf node of the single-frame knowledge graph of the second key frame of the two key frames exceeds a first preset threshold, the root node of the single-frame knowledge graph of the first key frame of the two key frames is integrated as a child node of the leaf node of the single-frame knowledge graph of the second key frame of the two key frames to obtain the video knowledge graph of the teaching video.

7. The method according to claim 1, characterized in that The content similarity includes a text edit distance score, and the teaching videos are clustered based on the content similarity between the root nodes of the video knowledge graph of each two teaching videos to obtain multiple video clusters, including: For every two teaching videos, calculate the text edit distance score of the root node of the video knowledge graph of the two teaching videos; Determine whether the text edit distance score of the root node of the video knowledge graph of the two teaching videos exceeds a second preset threshold; If the text editing distance score of the root node of the video knowledge graph of the two teaching videos exceeds the second preset threshold, the two teaching videos are clustered as the same video cluster.

8. A teaching video knowledge graph construction device, characterized in that: The device comprises: A video set acquisition module, used to acquire a teaching video set, wherein the teaching video set includes at least one teaching video; The information extraction module is used to extract the text information of each key frame from each key frame in each teaching video; The knowledge point analysis module is used to perform entity recognition on the text information of each key frame to obtain the knowledge point of each key frame, and then perform relationship extraction on the knowledge points of each key frame to obtain the association relationship between every two knowledge points of each key frame; A first knowledge graph construction module is used to construct a video knowledge graph of the teaching video based on the knowledge points of each key frame and the association relationship between every two knowledge points of each key frame; A video clustering module is used to cluster each teaching video based on the content similarity between the root nodes of the video knowledge graph of each two teaching videos to obtain multiple video clusters; The second knowledge graph construction module integrates the video knowledge graphs of each teaching video in the video cluster based on the content similarity between the root nodes of the video knowledge graphs of every two teaching videos in the video cluster to obtain the video cluster knowledge graph of the video cluster; The third knowledge graph construction module is used to integrate the video cluster knowledge graphs of each video cluster to obtain the video set knowledge graph of the teaching video set.

9. A computer device, characterized in that: include: A processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor. When the computer device is running, the processor and the memory communicate through the bus. When the machine-readable instructions are executed by the processor, the steps of the teaching video knowledge graph construction method as described in any one of claims 1 to 7 are performed.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, which, when executed by a processor, executes the steps of the method for constructing a teaching video knowledge graph as described in any one of claims 1 to 7.