Interaction system and center device
The dialogue system addresses the challenge of maintaining quality and reducing operator burden by using feature amount calculation and search mechanisms to efficiently generate high-quality responses, enhancing daily conversations.
Patent Information
- Application Number
- JP2023043730
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-03-20
- Publication Date
- 2024-10-03
AI Technical Summary
Existing dialogue systems face challenges in maintaining dialogue quality while reducing human operator burden, as labor shortages and limitations in automated responses lead to inconsistent response quality.
A dialogue system that includes a terminal device and a center device, utilizing feature amount calculation and search mechanisms to select and weight characteristic phrases, allowing operators to efficiently generate high-quality responses by selecting from response candidates based on similarity to past interactions.
Reduces human operator burden and ensures high-quality dialogue by accurately selecting response candidates through weighted feature calculation and database search, facilitating effective daily conversations.
Smart Images

Figure 2024133767000001_ABST
Abstract
Description
[Technical field]
[0001] The present invention relates to a dialogue system and a center device that use terminal devices having a voice input / output function. [Background technology]
[0002] Loneliness is a factor that leads to serious health risks such as dementia, but the increase in households living alone (especially elderly people living alone) combined with the recent increased risk of infectious diseases has made loneliness more likely to occur, making the elimination of loneliness an important social issue. Casual conversation and other everyday interactions are thought to be effective in eliminating loneliness.
[0003] In recent years, communication services have been proposed that aim to alleviate feelings of loneliness by installing devices with voice input and output functions (e.g., interactive robots) in the homes of elderly people, especially those living alone, and conducting everyday conversations such as casual voice chat through the devices.
[0004] In this system, when a user speaks to a device at home, what they say is converted into a string of characters using voice recognition technology and transmitted as a message to the management center of the service provider. At the management center, an operator who notices the receipt of the message types a reply into the center device, which is then returned to the user. [Prior art documents] [Patent documents]
[0005] [Patent Document 1] JP 2021-157419 A [Patent Document 2] JP 2007-286376 A [Patent Document 3] JP 2020-77083 A Summary of the Invention [Problem to be solved by the invention]
[0006] There are dialogue services that involve humans and automated dialogue services that use communication robots. However, the labor shortage caused by the decline in the working population is also a social issue, and there are limits to how much human operators can respond. On the other hand, communication robots that do not involve humans may be avoided by users due to the low quality of the dialogue (inappropriate responses, standard responses, etc.).
[0007] Patent Document 1 proposes a UI that supports the operator's responses by displaying response candidates for each category (affirmative, counterargument, topic change) along with an evaluation value. However, when an operator responds to a message from a user, it is a heavy burden for the operator to think of a response message one by one, and there is a risk that the quality of the response messages will vary depending on the operator. Patent Document 1 displays response candidates to the operator, but the operator must check each candidate and decide on a response message, which still places a burden on the operator.
[0008] Patent Document 2 proposes a technology that requests a remote support device to assist in a response when a robot cannot determine a response message. However, in a conversation in which it is not easy for a robot to determine the appropriateness of a response message, such as in an everyday conversation such as a chat, the burden on the operator may become excessive.
[0009] Patent Document 3 proposes a technology for assisting an operator in responding by acquiring questions similar to the one entered by the user and displaying possible reply sentences. When responding to a user message, it is possible to respond efficiently and with guaranteed quality by referring to responses in similar past conversations. However, when the user message is long, important words are likely to be buried, and there is a risk that similar conversations will not be properly extracted.
[0010] In view of the above circumstances, an object of the present invention is to provide a dialogue system capable of conducting dialogue with a certain level of quality guaranteed while reducing the burden on humans. [Means for solving the problem]
[0011] A dialogue system according to one embodiment of the present invention comprises: A terminal device; a center device capable of communicating with the terminal device; A dialogue system comprising: The terminal device an input means for inputting a user message which is a message from a user; a message sending means for sending the input user message; a response output means for receiving and outputting a response message to the user message; having The center device includes: a receiving means for receiving the user message from the terminal device; a storage means for storing dialogue data including the user message and a response message to the user message; a characteristic phrase input means for receiving an input of one or more characteristic phrases based on the user message from an operator; a feature amount calculation means for calculating a feature amount of the user message by weighting the feature words and phrases; a search means for searching the storage means for dialogue data including a past user message having a high similarity to the user message based on the calculated feature amount; has.
[0012] According to this embodiment, the center device calculates the feature quantities of user messages by weighting the selected feature phrases as the operator inputs them, and searches for similar conversations based on the feature quantities. By calculating the feature quantities of user messages after weighting, it is possible to appropriately select user messages with a high degree of similarity. This reduces the human burden on the operator in response to user messages and allows the operator to respond appropriately.
[0013] The dialogue system is a response candidate generating means for generating one or more response candidates which are candidates for the response message to the user message based on the extracted dialogue data; may further comprise:
[0014] The operator only needs to select from response candidates, which reduces the human burden and enables conversations of a certain quality to be conducted.
[0015] The center device includes: An extraction means for extracting one or more characteristic phrases contained in the user message or inferred from the user message; a feature expression display means for displaying the extracted one or more feature expressions in a manner selectable by an operator; and the characteristic phrase input means receives from an operator a selection of one or more characteristic phrases from the one or more characteristic phrases displayed by the characteristic phrase display means; The feature amount calculation means may calculate the feature amount of the user message by weighting the one or more feature expressions selected and accepted by the feature expression input means.
[0016] According to this embodiment, the center device, when displaying received user messages, displays characteristic phrases based on the user messages in a selectable manner. In response to an operator's operation to select a characteristic phrase, the selected phrase is weighted to calculate the characteristic amount of the input message, and similar conversations are searched for within the database based on the characteristic amount. This makes it easier for the operator to select characteristic phrases than by text input, making it easier to select appropriate characteristic phrases. As a result, appropriate characteristic phrases can be weighted.
[0017] The feature amount calculation means may calculate the feature amount of the user message by varying a degree of weighting depending on a selection order of the one or more feature expressions.
[0018] By varying the degree of weighting, features can be calculated more appropriately, making it easier to extract dialogue data that is highly similar to the operator's intention.
[0019] The storage means includes: storing dialogue data including the user messages sequentially received by the receiving means; When one or more weighted characteristic expressions are included in the user message, the characteristic quantities of the user message calculated by the characteristic quantity calculation means after weighting may be further stored in association with the user message.
[0020] Accumulating information on user messages, feature quantities, and weightings improves the accuracy of searching for dialogue data with high similarity.
[0021] The answer candidate generating means may generate one or more answer candidates based on an evaluation of a response message included in the extracted dialogue data.
[0022] This ensures the quality of the response candidates.
[0023] A center device according to an embodiment of the present invention comprises: A receiving means for receiving a user message from a terminal device which exchanges messages with a user in a two-way manner; a storage means for storing dialogue data including the user message and a response message to the user message; a characteristic phrase input means for receiving an input of one or more characteristic phrases based on the user message from an operator; a feature amount calculation means for calculating a feature amount of the user message by weighting the feature words and phrases; a search means for searching the storage means for dialogue data including a past user message having a high similarity to the user message based on the calculated feature amount; Equipped with: Effect of the Invention
[0024] According to the present invention, it is possible to provide a dialogue system capable of conducting dialogue with a certain level of quality guaranteed while reducing the burden on humans.
[0025] The effects described herein are not necessarily limited, and may be any of the effects described in the present invention. [Brief description of the drawings]
[0026] [Figure 1] 1 is a diagram showing a configuration of a dialogue system according to an embodiment of the present invention. [Diagram 2] FIG. 2 is a diagram showing a hardware configuration of a center device of the dialogue system. [Diagram 3] 1 shows the operation flow of the dialogue system. [Figure 4] 13 shows an example of a display mode of a feature phrase by the phrase display means. [Diagram 5] 13 shows an example of a display mode of a feature phrase by the phrase display means. [Figure 6] An example of the operation is shown diagrammatically. [Figure 7] An example of the operation is shown diagrammatically. [Figure 8] An example of the operation is shown diagrammatically. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0027] Hereinafter, an embodiment of the present invention will be described with reference to the drawings.
[0028] 1. Dialogue System Configuration
[0029] FIG. 1 is a diagram showing the configuration of a dialogue system according to this embodiment.
[0030] The dialogue system 10 realizes a communication service in which everyday conversations such as chatting are mainly conducted. The dialogue system 10 is difficult to put into a manual, a wide variety of responses are expected, and it realizes everyday conversations such as continuous chatting with multiple users. Unlike an automatic response system for product introductions, contract procedures, etc., which can be realized without the human intervention of an operator, the dialogue system 10 requires the human intervention of an operator to ensure the quality of the dialogue because emotions such as empathy and intentions are important.
[0031] The dialogue system 10 is composed of a center device 100 as a server device managed by a provider providing services through the dialogue system 10, an operator device 160 connected to the center device 100, and a plurality of terminal devices 200 connected to a network so as to be able to communicate with the center device 100.
[0032] The terminal device 200 is installed in the home of a user (e.g., an elderly person) of this system. The terminal device 200 has an input means 201, a message transmitting means 202, and a response output means 203. The input means 201 inputs a user message in the form of voice data, which is a message from the user, through a microphone M. The message transmitting means 202 transmits the received user message to the center device 100 through the network. The response output means 203 receives a response message to the user message from the center device 100 through the network, and outputs the response message to the user by voice from a speaker S.
[0033] The terminal device 200 needs to have at least the above components, but may also be an interactive robot modeled after a small doll so that the user can imagine a conversation with a person (especially an everyday conversation such as casual chat) and feel a sense of familiarity.
[0034] The center device 100 is managed by a business operator that provides the service by the dialogue system 10, and has at least a receiving means 101, an extracting means 102, a response candidate generating means 103, a characteristic phrase input means 104, a characteristic phrase display means 105, a response candidate display means 106, a response sending means 107, a characteristic amount calculating means 108, and a searching means 109. It also has a control means for controlling these means. These are realized by appropriately known hardware (so-called server computer or personal computer) or software stored in a storage means 140.
[0035] The storage means 140 stores a dictionary 141 and dialogue data 142 .
[0036] The dictionary 141 stores categories (places, foods, hobbies, preferences, etc.) and polarity values (semantic flags such as positive or negative) in association with words. The dictionary 141 may be set for each user, may be user-independent, or may be both. The dictionary 141 further stores characteristic words and phrases. Examples of characteristic words and phrases will be specifically described in step 3 of FIG. 3.
[0037] The dialogue data 142 includes a user message received from the terminal device 200 and a response message to the user message. The dialogue data 142 may be data in which a past dialogue history is accumulated in a database for each user, or may be user-independent data in which dialogue histories of multiple users (multiple terminal devices 200) are integrated and accumulated, or both. The dialogue data 142 sequentially stores the dialogue histories of multiple users. The dialogue data 142 may include conversation example sentences registered in advance. When storing the dialogue history, an evaluation of the response content may also be stored. For example, if the user's reaction to the response content is positive (e.g., a response with a positive polarity), the response content is highly evaluated, and if the user's reaction is negative (e.g., a response with a negative polarity, no response, etc.), the response content is highly evaluated. This ensures the quality of the response content when searching for similar conversations. In order to improve the efficiency of searching for similar sentences, the dialogue history may be stored in a categorized manner when it is stored. When a weighting process is performed on a received user message in searching for a similar sentence, the weighting information is also stored as a dialogue history (this will be specifically described in steps S5 to S7 of FIG. 3).
[0038] The operator device 160 is managed by a business providing services through the dialogue system 10, and displays, to the operator, on a web browser, response candidates that are candidates for response messages to a user message received by the center device 100. The center device 100 and the operator device 160 are in a relationship of a web server and a web client.
[0039] The center device 100 and the operator device 160 may be integrated into one hardware configuration.
[0040] 2. Hardware configuration of the center device
[0041] FIG. 2 is a diagram showing a hardware configuration of the center device 100. As shown in FIG.
[0042] As shown in the figure, the center device 100 includes a central processing unit (CPU) 11, a read only memory (ROM) 12, a random access memory (RAM) 13, an input / output interface 15, and a bus 14 connecting these to each other.
[0043] The CPU 11 appropriately accesses the RAM 13 etc. as necessary, and performs various arithmetic processing while controlling all the blocks of the center device 100. The ROM 12 is a non-volatile memory in which firmware such as the OS, programs, and various evaluation indexes to be executed by the CPU 11 are fixedly stored. The RAM 13 is used as a working area for the CPU 11, and temporarily stores the OS, various applications being executed, and various data being processed.
[0044] The input / output interface 15 is connected to a display unit 16, an operation reception unit 17, a storage unit 18, a communication unit 19, and the like.
[0045] The display unit 16 is a display device using, for example, a Liquid Crystal Display (LCD), an Organic ElectroLuminescence Display (OLED), a Cathode Ray Tube (CRT), or the like.
[0046] The operation reception unit 17 is, for example, a pointing device such as a mouse, a keyboard, a touch panel, or other input device.
[0047] The storage unit 18 is a non-volatile memory such as, for example, a hard disk drive (HDD), a flash memory (SSD; solid state drive), or other solid-state memory. In addition to the above-mentioned OS, the storage unit 18 stores schedule information, various flags, evaluation indexes, and software for implementing each means of the center device 100. The storage unit 18 also stores applications and other programs and databases for exchanging messages with the terminal device 200, including generating a response message.
[0048] The communication unit 19 is, for example, a NIC (Network Interface Card) for Ethernet (registered trademark) or various modules for wireless communication such as wireless LAN, and is responsible for communication processing with the terminal device 200.
[0049] The hardware configurations of the operator device 160 and the terminal device 200 are basically the same as that of the center device 100, but the terminal device 200 has a microphone M and a speaker S on the front surface as described above.
[0050] 3. Operational flow of dialogue system 10
[0051] FIG. 3 shows the operation flow of the dialogue system.
[0052] The input means 201 of the terminal device 200 inputs a user message, which is a message from the user, through the microphone M (step S1, Yes). The user message is voice data. The message transmission means 202 of the terminal device 200 transmits the received user message to the center device 100 via the network. The message transmission means 202 may perform voice recognition on the user message of voice data, convert it into a user message of text data, and transmit it to the center device 100, or may transmit the user message of voice data to the center device 100.
[0053] The receiving means 101 of the center device 100 receives the user message from the terminal device 200 via the communication unit 19 (step S2). The receiving means 101 may receive the user message in the form of voice data and convert it into a user message in the form of text data, or may receive the user message in the form of text data converted from the voice data by the terminal device 200.
[0054] The extraction means 102 of the center device 100 performs morphological analysis on the user message, which is text data, to divide it into a plurality of words and phrases, and extracts one or more characteristic words and phrases contained in the user message as candidates from the plurality of words and phrases (step S3). The characteristic words and phrases include words and phrases contained in the received user message, and words and phrases that are not contained in the received user message but are inferred from the user message.
[0055] Specific examples (1) to (2) of characteristic phrases included in user messages will be described. (1) For example, the extraction means 102 registers a dictionary 141 in which a category is assigned to each phrase, and extracts words in a predetermined category (place, food, hobby, etc.) as characteristic phrases. (2) The extraction means 102 may also extract characteristic phrases that differ for each user. Specifically, phrases (words) related to the hobby and hobby of each user are registered in the dictionary 141 as individual characteristic phrases for each user, and characteristic phrases are extracted based on individual characteristic phrases related to the user with whom the user is in dialogue. In extracting characteristic phrases, only individual characteristic phrases may be extracted, or individual characteristic phrases may be preferentially extracted. Also, for example, words related to the hobby and hobby of the user may be registered in the dictionary 141 in advance as characteristic phrases, or dialogues with the user may be accumulated as dialogue data 142, and the hobby and hobby of each user may be identified from the dialogue and registered as individual characteristic phrases. In addition, the user's interests and preferences may be learned from past user messages by AI or machine learning, and words that match the interests and preferences from the user messages may be registered as individual feature phrases. Note that in this embodiment, a "phrase" includes a single word such as a noun, and a phrase including multiple words.
[0056] Specific examples (3) to (5) of characteristic phrases that are not included in the user message but are inferred from the user message will be described. (3) Some users may omit words related to emotional expressions without speaking them. In this case, the extraction means 102 may register words that tend to be omitted in colloquial speech (e.g., happy, sad, etc.) in the dictionary 141, infer the omitted words from the received user message, and extract the inferred words as characteristic phrases. (4) NG words (foods that each user dislikes, etc.) may be registered in the dictionary 141, and the extraction means 102 may not extract NG words related to the received user message. (5) The extraction means 102 may extract time information of the received user message as characteristic phrases. For example, it is assumed that a received user message of "...the meal was delicious..." includes time information (12:30) as an attribute. In this case, the extraction means 102 may extract the time information (12:30) as a characteristic phrase.
[0057] The characteristic phrase display means 105 of the center device 100 displays a user message on the operator device 160 used by an operator, and also displays one or more characteristic phrases in a selectable manner. The one or more characteristic phrases are at least a part of the one or more characteristic phrases extracted by the extraction means 102. The characteristic phrase display means 105 may display all of the one or more characteristic phrases extracted by the extraction means 102 as one or more characteristic phrases.
[0058] The characteristic phrase display means 105 may display some of the one or more characteristic phrases as one or more characteristic phrases based on the number of times the one or more characteristic phrases appear and / or their positions in the user message. For example, the characteristic phrase display means 105 may display only characteristic phrases that appear more frequently or that appear later in the user message as characteristic phrases. The number of times the one or more characteristic phrases appear may be the number of times they appear in the current user message, or may be the number of times they appear in the dialogue data 142 including past user messages and response messages.
[0059] Furthermore, the characteristic expression display means 105 may preferentially determine an individual characteristic expression related to a dialogue destination user as a characteristic expression among one or more characteristic expressions. For example, only individual characteristic expressions may be displayed as characteristic expressions, or individual characteristic expressions may be preferentially displayed as characteristic expressions.
[0060] When the characteristic phrase display means 105 "displays" one or more characteristic phrases in a selectable manner, it means that the center device 100, which is a web server, displays them with hyperlinks on the web browser of the operator device 160, which is a web client, so that the operator can select them by manual operation (clicking, hovering the mouse over them, tapping, etc.).
[0061] 4 and 5 show examples of display modes of characteristic phrases by the phrase display means.
[0062] As shown in FIG. 4, the characteristic phrase display means 105 may display one or more characteristic phrases 111 in the user message 112 in a manner that makes them distinguishable from phrases other than the one or more characteristic phrases. As shown in FIG. 5, the characteristic phrase display means 105 may display one or more characteristic phrases 111 together outside the user message 112 in a manner that makes them distinguishable from phrases other than the one or more characteristic phrases. The distinguishable manner means, for example, bold, a different color, underline, boxed characters, etc. As shown in FIG. 5, displaying them together outside the user message 112 with a heading 115 of "keyword" is also one type of distinguishable manner. By displaying the characteristic phrase 111 prominently, the operator can easily select the characteristic phrase 111. The characteristic phrase display means 105 further displays a cursor 113 for selecting the characteristic phrase 111.
[0063] The characteristic expression display means 105 may highlight some of the characteristic expressions among one or more characteristic expressions. Highlighting may be, for example, a process of further changing the color of the characteristic expression when it is displayed in bold, making the characteristic expression even bolder when it is displayed in a color different from other expressions, or making the frame thicker or changing the color when the characteristic expression is displayed in a boxed character, but is not limited to these. In this way, by highlighting more important words (contents that the user wants to talk about) among the characteristic expressions, the operator can naturally select characteristic expressions that match the user's thoughts, and dialogue data that matches the user's message can be extracted.
[0064] For example, some of the one or more characteristic phrases may be highlighted based on the number of times the one or more characteristic phrases appear and / or their positions in the user message. Specifically, the characteristic phrase display means 105 may highlight characteristic phrases that appear more frequently or that appear later in the user message among the one or more characteristic phrases, in order to make it easier for the operator to select them compared to other characteristic phrases. The number of times the one or more characteristic phrases appear may be the number of times they appear in the current user message, or may be the number of times they appear in the dialogue data 142 including past user messages and response messages. In this way, by setting characteristic phrases for each user, a dialogue that is tailored to the user can be naturally carried out.
[0065] Furthermore, the characteristic expression display means 105 may highlight individual characteristic expressions related to the conversation destination user among one or more characteristic expressions. For example, only individual characteristic expressions may be highlighted, or at least individual characteristic expressions may be highlighted. In this way, by setting characteristic expressions to be highlighted for each user, a conversation that is close to the user can be naturally carried out.
[0066] The operator refers to the user message and one or more characteristic words and phrases displayed on the operator device 160, and selects one characteristic word or phrase by operating (clicking, hovering the mouse over, tapping, etc.). As a result, the characteristic word or phrase input means 104 accepts the selection of one or more characteristic words and phrases from the operator from among the one or more characteristic words and phrases displayed by the characteristic word or phrase display means 105. Note that the characteristic word or phrase input means 104 only needs to accept the input of one or more characteristic words and phrases based on the user message from the operator. For example, the characteristic word or phrase input means 104 may accept characteristic words and phrases input as text by the operator (step S4).
[0067] The feature amount calculation means 108 of the center device 100 weights the feature words and phrases received by the feature word input means 104, and calculates the feature amount of the user message received by the receiving means 101 (step S5). The "feature amount of the user message" may be, for example, a vector obtained by vectorizing the user message, or an edit distance (Levenshtein distance). The vector of the user message will be explained in detail later.
[0068] The feature amount calculation means 108 of the center device 100 may calculate the feature amount of the user message by varying the degree of weighting according to the selection order of one or more feature expressions (the earlier a feature expression is selected, the greater the degree of weighting). The feature amount calculation means 108 may vary the degree of weighting based on the number of times that one or more feature expressions appear and / or their positions in the user message. For example, the feature amount calculation means 108 may increase the degree of weighting for a feature expression that appears more frequently or a feature expression that is in the latter half of the user message (e.g., an evaluative expression used in the latter half of the user message or an evaluative expression used in the last sentence of the user message) among the one or more feature expressions. The number of times that one or more feature expressions appear may be the number of times that they appear in the current user message, or may be the number of times that they appear in the dialogue data 142 including past user messages and response messages. Furthermore, the characteristic phrase display means 105 may increase the degree of weighting of an individual characteristic phrase (preference, etc.) related to the dialogue destination user among one or more characteristic phrases. That is, the characteristic amount calculation means 108 may further increase the degree of weighting when a positive evaluation phrase is a phrase in a category related to the user's hobbies and preferences. The degree of weighting (numerical value) may be a positive value, 0, or a negative value. For example, when a characteristic phrase is an NG word, the weighting of the characteristic phrase may be 0 or a negative value. By varying the degree of weighting, the characteristic amount can be calculated more appropriately, and dialogue data with a high degree of similarity in line with the operator's intention can be easily extracted.
[0069] The search means 109 of the center device 100 searches the dialogue data 142 in the storage means 140 for dialogue data including a past user message having a high similarity to the user message, based on the feature amount of the user message calculated by the feature amount calculation means 108. Specifically, the search means 109 extracts the dialogue data 142 including a user message having a high similarity to the received user message, based on the feature amount of the user message received by the receiving means 101 and the feature amount of the user message included in the dialogue data 142 accumulated in the storage means 140 (step S6).
[0070] The storage means 140 of the center device 100 accumulates dialogue data 142 including the user messages sequentially received by the receiving means 101. The storage means 140 further accumulates the features of the user messages (e.g., vectors, edit distances (Levenshtein distances)) calculated by the feature calculation means 108 in association with the user messages received by the receiving means 101. When one or more weighted characteristic phrases are included in the user message, the storage means 140 accumulates the weighted and calculated feature of the user message. The storage means 140 may further accumulate weighting information in association with the user message (step S7). The "weighting information" may indicate the characteristic phrases to be weighted and the degree of weighting (numerical value). Accumulating the user messages, features, and weighting information improves the accuracy of searching for dialogue data 142 with high similarity.
[0071] The reply candidate generating means 103 of the center device 100 generates one or more reply candidates that are candidates for response messages to the user message, based on the dialogue data extracted by the searching means 109 (step S8). The reply candidates may be one or more response messages to one or more user messages included in one or more dialogue data 142 that have a high similarity to the received user message. The reply candidate generating means 103 may generate one or more reply candidates based on evaluation of the response messages included in the extracted dialogue data 142. This makes it possible to ensure the quality of the reply candidates.
[0072] The answer candidate display means 106 of the center device 100 displays one or more answer candidates generated by the answer candidate generating means 103 (step S8) on the operator device 160 in a selectable and editable manner (step S9). When there are multiple answer candidates generated based on the similarity of the user message, the answer candidate display means 106 may display the multiple answer candidates in the order of the similarity of the user message. This allows the operator to select a answer candidate according to his / her intention. The answer candidate display means 106 may determine the display order of one or more answer candidates based on an evaluation of the answer message included in the extracted dialogue data 142. The evaluation of the response message may be performed based on polarity (positive, negative), appropriateness as a response message (e.g., including a user's hobbies and preferences, a word or phrase having a positive polarity value, an emotional word or phrase, a word or phrase of a specific category, etc.), a sensitive index value of the answer candidate, the presence or absence of appearance in the dialogue data 142 including the user message and the response message, and / or the number of times the answer candidate or phrases appear in the dialogue data 142 for a predetermined period of time, etc.
[0073] The response sending means 107 of the center device 100 determines one candidate response selected via the operator device 160 from one or more candidate responses displayed on the operator device 160 (step S10). The response sending means 107 sends the selected candidate response to the terminal device 200 as a response message (step S11). When the selected candidate response is edited, the response sending means 107 sends the edited candidate response to the terminal device 200 as a response message. The response sending means 107 may convert the response message of text data into a response message of voice data by a voice synthesis technology and send it to the terminal device 200, or may send the response message of text data to the terminal device 200.
[0074] The response output means 203 of the terminal device 200 receives the response message from the center device 100, and outputs the response message from the speaker S at a predetermined timing (for example, immediately after receiving the response message, when a human presence sensor detects a person around the terminal device 200). The response output means 203 may receive and output a response message of voice data from the center device 100, or may receive a response message of text data from the center device 100, convert it into a response message of voice data by voice synthesis technology, and output the response message.
[0075] 6 and 7 show schematic examples of the operations from step S5 to step S11.
[0076] 6, the feature calculation means 108 of the center device 100 calculates the feature (Vector0) of the user message “I’ve been forgetful lately…” received by the receiving means 101 (step S5). The search means 109 of the center device 100 calculates the similarity (similarity 1, 2, 3) between the user message “I’ve been forgetful lately…” and the received user message based on the feature (Vector0) of the user message “I’ve been forgetful lately…” and the feature (Vector1, 2, 3) of the user message included in the dialogue data 142 stored in the storage means 140.
[0077] As shown in FIG. 7, the search means 109 of the center device 100 extracts dialogue data 142 (No. 3) including the user message "I forget things these days..." that has a high similarity (similarity 3) to the user message "I forget things these days..." from the storage means 140 (step S6). The storage means 140 accumulates the user message and feature amount (Vector0) received by the receiving means 101 in the storage means 140 (step S7). The reply candidate generating means 103 generates a reply candidate "When I was young..." which is a candidate for a reply message to the user message based on the dialogue data extracted by the search means 109 (step S8). The reply candidate display means 106 displays the reply candidate "When I was young..." on the operator device 160 in a selectable and editable manner (step S9). The reply sending means 107 sends the reply candidate selected via the operator device 160 (step S10) to the terminal device 200 as a reply message (step S11).
[0078] 4. Features and similarity of user messages
[0079] Here, an example of the vector (step S5) and the similarity (step S6) as the feature amount of the user message dependent on the feature phrase (step S4) will be described.
[0080] FIG. 8 shows a schematic example of the operations from step S2 to step S6.
[0081] The receiving means 101 of the center device 100 receives the user message "This is what it means to grow old. It's sad" (step S2). The extraction means 102 extracts the characteristic phrase "sad" contained in the user message as a candidate (step S3). The operator refers to the user message and characteristic phrases displayed on the operator device 160, and operates to select one characteristic phrase "sad". As a result, the characteristic phrase input means 104 accepts the selection of the characteristic phrase "sad" from the operator (step S4).
[0082] The feature amount calculation means 108 of the center device 100 vectorizes the user message without weighting and calculates a vector V1. Furthermore, the feature amount calculation means 108 vectorizes only the feature phrase "sad" accepted by the feature phrase input means 104 and calculates a vector V2. The feature amount calculation means 108 calculates a vector V3 of the user message in which the feature phrase "sad" is weighted by calculating the sum of the unweighted vector V1 and the vector V2 of only the feature phrase. As a result, the degree of weighting of the feature phrase "sad" becomes higher than that of other phrases. This vector V3 is the feature amount of the user message (step S5). As a modified example, the feature amount calculation means 108 may use the vector V2 calculated by vectorizing only the feature phrase accepted by the feature phrase input means 104 as the vector (feature amount) of the user message. Simply vectorizing by morphemes or the like may result in a sparse vector with many zeros. For this reason, it may be possible to use a vector that has been compressed using TF-IDF or an intermediate representation of a deep learning model (Sentence BERT).
[0083] The search means 109 of the center device 100 extracts from the storage means 140 the dialogue data 142 including the user message having a high similarity to the received user message based on the feature amount (vector) of the user message and the feature amount of the user message stored in the storage means 140. For example, the inner product of the vectors A and B of the two user messages can be used as the similarity. The more similar the two vectors A and B are, the longer the orthogonal projection vector becomes. If the two vectors A and B are oriented in opposite directions, the orthogonal projection vector becomes a negative value. When the vectors A and B are converted into unit vectors and the inner product is calculated, it falls within the range of -1 to 1. It may be converted to 0 to 1 as necessary. The search means 109 extracts from the storage means 140 the dialogue data 142 including the user message having a vector with the maximum inner product (i.e., high Cos similarity) in relation to the vector V3 of the user message (step S6). In addition to the Cos similarity, the Jaccard coefficient may be used. Since it takes a lot of time to calculate the similarity with all past messages every time, similar cases may be classified in advance.
[0084] Response candidates edited (corrected) by the operator may be stored as dialogue data 142. This will accumulate training data for learning similarity. "The corrections made by the operator" is valuable information. As correction examples, words that are likely to be corrected (easily clicked by the operator) may be marked up. The similarity calculation part may be corrected. If a deep learning-based method is used, it is possible to brush up the method by adding data.
[0085] 5. Conclusion
[0086] The dialogue system 10 realizes a communication service in which everyday conversations such as chatting are mainly conducted. The dialogue system 10 is difficult to put into a manual, a wide variety of responses are expected, and it realizes everyday conversations such as continuous chatting with multiple users. Unlike an automatic response system for product introductions and contract procedures that can be realized without the human intervention of an operator, the dialogue system 10 requires human operators to ensure the quality of the dialogue because emotions such as empathy and intentions are important. On the other hand, labor shortages are also a social issue, and there are limits to how much operators can respond manually.
[0087] Therefore, according to this embodiment, when displaying received user messages, the center device 100 displays characteristic phrases based on the user messages in a selectable manner. In response to an operator's operation to select a characteristic phrase, the selected phrase is weighted to calculate the characteristic amount of the input message, and similar conversations are searched for in the database based on the characteristic amount. By calculating the characteristic amount of the user message after weighting, user messages with a high degree of similarity can be appropriately selected. This reduces the human burden on the operator in response to user messages and enables the operator to respond appropriately.
[0088] When weighting, the magnitude of the weighting is varied according to the selection order of the selectable words, etc., and the weighting information is stored in the database. Furthermore, when displaying response candidates, response candidates may be displayed based on the searched similar conversations, or response candidates may be displayed according to the evaluation of the response contents in the dialogue data. This allows the operator to refer to past similar conversations and efficiently create response sentences with guaranteed quality.
[0089] Although the embodiments and modified examples of the present technology have been described above, the present technology is not limited to the above-described embodiments, and it goes without saying that various modifications can be made within the scope of the gist of the present technology.
[0090] The dialogue system according to one embodiment of the present invention can contribute to solving social issues such as loneliness and isolation among the elderly, extending healthy life expectancy, improving the quality of life (QoL) of the elderly, and a declining labor force, etc. Furthermore, the dialogue system according to one embodiment of the present invention can contribute to achieving Goal 3 of the Sustainable Development Goals (SDGs) adopted by the United Nations, "Ensure good health and well-being for all." [Explanation of symbols]
[0091] 10 Dialogue Systems 100 Center device 101 Receiving means 102 Extraction means 103 Response candidate generation means 104 Means for inputting characteristic phrases 105 Means for displaying characteristic phrases 106 Response candidate display means 107 Response transmission means 108 Feature Calculation Method 109 Search methods 111 Characteristic phrases 112 User Messages 113 Cursor 140 Memory means 141 Dictionaries 142 Dialogue Data 160 Operator equipment 200 Terminal Equipment 201 Input Method 202 Message transmission method 203 Response output means M Microphone S Speaker
Claims
1. A terminal device; a center device capable of communicating with the terminal device; A dialogue system comprising: The terminal device an input means for inputting a user message which is a message from a user; a message sending means for sending the input user message; a response output means for receiving and outputting a response message to the user message; having The center device includes: a receiving means for receiving the user message from the terminal device; a storage means for storing dialogue data including the user message and a response message to the user message; a characteristic phrase input means for receiving an input of one or more characteristic phrases based on the user message from an operator; a feature amount calculation means for calculating a feature amount of the user message by weighting the feature words and phrases; a search means for searching the storage means for dialogue data including a past user message having a high similarity to the user message based on the calculated feature amount; have Dialogue system.
2. 2. A dialogue system according to claim 1, a response candidate generating means for generating one or more response candidates which are candidates for the response message to the user message based on the extracted dialogue data; The dialogue system further comprises:
3. 3. A dialogue system according to claim 1 or 2, The center device includes: An extraction means for extracting one or more characteristic phrases contained in the user message or inferred from the user message; a characteristic expression display means for displaying the extracted one or more characteristic expressions in a manner selectable by an operator; and the characteristic phrase input means receives from an operator a selection of one or more characteristic phrases from the one or more characteristic phrases displayed by the characteristic phrase display means; The feature amount calculation means calculates the feature amount of the user message by weighting the one or more feature expressions selected by the feature expression input means. Dialogue system.
4. 3. A dialogue system according to claim 1 or 2, The feature amount calculation means calculates the feature amount of the user message by varying a degree of weighting depending on a selection order of the one or more feature expressions. Dialogue system.
5. 3. A dialogue system according to claim 1 or 2, The storage means includes: storing dialogue data including the user messages sequentially received by the receiving means; When the one or more weighted characteristic expressions are included in the user message, the characteristic quantities of the user message calculated by the characteristic quantity calculation means after weighting are further stored in association with the user message. Dialogue system.
6. 3. A dialogue system according to claim 2, The answer candidate generating means generates one or more answer candidates based on an evaluation of a response message included in the extracted dialogue data. Dialogue system.
7. A receiving means for receiving a user message from a terminal device which exchanges messages with a user in a two-way manner; a storage means for storing dialogue data including the user message and a response message to the user message; a characteristic phrase input means for receiving an input of one or more characteristic phrases based on the user message from an operator; a feature amount calculation means for calculating a feature amount of the user message by weighting the feature words and phrases; a search means for searching the storage means for dialogue data including a past user message having a high similarity to the user message based on the calculated feature amount; A center device comprising:
Citation Information
Patent Citations
Question-answering device and method
JP2005063158A
Document retrieval device
JP2006344010A
Device and method for answer sentence generation, and program and storage medium thereof
JP2007102104A
Interaction device, interaction control method and program
JP2018165746A
Question word weight calculation apparatus, question answer retrieval apparatus, question word weight calculation method, question answer retrieval method, program and record medium
JP2019008367A
