Intention inference method based on artificial intelligence and related equipment

By inferring the intention of the intelligent question-and-answer robot based on artificial intelligence, and using text data and Bayesian network models to calculate the user's willingness to repay, the problem that the intelligent question-and-answer robot cannot accurately judge the user's intention is solved and the collection effect is improved.

CN113887214BActive Publication Date: 2024-10-15PING AN TECH (SHENZHEN) CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202111192204.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-10-13
Publication Date
2024-10-15
Estimated Expiration
2041-10-13

AI Technical Summary

Technical Problem

Intelligent question and answer robots cannot quickly and accurately determine the user's wishes, resulting in poor collection results.

Method used

Using artificial intelligence-based intention inference method, the text data input by the user is obtained for word segmentation and classification, and the mood characteristic words are extracted. Combined with the user's basic attribute information and historical loan information, the Bayesian network model is used to calculate the repayment probability, and the repayment probability is calculated through The repayment willingness identification model corrects the initial willingness value and obtains the target willingness value.

Benefits of technology

It improves the identification accuracy of the user's initial repayment willingness value and enables quick and accurate inference of the user's true repayment willingness, thus improving the collection effect.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113887214B_ABST
    Figure CN113887214B_ABST
Patent Text Reader

Abstract

The embodiments of the present application belong to the field of artificial intelligence, and relate to a method, device, computer equipment and storage medium for inferring intention based on artificial intelligence, including obtaining the user intention score, the types and quantity of tone feature words from the acquired text data, and after confirming the user's risk level, the user's risk level, user intention score, the types and quantity of tone feature words are calculated based on the pre-trained Bayesian network model to obtain the user's repayment probability; based on the repayment willingness recognition model, the extracted tone feature words are recognized to obtain the initial repayment willingness value, and when the repayment probability is greater than a predetermined value, the initial repayment willingness value is corrected according to the repayment probability to obtain the target repayment willingness value, so as to achieve the purpose of quickly and accurately inferring the user's true repayment willingness and improving the collection effect. In addition, the present application also relates to blockchain technology, and the Bayesian network model and the repayment willingness recognition model can be stored in the blockchain.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of artificial intelligence technology, and in particular to an intention inference method, apparatus, computer device, and computer-readable storage medium based on artificial intelligence. Background Art

[0002] At present, with the growing growth of the consumer finance industry, the role of debt collection will become increasingly important. Currently, more and more domestic companies are designing intelligent question-and-answer robots to replace humans in simple debt collection. However, the debt collection effect of intelligent question-and-answer robots is far from that of real people. One of the reasons is that the conversation process of real people is very complicated, which makes it impossible for intelligent question-and-answer robots to quickly and accurately judge the user's intention based on the conversation process. Summary of the invention

[0003] The purpose of the embodiments of the present application is to propose an intention inference method, apparatus, computer equipment and storage medium based on artificial intelligence to solve the problem that the intelligent question-answering robot cannot quickly and accurately judge the user's intention based on the dialogue process.

[0004] In order to solve the above technical problems, the embodiment of the present application provides a method for inferring intention based on artificial intelligence, which adopts the following technical solution:

[0005] Acquire text data input by a user, perform word segmentation on the text data, input the word segmented text data into a pre-trained text classification model, obtain similar corpus output by the text classification model, and determine the user intention score based on the similar corpus, wherein the pre-set text classification model is trained based on corpus with intention labels;

[0006] Extracting tone feature words from the text data, and counting the types and quantities of the tone feature words;

[0007] Obtaining the user's basic attribute information and historical loan information, determining the user's risk level based on the basic attribute information and historical loan information, and calculating the user's risk level, the user's intention score, and the types and quantities of the tone feature words based on a pre-trained Bayesian network model to obtain the user's repayment probability;

[0008] Identify the extracted tone feature words based on the repayment willingness recognition model to obtain an initial repayment willingness value;

[0009] When the repayment probability is greater than a predetermined value, the initial repayment willingness value is corrected according to the repayment probability to obtain a target repayment willingness value.

[0010] In order to solve the above technical problems, the embodiment of the present application further provides an intention inference device based on artificial intelligence, which adopts the following technical solution:

[0011] An acquisition module is used to acquire text data input by a user, segment the text data, input the segmented text data into a pre-trained text classification model, obtain similar corpus output by the text classification model, and determine the user intention score based on the similar corpus, wherein the preset text classification model is trained based on corpus with intention labels;

[0012] A statistical module, used for extracting tone feature words from the text data, and counting the types and quantities of the tone feature words;

[0013] An information acquisition module is used to acquire the user's basic attribute information and historical loan information, and determine the user's risk level based on the basic attribute information and historical loan information;

[0014] A probability acquisition module, used to calculate the risk level of the user, the user intention score, and the types and quantities of the tone feature words based on a pre-trained Bayesian network model to obtain the user's repayment probability;

[0015] A recognition module, used to recognize the extracted tone feature words based on a repayment willingness recognition model to obtain an initial repayment willingness value;

[0016] The determination module is used to correct the initial repayment willingness value according to the repayment probability when the repayment probability is greater than a predetermined value to obtain a target repayment willingness value.

[0017] In order to solve the above technical problems, an embodiment of the present application also provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the steps of the above-mentioned artificial intelligence-based intention inference method are implemented.

[0018] In order to solve the above technical problems, an embodiment of the present application also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the above-mentioned artificial intelligence-based intention inference method are implemented.

[0019] Compared with the prior art, the embodiments of the present application mainly have the following beneficial effects: obtaining text data input by a user, and performing word segmentation on the text data, inputting the text data after word segmentation into a pre-trained text classification model, obtaining similar corpus output by the text classification model, and determining the user intention score based on the similar corpus; then extracting tone feature words from the text data, and after counting the types and quantities of the tone feature words, obtaining the user's basic attribute information and historical loan information, determining the user's risk level based on the basic attribute information and historical loan information, and performing an analysis of the user's risk level and the user's intention score based on the pre-trained Bayesian network model. , calculate the types and quantities of the tone feature words to obtain the user's repayment probability; identify the extracted tone feature words based on the repayment willingness recognition model to obtain an initial repayment willingness value, thereby improving the accuracy of identifying the user's initial repayment willingness value; and when the repayment probability is greater than a predetermined value, correct the initial repayment willingness value according to the repayment probability to obtain a target repayment willingness value, that is, obtain the repayment probability and the initial repayment willingness value through the Bayesian network combined with the repayment willingness recognition model, so that the target repayment willingness can be determined according to the repayment probability and the initial repayment willingness value, so as to quickly and accurately infer the user's true repayment willingness, thereby improving the collection effect. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] In order to more clearly illustrate the scheme in the present application, a brief introduction is given below to the drawings required for use in the description of the embodiments of the present application. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0021] Figure 1 is an exemplary system architecture diagram to which the present application may be applied;

[0022] Figure 2 is a flow chart of an embodiment of the intention inference method based on artificial intelligence according to the present application;

[0023] Figure 3 yes Figure 2 A flowchart of a specific implementation of step S203;

[0024] Figure 4 is a Bayesian network structure diagram between a first node and a plurality of second nodes in an embodiment;

[0025] Figure 5 yes Figure 3 A flowchart of a specific implementation of step S2034;

[0026] Figure 6yes Figure 3 A flowchart of another specific implementation of step S203;

[0027] Figure 7 yes Figure 2 A flowchart of a specific implementation of step S204;

[0028] Figure 8 yes Figure 2 A flowchart of a specific implementation of step S202;

[0029] Fig. 9 yes Figure 2 A flowchart of a specific implementation of step S201;

