Interaction method, device, client, server and storage medium

By using the emotion recognition model in the search engine to analyze user search word sequences, identify target emotions and display guidance animations, it solves the problem of existing technology being unable to identify and respond to users' negative emotions, and achieves timely guidance and support for user emotions.

CN112860995BActive Publication Date: 2024-10-15BEIJING BAIDU NETCOM SCI & TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

Existing search engines lack humanistic construction and cannot effectively identify and respond to users' negative emotions, resulting in the inability to provide emotional guidance and support in a timely manner.

Method used

By using a trained emotion recognition model on the search page, the search word sequence entered by the user is analyzed, the confidence of the target emotion is generated, and when the confidence is greater than the threshold, a guidance animation is displayed to guide the user to the emotional therapy communication page.

Benefits of technology

It can detect users' negative emotional states early, provide emotional guidance, help users understand and alleviate negative emotions, and improve users' physical and mental health awareness.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112860995B_ABST
    Figure CN112860995B_ABST
Patent Text Reader

Abstract

The present application discloses an interactive method, device, client, server and server, which relate to the field of artificial intelligence technology, especially to the field of natural language processing and deep learning. The specific implementation scheme is: after obtaining the first search term in response to the user operation performed on the search page, the first search term is sent to the server, so that the server generates a search term sequence according to the first search term and multiple second search terms used in the historical search, and then uses the trained emotion recognition model to perform emotion recognition on the search term sequence to obtain the confidence of the target emotion. After obtaining the confidence of the target emotion from the server, when the confidence of the target emotion is greater than the confidence threshold, the guide animation corresponding to the target emotion is displayed on the search page. In this way, through the search term input by the user, the user's negative emotions and other states can be discovered early to guide the user's negative emotions.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application discloses an interaction method, device, client, and storage medium, and particularly relates to the field of natural language processing technology, specifically to the field of deep learning and artificial intelligence. Background Art

[0002] In today's society, material conditions are developing rapidly, but the spiritual world of human individuals is facing a crisis. More and more young people are becoming depressed and even committing suicide. As a demand-satisfying scenario with a high frequency of daily visits by users, search engines record the traces of many users' inner struggles. We can provide users with humanistic care in specific scenarios without infringing on their privacy to the greatest extent, and at the same time, we can also play the social responsibility of Internet platforms. Summary of the invention

[0003] The present application provides an interaction method, apparatus, device and storage medium.

[0004] According to one aspect of the present application, there is provided an interaction method, comprising:

[0005] In response to a user operation performed on a search page, obtaining a first search term;

[0006] Sending the first search term to a server; wherein the first search term is used to generate a search term sequence with a plurality of second search terms used in historical searches, and using a trained emotion recognition model to perform emotion recognition on the search term sequence to obtain a confidence level of a target emotion;

[0007] Acquire the confidence of the target emotion from the server;

[0008] When the confidence of the target emotion is greater than the confidence threshold, a guide animation corresponding to the target emotion is displayed on the search page.

[0009] According to another aspect of the present application, another interaction method is provided, comprising:

[0010] Obtaining a first search term sent by the client in response to a user operation on a search page;

[0011] Query the historical records of the client to obtain a plurality of second search terms used in the historical searches;

[0012] generating a search word sequence according to the first search word and a plurality of the second search words;

[0013] Using a trained emotion recognition model to perform emotion recognition on the search word sequence to obtain the confidence of the target emotion;

[0014] The confidence level is sent to the client, so that the client displays a guide animation corresponding to the target emotion on the search page when the confidence level is greater than a confidence level threshold.

[0015] According to another aspect of the present application, an interaction device is provided, comprising:

[0016] A response module, configured to obtain a first search term in response to a user operation performed on the search page;

[0017] A sending module, configured to send the first search term to a server; wherein the first search term is used to generate a search term sequence with a plurality of second search terms used in historical searches, and a trained emotion recognition model is used to perform emotion recognition on the search term sequence to obtain a confidence level of a target emotion;

[0018] An acquisition module, used for acquiring the confidence of the target emotion from the server;

[0019] A display module is used to display a guide animation corresponding to the target emotion on the search page when the confidence of the target emotion is greater than a confidence threshold.

[0020] According to another aspect of the present application, another interactive device is provided, comprising:

[0021] An acquisition module, used to acquire a first search term sent by the client in response to a user operation on a search page;

[0022] A query module, used for querying the historical records of the client to obtain a plurality of second search terms used in the historical searches;

[0023] A generating module, configured to generate a search word sequence according to the first search word and a plurality of the second search words;

