Behavior intention recognition method and device and electronic equipment

By combining large language models and rule-based tags, a deep bidirectional language representation model is used to identify customer complaint intentions in intelligent outbound call services, which solves the problems of low accuracy and high cost of intent identification in the existing technology, and achieves a more efficient, Flexible customer intent analysis.

CN118573776APending Publication Date: 2024-08-30SHANGHAI ICEKREDIT INC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410622752.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-20
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

The accuracy of behavioral intention recognition in existing intelligent outbound call services is low and labor costs are high. It is difficult to effectively identify customer complaint intentions, resulting in a waste of resources and insufficient business flexibility.

Method used

A large language model combined with rule-based tags is used to extract user reply voice data, and the intent recognition model is trained through a deep bidirectional language representation model to generate score results for complaint intent, reducing manual intervention and improving model generalization capabilities.

Benefits of technology

It improves the accuracy and flexibility of behavioral intention recognition, reduces labor costs, and enhances the ability to identify customers' complaint intentions. It is suitable for large-scale voice data analysis in intelligent outbound call services.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118573776A
    Figure CN118573776A
Patent Text Reader

Abstract

The invention relates to a behavior intention recognition method and device and electronic equipment. The behavior intention recognition method comprises the steps of obtaining voice data of a user in an intelligent outbound service task; according to a large language model and a rule-based rule label added for the voice data, a target label for the voice data is determined, and the rule label and the target label are both used for representing whether the user has a complaint intention; user reply voice data in the voice data is extracted, and the user reply voice data is voice data replied by a user aiming at template voice in the intelligent outbound service task; and training an intention recognition model according to the user reply voice data and the target label to obtain a behavior intention recognition result of which the score represents the complaint intention. In this way, manual recognition can be reduced, the labor cost can be reduced, the generalization ability of the model is improved, and the accuracy and flexibility of behavior intention recognition are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of behavior determination technology, and in particular to a behavior intention recognition method, device and electronic device. Background Art

[0002] Smart outbound call service can perform voice recognition on real-time voice streams during communication with customers, identify customer intentions, and then communicate with customers in the form of real-person voice recording and broadcasting based on preset voice templates. By analyzing the content of single-call conversations, potential customers can be identified and selected for information push.

[0003] In intelligent outbound call services, it is necessary to weigh the benefits and costs, that is, the benefits obtained from intelligent outbound call services and the time cost and complaint cost. Feedback recognition in intelligent outbound call services is to identify the customer conversation content of a single call and mark the feedback type. In related scenarios, feedback recognition includes the following two categories: one is mainly based on rule matching, such as using regular expressions, and the other is labeling using the natural language processing (NLP) method in machine learning. At the same time, the results of feedback recognition are output in the form of two discrete value results in the form of labels.

[0004] The rule-based method mainly summarizes and summarizes feedback cases based on historical experience. Specifically, feedback identification is mainly divided into two steps. The first is to define the feedback situation, and then set the feedback content keywords. For example, if a customer uses dirty words or swears, it is considered that this type of customer has a tendency to complain. Second, set keywords, set the customer's reply to contain dirty words, hit the rule, and return the label "is a complaint". The natural language method based on machine learning is to process the call text into a computer-readable sample, and use relevant algorithms to predict and judge whether there is a tendency to complain.

[0005] Both of the above methods require manual analysis of the call voice. For example, hit analysis: screen samples of real complaints, analyze the judgment effect of rules or models, and supplement or update the rules. Another example is omission analysis: screen samples that have not been complained, manually check whether they belong to complaints, analyze the omissions of rules or models, and complete the rules to prevent subsequent complaints. It can be seen that not only is the accuracy of behavior recognition low, but the labor cost is also high. Summary of the invention

[0006] In order to overcome the technical problems of low accuracy and high labor cost in related technologies for behavior intention recognition, the present disclosure provides a behavior intention recognition method, device and electronic device.

[0007] In a first aspect of an embodiment of the present disclosure, a behavior intention recognition method is provided, the method comprising:

[0008] Obtain the voice data of users in the intelligent outbound call service task;

[0009] Determine a target tag for the voice data according to a large language model and a rule-based rule tag added to the voice data, wherein both the rule tag and the target tag are used to characterize whether the user has a complaint intention;

[0010] Extracting user reply voice data from the voice data, wherein the user reply voice is voice data in which the user replies to the template voice in the intelligent outbound call service task;

[0011] The intention recognition model is trained based on the user's reply voice data and the target label to obtain a behavior intention recognition result whose score represents the complaint intention.

[0012] In a possible implementation, the training of the intention recognition model according to the user reply voice data and the target label to obtain a behavior intention recognition result whose score represents the complaint intention includes:

[0013] An intention recognition model is trained according to the user reply voice data and the target label to obtain a model probability output by the intention recognition model that the user has a complaint intention;

[0014] The model probability is converted to obtain a behavior intention recognition result in which the score represents the complaint intention.

