KR102103273B1 - Method and apprartus for chatbots in customer service analyzing hierarchical user expression and generating responses - Google Patents

Method and apprartus for chatbots in customer service analyzing hierarchical user expression and generating responses Download PDF

Info

Publication number
KR102103273B1
KR102103273B1 KR1020180023382A KR20180023382A KR102103273B1 KR 102103273 B1 KR102103273 B1 KR 102103273B1 KR 1020180023382 A KR1020180023382 A KR 1020180023382A KR 20180023382 A KR20180023382 A KR 20180023382A KR 102103273 B1 KR102103273 B1 KR 102103273B1
Authority
KR
South Korea
Prior art keywords
query
conversation
answer
intention
situation
Prior art date
Application number
KR1020180023382A
Other languages
Korean (ko)
Other versions
KR20190109614A (en
Inventor
김현민
김현태
권우영
Original Assignee
주식회사 와이즈넛
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 주식회사 와이즈넛 filed Critical 주식회사 와이즈넛
Priority to KR1020180023382A priority Critical patent/KR102103273B1/en
Priority to PCT/KR2018/014579 priority patent/WO2019168253A1/en
Publication of KR20190109614A publication Critical patent/KR20190109614A/en
Application granted granted Critical
Publication of KR102103273B1 publication Critical patent/KR102103273B1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/50Business processes related to the communications industry
    • G06Q50/30
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/40Business processes related to the transportation industry
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L15/00Speech recognition
    • G10L15/22Procedures used during a speech recognition process, e.g. man-machine dialogue
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16HHEALTHCARE INFORMATICS, i.e. INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR THE HANDLING OR PROCESSING OF MEDICAL OR HEALTHCARE DATA
    • G16H80/00ICT specially adapted for facilitating communication between medical practitioners or patients, e.g. for collaborative diagnosis, therapy or health monitoring

Landscapes

  • Engineering & Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Physics & Mathematics (AREA)
  • Primary Health Care (AREA)
  • Business, Economics & Management (AREA)
  • General Health & Medical Sciences (AREA)
  • Multimedia (AREA)
  • Tourism & Hospitality (AREA)
  • Computational Linguistics (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Human Computer Interaction (AREA)
  • Biomedical Technology (AREA)
  • Acoustics & Sound (AREA)
  • Pathology (AREA)
  • Epidemiology (AREA)
  • Public Health (AREA)
  • Marketing (AREA)
  • Economics (AREA)
  • Human Resources & Organizations (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Operations Research (AREA)
  • Machine Translation (AREA)

Abstract

본 발명은 사용자 디바이스가 통신 시스템을 통해 질의를 발화하면, 대화 시스템이 구축되어 있는 챗봇 디바이스가 시스템 응답을 하는 방법에 관한 것입니다.
본 발명의 프로세스는, (a) 입력된 텍스트로부터 대화의 목적에 맞는 개체를 추출하고, (b) 추출된 개체를 이용해 기계학습에 필요한 특징 벡터를 생성하며, (c) 생성된 특징 벡터를 이용해 계층적으로 구성된 질의의도, 대화주제 및 질의상황을 추출하여 질의이해를 수행합니다. 또한 (d) 질의의도, 대화주제 및 질의상황의 계층요소에 맞는 답변을 찾아내어 답변을 생성합니다.
이렇게 구성함으로써 계층적으로 사용자 표현을 이해할 수 있으며, 정확한 답변을 생성할 수 있습니다.
The present invention relates to a method in which a chatbot device in which a conversation system is built in responds to a system when a user device utters a query through a communication system.
In the process of the present invention, (a) an object suitable for the purpose of conversation is extracted from the input text, (b) a feature vector necessary for machine learning is generated using the extracted object, and (c) the generated feature vector is used. Query understanding is performed by extracting hierarchically constructed query intention, conversation topics, and query status. In addition, (d) it creates answers by finding answers that match the hierarchical elements of query intention, conversation topic, and query situation.
With this configuration, you can understand user expressions hierarchically and generate accurate answers.

Description

계층적으로 사용자 표현을 이해하고 답변을 생성하는 대화형 상담 챗봇 장치 및 방법{METHOD AND APPRARTUS FOR CHATBOTS IN CUSTOMER SERVICE ANALYZING HIERARCHICAL USER EXPRESSION AND GENERATING RESPONSES}{METHOD AND APPRARTUS FOR CHATBOTS IN CUSTOMER SERVICE ANALYZING HIERARCHICAL USER EXPRESSION AND GENERATING RESPONSES}

본 발명은 기계학습 기반의 언어 분석 및 처리 기술에 관한 것이며, 특히 대화형 고객상담을 수행하는 챗봇 기술에 관한 것이다.The present invention relates to a machine learning-based language analysis and processing technology, and in particular, to a chatbot technology that performs interactive customer consultation.

기계에 의해 사람의 음성을 인식하여 반응하는 기술은 실생활의 여러 분야에서 인공지능 시스템으로 응용되고 있다. 이러한 시스템은 텍스트 마이닝 기술을 바탕으로 사용자의 입력 문장을 분석하여 의미를 파악하고, 그 의도에 맞게 응답을 생성, 출력하게 된다. 이러한 정보처리 기술 및 기계학습 기술의 발달로 상담사를 대신하여 고객의 질의에 대한 답변을 자동화할 수 있는 대화 시스템 (Dialog System) 또는 챗봇 (Chatbot)의 활용이 이곳저곳 시도되고 있다.The technology of recognizing and responding to human voice by a machine has been applied to artificial intelligence systems in various fields in real life. These systems analyze the user's input sentence based on text mining technology to grasp the meaning and generate and output a response according to the intention. With the development of such information processing technology and machine learning technology, the use of a dialogue system or chatbot that can automate the answer to customer inquiries on behalf of the counselor is being tried here and there.

현재의 챗봇 시스템은 특정 서비스를 사용자에게 제공하기 위한 대화를 만들어 가는 목적지향 대화 기술과, 목적성이 없는 일상 대화를 제공하는 부분에 주로 활용되는 열린 도메인(Open Domain) 대화 기술로 크게 구분될 수 있다. 목적지향 대화 기술은 미리 정해진 답변이 주어져 있고, 사용자의 의도와 질의내용을 분석해서 가장 적절한 답변을 제공하는 것이다. 제한된 답변 중에 하나를 고르는 문제이기 때문에 비교적 정확한 답변이 가능하다. 그러나 답변을 미리 준비하고 정제하는 과정에 많은 노력이 소요된다. 열린 도메인 대화 기술은 사용자의 표현에 대한 답변을 기계학습 또는 규칙을 활용하여 스스로 만들어 낸다. 이 방식은 별도의 지식구축이 필요 없으며 대화 예제의 확보만으로 대화 시스템의 구현이 가능하다는 장점이 있다. 그러나 답변의 정확도가 떨어지며 의도치 않은 대화가 많이 발생하는 단점이 있다.The current chatbot system can be largely divided into a destination-oriented conversation technology that creates a conversation for providing a specific service to a user, and an open domain conversation technology that is mainly used for providing a purposeless everyday conversation. . The destination-oriented conversation technology is to provide a most appropriate answer by analyzing a user's intention and query content, given a predetermined answer. Because it is a matter of choosing one of the limited answers, a relatively accurate answer is possible. However, it takes a lot of effort to prepare and refine the answers in advance. Open domain conversation technology creates answers to users' expressions by using machine learning or rules. This method has the advantage that it does not need to build a separate knowledge, and it is possible to implement a dialogue system only by securing a dialogue example. However, there is a disadvantage that the accuracy of the answer is poor and many unintended conversations occur.

상담사를 대신하는 고객상담용 챗봇 시스템은 활용할 도메인이 정해져 있다는 특징이 있으며, 답변의 정확성이 중요하기 때문에 주로 목적지향 대화 기술이 활용되고 있다. 이러한 챗봇 시스템은 사용자의 텍스트 입력에 적합한 시스템 응답을 생성하는 기술이 필수적으로 요구된다. 종래에는 질문-답변으로 구성된 미리 구축된 데이터 집합을 활용하여 질문과 답변간의 매핑관계를 규칙으로 표현하거나, 기계학습으로 배워서 질의의도를 추출하는 모델을 만들었다. 사용자의 질문이 들어왔을 때, 미리 만들어진 모델을 활용하여 사용자의 질문을 가장 잘 표현하는 의도가 무엇인지를 분류한다. 그런 다음에 분류된 의도에 맞는 답변을 제공하는 역할을 수행하는 것이다. The chatbot system for customer consultation on behalf of the counselor has a feature that the domain to be used is determined, and since the accuracy of the answer is important, the conversation technology toward the destination is mainly used. The chatbot system is required to have a technique for generating a system response suitable for a user's text input. In the past, a model was developed to extract the intention of a query by expressing the mapping relationship between questions and answers as a rule or learning by machine learning by using a pre-built data set composed of question-answers. When a user's question comes in, the pre-made model is used to classify what is the intention to best express the user's question. Then, it serves to provide answers that are categorized and intended.

이와 같은 종래의 의도분류 모델은 미리 정의된 질문-답변 데이터 셋에 포함되어 있거나, 유사한 질문에 대한 답변을 생성하기 때문에, 상담사를 대신하는 자동화된 답변 생성이 가능하다는 특징이 있으나, 복잡하고 많은 질문을 처리하는 경우에는 확실히 문제를 보였다.Such a conventional intention classification model is included in a predefined question-answer data set or generates answers to similar questions, so it is possible to generate automated answers on behalf of the counselor, but it is complicated and has many questions. Definitely showed a problem when handling it.

분류하고자 하는 의도가 많아질 경우가 문제였다. 종래기술은 답변의 정확성에서 문제점을 낳았다. 예를 들어 분류해야 할 의도가 10개인 경우에는 질문에 맞는 답변의 후보가 10개이기 때문에 비교적 정확한 의도분류가 가능해질 수 있겠다. 그러나 분류해야 할 의도가 1000개로 증가하면 대상 후보가 증가하기 때문에 보다 많은 후보들 중에서 정확한 의도를 찾아야 하고, 그로 말미암아 정확도가 크게 떨어져버리는 것이다. The problem was when there were many intentions to classify. The prior art created problems in the accuracy of the answers. For example, if there are 10 intentions to be classified, relatively accurate classification of intentions may be possible because there are 10 candidates for answers to the questions. However, if the number of intentions to be classified increases to 1000, the target candidates increase, so it is necessary to find the correct intention among more candidates, and the accuracy is greatly reduced.

또한, 종래의 방법은 질문의 내용이 복잡하다거나, 질문이 여러 가지 정보를 담고 있는 경우, 질문과 답변간의 적합한 매핑을 찾기 어려워서 답변의 정확도가 떨어졌다. In addition, in the conventional method, when the content of the question is complicated or the question contains various information, it is difficult to find a suitable mapping between the question and the answer, so the accuracy of the answer is deteriorated.

본 발명의 발명자들은 이러한 종래 기술을 개선하기 위해 오랫동안 연구하고 노력하면서 국가연구개발사업에 참여한 끝에 본 발명을 완성하기에 이르렀다. The inventors of the present invention came to complete the present invention after participating in a national R & D project while researching and trying for a long time to improve the prior art.

상기와 같은 문제점을 해결하기 위한 본 발명의 목적은, 대화 시스템에서 사용자의 복잡하고 다양한 표현을 보다 정확히 이해하고, 많은 종류의 답변 중에서 사용자가 원하는 답변을 높은 정확도로 찾기 위한 방법과, 그런 방법이 구현된 대화 시스템을 제공함에 있다.The purpose of the present invention for solving the above problems is to understand the user's complex and various expressions more accurately in a conversation system, and to find a user's desired answer with high accuracy among many types of answers, and such a method. It is to provide an implemented dialogue system.

한편, 본 발명의 명시되지 않은 또 다른 목적들은 하기의 상세한 설명 및 그 효과로부터 용이하게 추론 할 수 있는 범위 내에서 추가적으로 고려될 것이다.On the other hand, other objects not specified in the present invention will be additionally considered within a scope that can be easily inferred from the following detailed description and its effects.

본 발명의 제1국면은 사용자 디바이스가 통신 시스템을 통해 질의를 발화하면, 대화 시스템이 구축되어 있는 챗봇 디바이스가 시스템 응답을 함에 있어서, 상기 챗봇 디바이스가 수행하는 계층적으로 사용자 표현을 이해하고 답변을 생성하는 대화형 상담 챗봇의 구현 방법에 관한 것이다.In the first aspect of the present invention, when a user device utters a query through a communication system, the chatbot device in which the conversation system is built in responds to the system, so that the hierarchical user expression performed by the chatbot device is understood and answered. It's about how to implement the interactive consultation chatbot you create.

본 발명의 방법은:The method of the present invention:

(a) 입력된 텍스트로부터 대화의 목적에 맞는 개체를 추출하고, (a) extract the object suitable for the purpose of the conversation from the entered text,

(b) 추출된 개체를 이용해 기계학습에 필요한 특징 벡터를 생성하며,(b) Using the extracted object, a feature vector necessary for machine learning is generated,

(c) 생성된 특징 벡터를 이용해 계층적으로 구성된 질의의도, 대화주제 및 질의상황을 추출하여 질의이해를 수행하고, (c) Using the generated feature vector, hierarchically constructed query intention, dialogue subject, and query status are extracted to perform query understanding,

(d) 상기 질의의도, 대화주제 및 질의상황의 계층요소에 맞는 답변을 찾아내어 답변을 생성하는 단계를 수행한 후에,(d) After performing a step of finding an answer that matches the hierarchical elements of the query intention, conversation topic, and query situation, and generating an answer,

(e) 상기 생성된 답변을 음성을 결합하여 상기 사용자 디바이스에 응답을 전송하는 단계를 포함한다.(e) combining the generated answer with a voice and transmitting a response to the user device.

또한 본 발명의 바람직한 어느 실시예에 있어서, 상기 챗봇 디바이스는 병원 시스템에 구축될 수 있다.In addition, in any preferred embodiment of the present invention, the chatbot device may be built in a hospital system.

또한 본 발명의 바람직한 어느 실시예에 있어서, 상기 (a) 단계는 개체 인식 단계이며, 이 단계에서 추출되는 개체는 (개체종류, 대표값)으로 표현되는 N개(N은 1 이상의 정수)의 배열로 추출되도록 할 수 있다.In addition, in a preferred embodiment of the present invention, step (a) is an object recognition step, and the objects extracted in this step are N (N is an integer of 1 or more) expressed as (object type, representative value). Can be extracted with

또한 본 발명은 사용자 디바이스가 통신 시스템을 통해 질의를 발화하면, 대화 시스템이 구축되어 있는 챗봇 디바이스가 시스템 응답을 수행하는 대화형 상담 챗봇 디바이스에 관한다. 이 디바이스는:In addition, the present invention relates to an interactive consultation chatbot device in which a chatbot device in which a conversation system is built performs a system response when the user device utters a query through a communication system. This device:

입력문장에 대한 전처리를 수행하는 텍스트 전처리기와 Text preprocessor that performs pre-processing for input text

상기 텍스트 전처리기에 의해 전처리된 텍스트를 분석 가능한 개체를 추출하는 개체 추출부와,An object extraction unit for extracting an object capable of analyzing text preprocessed by the text preprocessor,

분석된 개체들과 사전 정의된 단어를 이용해 수치화된 벡터를 생성하는 특징벡터 생성부와A feature vector generator that generates a numerical vector using the analyzed objects and predefined words

상기 생성된 특징벡터에 대해 질의의도, 대화주제, 질의상황이라는 세 가지 분류 항목으로 이해하도록 구성되는 질의의도 이해부, 대화주제 이해부 및 질의상황 이해부를 포함하고, 질의의도 이해부, 대화주제 이해부 및 질의상황 이해부는 각각 복수의 계층 분류기를 포함하는 것을 특징으로 한다.A query intention understanding unit, a conversation topic understanding unit, and a query situation understanding unit configured to understand the generated feature vector into three categories: query intention, conversation topic, and query situation. The conversation subject understanding unit and the query situation understanding unit each include a plurality of hierarchical classifiers.

위와 같은 과제해결수단을 통해서, 본 발명은 사용자의 질문으로부터 사용자의 의도뿐 아니라 사용자가 원하는 답변의 주제 및 상황을 고려해서 정확한 응답 데이터를 추출할 수 있다는 장점이 있다.Through the above-described problem solving means, the present invention has an advantage in that accurate response data can be extracted from the user's question in consideration of the user's intention as well as the subject and situation of the desired answer.

또한, 본 발명은 계층적 분류방법을 활용하여 사용자의 복잡하고 다양한 질문들을 계층적으로 분류하여 답변의 정확도를 높일 수 있다. In addition, the present invention can improve the accuracy of answers by hierarchically classifying various and complicated questions of users by using a hierarchical classification method.

사용자의 상담 질문에 대해 질의의도, 대화주제 및 대화 상황에 맞는 답변을 제공하는 본 발명의 챗봇 상담 시스템에 활용한다면, 다양한 분야에서 효과적인 기계 상담을 구현할 수 있을 것이다. 예컨대 만성질환자를 위한 라이프스타일 기반의 대화형 의료문진도 효과적으로 구현할 수 있다. If it is utilized in the chatbot counseling system of the present invention that provides an answer to a user's counseling question, inquiry, conversation subject, and conversation situation, effective machine counseling can be implemented in various fields. For example, a lifestyle-based interactive medical questionnaire for chronic patients can be effectively implemented.

한편, 여기에서 명시적으로 언급되지 않은 효과라 하더라도, 본 발명의 기술적 특징에 의해 기대되는 이하의 명세서에서 기재된 효과 및 그 잠정적인 효과는 본 발명의 명세서에 기재된 것과 같이 취급됨을 첨언한다.On the other hand, even if the effects are not explicitly mentioned herein, it is noted that the effects described in the following specification expected by the technical features of the present invention and the potential effects thereof are handled as described in the specification of the present invention.

도 1은 본 발명의 전체 시스템 구성을 개념적으론 나타내는 도면이다.
도 2는 본 발명의 바람직한 어느 실시예에 따른 대화 시스템(100)의 개략적인 시스템 및 프로세스 구성을 나타낸다.
도 3은 본 발명의 일 실시예에 따른 계층적인 분류를 위한 기계학습 절차의 구성을 나타낸다.
도 4는 본 발명에 따른 시스템 시나리오에서 대화주제 계층구조의 예를 나타낸다.
도 5는 본 발명에 따른 시스템 시나리오에서 질의의도 계층구조의 예를 나타낸다.
도 6은 본 발명에 따른 시스템 시나리오에서 질의상황 계층구조의 예를 나타낸다.
도 7은 본 발명에 따른 답변 데이터의 레이블 구조의 예를 나타내는 도면이다.
도 8은 본 발명의 일 실시예에 따른 질문과 답변후보간의 유사성을 계산하는 절차의 구성을 개략적으로 나타낸다.
도 9는 본 발명의 일 실시예에 따른 대화형 상담 챗봇의 구현 방법의 전체 프로세스를 개략적으로 나타낸다.
※ 첨부된 도면은 본 발명의 기술사상에 대한 이해를 위하여 참조로서 예시된 것임을 밝히며, 그것에 의해 본 발명의 권리범위가 제한되지는 아니한다.
1 is a diagram conceptually showing the overall system configuration of the present invention.
2 shows a schematic system and process configuration of a conversation system 100 according to any preferred embodiment of the present invention.
3 shows a configuration of a machine learning procedure for hierarchical classification according to an embodiment of the present invention.
4 shows an example of a conversation subject hierarchy in a system scenario according to the present invention.
5 shows an example of a query intention hierarchy in a system scenario according to the present invention.
6 shows an example of a query context hierarchy in a system scenario according to the present invention.
7 is a diagram showing an example of a label structure of answer data according to the present invention.
8 schematically shows a configuration of a procedure for calculating the similarity between a question and an answer candidate according to an embodiment of the present invention.
9 schematically shows the entire process of an implementation method of an interactive consultation chatbot according to an embodiment of the present invention.
※ The accompanying drawings indicate that they are exemplified by reference for understanding the technical idea of the present invention, and the scope of the present invention is not limited thereby.

이하, 도면을 참조하여 본 발명의 다양한 실시예가 안내하는 본 발명의 구성과 그 구성으로부터 비롯되는 효과에 대해 살펴본다. 본 발명을 설명함에 있어서 관련된 공지기능에 대하여 이 분야의 기술자에게 자명한 사항으로서 본 발명의 요지를 불필요하게 흐릴 수 있다고 판단되는 경우에는 그 상세한 설명을 생략한다.Hereinafter, a configuration of the present invention guided by various embodiments of the present invention and effects resulting from the configuration will be described with reference to the drawings. In the description of the present invention, when it is determined that the subject matter of the present invention may unnecessarily obscure the subject matter of the present invention, the detailed description thereof will be omitted.

도 1은 본 발명의 시스템 구성을 개념적으로 나타내었다. 사용자 디바이스(1)가 통신 시스템을 통해 질의를 발화하면 고객 상담 센터에 구축되어 있는 챗봇 디바이스(10)가 그 질의에 최적화된 응답을 사용자 디바이스(1)에 실시간으로 전한다.1 conceptually shows the system configuration of the present invention. When the user device 1 utters a query through a communication system, the chatbot device 10 built in the customer consultation center delivers the optimized response to the query to the user device 1 in real time.

사용자 디바이스(1)는 통신 시스템을 통해 고객 상담 센터로 접속할 수 있는 단말을 의미한다. 예컨대 유무선 통신을 수행하는 다양한 형태의 전화기이다. The user device 1 means a terminal that can access the customer service center through a communication system. For example, various types of telephones performing wired / wireless communication.

챗봇 디바이스(10)는 기업(기관)의 고객 상담 센터에 설치된 1개 이상의 하드웨어 및 소프트웨어로 구성된 전자 디바이스이다. 사용자 디바이스(1)의 질의는 음성으로 챗봇 디바이스(10)에 전송되며, 챗봇 디바이스(10)는 본 발명의 프로세스에 따라 추출된 응답을 음성으로 변환하여 스피커를 통해 사용자 디바이스(1)로 전송한다.The chatbot device 10 is an electronic device composed of one or more hardware and software installed in a customer consultation center of a company (institution). The query of the user device 1 is transmitted to the chatbot device 10 by voice, and the chatbot device 10 converts the extracted response to voice according to the process of the present invention and transmits it to the user device 1 through a speaker. .

상기 챗봇 디바이스(10)는 특히 본 발명의 방법을 구현함에 있어서, 대화 시스템(100)과 메모리(200)를 포함한다. 대화 시스템(100)은 본 발명의 언어처리를 수행하는 하드웨어/소프트웨어 장비이며, 소프트웨어의 구동과 장비의 입출력과 기능 등을 제어하는 제어장치를 포함한다. 메모리(200)는 미리 구축되어 있는 지식 베이스로 데이터를 저장하고 기계학습에 관련한 다양한 데이터베이스를 보관하는 기능을 수행한다. 챗봇 디바이스(10)는 상기 대화 시스템(100) 및 메모리(200) 장비를 포함하는 것이며, 그 상세한 구성 예는 도 2에 도시되어 있다. The chatbot device 10 includes a conversation system 100 and a memory 200, particularly in implementing the method of the present invention. The conversation system 100 is a hardware / software device that performs the language processing of the present invention, and includes a control device that controls the driving of the software and the input / output and functions of the device. The memory 200 serves to store data in a pre-built knowledge base and to store various databases related to machine learning. The chatbot device 10 includes the conversation system 100 and the memory 200 equipment, and a detailed configuration example is illustrated in FIG. 2.

도 2는 본 발명의 바람직한 어느 실시예에 따른 대화 시스템(100)의 개략적인 시스템 및 프로세스 구성을 나타낸다. 본 발명에 따른 계층적 사용자 표현 이해 및 답변 생성 방법이 도시되어 있다.2 shows a schematic system and process configuration of a conversation system 100 according to any preferred embodiment of the present invention. A method of understanding hierarchical user expressions and generating answers according to the present invention is illustrated.

사용자 디바이스를 통해 표현된 사용자 음성은 입력 텍스트로 변환되어 대화 시스템으로 들어간다. 텍스트 전처리기(101)는 입력 텍스트에 대한 오타 확인 및 수정, 줄바꿈 처리, 특수기호 처리 등을 포함한 전처리를 수행한다.The user voice expressed through the user device is converted into input text and enters the conversation system. The text pre-processor 101 performs pre-processing, including checking and correcting typos in the input text, line break processing, and special symbol processing.

개체 추출부(103)는 전처리된 텍스트를 분석이 가능한 정보 형태로 추출한다. 즉, 입력된 텍스트로부터 대화의 목적에 맞게 개체(entity)를 추출하는 것이다. 개체 추출부(103)에서 수행되는 개체 인식은 동의어 사전(210), 의미자질 사전(211), 패턴 사전(213) 등의 언어 DB에 저장되어 있는 자원을 이용한다. 사용자의 입력 텍스트에 대한 형태소 분석을 수행하고, 동의어 사전(210) 등을 활용해 의미 단위로 분할하며, 어간 추출, 표제어 변환 등의 자연어 처리를 통해 정제한다. 1차적으로 분석되는 단어는 동의어 사전(210)과 매칭되는 단어가 존재하는지 여부이다. 매칭된 동의어는 어떤 의미를 갖는지 의미자질 사전(211)을 이용해 분석된다. 사전에 포함되지 않은 고유명사나 수치형 데이터는 패턴 분석이나 별도의 개체명 사전을 통해 인식된다.The object extraction unit 103 extracts the pre-processed text in the form of information that can be analyzed. That is, the entity is extracted from the input text according to the purpose of the conversation. The object recognition performed by the object extraction unit 103 uses resources stored in a language DB such as a synonym dictionary 210, a semantic feature dictionary 211, and a pattern dictionary 213. Morphological analysis of the input text of the user is performed, and the synonym dictionary 210 is used to divide it into semantic units, and refined through natural language processing such as stemming and headword conversion. The first analyzed word is whether a word matching the synonym dictionary 210 exists. The matched synonyms are analyzed by using the semantic dictionary 211. Proper nouns or numeric data that are not included in the dictionary are recognized through pattern analysis or a separate dictionary of individual names.

개체 추출부(103)를 통해 나오는 데이터의 형식은, 인식 가능한 개체의 종류가 N개(N은 1 이상의 정수)라면 개체 종류와 대표값으로 표현되는 N개의 배열로 개체 추출부(103)의 출력이 정해진다. 아래와 같다.The format of the data output through the object extraction unit 103 is the output of the object extraction unit 103 in N arrays represented by the object type and the representative value if the number of recognizable objects is N (N is an integer of 1 or more). This is fixed. It looks like this:

(개체종류1, 대표값1), (개체종류2, 대표값2),…, (개체종류N, 대표값N)(Object type 1, Representative value 1), (Object type 2, Representative value 2), ... , (Object type N, representative value N)

예시 입력문을 통해 이 의미를 살펴 보자. 사용자 질의를 통해 다음과 같은 문장이 입력되었다고 가정하자.Let's look at this meaning through an example input statement. Assume that the following sentence is entered through a user query.

“내일 오전 "Tomorrow morning 11시이후에After 11:00 출발하는 서울역에서 대전역까지 가는 KTX 열차의 시간을 알고 싶어.”  I want to know the time of the KTX train from Seoul Station to Daejeon Station. ”

그러면, 본 발명의 개체 추출부(103)는 다음과 같이 분석할 수 있다.Then, the object extraction unit 103 of the present invention can be analyzed as follows.

(날짜, 내일), (시간, 오전11시), (출발지, 서울역), (도착지, 대전역), (교통수단, KTX), (주요단어, 시간), (주요단어, 문의) (Date, Tomorrow), (Time, 11:00 AM), (Departure, Seoul Station), (Destination, Daejeon Station), (Transportation, KTX), (Key Words, Time), (Key Words, Inquiries)

특징벡터 생성부(110)는 분석된 개체들과 사전 정의된 단어를 이용해 수치화된 벡터를 생성한다. 수치화된 벡터 생성 방법은 예컨대 공지의 기법인 Bag of Word, TF/IDF, word embedding 등의 방법을 활용할 수 있다. The feature vector generator 110 generates a numerical vector using the analyzed objects and predefined words. For the method of generating a digitized vector, for example, known methods such as Bag of Word, TF / IDF, and word embedding may be used.

생성된 특징벡터는 기계학습기반 분류를 위해 활용된다. 본 발명에서는 질의의도, 대화주제, 질의상황의 세 가지 측면에서 분류가 행해진다. 또한 기계학습 분류에 사용되는 레이블(label)은 계층구조로서 구성된다. 질의의도 및 대화주제는 1계층 분류기에서 선택된 의도 및 주제를 먼저 선택하고, 각각의 선택된 주제 아래에 하부 분류기가 존재한다면 하위 계층에 대한 분류를 수행한다. The generated feature vector is used for classification based on machine learning. In the present invention, classification is performed in three aspects: query intention, conversation topic, and query situation. In addition, labels used in machine learning classification are organized in a hierarchical structure. The intention of inquiry and the topic of conversation select the intention and subject selected from the first-class classifier first, and if the lower classifier exists under each selected subject, classify the lower class.

질의의도 이해부(120)는 도시되어 있는 것처럼 1계층 분류기(121), 2계층 분류기(122), 3계층 분류기(123)와 같이 복수의 분류기를 포함할 수 있으며, 분류기의 분류 수행에 있어 계층별로 각각 대응하는 의도 분류 학습모델(221, 222, 223)을 사용한다.The query intention understanding unit 120 may include a plurality of classifiers, such as the first-class classifier 121, the second-class classifier 122, and the third-class classifier 123, as shown, in performing classification of the classifier. The intention classification learning models corresponding to each class are used (221, 222, 223).

대화주제 이해부(130)는 도시되어 있는 것처럼 1계층 분류기(131), 2계층 분류기(132), 3계층 분류기(133)와 같이 복수의 분류기를 포함할 수 있으며, 분류기의 분류 수행에 있어 계층별로 각각 대응하는 주제 분류 학습모델(231, 232, 233)을 사용한다.The conversation topic understanding unit 130 may include a plurality of classifiers, such as the first-class classifier 131, the second-class classifier 132, and the third-class classifier 133, as illustrated, hierarchies in classifier performance Each subject class learning model (231, 232, 233) is used.

질의상황 이해부(120)는 2계층 및 3계층에 대해서만 계층적 분류를 수행한다. The query situation understanding unit 120 performs hierarchical classification only for the second and third layers.

사용자 표현 이해부(150)는 이와 같이 세 가지 분류에 따라 계층적으로 입력문장의 질의의도, 대화주제 및 질의상황을 추출하여 질의 이해를 수행한다. 그런 다음 답변후보 생성부(160)가 답변 지식(260)을 이용해서 답변후보를 생성한 다음에, 시스템 응답 생성부(170)가 최종 답변을 생성해서 음성과 결합하여 출력한다.The user expression understanding unit 150 performs query understanding by hierarchically extracting a query intention, a conversation topic, and a query situation of the input sentence hierarchically according to the three classifications. Then, the answer candidate generation unit 160 generates an answer candidate using the answer knowledge 260, and then the system response generation unit 170 generates the final answer and combines it with the voice to output it.

한편, 계층적인 분류를 위한 기계학습 절차는 도 3에 예시되어 있다. Meanwhile, a machine learning procedure for hierarchical classification is illustrated in FIG. 3.

질문 데이터(50)와 계층적 레이블(51, 53, 55)은 각 한 쌍으로 구성되어 있다. 전술한 바와 같이 질문 데이터(50)는 텍스트 전처리, 개체 추출, 특징벡터 생성절차를 거쳐 질문을 표현하는 수치화된 벡터로서 표현되어 자동분류 학습기(180)로 전달된다. The question data 50 and the hierarchical labels 51, 53, and 55 are each composed of a pair. As described above, the question data 50 is expressed as a numerical vector expressing the question through text pre-processing, object extraction, and feature vector generation procedures, and is transmitted to the automatic classification learner 180.

주제 레이블(51), 의도 레이블(53), 상황 레이블(55)은 각각 대화주제, 질문의도, 질문상황에 관한 레이블로 계층적인 구조로 구성되며, 이 3단계에 걸친 레이블도 자동분류 학습기(180)로 전달된다. The subject label (51), the intent label (53), and the context label (55) are composed of hierarchical structures with labels related to conversation topics, question intentions, and question situations, respectively. 180).

즉, 질문을 표현하는 벡터와 레이블을 표현하는 벡터는 자동분류 학습기(180)의 학습 데이터로 활용되는 것이다. 그리고 이 자동분류 학습기(180)는 레이블의 계층에 맞게 1계층, 2계층, 3계층에 대한 분류를 각각 수행하여, 최종적으로 각 계층별 분류 학습모델(281, 282, 283)을 생성하여 도 2에 나타난 구조에 활용된다.That is, the vector expressing the question and the vector expressing the label are used as learning data of the automatic classification learner 180. In addition, the automatic classification learner 180 classifies the first, second, and third layers respectively according to the label hierarchy, and finally generates classification learning models 281, 282, and 283 for each layer. It is utilized in the structure shown in.

그렇다면, 기계학습 분류에 사용되는 계층구조로서 대화주제, 질의의도, 질의상황에 대한 계층구조 레이블의 의미를 예시된 시나리오를 통해 살펴보자. 도 4 내지 도 6은 본 발명의 챗봇 디바이스가 구축되어 있는 병원 고객센터 시스템에 대해, 만성질환에 관한 질의를 하는 경우에 관한 시나리오이다. Then, let's take a look at the meaning of the hierarchical label for dialogue topic, query intention, and query situation as a hierarchical structure used for classifying machine learning through an illustrated scenario. 4 to 6 are scenarios for inquiring about chronic diseases in a hospital customer center system in which the chatbot device of the present invention is built.

도 4의 대화주제 계층구조에서 보는 것처럼, 대화주제의 경우 질문에 포함된 주제에 대한 내용을 찾는 역할을 수행한다. <건강관리>, <질병 및 증상>, <병원 진료> 등 대화의 내용에 따른 1계층 분류가 구성이 되며, 1계층 분류는 상세 내용에 따라 도시되어 있는 것처럼 세분화된 분류로 나뉠 수 있다. As shown in the dialogue topic hierarchy of FIG. 4, in the case of a dialogue topic, it serves to find content on a topic included in a question. The first-tier classification is organized according to the contents of the dialogues such as <Health Management>, <Diseases and Symptoms>, and <Hospital Care>, and the first-tier classification can be divided into subdivided classifications as shown according to the details.

도 5는 질의의도 계층구조에 관한다. 질의의도는 질문의 내용보다는 질문의 목적을 주로 나타낸다. <문의>, <예약>, <정보조회>가 예시되어 있다. <문의>는 특정항목을 물어보는 1계층 분류가 되며, <방법문의>, <결과문의>, <개념문의>, <예후문의> 등으로 구성되는 2계층 분류, <방법문의>의 경우 <예방방법>, <대처방법> 등으로 구성되는 3계층 분류로 계층화할 수 있다. 병원 예약을 위한 것인지, 단순한 정보조회를 원하는 것인지는 각각 1계층 분류로 <예약>과 <정보조회>로 분류된다.5 relates to a query intention hierarchy. The intention of inquiry mainly indicates the purpose of the question rather than the content of the question. <Inquiry>, <Reservation>, and <Inquiry> are illustrated. <Contact> is a one-tier classification that asks for a specific item, and two-tier classification consisting of <method inquiry>, <result inquiry>, <concept inquiry>, <prognosis inquiry>, etc., <prevention inquiry> in the case of <method inquiry> Method>, <Corrective Action>, etc., can be layered into three-layer classification. Whether it is for a hospital reservation or a simple information inquiry, it is classified into <reservation> and <information inquiry> into one-tier classification, respectively.

도 6은 질의상황 계층구조에 관한다. 질의상황은 질문자가 처한 상황을 찾아내는 역할을 한다. 앞선 다른 두 개의 분류와 다르게 1계층의 분류를 수행하지 않고 질의상황을 구성하는 모든 요소를 추출한다. 예시에서 질의상황을 표현하는 1단계 요소는 <문의 대상자>, <환자여부>, <성별>, <연령대>가 있으며 1단계 구성요소에 대해서는 모든 항목이 선택될 수 있도록 분류를 하지 않고 2단계 이상부터 분류를 수행한다. 6 relates to the query situation hierarchy. The inquiry situation serves to find the situation in which the questioner is facing. Unlike the other two classifications, all elements constituting the query situation are extracted without performing the first-class classification. In the example, the 1st level elements that express the query status are <Subject Inquiry>, <Patient Status>, <Gender>, and <Age Group>. For the 1st level component, it is not classified so that all items can be selected. Classification.

이제 이러한 계층구조의 계층적인 레이블을 이용해서 답변 데이터를 생성하는 모델에 대해서 좀더 구체적인 시나리오를 통해 이해해 보자. 사용자 디바이스로부터 이런 질의문이 입력되었다고 가정한다.Now, let's understand the model that generates answer data using the hierarchical label of this hierarchy through a more specific scenario. It is assumed that such a query is input from the user device.

“저의 할머니가 지난달 당뇨로 입원하고 간단한 수술 뒤 퇴원하셨습니다. 물을 마실 때는 괜찮은데 약을 드시거나 식사를 하시면 바로 다 토하십니다. 어떻게 해야 할까요?"“My grandmother was hospitalized with diabetes last month and was discharged after a simple operation. It is okay to drink water, but if you take medicine or eat, you will vomit immediately. What should I do?"

앞에서 설명한 바에 따란 위와 같은 질문에 대해, 질의의도, 대화주제, 질의상황에 대한 레이블이 계층적으로 결정될 수 있다. 본 발명에 따른 질의 분석은 다음과 같이 이뤄질 것이다.In response to the above-mentioned question as described above, the label for the intention of inquiry, the topic of conversation, and the situation of inquiry may be hierarchically determined. Query analysis according to the present invention will be made as follows.

대화주제: Topic:

1계층: 질병 및 증상, Tier 1: disease and symptoms,

2계층: 만성질환, Layer 2: chronic disease,

3계층: 당뇨 Layer 3: Diabetes

질의의도: Inquiry:

1계층: 문의, Tier 1: Inquiries,

2계층: 방법문의, Layer 2: Method inquiry,

3계층: 대처방법Layer 3: how to deal

질의상황: Query Status:

1계층: 문의대상자, 1st layer: Inquiries,

2계층: 가족Layer 2: Family

1계층: 환자여부, Tier 1: Patients,

2계층: 만성질환Layer 2: Chronic disease

1계층: 성별, Tier 1: Gender,

2계층: 여성Layer 2: Female

1계층: 연령대, Tier 1: Age Group,

2계층: 60대 이상Tier 2: 60+

답변 후보지식은 상기 정의된 질의의도, 대화주제, 질의상황을 기준으로 미리 준비된 답변에 레이블이 할당된다. 답변 데이터의 레이블 구조는 예컨대 도 7과 같다.The candidate candidate knowledge is assigned a label to a previously prepared answer based on the above defined query intention, conversation topic, and question status. The label structure of the answer data is shown in, for example, FIG. 7.

사용자의 질문에 맞는 답변후보의 추출은 3개 항목(주제, 의도, 상황) 및 계층구조와의 매칭 정도를 점수화하여 정렬한 후 일정수준 이상의 점수를 갖는 답변을 후보로 추출하는 절차를 거칠 수 있다. The extraction of answer candidates to fit a user's question can be followed by a procedure of extracting candidates with a score above a certain level as candidates after scoring and sorting the degree of matching with three items (topic, intention, situation) and hierarchy. .

질문과 답변후보간의 유사성을 계산하는 절차는 도 8에 나타나 있다. 질문 데이터로부터 대화주제, 질의의도, 질의상황에 대한 레이블(51, 53, 55)을 분류한 후, 답변에서 정의된 대화주제, 질의의도, 질의상황 레이블(510, 520, 530)과의 매칭 적합도를 계산한다. 각각의 매칭적합도를 합산하여 질문과 답변간의 적합도를 계산하며 적합도가 높은 P개(P는 1 이상의 정수)의 답변이 질문에 대한 답변 후보로 제시될 수 있다. The procedure for calculating the similarity between question and answer candidates is shown in FIG. 8. After classifying the label (51, 53, 55) for the conversation topic, query intention, and query situation from the question data, the conversation topic, query intention, and query situation label (510, 520, 530) defined in the answer Calculate matching goodness of fit. The appropriateness between the question and the answer is calculated by summing each matching suitability, and P answers with high suitability (P is an integer of 1 or more) can be presented as a candidate for answering the question.

도 9는 본 발명의 대화형 상담 챗봇의 구현 방법의 전체 프로세스의 구성을 하나의 예시로서 그리고 본 발명의 구성을 다시 한 번 정리한다는 차원에서 나타내고 있다.FIG. 9 shows the configuration of the entire process of the method for implementing the interactive consultation chatbot of the present invention as an example, and shows the structure of the present invention once again.

사용자가 전화기 등의 사용자 디바이스를 통해 본 발명의 챗봇 디바이스가 구축되어 있는 상담 시스템에 무엇인가를 질의할 것이다(S100).The user will query something through a user device such as a telephone to the consultation system in which the chatbot device of the present invention is built (S100).

그러면 개체인식 단계를 수행한다. 텍스트 전처리기를 통해 텍스트 전처리를 수행하고 개체 추출부(103)가 텍스트에서 대화 목적에 맞는 단어를 추출한다(S110).Then, the object recognition step is performed. Text pre-processing is performed through a text pre-processor, and the object extraction unit 103 extracts a word suitable for a conversation purpose from the text (S110).

다음으로 특징벡터를 추출한다. 즉, 특징벡터 생성부가 기계학습에 필요한 특징을 생성한다(S120).Next, feature vectors are extracted. That is, the feature vector generation unit generates features necessary for machine learning (S120).

세 가지 요소, 즉 질의의도 이해부, 대화주제 이해부 및 질의상황 이해부가 미리 정의된 계층주조에 의해 사용자 표현(질의)를 이해하는 로직을 수행한다(S130). Three elements, that is, a query intention understanding unit, a conversation subject understanding unit, and a query situation understanding unit, perform logic to understand a user expression (query) by a predefined hierarchical casting (S130).

그런 다음에 답변을 생성하고(S140), 전술한 것처럼 답변후보의 세 가지 요소의 계층구조와 질문 데이터의 세 가지 요소의 계층구조를 매칭하고, 매칭 적합도를 계산해서 높은 점수를 갖는 답변을 후보로 추출한다(S140). 그리고 음성과 결합해서 사용자 디바이스로 응답한다(S150).Then, an answer is generated (S140), and as described above, the hierarchical structure of the three elements of the candidate candidate and the hierarchical structure of the three elements of the question data are matched, and the matching suitability is calculated to select the answer with the high score as a candidate Extract (S140). Then, it responds to the user device in combination with voice (S150).

참고로, 본 발명의 일 실시예에 따른 대화형 상담 챗봇의 구현 방법은 다양한 컴퓨터 수단을 통하여 수행될 수 있는 프로그램 명령 형태로 구현되어 컴퓨터 판독가능매체에 기록될 수 있다. 상기 컴퓨터 판독가능매체는 프로그램 명령, 데이터 파일, 데이터 구조 등을 단독으로 또는 조합하여 포함할 수 있다. 상기 매체에 기록되는 프로그램 명령은 본 발명을 위하여 특별히 설계되고 구성된 것들이거나 컴퓨터 소프트웨어 당업자에게 공지되어 사용 가능한 것일 수도 있다. For reference, an implementation method of an interactive counseling chatbot according to an embodiment of the present invention may be implemented in a form of program instructions that can be executed through various computer means and recorded in a computer-readable medium. The computer-readable medium may include program instructions, data files, data structures, or the like alone or in combination. The program instructions recorded on the medium may be specially designed and configured for the present invention, or may be known and available to those skilled in computer software.

컴퓨터 판독가능매체의 예에는 하드 디스크, 플로피 디스크 및 자기 테이프와 같은 자기 매체, CD-ROM, DVD와 같은 광기록 매체, 플롭티컬 디스크(floptical disk)와 같은 자기-광 매체, 및 ROM, RAM, 플래시 메모리 등과 같은 프로그램 명령을 저장하고 수행하도록 특별히 구성된 하드웨어 장치가 포함될 수 있다. 프로그램 명령의 예에는 컴파일러에 의해 만들어지는 것과 같은 기계어코드뿐만 아니라 인터프리터 등을 사용해서 컴퓨터에 의해서 실행될 수 있는 고급언어코드를 포함한다. 상술한 하드웨어 장치는 본 발명의 동작을 수행하기 위해 하나 이상의 소프트웨어 모듈로서 작동하도록 구성될 수 있으며, 그 역도 마찬가지이다Examples of computer-readable media include magnetic media such as hard disks, floppy disks and magnetic tapes, optical recording media such as CD-ROMs, DVDs, magnetic-optical media such as floptical disks, and ROM, RAM, Hardware devices specifically configured to store and execute program instructions, such as flash memory, may be included. Examples of program instructions include high-level language codes that can be executed by a computer using an interpreter, as well as machine codes such as those produced by a compiler. The above-described hardware device may be configured to operate as one or more software modules to perform the operation of the present invention, and vice versa.

본 발명의 보호범위가 이상에서 명시적으로 설명한 실시예의 기재와 표현에 제한되는 것은 아니다. 또한, 본 발명이 속하는 기술분야에서 자명한 변경이나 치환으로 말미암아 본 발명이 보호범위가 제한될 수도 없음을 다시 한 번 첨언한다.The scope of protection of the present invention is not limited to the description and expression of the embodiments explicitly described above. In addition, it is pointed out once again that the scope of protection of the present invention may not be limited by obvious changes or substitutions in the technical field to which the present invention pertains.

Claims (4)

사용자 디바이스가 통신 시스템을 통해 대화형 의료문진을 지원하는 병원의 고객센터 대화 시스템에 접속하여 질의를 발화하면, 상기 고객센터 대화 시스템에 구축되어 있는 챗봇 디바이스가 시스템 응답을 함에 있어서, 상기 챗봇 디바이스가:
(a) 입력된 텍스트로부터 대화의 목적에 맞는 개체를 추출하되, (개체종류, 개체명 대표값)의 형식의 배열로 데이터를 출력하고 분석하는 단계,
(b) 추출되고 분석된 개체들과 사전 정의된 단어를 이용해 기계학습에 필요한 특징 벡터를 생성하는 단계,
(c) 기계학습기반 분류를 위해 활용되는 상기 특징 벡터들에 대해, 복수의 계층적인 분류기를 포함하는 질의의도 이해부가 계층별로 각각 대응하는 의도분류 학습모델을 사용하여 질의의도에 대한 분류를 계층적으로 수행하고, 복수의 계층적인 분류기를 포함하는 대화주제 이해부가 계층별로 각각 대응하는 주제 분류 학습모델을 사용하여 대화주제에 대한 분류를 계층적으로 수행하고, 복수의 계층적인 분류기를 포함하는 질의상항 이해부가 계층별로 각각 대응하는 상황분류 학습모듈을 사용하여 질의상황에 대한 분류를 계층적으로 수행하되, 상기 질의상황에 대해서는 1계층의 분류를 수행하지 않고 모든 항목이 선택될 수 있도록 하여 2단계 이상부터 분류를 수행하는 단계,
(d) 상기 질의의도, 대화주제 및 질의상황의 계층요소에 맞는 답변을 찾아내어 답변을 생성하는 단계를 수행한 후에,
(e) 상기 생성된 답변을 음성을 결합하여 상기 사용자 디바이스에 응답을 전송하는 단계를 포함함으로써 계층적으로 사용자 표현을 이해하고 답변을 생성하는 것을 특징으로 하는 대화형 상담 챗봇의 구현 방법.
When a user device connects to a customer center conversation system of a hospital that supports interactive medical consultation through a communication system and speaks a query, the chatbot device built in the customer center conversation system responds to the system, so that the chatbot device :
(a) extracting an object suitable for the purpose of the conversation from the input text, but outputting and analyzing the data in an array of the form (object type, representative value of the object name),
(b) generating feature vectors for machine learning using extracted and analyzed objects and predefined words,
(c) For the feature vectors used for machine learning-based classification, the query intention understanding unit including a plurality of hierarchical classifiers classifies the query intention using an intention classification learning model corresponding to each layer. Performing hierarchically, the conversation subject understanding unit including a plurality of hierarchical classifiers hierarchically classifies the conversation subject using a subject classification learning model corresponding to each layer, and comprising a plurality of hierarchical classifiers The query situation understanding unit classifies the query situation hierarchically by using the situation classification learning module corresponding to each class, but the query situation is not classified by the first layer so that all items can be selected. The step of performing classification from above step,
(d) After performing a step of finding an answer that matches the hierarchical elements of the query intention, conversation topic, and query situation, and generating an answer,
(e) a method of implementing an interactive counseling chatbot, characterized by hierarchically understanding a user expression and generating an answer by including a step of transmitting a response to the user device by combining the generated answer with a voice.
삭제delete 삭제delete 삭제delete
KR1020180023382A 2018-02-27 2018-02-27 Method and apprartus for chatbots in customer service analyzing hierarchical user expression and generating responses KR102103273B1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
KR1020180023382A KR102103273B1 (en) 2018-02-27 2018-02-27 Method and apprartus for chatbots in customer service analyzing hierarchical user expression and generating responses
PCT/KR2018/014579 WO2019168253A1 (en) 2018-02-27 2018-11-26 Interactive counseling chatbot device and method for hierarchically understanding user's expression and generating answer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020180023382A KR102103273B1 (en) 2018-02-27 2018-02-27 Method and apprartus for chatbots in customer service analyzing hierarchical user expression and generating responses

Publications (2)

Publication Number Publication Date
KR20190109614A KR20190109614A (en) 2019-09-26
KR102103273B1 true KR102103273B1 (en) 2020-04-22

Family

ID=67806307

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020180023382A KR102103273B1 (en) 2018-02-27 2018-02-27 Method and apprartus for chatbots in customer service analyzing hierarchical user expression and generating responses

Country Status (2)

Country Link
KR (1) KR102103273B1 (en)
WO (1) WO2019168253A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20210157770A (en) 2020-06-22 2021-12-29 송형석 Optimized question and answer system and method thereof
WO2023177079A1 (en) * 2022-03-18 2023-09-21 삼성전자주식회사 Server and electronic device for processing user speech on basis of synthetic vector, and operating method thereof
US11782910B2 (en) 2019-11-15 2023-10-10 Samsung Electronics Co., Ltd. System and method for dynamic inference collaboration

Families Citing this family (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111063429A (en) * 2019-10-25 2020-04-24 中国科学院自动化研究所 Medical consultation method, device, equipment and computer-readable storage medium
WO2021100902A1 (en) * 2019-11-20 2021-05-27 한국과학기술원 Dialog system answering method based on sentence paraphrase recognition
KR102357620B1 (en) * 2019-11-27 2022-02-03 주식회사 와이즈넛 Chatbot integration agent platform system and service method thereof
CN110993124A (en) * 2019-12-09 2020-04-10 上海光电医用电子仪器有限公司 Monitoring system and method with voice response function
KR102386898B1 (en) 2020-05-06 2022-04-15 (주)와이즈에이아이 Apparatus and method for providing question and answer service base on intents
KR102420929B1 (en) * 2020-05-06 2022-07-14 (주)와이즈에이아이 Apparatus and Method for Providing Medical Service Based on Artificial Intelligence
WO2021261617A1 (en) * 2020-06-25 2021-12-30 한국과학기술원 Conversation intention real-time analysis method
KR102383043B1 (en) * 2020-07-02 2022-04-05 주식회사 엔씨소프트 Learning method and cognition method for omission restoration and apparatus for executing the method
US10818293B1 (en) * 2020-07-14 2020-10-27 Drift.com, Inc. Selecting a response in a multi-turn interaction between a user and a conversational bot
CN112656414B (en) * 2020-12-17 2023-08-08 北京智能工场科技有限公司 System for detecting psychological state through AI dialogue
KR102487571B1 (en) * 2021-03-09 2023-01-12 주식회사 마이데이터랩 Data processing method and apparatus for training neural networks classifing natural language intentions
KR102539614B1 (en) * 2021-08-17 2023-06-01 박영철 Method, apparatus and computer-readable recording medium for providing customized diagnostic information based on a user's medical-related question
US11900062B2 (en) 2021-10-01 2024-02-13 Capital One Services, Llc Systems and methods for generating dynamic conversational responses based on predicted user intents using artificial intelligence models
KR20230142265A (en) 2022-04-01 2023-10-11 (주)와이즈에이아이 System and method for processing phone reservations based on artificial intelligence

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20120109943A (en) * 2011-03-28 2012-10-09 가톨릭대학교 산학협력단 Emotion classification method for analysis of emotion immanent in sentence
KR20140123369A (en) * 2013-04-12 2014-10-22 얄리주식회사 Question answering system using speech recognition and its application method thereof
KR101763407B1 (en) * 2015-10-14 2017-07-31 주식회사 시스트란인터내셔널 Voice conversation system and method of thereof

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11782910B2 (en) 2019-11-15 2023-10-10 Samsung Electronics Co., Ltd. System and method for dynamic inference collaboration
KR20210157770A (en) 2020-06-22 2021-12-29 송형석 Optimized question and answer system and method thereof
WO2023177079A1 (en) * 2022-03-18 2023-09-21 삼성전자주식회사 Server and electronic device for processing user speech on basis of synthetic vector, and operating method thereof

Also Published As

Publication number Publication date
KR20190109614A (en) 2019-09-26
WO2019168253A1 (en) 2019-09-06

Similar Documents

Publication Publication Date Title
KR102103273B1 (en) Method and apprartus for chatbots in customer service analyzing hierarchical user expression and generating responses
Poongodi et al. Chat-bot-based natural language interface for blogs and information networks
Chandrasekaran et al. Multimodal sentimental analysis for social media applications: A comprehensive review
Tur et al. Spoken language understanding: Systems for extracting semantic information from speech
Sundararajan et al. Multi‐rule based ensemble feature selection model for sarcasm type detection in Twitter
Rashid et al. A survey paper: areas, techniques and challenges of opinion mining
US20200183928A1 (en) System and Method for Rule-Based Conversational User Interface
KR20190072823A (en) Domain specific dialogue acts classification for customer counseling of banking services using rnn sentence embedding and elm algorithm
Tyagi et al. Demystifying the role of natural language processing (NLP) in smart city applications: background, motivation, recent advances, and future research directions
CN110610003B (en) Method and system for assisting text annotation
Gupta et al. Lesa: Linguistic encapsulation and semantic amalgamation based generalised claim detection from online content
Varaprasad et al. Applications and Techniques of Natural Language Processing: An Overview.
Dasari et al. A stacking ensemble approach for identification of informative tweets on twitter data
Ekbal et al. Multi-domain tweet corpora for sentiment analysis: resource creation and evaluation
CN116662522B (en) Question answer recommendation method, storage medium and electronic equipment
Krishnaswamy et al. A formal analysis of multimodal referring strategies under common ground
Bellegarda A data-driven affective analysis framework toward naturally expressive speech synthesis
Breuing et al. Let’s Talk Topically with Artificial Agents!-Providing Agents with Humanlike Topic Awareness in Everyday Dialog Situations
Avishka et al. A novel conceptual chatbot architecture for the sinhala language–a case study on food ordering scenario
Zishumba Sentiment Analysis Based on Social Media Data
Tran SentiVoice-a system for querying hotel service reviews via phone
US11977853B2 (en) Aggregating and identifying new sign language signs
Cavalin et al. Towards a Method to Classify Language Style for Enhancing Conversational Systems
Archonti Creation of a Dataset with utterances containing multiple intents including anaphora, cataphora & ellipsis
Vasiliou Implementation of intelligent system to support remote telemedicine services using chatbots technology

Legal Events

Date Code Title Description
A201 Request for examination
E902 Notification of reason for refusal
AMND Amendment
E601 Decision to refuse application
X091 Application refused [patent]
AMND Amendment
X701 Decision to grant (after re-examination)
GRNT Written decision to grant