[0024] A recognition module, used to use a trained emotion recognition model to perform emotion recognition on the search word sequence to obtain the confidence of the target emotion;

[0025] A sending module is used to send the confidence level to the client, so that the client displays a guide animation corresponding to the target emotion on the search page when the confidence level is greater than a confidence level threshold.

[0026] According to another aspect of the present application, a client is provided, including:

[0027] at least one processor; and

[0028] a memory communicatively connected to the at least one processor; wherein,

[0029] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the interaction method described in the above-mentioned embodiment.

[0030] According to another aspect of the present application, a server is provided, comprising:

[0031] at least one processor; and

[0032] a memory communicatively connected to the at least one processor; wherein,

[0033] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the interaction method described in the above-mentioned other aspect of the embodiment.

[0034] According to another aspect of the present application, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to enable the computer to execute the interaction method described in the above embodiment.

[0035] According to another aspect of the present application, a computer program product is provided, including a computer program, and when the computer program is executed by a processor, the interaction method described in the above embodiment is implemented.

[0036] One embodiment of the above application has the following advantages or beneficial effects: through the search terms input by the user, the user's negative emotions and other states are discovered early to guide the user's negative emotions.

[0037] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present application, nor is it intended to limit the scope of the present application. Other features of the present application will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] The accompanying drawings are used to better understand the present solution and do not constitute a limitation of the present application.

[0039] Figure 1 A flowchart of the interaction method provided in Example 1 of the present application;

[0040] Figure 2 A flowchart of the interaction method provided in Embodiment 2 of the present application;

[0041] Figure 3 A flowchart of the interactive method provided in Embodiment 3 of the present application;

[0042] Figure 4 A flowchart of the interaction method provided in Embodiment 4 of the present application;

[0043] Figure 5 A flowchart of the interactive method provided in Embodiment 5 of the present application;

[0044] Figure 6 A schematic diagram of the structure of an interactive device provided in Example 6 of the present application;

[0045] Figure 7 A schematic diagram of the structure of an interactive device provided in Embodiment 7 of the present application;

[0046] Figure 8 It is a block diagram of a client used to implement the interactive method of an embodiment of the present application. DETAILED DESCRIPTION

[0047] The following is a description of exemplary embodiments of the present application in conjunction with the accompanying drawings, including various details of the embodiments of the present application to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of the present application. Similarly, for the sake of clarity and conciseness, the description of well-known functions and structures is omitted in the following description.

[0048] Existing search engines will conduct big data mining on massive user search logs, build user portraits based on business needs, and apply the mining results in specific situations, such as personalized advertising recommendations.

[0049] Most of the existing user behavior analysis based on data mining is about recommending advertisements, which is simply to cater to the needs of users. However, with the comprehensive development of the Internet and its gradual integration into the social world, most Internet platforms are particularly lacking in humanistic construction.

[0050] To this end, the present application proposes an interactive method, which performs semantic recognition and sentiment analysis on the search terms entered by the user in the search engine to determine the confidence of the target emotion of the current user. When it is determined that the confidence of the target emotion is greater than the confidence threshold, a guidance screen corresponding to the target emotion is displayed on the search page.

[0051] The following describes the interactive method, apparatus, device and storage medium of the embodiments of the present application with reference to the accompanying drawings.

[0052] Figure 1 A flowchart of the interaction method provided in Example 1 of the present application.

[0053] The embodiment of the present application takes the interactive method being configured in an interactive device as an example. The interactive device can be applied to any client so that the client can perform interactive functions.

[0054] The client may be a personal computer (PC), a cloud device, a mobile device, etc. The mobile device may be, for example, a mobile phone, a tablet computer, a personal digital assistant, a wearable device, a car device, and other hardware devices with various operating systems.

[0055] like Figure 1 As shown, the interactive method, executed by the client, may include the following steps:

[0056] Step 101, in response to a user operation performed on a search page, obtain a first search term.

[0057] The search page may be a search page of any search engine, and the search engine is not limited in this application.

[0058] For the sake of distinction, in this application, the search term entered by the user on the search page is named the first search term, and the search term entered by the user in the past is named the second search term. Of course, other naming methods can also be used, which are not limited here.

[0059] In the embodiment of the present application, after the user enters a search term on the search page, the client can obtain the first search term entered by the user in response to the input operation performed by the user on the search page.

[0060] It should be explained that the user operation may be an operation in which the user inputs the search term by voice input, or an operation in which the user inputs the search term by manual input, etc., which is not limited here.

[0061] Step 102: Send a first search term to a server.

