Corpus-based artificial intelligence mental health chatbot for professional occupations
Through the artificial intelligence mental health chatbot based on the corpus, personalized chat content is provided based on the user's major or occupation and mental health status, which solves the problem in the existing technology that the chat content has nothing to do with the user's major or occupation, and achieves the goal of improving mental health. and professional capabilities.
Patent Information
- Application Number
- CN202110182808.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-02-10
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2041-02-10
AI Technical Summary
Existing mental health chatbots cannot effectively utilize the time of professional or professional users. The chat content has nothing to do with the user's major or occupation, causing users to feel that it is a waste of time, and cannot meet the needs of users who are busy working or studying.
The corpus-based artificial intelligence mental health chatbot generates chat sentences related to the user by obtaining the user's major or occupation, and uses a deep learning model or neural network model to provide personalized chat based on the user's mental health status and professional knowledge. content, including reply, continue chat and start chat modes, to ensure that the chat content is relevant to the user's major or career.
It improves users' utilization efficiency of mental health services, enhances users' trust in robots, and makes users feel that chatting is helpful to their profession or career, which not only improves their mental health but also enhances their professional or professional abilities.
Smart Images

Figure CN112905770B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of artificial intelligence technology, and in particular to a corpus-based professional and occupation-oriented artificial intelligence mental health chat robot. Background Art
[0002] Under the existing technology, mental health chatbots use general corpora or corpora related to mental health to chat with users.
[0003] In the process of implementing the present invention, the inventors found that there are at least the following problems in the prior art: Under the prior art, robot chatting will take up a lot of users' time. Some users know that they may have psychological problems and may not have time to chat with robots. Some users' psychological problems are even caused by being too busy or stressed out at school or work. Such users are even less likely to have time or be willing to take time out to chat with robots. Therefore, the prior art is not applicable to users who are busy with their professions or / and careers.
[0004] Therefore, the prior art still needs to be improved and developed. Summary of the invention
[0005] Based on this, it is necessary to provide a corpus-based artificial intelligence mental health chat robot for professional occupations to address the defects or deficiencies of the existing technology, and to associate the robot's chat sentences with the user's sentences, mental health knowledge, and the user's professional or / and professional knowledge as much as possible, so as to solve the problem that the robot's chat sentences in the existing technology are irrelevant to the user's profession or / and profession, thereby occupying the user's time for profession or / and profession, so that the user can kill two birds with one stone, improving mental health, enriching professional knowledge and improving professional ability. For example, when chatting with people majoring in English, use English to chat with them; when chatting with athletes, try to make the chat sentences related to sports; when chatting with skaters, try to make the chat sentences related to skating, or use the voice of a well-known skater or display the image of a well-known skater on the display screen to chat with them.
[0006] In a first aspect, an embodiment of the present invention provides an artificial intelligence method, the method comprising:
[0007] Professional occupation acquisition step: obtain the user's profession and / or occupation;
[0008] Recent chat sentence acquisition step: acquiring a sentence sequence of the robot and the user's recent chat, wherein the sentences in the sentence sequence are sorted in order;
[0009] Chat sentence generation step: generate a chat sentence based on the user's current mental health status, the user's major and / or occupation, the sentence sequence, and the current chat mode and send it to the user.
[0010] Preferably, the chat sentence generating step specifically includes:
[0011] Chat mode update step: if the most recent sentence input by the user exists, the most recent chat sentence sequence includes at least the most recent sentence input by the user, and the chat mode is set to the reply mode; if the most recent sentence input by the user does not exist and the time corresponding to the most recent chat sentence exceeds the preset waiting time and the sentence sequence is not empty, the chat mode is set to the active chat continuation mode; if the most recent sentence input by the user does not exist and the most recent chat sentence sequence is empty, the chat mode is set to the active chat start mode;
[0012] The steps of generating chat sentences in different chat modes are as follows: if the chat mode is a reply mode, the user's current mental health status, the user's major and / or occupation, the user's most recently input sentence and the sentence sequence are input into a preset artificial intelligence mental health chat reply model, and the output is used as the chat sentence to the user; if the chat mode is an active chat continuation mode, the user's current mental health status, the user's major and / or occupation and the sentence sequence after deleting the most recent chat sentence in the recent chat sentence sequence are input into a preset artificial intelligence mental health chat continuation model, and the output is used as the chat sentence to the user; if the chat mode is an active chat start mode, the user's current mental health status and the user's major and / or occupation are input into a preset artificial intelligence mental health chat start model, and the output is used as the chat sentence to the user.
[0013] Preferably, the chat sentence generating step further comprises:
[0014] The steps for constructing an artificial intelligence mental health chat model are as follows: initializing a deep learning model or a convolutional neural network model or a residual neural network model or a recurrent neural network model or a long short-term memory neural network model as an artificial intelligence mental health chat reply model, an artificial intelligence mental health chat continuation model, and an artificial intelligence mental health chat start model; obtaining a chat corpus between users with different majors and / or occupations and different mental health status and psychological counselors, in which the psychological counselors' chat sentences have taken into account the user's major and / or occupation; selecting from the chat corpus each chat sentence of the user with a psychological counselor's reply sentence as the user's most recent input sentence, and taking the user's most recent input sentence and its previous (preset number - 1) most recent chat sentences as the most recent chat sentence sequence; taking the user's mental health status, the user's major and / or occupation, the user's most recent input sentence, and the recent chat sentence sequence as the input of the artificial intelligence mental health chat reply model, and taking the psychological counselor's reply sentence of the user's most recent input sentence as the expected output of the artificial intelligence mental health chat reply model, and performing the artificial intelligence mental health chat response model on the artificial intelligence mental health chat reply model. The intelligent mental health chat reply model is trained and tested to obtain a preset artificial intelligence mental health chat reply model; the most recent chat sentences before (preset number - 1) times of each psychological counselor chat sentence of the user are selected from the chat corpus as the most recent chat sentence sequence; the user's mental health status, the user's major and / or occupation, and the recent chat sentence sequence are used as the input of the artificial intelligence mental health chat continuation model, and each psychological counselor chat sentence is used as the expected output of the artificial intelligence mental health chat continuation model, and the artificial intelligence mental health chat continuation model is trained and tested to obtain a preset artificial intelligence mental health chat continuation model; each psychological counselor chat sentence of the user is selected from the chat corpus; the user's mental health status, the user's major and / or occupation are used as the input of the artificial intelligence mental health chat continuation model, and each psychological counselor chat sentence is used as the expected output of the artificial intelligence mental health chat start model, and the artificial intelligence mental health chat start model is trained and tested to obtain a preset artificial intelligence mental health chat start model.
[0015] Preferably, the method further comprises:
[0016] Chat mental health status prediction step: deleting the robot chat sentences in the recent chat sentence sequence to obtain the recent chat user sentence sequence, inputting the user's major and / or occupation and the recent chat user sentence sequence into a preset artificial intelligence mental health status prediction model, and calculating the output as the user's current chat mental health status;
[0017] Other mental health status acquisition step: acquiring the user's current other mental health status, wherein the user's current other mental health status includes the user's current mental health status obtained by evaluating using other means such as sensors, questionnaires, etc.;
[0018] Current mental health status calculation step: Calculate the user's current mental health status based on the user's current chat mental health status and the user's current other mental health statuses.
[0019] Preferably, the method further comprises:
[0020] The steps for constructing an artificial intelligence mental health status prediction model are as follows: obtaining a chat corpus between users with different majors and / or occupations and different mental health statuses and psychological counselors, wherein the chat sentences of the psychological counselors in the chat corpus have taken into account the user's major and / or occupation; selecting each chat sentence of the user from the chat corpus as the user's most recent input sentence, taking the user's most recent input sentence and the previous (preset number - 1) recent chat sentences as the recent chat sentence sequence, deleting the robot chat sentences in the recent chat sentence sequence, and obtaining the recent chat user sentence sequence; taking the user's major and / or occupation and the recent chat user sentence sequence as the input of the artificial intelligence mental health status prediction model, taking the mental health status corresponding to the most recent user chat sentence in the recent chat user sentence sequence as the expected output of the artificial intelligence mental health status prediction model, training and testing the artificial intelligence mental health status prediction model, and obtaining a preset artificial intelligence mental health status prediction model.
[0021] In a second aspect, an embodiment of the present invention provides an artificial intelligence system, the system comprising:
[0022] Professional occupation acquisition module: obtain the user's major and / or occupation;
[0023] Recent chat sentence acquisition module: obtains the sentence sequence of the robot and the user's recent chat, and the sentences in the sentence sequence are sorted in order;
[0024] Chat sentence generation module: generates chat sentences and sends them to the user according to the user's current mental health status, the user's major and / or occupation, the sentence sequence, and the current chat mode.
[0025] Preferably, the chat sentence generation module specifically includes:
[0026] Chat mode update module: if the most recent sentence input by the user exists, the most recent chat sentence sequence includes at least the most recent sentence input by the user, and the chat mode is set to the reply mode; if the most recent sentence input by the user does not exist and the time corresponding to the most recent chat sentence exceeds the preset waiting time and the sentence sequence is not empty, the chat mode is set to the active chat continuation mode; if the most recent sentence input by the user does not exist and the most recent chat sentence sequence is empty, the chat mode is set to the active chat start mode;
[0027] Chat sentence generation module in different chat modes: if the chat mode is a reply mode, the user's current mental health status, the user's major and / or occupation, the user's most recently input sentence and the sentence sequence are input into a preset artificial intelligence mental health chat reply model, and the output obtained is used as the chat sentence to the user; if the chat mode is an active chat continuation mode, the user's current mental health status, the user's major and / or occupation and the sentence sequence after deleting the most recent chat sentence in the recent chat sentence sequence are input into a preset artificial intelligence mental health chat continuation model, and the output obtained is used as the chat sentence to the user; if the chat mode is an active chat start mode, the user's current mental health status and the user's major and / or occupation are input into a preset artificial intelligence mental health chat start model, and the output obtained is used as the chat sentence to the user.
[0028] Preferably, the chat sentence generation module specifically further includes:
[0029] Artificial intelligence mental health chat model construction module: initialize the deep learning model or convolutional neural network model or residual neural network model or recurrent neural network model or long short-term memory neural network model as the artificial intelligence mental health chat reply model, artificial intelligence mental health chat continuation model, and artificial intelligence mental health chat start model; obtain the chat corpus between users with different majors and / or occupations and different mental health status and psychological counselors, and the chat sentences of the psychological counselors in the chat corpus have taken into account the user's major and / or occupation; select each chat sentence of the user with a psychological counselor's reply sentence from the chat corpus as the user's most recent input sentence, and use the user's most recent input sentence and the previous (preset number - 1) recent chat sentences as the recent chat sentence sequence; use the user's mental health status, the user's major and / or occupation, the user's most recent input sentence and the recent chat sentence sequence as the input of the artificial intelligence mental health chat reply model, and use the psychological counselor's reply sentence of the user's most recent input sentence as the expected output of the artificial intelligence mental health chat reply model, and perform artificial intelligence mental health chat model construction. The intelligent mental health chat reply model is trained and tested to obtain a preset artificial intelligence mental health chat reply model; the most recent chat sentences before (preset number - 1) times of each psychological counselor chat sentence of the user are selected from the chat corpus as the most recent chat sentence sequence; the user's mental health status, the user's major and / or occupation, and the recent chat sentence sequence are used as the input of the artificial intelligence mental health chat continuation model, and each psychological counselor chat sentence is used as the expected output of the artificial intelligence mental health chat continuation model, and the artificial intelligence mental health chat continuation model is trained and tested to obtain a preset artificial intelligence mental health chat continuation model; each psychological counselor chat sentence of the user is selected from the chat corpus; the user's mental health status, the user's major and / or occupation are used as the input of the artificial intelligence mental health chat continuation model, and each psychological counselor chat sentence is used as the expected output of the artificial intelligence mental health chat start model, and the artificial intelligence mental health chat start model is trained and tested to obtain a preset artificial intelligence mental health chat start model.
[0030] Preferably, the system further comprises:
[0031] Chat mental health status prediction module: delete the robot chat sentences in the recent chat sentence sequence to obtain the recent chat user sentence sequence, input the user's major and / or occupation and the recent chat user sentence sequence into a preset artificial intelligence mental health status prediction model, and calculate the output as the user's current chat mental health status;
[0032] Other mental health status acquisition module: acquires the user's current other mental health status, wherein the user's current other mental health status includes the user's current mental health status obtained by evaluating using other means such as sensors, questionnaires, etc.;
[0033] Current mental health status calculation module: calculates the user's current mental health status according to the user's current chat mental health status and the user's current other mental health status.
[0034] Preferably, the system further comprises:
[0035] Artificial intelligence mental health status prediction model construction module: obtain a chat corpus between users with different majors and / or occupations and different mental health status and psychological counselors, in which the psychological counselors' chat sentences have taken into account the user's major and / or occupation; select each chat sentence of the user from the chat corpus as the user's most recent input sentence, and use the user's most recent input sentence and the previous (preset number - 1) recent chat sentences as the recent chat sentence sequence, delete the robot chat sentences in the recent chat sentence sequence, and obtain the recent chat user sentence sequence; use the user's major and / or occupation and the recent chat user sentence sequence as the input of the artificial intelligence mental health status prediction model, use the mental health status corresponding to the most recent user chat sentence in the recent chat user sentence sequence as the expected output of the artificial intelligence mental health status prediction model, train and test the artificial intelligence mental health status prediction model, and obtain a preset artificial intelligence mental health status prediction model.
[0036] In a third aspect, an embodiment of the present invention provides an artificial intelligence device, which includes a module of the system described in any one of the embodiments of the second aspect.
[0037] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon, wherein the program, when executed by a processor, implements the steps of the method described in any one of the embodiments of the first aspect.
[0038] In a fifth aspect, an embodiment of the present invention provides a robot, comprising a memory, a processor, and an artificial intelligence robot program stored in the memory and executable on the processor, wherein the processor implements the steps of any one of the method described in the first aspect when executing the program.
[0039] The corpus-based artificial intelligence mental health chat robot for professional occupations provided in this embodiment includes: a professional occupation acquisition step; a recent chat sentence acquisition step; a chat sentence generation step. The above method, system and robot, by considering professional occupations, make users feel that they will not waste time when chatting with artificial intelligence robots, but feel that it is helpful for professional occupations, so that they can kill two birds with one stone, and help professional occupations while improving mental health. The mental health chat robot of the prior art often only considers the knowledge of mental health methods when chatting, but does not consider the user's profession or occupation. On the one hand, this will make mental health services separate from professions and occupations. This application may need to adopt different mental health counseling methods for users of different professions and occupations, so the chat content for users of different professions and occupations is also different. On the other hand, because the chat content of the mental health chat robot of the prior art is irrelevant to professions and occupations, users who are busy with professional and professional learning or work feel that chatting with robots is too time-consuming, while the mental health service robot in this application integrates professional and professional knowledge during the chat, so that users feel that chatting with robots is helpful for their professions and occupations. Not only do they not feel that they will waste time, but they feel that the robot is a good helper for their professions and occupations, so that users trust the robot more, which is more conducive to the development of mental health service chats. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] Figure 1 A flowchart of an artificial intelligence method provided for one embodiment of the present invention;
[0041] Figure 2 An artificial intelligence method provided for one embodiment of the present invention includes a flowchart;
[0042] Figure 3 An artificial intelligence method provided for one embodiment of the present invention includes a flowchart. DETAILED DESCRIPTION
[0043] The technical solutions in the embodiments of the present invention are described in detail below in conjunction with the embodiments of the present invention.
[0044] Basic Embodiments of the Invention
[0045] One embodiment of the present invention provides an artificial intelligence method, such as Figure 1 As shown, the method includes: a professional occupation acquisition step; a recent chat sentence acquisition step; a chat sentence generation step. Technical effect: By considering professional occupations, the method allows users to chat with artificial intelligence robots without feeling that they are wasting time, but rather that it is helpful for their professional occupations. This can kill two birds with one stone, improving mental health while also helping professional occupations.
[0046] In a preferred embodiment, Figure 2 As shown, the chat sentence generation step specifically includes: a chat mode update step; a chat sentence generation step under different chat modes. Technical effect: The method provides multiple chat modes, that is, it can passively reply to the user's chat sentence and actively chat. For example, when the user does not reply, the robot can actively change the sentence to chat again. The robot can also actively initiate a chat with the user when the user does not initiate the chat, thereby making the artificial intelligence robot closer to a human psychological counselor, and can actively control various situations so that the chat can continue smoothly.
[0047] In a preferred embodiment, the chat sentence generation step specifically further includes: an artificial intelligence mental health chat model construction step. Technical effect: The method trains the mental health chat model through the chat sentences between the mental health counselor and the user, and the mental health counselor has taken into account the user's profession or occupation in the chat sentence, so the trained model also has the function of taking into account the user's profession or occupation, so that the model has both the function of mental health assistance when chatting with the user and the function of containing professional or professional knowledge in the chat sentence to enhance the user's professional or professional ability.
[0048] In a preferred embodiment, Figure 3 As shown, the method also includes: a chat mental health state prediction step; a step of obtaining other mental health states; and a step of calculating the current mental health state. Technical effect: The method predicts the mental health state through chat sentences, and integrates it with the mental health state obtained by other means, so that the chat sentences of the artificial intelligence robot can also take into account the mental health state of the user, and can chat more targetedly, which can achieve better mental health counseling effects.
[0049] In a preferred embodiment, the method further includes: an artificial intelligence mental health status prediction model construction step. Technical effect: The method uses the mental health status of the user pre-judged in the mental health counselor chat library to predict the user's mental health status based on the user's chat sentences. The design is very clever and can make full use of the existing mental health counselor chat library to predict the user's mental health status.
[0050] Preferred embodiments of the present invention
[0051] Professional occupation acquisition step: Get the user's major and / or occupation. Occupation includes the industry, position, etc. For example, if the user is a student, get the student's major; if the user is a staff member, get the user's occupation.
[0052] The step of obtaining the most recent chat sentences: obtaining the sentence sequence of the most recent chat between the robot and the user, wherein the sentences in the sentence sequence are arranged in order. The sentence sequence of the most recent chat includes the sentences of the most recent chat of the preset number of times and the time corresponding to the most recent chat sentence. For example, if the preset number of times is 5, it is the sentences of the most recent 4 chats. For example, the records of the most recent 4 chats are: the robot says "hello", the user says "I am not good", the robot says "why are you not good", and the user says "I feel sad". The sentence sequence of the most recent chat between the user does not necessarily refer to the sentences of the chat on the same day or currently, but may also be the chat sentences of a few days ago, even a few months ago, or even a few years ago, and these chat sentences exist in the chat database. For example, if the user and the robot have not chatted in the past 2 years, but there are chat records between the user and the robot 3 years ago in the chat database, the last few chat records between the user and the robot 3 years ago can be extracted as the sentence sequence of the most recent chat between the robot and the user.
[0053] Chat mental health status prediction step: delete the robot chat sentences in the recent chat sentence sequence to obtain the recent chat user sentence sequence, input the user's major and / or occupation (the mental health status of people with different majors and / or occupations has its own particularities, so considering the major and / or occupation can make the mental health status prediction more accurate) and the recent chat user sentence sequence into a preset artificial intelligence mental health status prediction model, and calculate the output as the user's current chat mental health status; if the sentence sequence is empty, it is assumed that the user's current chat mental health status is normal.
[0054] The steps of constructing an artificial intelligence mental health status prediction model are as follows: obtaining a chat corpus between users of different majors and / or occupations and different mental health statuses and psychological counselors, wherein the chat sentences of the psychological counselors in the chat corpus have taken into account the user's major and / or occupation; selecting each chat sentence of the user from the chat corpus as the user's most recent input sentence, taking the user's most recent input sentence and the most recent chat sentences before (preset number - 1) times as the most recent chat sentence sequence, deleting the robot chat sentences in the most recent chat sentence sequence, and obtaining the most recent chat user sentence sequence; taking the user's major and / or occupation and the most recent chat user sentence sequence as the input of the artificial intelligence mental health status prediction model, taking the mental health status corresponding to the most recent user chat sentence in the most recent chat user sentence sequence as the expected output of the artificial intelligence mental health status prediction model, training and testing the artificial intelligence mental health status prediction model, and obtaining a preset artificial intelligence mental health status prediction model;
[0055] Other mental health status acquisition step: acquiring the user's current other mental health status, wherein the user's current other mental health status includes the user's current mental health status obtained by evaluating using other means such as sensors, questionnaires, etc.
[0056] Current mental health status calculation step: Calculate the current mental health status of the user according to the current chat mental health status of the user and the current other mental health status of the user. Specifically, the current mental health status of the user is obtained by weighted averaging the current chat mental health status of the user and the current other mental health status of the user according to their test accuracy. For example, the test accuracy of the current chat mental health status of the user is P, and the test accuracy of the current other mental health status of the user is Q, then the current mental health status of the user = (P*the current chat mental health status of the user+Q*the current other mental health status of the user) / (P+Q).
[0057] The chat sentence generation step: generates chat sentences according to the user's current mental health status, the user's major and / or occupation, the sentence sequence, and the current chat mode and sends them to the user. Specifically, in the chat mode update step, if the user's most recent sentence exists, the sentence sequence of the most recent chat includes at least the user's most recent sentence, and the chat mode is set to the reply mode; if the user's most recent sentence does not exist and the time from the most recent chat sentence exceeds the preset waiting time and the sentence sequence is not empty, the chat mode is set to the active chat continuation mode; if the user's most recent sentence does not exist and the sentence sequence of the most recent chat is empty, the chat mode is set to the active chat start mode. The chat sentence generation step under different chat modes is as follows: if the chat mode is a reply mode, the user's current mental health state, the user's major or / and occupation, the user's most recently input sentence and the sentence sequence (although the sentence sequence also contains the user's most recently input sentence, which will lead to repetition, this just strengthens the importance of the user's most recently input sentence, so that the output is more relevant to the user's most recently input sentence than other sentences. If a sequence is adopted, a deep learning model related to time series such as RNN can be used) is input into a preset artificial intelligence mental health chat reply model, and the output is used as the chat sentence for the user; if the chat mode is an active chat continuation mode, the user's current mental health state, the user's major or / and occupation and the sentence sequence after deleting the most recent chat sentence in the most recent chat sentence sequence (obviously the most recent chat sentence is a robot reply sentence, and since the user has not replied to the sentence, it means that the sentence is inappropriate, so it is deleted) are input into the preset artificial intelligence mental health chat continuation model, and the output is used as the chat sentence for the user; if the chat mode is an active chat start mode, the user's current mental health state and the user's major or / and occupation are input into the preset artificial intelligence mental health chat start model, and the output is used as the chat sentence for the user.
[0058] The steps of constructing an artificial intelligence mental health chat model are as follows: initializing a deep learning model or a convolutional neural network model or a residual neural network model or a recurrent neural network model or a long short-term memory neural network model as an artificial intelligence mental health chat reply model, an artificial intelligence mental health chat continuation model, and an artificial intelligence mental health chat start model; obtaining a chat corpus between users with different majors and / or occupations and different mental health status and psychological counselors, in which the psychological counselors' chat sentences have taken into account the user's major and / or occupation; selecting from the chat corpus each chat sentence of the user with a psychological counselor's reply sentence as the user's most recent input sentence, and taking the user's most recent input sentence and its previous (preset number - 1) most recent chat sentences as the most recent chat sentence sequence; taking the user's mental health status, the user's major and / or occupation, the user's most recent input sentence, and the most recent chat sentence sequence as the input of the artificial intelligence mental health chat reply model, taking the psychological counselor's reply sentence of the user's most recent input sentence as the expected output of the artificial intelligence mental health chat reply model, training and testing the artificial intelligence mental health chat reply model, and obtaining a preset artificial intelligence mental health chat reply model; selecting from the chat corpus each chat sentence of the user with a psychological counselor's reply sentence The most recent chat statements before (preset number - 1) times of the psychological counselor's chat statement (because the psychological counselor's chat statement before the continuation chat will be deleted when used, but there is no problem with the psychological counselor's chat statement in the sample, but it is also deleted in order to be consistent with the continuation chat model when used, but it can still be used as the expected robot continuation chat statement) are used as the recent chat statement sequence; the user's mental health status, the user's profession and / or occupation, and the recent chat statement sequence are used as the input of the artificial intelligence mental health chat continuation model, and each of the psychological counselor's chat statements (the statement itself has no problem, so it can be used as a continuation chat statement) is used as the expected output of the artificial intelligence mental health chat continuation model, and the artificial intelligence mental health chat continuation model is trained and tested to obtain a preset artificial intelligence mental health chat continuation model; each of the user's psychological counselor's chat statements is selected from the chat corpus; the user's mental health status, the user's profession and / or occupation are used as the input of the artificial intelligence mental health chat continuation model, and each of the psychological counselor's chat statements is used as the expected output of the artificial intelligence mental health chat start model, and the artificial intelligence mental health chat start model is trained and tested to obtain a preset artificial intelligence mental health chat start model.
[0059] The above-mentioned embodiments only express several implementation methods of the present invention, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present invention. It should be pointed out that, for a person of ordinary skill in the art, several modifications and improvements can be made without departing from the concept of the present invention, and these all belong to the protection scope of the present invention. Therefore, the protection scope of the present invention patent shall be subject to the attached claims.
Claims
1. An artificial intelligence method, characterized in that: The method comprises: Professional occupation acquisition step: obtain the user's profession and / or occupation; Recent chat sentence acquisition step: acquiring a sentence sequence of the robot and the user's recent chat, wherein the sentences in the sentence sequence are sorted in order; Chat sentence generating step: generating a chat sentence according to the user's current mental health status, the user's major and / or occupation, the sentence sequence, and the current chat mode and sending the chat sentence to the user; The chat sentence generation step specifically includes: Chat mode update step: if the most recent sentence input by the user exists, the most recent chat sentence sequence includes at least the most recent sentence input by the user, and the chat mode is set to the reply mode; if the most recent sentence input by the user does not exist and the time corresponding to the most recent chat sentence exceeds the preset waiting time and the sentence sequence is not empty, the chat mode is set to the active chat continuation mode; if the most recent sentence input by the user does not exist and the most recent chat sentence sequence is empty, the chat mode is set to the active chat start mode; The steps of generating chat sentences in different chat modes are as follows: if the chat mode is a reply mode, the current mental health state of the user, the major and / or occupation of the user, the most recently inputted sentence of the user and the sentence sequence are input into a preset artificial intelligence mental health chat reply model, and the output obtained is used as the chat sentence for the user; if the chat mode is an active chat continuation mode, the current mental health state of the user, the major and / or occupation of the user and the sentence sequence after deleting the most recently inputted sentence in the sentence sequence of the most recent chat are input into a preset artificial intelligence mental health chat continuation model, and the output obtained is used as the chat sentence for the user; if the chat mode is an active chat start mode, the current mental health state of the user and the major and / or occupation of the user are input into a preset artificial intelligence mental health chat start model, and the output obtained is used as the chat sentence for the user; The chat sentence generation step specifically includes: The steps for building an artificial intelligence mental health chat model are as follows: initializing a deep learning model or a convolutional neural network model or a residual neural network model or a recurrent neural network model or a long short-term memory neural network model as an artificial intelligence mental health chat reply model, an artificial intelligence mental health chat continuation model, and an artificial intelligence mental health chat start model; obtaining a chat corpus between users with different majors and / or occupations and different mental health status and psychological counselors, in which the psychological counselors' chat sentences have taken into account the user's major and / or occupation; selecting from the chat corpus each chat sentence of the user with a psychological counselor's reply sentence as the user's most recent input sentence, and taking the user's most recent input sentence and the most recent chat sentences before it by a preset number of times - 1 as the most recent chat sentence sequence; taking the user's mental health status, the user's major and / or occupation, the user's most recent input sentence, and the most recent chat sentence sequence as the input of the artificial intelligence mental health chat reply model, and taking the psychological counselor's reply sentence of the user's most recent input sentence as the expected output of the artificial intelligence mental health chat reply model, and performing the artificial intelligence mental health chat response model on the artificial intelligence mental health chat reply model. An intelligent mental health chat reply model is trained and tested to obtain a preset artificial intelligence mental health chat reply model; the most recent chat sentences that are a preset number of times minus 1 before each psychological counselor chat sentence of the user are selected from the chat corpus as the most recent chat sentence sequence; the user's mental health status, the user's major and / or occupation, and the most recent chat sentence sequence are used as inputs of the artificial intelligence mental health chat continuation model, and each psychological counselor chat sentence is used as the expected output of the artificial intelligence mental health chat continuation model, and the artificial intelligence mental health chat continuation model is trained and tested to obtain a preset artificial intelligence mental health chat continuation model; each psychological counselor chat sentence of the user is selected from the chat corpus; the user's mental health status, the user's major and / or occupation are used as inputs of the artificial intelligence mental health chat continuation model, and each psychological counselor chat sentence is used as the expected output of the artificial intelligence mental health chat initiation model, and the artificial intelligence mental health chat initiation model is trained and tested to obtain a preset artificial intelligence mental health chat initiation model.
2. The artificial intelligence method according to claim 1, characterized in that: The method further comprises: Chat mental health status prediction step: deleting the robot chat sentences in the recent chat sentence sequence to obtain the recent chat user sentence sequence, inputting the user's major and / or occupation and the recent chat user sentence sequence into a preset artificial intelligence mental health status prediction model, and calculating the output as the user's current chat mental health status; Other mental health status acquisition step: acquiring the user's current other mental health status, wherein the user's current other mental health status includes the user's current mental health status obtained by evaluating using sensors or questionnaires; Current mental health status calculation step: Calculate the user's current mental health status based on the user's current chat mental health status and the user's current other mental health statuses.
3. The artificial intelligence method according to claim 2, characterized in that: The method further comprises: The steps for constructing an artificial intelligence mental health status prediction model are as follows: obtaining a chat corpus between users with different majors and / or occupations and different mental health statuses and psychological counselors, wherein the chat sentences of the psychological counselors in the chat corpus have taken into account the user's major and / or occupation; selecting each chat sentence of the user from the chat corpus as the user's most recent input sentence, and taking the user's most recent input sentence and the most recent chat sentences before it by a preset number of times minus 1 as a recent chat sentence sequence, deleting the robot chat sentences in the recent chat sentence sequence, and obtaining a recent chat user sentence sequence; taking the user's major and / or occupation and the recent chat user sentence sequence as inputs to the artificial intelligence mental health status prediction model, taking the mental health status corresponding to the most recent user chat sentence in the recent chat user sentence sequence as the expected output of the artificial intelligence mental health status prediction model, training and testing the artificial intelligence mental health status prediction model, and obtaining a preset artificial intelligence mental health status prediction model.
4. An artificial intelligence system, characterized in that: The system comprises: Professional occupation acquisition module: obtain the user's major and / or occupation; Recent chat sentence acquisition module: obtains the sentence sequence of the robot and the user's recent chat, and the sentences in the sentence sequence are sorted in order; The chat sentence generation module: generates chat sentences according to the user's current mental health status, the user's major and / or occupation, the sentence sequence, and the current chat mode and sends them to the user; the chat sentence generation module specifically also includes: an artificial intelligence mental health chat model construction step: initializing a deep learning model or a convolutional neural network model or a residual neural network model or a recurrent neural network model or a long short-term memory neural network model as an artificial intelligence mental health chat reply model, an artificial intelligence mental health chat continuation model, and an artificial intelligence mental health chat start model; obtaining a chat corpus between users with different majors and / or occupations and different mental health status and psychological counselors, in which the psychological counselors' chat sentences in the chat corpus have taken into account the user's major and / or occupation; selecting each of the user's chat sentences with a psychological counselor's reply sentence from the chat corpus as the user's most recent input sentence, and using the user's most recent input sentence and the previous preset number of -1 recent chat sentences as the recent chat sentence sequence; using the user's mental health status, the user's major and / or occupation, the user's most recent input sentence, and the recent chat sentence sequence as the input of the artificial intelligence mental health chat reply model, and using the user's most recent input sentence sequence as the input of the artificial intelligence mental health chat reply model; The psychological counselor's reply sentence of the sentence is used as the expected output of the artificial intelligence mental health chat reply model, the artificial intelligence mental health chat reply model is trained and tested, and a preset artificial intelligence mental health chat reply model is obtained; the recent chat sentences of the preset number of times-1 before each psychological counselor chat sentence of the user are selected from the chat corpus as the recent chat sentence sequence; the user's mental health status, the user's major and / or occupation, and the recent chat sentence sequence are used as the input of the artificial intelligence mental health chat continuation model, and each psychological counselor chat sentence is used as the expected output of the artificial intelligence mental health chat continuation model, and the artificial intelligence mental health chat continuation model is trained and tested to obtain a preset artificial intelligence mental health chat continuation model; each psychological counselor chat sentence of the user is selected from the chat corpus; the user's mental health status, the user's major and / or occupation are used as the input of the artificial intelligence mental health chat continuation model, and each psychological counselor chat sentence is used as the expected output of the artificial intelligence mental health chat start model, and the artificial intelligence mental health chat start model is trained and tested to obtain a preset artificial intelligence mental health chat start model.
5. The artificial intelligence system according to claim 4, characterized in that: The system further comprises: Chat mental health status prediction module: delete the robot chat sentences in the recent chat sentence sequence to obtain the recent chat user sentence sequence, input the user's major and / or occupation and the recent chat user sentence sequence into a preset artificial intelligence mental health status prediction model, and calculate the output as the user's current chat mental health status; Other mental health status acquisition module: acquires the user's current other mental health status, which includes the user's current mental health status obtained by evaluating through sensors or questionnaires; Current mental health status calculation module: calculates the user's current mental health status according to the user's current chat mental health status and the user's current other mental health status.
6. An artificial intelligence device, characterized in that: The device is used to implement the steps of the method according to any one of claims 1 to 3.
7. A robot comprising a memory, a processor, and an artificial intelligence robot program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the steps of the method according to any one of claims 1 to 3 are implemented.
8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps of the method according to any one of claims 1 to 3 are implemented.
Citation Information
Patent Citations
Method and device for acquiring reply prompt content of chat initiating sentence
CN106649405A
Scene information-based method and device for obtaining chat reply content
CN106656732A
Multi-round dialogue semantic comprehension subsystem based on multi-modal emotion identification system
CN108877801A
A training method and device for robot long text data chatting
CN109635088A
Psychological construction system and device based on artificial intelligence
CN111916181A
