A knowledge graph-based dialogue scene data visualization analysis method and system

By using a knowledge graph-based method for visualizing and analyzing dialogue scenarios, a knowledge subgraph is constructed and multi-dimensional analysis is performed to generate a semantic relationship graph, a process path graph, and a hotspot distribution graph. This solves the problems of incomplete semantic understanding and insufficient dynamic tracking in existing dialogue data analysis technologies, and achieves efficient visualization and real-time feedback of dialogue scenarios.

CN121093979BActive Publication Date: 2026-04-17GUANGDONG XUANRUN DIGITAL INFORMATION TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
GUANGDONG XUANRUN DIGITAL INFORMATION TECH CO LTD
Filing Date
2025-10-09
Publication Date
2026-04-17

AI Technical Summary

Technical Problem

Existing dialogue data analysis technologies do not adequately handle the relationships between user intent, topic nodes, and context, resulting in incomplete semantic understanding. The analysis results lack semantic relationship visualization based on knowledge graphs, cannot intuitively display the dialogue flow path and hotspot distribution, and cannot achieve dynamic tracking and real-time feedback.

Method used

A visualization analysis method for dialogue scenario data based on knowledge graphs is used. By acquiring dialogue scenario data, performing word segmentation and semantic parsing, extracting keywords and contextual tags, constructing knowledge subgraphs, conducting multi-dimensional analysis, generating semantic relationship graphs, process path graphs, and hotspot distribution graphs, and using incremental updates to achieve dynamic adjustments.

Benefits of technology

It enables a visualized panoramic presentation of dialogue scenarios, enhances the ability to understand dialogue scenarios, helps discover core intentions, abnormal paths and user hotspots, and improves the efficiency and accuracy of dialogue optimization and decision support.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121093979B_ABST
    Figure CN121093979B_ABST
Patent Text Reader

Abstract

The application discloses a kind of knowledge graph-based dialogue scene data visualization analysis method and system, it is related to data visualization analysis technical field, including: obtaining dialogue scene data and context attribute, from the knowledge subgraph of related entity node and relationship edge construction knowledge graph extracted in advance, dialogue data and knowledge subgraph are fused to obtain dialogue semantic structure data, based on the data node importance analysis, semantic path analysis and intention clustering analysis generation analysis result set, and respectively construct dialogue semantic relationship diagram, dialogue flow path diagram and dialogue hotspot distribution diagram, through unified coordinate mapping and weighted fusion generation comprehensive visualization analysis result, simultaneously to the incremental dialogue data using incremental updating mode dynamically adjusts local semantic structure and visualization result, to realize the real-time monitoring of dialogue scene, mode identification, semantic evolution accurate tracking and intelligent visualization display.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of data visualization and analysis technology, specifically to a method and system for data visualization and analysis of dialogue scenarios based on knowledge graphs. Background Technology

[0002] In various business scenarios such as intelligent customer service, online education, and financial consulting, a large amount of dialogue data between users and systems is constantly generated and accumulated. How to efficiently analyze this dialogue data has become an important way to improve service quality, optimize interactive experience, and support business decision-making. Knowledge graphs, due to their advantages in semantic modeling and relational expression, are widely used in dialogue systems to support intent recognition, contextual understanding, and multi-turn interactions. However, as the scale and complexity of dialogue data increase, relying solely on traditional text retrieval and statistical analysis methods is insufficient to meet the needs for in-depth understanding and multi-dimensional analysis of dialogue data.

[0003] Existing dialogue data analysis techniques still have shortcomings in application. On the one hand, the relationships between user intent, topic nodes, and context in dialogue scenarios are often insufficiently processed, leading to incomplete semantic understanding and affecting the accuracy of dialogue data analysis. On the other hand, the analysis results of existing systems are mostly presented in the form of static charts or reports, lacking knowledge graph-based visualization of semantic relationships, and failing to intuitively display dialogue flow paths, semantic connections, and hotspot distribution. Furthermore, with the continuous addition of new dialogue data, existing methods lag in updating and displaying analysis results, failing to achieve dynamic tracking and real-time feedback. Therefore, there is a need to provide a knowledge graph-based method and system for the visualization and analysis of dialogue scenario data to address the above problems. Summary of the Invention

[0004] To address the aforementioned technical problems, this paper provides a knowledge graph-based method and system for visualizing and analyzing dialogue scenario data. This solution resolves the shortcomings of existing dialogue data analysis techniques mentioned in the background. On one hand, the relationships between user intent, topic nodes, and context in dialogue scenarios are often insufficiently processed, leading to incomplete semantic understanding and affecting the accuracy of dialogue data analysis. On the other hand, existing systems primarily present analysis results in static charts or reports, lacking knowledge graph-based visualization of semantic relationships and failing to intuitively display dialogue flow paths, semantic connections, and hotspot distribution. Furthermore, existing methods lag in updating and displaying analysis results in the face of continuously increasing new dialogue data, failing to achieve dynamic tracking and real-time feedback.

[0005] To achieve the above objectives, the technical solution adopted by the present invention is as follows:

[0006] A knowledge graph-based method for visualizing and analyzing dialogue scenarios, comprising:

[0007] Acquire dialogue scenario data, which includes user input information, system response information, and context attributes;

[0008] The dialogue scenario data is segmented and semantically parsed to extract keywords, topic words and context labels. The corresponding entity nodes and relationship edges are extracted from the pre-built knowledge graph to construct a knowledge subgraph corresponding to the dialogue scenario.

[0009] The dialogue scenario data is fused with the knowledge subgraph to obtain dialogue semantic structure data, which includes instantiated user intent nodes, instantiated topic nodes and their contextual relationships.

[0010] Multi-dimensional analysis is performed based on dialogue semantic structure data to obtain a set of analysis results. The multi-dimensional analysis includes node importance analysis, dialogue path analysis, and intent clustering analysis.

[0011] Based on the set of analysis results, the node importance analysis results, dialogue path analysis results, and intent clustering analysis results are extracted. Dialogue semantic relationship graph, dialogue flow path graph, and dialogue hotspot distribution graph are constructed respectively. The dialogue semantic relationship graph, dialogue flow path graph, and dialogue hotspot distribution graph are then subjected to unified coordinate mapping and weighted fusion to obtain visualized analysis results.

[0012] When new dialogue scenario data is input, the newly added related nodes and relation edges in the knowledge graph are extracted using an incremental update method, the local semantic structure is updated and recalculated, and the visualization analysis results are dynamically adjusted.

[0013] In an optional embodiment, the step of segmenting and semantically parsing the dialogue scenario data, extracting keywords, topic terms, and context labels, and extracting corresponding entity nodes and relation edges from a pre-built knowledge graph to construct a knowledge subgraph corresponding to the dialogue scenario specifically includes:

[0014] Collect human customer service dialogue records, online customer service system conversation records, and multi-round historical dialogue data to obtain dialogue scenario data. The dialogue scenario data includes user input information, system response information, and context attributes. The context attributes include dialogue round information, speaker markers, timestamps, and dialogue scenario tags.

[0015] The dialogue scene data is segmented into words and normalized using synonyms to obtain a word sequence;

[0016] Hierarchical semantic analysis is performed on word sequences to extract keywords, thematic terms, and contextual tags;

[0017] Organize keywords, topic terms, and context tags into keyword sets, topic term sets, and context tag sets, respectively.

[0018] A knowledge graph is pre-constructed, which includes user intent entities, topic entities, and scene entities, as well as semantic relationships, contextual dependencies, and topic associations.

[0019] Based on the keyword set, topic term set, and context tag set, extract the corresponding entity nodes and relationship edges from the pre-built knowledge graph;

[0020] Based on the context label set, the extracted entity nodes and relation edges are pruned and semantically consistent, retaining only nodes and relation edges that are relevant to the current dialogue context and semantically consistent. A knowledge subgraph corresponding to the current dialogue scenario is constructed. The knowledge subgraph consists of user intent entities, topic entities, and scene entities related to the current dialogue scenario as nodes, and semantic relations, contextual dependencies, and topic associations related to the current dialogue scenario as relation edges.

[0021] In an optional embodiment, the step of fusing dialogue scenario data with knowledge subgraphs to obtain dialogue semantic structure data specifically includes:

