A method and device for excavating a speech, a computer device and a storage medium

By using semantic recognition and variant model generation of dialogue data, the problems of high manpower consumption and limited dialogue types in existing dialogue mining methods are solved, enabling dynamic expansion of the dialogue database and high-quality dialogue storage.

CN119025656BActive Publication Date: 2026-11-27CHINA PING AN PROPERTY INSURANCE CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202411192056.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-27
Publication Date
2026-11-27
Estimated Expiration
2044-08-27

AI Technical Summary

Technical Problem

Existing script mining methods rely on manual writing, which consumes a lot of manpower and the script templates are limited, making it impossible to achieve continuous evolution and optimization of the script library.

Method used

By performing semantic recognition on historical dialogue data and comparing it with a script database, new script variants are generated using a pre-trained variant model. High-quality script topics are then selected and stored in the database through model evaluation, ensuring the dynamic expansion and content quality of the script database.

Benefits of technology

It improved the richness and structure of the script database, ensured the quality and relevance of newly added scripts, reduced labor costs, and enabled the dynamic expansion and optimization of the script database.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119025656B_ABST
    Figure CN119025656B_ABST
Patent Text Reader

Abstract

The application discloses a dialogue mining method and device, computer equipment and a storage medium, and belongs to the technical field of artificial intelligence. The application performs semantic recognition on historical dialogue data, compares the recognition result with preset dialogue topics in a dialogue library, stores the dialogue data in a corresponding topic if a matching topic is found, generates a new dialogue variant by using a pre-trained variant model if there is no matching topic, scores the variant by using a pre-trained evaluation model, and stores the variant as a new dialogue topic in the dialogue library if the score is higher than a threshold, otherwise, deletes the variant. The application also relates to the technical field of blockchains, and dialogue data can be stored on nodes of the blockchains. The application not only can effectively archive and expand the dialogue library, but also can guarantee the quality and relevance of newly added dialogues.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the field of artificial intelligence technology, specifically relating to a method, apparatus, computer equipment, and storage medium for speech mining. Background Technology

[0002] Script mining refers to the process of extracting, analyzing, and organizing effective communication strategies and expressions from a large amount of dialogue or text data. It aims to discover and optimize effective scripts used in specific scenarios (such as sales, customer service, etc.) to improve communication efficiency and effectiveness.

[0003] Currently, in telephone agent operations, to improve agent efficiency and facilitate quick responses to customer objections, real-time monitoring of customer conversations or text data is typically performed, providing key response points to complete the script mining process. However, current script mining primarily relies on agents manually summarizing script mining templates by listening to recordings or reading text data. This method is labor-intensive and cannot be quickly replicated. Furthermore, the key points of script mining templates are usually quite simplistic, leading to relatively fixed results and hindering the continuous evolution and optimization of the existing script library. Summary of the Invention

[0004] The purpose of this application is to provide a method, apparatus, computer device and storage medium for dialogue mining, which aims to effectively archive and expand the dialogue library while ensuring the quality and relevance of newly added dialogues.

[0005] To address the aforementioned technical problems, this application provides a speech mining method, which employs the following technical solution:

[0006] A method for uncovering conversational techniques includes:

[0007] Semantic recognition is performed on historical dialogue data to obtain the semantic recognition results of historical dialogue data;

[0008] The semantic recognition results are compared with the preset speech topics in the speech database;

[0009] If a target dialogue topic that matches the semantic recognition result exists, the historical dialogue data will be stored in the storage space corresponding to the target dialogue topic in the dialogue database.

[0010] If there is no target speech topic that matches the semantic recognition result, speech variant prediction is performed on the historical dialogue data to obtain variant speech;

[0011] Evaluate the variant dialogue and output a variant dialogue score;

[0012] Determine whether the score of the variant script is greater than the preset score threshold;

[0013] If the variant speech score is greater than or equal to the score threshold, the variant speech topic is extracted and stored as a new speech topic in the speech library;

[0014] If the score of the variant phrase is less than the score threshold, the variant phrase will be deleted.

[0015] Furthermore, semantic recognition is performed on the historical dialogue data to obtain the semantic recognition results of the historical dialogue data, specifically including:

[0016] Obtain the corresponding dialogue scores from historical dialogue data to obtain historical dialogue scores;

[0017] The target dialogue data is obtained by filtering historical dialogue data based on historical dialogue scores and scoring thresholds.

[0018] Semantic recognition is performed on the target dialogue data to obtain the semantic recognition results.

[0019] Furthermore, semantic recognition is performed on the target dialogue data to obtain semantic recognition results, specifically including:

[0020] The target dialogue data is segmented into words to obtain the segmentation results;

[0021] Part-of-speech tagging is performed on the word segmentation results to obtain the part-of-speech tagging results;

[0022] Perform named entity recognition on the word segmentation results to obtain the named entity recognition results;

[0023] Semantic analysis is performed on the word segmentation results to obtain the first semantic analysis result;

[0024] A knowledge graph of the target dialogue data is constructed based on part-of-speech tagging results, named entity recognition results, and first semantic analysis results.

[0025] Semantic inference is performed on the knowledge graph of the target dialogue data to obtain semantic recognition results.

[0026] Furthermore, variant dialogue prediction is performed on historical dialogue data to obtain variant dialogues, specifically including:

[0027] A speech variant model is obtained by pre-training a pre-defined conditional random field model;

[0028] The dialogue feature vector is obtained by using a dialogue variant model to extract features from historical dialogue data.

[0029] Sequence labeling is performed on the dialogue feature vectors to obtain a sequence of dialogue variant labels;

[0030] Dialogue variant label sequences are used to generate dialogue variants, resulting in a candidate set of variant dialogues;

[0031] The candidate phrases in the variant phrases are filtered to obtain variant phrases.

[0032] Furthermore, the candidate phrases in the variant phrases are filtered to obtain variant phrases, specifically including:

[0033] The candidate variants are ranked and scored to obtain a ranking score.

[0034] The dialogue word ranking scores are normalized to obtain the probability distribution of variant dialogue words.

[0035] Decode the probability distribution of variant speech to obtain the variant speech sequence with the highest probability;

[0036] Variant scripts are determined based on the highest probability variant script sequence.

[0037] Furthermore, the variant dialogue is evaluated, and a variant dialogue score is output, specifically including:

[0038] The variant phrases are segmented to obtain variant phrase segments;

[0039] Emotional keywords are selected from the word segmentation of variant phrases, and emotional scores of variant phrases are calculated based on the emotional keywords;

[0040] The variant phrases were segmented and their corresponding phrase logic was analyzed. Based on the results of the variant phrase logic analysis, the phrase logic score was calculated.

[0041] Variant speech scores are calculated based on emotion scores and speech logic scores.

[0042] Furthermore, emotional keywords are selected from the word segmentation of the variant dialogue, and an emotional score for the variant dialogue is calculated based on the emotional keywords, specifically including:

[0043] A pre-trained sentiment analysis model is used to determine the sentiment tendency of variant speech based on sentiment keywords;

[0044] The decision tree algorithm is used to calculate the sentiment score of variant speech based on sentiment tendency;

[0045] Speech logic analysis includes lexical analysis, syntactic analysis, and semantic analysis. Speech logic analysis is performed on each variant speech segmentation, and a speech logic score is calculated based on the results of the variant speech logic analysis. Specifically, this includes:

[0046] Lexical analysis was performed on the variant word segmentation to obtain the lexical analysis results;

[0047] Syntactic analysis was performed on the variant word segmentation to obtain the syntactic analysis results;

[0048] Semantic analysis was performed on the variant word segmentation to obtain the second semantic analysis result;

[0049] The rhetorical logic score of variant rhetoric is calculated based on the results of lexical analysis, syntactic analysis, and second semantic analysis.

[0050] To address the aforementioned technical problems, this application also provides a speech mining device, which employs the following technical solution:

[0051] A conversational technique mining device, comprising:

[0052] The semantic recognition module is used to perform semantic recognition on historical dialogue data and obtain the semantic recognition results of the historical dialogue data.

[0053] The topic comparison module is used to compare the semantic recognition results with the preset topics in the speech database;

[0054] The dialogue storage module is used to store historical dialogue data into the storage space corresponding to the target dialogue topic in the dialogue library when there is a target dialogue topic that matches the semantic recognition result.

[0055] The speech variant module is used to predict speech variants from historical dialogue data when there is no target speech topic that matches the semantic recognition result.

[0056] The script scoring module is used to evaluate variant scripts and output variant script scores.

[0057] The scoring comparison module is used to determine whether the score of the variant script is greater than the preset scoring threshold.

[0058] The topic storage module is used to extract the topic of the variant speech when the score of the variant speech is greater than or equal to the score threshold, and store the variant speech topic as a new speech topic in the speech library;

[0059] The script deletion module is used to delete variant scripts when the score of a variant script is less than the score threshold.

[0060] To address the aforementioned technical problems, this application also provides a computer device that employs the following technical solution:

[0061] A computer device includes a memory and a processor, the memory storing computer-readable instructions, the processor executing the computer-readable instructions to implement the steps of the discourse mining method as described in any of the preceding claims.

[0062] To address the aforementioned technical problems, this application also provides a computer-readable storage medium, employing the technical solution described below:

[0063] A computer-readable storage medium storing computer-readable instructions, which, when executed by a processor, implement the steps of the speech mining method as described in any one of the preceding descriptions.

[0064] Compared with the prior art, the embodiments of this application have the following main advantages:

[0065] This application discloses a method, apparatus, computer device, and storage medium for dialogue mining, belonging to the field of artificial intelligence technology. This application performs semantic recognition on historical dialogue data, compares the recognition results with preset dialogue topics in a dialogue database, and stores the dialogue data in the corresponding topic if a matching topic is found; otherwise, it generates new dialogue variations using a pre-trained variant model. A pre-trained evaluation model scores the variations; if the score is higher than a threshold, the variation is stored as a new dialogue topic in the dialogue database; otherwise, the variation is deleted. This application transforms unstructured dialogue data into structured information through semantic recognition technology, then compares the recognition results with preset dialogue topics to ensure effective archiving of dialogue data. If no matching topic is found, a new dialogue is generated using a pre-trained variant model, and its quality is evaluated by an evaluation model. Variations with scores higher than a threshold are stored as new topics in the dialogue database, ensuring dynamic expansion and content quality of the dialogue database. This not only improves the richness and structure of the dialogue database but also guarantees the quality and relevance of newly added dialogues. Attached Figure Description

[0066] To more clearly illustrate the solutions in this application, the accompanying drawings used in the description of the embodiments of this application will be briefly introduced below. Obviously, the accompanying drawings described below are some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0067] Figure 1 An exemplary system architecture diagram is shown, in which this application can be applied;

[0068] Figure 2 A flowchart of one embodiment of the speech mining method according to this application is shown;

[0069] Figure 3 A schematic diagram of one embodiment of the speech mining apparatus according to this application is shown;

[0070] Figure 4 A schematic diagram of the structure of one embodiment of a computer device according to this application is shown. Detailed Implementation

[0071] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application pertains; the terminology used herein in the specification of the application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application; the terms "comprising" and "having," and any variations thereof, in the specification, claims, and foregoing drawings of this application, are intended to cover non-exclusive inclusion. The terms "first," "second," etc., in the specification, claims, or foregoing drawings of this application are used to distinguish different objects, not to describe a particular order.

[0072] In this document, the term "embodiment" means that a particular feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of this application. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment mutually exclusive with other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.

[0073] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings.

[0074] like Figure 1 As shown, system architecture 100 may include terminal devices 101, 102, and 103, a network 104, and a server 105. Network 104 serves as the medium for providing communication links between terminal devices 101, 102, and 103 and server 105. Network 104 may include various connection types, such as wired or wireless communication links, or fiber optic cables, etc.

[0075] Users can use terminal devices 101, 102, and 103 to interact with server 105 via network 104 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 101, 102, and 103, such as web browser applications, shopping applications, search applications, instant messaging tools, email clients, social media platform software, etc.

[0076] Terminal devices 101, 102, and 103 can be various electronic devices with displays and support web browsing, including but not limited to smartphones, tablets, e-book readers, MP3 players (Moving Picture Experts Group Audio Layer III), MP4 players (Moving Picture Experts Group Audio Layer IV), laptops, and desktop computers, etc.

[0077] Server 105 can be a server that provides various services, such as a backend server that supports the pages displayed on terminal devices 101, 102, and 103. The server can be a standalone server or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, content delivery networks (CDN), and big data and artificial intelligence platforms.

[0078] It should be noted that the script mining method provided in this application embodiment is generally executed by a server, and correspondingly, the script mining device is generally set in the server.

[0079] It should be understood that Figure 1 The number of terminal devices, networks, and servers shown is merely illustrative. Depending on implementation needs, any number of terminal devices, networks, and servers can be included.

[0080] Continue to refer to Figure 2 The diagram illustrates a flowchart of an embodiment of the discourse mining method according to this application. This embodiment can acquire and process relevant data based on artificial intelligence technology. Artificial intelligence (AI) is a theory, method, technology, and application system that uses digital computers or machines controlled by digital computers to simulate, extend, and expand human intelligence, perceive the environment, acquire knowledge, and use that knowledge to obtain optimal results.

[0081] Foundational artificial intelligence technologies generally include sensors, dedicated AI chips, cloud computing, distributed storage, big data processing, operating / interactive systems, and mechatronics. AI software technologies mainly include computer vision, robotics, biometrics, speech processing, natural language processing, and machine learning / deep learning. The aforementioned speech mining method includes the following steps:

[0082] S201, Perform semantic recognition on historical dialogue data to obtain the semantic recognition results of historical dialogue data.

[0083] Specifically, natural language processing (NLP) techniques are used to perform semantic recognition on historical dialogue data to obtain semantic recognition results. NLP techniques transform dialogue content into semantic information that computers can understand. These techniques include word segmentation, part-of-speech tagging, and named entity recognition. The aim is to extract key information from the dialogue and transform unstructured dialogue data into structured semantic information, which directly impacts the accuracy and efficiency of subsequent steps.

[0084] For example, in a property insurance sales dialogue scenario, suppose a customer's conversation with a sales representative is as follows: "I recently bought a new car and would like to learn about car insurance." First, semantic recognition technology is used to process this dialogue. Specifically, the dialogue text is segmented into words such as "I," "recently," "bought," "a," "new car," "want to learn about," "car insurance," and "related information." Next, these words are tagged with parts of speech to identify nouns, verbs, adjectives, etc. Furthermore, named entity recognition is performed, such as identifying "new car" as a key entity. Through these processing steps, the system can extract key information from the dialogue: the customer bought a new car and is interested in car insurance. These semantic recognition results will serve as input for subsequent steps, preparing for comparison with pre-set dialogue topics. In this way, semantic recognition can transform unstructured dialogue text into structured semantic information, enabling the system to more accurately understand customer needs and process them accordingly.

[0085] S202, compare the semantic recognition results with the preset speech topics in the speech database.

[0086] Specifically, the semantic recognition results are compared with preset dialogue topics in a predefined dialogue database. The system requires a predefined dialogue database containing various preset dialogue topics. The comparison process involves semantic similarity calculation to determine which preset topic best matches the recognition result. This comparison can use methods such as cosine similarity and Euclidean distance. By comparing and effectively classifying and archiving dialogue data, the practicality and query efficiency of the dialogue database are improved, ensuring full utilization of the existing database.

[0087] For example, in the case above, semantic analysis reveals that the customer purchased a new car and is interested in car insurance. Next, the semantic recognition result is compared with preset dialogue topics in the dialogue database. Suppose the dialogue database contains several preset topics, such as "car insurance introduction," "car insurance quote," and "car insurance claims process." By calculating the similarity between the semantic recognition result and these preset topics, for example using cosine similarity or Euclidean distance, if the calculation shows that the topic "car insurance introduction" has the highest similarity, the system will determine that the customer's dialogue content best matches the topic "car insurance introduction."

[0088] S203, if there is a target dialogue topic that matches the semantic recognition result, the historical dialogue data is stored in the storage space corresponding to the target dialogue topic in the dialogue database.

[0089] Specifically, by comparing the semantic recognition results with preset dialogue topics in the dialogue database, if a target dialogue topic matching the semantic recognition result exists, the historical dialogue data is directly stored in the storage space corresponding to the target dialogue topic in the dialogue database. This mainly involves data classification and storage, archiving the processed dialogue data by topic for later use and retrieval. Storing the matched historical dialogue data in the storage space corresponding to the target dialogue topic in the dialogue database improves the system's storage and retrieval efficiency while ensuring the richness and structure of the dialogue database content.

[0090] S204 If there is no target speech topic that matches the semantic recognition result, then speech variant prediction is performed on the historical dialogue data to obtain variant speech.

[0091] Specifically, by comparing the semantic recognition results with preset dialogue topics in the dialogue database, if no target dialogue topic matches the semantic recognition results, the system needs to generate new dialogue variations using a pre-trained dialogue variation model. This dialogue variation model is a text generation model, such as the GPT model, which can generate multiple potential dialogue variations based on the input dialogue data. Predicting dialogue variations for unmatched historical dialogue data enables the system to dynamically generate and expand the dialogue database, improving the system's adaptability to new dialogue topics.

[0092] For example, in the case above, a pre-trained speech variant model is used to predict speech variants from historical dialogue data. Specifically, the pre-trained speech variant model generates multiple potential speech variants based on the customer's original dialogue data. For example, the following are some examples of generated speech variants:

[0093] "Your newly purchased vehicle needs comprehensive car insurance coverage. Here are some recommended car insurance plans."

[0094] "We have several car insurance packages to choose from for your new car, detailed below."

[0095] "For the best protection of your new car, here are the car insurance options we offer."

[0096] These variant dialogues are generated based on historical conversation data through dialogue variation prediction, aiming to meet customers' inquiries about car insurance. In this way, the system can dynamically generate new dialogue variations, enriching the dialogue library and ensuring adaptability to various customer inquiry scenarios.

[0097] S205 evaluates the variant dialogue and outputs a variant dialogue score.

[0098] Specifically, a pre-trained evaluation model is used to evaluate the variant dialogues, outputting a score to determine whether they can be saved to the dialogue database for later use. The generated dialogue variants undergo quality evaluation using a pre-trained dialogue evaluation model. This model can evaluate the variant dialogues based on specific evaluation metrics such as emotional tone, fluency, relevance, and information content, outputting a score. The evaluation of variant dialogues uses a pre-trained model for quality control, ensuring that newly added dialogue topics meet quality standards and guaranteeing the quality of the dialogue database.

[0099] S206, Determine whether the score of the variant script is greater than the preset score threshold;

[0100] S207. If the variant speech score is greater than or equal to the score threshold, the variant speech topic is extracted and stored as a new speech topic in the speech library.

[0101] S208. If the score of the variant script is less than the score threshold, the variant script will be deleted.

[0102] Specifically, the system determines whether the variant dialogue score is greater than a preset scoring threshold. If the score is greater than or equal to the threshold, the variant dialogue topic is extracted and stored as a new dialogue topic in the dialogue library. If the score is less than the threshold, the variant dialogue is deleted. These steps determine the storage of variant dialogues; variants with scores above the threshold are added to the dialogue library as new dialogue topics, while those with low scores are discarded, ensuring the quality of content in the dialogue library. Introducing a scoring mechanism not only filters out high-quality variant dialogue topics but also prevents low-quality dialogues from entering the dialogue library, maintaining its high standards and usability.

[0103] For example, in the case above, these scores are compared with a preset scoring threshold. Suppose the threshold is 75 points, which means that variant scripts with a score of 75 points or higher will be considered qualified. Variant scripts with a score of 75 points or higher will be extracted as new script topics and stored in the script library, while variant scripts with a score of less than 75 points will be deleted.

[0104] In the above embodiments, this application uses semantic recognition technology to transform unstructured dialogue data into structured information, and then compares the recognition results with preset dialogue topics to ensure that the dialogue data can be effectively archived. If there is no matching topic, a new dialogue is generated using a pre-trained variant model, and its quality is evaluated by an evaluation model. Variants with scores higher than a threshold are stored as new topics in the dialogue library, ensuring the dynamic expansion and content quality of the dialogue library. This not only improves the richness and structure of the dialogue library, but also guarantees the quality and relevance of newly added dialogues.

