Disclosure of Invention
The invention aims to provide an artificial intelligence callback method and device based on emotion prediction, and aims to solve the problems that the existing man-machine conversation system cannot predict user emotion in advance and response strategy is not appropriate enough.
The technical scheme adopted by the invention for solving the technical problems is as follows:
an artificial intelligence callback method based on emotion prediction comprises the following steps:
receiving text information input by a user;
acquiring emotion information and semantic information of the user according to the text information;
acquiring emotion change trend information and personal state information of a user;
according to the text information, a candidate answer list responding to the text information is inquired from a corpus; the candidate answer list comprises one or more pieces of candidate answer information;
predicting the triggering emotion of the user aiming at each candidate callback information according to the emotion information, the semantic information, the emotion change trend information and the personal state information, and acquiring the prediction result of each candidate callback information;
and comparing the prediction results of all candidate callback information to determine the callback information.
On the basis of the above embodiment, further, the step of obtaining emotion information and semantic information of the user according to the text information includes:
acquiring emotion information of the user through a single sentence emotion recognition system according to the text information;
and acquiring the semantic information of the user through a text information extraction system according to the text information.
On the basis of any of the above embodiments, further, the step of acquiring emotion change tendency information and personal state information of the user specifically includes:
acquiring emotion change trend information of a user from historical information of the user;
personal status information of the user is obtained from the user representation.
On the basis of any of the above embodiments, further, the step of comparing the prediction results of all candidate callback information and determining the callback information includes:
carrying out satisfaction evaluation on the prediction result of each piece of answer information to obtain the prediction satisfaction of each piece of answer information;
and determining the callback information with the highest prediction satisfaction as the callback information.
An artificial intelligence answering device based on emotion prediction, comprising:
the receiving module is used for receiving text information input by a user;
the first acquisition module is used for acquiring emotion information and semantic information of the user according to the text information;
the second acquisition module is used for acquiring emotion change trend information and personal state information of the user;
the query module is used for querying a candidate answer list responding to the text information from the corpus according to the text information; the candidate answer list comprises one or more pieces of candidate answer information;
the prediction module is used for predicting the triggering emotion of the user aiming at each candidate callback information according to the emotion information, the semantic information, the emotion change trend information and the personal state information and acquiring the prediction result of each candidate callback information;
and the determining module is used for comparing the prediction results of all the candidate callback information to determine the callback information.
On the basis of the foregoing embodiment, further, the first obtaining module is configured to:
acquiring emotion information of the user through a single sentence emotion recognition system according to the text information;
and acquiring the semantic information of the user through a text information extraction system according to the text information.
On the basis of any of the foregoing embodiments, further, the second obtaining module is configured to:
acquiring emotion change trend information of a user from historical information of the user;
personal status information of the user is obtained from the user representation.
On the basis of any of the foregoing embodiments, further, the determining module is configured to:
carrying out satisfaction evaluation on the prediction result of each piece of answer information to obtain the prediction satisfaction of each piece of answer information;
and determining the callback information with the highest prediction satisfaction as the callback information.
The invention has the beneficial effects that:
the invention provides an artificial intelligence callback method and device based on emotion prediction, which can predict the triggering emotion of each candidate callback information of a user according to emotion information, semantic information, emotion change trend information and personal state information of the user, and find out a most appropriate sentence as an answer from a plurality of candidate callback information of a candidate callback list through the predicted emotion. The method and the device firstly acquire various current information of the user, predict the triggering emotion of the user on each candidate answer message in the candidate answer list in advance by means of the current information, and select the most appropriate candidate answer message as a response according to the prediction result of the candidate answer messages, so that the method and the device are more humanized and improve the user experience.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and do not limit the invention.
Detailed description of the preferred embodiment
As shown in fig. 1 and fig. 2, an embodiment of the present invention provides an artificial intelligence callback method based on emotion prediction, including:
step S101, receiving text information input by a user.
And step S102, acquiring emotion information and semantic information of the user according to the text information.
Step S103, obtaining the emotion change trend information and the personal state information of the user.
Step S104, according to the text information, inquiring a candidate answer list responding to the text information from a corpus; the candidate callback list comprises one or more pieces of candidate callback information. The embodiment of the invention does not limit the corpus, and the corpus can be a preset set of callback information, and the candidate callback list can be a set of callback information corresponding to the text information in the corpus.
And step S105, predicting the triggering emotion of the user aiming at each candidate callback information according to the emotion information, the semantic information, the emotion change trend information and the personal state information, and obtaining the prediction result of each candidate callback information.
And step S106, comparing the prediction results of all candidate callback information and determining the callback information.
The embodiment of the invention can predict the triggering emotion of each candidate callback information according to the emotion information, the semantic information, the emotion change trend information and the personal state information of the user, and find out a most appropriate sentence as an answer from a plurality of candidate callback information in the candidate callback list according to the predicted emotion. According to the embodiment of the invention, various current information of the user is firstly acquired, the triggering emotion of the user on each candidate callback information in the candidate callback list is predicted in advance by the aid of the current information, and the most appropriate candidate callback information is selected as a response according to the prediction results of the candidate callback information, so that the embodiment of the invention is more humanized and improves the user experience.
The embodiment of the present invention does not limit the manner of obtaining the emotion information and the text information of the user, and preferably, the step S102 may specifically be: acquiring emotion information of the user through a single sentence emotion recognition system according to the text information; and acquiring the semantic information of the user through a text information extraction system according to the text information. When a user inputs a text, the current emotional state of the user can be judged through a single sentence emotion recognition system; the semantic information of the user can be extracted through the text information extraction system, the semantic information can comprise one or more of a semantic meaning, a keyword, a proper noun and a verb, and meanwhile, the text information extraction system can also send out an original sentence and a sentence rewritten according to the context.
The embodiment of the present invention does not limit the manner of acquiring the emotion change trend information and the personal status information of the user, and preferably, the step S103 may specifically be: acquiring emotion change trend information of a user from historical information of the user; personal status information of the user is obtained from the user representation. The emotion change trend of the user in the past period of time can be acquired through the history of the user; the user image of the user can be used to obtain the current status record of the user, including psychological, physiological or other relevant information of the user.
The embodiment of the present invention does not limit the manner of determining the callback information, and preferably, the step S106 may specifically be: carrying out satisfaction evaluation on the prediction result of each piece of answer information to obtain the prediction satisfaction of each piece of answer information; and determining the callback information with the highest prediction satisfaction as the callback information. For example, three pieces of answer information are in the candidate answer list, the triggering emotion prediction results of the three pieces of answer information are respectively happy, feeble and angry, satisfaction evaluation is performed on the three prediction results, and if the prediction satisfaction degrees of the three pieces of answer information are respectively 80, 60 and 40 in percentage, the first piece of answer information with the prediction satisfaction degree of 80 is selected as the answer information.
Detailed description of the invention
As shown in fig. 3, an embodiment of the present invention provides an artificial intelligence answering device based on emotion prediction, including:
the receiving module 201 is configured to receive text information input by a user.
A first obtaining module 202, configured to obtain emotion information and semantic information of the user according to the text information.
And the second acquisition module 203 is used for acquiring the emotion change trend information and the personal state information of the user.
The query module 204 is configured to query, according to the text information, a candidate answer list responding to the text information from a corpus; the candidate callback list comprises one or more pieces of candidate callback information. The embodiment of the invention does not limit the corpus, and the corpus can be a preset set of callback information, and the candidate callback list can be a set of callback information corresponding to the text information in the corpus.
The prediction module 205 is configured to predict a trigger emotion of the user for each piece of candidate callback information according to the emotion information, the semantic information, the emotion change trend information, and the personal state information, and obtain a prediction result of each piece of candidate callback information.
And the determining module 206 is configured to compare the prediction results of all candidate callback information to determine the callback information.
The embodiment of the invention can predict the triggering emotion of each candidate callback information according to the emotion information, the semantic information, the emotion change trend information and the personal state information of the user, and find out a most appropriate sentence as an answer from a plurality of candidate callback information in the candidate callback list according to the predicted emotion. According to the embodiment of the invention, various current information of the user is firstly acquired, the triggering emotion of the user on each candidate callback information in the candidate callback list is predicted in advance by the aid of the current information, and the most appropriate candidate callback information is selected as a response according to the prediction results of the candidate callback information, so that the embodiment of the invention is more humanized and improves the user experience.
The embodiment of the present invention does not limit the manner of acquiring the emotion information and the text information of the user, and preferably, the first acquiring module 202 may be configured to: acquiring emotion information of the user through a single sentence emotion recognition system according to the text information; and acquiring the semantic information of the user through a text information extraction system according to the text information. When a user inputs a text, the current emotional state of the user can be judged through a single sentence emotion recognition system; the semantic information of the user can be extracted through the text information extraction system, the semantic information can comprise one or more of a semantic meaning, a keyword, a proper noun and a verb, and meanwhile, the text information extraction system can also send out an original sentence and a sentence rewritten according to the context.
The embodiment of the present invention does not limit the manner of acquiring the emotion change trend information and the personal status information of the user, and preferably, the second acquiring module 203 may be configured to: acquiring emotion change trend information of a user from historical information of the user; personal status information of the user is obtained from the user representation. The emotion change trend of the user in the past period of time can be acquired through the history of the user; the user image of the user can be used to obtain the current status record of the user, including psychological, physiological or other relevant information of the user.
The embodiment of the present invention does not limit the manner of determining the callback information, and preferably, the determining module 206 may be configured to: carrying out satisfaction evaluation on the prediction result of each piece of answer information to obtain the prediction satisfaction of each piece of answer information; and determining the callback information with the highest prediction satisfaction as the callback information. For example, three pieces of answer information are in the candidate answer list, the triggering emotion prediction results of the three pieces of answer information are respectively happy, feeble and angry, satisfaction evaluation is performed on the three prediction results, and if the prediction satisfaction degrees of the three pieces of answer information are respectively 80, 60 and 40 in percentage, the first piece of answer information with the prediction satisfaction degree of 80 is selected as the answer information.
It should be noted that the embodiments and features of the embodiments may be combined with each other without conflict. Although the present invention has been described to a certain extent, it is apparent that appropriate changes in the respective conditions may be made without departing from the spirit and scope of the present invention. It is to be understood that the invention is not limited to the described embodiments, but is to be accorded the scope consistent with the claims, including equivalents of each element described.