[0022] Extract the corresponding dialogue text based on the user input information in the dialogue scenario data;

[0023] Semantic features are extracted from the dialogue text, and the semantic features are mapped into semantic vectors through a pre-trained semantic embedding model;

[0024] The semantic vector is compared with the vector representation of the user intent entity in the knowledge subgraph. Based on the user intent entity with the highest similarity, an instantiated user intent node is generated.

[0025] Based on the system response information in the dialogue scenario data, obtain the response text and extract the topic words from the response text;

[0026] The topic words are matched with the topic entities in the knowledge subgraph, and semantic consistency is checked. Based on the check results, the corresponding instantiated topic nodes are generated.

[0027] Based on contextual attributes and combined with contextual dependencies in the knowledge subgraph, a temporal dependency modeling approach is adopted to establish contextual relationships between instantiated user intent nodes and instantiated topic nodes, and to supplement the contextual relationships with potential semantic associations between instantiated user intent nodes and instantiated topic nodes.

[0028] The instantiated user intent nodes, instantiated topic nodes, and their contextual relationships are structured and encoded to form dialogue semantic structure data.

[0029] In an optional embodiment, the multi-dimensional analysis based on the dialogue semantic structure data to obtain a set of analysis results specifically includes:

[0030] Based on the instantiated user intent nodes and instantiated topic nodes in the dialogue semantic structure data, obtain node connection information;

[0031] Based on the analysis of node connection information, the semantic path co-occurrence of nodes is analyzed to obtain the path co-occurrence features of nodes;

[0032] The path co-occurrence features and the historical interaction features of instantiated user intent nodes and instantiated topic nodes are numerically processed to obtain node quantification indicators. The historical interaction features include the frequency of node occurrence in historical dialogues, the number of times nodes co-occur, and the frequency of node-triggered user operations.

[0033] Numerical processing is performed on the contextual relationship attributes between instantiated nodes to obtain a quantitative index of relationship edges. The contextual relationship attributes include semantic relevance and contextual dependency.

[0034] Calculate the connection strength of a node based on its node quantification index and its relation edge quantification index;

[0035] Calculate the importance score of a node based on its connection strength and node quantification metrics.

[0036] The node importance index is calculated based on the connection strength and importance scores;

[0037] Based on the preset division rules of node importance indicators, nodes are divided into key nodes and auxiliary nodes, and the node importance analysis results are formed by comparing the distribution differences of node importance indicators.

[0038] Based on the contextual relationships in the dialogue semantic structure data, extract the semantic path between the instantiated user intent node and the instantiated topic node;

[0039] The complexity coefficient is obtained by evaluating factors related to the number of nodes, node types, and relationship types in the semantic path.

[0040] The semantic path is calculated for path length, and the complexity of the path is evaluated by combining the complexity coefficient, thereby generating path feature indicators.

[0041] The paths are classified according to their characteristic indicators to obtain the main paths and abnormal paths, thus forming the dialogue path analysis results.

[0042] Semantic similarity is calculated for instantiated user intent nodes in the knowledge subgraph to obtain the intent similarity matrix;

[0043] Clustering of instantiated user intent nodes is performed based on intent similarity matrix. The node importance index corresponding to each instantiated user intent node is used as the node weight. The intent clustering index is calculated based on the node weight of each instantiated user intent node in the clustering result.

[0044] Intent distribution characteristics are extracted based on intent clustering indicators to form intent clustering analysis results;

[0045] The results of node importance analysis, dialogue path analysis, and intent clustering analysis are combined to generate a set of analysis results for subsequent visualization.

[0046] The formula for calculating the node importance index is as follows:

[0047] ;

[0048] In the formula, For the first The node importance index of each node. For the first The node and the first The connection strength of each node For the first The importance score of each node In order to be with the first The total number of nodes associated with each node;

[0049] The formula for calculating the path index is as follows:

[0050] ;

[0051] In the formula, For the first Semantic path feature indicators Let k be the length of the k-th path. Let be the complexity coefficient of the k-th path;

[0052] The formula for calculating the intent clustering index is as follows:

[0053] ;

[0054] In the formula, For the first The intention clustering metric for each cluster. For the first The node weight of each instantiated user intent node. For the first The total number of instantiated user intent nodes in each cluster.

[0055] In an optional embodiment, based on the analysis result set, the node importance analysis results, dialogue path analysis results, and intent clustering analysis results are extracted to construct a dialogue semantic relationship graph, a dialogue flow path graph, and a dialogue hotspot distribution graph, respectively. The dialogue semantic relationship graph, dialogue flow path graph, and dialogue hotspot distribution graph are then subjected to unified coordinate mapping and weighted fusion to obtain visualized analysis results, specifically including:

[0056] Based on the set of analysis results, extract the node importance analysis results, dialogue path analysis results, and intent clustering analysis results;

[0057] Based on the node importance analysis results, key nodes and auxiliary nodes are mapped to graph nodes, and the size, color and transparency of the graph nodes are adjusted with semantic weight as a reference to obtain the dialogue semantic relationship graph.

[0058] Based on the dialogue path analysis results, the main path and abnormal path are mapped into a path graph structure, and the path lines are rendered differently based on the path length and complexity to obtain the dialogue flow path graph.

[0059] Based on the intent clustering analysis results, the set of instantiated user intent nodes within each cluster is mapped to the corresponding hotspot distribution area;

[0060] The hotspot areas are associated with the corresponding scene nodes in the knowledge subgraph. The scene nodes are displayed as background annotations and the instantiated user intent nodes they cover are shown by connecting them.

[0061] For each hotspot distribution area, calculate the intent concentration and intent dispersion of instantiated user intent nodes within the area;

[0062] Intent concentration and dispersion are used as indicators and mapped to color depth or transparency through heat maps to identify core intent areas and peripheral intent areas, thereby generating a dialogue hotspot distribution map.

[0063] The dialogue semantic relationship graph, dialogue flow path graph, and dialogue hotspot distribution graph are projected onto a unified visualization coordinate system to maintain the consistency of nodes, paths, and hotspot areas.

[0064] The overlapping areas of the three types of images are weighted, fused, and compared to generate a comprehensive visualization, which serves as the final visualization analysis result.

[0065] The formula for calculating the intent concentration is as follows:

[0066] ;

[0067] In the formula, Hotspots are divided into different regions The degree of intent concentration hotspot areas The collection of instantiated user intent nodes within. To instantiate the user intent node Frequency of occurrence The weights of instantiated user intent nodes within the hotspot area. This represents the total number of nodes within the region.

[0068] The formula for calculating the intention dispersion is as follows:

[0069] ;

[0070] In the formula, hotspot areas The intentional dispersion.

[0071] In an optional embodiment, when new dialogue scenario data is input, the incremental update method is used to extract newly added associated nodes and relation edges in the knowledge graph, update and recalculate the local semantic structure, and dynamically adjust the visualization analysis results, specifically including:

[0072] When new dialogue scenario data is input, the newly added related nodes and relation edges in the knowledge graph are dynamically extracted using an incremental update method. Without reconstructing the overall semantic structure, the affected local semantic regions are selectively adjusted to obtain the updated dialogue semantic structure data.

[0073] Based on the updated dialogue semantic structure data, the corresponding node importance index, path index and intent clustering index are recalculated, and incremental analysis results are generated through difference comparison.

[0074] When generating visualization analysis results, an incremental merging mechanism is introduced to only refresh the affected semantic nodes, paths and hotspot areas locally, while maintaining the visualization stability of the unchanged parts.

[0075] This incremental merging and local refresh process enables dynamic updates to the dialogue semantic relationship graph, dialogue flow path graph, and dialogue hotspot distribution graph, thereby ensuring the real-time and continuous nature of the visualization results.

[0076] Furthermore, a knowledge graph-based dialogue scenario data visualization and analysis system is proposed to implement the analysis methods described above, including:

[0077] The main control module is used to receive dialogue scenario data and analysis results transmitted by each functional module through the data transmission module, process and analyze the received data, and control the operation of each functional module according to the processing results.