[0062] The first search term is used to generate a search term sequence with multiple second search terms used in historical searches.

[0063] In the embodiment of the present application, after obtaining the first search term in response to the user operation input by the user on the search page, the client can send the first search term to the server.

[0064] The server can also obtain multiple second search terms used by the user in searching the search page in the historical time from the historical search behavior log. The historical search behavior log stores the search terms entered by the user in the search page in the historical time. The server can also query the client's historical records to obtain multiple second search terms used in the user's historical searches.

[0065] After receiving the first search word sent by the client, the server may generate a search word sequence by combining the first search word with a plurality of second search words.

[0066] It should be noted that when a search term sequence is generated according to a first search term and a plurality of second search terms, there is no limitation on the order of the first search term and the plurality of second search terms, and they may be ordered in any order.

[0067] Furthermore, the server uses a trained emotion recognition model to perform emotion recognition on the search word sequence to obtain the confidence of the target emotion.

[0068] The emotion recognition model is trained using a large number of training samples, and can accurately recognize the emotions of search terms to obtain the confidence of the target emotion. The training samples include texts describing the target emotion.

[0069] The training samples in the present application may be search words containing emotions stored in the server, or search words containing emotions input by the user, etc., and are not limited here.

[0070] Step 103: Obtain the confidence level of the target emotion from the server.

[0071] In an embodiment of the present application, the server uses a trained emotion recognition model to perform emotion recognition on a search word sequence to obtain the confidence of a target emotion, and then the confidence of the target emotion can be sent to the client so that the client obtains the confidence of the target emotion from the server.

[0072] Step 104 : when the confidence of the target emotion is greater than the confidence threshold, display a guide animation corresponding to the target emotion on the search page.

[0073] The confidence threshold is a preset confidence value.

[0074] As a possible case, the confidence threshold may be a confidence value set by the client in response to a user operation.

[0075] It is understandable that the target emotion can be divided into multiple levels, and different levels correspond to different confidence thresholds. The user can set the confidence threshold according to his own needs.

[0076] As an example, assuming that the target emotion is depression, depression can be divided into three levels: low, medium and high. Different levels have corresponding confidence thresholds, and users can set the confidence thresholds according to their own needs.

[0077] In an embodiment of the present application, after the client obtains the confidence of the target emotion from the server, the confidence of the target emotion is compared with the confidence threshold. When it is determined that the confidence of the target emotion is greater than the confidence threshold, the guide animation corresponding to the target emotion is displayed on the search page.

[0078] As an example, assuming that the target emotion is a negative emotion, when it is determined that the confidence of the negative emotion is greater than the confidence threshold, a guidance screen corresponding to the negative emotion can be displayed on the search page.

[0079] In another possible case, after the client obtains the confidence of the target emotion from the server, it compares the confidence of the target emotion with the confidence threshold. If it is determined that the confidence of the target emotion is less than or equal to the confidence threshold, the search page jumps to the display page that displays the search results according to the search term.

[0080] The interactive method of the embodiment of the present application, in response to the user operation performed on the search page, after obtaining the first search term, sends the first search term to the server, so that the server generates a search term sequence based on the first search term and multiple second search terms used in the historical search, and then uses the trained emotion recognition model to perform emotion recognition on the search term sequence to obtain the confidence of the target emotion. After obtaining the confidence of the target emotion from the server, when the confidence of the target emotion is greater than the confidence threshold, the guidance animation corresponding to the target emotion is displayed on the search page. In this way, through the search term input by the user, the user's negative emotion and other states can be discovered early to guide the user's negative emotions.

[0081] Based on the above embodiment, after the guide animation corresponding to the target emotion is displayed on the search page, the user can be guided to enter the emotional therapy communication page to intervene in the user's negative emotions and other states. Figure 2 Provide detailed introduction, Figure 2 A flowchart of the interaction method provided in Example 2 of the present application.

[0082] like Figure 2 As shown, the interaction method may include the following steps:

[0083] Step 201, in response to a user operation performed on a search page, obtain a first search term.

[0084] Step 202, sending a first search term to a server; wherein the first search term is used to generate a search term sequence with multiple second search terms used in historical searches, and a trained emotion recognition model is used to perform emotion recognition on the search term sequence to obtain the confidence of the target emotion.

[0085] Step 203: Obtain the confidence level of the target emotion from the server.

[0086] Step 204 : when the confidence level of the target emotion is greater than the confidence level threshold, displaying a guide animation corresponding to the target emotion on the search page.