[0015] In a possible implementation, the intention recognition model is a deep bidirectional language representation model, and the intention recognition model is trained according to the user reply voice data and the target label to obtain a model probability output by the intention recognition model that the user has a complaint intention, including:

[0016] Converting the user reply voice data into voice text;

[0017] Cleaning and preprocessing the speech text to remove noise, punctuation marks, stop words and special characters in the speech text to obtain a standard text;

[0018] dividing and tokenizing the standard text to convert the standard text into a word sequence;

[0019] Constructing an input sequence according to the word-unit sequence;

[0020] The input sequence and the target label are used to train an intention recognition model to obtain a model probability output by the intention recognition model that the user has a complaint intention.

[0021] In a possible implementation, constructing an input sequence according to the word-gram sequence includes:

[0022] Adding a sequence category word-gram to the word-gram sequence, wherein the sequence category word-gram is used to characterize the category of the word-gram sequence;

[0023] Adding a separation word to the word sequence after adding the sequence category word, wherein the separation word is used to separate a whole sentence and a paragraph in the word sequence;

[0024] The word-element sequence after adding the separation word-element is preprocessed to obtain an input sequence that meets a preset sequence length, wherein the preprocessing includes sequence filling and sequence truncation.

[0025] In a possible implementation, determining a target tag for the speech data according to the large language model and the rule-based rule tag added to the speech data includes:

[0026] Inputting the speech data into the large language model to obtain a behavior intention model recognition result output by the large language model;

[0027] Adding a large language model label to the behavior intention model recognition result;

[0028] According to the large language model label and the rule-based rule label, a target label for the speech data is obtained by fusion.

[0029] In a possible implementation, fusing the large language model label and the rule-based rule label to obtain a target label for the speech data includes:

[0030] When the large language model label is consistent with the rule-based rule label, the large language model label and / or the rule-based rule label is used as the target label of the user.

[0031] In a possible implementation, the method further includes:

[0032] When the large language model label is inconsistent with the rule-based rule label, a manual task is prompted to add a target label to the speech data, and the target label added to the speech data manually is obtained.

[0033] In a second aspect of an embodiment of the present disclosure, a behavior intention recognition device is provided, the device comprising:

[0034] An acquisition module, configured to acquire voice data of a user in an intelligent outbound call service task;

[0035] a label determination module, configured to determine a target label for the voice data according to a large language model and a rule-based rule label added to the voice data, wherein both the rule label and the target label are used to characterize whether the user has a complaint intention;

[0036] An extraction module is configured to extract user reply voice data from the voice data, wherein the user reply voice is voice data in which the user replies to the template voice in the intelligent outbound call service task;

[0037] The training module is configured to train the intention recognition model according to the user's reply voice data and the target label to obtain a behavior intention recognition result whose score represents the complaint intention.

[0038] In a possible implementation, the training module includes:

[0039] A training submodule is configured to train an intention recognition model according to the user reply voice data and the target label, and obtain a model probability output by the intention recognition model that the user has a complaint intention;

[0040] The conversion module is configured to convert the model probability to obtain a behavior intention recognition result in which the score represents the complaint intention.

[0041] In a possible implementation, the intent recognition model is a deep bidirectional language representation model, and the training submodule is configured as follows:

[0042] Converting the user reply voice data into voice text;

[0043] Cleaning and preprocessing the speech text to remove noise, punctuation marks, stop words and special characters in the speech text to obtain a standard text;

[0044] dividing and tokenizing the standard text to convert the standard text into a word sequence;

[0045] Constructing an input sequence according to the word-unit sequence;

[0046] The input sequence and the target label are used to train an intention recognition model to obtain a model probability output by the intention recognition model that the user has a complaint intention.

[0047] In a possible implementation, the training submodule is configured as follows:

[0048] Adding a sequence category word-gram to the word-gram sequence, wherein the sequence category word-gram is used to characterize the category of the word-gram sequence;

[0049] Adding a separation word to the word sequence after adding the sequence category word, wherein the separation word is used to separate a whole sentence and a paragraph in the word sequence;

[0050] The word-element sequence after adding the separation word-element is preprocessed to obtain an input sequence that meets a preset sequence length, wherein the preprocessing includes sequence filling and sequence truncation.

[0051] In a possible implementation, the tag determination module is configured to:

[0052] Inputting the speech data into the large language model to obtain a behavior intention model recognition result output by the large language model;

[0053] Adding a large language model label to the behavior intention model recognition result;

[0054] According to the large language model label and the rule-based rule label, a target label for the speech data is obtained by fusion.

[0055] In a possible implementation, the tag determination module is configured to:

[0056] When the large language model label is consistent with the rule-based rule label, the large language model label and / or the rule-based rule label is used as the target label of the user.

[0057] In a possible implementation, the tag determination module is configured to:

[0058] When the large language model label is inconsistent with the rule-based rule label, a manual task is prompted to add a target label to the speech data, and the target label added to the speech data manually is obtained.

[0059] In a third aspect of an embodiment of the present disclosure, an electronic device is provided, including:

[0060] processor;