[0105] Furthermore, semantic recognition is performed on the historical dialogue data to obtain the semantic recognition results of the historical dialogue data, specifically including:

[0106] Obtain the corresponding dialogue scores from historical dialogue data to obtain historical dialogue scores;

[0107] The target dialogue data is obtained by filtering historical dialogue data based on historical dialogue scores and scoring thresholds.

[0108] Semantic recognition is performed on the target dialogue data to obtain the semantic recognition results.

[0109] In this embodiment, semantic information of historical dialogue data is extracted through multi-step processing. First, the corresponding discourse scores for the historical dialogue data are obtained to assess their quality and effectiveness. Next, based on these scores and preset scoring thresholds, the historical dialogue data is filtered, retaining only high-quality target dialogue data to ensure the quality of the foundational data for subsequent processing. Then, semantic recognition is performed on these target dialogue data, transforming them into structured semantic information.

[0110] In the above embodiments, through multi-level screening and processing, the final extracted semantic recognition results are ensured to be accurate and useful, providing a reliable data foundation for further discourse mining and application.

[0111] Furthermore, semantic recognition is performed on the target dialogue data to obtain semantic recognition results, specifically including:

[0112] The target dialogue data is segmented into words to obtain the segmentation results;

[0113] Part-of-speech tagging is performed on the word segmentation results to obtain the part-of-speech tagging results;

[0114] Perform named entity recognition on the word segmentation results to obtain the named entity recognition results;

[0115] Semantic analysis is performed on the word segmentation results to obtain the first semantic analysis result;

[0116] A knowledge graph of the target dialogue data is constructed based on part-of-speech tagging results, named entity recognition results, and first semantic analysis results.

[0117] Semantic inference is performed on the knowledge graph of the target dialogue data to obtain semantic recognition results.

[0118] In this embodiment, firstly, the target dialogue data is segmented into words, breaking the text down into individual words. Next, a Conditional Random Field (CRF) algorithm is used to perform part-of-speech tagging on the segmented results, identifying the part of speech of each word. Then, a Hidden Markov Model (HMM) is used to perform named entity recognition on the segmented results, identifying key entities such as person names and place names. Afterward, a Maximum Entropy Model (MaxEnt) is used to perform semantic analysis on the segmented results, extracting semantic relationships from the text. Based on the part-of-speech tagging results, named entity recognition results, and semantic analysis results, a knowledge graph embedding model is used to construct a knowledge graph of the target dialogue data, integrating this information into a structured knowledge representation. Finally, semantic inference is performed on the knowledge graph to uncover implicit semantic relationships and information, obtaining the final semantic recognition result.

[0119] The CRF algorithm is used to perform part-of-speech tagging on target dialogue data. CRF is a sequence labeling model that can effectively take into account contextual information, handle dependencies between words, accurately identify the part of speech of words, and maximize the joint probability of input data and label sequence by constructing a conditional probability distribution, thereby achieving accurate part-of-speech tagging.

[0120] Hidden Markov Models (HMMs) are probabilistic models that infer implicit state sequences (named entities) from observed sequences (i.e., word segmentation results). By utilizing state transition probabilities and observation probabilities, they can effectively identify key entities in text, such as names of people, places, and organizations, thereby improving the structuring of dialogue data.

[0121] The maximum entropy model is a classification method that avoids overfitting by maximizing the entropy value of the model. It is suitable for multi-class classification problems. In semantic analysis, MaxEnt can handle complex features and contextual information, extract semantic relationships in dialogue data, such as actions and intentions, and enhance text understanding.

[0122] Knowledge graph embedding models embed nodes and relationships in a knowledge graph into a low-dimensional vector space, preserving semantic information and structural features. By integrating the results of part-of-speech tagging, named entity recognition, and semantic analysis, the embedding model creates a structured knowledge graph, which facilitates further semantic inference.

[0123] In this scheme, semantic inference analysis of knowledge graphs is used to infer the knowledge graph, mine implicit semantic relationships and information, and reveal the relationships and patterns not explicitly expressed in the dialogue data through inference, thereby enhancing the understanding and interpretation of semantic recognition results.

[0124] For example, in the aforementioned property insurance sales dialogue scenario, firstly, historical dialogue data is segmented into meaningful word units. For instance, when a customer inquires about detailed information about vehicle insurance, their question is segmented into keywords such as "vehicle" and "insurance." Next, a Conditional Random Field (CRF) algorithm is used for part-of-speech tagging to determine the grammatical role of each word in the sentence, thus understanding the sentence's structure and intent. In this example, part-of-speech tagging helps the system identify "vehicle" and "insurance" as nouns and infer their functions in the sentence. Then, a Hidden Markov Model (HMM) is used for named entity recognition to identify specific named entities, such as specific car models or insurance company names, further refining the understanding of the dialogue content. For example, identifying specific vehicle brands. Finally, a Maximum Entropy Model (MaxEnt) is used for semantic analysis to deeply understand the meaning and context of the sentence, ensuring accurate responses to customer questions and helping the system understand whether the customer is inquiring about a specific type of car insurance or insurance policy.

[0125] In the above embodiments, complex dialogue data can be transformed into structured, semantically rich knowledge representations, improving the understanding and processing capabilities of dialogue data, providing a foundation for subsequent topic comparison, and ensuring the accuracy and comprehensiveness of semantic recognition results through a multi-level, multi-model combination method.

[0126] Furthermore, variant dialogue prediction is performed on historical dialogue data to obtain variant dialogues, specifically including:

[0127] A speech variant model is obtained by pre-training a pre-defined conditional random field model;

[0128] The dialogue feature vector is obtained by using a dialogue variant model to extract features from historical dialogue data.

[0129] Sequence labeling is performed on the dialogue feature vectors to obtain a sequence of dialogue variant labels;

[0130] Dialogue variant label sequences are used to generate dialogue variants, resulting in a candidate set of variant dialogues;

[0131] The candidate phrases in the variant phrases are filtered to obtain variant phrases.

[0132] In this embodiment, firstly, a pre-trained Conditional Random Field (CRF) model is performed to obtain a model specifically for generating dialogue variants. The pre-training process involves using a large amount of dialogue data to adjust the model parameters, enabling it to effectively extract and understand features in the dialogue. Next, the dialogue variant model is used to extract features from historical dialogue data, obtaining dialogue feature vectors. These feature vectors represent the core information and structure of the dialogue data. Then, these feature vectors are sequence-labeled to generate dialogue variant label sequences, identifying key elements and structural patterns in the dialogue. Next, a candidate set of dialogue variants is generated based on these label sequences, forming multiple potential dialogue variants. Finally, the candidate set of variant dialogues is filtered to select the highest quality and most relevant variant dialogues.