[0087] In the embodiment of the present application, the implementation process of steps 201 to 204 can refer to the implementation process of steps 101 to 104 in the above embodiment, which will not be repeated here.

[0088] Step 205: Display the target control.

[0089] The target control refers to a control displayed on the client for the user to interact with the client. The target control can be a fun animated character or a control displayed in other forms, which is not limited here.

[0090] As an example, when it is determined that the confidence of the target emotion is greater than the confidence threshold, an Easter egg robot can be displayed on the search page, which guides the user to enter the treatment communication page in a cartoon-like and interesting way.

[0091] Step 206: In response to the triggering operation on the target control, display the target page corresponding to the target emotion.

[0092] In an embodiment of the present application, after the client displays the target control, it can prompt the user to click the target control through text and / or voice, so as to display the target page corresponding to the target emotion in response to the user's triggering operation on the target control.

[0093] In one possible case, the client can display a display area for displaying knowledge content of the target emotion on the target page in response to the triggering operation of the target control, thereby allowing the user to recognize his own emotions and to pay attention to the user's physical and mental health.

[0094] As an example, assuming that the target emotion is depression, a display area for displaying knowledge content about depression can be displayed on the target page. For example, the manifestations of depression, simple treatment methods, etc. can be displayed in the display area.

[0095] In another possible case, the client may also display an interactive area for invoking a dialogue service corresponding to the target emotion on the target page in response to a triggering operation on the target control, thereby allowing the user to have a dialogue with a robot or a psychotherapist to alleviate the user's negative emotions.

[0096] Optionally, an interactive area of ​​the artificial intelligence dialogue service may be displayed on the target page, so that the user can communicate with the intelligent robot through the dialogue service displayed in the interactive area.

[0097] Optionally, an interactive area of ​​the human dialogue service may be displayed on the target page, so that the user can communicate with a human in the human dialogue service displayed in the interactive area.

[0098] It should be noted that when a user communicates with an intelligent robot or a human, they can communicate by inputting text, by voice, by video, etc., and there is no limitation here.

[0099] In another possible case, in response to the triggering operation on the target control, the client can also simultaneously display on the target page a display area for displaying the knowledge content of the target emotion and an interactive area for invoking the dialogue service corresponding to the target emotion.

[0100] As an example, assuming that the target emotion is depression, an interactive area for invoking a dialogue service for depression and a display area for displaying knowledge content about depression may also be displayed on the target page at the same time.

[0101] In the embodiment of the present application, after the guide animation corresponding to the target emotion is displayed on the search page, the target control can be displayed to display the target page corresponding to the target emotion in response to the triggering operation of the target control. Thus, the user's emotions can be relieved by communicating with the user on the target page.

[0102] In order to implement the above embodiment, the present application proposes another interaction method.

[0103] Figure 3 A flowchart of the interactive method provided in Example 3 of the present application.

[0104] like Figure 3 As shown, the interactive method, executed by the server, may include the following steps:

[0105] Step 301: Obtain a first search term sent by a client in response to a user operation on a search page.

[0106] The search page may be a search page of any search engine, and the search engine is not limited in this application.

[0107] In an embodiment of the present application, after the user enters a search term on the search page, the client can obtain the first search term entered by the user in response to the input operation performed by the user on the search page. The client then sends the first search term to the server, so that the server obtains the first search term sent by the client.

[0108] It should be explained that the user operation may be an operation in which the user inputs the search term by voice input, or an operation in which the user inputs the search term by manual input, etc., which is not limited here.

[0109] Step 302: query the client's historical records to obtain a plurality of second search terms used in historical searches.

[0110] In an embodiment of the present application, the server may query the historical search behavior log of the client to obtain a plurality of second search terms used in the user's historical search from the historical search behavior log.

[0111] Step 303: Generate a search word sequence according to the first search word and multiple second search words.

[0112] The search term sequence refers to a sequence obtained by sorting multiple search terms.

[0113] In the embodiment of the present application, after the server obtains multiple search terms used in the user's historical searches, it can generate a search term sequence based on the first search term and multiple second search terms.

[0114] It should be noted that when a search term sequence is generated according to a first search term and a plurality of second search terms, there is no limitation on the order of the first search term and the plurality of second search terms, and they may be ordered in any order.

[0115] Step 304: Use the trained emotion recognition model to perform emotion recognition on the search word sequence to obtain the confidence of the target emotion.

[0116] The emotion recognition model is trained using a large number of training samples, and can accurately recognize the emotions of search terms to obtain the confidence of the target emotion. The training samples include texts describing the target emotion.