[0061] a memory for storing processor-executable instructions;

[0062] The processor is configured to execute executable instructions in the memory to implement the method described in any one of the first aspects.

[0063] The technical solution provided by the embodiments of the present disclosure may have the following beneficial effects:

[0064] Acquire the voice data of the user in the intelligent outbound call service task; determine the target label for the voice data based on the large language model and the rule-based rule label added to the voice data, and both the rule label and the target label are used to characterize whether the user has the intention to complain; extract the user reply voice data in the voice data, wherein the user reply voice is the voice data of the user replying to the template voice in the intelligent outbound call service task; train the intention recognition model based on the user reply voice data and the target label to obtain the behavioral intention recognition result whose score represents the intention to complain. In this way, it can not only reduce manual recognition, reduce labor costs, improve the generalization ability of the model, but also improve the accuracy and flexibility of behavioral intention recognition.

[0065] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0066] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.

[0067] Figure 1 The figure is a flow chart of a behavior intention recognition method according to an exemplary embodiment.

[0068] Figure 2 An implementation according to an exemplary embodiment is shown Figure 1 Flowchart of step S14 in FIG.

[0069] Figure 3 According to an exemplary embodiment, an implementation Figure 2 Flowchart of step S141 in FIG.

[0070] Figure 4 An implementation according to an exemplary embodiment is shown Figure 1 Flowchart of step S12 in FIG.

[0071] Figure 5 The figure is a block diagram of a device for identifying behavior intention according to an exemplary embodiment. DETAILED DESCRIPTION

[0072] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.

[0073] Before introducing a behavior intention recognition method, device and electronic device provided by the present disclosure, the prior art in the relevant technical field is first introduced. Manual analysis leads to high costs, and the cost of obtaining complaint labels is also high. In the call tasks of intelligent outbound call services, the average daily call volume is huge (tens of millions per day) and the call frequency is high. The proportion of complaining people is extremely low, and complaint calls missed by rules or models require a large amount of manual re-identification and analysis in the future, which is very difficult. After each call task is completed, manual analysis takes a long time and is costly. In addition, the output is in the form of labels, and the business use lacks flexibility. Whether a complaint is made is output in the form of discrete values ​​(2 values). Therefore, the business use method is relatively limited and cannot be flexibly adjusted. For example, when the business requires conservative marketing, it is impossible to screen customers with a higher possibility of complaints from people identified as "non-complaining" people.

[0074] In addition, the analysis based on the dialogue rules is not only efficient in calculation, but also easy to deploy and launch, because the rule calculation is simpler than the model. From the business perspective, the rule setting is easy to understand, and business personnel without a computer background can quickly understand it. However, the rule setting has omissions and is not systematic enough. The setting of rules relies on business personnel to summarize and summarize complaint cases. With the increase in call tasks of intelligent outbound call services, the missing rules need to be quickly launched online in a "patch" manner to supplement the rules and prevent complaints. Therefore, it is inevitable that there are omissions in the setting of rules, and the rule structure is not systematic and global enough. In addition, the rule hit only considers local information such as keywords, and cannot capture the complete and true intentions of customers. There are cases where customers express complaints but do not use keywords, and cannot be identified as "complaints."

[0075] Compared with simple rules, complex calculations based on machine learning can capture more similar complaint language by learning the content of complaint samples and mastering their language rules, so as to determine whether it is a complaint. Since data quality is difficult to guarantee, the model effect is biased. When modeling, it is often only possible to model with real complaint samples or complaint samples filtered by rules. Therefore, there will be some samples that may be complaints (omissions) in the "non-complaint" samples of the model; at the same time, there will be some non-complaint samples (misjudgments) in the "complaint" samples. The model trained on this basis will find it difficult to identify complex complaint situations, and the model itself will be biased. At the same time, the limitations of the samples make it difficult to ensure the generalization of the model. As mentioned above, the complaint samples in the sample come from the complaint patterns (rules, samples that have been complained). Therefore, the model will continue to learn such rules. When faced with new and unknown complaint situations, the model cannot capture them. Model training resources are also limited. For complex natural language models, not only professional AI talents are needed, but also a large amount of call content (corpus content) is needed for model training. Therefore, not only the personnel requirements are high, but also the computer resources and training content requirements are high. .

[0076] Figure 1 FIG. 1 is a flow chart of a method for identifying behavioral intention according to an exemplary embodiment. Figure 1 As shown, the method includes the following steps.

[0077] In step S11, the voice data of the user in the intelligent outbound call service task is obtained.

[0078] Among them, the intelligent outbound call service tasks are used in scenarios such as customer service, market research, and sales promotion. Use automation technology to simulate human voices and conversation processes to provide or obtain voice data generated by the user's conversation with the system. It can be understood that voice data is digital data that records voice information. In the intelligent outbound call service, voice data is usually the audio data generated when the user interacts with the intelligent outbound call system.