[0078] The data acquisition module is used to acquire dialogue scenario data, including user input information, system response information and context attributes, and transmit the data to the main control module.

[0079] The knowledge graph processing module is used to perform word segmentation and semantic parsing on dialogue scenario data, extract keywords, topic words and context labels, and extract corresponding entity nodes and relation edges from the pre-built knowledge graph to construct a knowledge subgraph corresponding to the dialogue scenario.

[0080] A semantic structure generation module is used to fuse dialogue scenario data with knowledge subgraphs to generate dialogue semantic structure data, including instantiated user intent nodes, instantiated topic nodes and their contextual relationships.

[0081] The analysis module is used to perform multi-dimensional analysis based on dialogue semantic structure data, obtain node importance analysis results, dialogue path analysis results and intent clustering analysis results, and generate a set of analysis results.

[0082] The visualization module is used to generate a dialogue semantic relationship graph, a dialogue flow path graph, and a dialogue hotspot distribution graph based on the analysis result set, and to perform unified coordinate mapping and weighted fusion on the three types of graphs to obtain the visualization analysis results.

[0083] The incremental update module is used to dynamically update knowledge graph nodes and relation edges, recalculate local semantic structures, and dynamically adjust visualization analysis results when new dialogue scenario data is input.

[0084] In an optional embodiment, the main control module includes:

[0085] The data receiving unit is used to receive dialogue data and analysis results from the data acquisition module, knowledge graph processing module, semantic structure generation module, analysis module, and visualization module.

[0086] The data processing unit is used to preprocess, structure, and extract features from the received dialogue data, and provide the processing results to the analysis module and the visualization module.

[0087] The control unit is used to control the operation status of the data acquisition module, knowledge graph processing module, semantic structure generation module, analysis module, visualization module, and incremental update module based on the analysis results and visualization feedback.

[0088] In an optional embodiment, the visualization module includes:

[0089] A semantic relationship graph generation unit is used to map key nodes and auxiliary nodes into graphical nodes based on the node importance analysis results, and adjust the size, color and transparency of the graphical nodes with semantic weights to generate a dialogue semantic relationship graph.

[0090] The dialogue flow path diagram generation unit is used to map the main path and abnormal path into a path diagram structure based on the dialogue path analysis results, and to perform differentiated rendering of the path lines based on the path length and complexity, thereby generating a dialogue flow path diagram.

[0091] A dialogue hotspot distribution map generation unit is used to map instantiated user intent nodes within each cluster to hotspot areas based on intent clustering analysis results, and calculate intent concentration and dispersion by combining node weights, thereby generating a dialogue hotspot distribution map through heat mapping.

[0092] The visualization fusion unit is used to project the dialogue semantic relationship graph, dialogue flow path graph and dialogue hotspot distribution graph onto a unified coordinate system, and perform weighted fusion and difference comparison to generate a comprehensive visualization analysis result.

[0093] In an optional embodiment, the analysis module includes:

[0094] The node importance analysis unit is used to calculate the node connection strength and importance score based on the node connection information in the dialogue semantic structure data and the node's own historical interaction characteristics, and generate the node importance analysis results.

[0095] The dialogue path analysis unit is used to extract the semantic path between the user intent node and the topic node, calculate the path length and complexity, identify the main path and abnormal path, and generate dialogue path analysis results.

[0096] The intent clustering analysis unit is used to calculate the semantic similarity of user intent nodes, perform clustering analysis, generate intent indicators, and output intent clustering analysis results.

[0097] The incremental analysis unit is used to partially refresh only the affected nodes, paths, and clusters when new dialogue scenario data is input, and generate incremental analysis results to update the visualization display.

[0098] Compared with the prior art, the beneficial effects of the present invention are:

[0099] This solution proposes a knowledge graph-based method and system for visualizing and analyzing dialogue scenarios. It integrates user input, system responses, and contextual attributes to construct a knowledge subgraph containing user intent, topic entities, and contextual relationships, enabling the generation of instantiated nodes and relationships within the dialogue's semantic structure. The analysis process does not rely on human experience or fixed rules, dynamically reflecting dialogue paths, node importance, and intent distribution characteristics. Through multi-dimensional analysis, it generates semantic relationship graphs, flow path graphs, and hotspot distribution graphs, achieving a comprehensive visual representation of the dialogue scenario. This enhances the ability to understand dialogue scenarios, assists in discovering core intents, abnormal paths, and user-focused hotspots, and improves the efficiency and accuracy of dialogue optimization and decision support. Attached Figure Description

[0100] Figure 1 This is a flowchart of a knowledge graph-based data visualization and analysis method for dialogue scenarios proposed in this invention.

[0101] Figure 2 A flowchart for generating the semantic structure in this invention;

[0102] Figure 3 This is a flowchart of the visualization analysis in this invention;

[0103] Figure 4 This is a system framework diagram of a knowledge graph-based dialogue scenario data visualization and analysis system proposed in this invention. Detailed Implementation

[0104] The following description is intended to disclose the invention and enable those skilled in the art to implement it. The preferred embodiments described below are merely examples, and other obvious variations will occur to those skilled in the art.

[0105] Reference Figure 1 - Figure 4 As shown in the figure, an embodiment of the present invention provides a knowledge graph-based method for visualizing and analyzing dialogue scenario data, comprising:

[0106] Acquire dialogue scenario data, which includes user input information, system response information, and context attributes;

[0107] The dialogue scenario data is segmented and semantically parsed to extract keywords, topic words and context labels. The corresponding entity nodes and relationship edges are extracted from the pre-built knowledge graph to construct a knowledge subgraph corresponding to the dialogue scenario.

[0108] The dialogue scenario data is fused with the knowledge subgraph to obtain the dialogue semantic structure data, which includes instantiated user intent nodes, instantiated topic nodes and their contextual relationships.

[0109] Multi-dimensional analysis is performed based on dialogue semantic structure data to obtain a set of analysis results. The multi-dimensional analysis includes node importance analysis, dialogue path analysis, and intent clustering analysis.

[0110] Based on the set of analysis results, the node importance analysis results, dialogue path analysis results, and intent clustering analysis results are extracted. Dialogue semantic relationship graph, dialogue flow path graph, and dialogue hotspot distribution graph are constructed respectively. The dialogue semantic relationship graph, dialogue flow path graph, and dialogue hotspot distribution graph are then subjected to unified coordinate mapping and weighted fusion to obtain visualized analysis results.

[0111] When new dialogue scenario data is input, the newly added related nodes and relation edges in the knowledge graph are extracted using an incremental update method, the local semantic structure is updated and recalculated, and the visualization analysis results are dynamically adjusted.

[0112] Furthermore, the dialogue scenario data is segmented and semantically parsed to extract keywords, topic terms, and contextual tags. Corresponding entity nodes and relational edges are extracted from a pre-built knowledge graph to construct a knowledge subgraph corresponding to the dialogue scenario. Specifically, this includes:

[0113] Collect human customer service dialogue records, online customer service system conversation records, and multi-round historical dialogue data to obtain dialogue scenario data. Dialogue scenario data includes user input information, system response information, and contextual attributes. Contextual attributes include dialogue round information, speaker markers, timestamps, and dialogue scenario tags.

[0114] Specifically, dialogue scenario data is obtained by collecting records of human customer service conversations, online customer service system sessions, and multi-round historical dialogue data. Each dialogue data entry includes user input and system responses, as well as contextual attributes. These attributes describe the contextual information of the dialogue, specifically including dialogue round information, speaker markers, timestamps, and dialogue scenario tags. Dialogue round information indicates the order of information within a single dialogue and can be directly obtained from the original dialogue records or system logs in chronological order. Speaker markers distinguish between users and customer service representatives and can be extracted from the role field in the dialogue records. Timestamps indicate the specific time the information was sent or received and can be directly read from the time field of the dialogue records. Dialogue scenario tags identify the business scenario to which the dialogue content belongs and can be obtained through the classification field in the dialogue records or by combining rules / human annotation. In this way, each dialogue data entry carries complete contextual attributes, providing a foundation for subsequent knowledge graph construction, semantic structure generation, and visualization analysis.

[0115] The dialogue scene data is segmented into words and normalized using synonyms to obtain a word sequence;