[0030] Fig.10 is a structural schematic diagram of an embodiment of an intention inference device based on artificial intelligence according to the present application;

[0031] Fig.11 It is a structural diagram of an embodiment of a computer device according to the present application. DETAILED DESCRIPTION

[0032] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by technicians in the technical field to which this application belongs; the terms used in the specification of the application are only for the purpose of describing specific embodiments and are not intended to limit this application; the terms "including" and "having" in the specification and claims of this application and the above-mentioned figure descriptions and any variations thereof are intended to cover non-exclusive inclusions.

[0033] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0034] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings.

[0035] like Figure 1 As shown, the system architecture 100 may include terminal devices 101, 102, 103, a network 104 and a server 105. The network 104 is used to provide a medium for communication links between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.

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

[0037] Terminal devices 101, 102, 103 can be various electronic devices with display screens and supporting web browsing, including but not limited to smart phones, tablet computers, e-book readers, MP3 players (Moving Picture Experts Group Audio Layer III), MP4 (Moving Picture Experts Group Audio Layer IV), laptop computers, desktop computers, etc.

[0038] The server 105 may be a server that provides various services, such as a background server that supports the pages displayed on the terminal devices 101, 102, and 103. The server may be an independent server or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDNs), and big data and artificial intelligence platforms.

[0039] It should be noted that the intention inference method based on artificial intelligence provided in the embodiment of the present application is generally executed by a server, and accordingly, the intention inference device based on artificial intelligence is generally set in the server.

[0040] It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to the implementation requirements.

[0041] Continue to refer Figure 2 , shows a flow chart of an embodiment of the intention inference method based on artificial intelligence according to the present application. The intention inference method based on artificial intelligence includes the following steps:

[0042] Step S201: Obtain the text data input by the user, perform word segmentation on the text data, and input the segmented text data into a pre-trained text classification model to obtain the similar corpus output by the text classification model, so as to determine the user intention score according to the similar corpus, where the preset text classification model is trained according to the corpus with intention labels.

[0043] In this embodiment, the electronic device (such as Figure 1 the server shown) on which the intention speculation method based on artificial intelligence runs can communicate with the client device through a wired connection or a wireless connection. It should be noted that the above wireless connection methods may include, but are not limited to, 3G / 4G connection, WiFi connection, Bluetooth connection, WiMAX connection, Zigbee connection, UWB (ultra wideband) connection, and other currently known or future-developed wireless connection methods.

[0044] Specifically, during the process of the user having a session with the server through the client device, the server obtains the text data input by the user, performs word segmentation on the text data, and inputs the segmented text data into a pre-trained text classification model to obtain the similar corpus output by the text classification model, so as to determine the user intention score according to the similar corpus, where the preset text classification model is trained according to the corpus with intention labels.

[0045] Among them, before performing word segmentation on the text data to obtain the word segmentation result of the text data, it is necessary to perform data preprocessing on the text data. The main data preprocessing steps include: corpus cleaning, that is, deleting punctuation marks and modal particles in the text data and retaining useful data. In this embodiment, common cleaning methods include: manual duplicate removal, alignment, deletion, annotation, etc. For example, words that do not contribute to the text features are removed, such as punctuation marks, tones, "de" (的 in Chinese), etc.

[0046] In this embodiment, a word segmentation method based on a probability statistics model can be used to segment the text data. Specifically, let T = T1, T2...Tm, T is the Chinese character string corresponding to the text data to be segmented, let W = W1, W2...Wn, W is the result of the word segmentation, Wa, Wb...Wk are all possible word segmentation schemes for T. Then, the word segmentation model based on probability statistics is a word segmentation model that can find the target word string W so that W satisfies P(W|T) = MAX(P(Wa|T), P(Wb|T)...P(Wk|T)), and the word string W obtained by the above word segmentation model is the word string with the largest estimated probability, and the word string W is used as the word segmentation result obtained after the text data is segmented. For example: the text data "query available credit limit", the word segmentation results obtained after the above word segmentation model is segmented are: "query", "available", "credit limit"; the text data "query my bill for this month", the word segmentation results obtained after the above word segmentation model is segmented are: "query", "this month", "bill".

[0047] Furthermore, the text data after word segmentation is input into a pre-trained text classification model to obtain similar corpus output by the text classification model. That is, in this embodiment, the server obtains a preset text classification model through training of corpus with intention labels, so as to classify the text data through the preset text classification model. For example, for the text data "Query my bill for this month", after word segmentation and vector representation, word vectors of three dimensions "query", "this month", and "bill" are obtained. After the word vectors of the three dimensions are input into the pre-trained text classification model, the similar corpus output is "amount confirmed", so as to determine the user intention score based on the similar corpus output above.

[0048] The client device may be any type of computer device, such as a desktop computer, a notebook computer, or a car computer, or may be an intelligent mobile terminal device, such as a smart phone and a tablet computer. The server provides an intelligent reply dialogue system for the client device. When the intelligent reply robot in the intelligent reply dialogue system cannot solve the problem sent by the client device, the corresponding manual customer service can also provide corresponding services for the client device.

[0049] Of course, in other embodiments, the above text data can also be picture content. In this case, when classifying picture content or expression content, it is also necessary to first convert the picture content into corresponding text content, segment the text content, and input the segmented text data into a pre-trained text classification model to obtain similar corpus output by the text classification model, so as to determine the user intention score based on the similar corpus. For example, if the user input is picture text, the picture text represents the query amount, and the picture text can be converted into text data of "query amount".

[0050] Step S202, extracting tone feature words from the text data, and counting the types and quantities of the tone feature words.

[0051] In this embodiment, since the text data is the content input during the conversation between the user and the server through the client device, the text data may include at least one message record. That is, the tone feature words are extracted from the at least one message record, and the types and quantities of the tone feature words are counted. For example, the text data includes the tone feature words "OK", "Oh", "No problem", etc., among which the tone feature word type of "OK" is a weak tone word, the tone feature word type of "Oh" is a strong tone word, and the tone feature word type of "No problem" is a quasi-tone word, that is, there are three types of tone feature words and the number is also three.

[0052] Specifically, strong modal particles include "oh", "um", "ah", etc., weak modal particles include "good", "got it", "ok", etc., and similar modal particles include "no problem", "can", "sure", etc. It should be noted that the above only lists a few modal feature words in each category of modal feature words, and in this embodiment, each category of modal feature words can also include other modal feature words, which are not listed here one by one.

[0053] Step S203, obtaining the user's basic attribute information and historical loan information, determining the user's risk level based on the basic attribute information and historical loan information, and calculating the user's risk level, the user intention score, and the types and quantities of the tone feature words based on a pre-trained Bayesian network model to obtain the user's repayment probability.

[0054] In this embodiment, the variable factors that affect the user's repayment probability are mainly the user's intention score, the type and number of tone feature words, and the user's risk level. That is, when the server calculates the user's repayment probability through a preset Bayesian model, it must first obtain the user's risk level, that is, obtain the user's basic attribute information and historical loan information, where the basic attribute information at least includes the user's name, household registration address, and ID number. Of course, in other embodiments, the above basic attribute information may also include contact information such as email addresses and mobile phone numbers, which are not limited here. The user information obtained has sought the user's consent and complies with the provisions of relevant laws and relevant policies.

[0055] After obtaining the user's basic attribute information and historical loan information, the user's risk level is determined based on the basic attribute information and historical loan information. After obtaining the user's risk level, the obtained user risk level and the user intent score, the type and number of tone feature words obtained by text classification and screening are input into the pre-trained Bayesian network model to obtain the user's repayment probability. The user's repayment probability can be quickly calculated through the Bayesian network model, that is, the user's repayment probability can be quickly obtained, thereby improving data processing capabilities.