[0117] The training samples in the present application may be text describing the target emotion stored in the server, or may be text describing the target emotion input by the user, etc., which is not limited here.

[0118] In the embodiment of the present application, after the emotion recognition model is trained with a large number of training samples, the trained emotion recognition model can be used to perform emotion recognition on the search word sequence to obtain the confidence of the target emotion. Thus, the accuracy of the emotion recognition model in performing emotion recognition on the search word sequence can be improved.

[0119] Step 305 : Send the confidence level to the client, so that the client displays a guide animation corresponding to the target emotion on the search page when the confidence level is greater than a confidence level threshold.

[0120] The confidence threshold is a preset confidence value.

[0121] As a possible case, the confidence threshold may be a confidence value set by the client in response to a user operation.

[0122] It is understandable that the target emotion can be divided into multiple levels, and different levels correspond to different confidence thresholds. The user can set the confidence threshold according to his own needs.

[0123] As an example, assuming that the target emotion is depression, depression can be divided into three levels: low, medium and high. Different levels have corresponding confidence thresholds, and users can set the confidence thresholds according to their own needs.

[0124] In the embodiment of the present application, the server uses a trained emotion recognition model to perform emotion recognition on the search word sequence, and after obtaining the confidence of the target emotion, the confidence of the target emotion can be sent to the client. After receiving the confidence of the target emotion, the client compares the confidence with the confidence threshold.

[0125] In one possible case, when it is determined that the confidence of the target emotion is greater than a confidence threshold, a guide animation corresponding to the target emotion is displayed on the search page.

[0126] In another possible case, when it is determined that the confidence of the target emotion is less than or equal to the confidence threshold, the search page jumps to a display page displaying search results according to the search term.

[0127] In the interactive method of the embodiment of the present application, after the server obtains the first search term sent by the client in response to the user operation of the search page, it queries the history of the client to obtain multiple second search terms used in the historical search, generates a search term sequence based on the first search term and the multiple second search terms, uses a trained emotion recognition model to perform emotion recognition on the search term sequence to obtain the confidence of the target emotion, and sends the confidence to the client, so that the client displays the guidance animation corresponding to the target emotion on the search page when the confidence is greater than the confidence threshold. . Thus, through the search term input by the user, the user's negative emotion and other states are discovered early to guide the user's negative emotions.

[0128] In the above embodiment, it has been mentioned that the emotion recognition model is used to perform emotion recognition on the search word sequence to obtain the confidence of the target emotion. Figure 4 Provide detailed introduction, Figure 4 A flowchart of the interactive method provided in Example 4 of the present application.

[0129] like Figure 4 As shown, the interactive method, executed by the server, may include the following steps:

[0130] Step 401 : input the search word sequence into the emotion recognition model, and use the feature extraction layer of the emotion recognition model to extract semantic features of the search word sequence to obtain the semantic features of the search word sequence.

[0131] Among them, the feature extraction layer is used to extract semantic features of the search word sequence to obtain the semantic features of the search word sequence.

[0132] In an embodiment of the present application, when using a trained emotion recognition model to perform emotion recognition on a search word sequence, the feature extraction layer of the emotion recognition model can first be used to extract semantic features of the search word sequence to obtain the semantic features of each search word in the search word sequence.

[0133] Step 402 , using the classification layer of the emotion recognition model, classifies the semantic features to obtain the confidence level of the target emotion.

[0134] Among them, the classification layer is used to classify the semantic features extracted by the feature extraction layer and can score each search term.

[0135] In an embodiment of the present application, a feature extraction layer of an emotion recognition model is used to extract semantic features of a search word sequence. After obtaining the semantic features of the search word sequence, a classification layer can be used to classify the semantic features to determine the target emotion to which each search word in the search word sequence belongs, and then obtain the confidence level of the target emotion.

[0136] It should be explained that the feature extraction layer and classification layer of the emotion recognition model are trained using training samples, and can accurately extract the semantic features of the search word sequence and obtain the confidence level of the target emotion.

[0137] Based on the above embodiments, an embodiment of the present application provides an interaction method.

[0138] Figure 5 A flowchart of the interactive method provided in Example 5 of the present application.

[0139] like Figure 5 As shown, the interaction method may include the following steps:

[0140] Step 501: The client obtains a first search term in response to a user operation performed on a search page.

[0141] Step 502: The client sends a first search term to the server.

[0142] Step 503: The server queries the client's historical records to obtain a plurality of second search terms used in historical searches.

[0143] Step 504: The server generates a search term sequence according to the first search term and multiple second search terms.