[0116] Hierarchical semantic analysis is performed on word sequences to extract keywords, thematic terms, and contextual tags;

[0117] Organize keywords, topic terms, and context tags into keyword sets, topic term sets, and context tag sets, respectively.

[0118] A knowledge graph is pre-built, which includes user intent entities, topic entities, and scene entities, as well as semantic relationships, contextual dependencies, and topic associations.

[0119] Based on the keyword set, topic term set, and context tag set, extract the corresponding entity nodes and relationship edges from the pre-built knowledge graph;

[0120] Based on the context label set, the extracted entity nodes and relation edges are pruned and semantically consistent. Only nodes and relation edges that are relevant to the current dialogue context and semantically consistent are retained. A knowledge subgraph corresponding to the current dialogue scenario is constructed. The knowledge subgraph consists of user intent entities, topic entities and scene entities related to the current dialogue scenario as nodes, and semantic relations, contextual dependencies and topic associations related to the current dialogue scenario as relation edges.

[0121] Specifically, after initially organizing the entity nodes and relation edges extracted from the knowledge graph, a context label set is introduced for pruning and semantic consistency constraints. First, based on the context label set corresponding to the dialogue data (e.g., "account information query," "account security management," "payment issue handling"), candidate nodes and relation edges semantically relevant to the current context are selected. Then, the semantic attributes of the candidate nodes are compared with the context labels. If the semantics are inconsistent or lack relevance, the node and its related relation edges are pruned from the current subgraph. For nodes with ambiguous or unclear semantics, only nodes and relation edges with semantic consistency higher than a preset threshold are retained based on contextual dependencies. Through this process, the constructed knowledge subgraph can maintain integrity while focusing on semantic information relevant to the current dialogue scenario, avoiding redundant nodes and thus improving the accuracy of subsequent semantic structure generation and analysis.

[0122] Furthermore, the dialogue scenario data is fused with the knowledge subgraph to obtain the dialogue semantic structure data, specifically including:

[0123] Extract the corresponding dialogue text based on the user input information in the dialogue scenario data;

[0124] Semantic features are extracted from the dialogue text, and the semantic features are mapped into semantic vectors through a pre-trained semantic embedding model;

[0125] The semantic vector is compared with the vector representation of the user intent entity in the knowledge subgraph. Based on the user intent entity with the highest similarity, an instantiated user intent node is generated.

[0126] Based on the system response information in the dialogue scenario data, obtain the response text and extract the topic words from the response text;

[0127] The topic words are matched with the topic entities in the knowledge subgraph, and semantic consistency is checked. Based on the check results, the corresponding instantiated topic nodes are generated.

[0128] Based on contextual attributes and combined with contextual dependencies in the knowledge subgraph, a temporal dependency modeling approach is adopted to establish contextual relationships between instantiated user intent nodes and instantiated topic nodes, and to supplement the contextual relationships with potential semantic associations between instantiated user intent nodes and instantiated topic nodes.

[0129] Understandably, the first step is to extract the corresponding dialogue text based on the user input information in the dialogue scenario data. For example, if a user inputs "I want to change the bound mobile phone number," the system will use this input as the dialogue text. Then, semantic features are extracted from this text to obtain lexical features, dependency relation features, etc., and these semantic features are mapped into semantic vector representations using pre-trained semantic embedding models (such as BERT, Word2Vec, etc.).

[0130] Subsequently, the semantic vector is compared with the vector representations of existing user intent entities in the knowledge subgraph to calculate their similarity, finding the user intent entity that is closest to the input semantics (e.g., "modify account information"). Based on the entity with the highest similarity, an instantiated user intent node corresponding to the current dialogue is generated, thereby clarifying the user's current intent.

[0131] Next, based on the system response information in the dialogue scenario data, the response text is obtained and the topic words are extracted. For example, when the system responds "Please provide a new mobile phone number," the extracted topic word is "mobile phone number." This topic word is then matched with the topic entities in the knowledge subgraph, and further semantic consistency is checked (e.g., through synonym expansion) to confirm that "mobile phone number" and "account binding information" are semantically consistent, thereby generating the corresponding instantiated topic node.

[0132] Building upon this foundation, based on the contextual attributes of the dialogue data (such as dialogue turn, timestamp, and speaker role), and combined with the contextual dependencies in the knowledge subgraph, a temporal dependency modeling approach is adopted to establish the contextual relationship between instantiated user intent nodes and instantiated topic nodes. This contextual relationship is used to represent the temporal dependency and logical connection between user intent and topic during the dialogue process; for example, the intent to "modify account information" leads to the topic of "phone number." Furthermore, the potential semantic associations between user intent nodes and topic nodes are supplemented into the contextual relationship. These potential semantic associations are used to characterize deeper connections not directly stated in the dialogue but which can be inferred semantically, such as "phone number belongs to account information" and "modifying phone number involves account security," thus enabling the constructed knowledge subgraph to more comprehensively reflect the semantic structure of the dialogue scenario.

[0133] The instantiated user intent nodes, instantiated topic nodes, and their contextual relationships are structured and encoded to form dialogue semantic structure data;

[0134] Understandably, the identified instantiated user intent nodes, instantiated topic nodes, and the contextual relationships between them are structured and encoded. Specifically, the semantic feature vectors of the nodes are combined with contextual relationship triples into a unified graph structure representation, such as (instantiated user intent node: Modify account information, contextual relationship: introduction, instantiated topic node: phone number), and the relationship type is encoded independently. In this way, the original text information is transformed into computable structured data, which not only preserves semantic information but also facilitates subsequent node quantification, path analysis, cluster analysis, and visualization.

[0135] Furthermore, multi-dimensional analysis is performed based on the semantic structure data of the dialogue to obtain a set of analysis results, specifically including:

[0136] Based on the instantiated user intent nodes and instantiated topic nodes in the dialogue semantic structure data, obtain node connection information;

[0137] Based on the analysis of node connection information, the semantic path co-occurrence of nodes is analyzed to obtain the path co-occurrence features of nodes;

[0138] The path co-occurrence features and the historical interaction features of instantiated user intent nodes and instantiated topic nodes are numerically processed to obtain node quantification indicators. The historical interaction features include the frequency of node occurrence in historical dialogues, the number of times nodes co-occur, and the frequency of node-triggered user operations.

[0139] Numerical processing is performed on the contextual relationship attributes between instantiated nodes to obtain a quantitative index of relationship edges. The contextual relationship attributes include semantic relevance and contextual dependency.

[0140] Specifically, firstly, node connection information is obtained based on the instantiated user intent nodes and instantiated topic nodes in the dialogue semantic structure data. This node connection information includes the adjacency relationships and multi-hop path information of the nodes. Then, semantic path analysis is performed on the connection information of each instantiated node, that is, traversing the node's adjacent nodes and multi-hop nodes, and counting the frequency and distribution of the node co-occurring with other nodes in the same semantic path. For example, when the "change phone number" intent node and the "phone number" topic node frequently co-occur in multiple semantic paths, it indicates a strong semantic co-occurrence relationship between them. Based on the above statistical results, the path co-occurrence characteristics of each instantiated node are obtained.

[0141] Then, interaction features of nodes are extracted from historical dialogue data, including the frequency of node appearance in the dialogue, the number of times it co-occurs with other nodes, and the frequency with which the node triggers user actions. Subsequently, the path co-occurrence features and historical interaction features are uniformly numerically processed: first, the original count values ​​are smoothed and compressed to suppress the influence of extreme values ​​(e.g., logarithmic compression is used for high-frequency values), and then each feature is normalized and mapped to ensure that the two are on a unified scale; for low-frequency or rare nodes, a smoothing factor is introduced for compensation to avoid instability caused by zero values. Finally, the path co-occurrence features and historical interaction features are weighted and merged according to a preset fusion strategy to obtain a single quantitative representation of each instantiated node, namely the node quantification index. This index retains the connectivity information of the node in the semantic path and integrates its interactive behavior features in historical conversations, providing input for subsequent analysis.