[0079] In the disclosed embodiment, when the intelligent outbound call service task is in progress, the system will record the user's voice data. This data may include the user's reply, question, emotional expression, etc. For example, an e-commerce company uses the intelligent outbound call service for after-sales service. When the user makes an after-sales call, the system will record the user's voice data.

[0080] In step S12, a target tag for the speech data is determined based on the large language model and the rule-based rule tags added to the speech data.

[0081] The rule label and the target label are both used to characterize whether the user has a complaint intention.

[0082] Among them, the large language model is a natural language processing model based on deep learning, which is usually trained using a large-scale corpus to achieve language understanding and generation. These models can be used for various NLP tasks such as text classification, text generation, question answering, etc.

[0083] The rule labels are the result of labeling the speech data based on certain preset rules, which can be based on linguistics, experience or other methods.

[0084] Among them, the target label is a label obtained by deep analysis and processing of the voice data, which represents a certain characteristic or intention of the voice data.

[0085] In the disclosed embodiment, a large language model is used to perform a preliminary analysis of the voice data to extract key information. Then, combined with rule-based rule tags, the voice data is more accurately annotated. These rule tags may be formulated based on past experience or linguistic knowledge. Following the embodiment used in the intelligent outbound call service of the above-mentioned e-commerce company, the system first uses a large language model to identify the user's keywords and phrases, and then combines preset rule tags (such as "the user mentioned product quality issues" or "the user requested a refund") to determine whether the user has the intention to complain.

[0086] In step S13, user reply voice data is extracted from the voice data, wherein the user reply voice is voice data in which the user replies to the template voice in the intelligent outbound call service task.

[0087] Among them, the voice data includes machine voice and user reply voice. From the entire voice data, the part where the user replies to the template voice in the intelligent outbound call service task is extracted. This part of the data usually contains the user's specific intentions and feedback. Following the implementation example used in the intelligent outbound call service of the above-mentioned e-commerce company, when users receive a template voice about a product satisfaction survey, they may give positive, negative or neutral responses. The system needs to extract these responses for subsequent analysis.

[0088] In step S14, an intention recognition model is trained based on the user reply voice data and the target label to obtain a behavior intention recognition result whose score represents the complaint intention.

[0089] Complaint intent refers to the user's dissatisfaction, complaints, or willingness to request a solution when interacting with the intelligent outbound call system. The intent recognition model is a machine learning model that is used to identify the intent in user text or speech. For example, it may be able to identify whether the user wants to query information, purchase a product, or make a complaint.

[0090] In the disclosed embodiment, an intent recognition model is trained using user reply voice data and determined target labels. This model can learn how to recognize the user's intent from voice data through machine learning algorithms (such as deep learning). After the training is completed, the model can give a score for the complaint intention corresponding to each voice data, thereby judging the intensity of the user's willingness to complain. Following the embodiment used in the intelligent outbound call service of the above-mentioned e-commerce company, the trained intent recognition model can automatically analyze the reply voice of each user and give a score for whether there is a complaint intention. For example, the score can be between 1-10 points or 1-100 points, where the larger the score, the higher the complaint intention. In this way, the service process can be optimized based on these scores to improve customer satisfaction.

[0091] The above technical solution obtains the voice data of the user in the intelligent outbound call service task; determines the target label for the voice data based on the large language model and the rule-based rule label added to the voice data, and both the rule label and the target label are used to characterize whether the user has the intention to complain; extracts the user reply voice data in the voice data, wherein the user reply voice is the voice data of the user replying to the template voice in the intelligent outbound call service task; trains the intention recognition model based on the user reply voice data and the target label, and obtains the behavioral intention recognition result whose score represents the complaint intention. In this way, it can not only reduce manual recognition, reduce labor costs, and improve the generalization ability of the model, but also improve the accuracy and flexibility of behavioral intention recognition.

[0092] In one possible implementation, see Figure 2 As shown, in step S14, the intention recognition model is trained according to the user reply voice data and the target label to obtain a behavior intention recognition result whose score represents the complaint intention, including:

[0093] In step S141, an intention recognition model is trained based on the user's reply voice data and the target label to obtain a model probability output by the intention recognition model that the user has a complaint intention.

[0094] Model probability usually refers to the probability that a machine learning model (such as a classifier or regression model) assigns to a certain category for a particular input data. In the context of intent recognition models, model probability may refer to the probability that the model predicts that the user has the intent to complain.

[0095] In the disclosed embodiment, after each outbound call, the system will record the customer's reply voice data, and train an intent recognition model based on this data and preset target tags (such as "complaint", "satisfied", "neutral", etc.). During the training process, the model will learn how to identify the characteristics of complaint intent from the customer's reply voice data. For example, the model may notice that when customers mention keywords such as "dissatisfied", "problem", "refund", etc., they are more likely to have a complaint intention. After the training is completed, the model can output a model probability of complaint intent for each customer's reply voice data. For example, for a certain customer's reply, the model may give a probability of 0.7, indicating that this customer has a 70% intention to complain.

[0096] In step S142, the model probability is converted to obtain a behavior intention recognition result in which the score represents the complaint intention.