[0144] Step 505: The server uses a trained emotion recognition model to perform emotion recognition on the search word sequence to obtain the confidence level of the target emotion.

[0145] Step 506: The server sends the confidence level of the target emotion to the client.

[0146] Step 507: When the client determines that the confidence level is greater than the confidence level threshold, a guide animation corresponding to the target emotion is displayed on the search page.

[0147] Step 508: Display the target control on the client.

[0148] Step 509: The client displays a target page corresponding to the target emotion in response to the user's triggering operation on the target control.

[0149] It should be noted that the specific implementation process of the above steps 501 to 509 can refer to the implementation process of each step in the above embodiment, which will not be repeated here.

[0150] In order to implement the above embodiment, the embodiment of the present application proposes an interaction device.

[0151] Figure 6 This is a schematic diagram of the structure of the interactive device provided in Example 6 of the present application.

[0152] like Figure 6 As shown, the interaction device 600 may include: a response module 610 , a sending module 620 , an acquisition module 630 and a display module 640 .

[0153] The response module 610 is used to obtain a first search term in response to a user operation performed on the search page.

[0154] The sending module 620 is used to send a first search term to a server; wherein the first search term is used to generate a search term sequence with multiple second search terms used in historical searches, and a trained emotion recognition model is used to perform emotion recognition on the search term sequence to obtain the confidence of the target emotion.

[0155] The acquisition module 630 is used to acquire the confidence level of the target emotion from the server.

[0156] The display module 640 is used to display the guide animation corresponding to the target emotion on the search page when the confidence of the target emotion is greater than the confidence threshold.

[0157] In a possible case, the interaction device 600 may further include:

[0158] A first display module, used for displaying a target control;

[0159] The second display module is used to display a target page corresponding to the target emotion in response to a triggering operation on the target control.

[0160] In another possible case, the target page includes at least one of the following:

[0161] A display area for displaying knowledge content related to target emotions;

[0162] The interaction area used to call the dialogue service corresponding to the target emotion.

[0163] In another possible case, the interaction device 600 may further include:

[0164] The setting module is used to set the confidence threshold in response to user operation.

[0165] It should be noted that the above Figure 1 and Figure 2 The explanation of the interaction method embodiment in is also applicable to the interaction device and will not be repeated here.

[0166] The interactive device of the embodiment of the present application, in response to the user operation performed on the search page, after obtaining the first search term, sends the first search term to the server, so that the server generates a search term sequence based on the first search term and multiple second search terms used in the historical search, and then uses the trained emotion recognition model to perform emotion recognition on the search term sequence to obtain the confidence of the target emotion. After obtaining the confidence of the target emotion from the server, when the confidence of the target emotion is greater than the confidence threshold, the guidance animation corresponding to the target emotion is displayed on the search page. In this way, through the search term input by the user, the user's negative emotion and other states can be discovered early to guide the user's negative emotions.

[0167] In order to implement the above embodiment, the present application proposes another interaction device.

[0168] Figure 7 This is a schematic diagram of the structure of the interactive device provided in Example 7 of the present application.

[0169] like Figure 7 As shown, the interaction device 700 may include: an acquisition module 710 , a query module 720 , a generation module 730 , an identification module 740 and a sending module 750 .

[0170] The acquisition module 710 is used to acquire the first search term sent by the client in response to a user operation on the search page.

[0171] The query module 720 is used to query the historical records of the client to obtain multiple second search terms used in the historical searches.

[0172] The generating module 730 is used to generate a search word sequence according to the first search word and multiple second search words.

[0173] The recognition module 740 is used to use the trained emotion recognition model to perform emotion recognition on the search word sequence to obtain the confidence of the target emotion.

[0174] The sending module 750 is used to send the confidence level to the client, so that the client displays the guide animation corresponding to the target emotion on the search page when the confidence level is greater than the confidence level threshold.

[0175] In one possible case, the identification module 740 may also be used to:

[0176] Inputting the search word sequence into the emotion recognition model, using the feature extraction layer of the emotion recognition model to extract semantic features of the search word sequence, thereby obtaining semantic features of the search word sequence;

[0177] The classification layer of the emotion recognition model is used to classify the semantic features to obtain the confidence that they belong to the target emotion.

[0178] In another possible case, the emotion recognition model is trained using training samples; wherein the training samples include texts describing the target emotion.

[0179] It should be noted that the above Figure 3 and Figure 4 The explanation of the interaction method embodiment in is also applicable to the interaction device and will not be repeated here.