[0142] Finally, the contextual relationship attributes between instantiated nodes are numerically processed: First, the semantic tightness of the contextual relationship is obtained by statistically analyzing the common frequency and association of connected nodes in multi-turn dialogues, and then calibrated by combining manual annotation or historical statistical data to avoid distortion caused by model bias; at the same time, the temporal sequence and dependency frequency of nodes in multi-turn dialogues are analyzed to obtain the contextual dependency strength. For example, when an intent node frequently evokes specific topic nodes in the dialogue, the dependency strength of the contextual relationship is higher; then, the semantic tightness and contextual dependency strength are normalized and mapped, and attributes with large noise are smoothed and corrected. Finally, the two are synthesized according to the preset fusion method to obtain a quantitative index of contextual relationship that comprehensively reflects semantic relevance and dependency strength.

[0143] Calculate the connection strength of a node based on its node quantification index and its relation edge quantification index;

[0144] Calculate the importance score of a node based on its connection strength and node quantification metrics.

[0145] Understandably, for a given node, all its neighboring nodes are traversed, and the overall connection strength of the node is calculated by combining the quantitative indicators of the neighboring nodes with the corresponding quantitative indicators of the context relationship. This reflects the connectivity of the node in the semantic structure data. Subsequently, the importance score of the node is calculated. This score not only considers the node's own quantitative indicators but also combines the node's connection strength. The two are weighted and fused according to preset weights. This reflects both the importance of the node in historical dialogues and path co-occurrence and its connection value in the global semantic network. The final importance score serves as the core basis for calculating the overall importance index of the node and is used for the subsequent classification of key nodes and auxiliary nodes.

[0146] The node importance index is calculated based on the connection strength and importance scores;

[0147] Based on a pre-defined rule for classifying nodes according to their importance indices, nodes are divided into key nodes and auxiliary nodes. The node importance analysis results are generated by comparing the distribution differences of these indices. A node is identified as a key node when its importance index exceeds a pre-defined threshold or when it occupies a high quantile in the importance index distribution; otherwise, it is classified as an auxiliary node. Key nodes typically play a core role in dialogue semantic understanding, directly influencing the dialogue flow and the determination of user intent. Auxiliary nodes, on the other hand, serve as supplementary information, used to refine contextual connections and semantic reasoning. This classification method highlights the core elements of the dialogue semantic structure while avoiding interference from redundant nodes, achieving efficient modeling of the dialogue semantic structure.

[0148] Based on the contextual relationships in the dialogue semantic structure data, extract the semantic path between the instantiated user intent node and the instantiated topic node;

[0149] The complexity coefficient is obtained by evaluating factors related to the number of nodes, node types, and relationship types in the semantic path.

[0150] The semantic path is calculated for path length, and the complexity of the path is evaluated by combining the complexity coefficient, thereby generating path feature indicators.

[0151] The paths are classified according to their characteristic indicators to obtain the main paths and abnormal paths, thus forming the dialogue path analysis results.

[0152] Specifically, starting from any user intent node, the system traverses adjacent topic nodes and multi-hop nodes along their context, recording the connection order between nodes to obtain a complete semantic path sequence. Then, the complexity of each semantic path is evaluated. During the evaluation, firstly, the number of nodes on the path is counted; more nodes indicate a richer information flow. Secondly, different weights are assigned to the path based on node type (e.g., intent node or topic node) to reflect the contribution of node type to path complexity. Finally, the type and direction of contextual relationships in the path are considered, such as the existence of unidirectional or circular dependencies, to make the path complexity more accurately reflect the actual semantic associations. Through the above evaluation, a complexity coefficient is obtained for each path. Next, the path length of each semantic path is calculated, typically the number of nodes or edges in the path, and combined with the complexity coefficient to generate a comprehensive path feature index. This index can simultaneously reflect the path's length and structural complexity, providing a quantitative basis for subsequent classification. Finally, the semantic paths are classified according to the path feature index. Specifically, paths with path feature indicators above a preset threshold or ranking in the top 30% of the overall path feature indicator distribution are identified as primary paths, representing the most frequently occurring node sequences in the dialogue that carry the core semantic flow. Paths with path feature indicators below the preset threshold or ranking in the bottom 30% of the overall path feature indicator distribution are identified as anomalous paths, potentially reflecting rare dialogue patterns or potential anomalies. By classifying and processing all semantic paths, a complete dialogue path analysis result is formed, providing quantitative basis for dialogue flow optimization, anomaly detection, and visualization.

[0153] Semantic similarity is calculated for instantiated user intent nodes in the knowledge subgraph to obtain the intent similarity matrix;

[0154] Specifically, for each pair of instantiated user intent nodes, their semantic vector representations are extracted. The semantic similarity between the two nodes is calculated using cosine similarity or other similarity metrics, resulting in a value between zero and one, where one indicates complete semantic overlap and zero indicates complete semantic irrelevance. After calculating the pairwise semantic similarity for all nodes, an intent similarity matrix is ​​constructed. Each row and column of the matrix corresponds to an instantiated user intent node, and any element in the matrix represents the semantic similarity between the corresponding two nodes. Due to the symmetry of semantic similarity, this matrix is ​​typically symmetric. Using this intent similarity matrix, intent clustering analysis can be performed, grouping semantically similar user intent nodes into the same cluster to identify common user intent patterns. This clustering result can be used for subsequent intent distribution analysis and dialogue hotspot identification, providing a quantitative basis for visualization analysis.

[0155] Clustering of instantiated user intent nodes is performed based on intent similarity matrix. The node importance index corresponding to each instantiated user intent node is used as the node weight. The intent clustering index is calculated based on the node weight of each instantiated user intent node in the clustering result.

[0156] Intent distribution characteristics are extracted based on intent clustering indicators to form intent clustering analysis results;

[0157] The results of node importance analysis, dialogue path analysis, and intent clustering analysis are combined to generate a set of analysis results for subsequent visualization.

[0158] The formula for calculating the node importance index is as follows:

[0159] ;

[0160] In the formula, For the first The node importance index of each node. For the first The node and the first The connection strength of each node For the first The importance score of each node In order to be with the first The total number of nodes associated with each node;

[0161] The formula for calculating the path metric is:

[0162] ;

[0163] In the formula, For the first Semantic path feature indicators Let k be the length of the k-th path. Let be the complexity coefficient of the k-th path;

[0164] The formula for calculating the intention clustering index is:

[0165] ;

[0166] In the formula, For the first The intention clustering metric for each cluster. For the first The node weight of each instantiated user intent node. For the first The total number of instantiated user intent nodes in each cluster.

[0167] Furthermore, based on the analysis results set, node importance analysis results, dialogue path analysis results, and intent clustering analysis results are extracted to construct a dialogue semantic relationship graph, a dialogue flow path graph, and a dialogue hotspot distribution graph, respectively. Then, a unified coordinate mapping and weighted fusion are performed on the dialogue semantic relationship graph, dialogue flow path graph, and dialogue hotspot distribution graph to obtain visualized analysis results, specifically including:

[0168] Based on the set of analysis results, extract the node importance analysis results, dialogue path analysis results, and intent clustering analysis results;

[0169] Based on the node importance analysis results, key nodes and auxiliary nodes are mapped to graph nodes, and the size, color and transparency of the graph nodes are adjusted with semantic weight as a reference to obtain the dialogue semantic relationship graph.

[0170] Based on the dialogue path analysis results, the main path and abnormal path are mapped into a path graph structure, and the path lines are rendered differently based on the path length and complexity to obtain the dialogue flow path graph.

[0171] Based on the intent clustering analysis results, the set of instantiated user intent nodes within each cluster is mapped to the corresponding hotspot distribution area;

[0172] The hotspot areas are associated with the corresponding scene nodes in the knowledge subgraph. The scene nodes are displayed as background annotations and the instantiated user intent nodes they cover are shown by connecting them.

[0173] For each hotspot distribution area, calculate the intent concentration and intent dispersion of instantiated user intent nodes within the area;

[0174] Intent concentration and dispersion are used as indicators and mapped to color depth or transparency through heat maps to identify core intent areas and peripheral intent areas, thereby generating a dialogue hotspot distribution map.