[0133] In the above embodiments, this application can generate diverse and high-quality speech variants through a pre-trained speech variant model to meet the needs of different dialogue scenarios, enhance the adaptability and practicality of the speech library, ensure the diversity and relevance of the generated speech, and ensure the quality of speech through a screening step.

[0134] Furthermore, the candidate phrases in the variant phrases are filtered to obtain variant phrases, specifically including:

[0135] The candidate variants are ranked and scored to obtain a ranking score.

[0136] The dialogue word ranking scores are normalized to obtain the probability distribution of variant dialogue words.

[0137] Decode the probability distribution of variant speech to obtain the variant speech sequence with the highest probability;

[0138] Variant scripts are determined based on the highest probability variant script sequence.

[0139] In this embodiment, variant dialogues are selected and optimized through a multi-step process to determine the final variant dialogues. First, a Bidirectional Long Short-Term Memory (BiLSTM) network is used to rank and score the dialogues in the candidate variant dialogue set. BiLSTM can process and capture contextual information in the dialogues, thus assigning a ranking score to each variant dialogue. Next, the softmax normalization function is used to normalize these ranking scores, transforming them into a probability distribution of the variant dialogues, ensuring that the sum of the scores is 1, so that the score of each variant dialogue can be interpreted as a probability. Subsequently, the probability distribution of the variant dialogues is decoded using the Viterbi algorithm to find the variant dialogue sequence with the highest probability. The Viterbi algorithm is a dynamic programming algorithm that can efficiently find the sequence with the highest probability. Finally, the final variant dialogue is determined based on the variant dialogue sequence with the highest probability.

[0140] In the above embodiments, through steps such as sorting, normalization, decoding, and selection, it is ensured that the selected variant scripts not only meet the semantic and contextual requirements, but also have the highest quality and relevance. By combining deep learning and optimization algorithms, the accuracy and effectiveness of script selection are ensured, and the overall quality and practicality of the script library are improved.

[0141] Furthermore, the variant dialogue is evaluated, and a variant dialogue score is output, specifically including:

[0142] The variant phrases are segmented to obtain variant phrase segments;

[0143] Emotional keywords are selected from the word segmentation of variant phrases, and emotional scores of variant phrases are calculated based on the emotional keywords;

[0144] The variant phrases were segmented and their corresponding phrase logic was analyzed. Based on the results of the variant phrase logic analysis, the phrase logic score was calculated.

[0145] Variant speech scores are calculated based on emotion scores and speech logic scores.

[0146] In this embodiment, firstly, the variant dialogue is segmented into individual words. Next, emotional keywords are selected from these segments, and a predefined emotion dictionary or emotion analysis model is used to identify the emotional components in the dialogue. Based on these emotional keywords, an emotion score is calculated for the variant dialogue to assess its emotional expression quality. Then, the segmentation results are analyzed for dialogue logic, involving the analysis of the dialogue's structure, coherence, and logical relationships to ensure logical coherence and organization. Based on these analysis results, the system calculates a dialogue logic score for the variant dialogue to assess its logic and consistency. Finally, the emotion score and the dialogue logic score are combined, and a final score for the variant dialogue is calculated through a weighted or combined method.

[0147] In one specific embodiment of this application, the method for calculating the variant speech score based on emotion score and speech logic score can be implemented using a weighted average. Assume the weights of the emotion score and the speech logic score are 0.4 and 0.6, respectively. First, the variant speech is segmented to extract emotion keywords and calculate an emotion score, for example, 80 points. Then, the speech is logically analyzed to calculate a speech logic score, for example, 90 points. Next, the final score of the variant speech is calculated based on the weights: Variant Speech Score = (Emotion Score × Weight) + (Speech Logic Score × Weight), i.e., 80 points × 0.4 + 90 points × 0.6 = 32 points + 54 points = 86 points. This weighted average method comprehensively considers the quality of both emotion and logic to arrive at the final score of the variant speech.

[0148] In the above embodiments, the final score of the variant dialogue reflects its overall quality in both emotional and logical dimensions. By evaluating the variant dialogue from multiple perspectives, it is ensured that the selected variant dialogue not only possesses good emotional expression but also logical coherence and rationality, thereby improving the overall quality of the dialogue library and user satisfaction.

[0149] Furthermore, emotional keywords are selected from the word segmentation of the variant dialogue, and an emotional score for the variant dialogue is calculated based on the emotional keywords, specifically including:

[0150] A pre-trained sentiment analysis model is used to determine the sentiment tendency of variant speech based on sentiment keywords;

[0151] The decision tree algorithm is used to calculate the sentiment score of variant speech based on sentiment tendency;

[0152] In this embodiment, a pre-trained sentiment analysis model and a decision tree algorithm are used to calculate the sentiment score of the variant dialogue. First, the system segments the variant dialogue into words to filter out sentiment keywords. Then, the pre-trained sentiment analysis model is used to determine the sentiment tendency of these keywords, such as positive, negative, or neutral. Next, based on these sentiment tendencies, a decision tree algorithm is used to synthesize the sentiment tendencies of each sentiment keyword and calculate the overall sentiment score of the variant dialogue. The decision tree algorithm, through hierarchical decision-making and conditional judgment, can effectively evaluate the quality of the sentiment expression in the variant dialogue.

[0153] When using the decision tree algorithm to calculate the overall sentiment score of a variant speech, the sentiment tendency of each sentiment keyword is first classified, such as positive, negative, and neutral. Each node in the decision tree represents a sentiment keyword and its corresponding sentiment tendency, and each leaf node represents a final sentiment score. By traversing the decision tree, starting from the root node, conditional judgments are made based on the sentiment tendency of the sentiment keywords, and the appropriate branches are selected step by step downwards until a leaf node is reached to obtain the final sentiment score. The decision tree determines the optimal split point and path based on the training data, ensuring that the comprehensively calculated sentiment score accurately reflects the sentiment tendency of the entire speech.

[0154] In the above embodiments, it is ensured that the emotion score accurately reflects the emotional characteristics of the speech, providing a reliable basis for subsequent comprehensive scoring.

[0155] Furthermore, the verbal logic analysis includes lexical analysis, syntactic analysis, and semantic analysis. Verbal logic analysis is performed on each segmented variant verbal phrase, and a verbal logic score is calculated based on the results of the variant verbal logic analysis. Specifically, this includes:

[0156] Lexical analysis was performed on the variant word segmentation to obtain the lexical analysis results;

[0157] Syntactic analysis was performed on the variant word segmentation to obtain the syntactic analysis results;

[0158] Semantic analysis was performed on the variant word segmentation to obtain the second semantic analysis result;

[0159] The rhetorical logic score of variant rhetoric is calculated based on the results of lexical analysis, syntactic analysis, and second semantic analysis.