[0180] In the interactive device of the embodiment of the present application, after the server obtains the first search term sent by the client in response to the user operation of the search page, it queries the history of the client to obtain multiple second search terms used in the historical search, generates a search term sequence based on the first search term and the multiple second search terms, uses a trained emotion recognition model to perform emotion recognition on the search term sequence to obtain the confidence of the target emotion, and sends the confidence to the client, so that the client displays the guidance animation corresponding to the target emotion on the search page when the confidence is greater than the confidence threshold. . Thus, through the search term input by the user, the user's negative emotion and other states are discovered early to guide the user's negative emotions.

[0181] According to an embodiment of the present application, the present application also provides a client, a server, a readable storage medium and a computer program product.

[0182] In order to implement the above embodiment, the present application proposes a client, including:

[0183] at least one processor; and

[0184] a memory communicatively connected to the at least one processor; wherein,

[0185] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform Figure 1 or Figure 2 interaction method.

[0186] In order to implement the above embodiment, the present application proposes a server, including:

[0187] at least one processor; and

[0188] a memory communicatively connected to the at least one processor; wherein,

[0189] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform Figure 3 or Figure 4 The interaction method described.

[0190] In order to implement the above embodiment, the present application proposes a non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are used to enable the computer to execute Figure 1 or Figure 2 or, execute Figure 3 or Figure 4 The interaction method described.

[0191] In order to implement the above embodiments, the present application proposes a computer program product, including a computer program, which implements Figure 1 or Figure 2 or, to implement Figure 3 or Figure 4 The interaction method described.

[0192] Figure 8 A schematic block diagram of an example client 800 that can be used to implement an embodiment of the present application is shown. The client is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workbenches, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The client can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present application described and / or required herein.

[0193] like Figure 8 As shown, the device 800 includes a computing unit 801, which can perform various appropriate actions and processes according to a computer program stored in a ROM (Read-Only Memory) 802 or a computer program loaded from a storage unit 808 to a RAM (Random Access Memory) 803. In the RAM 803, various programs and data required for the operation of the device 800 can also be stored. The computing unit 801, the ROM 802, and the RAM 803 are connected to each other via a bus 804. An I / O (Input / Output) interface 805 is also connected to the bus 804.

[0194] A number of components in the device 800 are connected to the I / O interface 805, including: an input unit 806, such as a keyboard, a mouse, etc.; an output unit 807, such as various types of displays, speakers, etc.; a storage unit 808, such as a disk, an optical disk, etc.; and a communication unit 809, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 809 allows the device 800 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0195] The computing unit 801 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 801 include, but are not limited to, a CPU (Central Processing Unit), a GPU (Graphic Processing Units), various dedicated AI (Artificial Intelligence) computing chips, various computing units running machine learning model algorithms, DSP (Digital Signal Processor), and any appropriate processor, controller, microcontroller, etc. The computing unit 801 performs the various methods and processes described above, such as interaction. For example, in some embodiments, the interaction may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 808. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 800 via the ROM 802 and / or the communication unit 809. When the computer program is loaded into the RAM 803 and executed by the computing unit 801, one or more steps of the interaction described above may be performed. Alternatively, in other embodiments, the computing unit 801 may be configured to perform the interaction in any other appropriate manner (eg, by means of firmware).

[0196] Various embodiments of the systems and techniques described above herein may be implemented in digital electronic circuit systems, integrated circuit systems, FPGAs (Field Programmable Gate Arrays), ASICs (Application-Specific Integrated Circuits), ASSPs (Application Specific Standard Products), SOCs (System On Chips), CPLDs (Complex Programmable Logic Devices), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include: being implemented in one or more computer programs that may be executed and / or interpreted on a programmable system including at least one programmable processor that may be a dedicated or general-purpose programmable processor that may receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0197] The program code for implementing the method of the present application can be written in any combination of one or more programming languages. These program codes can be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, implements the functions / operations specified in the flow chart and / or block diagram. The program code can be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0198] In the context of the present application, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or any suitable combination of the foregoing. More specific examples of machine-readable storage media may include electrical connections based on one or more lines, portable computer disks, hard disks, RAM, ROM, EPROM (Electrically Programmable Read-Only-Memory) or flash memory, optical fiber, CD-ROM (Compact Disc Read-Only Memory), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.

[0199] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0200] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: LAN (Local Area Network), WAN (Wide Area Network), the Internet, and blockchain networks.

[0201] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship between the client and the server is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services ("Virtual Private Server", or "VPS" for short).

[0202] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this application can be executed in parallel, sequentially or in different orders, as long as the expected results of the technical solution disclosed in this application can be achieved, and this document is not limited here.