[0175] Specifically, based on the node importance analysis results, instantiated user intent nodes and topic nodes are distinguished into key nodes and auxiliary nodes, and these nodes are mapped to visual graphical nodes. During the mapping process, the size, color, and transparency of the nodes are adjusted according to their importance scores. For example, key nodes with high importance scores are displayed as larger, darker, and more transparent graphical nodes; auxiliary nodes are displayed as smaller, lighter, and less transparent nodes. Through this visual adjustment, users can intuitively distinguish between core and auxiliary nodes, thereby understanding the main elements in the semantic structure of the dialogue.

[0176] Using the results of dialogue path analysis, primary and abnormal paths are mapped to a path graph structure. When drawing the paths, the path lines are rendered differently based on their length, complexity, and frequency of occurrence. Specifically, longer or more complex paths can be displayed with bolder lines or different line styles; primary paths are displayed with highlighted colors or thick lines, while abnormal paths are represented with low-saturation colors or dashed lines. In this way, the path graph not only presents the structure of the dialogue flow but also intuitively reflects the importance and abnormality of each path.

[0177] Based on the intent clustering analysis results, the instantiated user intent nodes in each cluster are mapped to corresponding hotspot regions, and the intent concentration and dispersion are calculated by combining the node weights. Regions with high intent concentration are displayed as dark-colored, highly transparent hotspot regions, indicating that user intent is highly concentrated within these regions; regions with high intent dispersion are displayed as light-colored, low-transparency regions, indicating that user intent is more dispersed. Hotspot regions are associated with scene nodes in the knowledge subgraph, and the instantiated user intent nodes they cover are displayed by connecting them, thus forming an intuitive hotspot distribution map.

[0178] The dialogue semantic relationship graph, dialogue flow path graph, and dialogue hotspot distribution graph are projected onto a unified visualization coordinate system to maintain the consistency of nodes, paths, and hotspot areas.

[0179] The overlapping areas of the three types of images are weighted, fused, and compared to generate a comprehensive visualization, which serves as the final visualization analysis result.

[0180] The formula for calculating the concentration of intent is as follows:

[0181] ;

[0182] In the formula, Hotspots are divided into different regions The degree of intent concentration hotspot areas The collection of instantiated user intent nodes within. To instantiate the user intent node Frequency of occurrence The weights of instantiated user intent nodes within the hotspot area. This represents the total number of nodes within the region.

[0183] The formula for calculating the intention dispersion is as follows:

[0184] ;

[0185] In the formula, hotspot areas The intentional dispersion.

[0186] Furthermore, when new dialogue scenario data is input, an incremental update method is used to extract newly added related nodes and relation edges in the knowledge graph, update and recalculate the local semantic structure, and dynamically adjust the visualization analysis results, specifically including:

[0187] When new dialogue scenario data is input, the newly added related nodes and relation edges in the knowledge graph are dynamically extracted using an incremental update method. Without reconstructing the overall semantic structure, the affected local semantic regions are selectively adjusted to obtain the updated dialogue semantic structure data.

[0188] Based on the updated dialogue semantic structure data, the corresponding node importance index, path index and intent clustering index are recalculated, and incremental analysis results are generated through difference comparison.

[0189] When generating visualization analysis results, an incremental merging mechanism is introduced to only refresh the affected semantic nodes, paths and hotspot areas locally, while maintaining the visualization stability of the unchanged parts.

[0190] Understandably, the visualization analysis results need to be dynamically updated when new dialogue scenario data is input. To avoid redrawing the entire graph with each update, the system introduces an incremental merging mechanism, only partially refreshing semantic nodes, paths, and hotspot areas affected by new or changed data. Specifically, by comparing the differences between the new data and the existing semantic structure, the system identifies the nodes and relationships that need updating, such as newly added user intent nodes, newly emerging topic nodes, or new semantic paths. Subsequently, only the quantitative indicators, path features, and intent clustering information of these nodes and paths are recalculated, and the corresponding graphic elements in the visualization are updated. For nodes, paths, and hotspot areas that have not changed, their original display status is maintained, including visual attributes such as position, size, color, and transparency, thus ensuring the stability and continuity of the entire visualization interface. Through this combination of partial refresh and overall stability, users will not experience interface jumps or redrawing delays due to partial updates when viewing the visualization results, while the changes brought about by new dialogue scenario data can be reflected in real time, thereby achieving dynamic, continuous, and intuitive visualization analysis.

[0191] This incremental merging and local refresh process enables dynamic updates to the dialogue semantic relationship graph, dialogue flow path graph, and dialogue hotspot distribution graph, thereby ensuring the real-time and continuous nature of the visualization results.

[0192] Furthermore, a knowledge graph-based dialogue scenario data visualization and analysis system is proposed to implement the analysis methods described above, including:

[0193] The main control module receives dialogue scenario data and analysis results transmitted by each functional module through the data transmission module, processes and analyzes the received data, and controls the operation of each functional module based on the processing results.

[0194] The data acquisition module is used to acquire dialogue scenario data, including user input information, system response information and context attributes, and transmit the data to the main control module.

[0195] The knowledge graph processing module is used to perform word segmentation and semantic parsing on dialogue scenario data, extract keywords, topic words and context labels, and extract corresponding entity nodes and relation edges from the pre-built knowledge graph to construct a knowledge subgraph corresponding to the dialogue scenario.

[0196] The semantic structure generation module is used to fuse dialogue scenario data with knowledge subgraphs to generate dialogue semantic structure data, including instantiated user intent nodes, instantiated topic nodes and their contextual relationships.

[0197] The analysis module is used to perform multi-dimensional analysis based on dialogue semantic structure data, obtain node importance analysis results, dialogue path analysis results, and intent clustering analysis results, and generate a set of analysis results.

[0198] The visualization module is used to generate a dialogue semantic relationship diagram, a dialogue flow path diagram, and a dialogue hotspot distribution diagram based on the analysis result set, and to perform unified coordinate mapping and weighted fusion on the three types of diagrams to obtain the visualization analysis results.

[0199] The incremental update module is used to dynamically update knowledge graph nodes and relation edges, recalculate local semantic structures, and dynamically adjust visualization analysis results when new dialogue scenario data is input.

[0200] Furthermore, the main control module includes:

[0201] The data receiving unit is used to receive dialogue data and analysis results from the data acquisition module, knowledge graph processing module, semantic structure generation module, analysis module, and visualization module.

[0202] The data processing unit is used to preprocess, structure, and extract features from the received dialogue data, and provides the processing results to the analysis and visualization modules.

[0203] The control unit is used to control the operation status of the data acquisition module, knowledge graph processing module, semantic structure generation module, analysis module, visualization module, and incremental update module based on the analysis results and visualization feedback.

[0204] Furthermore, the visualization module includes:

[0205] A semantic relationship graph generation unit is used to map key nodes and auxiliary nodes into graphical nodes based on the node importance analysis results, and adjust the size, color and transparency of the graphical nodes with semantic weights to generate a dialogue semantic relationship graph.

[0206] The dialogue flow path diagram generation unit is used to map the main path and abnormal path into a path diagram structure based on the dialogue path analysis results, and to perform differentiated rendering of the path lines based on the path length and complexity, thereby generating a dialogue flow path diagram.

[0207] A dialogue hotspot distribution map generation unit is used to map instantiated user intent nodes within each cluster to hotspot areas based on intent clustering analysis results, and calculate intent concentration and dispersion by combining node weights, thereby generating a dialogue hotspot distribution map through heat mapping.

[0208] The visualization fusion unit is used to project the dialogue semantic relationship graph, dialogue flow path graph and dialogue hotspot distribution graph onto a unified coordinate system, and perform weighted fusion and difference comparison to generate a comprehensive visualization analysis result.

[0209] Furthermore, the analysis module includes:

[0210] The node importance analysis unit is used to calculate the node connection strength and importance score based on the node connection information in the dialogue semantic structure data and the node's own historical interaction characteristics, and generate the node importance analysis results.

[0211] The dialogue path analysis unit is used to extract the semantic path between the user intent node and the topic node, calculate the path length and complexity, identify the main path and abnormal path, and generate dialogue path analysis results.

[0212] The intent clustering analysis unit is used to calculate the semantic similarity of user intent nodes, perform clustering analysis, generate intent metrics, and output intent clustering analysis results.