[0056] Step S204: Identify the extracted tone feature words based on the repayment willingness recognition model to obtain an initial repayment willingness value.

[0057] In this embodiment, the server identifies the extracted tone feature words based on the repayment willingness recognition model, and obtains the user's initial repayment willingness value, that is, the initial repayment willingness value obtained by the repayment willingness recognition model is more accurate. For example: the tone feature word is "oh", and the corresponding initial repayment willingness value is "unclear"; the tone feature word is "okay", and the corresponding initial repayment willingness value is "clear"; the tone feature word is "no money", and the corresponding initial repayment willingness label is "no repayment".

[0058] The repayment willingness recognition model is obtained by pre-training the word vector text data with willingness labels on the server. It should be emphasized that in order to further ensure the privacy and security of the above repayment willingness recognition model, the trained repayment willingness recognition model is stored in a node of a blockchain.

[0059] The blockchain referred to in this application is a new application model of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanism, encryption algorithm, etc. Blockchain is essentially a decentralized database, a string of data blocks generated by cryptographic methods. Each data block contains a batch of network transaction information, which is used to verify the validity of its information (anti-counterfeiting) and generate the next block. Blockchain can include the underlying blockchain platform, platform product service layer, and application service layer.

[0060] Step S205, when the repayment probability is greater than a predetermined value, the initial repayment willingness value is corrected according to the repayment probability to obtain a target repayment willingness value.

[0061] Specifically, after obtaining the initial willingness to repay value and the repayment probability, the server can determine the target willingness to repay based on the initial willingness to repay value and the repayment probability. That is, when the repayment probability is greater than the predetermined value, the initial willingness to repay value is corrected according to the repayment probability, thereby obtaining the target willingness to repay value. For example, the predetermined value in this embodiment is 80%, the calculated repayment probability is 90%, and the initial willingness to repay value is identified to be 60%. At this time, since the repayment probability is greater than the set value, the initial willingness to repay value is corrected to 60% according to the repayment probability of 90%, and the target repayment probability can be 75%. That is, in this embodiment, when correcting the initial willingness to repay value, the correction can be made by calculating the average value of the initial willingness to repay value and the repayment probability; or, in other embodiments, the initial willingness to repay value can be corrected by calculating the mean, variance, etc., which is not limited here.

[0062] Of course, it is understandable that the predetermined value in this embodiment may also be other values, such as: 70%, 75%, 85%, etc., which is not limited here.

[0063] That is, the repayment probability and the initial repayment willingness value are obtained by combining the Bayesian network with the repayment willingness identification model, so that the target repayment willingness can be determined according to the repayment probability and the initial repayment willingness value, so as to quickly and accurately infer the user's true repayment willingness, thereby improving the collection effect.

[0064] In this embodiment, the text data input by the user is obtained, and the text data is segmented, and the text data after segmentation is input into a pre-trained text classification model to obtain a similar corpus output by the text classification model, so as to determine the user intention score according to the similar corpus; then, the tone feature words are extracted from the text data, and after the types and quantities of the tone feature words are counted, the basic attribute information and historical loan information of the user are obtained, and the risk level of the user is determined according to the basic attribute information and the historical loan information, and the risk level of the user, the user intention score, and the tone feature words are analyzed based on the pre-trained Bayesian network model. The type and quantity are calculated to obtain the user's repayment probability; the extracted tone feature words are identified based on the repayment willingness recognition model to obtain the initial repayment willingness value, thereby improving the accuracy of identifying the user's initial repayment willingness value; and when the repayment probability is greater than a predetermined value, the initial repayment willingness value is corrected according to the repayment probability to obtain the target repayment willingness value, that is, the repayment probability and the initial repayment willingness value are obtained through the Bayesian network combined with the repayment willingness recognition model, so that the target repayment willingness can be determined according to the repayment probability and the initial repayment willingness value, so as to quickly and accurately infer the user's real repayment willingness, thereby improving the collection effect.

[0065] It should be emphasized that in order to further ensure the privacy and security of the above-mentioned Bayesian network model and repayment willingness identification model, the above-mentioned Bayesian network model and repayment willingness identification model can also be stored in a node of a blockchain.

[0066] Further, such as Figure 3 As shown, the above step S203 may include:

[0067] S2031, obtaining the user's historical operation execution data, and setting the user's risk level as the first node in the Bayesian network structure, the user intention score, the type and number of the tone feature words, and the user's historical operation execution data as the second node in the Bayesian network model, and setting the causal relationship between the first node and multiple second nodes to determine the first joint probability distribution of the first node and multiple second nodes based on the causal relationship.

[0068] Among them, the Bayesian Network model is an uncertainty knowledge expression and reasoning model based on probability analysis and graph theory, and an information representation framework that combines causal knowledge and probabilistic knowledge. A Bayesian Network is a directed acyclic graph, in which nodes represent variables in the domain, directed arcs represent the relationship between variables, and the strength of the relationship between variables is represented by the conditional probability between the node and its parent node, and the uncertainty of information is reflected through the conditional probability. The Bayesian Network combines data information and real-world information (prior information), and can well explain the structure and behavior of the system; it uses probability theory to deal with the uncertainty generated by the conditional correlation between different knowledge components, and is suitable for uncertain and incomplete objects. The posterior probability is calculated using the Bayesian theorem, and can be applied to decisions that conditionally depend on multiple variable factors. Among them, a node without a parent node is called a root node, and a node without a child node is called a leaf node.

[0069] In this step, the user's historical operation execution data is first obtained, wherein the user's historical operation execution data is the user's repayment record data. For example, when the historical operation execution data is "1", it means that the user has repaid the loan, and when the historical operation execution data is "0", it means that the user has not repaid the loan.

[0070] The risk level of the user is set as the first node in the Bayesian network structure, and the user intention score, the type and number of the tone feature words, and the user's historical operation execution data are set as the second node in the Bayesian network model. That is, the first node is the user's risk level X1, and the second nodes are the tone feature word type X2, the tone feature word number X3, the user intention score X4, and the user's historical operation execution data Y.

[0071] Here, if Figure 4 As shown, the causal relationship between the first node and the plurality of the second nodes is set as follows:

[0072] Set the user's risk level X1 as the root node, the type X2 and number X3 of the tone feature words and the user's historical operation execution data Y are all child nodes of the user's risk level X1, and the user's operation execution data user's historical operation execution data Y is also a child node of the user's intention score X4, and the user's intention score X4 is a child node of the type X2 of the tone feature words and the number X3 of the tone feature words. Of course, the above setting is based on business experts combining scenario applications to customize the causal relationship between the first node and multiple second nodes, and in other embodiments, the causal relationship between the first node and multiple second nodes can also be set to other causal relationships, which are not limited here.

[0073] Specifically, Figure 4Each node shown in represents a variable factor, the directed lines between the variable factors represent the causal relationship between the variable factors, and the first joint probability distribution of the first node and multiple second nodes is determined according to the causal relationship.

[0074] The user's risk level X1, the type of tone feature words X2, and the number X3 all affect the user's intention score X4. The user's risk level X1 and the user's intention score X4 affect the historical operation execution data Y. At this time, the first joint probability distribution P (X1, X2, X3, X4, Y) of the first node and the second node is determined as follows: ;