[0097] Among them, the behavior intention recognition result is the result of classifying the intention of user behavior or voice content. Here, it specifically refers to the classification result of identifying whether the user has the intention to complain.

[0098] After obtaining the model probabilities, the system needs to further convert these probabilities into more intuitive scores. This is usually to facilitate human understanding and interpretation. For example, the system can convert a model probability of 0.7 to 70 points on a 100-point scale, indicating that this customer has a strong intention to complain. Similarly, customers with a model probability of 0.3 can be converted to 30 points, indicating that their intention to complain is relatively weak.

[0099] In this way, it is easier to identify which customers are more likely to complain and take appropriate measures accordingly, such as proactively contacting customers to resolve issues, or improving products or services to reduce complaints.

[0100] In a possible implementation, the intent recognition model is a deep bidirectional language representation model, which is a natural language processing model based on deep learning that can capture contextual information in the text. Compared with the unidirectional model, the bidirectional model can simultaneously consider the forward and backward information in the text, thereby more accurately understanding the meaning of the text. Common deep bidirectional language representation models include BERT, ERNIE, etc. Figure 3 As shown, in step S141, the intention recognition model is trained according to the user reply voice data and the target label to obtain the model probability of the user having the intention to complain output by the intention recognition model, including:

[0101] In step S1411, the user reply voice data is converted into voice text;

[0102] Among them, it refers to the process of converting a voice signal into text form, that is, converting voice data into readable text.

[0103] In the embodiments of the present disclosure, the voice responses of the user are converted into text form for subsequent text processing. Speech recognition technology generally includes steps such as audio signal processing, feature extraction, and pattern matching. In an intelligent customer service system, when a user replies to a question by voice, the system first needs to convert this voice data into text in order to understand the user's intention and the content of the question.

[0104] In step S1412, the voice text is cleaned and preprocessed to remove noise, punctuation marks, stop words, and special characters in the voice text, obtaining a standard text;

[0105] Among them, in text processing, cleaning and preprocessing can remove irrelevant information in the text, such as noise, punctuation marks, stop words (such as commonly used words like "de", "shi", etc. that do not affect the meaning of the text), and special characters, so as to improve the effect and accuracy of subsequent processing.

[0106] In the embodiments of the present disclosure, cleaning and preprocessing may include removing noise in the text (such as background sounds, repeated words, etc.), standardizing punctuation marks, removing stop words (words that are commonly used but contribute little to the semantics), and special characters, etc.

[0107] In step S1413, the standard text is segmented and tokenized to convert the standard text into a sequence of tokens;

[0108] Among them, segmentation is to divide a long text into shorter text segments (such as sentences or phrases), and tokenization is to convert the text segments into a format that can be understood by a computer, usually converting them into a sequence of tokens. A token is the basic unit in text processing and can be a word, a punctuation mark, or other language elements.

[0109] Among them, a sequence of tokens is a sequence of words obtained after tokenization processing, which is the basis for model input. The processed text is divided into smaller units (such as words or phrases) and converted into a format that the model can process. Segmentation is to divide the text into sentences or phrases, and tokenization is to convert these units into a sequence of tokens.

[0110] In step S1414, an input sequence is constructed according to the sequence of tokens;

[0111] Among them, the input sequence is a word sequence determined in deep learning based on the model usually receiving a fixed-length input. Therefore, the processed word sequence needs to be converted into a fixed-length input sequence, which usually involves operations such as padding or truncation. Therefore, the processed word sequence can be converted into a fixed-length input sequence. This usually involves operations such as padding (padding shorter sequences to a fixed length) or truncation (shortening longer sequences to a fixed length).

[0112] In step S1415, the input sequence and the target label are used to train an intention recognition model to obtain a model probability output by the intention recognition model that the user has a complaint intention.

[0113] Use deep bidirectional language representation models (such as BERT, ERNIE, etc.) to train the intent recognition model. The model receives the input sequence (processed user reply text) and the target label (whether there is a complaint intention) as training data, and updates the model parameters through the back propagation algorithm to minimize the prediction error. After training, the model can predict new input sequences and output the model probability that the user has a complaint intention.

[0114] In a possible implementation, in step S1414, constructing an input sequence according to the word-gram sequence includes:

[0115] Adding a sequence category word-gram to the word-gram sequence, wherein the sequence category word-gram is used to characterize the category of the word-gram sequence;

[0116] Among them, the sequence category token is used to identify or mark the category or type to which the token sequence belongs. In text processing, it can help the model better understand the context and intent of the sequence, thereby improving the accuracy and efficiency of processing.

[0117] In the disclosed embodiment, a sequence category token is added to the beginning or end of a token sequence. This category token is usually a special token that is used to identify the text type or field to which the token sequence belongs. For example, if the token sequence is a text from a user complaint, then the sequence category token may be "complaint text" or a similar identifier. Corresponding sequence category tokens, such as "complaint", "consultation", etc., can be added at the beginning or end of the token sequence to help the model better understand user intent.