[0213] The incremental analysis unit is used to partially refresh only the affected nodes, paths, and clusters when new dialogue scenario data is input, generating incremental analysis results to update the visualization.

[0214] In summary, the advantages of this invention are as follows: by integrating user input information, system response information, and contextual attributes, and combining them with a pre-constructed knowledge graph, it enables the dynamic instantiation of user intent nodes, topic nodes, and contextual relationships; based on multi-dimensional analysis of node importance, semantic paths, and intent clustering, it can generate semantic relationship graphs, dialogue flow path graphs, and hotspot distribution graphs, achieving panoramic visualization of the dialogue scenario; and it supports an incremental update mechanism, which can dynamically adjust the local semantic structure and visualization results when new dialogue data is input, thereby significantly improving the efficiency and accuracy of dialogue understanding, abnormal path identification, and core intent discovery.

[0215] The foregoing has shown and described the basic principles, main features, and advantages of the present invention. Those skilled in the art should understand that the present invention is not limited to the above embodiments. The embodiments and descriptions in the specification are merely principles of the invention. Various changes and modifications can be made to the invention without departing from its spirit and scope, and all such changes and modifications fall within the scope of the claimed invention. The scope of protection claimed by the appended claims and their equivalents is defined.

Claims

1. A knowledge graph-based method for visualizing and analyzing dialogue scenario data, characterized in that, include: Acquire dialogue scene data, which includes user input information, system response information, and context attributes. The context attributes include dialogue turn information, speaker markers, timestamps, and dialogue scene tags. The dialogue scenario data is segmented and semantically parsed to extract keywords, topic words and context labels. The corresponding entity nodes and relationship edges are extracted from the pre-built knowledge graph to construct a knowledge subgraph corresponding to the dialogue scenario. The dialogue scenario data is fused with the knowledge subgraph to obtain dialogue semantic structure data, which includes instantiated user intent nodes and instantiated topic nodes. Specifically, based on the user input information in the dialogue scenario data, the corresponding dialogue text is extracted and semantic features are extracted, and the semantic features are mapped into semantic vectors. The semantic vector is compared with the vector representation of the user intent entity in the knowledge subgraph to generate an instantiated user intent node. Based on system response information in dialogue scenario data, obtain the response text and extract topic words from it; The topic words are matched with the topic entities in the knowledge subgraph, and semantic consistency is checked. Based on the check results, the corresponding instantiated topic nodes are generated. Multi-dimensional analysis is performed based on dialogue semantic structure data to obtain a set of analysis results. The multi-dimensional analysis includes node importance analysis, dialogue path analysis, and intent clustering analysis. This includes: obtaining node connection information based on instantiated user intent nodes and instantiated topic nodes in the dialogue semantic structure data; Semantic path analysis is performed on the node connection information of the instantiated node. The adjacent nodes and multi-hop nodes of the node are traversed, and the number and distribution of the node co-occurrence with other nodes in the same semantic path are counted to obtain the path co-occurrence features of each instantiated node. The path co-occurrence features and historical interaction features are numerically processed to obtain the node quantification index of each instantiated node. The historical interaction features include the frequency of the node's appearance in historical dialogues. Numerical processing is performed on the contextual relationship attributes between instantiated nodes to obtain a quantitative index of relationship edges. The contextual relationship attributes include semantic relevance and contextual dependency. Based on the node quantification index and the relation edge quantification index, the importance score and node importance index of the instantiated node are calculated; Based on the node importance index, instantiated nodes are divided into key nodes and auxiliary nodes; Based on the set of analysis results, the node importance analysis results, dialogue path analysis results, and intent clustering analysis results are extracted. Dialogue semantic relationship graph, dialogue flow path graph, and dialogue hotspot distribution graph are constructed respectively. The dialogue semantic relationship graph, dialogue flow path graph, and dialogue hotspot distribution graph are then subjected to unified coordinate mapping and weighted fusion to obtain visualized analysis results. The dialogue semantic relationship graph is constructed based on key nodes and auxiliary nodes; When new dialogue scenario data is input, an incremental update method is used to update and recalculate the local semantic structure and dynamically adjust the visualization analysis results.

2. The knowledge graph-based data visualization and analysis method for dialogue scenarios according to claim 1, characterized in that, The process of segmenting and semantically parsing the dialogue scenario data to extract keywords, topic terms, and context labels, and then extracting corresponding entity nodes and relation edges from a pre-built knowledge graph to construct a knowledge subgraph corresponding to the dialogue scenario, specifically includes: Collect human customer service dialogue records, online customer service system conversation records, and multi-round historical dialogue data to obtain dialogue scenario data; The dialogue scene data is segmented into words and normalized using synonyms to obtain a word sequence; Hierarchical semantic analysis is performed on word sequences to extract keywords, thematic terms, and contextual tags; Organize keywords, topic terms, and context tags into keyword sets, topic term sets, and context tag sets, respectively. A knowledge graph is pre-constructed, which includes user intent entities, topic entities, and scene entities, as well as semantic relationships, contextual dependencies, and topic associations. Based on the keyword set, topic term set, and context tag set, extract the corresponding entity nodes and relationship edges from the pre-built knowledge graph; Based on the context label set, the extracted entity nodes and relation edges are pruned and semantically consistent, retaining only entity nodes and relation edges that are relevant to the current dialogue context and semantically consistent. A knowledge subgraph corresponding to the current dialogue scenario is constructed. The knowledge subgraph consists of user intent entities, topic entities, and scene entities related to the current dialogue scenario as nodes, and semantic relations, contextual dependencies, and topic associations related to the current dialogue scenario as relation edges.

3. The knowledge graph-based data visualization and analysis method for dialogue scenarios according to claim 2, characterized in that, The process of fusing dialogue scenario data with knowledge subgraphs to obtain dialogue semantic structure data includes: The dialogue semantic structure data also includes the contextual relationship between instantiated user intent nodes and instantiated topic nodes; Based on contextual attributes and combined with contextual dependencies in the knowledge subgraph, a temporal dependency modeling approach is adopted to establish contextual relationships between instantiated user intent nodes and instantiated topic nodes, and to supplement the contextual relationships with potential semantic associations between instantiated user intent nodes and instantiated topic nodes. The instantiated user intent node, instantiated topic node, and the contextual relationship between the instantiated user intent node and the instantiated topic node are structured and encoded to form dialogue semantic structure data.

4. The knowledge graph-based method for visualizing and analyzing dialogue scenario data according to claim 3, characterized in that, The multi-dimensional analysis based on dialogue semantic structure data yields a set of analysis results, including: Calculate the connection strength of the instantiated node based on the node quantization index and the relation edge quantization index of the instantiated node; The importance score of instantiated nodes is calculated based on the connection strength and node quantification index of instantiated nodes. Based on the connection strength and importance scores, the node importance index of the instantiated node is calculated; Based on the preset division rules of node importance indicators, instantiated nodes are divided into key nodes and auxiliary nodes, and node importance analysis results are formed by comparing the distribution differences of node importance indicators. Based on the contextual relationship between instantiated user intent nodes and instantiated topic nodes in the dialogue semantic structure data, the semantic path between instantiated user intent nodes and instantiated topic nodes is extracted. The complexity coefficient is obtained by evaluating factors related to the number of nodes, node types, and relationship types in the semantic path. The path length of the semantic path is calculated, and the complexity of the semantic path is evaluated by combining the complexity coefficient, thereby generating path feature indicators. Semantic paths are classified based on path feature indicators to obtain main paths and abnormal paths, thus forming dialogue path analysis results. Semantic similarity is calculated for instantiated user intent nodes to obtain an intent similarity matrix; Clustering of instantiated user intent nodes is performed based on the intent similarity matrix. The node importance index corresponding to each instantiated user intent node is used as the node weight of that node. The intent clustering index is calculated based on the node weight of each instantiated user intent node in the clustering results. Intent distribution characteristics are extracted based on intent clustering indicators to form intent clustering analysis results; The results of node importance analysis, dialogue path analysis, and intent clustering analysis are combined to generate a set of analysis results for subsequent visualization. The formula for calculating the node importance index is as follows: ; In the formula, For the first The node importance metric for each instantiated node. For the first The instantiated node and the first The connection strength of each instantiated node For the first The importance score of each instantiated node In order to be with the first The total number of nodes associated with each instantiated node; The formula for calculating the path characteristic index is as follows: ; In the formula, For the first Path feature indicators of semantic paths, Let k be the path length of the semantic path. Let be the complexity coefficient of the k-th semantic path; The formula for calculating the intent clustering index is as follows: ; In the formula, For the first The intention clustering metric for each cluster. For the first The node weight of each instantiated user intent node. For the first The total number of instantiated user intent nodes in each cluster.