[0075] Among them, P(X1, X2, X3, X4, Y) is the probability of the user's risk level X1, the type and quantity X3 of tone feature words, the user's intention score X4, and the historical operation execution data Y occurring simultaneously; P(X1) is the probability of the user's risk level X1 occurring; P(X2|X1) is the probability of the type X2 of tone feature words occurring under the premise that the user's risk level X1 is determined; P(X3|X1) is the probability of the number X3 of tone feature words occurring under the premise that the user's risk level X1 is determined; P(X4|X2, X3) is the probability of the user's intention score X4 occurring under the premise that the type and quantity X3 of tone feature words are determined; P(Y|X1, X4) is the probability of the historical operation execution data Y occurring under the premise that the user's risk level X1 and the user's intention score X4 are determined.

[0076] S2032, based on the Bayesian network structure, determining a second node without a child node among the plurality of second nodes as a third node, determining a priori probability distribution of the third node, and determining a second joint probability distribution of the first node and the second nodes except the third node;

[0077] Since the state of each variable factor X1, X2, X3, and X4 in the Bayesian network structure will affect the operation execution data Y, that is, the operation execution data Y is the conditional probability of the above four variable factors X1, X2, X3, and X4, that is, a second node (Y) without a child node among multiple second nodes is determined as the third node. Here, the third node is a leaf node. At this time, the prior probability distribution P(Y|X1, X2, X3, X4) of the third node is determined, and the second joint probability distribution P(X1, X2, X3, X4) of the first node and the second node except the third node is determined, where P(X1, X2, X3, X4) is the probability of the user's risk level X1, the type X2 and quantity X3 of the tone feature words, and the user intention score X4 occurring at the same time.

[0078] S2033, determining the Bayesian network model according to the first joint probability distribution, the second joint probability distribution, and the prior probability distribution of the third node;

[0079] Specifically, after obtaining the first joint probability distribution, the second joint probability distribution, and the prior probability distribution of the third node, a Bayesian network model is obtained according to the first joint probability distribution, the second joint probability distribution, and the prior probability distribution of the third node, as shown in Expression 2 below:

[0080] ;

[0081] Among them, P(Y|X1, X2, X3, X4) is the probability of historical operation execution data Y occurring under the premise that the user's risk level X1, the type and number of tone feature words X2 and X3, and the user intention score X4 are determined.

[0082] That is, the above expression 2 is combined with the expression 1 obtained in step S2031 to obtain expression 3: ;

[0083] In the above expression 3, P(Y|X1,X4) is calculated to obtain expression 4: ;

[0084] Among them, P(X1, X4, Y) is the probability that the user's risk level X1, user intention score X4, and historical operation execution data Y occur at the same time; P(X1, X4) is the probability that the user's risk level X1 and user intention score X4 occur at the same time; P(X1, X4|Y) is the probability that the user's risk level X1 and user intention score X4 occur at the same time under the premise that the historical operation execution data Y is determined; P(Y) is the probability of the historical operation execution data Y occurring.

[0085] That is, combining expression 3 and expression 4, we get expression 5: ;

[0086] The above expression 5 is the expression of the Bayesian network model.

[0087] S2034, verifying the Bayesian network model, and if the verification is successful, using the Bayesian network model as the pre-trained Bayesian network model;

[0088] Specifically, after the expression of the above-mentioned Bayesian network model is obtained, the above-mentioned Bayesian network model needs to be verified. If the Bayesian network model passes the verification, the Bayesian network model is used as the pre-trained Bayesian network model.

[0089] In this embodiment, a Bayesian network structure between the first node and the plurality of second nodes is first established based on a preset causal relationship between the first node and the plurality of second nodes, and then a Bayesian network model is obtained based on the Bayesian network structure. After verification, the user's risk level, the user intention score, and the types and quantities of the tone feature words are input into the model to obtain the user's repayment probability. In this way, under the premise of limited data, the user's repayment probability can be quickly calculated through the Bayesian network model and the data processing capability can be improved.

[0090] Further, such as Figure 5 As shown, the above step S2034 may include:

[0091] Step S20341, obtaining historical text data input by the user;

[0092] Step S20342, extracting valid text data corresponding to other second nodes in the second node except the third node from the historical text data, and inputting the valid text data, the risk level of the user, and the historical operation execution data of the user into the Bayesian network model for verification, wherein the valid text data is text data used to determine the user intention score and the types and quantities of tone feature words;

[0093] Step S20343: if the verification is successful, the Bayesian network model is used as a pre-trained Bayesian network model;

[0094] In this embodiment, during the conversation between the user and the electronic device through the client device, the content of the entire conversation is recorded and stored in a storage device, wherein the storage device can be a local memory of the electronic device server or a cloud service memory, etc., which is not limited here.

[0095] Specifically, historical text data input by the user is obtained. That is, the historical conversation content of the user is obtained from the storage device, and the historical text data input by the user is extracted from the historical conversation content. After the historical text data is obtained, valid text data corresponding to the first node, the second node and the third node are extracted from the historical text data, and the valid text data is input into the Bayesian network model for verification.

[0096] Take a historical conversation scenario between an agent and a user as an example, as follows:

[0097] Agent: Is this Mr. *?

[0098] User: Yes. Wait a moment.

[0099] Agent: Is this all right with you?

[0100] User: Yeah.

[0101] Agent: OK. Your loan with us is overdue. When is a convenient time to deposit it?

[0102] User: Yeah, okay.

[0103] That is, from the above historical dialogue scene, the historical text data input by the user can be obtained, including "yes", "wait a moment", "um", "um" and "ok". At this time, from the historical text data, the valid text data used to determine the user intention score and the types and number of tone feature words include "yes", "um" and "ok"; the invalid text data is the text data that cannot be used to determine the user intention score and the types and number of tone feature words, including "wait a moment". Among them, according to "yes" in the valid text data, it can be determined that the output similar corpus is "identity confirmation", and the probability value of "identity confirmation" is regarded as the user intention score, while the "um" and "ok" in the valid text data can determine that there are two types of tone feature words ("um" belongs to a strong tone particle, "ok" belongs to a weak tone particle), and the number of tone feature words is three ("um" appears twice, "ok" appears once, that is, the total number is three).

[0104] At this time, assuming that the user's risk level is low risk and the user's historical operation execution data shows that the user has repaid, the above-obtained valid text data, the user's risk level and the user's historical operation execution data are input into Expression 5 for verification. If the verification passes, the Bayesian network model is considered correct, and the Bayesian network model is used as the pre-trained Bayesian network model.

[0105] In this embodiment, valid text data corresponding to other second nodes in the second node except the third node are extracted from the historical text data, and the valid text data, the user's risk level and the user's historical operation execution data are input into the Bayesian network model for verification, thereby ensuring the accuracy of the obtained Bayesian network model.

[0106] Further, such as Figure 6 As shown, the above step of determining the risk level of the user based on the basic attribute information and historical loan information includes:

[0107] S2038, verifying the authenticity of the basic attribute information. If the verification is successful, querying the user's credit record and obtaining the user's historical repayment data;

[0108] Specifically, when verifying the authenticity of the basic attribute information, the authenticity of the original information provided by the user can be verified from the online shopping platform's shopping express delivery receipt records, real-name authentication and other data, to avoid loan fraud. That is, after the authenticity of the basic attribute information is verified, the user's credit record is queried and the user's historical repayment data is obtained, where the user's historical repayment data is the user's historical repayment record. For example, when the user's historical repayment data is "1", the user's historical repayment record is that the user has repaid; when the user's historical repayment data is "0", the user's historical repayment record is that the user has not repaid.

[0109] If the verification fails, the user's risk level will be directly defined as a high-risk user. Among them, the user's risk level is divided into high-risk users, medium-risk users and low-risk users, and the user's repayment rate is ranked from high to low as low-risk users, medium-risk users and high-risk users.

[0110] S2039, determining the risk level of the user according to the credit record, the historical initial willingness to repay value and the historical loan information;