[0118] Adding a separation word to the word sequence after adding the sequence category word, wherein the separation word is used to separate a whole sentence and a paragraph in the word sequence;

[0119] Among them, delimiter tokens are used to mark the boundaries of sentences or paragraphs in a token sequence. In text processing, it helps the model distinguish different sentences or paragraphs, thereby better understanding the structure and meaning of the text.

[0120] In the disclosed embodiment, after adding sequence category tokens, it is necessary to add separator tokens to the token sequence to distinguish the boundaries of sentences or paragraphs. Separator tokens are usually inserted at the end of a sentence or paragraph. When processing long texts, such as user complaint descriptions, they may contain multiple sentences or paragraphs. By adding separator tokens at the end of each sentence or paragraph, the model can better understand the structure of the text and thus more accurately identify the user's intent.

[0121] The word-element sequence after adding the separation word-element is preprocessed to obtain an input sequence that meets a preset sequence length, wherein the preprocessing includes sequence filling and sequence truncation.

[0122] Among them, when the length of the word sequence is less than the preset sequence length, in order to maintain the consistency of the input, the sequence needs to be padded. Padding is usually done using special words (such as "PAD") until the sequence reaches the preset length. When the length of the word sequence exceeds the preset sequence length, the sequence needs to be truncated to ensure the consistency of the input. Truncation usually occurs at the end of the sequence, that is, the excess words are deleted.

[0123] In the disclosed embodiment, after the separation words and sequence category words are added, the length of the word sequence may not meet the input requirements of the model. Therefore, preprocessing is required, including sequence padding and sequence truncation, to ensure that the sequence length meets the input requirements of the model. If the length of the word sequence is less than the preset sequence length, then a padding word (such as "PAD") is added to the end of the sequence until the sequence length reaches the preset requirements. If the length of the word sequence exceeds the preset sequence length, then the end of the sequence needs to be truncated to ensure that the sequence length meets the requirements. When training an intent recognition model, the model usually requires a fixed input sequence length. Therefore, for user texts of different lengths, padding or truncation operations are required to ensure that the lengths of all input sequences are consistent. In this way, the model can better learn and predict user intent.

[0124] In one possible implementation, see Figure 4 As shown, in step S12, determining a target tag for the speech data based on the large language model and the rule-based rule tag added to the speech data includes:

[0125] In step S121, the speech data is input into the large language model to obtain a behavior intention model recognition result output by the large language model;

[0126] In the disclosed embodiments, the speech data may be converted to text form (if not already converted) because the large language model typically processes text input. The text is then input into the large language model, which analyzes the intent and meaning of the input text based on its training data and learned language structure, and outputs a recognition result. This result is a preliminary judgment of the behavioral intent in the input text.

[0127] In step S122, a large language model label is added to the behavior intention model recognition result;

[0128] In the disclosed embodiment, based on the output of the large language model (i.e., the recognition result of the behavioral intention model), the system adds corresponding labels to the recognition result. These labels may represent different intent categories, such as "complaint", "consultation", "praise", etc. The purpose of adding these labels is for subsequent processing and analysis, such as for training other models or as a supplement to rule labels.

[0129] In step S123, a target label for the speech data is obtained by fusing the large language model label and the rule-based rule label.

[0130] In the disclosed embodiment, the labels generated by the large language model are fused with the rule-based rule labels. This usually involves some decision logic, which may be a simple majority vote, a weighted average, or a more complex fusion algorithm. The rule labels may be based on domain knowledge or best practices in a specific scenario. They provide additional information or are used to correct errors that may be generated by the model. By fusing these two labels, the system can generate a more accurate and comprehensive target label, which is ultimately used to describe and classify the intent or behavior of the voice data. For example, in an intelligent customer service system, the large language model may initially determine that the user's voice data is intended to be a "complaint", but the rule-based rule label may identify certain keywords or phrases, indicating that the user's intention is actually "consultation". In this case, the fusion algorithm may take into account the information of the rule label and ultimately determine the target label as "consultation", thereby providing a more accurate response.

[0131] In a possible implementation, in step S123, fusing the large language model label and the rule-based rule label to obtain a target label for the speech data includes:

[0132] When the large language model label is consistent with the rule-based rule label, the large language model label and / or the rule-based rule label is used as the target label of the user.

[0133] The large language model label is a label generated by the large language model to characterize whether the user has a complaint intention, and is used to identify the intention or category of the input text (in this case, the text converted from voice data). These labels are usually generated based on the language patterns and knowledge base learned by the model.

[0134] In the disclosed embodiment, both the large language model label and the rule-based rule label point to the same intent or category. This means that the two have a consistent understanding of the speech data. These consistent labels can be directly adopted as the user's target label. This reduces errors and ambiguities and improves the accuracy of the labels. Example: Assume that the large language model label is "complaint" and the rule-based rule label is also "complaint". In this case, the system can determine that the user's intention is complaint and use "complaint" as the target label. Assume that the large language model label is "non-complaint" and the rule-based rule label is also "non-complaint". In this case, the system can determine that the user's intention is complaint and use "non-complaint" as the target label.