[0160] In this embodiment, a comprehensive logical analysis of the variant speech is performed through lexical analysis, syntactic analysis, and semantic analysis, and its logical score is calculated. First, lexical analysis is performed on the variant speech word segmentation to check the part of speech and correctness of each word, ensuring that word usage conforms to language rules. Next, syntactic analysis is performed to analyze the relationships between words and the sentence structure, ensuring that the sentence structure is correct and logically clear, using techniques such as dependency parsing or phrase structure trees. Then, semantic analysis is performed on the variant speech to understand the semantic relationships and context within the sentence, ensuring that the speech is semantically coherent and consistent. Semantic analysis can use methods such as Hidden Markov Models (HMMs) or Maximum Entropy Models (MaxEnt). Based on the results of lexical analysis, syntactic analysis, and semantic analysis, this information is combined to calculate the speech logic score of the variant speech.

[0161] In the above embodiments, the speech logic score reflects the logical completeness and coherence of the speech, ensuring that the speech is unambiguous or logically flawed. Through multi-level analysis and comprehensive scoring, the logical quality of variant speech can be effectively evaluated, thereby improving the overall level of the speech library.

[0162] In this embodiment, the speech mining method operates on an electronic device (e.g., Figure 1 The server shown can receive instructions or acquire data via wired or wireless connection. It should be noted that the aforementioned wireless connection methods may include, but are not limited to, 3G / 4G connections, WiFi connections, Bluetooth connections, WiMAX connections, Zigbee connections, UWB (ultra-wideband) connections, and other currently known or future wireless connection methods.

[0163] It should be emphasized that, to further ensure the privacy and security of the aforementioned dialogue data, the dialogue data can also be stored in a blockchain node.

[0164] The blockchain referred to in this application is a novel application model of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanisms, and encryption algorithms. Essentially, a blockchain is a decentralized database, a chain of data blocks linked together using cryptographic methods. Each data block contains information about a batch of network transactions, used to verify the validity of the information (anti-counterfeiting) and generate the next block. A blockchain can include an underlying blockchain platform, a platform product service layer, and an application service layer.

[0165] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by instructing related hardware through computer-readable instructions. These computer-readable instructions can be stored in a computer-readable storage medium. When executed, the computer-readable instructions can include the processes of the embodiments of the above methods. The aforementioned storage medium can be a non-volatile storage medium such as a magnetic disk, optical disk, or read-only memory (ROM), or random access memory (RAM).

[0166] It should be understood that although the steps in the flowcharts of the accompanying figures are shown sequentially as indicated by the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the accompanying figures may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily completed at the same time, but can be executed at different times, and their execution order is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the sub-steps or stages of other steps.

[0167] Further reference Figure 3 As a response to the above Figure 2 To implement the method shown, this application provides an embodiment of a speech mining device, which is similar to... Figure 2 Corresponding to the method embodiments shown, this device can be specifically applied to various electronic devices.

[0168] like Figure 3 As shown, the speech mining device 300 described in this embodiment includes:

[0169] The semantic recognition module 301 is used to perform semantic recognition on historical dialogue data to obtain the semantic recognition result of the historical dialogue data.

[0170] The topic comparison module 302 is used to compare the semantic recognition results with the preset topics in the speech database;

[0171] The dialogue storage module 303 is used to store historical dialogue data into the storage space corresponding to the target dialogue topic in the dialogue library when there is a target dialogue topic that matches the semantic recognition result.

[0172] The speech variant module 304 is used to predict speech variants from historical dialogue data when there is no target speech topic that matches the semantic recognition result;

[0173] The script scoring module 305 is used to evaluate variant scripts and output variant script scores.

[0174] The scoring comparison module 306 is used to determine whether the score of the variant speech is greater than the preset scoring threshold.

[0175] The topic storage module 307 is used to extract the variant speech topic when the variant speech score is greater than or equal to the score threshold, and store the variant speech topic as a new speech topic in the speech library;

[0176] The script deletion module 308 is used to delete variant scripts when the variant script score is less than the score threshold.

[0177] Furthermore, the semantic recognition module 301 specifically includes:

[0178] The first dialogue scoring unit is used to obtain the dialogue scores corresponding to historical dialogue data and to obtain historical dialogue scores.

[0179] The data filtering unit is used to filter historical dialogue data based on historical dialogue scores and scoring thresholds to obtain target dialogue data;

[0180] The semantic recognition unit is used to perform semantic recognition on the target dialogue data and obtain the semantic recognition result.

[0181] Furthermore, the semantic recognition unit specifically includes:

[0182] The first word segmentation subunit is used to perform word segmentation on the target dialogue data to obtain the word segmentation results;

[0183] The part-of-speech tagging subunit is used to perform part-of-speech tagging on the word segmentation results to obtain the part-of-speech tagging results;

[0184] The named entity recognition subunit is used to perform named entity recognition on the word segmentation results to obtain the named entity recognition results.

[0185] The first semantic analysis subunit is used to perform semantic analysis on the word segmentation results to obtain the first semantic analysis result;

[0186] The knowledge graph construction subunit is used to construct a knowledge graph of the target dialogue data based on part-of-speech tagging results, named entity recognition results, and first semantic analysis results.

[0187] The semantic inference subunit is used to perform semantic inference on the knowledge graph of the target dialogue data to obtain semantic recognition results.

[0188] Furthermore, the script variant module 304 specifically includes:

[0189] Variant model training unit, used to pre-train a preset conditional random field model to obtain a speech variant model;

[0190] The feature extraction unit is used to extract features from historical dialogue data using a speech variant model to obtain dialogue feature vectors.

[0191] Sequence labeling unit, used to label dialogue feature vectors to obtain a sequence of speech variant labels;

[0192] The speech variant generation unit is used to generate speech variants from speech variant label sequences to obtain a candidate set of variant speech;

[0193] The script filtering unit is used to filter the scripts in the candidate set of variant scripts to obtain variant scripts.

[0194] Furthermore, the script selection unit specifically includes:

[0195] The sorting unit is used to sort and score the candidate speech items in the variant speech set to obtain the speech ranking score.

[0196] The normalization processing subunit is used to normalize the speech ranking scores to obtain the probability distribution of variant speech.

[0197] The probability decoding subunit is used to decode the probability distribution of variant speech and obtain the maximum probability variant speech sequence;

[0198] The script filtering subunit is used to determine variant scripts based on the most probable variant script sequence.

[0199] Furthermore, the conversation script scoring module 305 specifically includes:

[0200] The second word segmentation subunit is used to segment the variant utterances to obtain variant utterance words;

[0201] The emotion scoring unit is used to filter emotion keywords from variant word segments and calculate the emotion score of variant word segments based on emotion keywords;

[0202] The speech logic scoring unit is used to perform speech logic analysis on the variant speech words separately, and calculate the speech logic score of the variant speech based on the results of the variant speech logic analysis.

[0203] The script scoring unit is used to calculate variant script scores based on emotion scores and script logic scores.

[0204] Furthermore, the emotion rating unit specifically includes:

[0205] The sentiment determination subunit is used to determine the sentiment of variant speech based on sentiment keywords using a pre-trained sentiment analysis model.

[0206] The emotion scoring subunit is used to calculate the emotion score of variant speech based on emotion tendency using a decision tree algorithm;

[0207] Furthermore, the verbal logic analysis includes lexical analysis, syntactic analysis, and semantic analysis. The verbal logic scoring unit specifically includes:

[0208] The lexical analysis subunit is used to perform lexical analysis on variant word segmentation to obtain lexical analysis results;

[0209] The syntax analysis subunit is used to perform syntax analysis on variant word segments and obtain the syntax analysis results.

[0210] The second semantic analysis subunit is used to perform semantic analysis on variant word segmentation to obtain the second semantic analysis result;

[0211] The Speech Logic Scoring Subunit is used to calculate the speech logic score of variant speech based on lexical analysis results, syntactic analysis results, and second semantic analysis results.

[0212] In the above embodiments, this application discloses a dialogue mining device, belonging to the field of artificial intelligence technology. This application performs semantic recognition on historical dialogue data, compares the recognition results with preset dialogue topics in a dialogue database, and stores the dialogue data in the corresponding topic if a matching topic is found; otherwise, it generates new dialogue variations using a pre-trained variant model. A pre-trained evaluation model scores the variations; if the score is higher than a threshold, the variation is stored as a new dialogue topic in the dialogue database; otherwise, the variation is deleted. This application transforms unstructured dialogue data into structured information through semantic recognition technology, then compares the recognition results with preset dialogue topics to ensure effective archiving of dialogue data. If no matching topic is found, a new dialogue is generated using a pre-trained variant model, and its quality is evaluated using an evaluation model. Variations with scores higher than a threshold are stored as new topics in the dialogue database, ensuring dynamic expansion and content quality of the dialogue database. This not only improves the richness and structure of the dialogue database but also guarantees the quality and relevance of newly added dialogues.

[0213] To address the aforementioned technical problems, embodiments of this application also provide a computer device. Please refer to [link / reference needed] for details. Figure 4 , Figure 4 This is a basic structural block diagram of the computer device in this embodiment.

[0214] The computer device 4 includes a memory 41, a processor 42, and a network interface 43 that are interconnected via a system bus. It should be noted that only the computer device 4 with components 41-43 is shown in the figure; however, it should be understood that it is not required to implement all the shown components, and more or fewer components can be implemented alternatively. Those skilled in the art will understand that the computer device described here is a device capable of automatically performing numerical calculations and / or information processing according to pre-set or stored instructions. Its hardware includes, but is not limited to, microprocessors, application-specific integrated circuits (ASICs), programmable gate arrays (FPGAs), digital signal processors (DSPs), embedded devices, etc.

[0215] The computer device can be a desktop computer, laptop, handheld computer, or cloud server, etc. The computer device can interact with the user via a keyboard, mouse, remote control, touchpad, or voice control.

[0216] The memory 41 includes at least one type of readable storage medium, including flash memory, hard disk, multimedia card, card-type memory (e.g., SD or DX memory), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, magnetic disk, optical disk, etc. In some embodiments, the memory 41 may be an internal storage unit of the computer device 4, such as the hard disk or memory of the computer device 4. In other embodiments, the memory 41 may also be an external storage device of the computer device 4, such as a plug-in hard disk, smart media card (SMC), secure digital (SD) card, flash card, etc., equipped on the computer device 4. Of course, the memory 41 may include both the internal storage unit and its external storage device of the computer device 4. In this embodiment, the memory 41 is typically used to store the operating system and various application software installed on the computer device 4, such as computer-readable instructions for speech mining methods. In addition, the memory 41 can also be used to temporarily store various types of data that have been output or will be output.

[0217] In some embodiments, the processor 42 may be a central processing unit (CPU), controller, microcontroller, microprocessor, or other data processing chip. The processor 42 is typically used to control the overall operation of the computer device 4. In this embodiment, the processor 42 is used to execute computer-readable instructions stored in the memory 41 or to process data, for example, to execute computer-readable instructions for the speech mining method.

[0218] The network interface 43 may include a wireless network interface or a wired network interface, which is typically used to establish communication connections between the computer device 4 and other electronic devices.

[0219] In the above embodiments, this application discloses a computer device belonging to the field of artificial intelligence technology. This application performs semantic recognition on historical dialogue data, compares the recognition results with preset dialogue topics in a dialogue database, and stores the dialogue data in the corresponding topic if a matching topic is found. If no matching topic is found, a new dialogue variant is generated using a pre-trained variant model. A pre-trained evaluation model is used to score the variant; if the score is higher than a threshold, the variant is stored as a new dialogue topic in the dialogue database; otherwise, the variant is deleted. This application transforms unstructured dialogue data into structured information through semantic recognition technology, then compares the recognition results with preset dialogue topics to ensure that the dialogue data can be effectively archived. If no matching topic is found, a new dialogue is generated using a pre-trained variant model, and its quality is evaluated by an evaluation model. Variants with scores higher than a threshold are stored as new topics in the dialogue database, ensuring the dynamic expansion and content quality of the dialogue database. This not only improves the richness and structure of the dialogue database but also guarantees the quality and relevance of newly added dialogues.

[0220] This application also provides another embodiment, namely, providing a computer-readable storage medium storing computer-readable instructions that can be executed by at least one processor to cause the at least one processor to perform the steps of the above-described speech mining method.

[0221] In the above embodiments, this application discloses a computer-readable storage medium, belonging to the field of artificial intelligence technology. This application performs semantic recognition on historical dialogue data, compares the recognition results with preset dialogue topics in a dialogue database, and stores the dialogue data in the corresponding topic if a matching topic is found; otherwise, it generates new dialogue variations using a pre-trained variant model. A pre-trained evaluation model is then used to score the variations; if the score is higher than a threshold, the variation is stored as a new dialogue topic in the dialogue database, otherwise it is deleted. This application transforms unstructured dialogue data into structured information through semantic recognition technology, then compares the recognition results with preset dialogue topics to ensure that the dialogue data can be effectively archived. If no matching topic is found, a new dialogue is generated using a pre-trained variant model, and its quality is evaluated using an evaluation model. Variations with scores higher than a threshold are stored as new topics in the dialogue database, ensuring the dynamic expansion and content quality of the dialogue database. This not only improves the richness and structure of the dialogue database but also guarantees the quality and relevance of newly added dialogues.

[0222] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes several instructions to cause a terminal device (which may be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in the various embodiments of this application.

[0223] This application can be used in a wide variety of general-purpose or special-purpose computer system environments or configurations. Examples include: personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, and distributed computing environments including any of the above systems or devices. This application can be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc., that perform specific tasks or implement specific abstract data types. This application can also be practiced in distributed computing environments where tasks are performed by remote processing devices connected via a communication network. In distributed computing environments, program modules can reside in local and remote computer storage media, including storage devices.

[0224] Obviously, the embodiments described above are only some embodiments of this application, not all embodiments. The accompanying drawings show preferred embodiments of this application, but do not limit the patent scope of this application. This application can be implemented in many different forms; rather, the purpose of providing these embodiments is to provide a more thorough and comprehensive understanding of the disclosure of this application. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art can still modify the technical solutions described in the foregoing specific embodiments, or make equivalent substitutions for some of the technical features. Any equivalent structures made using the content of this application's specification and drawings, directly or indirectly applied to other related technical fields, are similarly within the scope of patent protection of this application.

Claims

1. A method for extracting sales scripts, characterized in that, include: Semantic recognition is performed on historical dialogue data to obtain the semantic recognition result of the historical dialogue data; The semantic recognition results are compared with preset speech topics in the speech database; If a target dialogue topic that matches the semantic recognition result exists, the historical dialogue data is stored in the storage space corresponding to the target dialogue topic in the dialogue database. If there is no target speech topic that matches the semantic recognition result, then speech variant prediction is performed on the historical dialogue data to obtain variant speech; The variant dialogue is evaluated, and a variant dialogue score is output. Determine whether the score of the variant speech is greater than a preset scoring threshold; If the variant speech score is greater than or equal to the score threshold, then the variant speech topic is extracted and stored as a new speech topic in the speech library; If the score of the variant dialogue is less than the score threshold, then the variant dialogue is deleted; The historical dialogue data is used to predict dialogue variants, resulting in variant dialogues, specifically including: A speech variant model is obtained by pre-training a pre-defined conditional random field model; The historical dialogue data is used to extract features using a dialogue variant model to obtain a dialogue feature vector; Sequence labeling is performed on the dialogue feature vector to obtain a speech variant label sequence, wherein the speech variant labels identify the key elements and structural patterns in the dialogue. The speech variant tag sequence is used to generate speech variants to obtain a candidate set of variant speech; The variant dialogues are obtained by filtering the dialogues in the candidate set of variant dialogues.

2. The speech mining method as described in claim 1, characterized in that, Performing semantic recognition on the historical dialogue data to obtain the semantic recognition result of the historical dialogue data specifically includes: Obtain the speech score corresponding to the historical dialogue data to obtain the historical speech score; Based on the historical dialogue scores and the scoring threshold, the historical dialogue data is filtered to obtain the target dialogue data; The target dialogue data is subjected to semantic recognition to obtain the semantic recognition result.

3. The speech mining method as described in claim 2, characterized in that, Performing semantic recognition on the target dialogue data to obtain the semantic recognition result specifically includes: The target dialogue data is segmented into words to obtain the segmentation results; The word segmentation results are then subjected to part-of-speech tagging to obtain the part-of-speech tagging results. Named entity recognition is performed on the word segmentation results to obtain the named entity recognition results; Semantic analysis is performed on the word segmentation results to obtain the first semantic analysis result; A knowledge graph of the target dialogue data is constructed based on the part-of-speech tagging results, the named entity recognition results, and the first semantic analysis results; Semantic inference is performed on the knowledge graph of the target dialogue data to obtain the semantic recognition result.

4. The speech mining method as described in claim 1, characterized in that, The variant dialogues are selected by filtering the dialogues in the candidate set of variant dialogues, specifically including: The candidate variants are ranked and scored to obtain a ranking score. The speech ranking scores are normalized to obtain the variant speech probability distribution; The probability distribution of the variant speech is decoded to obtain the variant speech sequence with the highest probability; The variant speech is determined based on the highest probability variant speech sequence.

5. The speech mining method as described in claim 1, characterized in that, The variant dialogue is evaluated, and a variant dialogue score is output, specifically including: The variant utterance is segmented to obtain variant utterance words; Emotional keywords are selected from the word segmentation of the variant speech, and an emotional score of the variant speech is calculated based on the emotional keywords; The variant speech words are segmented and subjected to speech logic analysis, and the speech logic score of the variant speech is calculated based on the results of the variant speech logic analysis. The variant speech score is calculated based on the emotion score and the speech logic score.

6. The speech mining method as described in claim 5, characterized in that, The process involves filtering emotional keywords from the segmented words of the variant dialogue and calculating an emotional score for the variant dialogue based on these emotional keywords. Specifically, this includes: A pre-trained sentiment analysis model is used to determine the sentiment tendency of the variant speech based on the sentiment keywords; The emotional score of the variant speech is calculated using a decision tree algorithm based on the emotional tendency. The verbal logic analysis includes lexical analysis, syntactic analysis, and semantic analysis. The variant verbal segments are subjected to verbal logic analysis, and a verbal logic score is calculated based on the results of the variant verbal logic analysis. Specifically, this includes: Lexical analysis was performed on the variant word segmentation to obtain the lexical analysis results; The variant word segmentation is subjected to syntactic analysis to obtain the syntactic analysis results; Semantic analysis is performed on the variant word segmentation to obtain the second semantic analysis result; The verbal logic score of the variant speech is calculated based on the lexical analysis results, the syntactic analysis results, and the second semantic analysis results.

7. A speech extraction device, characterized in that, The script mining device implements the steps of the script mining method as described in any one of claims 1 to 6, and the script mining device comprises: A semantic recognition module is used to perform semantic recognition on historical dialogue data to obtain the semantic recognition result of the historical dialogue data; The topic comparison module is used to compare the semantic recognition results with preset topics in the speech database; The dialogue storage module is used to store the historical dialogue data into the storage space corresponding to the target dialogue topic in the dialogue library when there is a target dialogue topic that matches the semantic recognition result. The speech variant module is used to predict speech variants from the historical dialogue data when there is no target speech topic that matches the semantic recognition result, so as to obtain variant speech. The script scoring module is used to evaluate the variant scripts and output a variant script score. The scoring comparison module is used to determine whether the score of the variant speech is greater than a preset scoring threshold; The topic storage module is used to extract the variant dialogue topic when the variant dialogue score is greater than or equal to the score threshold, and store the variant dialogue topic as a new dialogue topic in the dialogue library; The script deletion module is used to delete the variant script when the score of the variant script is less than the score threshold.

8. A computer device, characterized in that, The method includes a memory and a processor, wherein the memory stores computer-readable instructions, and the processor executes the computer-readable instructions to implement the steps of the speech mining method as described in any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-readable instructions, which, when executed by a processor, implement the steps of the speech mining method as described in any one of claims 1 to 6.

Citation Information

Patent Citations

  • Dialogue generation method and device based on mutual role perception, equipment and medium

    CN113239170A

  • Conversation quality evaluation method and system based on deep learning

    CN114154517A

  • Short text feature extension method based on topic association degree and keyword association

    CN114462392A

  • Information processing method and device, equipment, storage medium and program product

    CN114625854A