[0111] Specifically, after the credit record of the user is queried, the risk level of the user is determined based on the credit record, the historical initial repayment willingness value and the historical loan information. For example, if the user's credit record is good, the historical initial repayment willingness value indicates that the user's repayment is clear, and the historical loan information indicates that the repayment is on time, the user's risk level is determined to be a low-risk user.

[0112] Among them, the credit record, the historical initial repayment willingness value and the historical loan information can be input into a pre-trained risk control model to automatically calculate the corresponding risk level through the risk control model, which has the advantages of fast response and low cost.

[0113] Specifically, after obtaining the user's risk level, based on the pre-trained Bayesian network model, the user's risk level, the user intention score, and the types and quantities of the tone feature words are calculated to obtain the user's repayment probability.

[0114] In this embodiment, after the authenticity of the basic attribute information and historical loan information of the user is verified, the user's credit record is obtained, and finally the user's risk level is determined based on the credit record, the initial repayment willingness value and the historical loan information, thereby ensuring the accuracy of the acquired risk level.

[0115] Further, such as Figure 7 As shown, the above step S204 may include:

[0116] S2041, obtaining word vector text data with intention labels, and classifying the word vector text data into training samples and test samples;

[0117] S2042, inputting the training sample into the initial intention training model to obtain an intention recognition model;

[0118] S2043, inputting the test sample into the willingness recognition model to obtain a test result, and if the test result is greater than or equal to a preset accuracy rate, using the willingness recognition model as the repayment willingness recognition model;

[0119] Specifically, the server obtains word vector text data with willingness labels. For example, the word vector text data is "oh", and the corresponding willingness label is "the initial repayment willingness value is unclear"; the word vector text data is "okay", and the corresponding willingness label is "the initial repayment willingness value is clear"; the word vector text data is "no money", and the corresponding willingness label is "no repayment", etc.

[0120] After obtaining the word vector text data with the intention label, the word vector text data is classified into training samples and test samples. Specifically, the word vector text data can be classified into training samples and test samples using a preset ratio. For example, the word vector text data is 100 copies, the training samples are 90, and the test samples are 10. In this way, the preset ratio is 9:1. Of course, in other embodiments, the preset ratio can be set to other ratios, such as 8:2, 7:3, etc., which are not limited here.

[0121] Specifically, after obtaining the training sample, the training sample is input into the initial willingness training model for training to obtain the willingness recognition model. After obtaining the willingness recognition model, the obtained test sample is input into the willingness recognition model to obtain the test result. If the test result is greater than or equal to the preset accuracy rate, the willingness recognition model is used as the repayment willingness recognition model.

[0122] If the test result is less than the preset accuracy rate, the set model correction value is obtained, and the willingness identification model is corrected according to the correction value, and the corrected willingness identification model is verified again. Only when the verification passes, the willingness identification model is used as the repayment willingness identification model.

[0123] S2044, calculating the probability value corresponding to the tone feature word based on the repayment willingness recognition model;

[0124] S2045, when the probability value reaches a preset threshold, using the probability value as the initial willingness to repay value;

[0125] Specifically, by using the repayment willingness identification model to perform intent recognition on the tone feature words, it is possible to accurately and effectively identify the intent type corresponding to the tone feature words. By identifying the intent events corresponding to the tone feature words, the field information of the tone feature words can be identified and extracted, thereby effectively improving the recognition accuracy of the tone feature words.

[0126] In this embodiment, when the tone feature words are used for intention recognition through the repayment willingness recognition model, the tone feature words are directly input into the repayment willingness recognition model, and multiple probability values ​​corresponding to the tone feature words are calculated; when the probability value reaches a preset threshold, the probability value is used as the initial repayment willingness value. Among them, when there are multiple probability values ​​that reach the preset threshold, the highest probability value among the probability values ​​is used as the initial repayment willingness value.

[0127] In this embodiment, the word vector text data with willingness labels obtained are divided into training samples and test samples to train and test the initial willingness training model, so as to quickly obtain the willingness recognition model; after obtaining the willingness recognition model, the probability of the tone feature words is calculated, and after the probability value reaches a threshold, the probability value is determined to be the initial repayment willingness value, so as to ensure the accuracy of the obtained initial repayment willingness value.

[0128] Further, such as Figure 7 As shown, the above step S202 may include:

[0129] S2021, filtering the text data using a preset filtering condition to obtain a target text having tone feature words;

[0130] Specifically, the tone feature words are extracted from the text data by text screening, that is, screening conditions are first set to screen out the tone feature words in the text data to form a target text with the tone feature words.

[0131] The text data is split into words and sentences, and the split words and sentences are screened one by one through preset screening conditions, so as to screen out words and sentences representing tone feature words to form the target text.

[0132] S2022, obtaining a preset tone feature word category table, wherein the preset tone feature word category table has a plurality of tone feature word categories, and each tone feature word category has a plurality of tone feature words;

[0133] S2023, matching the mood feature words in the target text based on the mood feature word category table, and counting the types and quantities of the mood feature words in the target text;

[0134] In this embodiment, after the target text is obtained, the mood feature words in the target text are matched. Specifically, a mood feature word category table is pre-set, for example, the mood feature word categories include strong modal particles, weak modal particles and quasi-modal particles, among which the strong modal particles include "oh", "um", "ah", etc., the weak modal particles include "ok", "know", "ok", etc., and the quasi-modal particles include "no problem", "ok", "sure", etc.

[0135] It should be noted that the above only lists a few mood feature words in each category of mood feature words, and in this embodiment, each category of mood feature words may also include other mood feature words, which are not listed here one by one.

[0136] Specifically, the mood feature words in the target text are matched with the mood feature words in the above mood feature word category table. After the match is successful, the type of the mood feature words is recorded, and the number of mood feature words is counted. For example, the text data includes the mood feature words "OK", "Oh", "No problem", etc., among which the mood feature word type of "OK" is a weak mood particle, the mood feature word type of "Oh" is a strong mood particle, and the mood feature word type of "No problem" is a quasi-moment word, that is, there are three types of mood feature words and the number is also three.

[0137] In this embodiment, the preset tone feature word category table can be used to quickly count the types and quantities of the tone feature words in the target text with the tone feature words.

[0138] Further, such as Figure 8 As shown, the above step S201 may include:

[0139] S2011, calculating the target similarity between the similar corpus and the text data;

[0140] Specifically, after the server obtains the text data, the text data is input into the text classification model. The text classification model is used to identify the text data according to the corpus with the intention label, and output the similar corpus similar to the text data. The similar corpus can be one or more. When there are multiple similar corpora, the similar corpus with the highest similarity is selected as the similar corpus of the text data, and the highest similarity is the first similarity between the similar corpus and the text data. For example, the text data input by the user is "Query my bill for this month". At this time, the intention labels matched to the similar corpus are "Identity Determination", "Element Determination" and "Amount Determination", that is, the calculated similarity is 0%, 10% and 90%, and the highest similarity is 90% of the similarity of the similar corpus as "Amount Determination", that is, the similarity of the similar corpus is used as the target similarity. In this embodiment, the calculation of similarity can be based on the experience accumulation of professionals or the deep learning model, etc., which is not limited here.

[0141] The text classification model may be a text convolution model. That is, the processing efficiency of server classification may be improved by using the text convolution model. Of course, in other embodiments, the text classification model may also be other types of classification models, which are not limited here.

[0142] S2012, comparing the target similarity with a set value, and when the target similarity is greater than or equal to the set value, using the target similarity as the user intention score;