[0135] In a possible implementation, the method further includes:

[0136] When the large language model label is inconsistent with the rule-based rule label, a manual task is prompted to add a target label to the speech data, and the target label added to the speech data manually is obtained.

[0137] There are discrepancies between large language model labels and rule-based rule labels. This may be due to incomplete accuracy of the model, limitations of the rules, or inherent differences between the two. To resolve this inconsistency, the system requires human intervention. The system prompts humans to add target labels to the voice data, so that human expertise and judgment can be used to determine the most accurate labels. Get manually added target labels: Humans will listen to the voice data, understand its intent, and add the corresponding target labels. This label is generally considered to be the final and accurate label. Example: Suppose the large language model label is "consultation", but the rule-based rule label is "complaint". In this case, the system may prompt human intervention, and after listening to the voice data, the human may determine that the user's intent is "complaint", so "complaint" is used as the target label.

[0138] It can be explained that the technical solution provided by the embodiment of the present disclosure can reduce manual recognition and enhance data quality. First, the text can be processed in batches to obtain results. Then, the target label is obtained by fusing the two results (rule class and large language model class), and the amount of data required for manual judgment is greatly reduced, which saves labor costs, increases the efficiency of manual judgment, and can find the missed complaint samples faster. The target label obtained by fusion is cleaner than the previous data. The model trained on this basis has clearer recognition and better effect. And it breaks the limitations of model training and reduces the requirements for personnel and enterprises. The large language model and the BERT model are respectively. The large language model is a deep learning model based on the Internet, trained with available data, and generated by text. The BERT model is a model pre-trained based on a large amount of public data. Based on the model itself has good language recognition ability, the judgment conclusion is more accurate and reliable. Compared with the hit of the key words and sentences of the rules, it can not only understand the keywords, but also recognize the language connection of the context, and can understand the meaning of the customer's expression from a global perspective. The training data of the two models are diverse, and the model generalization is stronger. Both models are developed based on a large number of corpora. Therefore, unknown complaints can be predicted and identified.

[0139] In addition, the business is flexible in use and deployment. First, the output is a score, and the score threshold can be analyzed and set according to the specific business scenario and business requirements. It can be used flexibly and explainably in different business scenarios. Secondly, the BERT model can support cross-platform deployment or be packaged into an API interface, which makes subsequent deployment and calling convenient and flexible.

[0140] The present disclosure also provides a behavior intention recognition device, see Figure 5 As shown, the device comprises:

[0141] The acquisition module 510 is configured to acquire the voice data of the user in the intelligent outbound call service task;

[0142] The label determination module 520 is configured to determine a target label for the voice data according to the large language model and the rule-based rule label added to the voice data, wherein both the rule label and the target label are used to characterize whether the user has a complaint intention;

[0143] The extraction module 530 is configured to extract user reply voice data from the voice data, wherein the user reply voice is voice data in which the user replies to the template voice in the intelligent outbound call service task;

[0144] The training module 540 is configured to train the intention recognition model according to the user reply voice data and the target label to obtain a behavior intention recognition result whose score represents the complaint intention.

[0145] In a possible implementation, the training module 540 includes:

[0146] A training submodule is configured to train an intention recognition model according to the user reply voice data and the target label, and obtain a model probability output by the intention recognition model that the user has a complaint intention;

[0147] The conversion module is configured to convert the model probability to obtain a behavior intention recognition result in which the score represents the complaint intention.

[0148] In a possible implementation, the intent recognition model is a deep bidirectional language representation model, and the training submodule is configured as follows:

[0149] Converting the user reply voice data into voice text;

[0150] Cleaning and preprocessing the speech text to remove noise, punctuation marks, stop words and special characters in the speech text to obtain a standard text;

[0151] dividing and tokenizing the standard text to convert the standard text into a word sequence;

[0152] Constructing an input sequence according to the word-unit sequence;

[0153] The input sequence and the target label are used to train an intention recognition model to obtain a model probability output by the intention recognition model that the user has a complaint intention.

[0154] In a possible implementation, the training submodule is configured as follows:

[0155] Adding a sequence category word-gram to the word-gram sequence, wherein the sequence category word-gram is used to characterize the category of the word-gram sequence;

[0156] Adding a separation word to the word sequence after adding the sequence category word, wherein the separation word is used to separate a whole sentence and a paragraph in the word sequence;

[0157] The word-element sequence after adding the separation word-element is preprocessed to obtain an input sequence that meets a preset sequence length, wherein the preprocessing includes sequence filling and sequence truncation.

[0158] In a possible implementation, the tag determination module 520 is configured to:

[0159] Inputting the speech data into the large language model to obtain a behavior intention model recognition result output by the large language model;

[0160] Adding a large language model label to the behavior intention model recognition result;

[0161] According to the large language model label and the rule-based rule label, a target label for the speech data is obtained by fusion.

[0162] In a possible implementation, the tag determination module 520 is configured to:

[0163] When the large language model label is consistent with the rule-based rule label, the large language model label and / or the rule-based rule label is used as the target label of the user.

[0164] In a possible implementation, the tag determination module 520 is configured to:

[0165] In the case where the large language model label is inconsistent with the rule-based rule label, a manual target label is prompted to be added to the voice data, and the target label added to the voice data manually is obtained. The present disclosure also provides an electronic device, including:

[0166] processor;

[0167] a memory for storing processor-executable instructions;

[0168] Among them, the processor is configured to execute executable instructions in the memory to implement the behavior intention recognition method described in any one of the aforementioned embodiments.

[0169] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the present disclosure. The present disclosure is intended to cover any variations, uses or adaptations of the present disclosure, which follow the general principles of the present disclosure and include common knowledge or customary technical means in the art that are not disclosed in the present disclosure.

[0170] It should be understood that the present disclosure is not limited to the exact construction that has been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof.

Claims

1. A behavioral intention recognition method, It is characterized in that The method comprises: Obtain the voice data of users in the intelligent outbound call service task; Determine a target tag for the voice data according to a large language model and a rule-based rule tag added to the voice data, wherein both the rule tag and the target tag are used to characterize whether the user has a complaint intention; Extracting user reply voice data from the voice data, wherein the user reply voice is voice data in which the user replies to the template voice in the intelligent outbound call service task; The intention recognition model is trained based on the user's reply voice data and the target label to obtain a behavior intention recognition result whose score represents the complaint intention.

2. The method according to claim 1, It is characterized in that The intention recognition model is trained according to the user reply voice data and the target label to obtain a behavior intention recognition result in which a score represents the complaint intention, including: An intention recognition model is trained according to the user reply voice data and the target label to obtain a model probability output by the intention recognition model that the user has a complaint intention; The model probability is converted to obtain a behavior intention recognition result in which the score represents the complaint intention.

3. The method according to claim 2, It is characterized in that The intention recognition model is a deep bidirectional language representation model. The intention recognition model is trained according to the user reply voice data and the target label to obtain a model probability output by the intention recognition model that the user has a complaint intention, including: Converting the user reply voice data into voice text; Cleaning and preprocessing the speech text to remove noise, punctuation marks, stop words and special characters in the speech text to obtain a standard text; dividing and tokenizing the standard text to convert the standard text into a word sequence; Constructing an input sequence according to the word-unit sequence; The input sequence and the target label are used to train an intention recognition model to obtain a model probability output by the intention recognition model that the user has a complaint intention.

4. The method according to claim 3, It is characterized in that The step of constructing an input sequence according to the word-unit sequence includes: Adding a sequence category word-gram to the word-gram sequence, wherein the sequence category word-gram is used to characterize the category of the word-gram sequence; Adding a separation word to the word sequence after adding the sequence category word, wherein the separation word is used to separate a whole sentence and a paragraph in the word sequence; The word-element sequence after adding the separation word-element is preprocessed to obtain an input sequence that meets a preset sequence length, wherein the preprocessing includes sequence filling and sequence truncation.

5. The method according to any one of claims 1 to 4, It is characterized in that Determining a target tag for the speech data according to the large language model and the rule-based rule tag added to the speech data includes: Inputting the speech data into the large language model to obtain a behavior intention model recognition result output by the large language model; Adding a large language model label to the behavior intention model recognition result; According to the large language model label and the rule-based rule label, a target label for the speech data is obtained by fusion.

6. The method according to claim 5, It is characterized in that The step of fusing the large language model label and the rule-based rule label to obtain a target label for the speech data includes: When the large language model label is consistent with the rule-based rule label, the large language model label and / or the rule-based rule label is used as the target label of the user.

7. The method according to claim 6, It is characterized in that The method further comprises: When the large language model label is inconsistent with the rule-based rule label, a manual task is prompted to add a target label to the speech data, and the target label added to the speech data manually is obtained.

8. A behavior intention recognition device, It is characterized in that The device comprises: An acquisition module, configured to acquire voice data of a user in an intelligent outbound call service task; a label determination module, configured to determine a target label for the voice data according to a large language model and a rule-based rule label added to the voice data, wherein both the rule label and the target label are used to characterize whether the user has a complaint intention; An extraction module is configured to extract user reply voice data from the voice data, wherein the user reply voice is voice data in which the user replies to the template voice in the intelligent outbound call service task; The training module is configured to train the intention recognition model according to the user's reply voice data and the target label to obtain a behavior intention recognition result whose score represents the complaint intention.

9. The device according to claim 8, It is characterized in that The training module comprises: A training submodule is configured to train an intention recognition model according to the user reply voice data and the target label, and obtain a model probability output by the intention recognition model that the user has a complaint intention; The conversion module is configured to convert the model probability to obtain a behavior intention recognition result in which the score represents the complaint intention.

10. An electronic device, It is characterized in that include: processor; a memory for storing processor-executable instructions; The processor is configured to execute executable instructions in the memory to implement the method described in any one of claims 1 to 7.