5. The knowledge graph-based method for visualizing and analyzing dialogue scene data according to claim 4, characterized in that, Based on the analysis result set, the node importance analysis results, dialogue path analysis results, and intent clustering analysis results are extracted to construct a dialogue semantic relationship graph, a dialogue flow path graph, and a dialogue hotspot distribution graph, respectively. Then, a unified coordinate mapping and weighted fusion are performed on the dialogue semantic relationship graph, dialogue flow path graph, and dialogue hotspot distribution graph to obtain visualized analysis results, specifically including: Based on the set of analysis results, extract the node importance analysis results, dialogue path analysis results, and intent clustering analysis results; Based on the node importance analysis results, key nodes and auxiliary nodes are mapped to graph nodes, and the size, color and transparency of the graph nodes are adjusted with reference to the importance score of the instantiated nodes to obtain the dialogue semantic relationship graph. Based on the dialogue path analysis results, the main path and abnormal path are mapped into a path graph structure, and the path lines are rendered differently based on the path length and complexity coefficient to obtain the dialogue flow path graph. Based on the intent clustering analysis results, the set of instantiated user intent nodes within each cluster is mapped to the corresponding hotspot distribution area; The hotspot distribution area is associated with the corresponding scene node in the knowledge subgraph. The scene node is displayed as a background annotation and the instantiated user intent node it covers is shown by connecting the lines. For each hotspot distribution area, calculate the intent concentration and intent dispersion of instantiated user intent nodes within the area; Using intent concentration and intent dispersion as indicators, a dialogue hotspot distribution map is generated by using heat mapping to identify core intent areas and peripheral intent areas through color depth or transparency. Project the dialogue semantic relationship graph, dialogue flow path graph, and dialogue hotspot distribution graph onto a unified visualization coordinate system; The overlapping areas of the three types of images are weighted, fused, and compared to generate a comprehensive visualization, which serves as the final visualization analysis result. The formula for calculating the concentration of intent is as follows: ; In the formula, Hotspot distribution area The degree of intent concentration Hotspot distribution area The collection of instantiated user intent nodes within. To instantiate the user intent node Frequency of occurrence Instantiated user intent nodes within the hotspot distribution area The node weights, This represents the total number of nodes within the hotspot distribution area. The formula for calculating the intention dispersion is: ; In the formula, Hotspot distribution area The intentional dispersion.

6. The knowledge graph-based method for visualizing and analyzing dialogue scene data according to claim 5, characterized in that, When new dialogue scenario data is input, an incremental update method is used to update and recalculate the local semantic structure and dynamically adjust the visualization analysis results, specifically including: When new dialogue scenario data is input, an incremental update method is used to selectively adjust the affected local semantic regions to obtain updated dialogue semantic structure data. Based on the updated dialogue semantic structure data, the data indicators are recalculated, and incremental analysis results are generated through difference comparison. When generating visualization analysis results, an incremental merging mechanism is introduced to only refresh the affected instantiated nodes, semantic paths and hotspot distribution areas locally, while maintaining the visualization stability of the unchanged parts. This incremental merging and local refresh process enables dynamic updates to the dialogue semantic relationship graph, dialogue flow path graph, and dialogue hotspot distribution graph, thereby ensuring the real-time and continuous nature of the visualization results.

7. A knowledge graph-based dialogue scenario data visualization and analysis system, used to implement the knowledge graph-based dialogue scenario data visualization and analysis method as described in any one of claims 1-6, characterized in that, include: The main control module is used to receive dialogue scenario data and analysis results transmitted by each functional module through the data transmission module, process and analyze the received data, and control the operation of each functional module according to the processing results. The data acquisition module is used to acquire dialogue scenario data, including user input information, system response information and context attributes, and transmit the data to the main control module. The knowledge graph processing module is used to perform word segmentation and semantic parsing on dialogue scenario data, extract keywords, topic words and context labels, and extract corresponding entity nodes and relation edges from the pre-built knowledge graph to construct a knowledge subgraph corresponding to the dialogue scenario. The semantic structure generation module is used to fuse dialogue scenario data with knowledge subgraphs to generate dialogue semantic structure data, including instantiated user intent nodes, instantiated topic nodes, and the contextual relationship between instantiated user intent nodes and instantiated topic nodes. The analysis module is used to perform multi-dimensional analysis based on dialogue semantic structure data, obtain node importance analysis results, dialogue path analysis results and intent clustering analysis results, and generate a set of analysis results. The visualization module is used to generate a dialogue semantic relationship graph, a dialogue flow path graph, and a dialogue hotspot distribution graph based on the analysis result set, and to perform unified coordinate mapping and weighted fusion on the three types of graphs to obtain the visualization analysis results. The incremental update module is used to dynamically update, recalculate the local semantic structure, and dynamically adjust the visualization analysis results when new dialogue scenario data is input.

8. The knowledge graph-based dialogue scenario data visualization and analysis system according to claim 7, characterized in that, The main control module includes: The data receiving unit is used to receive dialogue data and analysis results from the data acquisition module, knowledge graph processing module, semantic structure generation module, analysis module, and visualization module. The data processing unit is used to preprocess, structure, and extract features from the received dialogue data, and provide the processing results to the analysis module and the visualization module. The control unit is used to control the operation status of the data acquisition module, knowledge graph processing module, semantic structure generation module, analysis module, visualization module, and incremental update module based on the analysis results and visualization feedback.

9. A knowledge graph-based dialogue scenario data visualization and analysis system according to claim 7, characterized in that, The visualization module includes: A semantic relationship graph generation unit is used to map key nodes and auxiliary nodes to graphical nodes based on the node importance analysis results, and adjust the size, color and transparency of the graphical nodes to generate a dialogue semantic relationship graph. The dialogue flow path diagram generation unit is used to map the main path and abnormal path into a path diagram structure based on the dialogue path analysis results, and to perform differentiated rendering of the path lines based on the path length and complexity coefficient, thereby generating a dialogue flow path diagram. The dialogue hotspot distribution map generation unit is used to map the instantiated user intent nodes in each cluster to hotspot distribution areas based on the intent clustering analysis results, and calculate the intent concentration and intent dispersion by combining the node weights of the instantiated user intent nodes, and generate a dialogue hotspot distribution map through heat mapping. The visualization fusion unit is used to project the dialogue semantic relationship graph, dialogue flow path graph and dialogue hotspot distribution graph onto a unified coordinate system, and perform weighted fusion and difference comparison to generate a comprehensive visualization analysis result.

10. A knowledge graph-based dialogue scenario data visualization and analysis system according to claim 7, characterized in that, The analysis module includes: The node importance analysis unit is used to calculate the connection strength and importance score of instantiated nodes based on the node connection information of instantiated nodes in the dialogue semantic structure data and the historical interaction characteristics of the instantiated nodes themselves, and to generate node importance analysis results. The dialogue path analysis unit is used to extract the semantic path between the instantiated user intent node and the instantiated topic node, calculate the path length and complexity coefficient, identify the main path and abnormal path, and generate dialogue path analysis results. The intent clustering analysis unit is used to calculate the semantic similarity of instantiated user intent nodes, perform clustering analysis, generate intent clustering indicators, and output intent clustering analysis results. The incremental analysis unit is used to partially refresh only the affected instantiated nodes, semantic paths, and hotspot distribution areas when new dialogue scene data is input, and generate incremental analysis results to update the visualization display.

Citation Information

Patent Citations

  • Multi-round dialogue method and system integrating knowledge graph and emotion supervision

    CN111651609A

  • Customer service data quality inspection method and device based on dynamic reasoning, equipment and medium

    CN120216707A