[0143] Specifically, after obtaining the target similarity, the target similarity is compared with the set value. When the target similarity is greater than or equal to the set value, the target similarity is used as the user intention score. When the target similarity is less than the set value, the text data after word segmentation is input into a preset text classification model to obtain a similar corpus output by the text classification model, and the step of S2011 is re-executed.

[0144] The set value may be 90%. For example, in step S2011, the similarity of "payment confirmed" is 90%, that is, the similarity is equal to the set value. At this time, the target intention label corresponding to the similar corpus is "payment confirmed", and the probability of "payment confirmed" is 90% as the user intention score.

[0145] Of course, in other embodiments, the set value may also be set to other values ​​based on accumulated experience in the professional field, such as 92%, 95%, 98%, etc., which is not limited here.

[0146] In this embodiment, the target similarity between the similar corpus and the text data is calculated, and the target similarity is used as the user intention score only after the target similarity is greater than a set value, thereby ensuring the accuracy of the user intention score.

[0147] That is, a person skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, the aforementioned storage medium can be a non-volatile storage medium such as a disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).

[0148] It should be understood that, although the steps in the flowchart of the accompanying drawings are displayed in sequence as indicated by the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least a part of the steps in the flowchart of the accompanying drawings may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and their execution order is not necessarily sequential, but can be executed in turn or alternately with other steps or at least a part of the sub-steps or stages of other steps.

[0149] Further references Fig.10 , as a response to the above Figure 2 The present application provides an embodiment of a device for inferring intention based on artificial intelligence, and the device embodiment is similar to Figure 2 Corresponding to the method embodiment shown, the device can be specifically applied to various electronic devices.

[0150] like Fig.10 As shown, the intention inference device 300 based on artificial intelligence described in this embodiment includes: an acquisition module 301, a statistical module 302, an information acquisition module 303, a probability acquisition module 304 and a determination module 306, wherein:

[0151] The acquisition module 301 is used to acquire text data input by the user, and segment the text data, and input the segmented text data into a pre-trained text classification model to obtain similar corpus output by the text classification model, so as to determine the user intention score according to the similar corpus, wherein the preset text classification model is trained according to the corpus with intention labels;

[0152] A statistical module 302 is used to extract tone feature words from the text data and count the types and quantities of the tone feature words;

[0153] The information acquisition module 303 is used to acquire the basic attribute information and historical loan information of the user, and determine the risk level of the user according to the basic attribute information and historical loan information;

[0154] The probability acquisition module 304 is used to calculate the risk level of the user, the user intention score, and the types and quantities of the tone feature words based on the pre-trained Bayesian network model to obtain the repayment probability of the user;

[0155] The recognition module 305 is used to recognize the extracted tone feature words based on the repayment willingness recognition model to obtain an initial repayment willingness value;

[0156] The determination module 306 is used to modify the initial repayment willingness value according to the repayment probability to obtain a target repayment willingness value when the repayment probability is greater than a predetermined value.

[0157] In this embodiment, the text data input by the user is obtained, and the text data is segmented, and the text data after segmentation is input into a pre-trained text classification model to obtain a similar corpus output by the text classification model, so as to determine the user intention score according to the similar corpus; then, the tone feature words are extracted from the text data, and after the types and quantities of the tone feature words are counted, the basic attribute information and historical loan information of the user are obtained, and the risk level of the user is determined according to the basic attribute information and the historical loan information, and the risk level of the user, the user intention score, and the tone feature words are analyzed based on the pre-trained Bayesian network model. The type and quantity are calculated to obtain the user's repayment probability; the extracted tone feature words are identified based on the repayment willingness recognition model to obtain the initial repayment willingness value, thereby improving the accuracy of identifying the user's initial repayment willingness value; and when the repayment probability is greater than a predetermined value, the initial repayment willingness value is corrected according to the repayment probability to obtain the target repayment willingness value, that is, the repayment probability and the initial repayment willingness value are obtained through the Bayesian network combined with the repayment willingness recognition model, so that the target repayment willingness can be determined according to the repayment probability and the initial repayment willingness value, so as to quickly and accurately infer the user's real repayment willingness, thereby improving the collection effect.

[0158] In some optional implementations of this embodiment, the probability acquisition module 304 includes: a setting submodule, a determination submodule, a model determination submodule and a verification submodule, wherein:

[0159] A setting submodule is used to obtain the user's historical operation execution data, and set the user's risk level as the first node in the Bayesian network structure, the user intention score, the type and number of the tone feature words, and the user's historical operation execution data as the second node in the Bayesian network model, and set the causal relationship between the first node and multiple second nodes to determine the first joint probability distribution of the first node and multiple second nodes based on the causal relationship.

[0160] A determination submodule is used to determine, based on the Bayesian network structure, a second node without child nodes among multiple second nodes as a third node, determine a priori probability distribution of the third node, and determine a second joint probability distribution of the first node and the second nodes except the third node.

[0161] A model determination submodule is used to determine the Bayesian network model according to the first joint probability distribution, the second joint probability distribution and the prior probability distribution of the third node.

[0162] The verification submodule is used to verify the Bayesian network model. If the verification passes, the Bayesian network model is used as a pre-trained Bayesian network model.

[0163] In this embodiment, a Bayesian network structure between the first node and the plurality of second nodes is first established based on a preset causal relationship between the first node and the plurality of second nodes, and then a Bayesian network model is obtained based on the Bayesian network structure. After verification, the user's risk level, the user intention score, and the types and quantities of the tone feature words are input into the model to obtain the user's repayment probability. In this way, under the premise of limited data, the user's repayment probability can be quickly calculated through the Bayesian network model and the data processing capability can be improved.

[0164] In some optional implementations of this embodiment, the model determination submodule includes: an acquisition unit, a verification unit, and a determination unit, wherein:

[0165] The acquisition unit is used to acquire the historical text data input by the user.

[0166] A verification unit is used to extract valid text data corresponding to other second nodes in the second node except the third node from the historical text data, and input the valid text data, the user's risk level and the user's historical operation execution data into the Bayesian network model for verification.

[0167] The determination unit is used to use the Bayesian network model as a pre-trained Bayesian network model if the verification is passed.

[0168] In this embodiment, valid text data corresponding to other second nodes in the second node except the third node are extracted from the historical text data, and the valid text data, the user's risk level and the user's historical operation execution data are input into the Bayesian network model for verification, thereby ensuring the accuracy of the obtained Bayesian network model.

[0169] In some optional implementations of this embodiment, the information acquisition module 303 includes: a verification query unit and a risk determination unit, wherein:

[0170] The verification query unit is used to verify the authenticity of the basic attribute information. If the verification is successful, the user's credit record is queried and the user's historical repayment data is obtained.

[0171] The risk determination unit is used to determine the risk level of the user based on the credit record, the historical repayment data and the historical loan information.

[0172] In this embodiment, after the authenticity is verified based on the basic attribute information and historical loan information of the user, the user's credit record and historical repayment data are obtained. Finally, the user's risk level is determined based on the credit record, the historical repayment data and the historical loan information, thereby ensuring the accuracy of the obtained risk level.

[0173] In some optional implementations of this embodiment, the identification module 305 includes: a sample acquisition unit, a training unit, a testing unit, a probability calculation unit, and a willingness acquisition unit, wherein:

[0174] The sample acquisition unit is used to acquire word vector text data with intention labels and classify the word vector text data into training samples and test samples.

[0175] The training unit is used to input the training samples into the initial intention training model to obtain the intention recognition model.

[0176] The testing unit is used to input the test sample into the willingness recognition model to obtain a test result. If the test result is greater than or equal to a preset accuracy rate, the willingness recognition model is used as the repayment willingness recognition model.

