Dialogue information analysis method and device, equipment and storage medium
Through speech text recognition and text semantic analysis of dialogue audio, character types are identified and model parameters are adjusted, which solves the problem of poor dialogue audio analysis in the existing technology and achieves more accurate implicit information and emotional understanding.
Patent Information
- Application Number
- CN202410684349.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-30
- Publication Date
- 2024-09-20
AI Technical Summary
When analyzing dialogue audio in specific target scenarios, the existing technology cannot perform specific content analysis based on the role type of the dialogue, resulting in poor understanding of implicit information, emotions, and intentions.
By obtaining the dialogue audio to be analyzed, perform voice text recognition and label the speaker, perform text semantic recognition to identify the role type, adjust the parameters of the dialogue analysis model according to the role proportion, call the adjusted model for analysis, and obtain the analysis dimensions to generate dialogue information Analyze the results.
It improves the effectiveness of dialogue information analysis in understanding implicit information, emotions and intentions, and enables targeted analysis based on different dialogue roles.
Smart Images

Figure CN118673093A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of artificial intelligence technology, and in particular to a conversation information analysis method, device, equipment and storage medium. Background Art
[0002] Traditional conversation information analysis technologies mainly rely on keyword search and pattern recognition in business conversations and customer service scenarios. These technologies can identify basic requests and feedback, but are usually unable to accurately grasp customers' potential needs and purchasing intentions, especially when the conversation involves multiple rounds of communication and implicit meanings. Their ability to understand the context, emotions, and complex semantics of the conversation is significantly limited. Although deep learning methods can better capture long-term dependencies and complex semantic structures when performing conversation analysis, they require a large amount of annotated data and expensive computing resources, and they take a lot of time to train, debug, and perform specific recognition analysis.
[0003] Moreover, in the existing technologies, the existing dialogue analysis solutions still have limited ability to understand implicit information, emotions and intentions in specific target scenarios when faced with professional terms or industry-specific expressions; and for specific target scenarios, the existing dialogue analysis technology cannot adaptively adjust the analysis solution according to the importance of different dialogue roles, resulting in poor analysis results. Summary of the invention
[0004] The main purpose of the present invention is to solve the technical problem that when analyzing the dialogue audio of a specific target scene in the prior art, it is impossible to perform specific content analysis according to the role type of the dialogue, and the effect of understanding the implicit information, emotions and intentions is poor.
[0005] A first aspect of the present invention provides a method for analyzing conversation information, comprising:
[0006] Obtain the conversation audio to be analyzed in the target scenario;
[0007] Performing speech-to-text recognition on the conversation audio to be analyzed, and converting the conversation audio to be analyzed into a conversation text, wherein the conversation text includes a speaker annotation;
[0008] Performing text semantic recognition on the dialogue text to obtain a semantic recognition result, and identifying the role type of each speaker according to the semantic recognition result and the characteristics of the target scene;
[0009] Determine the dialogue ratio of each role type according to the role type corresponding to the dialogue text, and adjust the model parameters in the dialogue analysis model based on the dialogue ratio of each role type;
[0010] The analysis dimension is obtained, and the adjusted conversation analysis model is called to analyze the conversation text to obtain the conversation information analysis result corresponding to the analysis dimension.
[0011] Optionally, in a first implementation of the first aspect of the present invention, the conversation analysis model includes a plurality of self-attention layers, and each attention layer is connected via a residual block;
[0012] The method of adjusting the model parameters in the dialogue analysis model based on the dialogue ratio of each role type includes:
[0013] Calculating an adjustment weight according to the character types in the dialogue text and the dialogue ratio of each character type, wherein the adjustment weight includes a first weight factor and a second weight factor;
[0014] Adjusting the weight parameters of each of the self-attention layers in the conversation analysis model according to the first weight factor;
[0015] According to the second weight factor, the weight parameter of the residual connection formula of each residual block in the conversation analysis model is adjusted.
[0016] Optionally, in a second implementation of the first aspect of the present invention, the semantic recognition result includes a first text semantic and a second text semantic;
[0017] Performing text semantic recognition on the conversation text to obtain a semantic recognition result includes:
[0018] Calling a preset regular text matching library to match the conversation text, obtaining the number of matching triggers, and determining whether the match is successful according to a preset matching threshold;
[0019] If the match is successful, the first text semantics corresponding to the dialogue text is obtained;
[0020] If the match is not successful, the large language model is called to perform semantic recognition on the dialogue text to obtain the second text semantics.
[0021] Optionally, in a third implementation of the first aspect of the present invention, before calling the large language model to perform semantic recognition on the dialogue text to obtain the semantics of the second text, the method further includes:
[0022] Obtain historical dialogue texts in the target scenario, semantically annotate the dialogue texts, annotate the types of each speaking role, and construct a fine-tuning training set;
[0023] Fine-tune the pre-trained large language model based on the fine-tune training set.
[0024] Optionally, in a fourth implementation manner of the first aspect of the present invention, after acquiring the conversation audio to be analyzed in the target scenario, the method further includes:
[0025] The identity information of each speaker in the conversation audio to be analyzed is extracted, and the role type of the speaker is determined based on the identity information.
[0026] Optionally, in a fifth implementation of the first aspect of the present invention, extracting identity information of each speaker in the conversation audio to be analyzed includes:
[0027] Extracting the voiceprint features contained in the conversation audio to be analyzed, searching and matching in a preset voiceprint information database according to the voiceprint features contained in the conversation audio to be analyzed, and obtaining identity information corresponding to the voiceprint features;
[0028] Alternatively, the identity information text contained in the conversation text is extracted, and the identity information is searched in a preset identity information database according to the identity information text.
[0029] Optionally, in a sixth implementation manner of the first aspect of the present invention, the acquiring the analysis dimension, calling the adjusted conversation analysis model to analyze the conversation text, and obtaining the conversation information analysis result corresponding to the analysis dimension includes:
[0030] Calling the adjusted conversation analysis model to analyze the conversation text, and giving different dimension scores according to different analysis dimensions;
[0031] Key information in the conversation text is determined based on the dimension scores, and a conversation information report of the conversation audio to be analyzed is generated based on the key information.
[0032] A second aspect of the present invention provides a conversation information analysis device, comprising:
[0033] A voice acquisition module is used to acquire the conversation audio to be analyzed in the target scenario;
[0034] A first recognition module is used to perform speech text recognition on the conversation audio to be analyzed, and convert the conversation audio to be analyzed into a conversation text, wherein the conversation text contains a speaker label;
[0035] A second recognition module is used to perform text semantic recognition on the dialogue text to obtain a semantic recognition result, and to identify the role type of each speaker according to the semantic recognition result and the characteristics of the target scene;
[0036] A parameter adjustment module, used to determine the dialogue ratio of each role type according to the role type corresponding to the dialogue text, and adjust the model parameters in the dialogue analysis model based on the dialogue ratio of each role type;
[0037] The information analysis module is used to obtain analysis dimensions, call the adjusted conversation analysis model to analyze the conversation text, and obtain conversation information analysis results corresponding to the analysis dimensions.
[0038] The third aspect of the present invention provides a conversation information analysis device, comprising: a memory and at least one processor, wherein the memory stores instructions; the at least one processor calls the instructions in the memory so that the conversation information analysis device executes the steps of the above-mentioned conversation information analysis method.
[0039] A fourth aspect of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores instructions, which, when executed on a computer, enable the computer to execute the steps of the above-mentioned conversation information analysis method.
[0040] In the technical solution provided by the present invention, the conversation audio to be analyzed in the target scene is obtained; the speech text recognition is performed on the conversation audio to be analyzed, and the conversation audio to be analyzed is converted into a conversation text, wherein the conversation text also includes speaker annotations; the text semantic recognition is performed on the conversation text to obtain a semantic recognition result, and the role type of each speaker is identified according to the semantic recognition result and the characteristics of the target scene; the conversation ratio of each role type is determined according to the role type corresponding to the conversation text, and the model parameters in the conversation analysis model are adjusted based on the conversation ratio of each role type; the analysis dimension is obtained, and the adjusted conversation analysis model is called to analyze the conversation text to obtain the conversation information analysis result corresponding to the analysis dimension. The method can perform specific content analysis on the obtained conversation information according to the role type of the conversation, and can improve the effect of the conversation information analysis method in understanding implicit information, emotions and intentions. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0042] Figure 1 This is a flow chart of a first embodiment of a method for analyzing conversation information according to an embodiment of the present invention;
[0043] Figure 2 It is a flowchart of a second embodiment of the method for analyzing conversation information in an embodiment of the present invention;
[0044] Figure 3 A schematic diagram of an embodiment of a conversation information analysis device in an embodiment of the present invention;
[0045] Figure 4 A schematic diagram of an embodiment of a conversation information analysis device in an embodiment of the present invention;
[0046] Figure 5 The figure is a schematic diagram of a computer-readable medium in an embodiment of the present invention. DETAILED DESCRIPTION
[0047] Exemplary embodiments of the present invention will now be described more fully with reference to the accompanying drawings. However, exemplary embodiments can be implemented in a variety of forms, and should not be construed as limiting the present invention to the embodiments set forth herein. On the contrary, providing these exemplary embodiments enables the present invention to be more comprehensive and complete, and is more convenient for fully conveying the inventive concept to those skilled in the art. The same reference numerals in the figures represent the same or similar elements, components or parts, and thus their repeated description will be omitted.
[0048] Under the premise of being consistent with the technical concept of the present invention, the features, structures, characteristics or other details described in a specific embodiment do not exclude that they can be combined in one or more other embodiments in a suitable manner.
[0049] In the description of specific embodiments, the features, structures, characteristics or other details described in the present invention are intended to enable those skilled in the art to fully understand the embodiments. However, it does not exclude that those skilled in the art can practice the technical solutions of the present invention without one or more of the specific features, structures, characteristics or other details.
[0050] The flowcharts shown in the accompanying drawings are only exemplary and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps can be decomposed, and some operations / steps can be combined or partially combined, so the actual execution order may change according to actual conditions.
[0051] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities may be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.
[0052] The term "and / or" or "and / or" includes all combinations of any one or more of the associated listed items.
[0053] See also Figure 1 The first embodiment of the method for analyzing conversation information in the embodiment of the present invention includes:
[0054] S101, obtaining the conversation audio to be analyzed in the target scenario;
[0055] It is understandable that the execution subject of the present invention may be a conversation information analysis device, or a terminal or a server, which is not limited here. The embodiment of the present invention is described by taking a server as the execution subject as an example.
[0056] After receiving the conversation information analysis request, the server parses the target scenario tag contained in the conversation information analysis request and obtains the conversation audio to be analyzed in the target scenario. The target scenario may be a conversation between a salesperson and a customer in a store sales scenario, a conversation between a teacher and a student in a teaching scenario, a conversation between a speaker and a participant in a conference scenario, or other conversation scenarios involving multiple speaking roles. After obtaining the specific conversation target scenario, the conversation audio to be analyzed corresponding to this conversation information analysis request is obtained.
[0057] In this embodiment, after the conversation audio to be analyzed is obtained, the conversation audio to be analyzed is preprocessed to remove noise and remove redundant blank recording parts.
[0058] S102, performing speech-to-text recognition on the conversation audio to be analyzed, and converting the conversation audio to be analyzed into conversation text;
[0059] Automatic Speech Recognition (ASR) technology and Natural Language Processing (NLP) technology are used to perform speech text recognition on the conversation audio to be analyzed, thereby transcribe the pre-processed conversation audio to be analyzed into conversation text.
[0060] In this embodiment, the voiceprint feature recognition is also performed on the conversation audio to be analyzed, different speakers are distinguished according to the voice features, and which audio segments are from the same subject are identified. The speaker of the transcribed conversation text is annotated based on the different speaker information distinguished by the voiceprint features.
[0061] S103, performing text semantic recognition on the dialogue text to obtain a semantic recognition result, and identifying the role type of each speaker according to the semantic recognition result and the characteristics of the target scene;
[0062] Semantic recognition technology is called to perform further semantic error correction and semantic recognition on the dialogue text obtained in the previous step to obtain a semantic recognition result; and the role type of each marked speaker is identified based on the semantic recognition result obtained in this step and the characteristics of the target scene, where multiple speakers can belong to the same role type.
[0063] In a specific implementation example, when the target scene is a conference scene, the content of the speaker and the participant in the conversation audio will be somewhat different. The role of each speaker can be determined based on the personnel introduction information and speech content mentioned by each speaker when speaking. In addition, the type of role can be determined based on the speech characteristics in the scene. For example, the speaker's speech text has more introduction information in the content, and the participant's speech text has more question information in the content. In this step, semantic recognition technology can be called to identify the semantic content contained in the conversation text. After determining the speech intention of each conversation text, the speakers marked in the previous step are classified according to the speech intention, and the role type of each speaker is identified. For example, the recognition result is that a conversation text contains two different speakers and several different participants.
[0064] S104, determining the dialogue ratio of each role type according to the role type corresponding to the dialogue text, and adjusting the model parameters in the dialogue analysis model based on the dialogue ratio of each role type;
[0065] After obtaining the role type labels of the dialogue text in the above steps, the model parameters in the dialogue analysis model are adjusted according to the dialogue ratio of each role type, so that the dialogue analysis model can pay more attention to the more important role types in the target scene, or pay more attention to the information contained in the speech text of the role type that dominates the dialogue in the current target scene. The dialogue analysis model is a self-attention model that is pre-built based on the Transformer structure and fine-tuned.
[0066] In a specific implementation example, the attention weight and hierarchical processing strategy of the dialogue analysis model are adjusted according to the dialogue ratio information output by feature extraction, the model is adjusted to use a finer-grained attention mechanism in the high-level layers closer to the output, and the dialogue ratio of the role type is added as a weight adjustment factor.
[0067] S105: Acquire analysis dimensions, call the adjusted conversation analysis model to analyze the conversation text, and obtain conversation information analysis results corresponding to the analysis dimensions.
[0068] In this embodiment, it is also possible to obtain a target analysis dimension, and call the conversation analysis model adjusted in the aforementioned steps to analyze the conversation text on the target analysis dimension, wherein the target analysis dimension may be multiple, and the conversation text is analyzed on multiple different target analysis dimensions to obtain conversation information analysis results corresponding to the different analysis dimensions, and a conversation information analysis report is generated based on the analysis results.
[0069] The method in the embodiment of the present invention can perform specific content analysis on the obtained dialogue information according to the role type of the dialogue, and can improve the effect of the dialogue information analysis method in understanding implicit information, emotions and intentions.
[0070] Please see Figure 2 The second embodiment of the method for analyzing conversation information in the embodiment of the present invention includes:
[0071] S201, obtaining the conversation audio to be analyzed in the target scenario;
[0072] After receiving the conversation information analysis request, the server parses the target scene tag included in the conversation information analysis request and obtains the conversation audio to be analyzed in the target scene.
[0073] In this embodiment, a conversation between a salesperson and a customer in a store sales scenario is taken as an example to illustrate. After obtaining a specific conversation target scenario, the conversation audio to be analyzed corresponding to the conversation information analysis request is obtained. After obtaining the audio, the conversation audio to be analyzed is first preprocessed to remove noise and remove unnecessary blank recording parts.
[0074] S202, performing speech-to-text recognition on the conversation audio to be analyzed, and converting the conversation audio to be analyzed into conversation text;
[0075] Automatic Speech Recognition (ASR) technology and Natural Language Processing (NLP) technology are used to perform speech text recognition on the conversation audio to be analyzed, thereby transcribe the pre-processed conversation audio to be analyzed into conversation text.
[0076] The conversation text transcribed in this step also includes speaker annotations. Specifically, after the voiceprint features are obtained in the previous step, different speakers can be distinguished based on the voiceprint features, and it can be identified which audio segments are from the same object. The speakers of the transcribed conversation text are annotated based on the different speaker information distinguished by the voiceprint features.
[0077] S203, performing text semantic recognition on the dialogue text to obtain a semantic recognition result, and identifying the role type of each speaker according to the semantic recognition result and the characteristics of the target scene;
[0078] The semantic recognition technology is called to further perform semantic error correction and semantic recognition on the dialogue text obtained in the above step to obtain a semantic recognition result. In the specific semantic recognition step, the preset regular text matching library is first called to match the obtained dialogue text to obtain the number of matching triggers, and whether the match is successful is determined according to the preset matching threshold; if the match is successful, the first text semantics corresponding to the dialogue text is obtained; if the match is not successful, the large language model (LLM) is called to perform semantic recognition on the dialogue text to obtain the second text semantics.
[0079] Among them, the regular text matching library is pre-built, and its pages can be manually entered, or it can be directly generated by a large language model through category keywords, and its complexity can be manually controlled; the regular text matching library contains hierarchies and groups, and has a main regular expression and a sub-regular expression set, and each regular expression corresponds to its own semantic category. The information in the dialogue text is matched with the main regular expression and the sub-regular expression in the regular text matching library by a mixed matching method, and the triggered semantic matching results are counted to obtain the first text semantics corresponding to the dialogue text. If the matching result is unsuccessful when matching with the regular text matching library during specific recognition, the large language model is called in to perform semantic recognition on the dialogue text.
[0080] Specifically, the Large Language Model (LLM) is a deep learning model trained based on massive text data, and its specific structure can be constructed as a Generative Pre-Trained (GPT) model. It can not only generate natural language text, but also deeply understand the meaning of the text and handle various natural language tasks, such as text summarization, question answering, translation, etc. The large language model described in this step is a large language model that has been fine-tuned and trained in advance. In this embodiment, before calling the large language model to perform semantic recognition on the dialogue text and obtain the semantics of the second text, it also includes: obtaining the historical dialogue text in the target scenario, semantically annotating the dialogue text, annotating the type of each speaking role, and constructing a fine-tuning training set; fine-tuning the pre-trained large language model based on the fine-tuning training set.
[0081] In this embodiment, in addition to identifying the role type of each speaker based on the semantic recognition results and the characteristics of the target scene, the role type can also be determined based on the voiceprint characteristics of each speaker in the conversation audio to be analyzed, and the role type can also be determined based on the identity information contained in the conversation text corresponding to the conversation audio to be analyzed. In a preferred embodiment, these role type recognition schemes can be used simultaneously. First, based on algorithms such as deep learning algorithms, the credibility weight of each role type recognition scheme can be calculated based on historical conversation audio and content annotations, and the possibility value of the role type obtained by each method is calculated respectively. The possibility value of the role type obtained by each method is weighted based on the credibility weight to obtain the final role type possibility value result. If the obtained possibility value result meets the preset role type threshold, the corresponding role type determination result is output.
[0082] Specifically, determining the role type based on the voiceprint features of each speaker in the conversation audio to be analyzed includes performing voiceprint feature recognition on the conversation audio to be analyzed, distinguishing different speakers based on the characteristics of the sound, and identifying which audio segments are from the same object. Subsequently, the speaker of the transcribed conversation text can be annotated based on the different speaker information distinguished by the voiceprint features. After obtaining the voiceprint features contained in the conversation audio to be analyzed, it is also possible to search and match in a preset voiceprint information library based on the voiceprint features contained in the conversation audio to be analyzed to obtain user information, wherein the voiceprint information library can store matching information based on historical conversation audio and user information, for example, the voiceprint information library can store voiceprint information of frequent customers of a store or voiceprint information of a store salesperson; in this way, after obtaining the conversation audio to be analyzed, the identity information of the speaker in the current conversation audio is directly searched based on the voiceprint features contained in the conversation audio and the voiceprint information library, thereby determining the user information based on the identity information to determine the possible role type of the speaker.
[0083] Determining the role type based on the identity information contained in the conversation text corresponding to the conversation audio to be analyzed includes extracting the self-introduction information and other information mentioned in the conversation contained in the conversation text during semantic recognition, such as the employee number mentioned by the salesperson during the conversation, the telephone number reported by the customer, etc., extracting these identity information texts from the conversation text, and searching and matching the role type corresponding to the current speaker in a preset identity information library based on these identity information texts.
[0084] S204, determining the dialogue ratio of each role type according to the role type corresponding to the dialogue text, and calculating the adjustment weight according to the role type in the dialogue text and the dialogue ratio of each role type;
[0085] In this embodiment, before performing a specific conversation analysis, an initial conversation analysis model is constructed. The conversation analysis model performs a specific analysis of the conversation information with each different speaker as the analysis unit. The conversation analysis model includes multiple self-attention layers, and each attention layer is connected by a residual block.
[0086] Among them, the adjustment weight includes a first weight factor and a second weight factor. The first weight factor is used to adjust the degree of granularity in the high-level layer of the conversation analysis model; the second weight factor is used to adjust the connection weight of the residual connection formula between each conversation analysis model layer.
[0087] In this embodiment, the first weight factor is calculated by the ratio of the data volume of the role type dialogue in the overall dialogue text, and the second weight factor is adjusted independently according to each different speaker, and is calculated specifically based on the importance of the role type of the current speaker in the target scenario.
[0088] S205, adjusting the weight parameters of the respective attention layers in the dialogue analysis model according to the first weight factor;
[0089] In this step, the speaker ratio is added as the first weight adjustment factor in the self-attention layer close to the output layer of the conversation analysis model to adjust the weight parameters of the attention layer close to the output layer, so that a more fine-grained attention mechanism is used in the advanced layers closer to the output.
[0090] S206, adjusting the weight parameter of the residual connection formula of each residual block in the dialogue analysis model according to the second weight factor;
[0091] The second weight adjustment factor is calculated according to the preset role type weight value and the speech proportion of the speaker.
[0092] The speaking ratio can be calculated based on the number of words in the speech or the duration of the speech. α is used to represent the calculation weight adjustment factor. The adjusted residual connection formula is shown as follows:
[0093] Adjusted Output=Layer Input+α×F(Layer Input, Params);
[0094] Among them, AdjustedOutput represents the adjusted output, LayerInput represents the current layer input, F(LayerInput,Params) refers to the output of the previous layer, and Params is the model parameter of the previous layer.
[0095] To illustrate with a specific example, if the current speaker's role type is relatively important and the speaker speaks a large proportion of the time, the calculated α value will be greater than that of other speakers. When conducting a specific analysis, the α value will be used to enhance the model's attention to its speech, and ultimately output a dialogue analysis result with domain characteristics.
[0096] S207, obtaining analysis dimensions, calling the adjusted conversation analysis model to analyze the conversation text, and giving different dimension scores according to different analysis dimensions;
[0097] S208. Determine key information in the conversation text according to the dimension scores, and generate a conversation information report of the conversation audio to be analyzed according to the key information.
[0098] Obtain the analysis dimensions that are of interest during analysis. For a store sales scenario, when the conversation audio is a conversation between a salesperson and a customer, the salesperson can be analyzed and scored from dimensions such as professional knowledge, communication skills, and demand identification ability. When the customer is analyzed, the customer needs, conversation emotions, and other dimensions can be analyzed and scored.
[0099] When conducting specific analysis and scoring, based on the adjustment method in the previous steps, the adjusted conversation analysis model is called to score from different analysis dimensions, summarize the key information in the conversation text, and generate a conversation information report of the conversation audio to be analyzed based on the key information for subsequent reference.
[0100] In a specific implementation example, the analysis dimension includes an emotional dimension, and the dialogue information analysis method also includes: analyzing the speaker's tone emotional information based on the audio features of the dialogue audio to be analyzed; after performing text semantic recognition on the dialogue text to obtain a semantic recognition result, and identifying the role type of each speaker according to the semantic recognition result and the characteristics of the target scene, it also includes: analyzing the text content through a large language model to obtain text emotional information; calling the adjusted dialogue analysis model to analyze the dialogue text, and obtaining the dialogue information analysis result corresponding to the analysis dimension includes: calling the adjusted dialogue analysis model to analyze the dialogue text, combining the tone emotional information and the text emotional information to obtain the emotional dimension data of each role to obtain the dialogue information analysis result of the emotional dimension.
[0101] The conversation information analysis method in this embodiment can integrate the analysis results, aggregate the analysis contents with the same problem dimension, calculate the overall satisfaction, give priority to displaying single records with lower emotions, and generate a satisfaction analysis result statement or report based on conditions such as questions and dates. Enterprises can use the generated reports to optimize product quality and customer service.
[0102] The embodiment of the present invention can perform specific content analysis on the obtained dialogue information according to the role type of the dialogue, and can improve the effect of the dialogue information analysis method in understanding implicit information, emotions and intentions.
[0103] The above describes the conversation information analysis method in the embodiment of the present invention. The following describes the conversation information analysis device in the embodiment of the present invention. Figure 3 , an embodiment of the conversation information analysis device in the embodiment of the present invention includes:
[0104] A speech acquisition module 301 is used to acquire the conversation audio to be analyzed in the target scene;
[0105] The first recognition module 302 is used to perform speech text recognition on the conversation audio to be analyzed, and convert the conversation audio to be analyzed into a conversation text, wherein the conversation text contains a speaker label;
[0106] The second recognition module 303 is used to perform text semantic recognition on the dialogue text to obtain a semantic recognition result, and to identify the role type of each speaker according to the semantic recognition result and the characteristics of the target scene;
[0107] A parameter adjustment module 304, configured to determine the dialogue ratio of each role type according to the role type corresponding to the dialogue text, and adjust the model parameters in the dialogue analysis model based on the dialogue ratio of each role type;
[0108] The information analysis module 305 is used to obtain analysis dimensions, call the adjusted conversation analysis model to analyze the conversation text, and obtain the conversation information analysis results corresponding to the analysis dimensions.
[0109] The method in the embodiment of the present invention can perform specific content analysis on the obtained dialogue information according to the role type of the dialogue, and can improve the effect of the dialogue information analysis method in understanding implicit information, emotions and intentions.
[0110] In another embodiment of the present application, the conversation analysis model includes multiple self-attention layers, and each attention layer is connected by a residual block; the parameter adjustment module 304 is specifically used to:
[0111] Calculating an adjustment weight according to the character types in the dialogue text and the dialogue ratio of each character type, wherein the adjustment weight includes a first weight factor and a second weight factor;
[0112] Adjusting the weight parameters of each of the self-attention layers in the conversation analysis model according to the first weight factor;
[0113] According to the second weight factor, the weight parameter of the residual connection formula of each residual block in the conversation analysis model is adjusted.
[0114] In another embodiment of the present application, the semantic recognition result includes the first text semantics and the second text semantics; the second recognition module 303 is specifically used to:
[0115] Calling a preset regular text matching library to match the conversation text, obtaining the number of matching triggers, and determining whether the match is successful according to a preset matching threshold;
[0116] If the match is successful, the first text semantics corresponding to the dialogue text is obtained;
[0117] If the match is not successful, the large language model is called to perform semantic recognition on the dialogue text to obtain the second text semantics.
[0118] In another embodiment of the present application, the large language model is a large language model that has been fine-tuned and trained, and the dialogue information analysis device further includes:
[0119] The fine-tuning training module obtains the historical dialogue text in the target scenario, semantically annotates the dialogue text, annotates the type of each speaking role, and constructs a fine-tuning training set; based on the fine-tuning training set, the pre-trained large language model is fine-tuned.
[0120] In another embodiment of the present application, the second identification module 303 is further configured to:
[0121] The identity information of each speaker in the conversation audio to be analyzed is extracted, and the role type of the speaker is determined based on the identity information.
[0122] In another embodiment of the present application, extracting the identity information of each speaker in the conversation audio to be analyzed includes:
[0123] Extracting the voiceprint features contained in the conversation audio to be analyzed, searching and matching in a preset voiceprint information database according to the voiceprint features contained in the conversation audio to be analyzed, and obtaining identity information corresponding to the voiceprint features;
[0124] Alternatively, the identity information text contained in the conversation text is extracted, and the identity information is searched in a preset identity information database according to the identity information text.
[0125] In another embodiment of the present application, the information analysis module is specifically used to:
[0126] Calling the adjusted conversation analysis model to analyze the conversation text, and giving different dimension scores according to different analysis dimensions;
[0127] Key information in the conversation text is determined based on the dimension scores, and a conversation information report of the conversation audio to be analyzed is generated based on the key information.
[0128] The embodiment of the present invention can perform specific content analysis on the obtained dialogue information according to the role type of the dialogue, and can improve the effect of the dialogue information analysis method in understanding implicit information, emotions and intentions.
[0129] above Figure 3 The conversation information analysis device in the embodiment of the present invention is described in detail from the perspective of modular functional entities. Based on the same inventive concept, the embodiment of this specification also provides a conversation information analysis device. The conversation information analysis device in the embodiment of the present invention is described in detail from the perspective of hardware processing.
[0130] Figure 4 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this specification. Figure 4 The electronic device 400 according to this embodiment of the present invention is described. Figure 4 The electronic device 400 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0131] like Figure 4As shown, the electronic device 400 is in the form of a general computing device. The components of the electronic device 400 may include, but are not limited to: at least one processing unit 410, at least one storage unit 420, a bus 430 connecting different system components (including the storage unit 420 and the processing unit 410), a display unit 440, etc.
[0132] The storage unit stores program codes, which can be executed by the processing unit 410, so that the processing unit 410 performs the steps according to various exemplary embodiments of the present invention described in the above processing method section of this specification. For example, the processing unit 410 can perform the following steps: Figure 1 or Figure 2 Steps shown.
[0133] The storage unit 420 may include a readable medium in the form of a volatile storage unit, such as a random access memory unit (RAM) 4201 and / or a cache memory unit 4202 , and may further include a read-only memory unit (ROM) 4203 .
[0134] The storage unit 420 may also include a program / utility 4204 having a set (at least one) of program modules 4205, such program modules 4205 including but not limited to: an operating system, one or more application programs, other program modules and program data, each of which or some combination may include the implementation of a network environment.
[0135] Bus 430 may represent one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
[0136] The electronic device 400 may also communicate with one or more external devices 100 (e.g., keyboards, pointing devices, Bluetooth devices, etc.), one or more devices that enable a user to interact with the electronic device 400, and / or any device that enables the electronic device 400 to communicate with one or more other computing devices (e.g., routers, modems, etc.). Such communication may be performed through an input / output (I / O) interface 450. Furthermore, the electronic device 400 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) through a network adapter 460. The network adapter 460 may communicate with other modules of the electronic device 400 through the bus 430. It should be understood that although Figure 4Not shown, other hardware and / or software modules may be used in conjunction with electronic device 400, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0137] Through the description of the above implementation methods, it is easy for those skilled in the art to understand that the exemplary embodiments described in the present invention can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the implementation method of the present invention can be embodied in the form of a software product, which can be stored in a computer-readable storage medium (which can be a CD-ROM, USB flash drive, mobile hard disk, etc.) or on a network, including a number of instructions to enable a computing device (which can be a personal computer, server, or network device, etc.) to execute the above method according to the present invention. When the computer program is executed by a data processing device, the computer-readable medium can implement the above method of the present invention, that is: Figure 1 or Figure 2 The method shown.
[0138] Figure 5 A schematic diagram of a computer-readable medium provided for an embodiment of this specification.
[0139] accomplish Figure 1 or Figure 2 The computer program of the method shown can be stored on one or more computer readable media. The computer readable medium can be a readable signal medium or a readable storage medium. The readable storage medium can be, for example, but not limited to, a system, device or device of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination of the above. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.
[0140] The computer readable storage medium may include a data signal propagated in a baseband or as part of a carrier wave, wherein a readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The readable storage medium may also be any readable medium other than a readable storage medium, which may send, propagate, or transmit a program for use by an instruction execution system, an apparatus, or a device or used in combination with it. The program code contained on the readable storage medium may be transmitted with any appropriate medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination of the above.
[0141] Program code for performing the operations of the present invention may be written in any combination of one or more programming languages, including object-oriented programming languages such as Java, C++, etc., and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In cases involving a remote computing device, the remote computing device may be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., through the Internet using an Internet service provider).
[0142] In summary, the present invention can be implemented in hardware, or in a software module running on one or more processors, or in a combination thereof. It should be understood by those skilled in the art that general data processing devices such as microprocessors or digital signal processors (DSPs) can be used in practice to implement some or all of the functions of some or all of the components in the embodiments of the present invention. The present invention can also be implemented as a device or apparatus program (e.g., a computer program and a computer program product) for executing part or all of the methods described herein. Such a program implementing the present invention can be stored on a computer-readable medium, or can have the form of one or more signals. Such a signal can be downloaded from an Internet website, or provided on a carrier signal, or provided in any other form.
[0143] The specific embodiments described above further describe the purpose, technical solutions and beneficial effects of the present invention in detail. It should be understood that the present invention is not inherently related to any specific computer, virtual device or electronic device, and various general devices can also implement the present invention. The above description is only a specific embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
[0144] The various embodiments in this specification are described in a progressive manner, and the same or similar parts between the various embodiments can be referenced to each other, and each embodiment focuses on the differences from other embodiments.
[0145] The above is only an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.
Claims
1. A method for analyzing conversation information, characterized in that: include: Obtain the conversation audio to be analyzed in the target scenario; Performing speech-to-text recognition on the conversation audio to be analyzed, and converting the conversation audio to be analyzed into a conversation text, wherein the conversation text includes a speaker annotation; Performing text semantic recognition on the dialogue text to obtain a semantic recognition result, and identifying the role type of each speaker according to the semantic recognition result and the characteristics of the target scene; Determine the dialogue ratio of each role type according to the role type corresponding to the dialogue text, and adjust the model parameters in the dialogue analysis model based on the dialogue ratio of each role type; The analysis dimension is obtained, and the adjusted conversation analysis model is called to analyze the conversation text to obtain the conversation information analysis result corresponding to the analysis dimension.
2. The method for analyzing conversation information according to claim 1, characterized in that: The conversation analysis model includes multiple self-attention layers, and each attention layer is connected by a residual block; The method of adjusting the model parameters in the dialogue analysis model based on the dialogue ratio of each role type includes: Calculating an adjustment weight according to the character types in the dialogue text and the dialogue ratio of each character type, wherein the adjustment weight includes a first weight factor and a second weight factor; Adjusting the weight parameters of each of the self-attention layers in the conversation analysis model according to the first weight factor; According to the second weight factor, the weight parameter of the residual connection formula of each residual block in the conversation analysis model is adjusted.
3. The method for analyzing conversation information according to claim 1 or 2, characterized in that: The semantic recognition result includes a first text semantic and a second text semantic; Performing text semantic recognition on the conversation text to obtain a semantic recognition result includes: Calling a preset regular text matching library to match the conversation text, obtaining the number of matching triggers, and determining whether the match is successful according to a preset matching threshold; If the match is successful, the first text semantics corresponding to the dialogue text is obtained; If the match is not successful, the large language model is called to perform semantic recognition on the dialogue text to obtain the second text semantics.
4. The method for analyzing conversation information according to claim 3, characterized in that: Before calling the large language model to perform semantic recognition on the dialogue text to obtain the semantics of the second text, the method further includes: Obtain historical dialogue texts in the target scenario, semantically annotate the dialogue texts, annotate the types of each speaking role, and construct a fine-tuning training set; Fine-tune the pre-trained large language model based on the fine-tune training set.
5. The method for analyzing conversation information according to claim 4, characterized in that: After acquiring the conversation audio to be analyzed in the target scenario, the method further includes: The identity information of each speaker in the conversation audio to be analyzed is extracted, and the role type of the speaker is determined based on the identity information.
6. The method for analyzing conversation information according to claim 5, characterized in that: The step of extracting the identity information of each speaker in the conversation audio to be analyzed includes: Extracting the voiceprint features contained in the conversation audio to be analyzed, searching and matching in a preset voiceprint information database according to the voiceprint features contained in the conversation audio to be analyzed, and obtaining identity information corresponding to the voiceprint features; Alternatively, the identity information text contained in the conversation text is extracted, and the identity information is searched in a preset identity information database according to the identity information text.
7. The method for analyzing conversation information according to claim 6, characterized in that: The acquiring of the analysis dimension, calling the adjusted conversation analysis model to analyze the conversation text, and obtaining the conversation information analysis result corresponding to the analysis dimension includes: Calling the adjusted conversation analysis model to analyze the conversation text, and giving different dimension scores according to different analysis dimensions; Key information in the conversation text is determined based on the dimension scores, and a conversation information report of the conversation audio to be analyzed is generated based on the key information.
8. A conversation information analysis device, characterized in that: The conversation information analysis device comprises: A voice acquisition module is used to acquire the conversation audio to be analyzed in the target scenario; A first recognition module is used to perform speech text recognition on the conversation audio to be analyzed, and convert the conversation audio to be analyzed into a conversation text, wherein the conversation text contains a speaker label; A second recognition module is used to perform text semantic recognition on the dialogue text to obtain a semantic recognition result, and to identify the role type of each speaker according to the semantic recognition result and the characteristics of the target scene; A parameter adjustment module, used to determine the dialogue ratio of each role type according to the role type corresponding to the dialogue text, and adjust the model parameters in the dialogue analysis model based on the dialogue ratio of each role type; The information analysis module is used to obtain analysis dimensions, call the adjusted conversation analysis model to analyze the conversation text, and obtain conversation information analysis results corresponding to the analysis dimensions.
9. A conversation information analysis device, characterized in that: The conversation information analysis device comprises: a memory and at least one processor, wherein the memory stores instructions; The at least one processor calls the instructions in the memory to enable the conversation information analysis device to perform the steps of the conversation information analysis method according to any one of claims 1 to 7.
10. A computer-readable storage medium having instructions stored thereon, characterized in that: When the instructions are executed by the processor, the steps of the conversation information analysis method as described in any one of claims 1-7 are implemented.
Citation Information
Patent Citations
Dialogue analysis method and device
CN107870896A
Voice interaction system
JP1995104786A
Conversation analyzing device, conversation analyzing method, and program
US20170263245A1
Cited By
Conversation analysis system and method
CN119441400A
Conversational analysis system and method
CN119441400B
Role dialogue generation method and device, equipment, storage medium and program product
CN119808945A
Session analysis method and system based on large model
CN119884371A
Data annotation method and device, electronic equipment and storage medium
CN119889324A