[0203] The above specific implementations do not constitute a limitation on the protection scope of this application. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of this application should be included in the protection scope of this application.

Claims

1. An interactive method, comprising: In response to a user operation performed on a search page, obtaining a first search term; Sending the first search term to a server; wherein the first search term is used to generate a search term sequence with a plurality of second search terms used in historical searches, inputting the search term sequence into a trained emotion recognition model, using a feature extraction layer of the emotion recognition model to extract semantic features of the search term sequence, obtaining semantic features of the search term sequence, and using a classification layer of the emotion recognition model to classify the semantic features to obtain a confidence level belonging to a target emotion; Acquire the confidence of the target emotion from the server; setting a confidence threshold in response to a user operation; When the confidence of the target emotion is greater than the confidence threshold, a guide animation corresponding to the target emotion is displayed on the search page.

2. The interactive method according to claim 1, wherein: After the search page displays the guide animation corresponding to the target emotion, the method further includes: Display target controls; In response to a triggering operation on the target control, a target page corresponding to the target emotion is displayed.

3. The interactive method according to claim 2, wherein: The target page includes at least one of the following: A display area for displaying knowledge content of the target emotion; The interaction area used to call the dialogue service corresponding to the target emotion.

4. An interactive method, comprising: Obtaining a first search term sent by the client in response to a user operation on a search page; Query the historical records of the client to obtain a plurality of second search terms used in the historical searches; generating a search word sequence according to the first search word and a plurality of the second search words; Inputting the search word sequence into a trained emotion recognition model, extracting semantic features of the search word sequence using a feature extraction layer of the emotion recognition model to obtain semantic features of the search word sequence, and classifying the semantic features using a classification layer of the emotion recognition model to obtain a confidence level of belonging to a target emotion; The confidence level is sent to the client, so that the client displays a guide animation corresponding to the target emotion on the search page when the confidence level is greater than a confidence threshold, wherein the confidence threshold is set by a user.

5. The interactive method according to claim 4, wherein: The emotion recognition model is trained using training samples; wherein the training samples include texts describing the target emotion.

6. An interactive device, comprising: A response module, configured to obtain a first search term in response to a user operation performed on the search page; A sending module, configured to send the first search term to a server; wherein the first search term is used to generate a search term sequence with a plurality of second search terms used in historical searches, the search term sequence is input into a trained emotion recognition model, a feature extraction layer of the emotion recognition model is used to extract semantic features of the search term sequence, and a classification layer of the emotion recognition model is used to classify the semantic features to obtain a confidence level of the target emotion; An acquisition module, used for acquiring the confidence of the target emotion from the server; A setting module, used for setting a confidence threshold in response to a user operation; A display module is used to display a guide animation corresponding to the target emotion on the search page when the confidence of the target emotion is greater than a confidence threshold.

7. The interactive device according to claim 6, wherein: The device further comprises: A first display module, used for displaying a target control; The second display module is used to display a target page corresponding to the target emotion in response to a triggering operation on the target control.

8. The interactive device according to claim 7, wherein: The target page includes at least one of the following: A display area for displaying knowledge content of the target emotion; The interaction area used to call the dialogue service corresponding to the target emotion.

9. An interactive device, comprising: An acquisition module, used to acquire a first search term sent by the client in response to a user operation on a search page; A query module, used for querying the historical records of the client to obtain a plurality of second search terms used in the historical searches; A generating module, configured to generate a search word sequence according to the first search word and a plurality of the second search words; A recognition module, configured to input the search word sequence into a trained emotion recognition model, extract semantic features of the search word sequence using a feature extraction layer of the emotion recognition model to obtain semantic features of the search word sequence, and classify the semantic features using a classification layer of the emotion recognition model to obtain a confidence level of the target emotion; A sending module is used to send the confidence level to the client, so that the client displays a guide animation corresponding to the target emotion on the search page when the confidence level is greater than a confidence threshold, wherein the confidence threshold is set by the user.

10. The interactive device according to claim 9, wherein: The emotion recognition model is trained using training samples; wherein the training samples include texts describing the target emotion.

11. A client, comprising: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the interaction method according to any one of claims 1 to 5.

12. A server, comprising: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the interaction method described in claim 4 or 5.

13. A non-transitory computer-readable storage medium storing computer instructions, wherein: The computer instructions are used to enable the computer to execute the interactive method according to any one of claims 1 to 5.

14. A computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the computer program implements the interaction method according to any one of claims 1 to 5.