[0177] A probability calculation unit is used to calculate the probability value corresponding to the tone feature word based on the repayment willingness recognition model.

[0178] The willingness acquisition unit is used to use the probability value as the initial repayment willingness value when the probability value reaches a preset threshold.

[0179] In this embodiment, the word vector text data with willingness labels obtained are divided into training samples and test samples to train and test the initial willingness training model, so as to quickly obtain the willingness recognition model; after obtaining the willingness recognition model, the probability of the tone feature words is calculated, and after the probability value reaches a threshold, the probability value is determined to be the initial repayment willingness value, so as to ensure the accuracy of the obtained initial repayment willingness value.

[0180] In some optional implementations of this embodiment, the statistics module 302 includes: a screening unit, a form acquisition unit, a statistics unit, and an evaluation calculation subunit, wherein:

[0181] The screening unit is used to screen the text data using preset screening conditions to obtain a target text with tone feature words.

[0182] The form acquisition unit is used to acquire a preset tone feature word category table, wherein the preset tone feature word category table has a plurality of tone feature word categories, and each of the tone feature word categories has a plurality of tone feature words.

[0183] The statistical unit is used to match the mood feature words in the target text based on the mood feature word category table, and to count the types and quantities of the mood feature words in the target text.

[0184] In this embodiment, the preset tone feature word category table can be used to quickly count the types and quantities of the tone feature words in the target text with the tone feature words.

[0185] In some optional implementations of this embodiment, the acquisition module 301 includes: a similarity calculation unit and a comparison unit, wherein:

[0186] The similarity calculation unit is used to calculate the target similarity between the similar corpus and the text data.

[0187] A comparison unit is used to compare the target similarity with a set value, and when the target similarity is greater than or equal to the set value, the target similarity is used as the user intention score.

[0188] In this embodiment, the target similarity between the similar corpus and the text data is calculated, and the target similarity is used as the user intention score only after the target similarity is greater than a set value, thereby ensuring the accuracy of the user intention score.

[0189] To solve the above technical problems, the present application also provides a computer device. Fig.11 , Fig.11 This is a basic structural block diagram of the computer device in this embodiment.

[0190] The computer device 4 includes a memory 41, a processor 42, and a network interface 43 that are interconnected through a system bus. It should be noted that the figure only shows a computer device 4 with components 41-43, but it should be understood that it is not required to implement all the components shown, and more or fewer components can be implemented instead. Among them, those skilled in the art can understand that the computer device here is a device that can automatically perform numerical calculations and / or information processing according to pre-set or stored instructions, and its hardware includes but is not limited to microprocessors, application specific integrated circuits (Application Specific Integrated Circuit, ASIC), programmable gate arrays (Field-Programmable Gate Array, FPGA), digital processors (Digital Signal Processor, DSP), embedded devices, etc.

[0191] The computer device may be a computing device such as a desktop computer, a notebook, a PDA, a cloud server, etc. The computer device may interact with a user through a keyboard, a mouse, a remote controller, a touch pad, or a voice control device.

[0192] The memory 41 includes at least one type of readable storage medium, and the readable storage medium includes flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory, etc.), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, disk, optical disk, etc. In some embodiments, the memory 41 can be an internal storage unit of the computer device 4, such as a hard disk or memory of the computer device 4. In other embodiments, the memory 41 can also be an external storage device of the computer device 4, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (FlashCard), etc. equipped on the computer device 4. Of course, the memory 41 can also include both the internal storage unit of the computer device 4 and its external storage device. In this embodiment, the memory 41 is generally used to store the operating system and various application software installed on the computer device 4, such as computer-readable instructions of the intention inference method based on artificial intelligence, etc. In addition, the memory 41 can also be used to temporarily store various types of data that have been output or are to be output.

[0193] The processor 42 may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor, or other data processing chips in some embodiments. The processor 42 is generally used to control the overall operation of the computer device 4. In this embodiment, the processor 42 is used to run computer-readable instructions stored in the memory 41 or process data, such as computer-readable instructions for running the artificial intelligence-based intention inference method.

[0194] The network interface 43 may include a wireless network interface or a wired network interface. The network interface 43 is generally used to establish a communication connection between the computer device 4 and other electronic devices.

[0195] The computer device provided in this embodiment can execute the steps of the above-mentioned intention inference method based on artificial intelligence. The steps of the intention inference method based on artificial intelligence here can be the steps of the intention inference method based on artificial intelligence in the above-mentioned various embodiments.

[0196] In this embodiment, the text data input by the user is obtained, and the text data is segmented, and the text data after segmentation is input into a pre-trained text classification model to obtain a similar corpus output by the text classification model, so as to determine the user intention score according to the similar corpus; then, the tone feature words are extracted from the text data, and after the types and quantities of the tone feature words are counted, the basic attribute information and historical loan information of the user are obtained, and the risk level of the user is determined according to the basic attribute information and the historical loan information, and the risk level of the user, the user intention score, and the tone feature words are analyzed based on the pre-trained Bayesian network model. The type and quantity are calculated to obtain the user's repayment probability; the extracted tone feature words are identified based on the repayment willingness recognition model to obtain the initial repayment willingness value, thereby improving the accuracy of identifying the user's initial repayment willingness value; and when the repayment probability is greater than a predetermined value, the initial repayment willingness value is corrected according to the repayment probability to obtain the target repayment willingness value, that is, the repayment probability and the initial repayment willingness value are obtained through the Bayesian network combined with the repayment willingness recognition model, so that the target repayment willingness can be determined according to the repayment probability and the initial repayment willingness value, so as to quickly and accurately infer the user's real repayment willingness, thereby improving the collection effect.

[0197] The present application also provides another embodiment, namely, providing a computer-readable storage medium, wherein the computer-readable storage medium stores computer-readable instructions, and the computer-readable instructions can be executed by at least one processor to enable the at least one processor to perform the steps of the above-mentioned artificial intelligence-based intention inference method.

[0198] In this embodiment, the text data input by the user is obtained, and the text data is segmented, and the text data after segmentation is input into a pre-trained text classification model to obtain a similar corpus output by the text classification model, so as to determine the user intention score according to the similar corpus; then, the tone feature words are extracted from the text data, and after the types and quantities of the tone feature words are counted, the basic attribute information and historical loan information of the user are obtained, and the risk level of the user is determined according to the basic attribute information and the historical loan information, and the risk level of the user, the user intention score, and the tone feature words are analyzed based on the pre-trained Bayesian network model. The type and quantity are calculated to obtain the user's repayment probability; the extracted tone feature words are identified based on the repayment willingness recognition model to obtain the initial repayment willingness value, thereby improving the accuracy of identifying the user's initial repayment willingness value; and when the repayment probability is greater than a predetermined value, the initial repayment willingness value is corrected according to the repayment probability to obtain the target repayment willingness value, that is, the repayment probability and the initial repayment willingness value are obtained through the Bayesian network combined with the repayment willingness recognition model, so that the target repayment willingness can be determined according to the repayment probability and the initial repayment willingness value, so as to quickly and accurately infer the user's real repayment willingness, thereby improving the collection effect.

[0199] Obviously, the embodiments described above are only some embodiments of the present application, rather than all embodiments. The preferred embodiments of the present application are given in the accompanying drawings, but they do not limit the patent scope of the present application. The present application can be implemented in many different forms. On the contrary, the purpose of providing these embodiments is to make the understanding of the disclosure of the present application more thorough and comprehensive. Although the present application is described in detail with reference to the aforementioned embodiments, for those skilled in the art, it is still possible to modify the technical solutions recorded in the aforementioned specific implementation methods, or to perform equivalent replacement of some of the technical features therein. Any equivalent structure made using the contents of the specification and drawings of this application, directly or indirectly used in other related technical fields, is similarly within the scope of patent protection of this application.

Claims

1. A method for inferring intention based on artificial intelligence, characterized in that: The steps include: Acquire text data input by a user, perform word segmentation on the text data, input the word segmented text data into a pre-trained text classification model, obtain similar corpus output by the text classification model, and determine the user intention score based on the similar corpus, wherein the text classification model is trained based on corpus with intention labels; Extracting tone feature words from the text data, and counting the types and quantities of the tone feature words; Obtaining the user's basic attribute information and historical loan information, determining the user's risk level based on the basic attribute information and historical loan information, and calculating the user's risk level, the user's intention score, and the types and quantities of the tone feature words based on a pre-trained Bayesian network model to obtain the user's repayment probability; Identify the extracted tone feature words based on the repayment willingness recognition model to obtain an initial repayment willingness value; When the repayment probability is greater than a predetermined value, the initial repayment willingness value is corrected according to the repayment probability to obtain a target repayment willingness value; Wherein, before the step of calculating the risk level of the user, the user intention score, the types and quantities of the tone feature words based on the pre-trained Bayesian network model to obtain the repayment probability of the user, the step further includes: Acquire the historical operation execution data of the user, and set the risk level of the user as the first node in the Bayesian network model, the user intention score, the type and number of the tone feature words, and the historical operation execution data of the user as the second node in the Bayesian network model, and set the causal relationship between the first node and the plurality of the second nodes to determine a first joint probability distribution of the first node and the plurality of the second nodes according to the causal relationship; Based on the Bayesian network model, determining a second node without a child node among the plurality of second nodes as a third node, determining a priori probability distribution of the third node, and determining a second joint probability distribution of the first node and the second nodes except the third node; Determining the Bayesian network model according to the first joint probability distribution, the second joint probability distribution, and the prior probability distribution of the third node; Verifying the Bayesian network model, and if the verification passes, using the Bayesian network model as the pre-trained Bayesian network model; The step of identifying the extracted tone feature words based on the repayment willingness recognition model to obtain the initial repayment willingness value includes: Obtain word vector text data with intention labels, and classify the word vector text data into training samples and test samples; Inputting the training samples into the initial intention training model to obtain an intention recognition model; Input the test sample into the willingness identification model to obtain a test result, and if the test result is greater than or equal to a preset accuracy rate, use the willingness identification model as the repayment willingness identification model; Based on the repayment willingness recognition model, calculating the probability value corresponding to the tone feature word; When the probability value reaches a preset threshold, the probability value is used as the initial repayment willingness value.

2. The intention inference method based on artificial intelligence according to claim 1 is characterized in that: The step of verifying the Bayesian network model and, if the verification is successful, using the Bayesian network model as a pre-trained Bayesian network model comprises: Get historical text data entered by the user; Extracting valid text data corresponding to other second nodes in the second node except the third node from the historical text data, and inputting the valid text data, the risk level of the user, and the historical operation execution data of the user into the Bayesian network model for verification; If the verification is successful, the Bayesian network model is used as the pre-trained Bayesian network model.

3. The intention inference method based on artificial intelligence according to claim 1 is characterized in that: The step of determining the risk level of the user according to the basic attribute information and historical loan information comprises: Verify the authenticity of the basic attribute information. If the verification is successful, query the user's credit record and obtain the user's historical repayment data; The risk level of the user is determined based on the credit record, the historical repayment data and the historical loan information.

4. The intention inference method based on artificial intelligence according to claim 1 is characterized in that: The step of extracting tone feature words from the text data and counting the types and quantities of the tone feature words comprises: The text data is screened using a preset screening condition to obtain a target text having tone feature words; Obtaining a preset tone feature word category table, wherein the preset tone feature word category table has a plurality of tone feature word categories, and each tone feature word category has a plurality of tone feature words; Based on the mood feature word category table, the mood feature words in the target text are matched, and the types and quantities of the mood feature words in the target text are counted.

5. The intention inference method based on artificial intelligence according to claim 1 is characterized in that: The step of determining the user intention score according to the similar corpus comprises: Calculating target similarity between the similar corpus and the text data; The target similarity is compared with a set value, and when the target similarity is greater than or equal to the set value, the target similarity is used as the user intention score.

6. An intention estimation device based on artificial intelligence, characterized in that: include: An acquisition module is used to acquire text data input by a user, segment the text data, input the segmented text data into a pre-trained text classification model, obtain similar corpus output by the text classification model, and determine the user intention score based on the similar corpus, wherein the text classification model is trained based on corpus with intention labels; A statistical module, used for extracting tone feature words from the text data, and counting the types and quantities of the tone feature words; An information acquisition module is used to acquire the user's basic attribute information and historical loan information, and determine the user's risk level based on the basic attribute information and historical loan information; A probability acquisition module, used to calculate the risk level of the user, the user intention score, and the types and quantities of the tone feature words based on a pre-trained Bayesian network model to obtain the user's repayment probability; A recognition module, used to recognize the extracted tone feature words based on a repayment willingness recognition model to obtain an initial repayment willingness value; A determination module, configured to modify the initial willingness to repay value according to the repayment probability to obtain a target willingness to repay value when the repayment probability is greater than a predetermined value; The probability acquisition module includes: a setting submodule, a determination submodule, a model determination submodule and a verification submodule, wherein: A setting submodule, used to obtain the user's historical operation execution data, and set the user's risk level as the first node in the Bayesian network model, the user intention score, the type and number of the tone feature words, and the user's historical operation execution data as the second node in the Bayesian network model, and set the causal relationship between the first node and multiple second nodes to determine a first joint probability distribution of the first node and multiple second nodes according to the causal relationship; A determination submodule, configured to determine, based on the Bayesian network model, a second node without a child node among the plurality of second nodes as a third node, determine a priori probability distribution of the third node, and determine a second joint probability distribution of the first node and the second nodes except the third node; A model determination submodule, used to determine the Bayesian network model according to the first joint probability distribution, the second joint probability distribution and the prior probability distribution of the third node; A verification submodule, used to verify the Bayesian network model. If the verification passes, the Bayesian network model is used as a pre-trained Bayesian network model; The recognition module includes: a sample acquisition unit, a training unit, a test unit, a probability calculation unit and a willingness acquisition unit, wherein: A sample acquisition unit, used to acquire word vector text data with intention labels, and classify the word vector text data into training samples and test samples; A training unit, used for inputting the training samples into an initial willingness training model to obtain a willingness recognition model; A testing unit, used for inputting the test sample into the willingness recognition model to obtain a test result, and if the test result is greater than or equal to a preset accuracy rate, using the willingness recognition model as the repayment willingness recognition model; A probability calculation unit, used to calculate the probability value corresponding to the tone feature word based on the repayment willingness recognition model; The willingness acquisition unit is used to use the probability value as the initial repayment willingness value when the probability value reaches a preset threshold.

7. A computer device comprising a memory and a processor, wherein the memory stores computer-readable instructions, and when the processor executes the computer-readable instructions, the steps of the intention inference method based on artificial intelligence as described in any one of claims 1 to 5 are implemented.

8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-readable instructions, which, when executed by a processor, implement the steps of the intention inference method based on artificial intelligence as described in any one of claims 1 to 5.

Citation Information

Patent Citations

  • Question-answering device and method based on Bayesian network and storage medium

    CN107807968A

  • Collection information generation method and device, computer equipment and storage medium

    CN109815489A

  • Loan overdue prediction method and device, electronic equipment and storage medium

    CN113435998A