KR20240040859A - Method for providing chatbot service for mentality supporting service - Google Patents

Method for providing chatbot service for mentality supporting service Download PDF

Info

Publication number
KR20240040859A
KR20240040859A KR1020220119705A KR20220119705A KR20240040859A KR 20240040859 A KR20240040859 A KR 20240040859A KR 1020220119705 A KR1020220119705 A KR 1020220119705A KR 20220119705 A KR20220119705 A KR 20220119705A KR 20240040859 A KR20240040859 A KR 20240040859A
Authority
KR
South Korea
Prior art keywords
counseling
terminal
user
sentence
emotion
Prior art date
Application number
KR1020220119705A
Other languages
Korean (ko)
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 KR1020220119705A priority Critical patent/KR20240040859A/en
Publication of KR20240040859A publication Critical patent/KR20240040859A/en

Links

Images

Classifications

    • 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
    • G16H20/00ICT specially adapted for therapies or health-improving plans, e.g. for handling prescriptions, for steering therapy or for monitoring patient compliance
    • G16H20/70ICT specially adapted for therapies or health-improving plans, e.g. for handling prescriptions, for steering therapy or for monitoring patient compliance relating to mental therapies, e.g. psychological therapy or autogenous training
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/33Querying
    • G06F16/332Query formulation
    • G06F16/3329Natural language query formulation or dialogue systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/20Natural language analysis
    • G06F40/279Recognition of textual entities
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/30Semantic analysis
    • G06F40/35Discourse or dialogue representation
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS OR SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING; SPEECH OR AUDIO CODING OR DECODING
    • G10L15/00Speech recognition
    • G10L15/04Segmentation; Word boundary detection
    • G10L15/05Word boundary detection
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS OR SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING; SPEECH OR AUDIO CODING OR DECODING
    • G10L15/00Speech recognition
    • G10L15/22Procedures used during a speech recognition process, e.g. man-machine dialogue
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS OR SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING; SPEECH OR AUDIO CODING OR DECODING
    • G10L15/00Speech recognition
    • G10L15/26Speech to text systems
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS OR SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING; SPEECH OR AUDIO CODING OR DECODING
    • G10L25/00Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00
    • G10L25/48Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00 specially adapted for particular use
    • G10L25/51Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00 specially adapted for particular use for comparison or discrimination
    • G10L25/63Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00 specially adapted for particular use for comparison or discrimination for estimating an emotional state
    • 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
    • G16H10/00ICT specially adapted for the handling or processing of patient-related medical or healthcare data
    • G16H10/60ICT specially adapted for the handling or processing of patient-related medical or healthcare data for patient-specific data, e.g. for electronic patient records
    • 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
    • G16H20/00ICT specially adapted for therapies or health-improving plans, e.g. for handling prescriptions, for steering therapy or for monitoring patient compliance
    • G16H20/10ICT specially adapted for therapies or health-improving plans, e.g. for handling prescriptions, for steering therapy or for monitoring patient compliance relating to drugs or medications, e.g. for ensuring correct administration to patients
    • 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
    • G16H50/00ICT specially adapted for medical diagnosis, medical simulation or medical data mining; ICT specially adapted for detecting, monitoring or modelling epidemics or pandemics
    • G16H50/20ICT specially adapted for medical diagnosis, medical simulation or medical data mining; ICT specially adapted for detecting, monitoring or modelling epidemics or pandemics for computer-aided diagnosis, e.g. based on medical expert systems
    • 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
    • G16H50/00ICT specially adapted for medical diagnosis, medical simulation or medical data mining; ICT specially adapted for detecting, monitoring or modelling epidemics or pandemics
    • G16H50/70ICT specially adapted for medical diagnosis, medical simulation or medical data mining; ICT specially adapted for detecting, monitoring or modelling epidemics or pandemics for mining of medical data, e.g. analysing previous cases of other patients
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/02User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail using automatic reactions or user delegation, e.g. automatic replies or chatbot-generated messages
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS OR SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING; SPEECH OR AUDIO CODING OR DECODING
    • G10L15/00Speech recognition
    • G10L15/08Speech classification or search
    • G10L2015/088Word spotting

Abstract

본 발명에 따른 심리지원 챗봇 서비스 제공 방법은 내담자 단말기 및 상담사 단말기 중 적어도 상담사 단말기(이하, '사용자 단말기')로부터 내담자와 상담사 사이의 상담 내용인 음성 데이터를 수신하는 단계; 상기 음성 데이터를 텍스트 데이터로 변환하는 단계; 상기 텍스트 데이터를 상기 사용자 단말기로 전송하는 단계; 상기 사용자 단말기로부터 사용자에 의해 조작된 문구 라벨을 수신하면, 상기 문구 라벨을 해당 대화에 라벨링하는 단계; 상기 내담자 단말기로부터 송신된 상담 문장을 수신하고, 상기 상담 문장을 구문 분석하여, 복수의 단어로 분할하는 단계; 및 상기 복수의 단어 중 사용자 감정을 나타내는 적어도 하나의 특정 단어를 추출하는 단계;를 포함할 수 있다.The method of providing a psychological support chatbot service according to the present invention includes the steps of receiving voice data, which is the contents of a consultation between a client and a counselor, from at least a counselor terminal (hereinafter referred to as 'user terminal') among the client terminal and the counselor terminal; converting the voice data into text data; transmitting the text data to the user terminal; Upon receiving a phrase label manipulated by the user from the user terminal, labeling the phrase label to the corresponding conversation; Receiving a counseling sentence transmitted from the client terminal, parsing the counseling sentence, and dividing the counseling sentence into a plurality of words; and extracting at least one specific word representing the user's emotion from among the plurality of words.

Description

심리지원 챗봇 서비스 제공 방법{METHOD FOR PROVIDING CHATBOT SERVICE FOR MENTALITY SUPPORTING SERVICE}Method of providing psychological support chatbot service {METHOD FOR PROVIDING CHATBOT SERVICE FOR MENTALITY SUPPORTING SERVICE}

본 발명은 서비스 제공 방법에 관한 것으로, 더욱 상세하게는 심리지원 챗봇 서비스 제공 방법에 관한 것이다.The present invention relates to a method of providing a service, and more specifically, to a method of providing a psychological support chatbot service.

현대 사회 속에서 사람들은 많은 스트레스를 받고 있다. 또한, 정신적 고통을 받거나 정신 건강에 위험한 상태에 많이 놓이기도 한다. 그러나, 심리 치료에 대한 막연한 두려움에 치료 받으려는 시도를 잘 안하게 된다. 또한 치료에 소요되는 시간이나 비용에 따른 부담으로, 초기 치료 시기를 놓칠 수 있다. 아울러, 이들을 치료하기 위한 심리 치료는 그 방법을 찾기 어려운 면이 존재한다.In modern society, people are under a lot of stress. In addition, many people suffer from mental suffering or are at risk for their mental health. However, a vague fear of psychotherapy makes people reluctant to seek treatment. Additionally, the initial treatment period may be missed due to the burden of the time or cost of treatment. In addition, it is difficult to find psychological treatment methods to treat these people.

이에 챗봇을 통한 심리 치료가 이용되고 있다. 챗봇은 사람과의 문자 대화를 통해 질문에 적절한 답변을 제시하거나 다양한 관련 정보를 제공하는 인공지능(AI: Artificial Intelligence) 기반의 커뮤니케이션 소프트웨어를 지칭한다. 챗봇은 친구, 개인비서, 상담사, 연인 등의 기능을 수행하고 있다. 독거 노인의 말벗으로 이용되어, 대화를 통해 치매를 예방하는 실례가 있기도 하다.Accordingly, psychotherapy through chatbots is being used. Chatbot refers to communication software based on artificial intelligence (AI) that provides appropriate answers to questions or various related information through text conversations with people. Chatbots perform functions such as friends, personal assistants, counselors, and lovers. There are instances where it is used as a companion for elderly people living alone and prevents dementia through conversation.

정신적 스트레스가 있는 경우 전문 상담인에게 상담을 받는 것이 바람직하지만, 시간 및 비용 등의 제반 사항으로 쉽지 않다. 또한 사회적 편견도 무시 못하는 요소이다. 이에, 챗봇 또는 앱 형태로 대화를 통해 사용자의 심리 상태, 즉 사용자 감정에 대한 심리 상담 서비를 제공할 수 있는 방안이 연구되고 있다.If you are experiencing mental stress, it is advisable to receive counseling from a professional counselor, but it is not easy due to various factors such as time and cost. Additionally, social prejudice is a factor that cannot be ignored. Accordingly, ways to provide psychological counseling services for the user's psychological state, that is, the user's emotions, through conversation in the form of a chatbot or app are being studied.

본 발명의 실시예들은 심리 상담을 위한 심리지원 챗봇 서비스 제공 방법을 제공하자 한다.Embodiments of the present invention seek to provide a method of providing a psychological support chatbot service for psychological counseling.

본 발명의 일 실시예에 따른 심리지원 챗봇 서비스 제공 방법은 내담자 단말기(60) 및 상담사 단말기(70) 중 적어도 상담사 단말기(70)(이하, '사용자 단말기')로부터 내담자와 상담사 사이의 상담 내용인 음성 데이터를 수신하는 단계; 상기 음성 데이터를 텍스트 데이터로 변환하는 단계; 상기 텍스트 데이터를 상기 사용자 단말기로 전송하는 단계; 및 상기 사용자 단말기로부터 사용자에 의해 조작된 문구 라벨을 수신하면, 상기 문구 라벨을 해당 대화에 라벨링하는 단계;를 포함하고, 상기 내담자 단말기(60)로부터 인공 지능 상담을 위한 상담 문장을 수신하고, 상기 상담 문장을 구문 분석하여, 복수의 단어로 분할하는 단계; 상기 복수의 단어 중 사용자 감정을 나타내는 적어도 하나의 특정 단어를 추출하는 단계; 상기 적어도 하나의 특정 단어에 대한 감정 크기를 산출하고, 상기 감정 크기에 따라 상담 진행 문장을 생성하는 단계; 및 상기 상담 진행 문장을 상기 사용자 단말로 송신하는 단계;를 더 포함할 수 있다.A method of providing a psychological support chatbot service according to an embodiment of the present invention is to obtain the contents of the consultation between the client and the counselor from at least the counselor terminal 70 (hereinafter referred to as 'user terminal') among the client terminal 60 and the counselor terminal 70. Receiving voice data; converting the voice data into text data; transmitting the text data to the user terminal; And when receiving a phrase label manipulated by a user from the user terminal, labeling the phrase label to the corresponding conversation; receiving a counseling sentence for artificial intelligence counseling from the client terminal 60, and Parsing the counseling sentence and dividing it into a plurality of words; extracting at least one specific word representing a user's emotion from among the plurality of words; calculating an emotional level for the at least one specific word and generating a counseling progress sentence according to the emotional level; and transmitting the consultation progress sentence to the user terminal.

또한, 상기 문구 라벨를 참조하여 상기 텍스트 데이터를 분석하는 단계; 및 상기 분석된 상담 내용 분석물을 이용하여 요약문을 업데이트하는 단계;를 더 포함할 수 있다.Additionally, analyzing the text data with reference to the phrase label; And it may further include updating the summary using the analyzed counseling content analysis.

또한, 상기 텍스트 데이터를 빅데이터 처리하여 빅데이터 처리물을 생성하는 단계; 및 상기 빅데이터 처리물로부터 상담 보조 내용을 도출하는 단계;를 더 포함할 수 있다.Additionally, processing the text data into big data to generate a big data processed product; and deriving counseling assistance content from the big data processed product.

또한, 상기 요약문 및 상기 상담 보조 내용을 상기 상담사 단말기(70)로 전송하는 단계를 더 포함할 수 있다.In addition, the step of transmitting the summary and the counseling assistance content to the counselor terminal 70 may be further included.

또한, 상기 특정 단어를 추출하는 단계는 상기 복수의 단어 중 기 설정된 감정 단어에 매칭되는 상기 적어도 하나의 특정 단어를 추출하고, 상기 적어도 하나의 특정 단어를 상담 진행을 위해 데이터베이스에 저장하고, 상기 상담 진행 문장을 생성하는 단계는 상기 적어도 하나의 특정 단어에 대해 설정된 감정 중요도에 따라 상기 감정 크기를 산출하고, 상기 상담 진행 문장을 생성하는 단계는 상기 감정 크기가 설정된 기준 크기 이상이면 상기 사용자 감정이 부정적인 감정으로 판단하고, 상기 부정적인 감정을 유발한 동기를 질문하는 상기 상담 진행 문장을 생성하고, 상기 사용자 감정을 유발한 동기를 질문하는 상기 상담 진행 문장은 상기 부정적인 감정이 발생한 원인, 이유 및 상기 부정적인 감정에 대한 에피소드 중 적어도 하나를 질문하는 문장일 수 있다.In addition, the step of extracting the specific word includes extracting the at least one specific word that matches a preset emotional word among the plurality of words, storing the at least one specific word in a database for counseling, and performing the counseling. The step of generating a progress sentence calculates the emotion size according to the emotion importance set for the at least one specific word, and the step of generating the counseling progress sentence determines that if the emotion size is greater than or equal to a set standard size, the user emotion is negative. The counseling progress sentence is judged as an emotion, and the counseling progress sentence asking about the motive for causing the negative emotion is generated, and the counseling progress sentence asking about the motive for causing the user emotion is the cause and reason of the occurrence of the negative emotion, and the negative emotion. It may be a sentence that asks at least one of the episodes about.

본 발명의 일 실시예에 따른 심리 상담 에이전트 챗봇 서버는 내담자 단말기(60) 및 상담사 단말기(70) 중 적어도 상담사 단말기(70)(이하, '사용자 단말기')와 데이터 통신하는 서버(10)로서, 상기 사용자 단말기로부터 내담자와 상담사 사이의 상담 내용인 음성 데이터를 수신하는 서버 통신부(115); 상기 음성 데이터를 텍스트 데이터로 변환하는 문자 변환부(130); 설치용 상담 앱을 상기 사용자 단말기로 전송하여 설치되도록 하고, 상기 설치된 상담 앱에 상기 상기 텍스트 데이터가 표시되도록 하고, 상기 사용자 단말기로부터 사용자에 의해 조작된 문구 라벨을 수신하면, 상기 문구 라벨을 해당 대화에 라벨링하는 앱 관리부(125); 상기 문구 라벨를 참조하여 상기 텍스트 데이터를 분석하고, 상기 분석된 상담 내용 분석물을 이용하여 요약문을 업데이트하는 데이터 분석부(135); 및 상기 텍스트 데이터를 빅데이터 처리하여 빅데이터 처리물을 생성하고, 상기 빅데이터 처리물로부터 상담 보조 내용을 도출하는 빅데이터 처리부(140);를 포함하고, 상기 데이터 분석부(135)는 상기 내담자 단말기(60)로부터 송신된 상담 문장을 수신하고, 상기 상담 문장을 구문 분석하여, 복수의 단어로 분할하고, 상기 복수의 단어 중 사용자 감정을 나타내는 적어도 하나의 특정 단어를 추출하고, 상기 적어도 하나의 특정 단어에 대한 감정 크기를 산출하고, 상기 감정 크기에 따라 상담 진행 문장을 생성하는 상담부(150)을 더 포함할 수 있다.The psychological counseling agent chatbot server according to an embodiment of the present invention is a server 10 that communicates data with at least the counselor terminal 70 (hereinafter referred to as 'user terminal') among the client terminal 60 and the counselor terminal 70, a server communication unit 115 that receives voice data, which is the content of the consultation between the client and the counselor, from the user terminal; A text converter 130 that converts the voice data into text data; A counseling app for installation is transmitted to the user terminal to be installed, the text data is displayed on the installed counseling app, and when a phrase label manipulated by the user is received from the user terminal, the phrase label is added to the conversation. Labeling app management unit 125; a data analysis unit 135 that analyzes the text data with reference to the phrase label and updates a summary using the analyzed counseling content analysis; And a big data processing unit 140 that processes the text data into big data to generate a big data product and derives counseling assistance content from the big data product, and the data analysis unit 135 is configured to analyze the client. Receive a counseling sentence transmitted from the terminal 60, parse the counseling sentence, divide it into a plurality of words, extract at least one specific word representing the user's emotion from the plurality of words, and extract the at least one specific word representing the user's emotion. It may further include a counseling unit 150 that calculates the emotion level for a specific word and generates a counseling progress sentence according to the emotion level.

본 발명에 따른 심리지원 챗봇 서비스 제공 방법은 내담자 단말기로부터 송신된 상담 문장으로부터 사용자 감정을 나타내는 적어도 하나의 특정 단어를 추출하고, 적어도 하나의 특정 단어 정보를 기반으로 상담 기법 기반의 상담 진행 문장을 생성하여, 사용자와의 심리 상담을 진행함으로써, 사용자 별로 적절한 심리 상담 서비스를 제공할 수 있다.The method of providing a psychological support chatbot service according to the present invention extracts at least one specific word representing the user's emotion from a counseling sentence transmitted from a client terminal, and generates a counseling progress sentence based on a counseling technique based on at least one specific word information. Therefore, by conducting psychological counseling with the user, appropriate psychological counseling services can be provided for each user.

도 1은 본 발명의 일 실시예에 의한 상담 시스템의 블록 구성도(block diagram)이다.
도 2는 도 1의 단말기의 블록 구성도이다.
도 3은 도 1의 서버의 블록 구성도이다.
도 4 및 도 5는 사용자 단말기에서 구동되는 상담 앱의 채팅창을 도시한다.
도 6은 도 1의 상담 시스템의 동작을 설명하기 위한 순서도이다.
도 7은 본 발명의 다른 실시예에 따른 챗봇 상담 시스템을 나타낸 시스템도이다.
도 8은 본 발명에 따른 심리상담 에이전트 챗봇 장치에 적용되는 러셀(Russell)의 감정 공간을 나타내는 그래프이다.
도 9는 도 8의 심리 상담 에이전트 챗봇 서버의 동작방법을 나타낸 순서도이다.
도 10은 도 9에 나타낸 심리상담 에이전트 챗봇 장치의 동작에 대한 예시를 나타낸 순서도이다.
1 is a block diagram of a counseling system according to an embodiment of the present invention.
FIG. 2 is a block diagram of the terminal of FIG. 1.
Figure 3 is a block diagram of the server of Figure 1.
Figures 4 and 5 show a chat window of a counseling app running on a user terminal.
FIG. 6 is a flowchart for explaining the operation of the counseling system of FIG. 1.
Figure 7 is a system diagram showing a chatbot consultation system according to another embodiment of the present invention.
Figure 8 is a graph showing Russell's emotional space applied to the psychological counseling agent chatbot device according to the present invention.
Figure 9 is a flowchart showing the operation method of the psychological counseling agent chatbot server of Figure 8.
FIG. 10 is a flowchart showing an example of the operation of the psychological counseling agent chatbot device shown in FIG. 9.

이하, 도면을 참조하여 본 발명의 실시예들을 상세히 설명하기로 하며, 도면을 참조하여 설명할 때 동일하거나 대응하는 구성 요소는 동일한 도면부호를 부여하고 이에 대한 중복되는 설명은 생략하기로 한다.Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings. When describing with reference to the drawings, identical or corresponding components will be assigned the same reference numerals and redundant description thereof will be omitted.

제1, 제2 등의 용어는 다양한 구성요소들을 설명하는데 사용될 수 있지만, 상기 구성요소들은 상기 용어들에 의해 한정되어서는 안 된다. 상기 용어들은 하나의 구성요소를 다른 구성요소로부터 구별하는 목적으로만 사용된다. 예를 들어, 본 발명의 권리 범위를 벗어나지 않으면서 제1 구성요소는 제2 구성요소로 명명될 수 있고, 유사하게 제2 구성요소도 제1 구성요소로 명명될 수 있다. 및/또는 이라는 용어는 복수의 관련된 기재된 항목들의 조합 또는 복수의 관련된 기재된 항목들 중의 어느 항목을 포함한다. '또는' 용어는 전후 문맥상 논리적 배타합으로 해석될 수 있으나, '그렇지 않으면, 아니면, 논리적 배타합' 등의 직접적인 묘사가 없으면, '및/또는'과 같은 의미, 즉, 논리합으로 해석한다.Terms such as first, second, etc. may be used to describe various components, but the components should not be limited by the terms. The above terms are used only for the purpose of distinguishing one component from another. For example, a first component may be named a second component, and similarly, the second component may also be named a first component without departing from the scope of the present invention. The term and/or includes any of a plurality of related stated items or a combination of a plurality of related stated items. The term 'or' can be interpreted as a logical exclusive sum in the context, but if there is no direct description such as 'otherwise, otherwise, a logical exclusive sum', it is interpreted as a logical sum with the same meaning as 'and/or', that is, a logical sum.

또한, 단수의 표현은 문맥상 명백하게 다르게 뜻하지 않는 한, 복수의 표현을 포함한다.Additionally, singular expressions include plural expressions unless the context clearly dictates otherwise.

어떤 구성요소가 다른 구성요소에 "연결되어" 있다거나 "접속되어" 있다고 언급된 때에는, 그 다른 구성요소에 직접적으로 연결되어 있거나 또는 접속되어 있을 수도 있지만, 중간에 다른 구성요소가 존재할 수도 있다고 이해되어야 할 것이다. 반면에, 어떤 구성요소가 다른 구성요소에 "직접 연결되어" 있다거나 "직접 접속되어" 있다고 언급된 때에는, 중간에 다른 구성요소가 존재하지 않는 것으로 이해되어야 할 것이다. 이는 상하좌우의 배치 관계에서도 동일하다. 예를 들어, 어떤 구성요소가 다른 구성요소 위에 있다고 할 때, 어떤 구성요가 다른 부분의 바로 위에 있는 경우 뿐만 아니라 그 중간에 또 다른 구성요소가 개재되어 있는 경우도 포함한다.When a component is said to be “connected” or “connected” to another component, it is understood that it may be directly connected or connected to the other component, but that other components may exist in between. It should be. On the other hand, when it is mentioned that a component is “directly connected” or “directly connected” to another component, it should be understood that there are no other components in between. This is the same in the top, bottom, left, and right placement relationships. For example, when a component is said to be on top of another component, it includes not only the case where a component is directly on top of another part, but also the case where another component is interposed between them.

또한 네트워크 상의 제1 구성요소와 제2 구성요소가 연결되어 있거나 접속되어 있다는 것은, 유선 또는 무선으로 제1 구성요소와 제2 구성요소 사이에 데이터를 주고 받을 수 있음을 의미한다.In addition, the fact that the first component and the second component on the network are connected or connected means that data can be exchanged between the first component and the second component wired or wirelessly.

이하의 설명에서 사용되는 구성요소에 대한 접미사 "모듈" 및 "부"는 단순히 본 명세서 작성의 용이함만이 고려되어 부여되는 것으로서, 그 자체로 특별히 중요한 의미 또는 역할을 부여하는 것은 아니다. 따라서, 상기 "모듈" 및 "부"는 서로 혼용되어 사용될 수도 있다.The suffixes “module” and “part” for components used in the following description are simply given in consideration of the ease of writing this specification, and do not in themselves give any particularly important meaning or role. Accordingly, the terms “module” and “unit” may be used interchangeably.

이와 같은 구성요소들은 실제 응용에서 구현될 때 필요에 따라 2 이상의 구성요소가 하나의 구성요소로 합쳐지거나, 혹은 하나의 구성요소가 2 이상의 구성요소로 세분되어 구성될 수 있다. 도면 전체를 통하여 동일하거나 유사한 구성요소에 대해서는 동일한 도면 부호를 부여하였고, 동일한 도면 부호를 가지는 구성요소에 대한 자세한 설명은 전술한 구성요소에 대한 설명으로 대체되어 생략될 수 있다.When these components are implemented in actual applications, two or more components may be combined into one component, or one component may be subdivided into two or more components, as needed. The same reference numerals are assigned to identical or similar components throughout the drawings, and detailed descriptions of components having the same reference numerals may be omitted and replaced with descriptions of the above-described components.

또한, 본 발명은 본 명세서에 표시된 실시예들의 모든 가능한 조합들을 망라한다. 본 발명의 다양한 실시예는 서로 다르지만 상호 배타적이지 않다. 본 명세서에 기술된 특정 형상, 구조, 기능, 및 특성의 일 실시예는 다른 실시예로 구현될 수 있다. 예를 들어, 제1 및 제2 실시예에서 언급되는 구성요소는 제1 및 제2 실시예의 모든 기능을 수행할 수 있다.Additionally, the present invention encompasses all possible combinations of the embodiments shown herein. The various embodiments of the present invention are different from one another but are not mutually exclusive. The specific shapes, structures, functions, and characteristics described herein in one embodiment may be implemented in other embodiments. For example, components mentioned in the first and second embodiments can perform all the functions of the first and second embodiments.

어떤 실시예가 달리 구현 가능한 경우에 특정한 공정 순서는 설명되는 순서와 다르게 수행될 수도 있다. 예를 들어, 연속하여 설명되는 두 공정이 실질적으로 동시에 수행될 수도 있고, 설명되는 순서와 반대의 순서로 진행될 수 있다.In cases where an embodiment can be implemented differently, a specific process sequence may be performed differently from the described sequence. For example, two processes described in succession may be performed substantially at the same time, or may be performed in an order opposite to that in which they are described.

도 1은 본 발명의 일 실시예에 의한 상담 시스템의 블록 구성도(block diagram)이다. 도 2는 도 1의 단말기의 블록 구성도이고, 도 3은 도 1의 서버의 블록 구성도이다. 도 4 및 도 5는 사용자 단말기에서 구동되는 상담 앱의 채팅창을 도시한다.1 is a block diagram of a counseling system according to an embodiment of the present invention. Figure 2 is a block diagram of the terminal of Figure 1, and Figure 3 is a block diagram of the server of Figure 1. Figures 4 and 5 show a chat window of a counseling app running on a user terminal.

도 1을 참조하면, 본 발명의 통신시스템은 서버(10), 내담자 단말기(60), 및 상담사 단말기(70)를 포함할 수 있다.Referring to Figure 1, the communication system of the present invention may include a server 10, a client terminal 60, and a counselor terminal 70.

내담자 단말기(60)는 상담을 받으려는 사용자가 이용하는 단말기이고, 상담사 단말기(70)는 상담을 통하여 문제를 해결할 수 있도록 도와주거나 궁금증을 풀어 주는 일을 전문으로 하는 사람이 이용하는 단말기이다.The client terminal 60 is a terminal used by a user who wants to receive counseling, and the counselor terminal 70 is a terminal used by a person who specializes in helping solve problems or answering questions through counseling.

서버(10), 내담자 단말기(60), 및 상담사 단말기(70) 중 적어도 서버(10)와 상담사 단말기(70)는 데이터 통신이 가능하고, 내담자 단말기(60)와 상담사 단말기(70)는 적어도 유선 전화망을 이용한 오디오 통신이 가능할 수 있다.Among the server 10, the client terminal 60, and the counselor terminal 70, at least the server 10 and the counselor terminal 70 are capable of data communication, and the client terminal 60 and the counselor terminal 70 are at least wired. Audio communication using a telephone network may be possible.

내담자 단말기(60) 및 상담사 단말기(70)는 유선 전화기 또는 전화 통화가 가능한 PC 등의 전자기기일 수 있다. 내담자 단말기(60) 및 상담사 단말기(70)는 무선 통신이 가능한 전자기기로, 스마트 폰(Smart Phone), 휴대 단말기(Portable Terminal), 이동 단말기(Mobile Terminal), 개인 정보 단말기(Personal Digital Assistant: PDA), PMP(Portable Multimedia Player) 단말기, 텔레매틱스(Telematics) 단말기, 내비게이션(Navigation) 단말기, 개인용 컴퓨터(Personal Computer), 노트북 컴퓨터, 슬레이트 PC(Slate PC), 태블릿 PC(Tablet PC), 울트라북(ultrabook), 웨어러블 디바이스(Wearable Device, 예를 들어, 워치형 단말기(Smartwatch), 글래스형 단말기(Smart Glass), HMD(Head Mounted Display) 등 포함), 와이브로(Wibro) 단말기, IPTV(Internet Protocol Television) 단말기, 스마트 TV, 디지털방송용 단말기, AVN(Audio Video Navigation) 단말기, A/V(Audio/Video) 시스템, 및 플렉시블 단말기(Flexible Terminal) 중 어느 하나이거나 조합된 것일 수 있다. 본 발명에서, 적어도 상담사 단말기(70)는 응용 프로그램 설치가 가능한 단말기인 것이 바람직하다.The client terminal 60 and the counselor terminal 70 may be electronic devices such as a wired phone or a PC capable of making phone calls. The client terminal 60 and counselor terminal 70 are electronic devices capable of wireless communication, including a smart phone, portable terminal, mobile terminal, and personal digital assistant (PDA). ), PMP (Portable Multimedia Player) terminal, telematics terminal, navigation terminal, personal computer, laptop computer, Slate PC, Tablet PC, ultrabook ), wearable devices (e.g., including watch type terminal (Smartwatch), glass type terminal (Smart Glass), HMD (Head Mounted Display), etc.), Wibro terminal, IPTV (Internet Protocol Television) terminal , Smart TV, digital broadcasting terminal, AVN (Audio Video Navigation) terminal, A/V (Audio/Video) system, and flexible terminal (Flexible Terminal) may be any one or a combination. In the present invention, it is preferable that at least the counselor terminal 70 is a terminal capable of installing an application program.

내담자 단말기(60)가 일반 유선 전화기일 경우, 내담자 단말기(60)는 유선 전화망을 통해 상담사 단말기(70)와 전화 통신할 수 있다. 상담사 단말기(70)는 데이터 통신망(인터넷 등)을 통해 서버(10)과 데이터 통신을 할 수 있다. 상담사 단말기(70)는 내담자 단말기(60)와 주고 받는 오디오 신호를 서버(10)로 전달할 수 있다. 내담자 단말기(60)가 데이터 통신이 가능한 단말기일 경우, 서버(10)와 데이터 통신을 할 수 있다. 이하, 내담자 단말기(60)는 데이터 통신이 가능한 단말기로 가정하고 설명한다.When the client terminal 60 is a general wired telephone, the client terminal 60 can communicate with the counselor terminal 70 through a wired telephone network. The counselor terminal 70 can communicate with the server 10 through a data communication network (Internet, etc.). The counselor terminal 70 may transmit audio signals exchanged with and received from the client terminal 60 to the server 10. If the client terminal 60 is a terminal capable of data communication, data communication can be performed with the server 10. Hereinafter, the client terminal 60 will be described assuming that it is a terminal capable of data communication.

도 2를 참조하면, 단말기는 단말기 제어부(210), 단말기 통신부(220), 단말기 입력부(230), 조작부(240), 단말기 출력부(250), 및 단말기 저장부(260)를 포함할 수 있다. 본 단말기는 내담자 단말기(60) 및/또는 상담사 단말기(70)일 수 있으며, 적어도 상담사 단말기(70)일 수 있다.Referring to FIG. 2, the terminal may include a terminal control unit 210, a terminal communication unit 220, a terminal input unit 230, an operation unit 240, a terminal output unit 250, and a terminal storage unit 260. . This terminal may be the client terminal 60 and/or the counselor terminal 70, or at least the counselor terminal 70.

단말기 통신부(220)는 유/무선 통신 기술을 이용하여 통신 네트워크의 다른 구성요소와 통신할 수 있다.The terminal communication unit 220 can communicate with other components of the communication network using wired/wireless communication technology.

유선 통신 기술로 전력선 통신(Power Line Communication: PLC), USB 통신, 이더넷(Ethernet), 시리얼 통신(serial communication), 광/동축 케이블 등을 이용할 수 있다.Wired communication technologies include Power Line Communication (PLC), USB communication, Ethernet, serial communication, and optical/coaxial cables.

무선 통신 기술로 근거리 통신 기술, 무선 인터넷 기술, GPS 기술, 이동통신 기술, 및 저전력 광역 네트워크 기술 등이 이용될 수 있다.Wireless communication technology may include short-range communication technology, wireless Internet technology, GPS technology, mobile communication technology, and low-power wide area network technology.

근거리 통신 기술로 블루투스(Bluetooth), RFID(Radio Frequency Identification), 적외선 통신(IrDA, infrared Data Association), UWB(Ultra Wideband), 지그비(ZigBee), 인접 자장 통신(Near Field Communication: NFC), 초음파 통신(Ultra Sound Communication: USC), 가시광 통신(Visible Light Communication: VLC) 등이 이용될 수 있다.Short-range communication technologies include Bluetooth, RFID (Radio Frequency Identification), IrDA (infrared Data Association), UWB (Ultra Wideband), ZigBee, Near Field Communication (NFC), and ultrasonic communication. (Ultra Sound Communication: USC), Visible Light Communication (VLC), etc. can be used.

무선 인터넷 기술로 WLAN(Wireless LAN)(Wi-Fi), DLNA(Digital Living Network Alliance), Wibro(Wireless broadband), Wimax(World Interoperability for Microwave Access), HSDPA(High Speed Downlink Packet Access) 등이 이용될 수 있다. 무선 인터넷 기술은 근거리 통신에 적합할 수 있다.Wireless Internet technologies include WLAN (Wireless LAN) (Wi-Fi), DLNA (Digital Living Network Alliance), Wibro (Wireless broadband), Wimax (World Interoperability for Microwave Access), and HSDPA (High Speed Downlink Packet Access). You can. Wireless Internet technology may be suitable for short-distance communication.

이동통신 기술로 GSM(Global System for Mobile communication), CDMA(Code Division Multi Access), CDMA2000(Code Division Multi Access 2000), EV-DO(Enhanced Voice-Data Optimized or Enhanced Voice-Data Only), WCDMA(Wideband CDMA), HSDPA(High Speed Downlink Packet Access), HSUPA(High Speed Uplink Packet Access), LTE(Long Term Evolution), LTEA(Long Term Evolution-Advanced), 차세대 이동통신(5G 등) 등이 이용될 수 있다.Mobile communication technologies include GSM (Global System for Mobile communication), CDMA (Code Division Multi Access), CDMA2000 (Code Division Multi Access 2000), EV-DO (Enhanced Voice-Data Optimized or Enhanced Voice-Data Only), and WCDMA (Wideband). CDMA), HSDPA (High Speed Downlink Packet Access), HSUPA (High Speed Uplink Packet Access), LTE (Long Term Evolution), LTEA (Long Term Evolution-Advanced), next-generation mobile communications (5G, etc.) can be used. .

저전력 광역 네트워크(LPWAN; Low Power Wide Area Network)는 서비스 범위가 매우 넓고(10km 이상) 초당 수백 킬로비트(kbps) 가량의 통신 속도를 제공하는 저전력의 무선 광역 통신망을 의미할 수 있다. 저전력 광역 네트워크 기술은 사물인터넷(Internet of Things, IoT)을 제공하기 위한 전용 통신 기술로 이용될 수 있다. LPWAN를 실현하기 위해, 로라(LoRaWAN; Long Range wireless network), 시그폭스(SIGFOX), 엘티이-엠티시(LTE-MTC: LTE Machine-Type Communications), 협대역 사물 인터넷(NB-IoT) 등의 기술이 있을 수 있다.Low Power Wide Area Network (LPWAN) can refer to a low-power wireless wide area network that has a very wide service range (more than 10 km) and provides communication speeds of hundreds of kilobits per second (kbps). Low-power wide area network technology can be used as a dedicated communication technology to provide the Internet of Things (IoT). To realize LPWAN, LoRaWAN (Long Range wireless network), SIGFOX, LTE-MTC (LTE Machine-Type Communications), narrowband Internet of Things (NB-IoT), etc. There may be technology.

단말기 입력부(230)는 오디오 신호 입력을 위한 마이크를 구비할 수 있다. 단말기 입력부(230)은 비디오 신호 입력을 위한 카메라를 구비할 수 있다.The terminal input unit 230 may be equipped with a microphone for inputting audio signals. The terminal input unit 230 may be equipped with a camera for inputting video signals.

마이크는 외부의 음향 신호를 입력 받아 전기적인 음성 데이터로 처리할 수 있다. 처리된 음성 데이터는 단말기 통신부(220)을 통해 외부(서버(10)나 상대방 단말기 등)로 전송될 수 있다.A microphone can receive external acoustic signals and process them into electrical voice data. The processed voice data can be transmitted to the outside (server 10, the other party's terminal, etc.) through the terminal communication unit 220.

카메라는 화상 통화모드 또는 촬영 모드에서 이미지 센서에 의해 얻어지는 정지영상 또는 동영상 등의 화상 프레임을 처리할 수 있다. 처리된 화상 프레임은 후술하는 디스플레이 모듈(255)에 표시될 수 있다. 카메라에서 처리된 화상 프레임은 단말기 저장부(260)에 저장되거나 단말기 통신부(220)를 통하여 외부로 전송될 수 있다.The camera can process image frames such as still images or videos obtained by an image sensor in video call mode or shooting mode. The processed image frame may be displayed on the display module 255, which will be described later. Image frames processed by the camera may be stored in the terminal storage unit 260 or transmitted externally through the terminal communication unit 220.

단말기 조작부(사용자 입력부)(240)는 사용자가 단말기의 동작 제어를 위하여 입력하는 키 입력 데이터를 발생시킨다. 단말기 조작부(240)는 사용자의 푸시 또는 터치 조작에 의해 명령 또는 정보를 입력받을 수 있는 키보드, 마우스, 키 패드(key pad), 돔 스위치(dome switch), 터치 패드(정압/정전) 등으로 구성될 수 있다. 또한, 단말기 조작부(240)는 키를 회전시키는 조그 휠 또는 조그 방식이나 조이스틱과 같이 조작하는 방식이나, 핑거 마우스 등으로 구성될 수 있다. 특히, 터치 패드가 후술하는 디스플레이 모듈(255)과 상호 레이어 구조를 이룰 경우, 이를 터치스크린(touch screen)이라 부를 수 있다.The terminal operation unit (user input unit) 240 generates key input data that the user inputs to control the operation of the terminal. The terminal operation unit 240 is composed of a keyboard, mouse, key pad, dome switch, and touch pad (static/electrostatic) that can receive commands or information through a user's push or touch operation. It can be. Additionally, the terminal operation unit 240 may be configured with a jog wheel or a jog method for rotating keys, a method of operating such as a joystick, or a finger mouse. In particular, when the touch pad forms a mutual layer structure with the display module 255, which will be described later, it can be called a touch screen.

단말기 출력부(250)는 오디오 신호를 출력하기 위한 스피커를 구비할 수 있다. 단말기 출력부(250)는 비디오 신호를 출력하기 위한 디스플레이 모듈(255)를 구비할 수 있다.The terminal output unit 250 may be equipped with a speaker to output an audio signal. The terminal output unit 250 may be equipped with a display module 255 to output a video signal.

디스플레이 모듈(255)은 단말기에서 처리되는 정보를 표시 출력할 수 있다. 전술한 바와 같이, 디스플레이 모듈(255)과 터치패드가 상호 레이어 구조를 이루어 터치스크린으로 구성되는 경우, 디스플레이 모듈(255)은 출력 장치 이외에 사용자의 터치에 의한 정보의 입력이 가능한 입력 장치로도 사용될 수 있다. 이하, 디스플레이 모듈(255)은 사용자 입력이 가능한 터치스크린으로 가정하고 설명한다.The display module 255 can display and output information processed in the terminal. As described above, when the display module 255 and the touch pad form a layered structure to form a touch screen, the display module 255 may be used as an input device capable of inputting information by the user's touch in addition to an output device. You can. Hereinafter, the display module 255 will be described assuming that it is a touch screen capable of user input.

단말기 저장부(260)는 단말기에서 구동되는 다수의 응용 프로그램(어플리케이션), 단말기의 동작을 위한 데이터들, 명령어들을 저장할 수 있다. 이러한 응용 프로그램 중 적어도 일부는 무선 통신을 통해 외부 서버로부터 다운로드 될 수 있다. 응용 프로그램은 단말기 저장부(260)에 저장되고, 단말기 상에 설치되어 단말기 제어부(210)의 제어에 의해 그 동작이나 기능을 수행할 수 있다.The terminal storage unit 260 can store a number of application programs running in the terminal, data for operating the terminal, and commands. At least some of these applications may be downloaded from an external server via wireless communication. The application program is stored in the terminal storage unit 260, is installed on the terminal, and can perform its operations or functions under the control of the terminal control unit 210.

단말기 저장부(260)는 플래시 메모리 타입(Flash Memory Type), 하드 디스크 타입(Hard Disk Type), 멀티미디어 카드 마이크로 타입(Multimedia Card Micro Type), 카드 타입의 메모리(예를 들면, SD 또는 XD 메모리 등), 자기 메모리, 자기 디스크, 광디스크, 램(Random Access Memory: RAM), SRAM(Static Random Access Memory), 롬(Read-Only Memory: ROM), EEPROM(Electrically Erasable Programmable Read-Only Memory), 및 PROM(Programmable Read-Only Memory) 중 어느 하나 또는 일부의 조합으로 구현될 수 있다. 단말기는 인터넷(internet)상에서 단말기 저장부(260)의 저장 기능을 수행하는 웹 스토리지(web storage)를 운영하거나, 또는 상기 웹 스토리지와 관련되어 동작할 수도 있다.The terminal storage unit 260 includes flash memory type, hard disk type, multimedia card micro type, and card type memory (for example, SD or XD memory, etc.) ), magnetic memory, magnetic disk, optical disk, random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), and PROM. (Programmable Read-Only Memory) It can be implemented as any one or a combination of some of them. The terminal may operate web storage that performs the storage function of the terminal storage unit 260 on the Internet, or may operate in relation to the web storage.

단말기 제어부(210)는 각 부의 동작을 제어하여, 단말기의 전반적인 동작에 대한 제어 및 처리를 수행할 수 있다. 단말기 제어부(210)는 마이크로 컨트롤러나 중앙처리장치로 해석될 수 있다.The terminal control unit 210 can control and process the overall operation of the terminal by controlling the operation of each unit. The terminal control unit 210 can be interpreted as a microcontroller or central processing unit.

도 3을 참조하면, 서버(10)는 서버 제어부(110), 서버 통신부(115), 서버 저장부(120), 앱 관리부(125), 문자 변환부(130), 데이터 분석부(135), 빅데이터 처리부(140), 및 상담부(150)를 포함할 수 있다.Referring to FIG. 3, the server 10 includes a server control unit 110, a server communication unit 115, a server storage unit 120, an app management unit 125, a text conversion unit 130, a data analysis unit 135, It may include a big data processing unit 140 and a counseling unit 150.

서버(10)는 서버 통신부(115)를 통해 통신 네트워크의 내담자 단말기(60), 상담사 단말기(70), 및 다른 구성요소와 통신할 수 있다. 서버 통신부(115)는 다양한 유/무선 통신 기술을 이용할 수 있다. 유/무선 통신 기술은 단말기 통신부(220)에 대한 설명을 참고한다.The server 10 may communicate with the client terminal 60, the counselor terminal 70, and other components of the communication network through the server communication unit 115. The server communication unit 115 can use various wired/wireless communication technologies. For wired/wireless communication technology, refer to the description of the terminal communication unit 220.

서버 통신부(115)는 내담자 단말기(60) 및 상담사 단말기(70)의 대화 내용인 음성 데이터를 적어도 상담사 단말기(70)로부터 수신할 수 있다. 서버 통신부(115)는 내담자 단말기(60) 및 상담사 단말기(70) 각각 음성 데이터를 수신하거나, 내담자 단말기(60) 및 상담사 단말기(70) 사이의 음성 데이터를 중계할 수 있다.The server communication unit 115 can receive voice data, which is the content of the conversation between the client terminal 60 and the counselor terminal 70, from at least the counselor terminal 70. The server communication unit 115 may receive voice data from the client terminal 60 and the counselor terminal 70, respectively, or may relay voice data between the client terminal 60 and the counselor terminal 70.

서버 저장부(120)는 다양한 데이터 및 응용 프로그램(어플리케이션)을 저장할 수 있다. 서버 저장부(120)는 다양한 저장 매체로 구현될 수 있다.The server storage unit 120 can store various data and application programs. The server storage unit 120 may be implemented with various storage media.

앱 관리부(125)는 내담자 단말기(60) 및 상담사 단말기(70) 중 적어도 상담사 단말기(70)(이하, '사용자 단말기')에 본 발명에 관련된 상담 앱이 다운로드 되게 할 수 있다. 앱 관리부(125)는 사용자 단말기에서 실행되는 상담 앱과 데이터를 주고 받으며, 해당 데이터를 이용하거나 조작할 수 있다.The app management unit 125 may cause the counseling app related to the present invention to be downloaded to at least the counselor terminal 70 (hereinafter referred to as 'user terminal') among the client terminal 60 and the counselor terminal 70. The app management unit 125 exchanges data with the counseling app running on the user terminal and can use or manipulate the data.

상담 앱을 다운로드 하고 설치한 사용자 단말기는 상담 시 실행되고 있는 상태인 것이 바람직하다.It is desirable that the user terminal on which the counseling app has been downloaded and installed is running at the time of counseling.

문자 변환부(130)는 상담 내용이 들어 있는 음성 데이터를 텍스트 데이터로 변환할 수 있다. 문자 변환부(130)는 상담 내용을 실시간으로 문자로 변환하거나, 상담 완료 후 녹취된 상담 내용을 문자로 변환할 수 있다. 후술할 라벨링 관련하여 실시간으로 문자 변환이 바람직하므로, 이하실시간으로 문자 변환하는 것으로 가정하고 설명한다.The text conversion unit 130 can convert voice data containing consultation content into text data. The text conversion unit 130 can convert the consultation content into text in real time or convert the recorded consultation content into text after the consultation is completed. Since character conversion in real time is desirable in relation to labeling, which will be described later, the description below assumes character conversion in real time.

앱 관리부(125)는 변환된 문자 데이터를 사용자 단말기로 전송되도록 할 수 있다. 문자 데이터를 수신한 사용자 단말기는 디스플레이 모듈(255)에서 실행되고 있는 상담 앱의 채팅 창(A)에 문자로 표시할 수 있다. 다만 이에 한정되지 않고, 휴대폰 또는 스마트폰의 문자 앱에 보여줄 수도 있다.The app management unit 125 can transmit the converted text data to the user terminal. The user terminal that has received the text data can display it as text in the chat window (A) of the counseling app running on the display module 255. However, it is not limited to this and can also be displayed on a text app on a mobile phone or smartphone.

도 4 및 도 5를 참조하면, 상담사와 내담자 사이의 음성으로된 상담 내용이 텍스트로 변환되어 채팅 창(A)에 채팅 형식으로 표시될 수 있다.Referring to Figures 4 and 5, the audio consultation content between the counselor and the client may be converted into text and displayed in a chat format in the chat window (A).

채팅 창(A)은 상담 앱이 실행되거나 녹취된 상담 내용을 구비한 음성 데이터의 생성일, 각 대화 음성이 생성된 시각 등의 메타 데이터를 기초호, 상담일 각 대화가 발화된 시각 등의 부가 정보를 표시할 수 있다.The chat window (A) contains basic metadata such as the creation date of the voice data containing the consultation content recorded or when the counseling app is run, and the time when each conversation voice was created, and additional information such as the consultation date and the time when each conversation was uttered. Information can be displayed.

본 도면이 상담사 단말기(70)에서 실행되는 상담 앱의 채팅 창(A)을 도시한 것이면, 좌측은 내담자가 발화한 대화 박스로 우측은 상담사가 발화한 대화 박스로 표시될 수 있다.If this drawing shows the chat window (A) of the counseling app running on the counselor terminal 70, the left side may be displayed as a conversation box uttered by the client, and the right side may be displayed as a conversation box uttered by the counselor.

사용자 단말기에서 구동되고 있는 상담 앱은 채팅 창(A)에 사용자가 라베링을 할 수 있는 UI(User Interface)를 제공할 수 있다.The counseling app running on the user terminal can provide a UI (User Interface) that allows the user to label the chat window (A).

라벨링의 일례로, 상담 앱은 플래그 기능을 제공할 수 있다. 사용자가 채팅 창(A) 중 어느 한 대화를 터치하거나, 길거 누르거나, 좌측 또는 우측으로 슬라이딩 하는 등의 조작들 중 어느 적어도 어느 한 조작을 수행하면, 상담 앱은 해당 대화에 플래그를 라벨링할 수 있다. 상담 앱은 더블 터치 등의 조작이 이루어 지면, 라벨링이 취소할 수 있다.As an example of labeling, a counseling app may provide a flagging feature. When the user performs at least one of the following operations, such as touching, pressing and holding, or sliding to the left or right, any conversation in the chat window (A), the consultation app can label the conversation with a flag. there is. In the counseling app, labeling can be canceled when an operation such as a double touch is performed.

라벨링의 다른 례로, 상담 앱은 태그 기능을 제공할 수 있다. 사용자는 채팅 창(A)의 어느 대화 박스에 태그를 라벨링(태깅)할 수 있다. 태그는 사용자에 의해 작성되거나 기작성된 내용일 수 있다. 기작성된 내용은 '중요도 높음' 및 '중요도 낮음'과 같이 이분하는 등으로 플래그 보다 좀 더 세분화할 수 있다. '중요도 높음' 태깅은 어느 한 대화를 터치하거나 좌측으로 슬라이딩 하는 조작으로, '중요도 낮음' 태깅은 우측으로 슬라이딩 하는 조작으로 수행될 수 있다.As another example of labeling, a counseling app may provide a tagging feature. The user can label (tag) a tag in any dialog box of the chat window (A). Tags may be content created or already created by the user. The previously written content can be further divided into flags, such as dichotomizing it into 'high importance' and 'low importance'. ‘High importance’ tagging can be done by touching a conversation or sliding it to the left, and ‘low importance’ tagging can be done by sliding it to the right.

사용자는 중요한 내용이거나 필수적인 내용이라고 생각하는 주요 정보를 구비한 대화 박스에 플래그나 해당 태그가 라벨링되도록 조작을 가할 수 있다. 주요 정보는 내담자 정보, 상담 분야, 상담 내용, 제안 내용, 내담자 만족도 등이 있을 수 있다. 주요 정보는 카테고리화하여 미리 매뉴얼화되어, 상담사기 이를 인식하고 있는 것이 바람직하다. 이러한 라벨링은 상담사 뿐만 아니라 내담자도 주요 정보라고 생각하는 대화 박스에 라벨링 조작을 할 수 있다.Users can manipulate dialog boxes containing key information they consider important or essential to be labeled with flags or corresponding tags. Key information may include client information, counseling field, counseling content, suggestion content, client satisfaction, etc. It is advisable to categorize key information and manualize it in advance so that you are aware of counseling fraud. This labeling allows not only the counselor but also the client to manipulate labeling in dialog boxes that they consider to be important information.

상담 앱은 라벨링 조작이 이루어지면, 해당 대화 박스를 다르게 표시되도록 할 수 있다. 도 5의 예를 들면, 주요 정보로 태그되거나 플래그 처리된 대화 박스는 테두리가 더 두꺼워지게 표시하고, 중요도가 낮은 것으로 태그된 대화 박스는 그 테두리가 점선으로 표시되도록 할 수 있다. 다른 예로 배경색이나 대화 박스 안의 텍스트 속성(폰트, 색상, 크기 등)이 달라지게 할 수 있다.The counseling app can display the corresponding dialog box differently when labeling manipulation is performed. For example in Figure 5, a dialog box tagged or flagged as important information may be displayed with a thicker border, and a dialog box tagged as having low importance may have its border displayed as a dotted line. As another example, the background color or text properties (font, color, size, etc.) in a dialog box can be changed.

상담 앱은 라벨링 조작이 이루어 지면, 상담 앱은 해당 대화의 식별자와 라벨링된 문구 라벨(플래그, 태그 등)이 서버(10)로 전송되도록 할 수 있다.When labeling manipulation is performed in the counseling app, the identifier of the conversation and the labeled phrase label (flag, tag, etc.) can be transmitted to the server 10.

앱 관리부(125)는 문구 라벨을 수신하면, 대화 식별자를 참조하여, 해당 대화에 문구 라벨이 연관(라벨링)되도록 할 수 있다.When the app management unit 125 receives a phrase label, it can refer to the conversation identifier and associate (label) the phrase label with the corresponding conversation.

데이터 분석부(135)는 텍스트 데이터를 분석할 수 있다. 데이터 분석부(135)는 텍스트 데이터 분석시 문구 라벨를 참조할 수 있다. 데이터 분석부(135)는 문구 라벨을 통해 텍스트 데이터의 어느 대화가 중요한 것인지, 및/또는 중요하지 않은 것인지 등을 판단할 수 있다. 데이터 분석부(135)는 중요하지 않은 대화는 분석에 누락시키고, 중요한 대화는 가중치를 높일 수 있다.The data analysis unit 135 can analyze text data. The data analysis unit 135 may refer to phrase labels when analyzing text data. The data analysis unit 135 may determine which conversations in the text data are important and/or unimportant through the phrase labels. The data analysis unit 135 may omit unimportant conversations from the analysis and increase the weight of important conversations.

데이터 분석부(135)는 텍스트 데이터의 구조를 파악하고, 문장 분할, 분석, 추출, 원형 복원 등을 거쳐 의미를 가지는 최소 단위의 형태소를 추출할 수 있다.The data analysis unit 135 can determine the structure of text data and extract the smallest meaningful unit of morpheme through sentence segmentation, analysis, extraction, and original restoration.

데이터 분석부(135)는 문구 라벨이 참조된 텍스트 데이터를 분석하여 상담 내용 분석물을 생성할 수 있다. 상담 내용 분석물은 추출된 형태소를 기 정의된 카테고리로 분류된 것일 수 있다. 분류 카테고리는 내담자 정보, 상담자 정보, 상담 분야, 상담 내용, 주요 키워드, 문제 해결 방안, 내담자 만족도 등이 있을 수 있다. 카테고리를 구성하는 정보 중 일부는 문구 라벨이 연관될 수 있다.The data analysis unit 135 may generate a consultation content analysis product by analyzing text data referenced by the phrase label. Counseling content analysis may be extracted morphemes classified into predefined categories. Classification categories may include client information, counselor information, counseling field, counseling content, major keywords, problem solution plan, and client satisfaction. Some of the information that makes up a category may be associated with a phrase label.

데이터 분석부(135)에 의한 분류는 다양한 기법이 적용될 수 있다. 예를 들어, 단어의 의미, 단어들 중 우선 순위, 단어들 간의 상관도, 문장의 의미를 해석하는 방법, 내담자 상태를 파악하기 위한 방법 등의 분석 방법이 미리 저장되어 있고, 데이터 분석부(135)는 저장된 분석 방법을 이용할 수 있다. 문구 라벨은 단어로 삽입되거나, 원형 복원에 이용될 수 있다. 문구 라벨은 해당 단어에 연관되어 있을 수 있다.Various techniques may be applied to classification by the data analysis unit 135. For example, analysis methods such as the meaning of words, priority among words, correlation between words, method of interpreting the meaning of sentences, and method of understanding the client's condition are stored in advance, and the data analysis unit (135) ) can use stored analysis methods. Phrase labels can be inserted as words or used to restore their original form. A phrase label may be associated with the corresponding word.

데이터 분석부(135)는 분석된 상담 내용 분석물을 이용하여 요약문을 생성하거나, 요약문을 업데이트할 수 있다. 데이터 분석부(135)는 실시간으로 분석하여 요약문을 최초 생성한 후 계속 업데이트하거나, 상담이 종료된 후에 요약문을 생성할 수 있다.The data analysis unit 135 may generate a summary or update the summary using the analyzed counseling content analysis. The data analysis unit 135 may analyze in real time and continuously update the summary after initially generating it, or may generate the summary after the consultation ends.

데이터 분석부(135)는 주요 키워드나 중요 라벨이 연관된 문장을 중심으로 요약문을 생성할 수 있다.The data analysis unit 135 may generate a summary centered on sentences related to key keywords or important labels.

요약문은 후술하는 상담 보조 내용을 추가로 구비할 수 있다. 요약문은 상담사가 내담자에게 제안한 문제 해결 방안 등의 내용을 내담자가 수행하기 위한 세부 정보를 구비할 수 있다. 세부 정보는 병원 정보, 질병 관련 정보, 여행 정보, 음식점 정보, 오락 정보, 서적 관련 정보, 전문가 정보, 학교 정보 등이 있을 수 있다. 세부 정보는 다른 내담자가 수행한 내용을 구비할 수 있다.The summary may include additional counseling assistance content, which will be described later. The summary may contain detailed information for the client to carry out the problem solution plan suggested by the counselor to the client. Detailed information may include hospital information, disease-related information, travel information, restaurant information, entertainment information, book-related information, expert information, school information, etc. Details may include what other clients have done.

빅데이터 처리부(140)는 텍스트 데이터를 빅데이터 처리하여 빅데이터 처리물을 생성할 수 있다. 빅데이터 처리부(140)는 상담 내용 분석물 및/또는 생성되거나 업데이트 중인 요약문을 참조하여 빅데이터 처리할 수 있다. 빅데이터 처리부(140)에 이용되는 텍스트 데이터는 형태소 분석이 완료된 데이터일 수 있다.The big data processing unit 140 may process text data as big data to generate a big data processed product. The big data processing unit 140 may process big data by referring to the analysis of the consultation content and/or the summary that is being created or being updated. Text data used in the big data processing unit 140 may be data for which morphological analysis has been completed.

빅데이터 처리부(140)는 해당 내담자와의 텍스트 데이터 외의 비정형 데이터, 다른 내담자의 상담 데이터 등을 수집 저장하고, 이를 전처리하여 다양한 분석 기법(통계 분석, 딥러닝, 머신 러닝 등)을 통해 예측, 분류, 등의 상담 내용 분석물를 생성할 수 있다.The big data processing unit 140 collects and stores unstructured data other than text data with the client, counseling data from other clients, etc., preprocesses it, and predicts and classifies it through various analysis techniques (statistical analysis, deep learning, machine learning, etc.) Consultation content analysis, such as , can be generated.

상담 내용 분석물은 내담자와 유사한 상담 내용과 관련된 상담 유형, 상담사에 대한 평가, 주요 문제 해결 방안, 내담자의 만족도 등이 있을 수 있다.Counseling content analysis may include types of counseling related to similar counseling content as the client, evaluation of the counselor, solutions to major problems, and client satisfaction.

빅데이터 처리부(140)는 빅데이터 처리물로부터 본 상담의 보조 내용을 도출하여, 상담 보조 내용을 상담사 단말기(70)로 전송되도록 할 수 있다.The big data processing unit 140 can derive the auxiliary content of the consultation from the big data processed product and transmit the auxiliary counseling content to the counselor terminal 70.

상담부(150)는 일종의 인공 지능 상담을 담당할 수 있다. 상담부(150)는 내담자가 상담사 없이 상담을 원할 경우, 내담자와 상담할 수 있다. 상담부(150)는 챗봇이나 음성 인식 상담을 진행할 수 있다. 상담부(150)는 문자 변환부(130)의 기능을 이용하여 내담자의 음성을 텍스트로 인식할 수 있다. 상담부(150)는 데이터 분석부(135) 및/또는 빅데이터 처리부(140)를 통해, 내담자와 대화를 주고 받으며, 적절한 상담이 이루어지도록 할 수 있다. 다만 이에 한정되지 않고, 상담부(150)는 그 자체로 머신 러닝이나 딥러닝을 수행하여 상담을 수행할 수 있다.The counseling department 150 may be responsible for a type of artificial intelligence counseling. The counseling department 150 can provide counseling with the client if the client wishes to have counseling without a counselor. The counseling department 150 can provide chatbot or voice recognition counseling. The counseling unit 150 can recognize the client's voice as text using the function of the text conversion unit 130. The counseling unit 150 can communicate with the client through the data analysis unit 135 and/or the big data processing unit 140 and ensure that appropriate counseling is provided. However, it is not limited to this, and the counseling unit 150 may itself perform machine learning or deep learning to perform counseling.

상담부(150)는 기존의 상담 데이터가 많을 수록 더 적절하고 정확하게 내담자의 문제를 해결할 수 있도록 조력할 수 있다. 상담부(150)는 기저장된 다양한 상담 데이터를 통해 내담자 각각의 개인에 맞춤인 심리 지원을 제공할 수 있다.The more existing counseling data the counseling department 150 has, the more appropriately and accurately it can help solve the client's problems. The counseling unit 150 can provide psychological support tailored to each individual client through various pre-stored counseling data.

앱 관리부(125)에서 제공하는 상담 앱은 사용자 단말기의 상담 앱이 인공 지능 상담에 필요한 유저 인터페이스(UI)를 제공할 수 있다.The consultation app provided by the app management unit 125 may provide a user interface (UI) necessary for artificial intelligence consultation.

도 6은 도 1의 상담 시스템의 동작을 설명하기 위한 순서도이다. 도 1 내지 도 5를 참고한다. 도 6은 본 발명의 일 실시예에 따른 빅데이터 분석을 통한 개인 맞춤 심리지원 서비스 제공 방법을 서버(10) 측면에서 본 것이다.FIG. 6 is a flowchart for explaining the operation of the counseling system of FIG. 1. Refer to Figures 1 to 5. Figure 6 shows a method of providing personalized psychological support services through big data analysis according to an embodiment of the present invention, viewed from the side of the server 10.

도 6을 참조하면, 서버(10)는 사용자 단말기로부터 내담자와 상담사 사이의 상담 내용인 음성 데이터를 수신할 수 있다(S310). 서버(10)는 음성 데이터를 텍스트 데이터로 변환할 수 있다(S315). 서버(10)는 텍스트 데이터를 사용자 단말기로 전송 수 있다(S320).Referring to FIG. 6, the server 10 may receive voice data, which is the content of the consultation between the client and the counselor, from the user terminal (S310). The server 10 can convert voice data into text data (S315). The server 10 may transmit text data to the user terminal (S320).

서버(10)는 사용자 단말기로부터 사용자에 의해 조작된 문구 라벨을 수신(S325)하면, 문구 라벨을 해당 대화에 라벨링할 수 있다(S330).When the server 10 receives a phrase label manipulated by the user from the user terminal (S325), it can label the conversation with the phrase label (S330).

서버(10)는 문구 라벨를 참조하여 텍스트 데이터를 분석 수 있다(S335). 서버(10)는 분석된 상담 내용 분석물을 이용하여 요약문을 생성하거나 기 생성된 요약문을 업데이트 수 있다(S340). 요약문 중 일부 내용은 문구 라벨과 연관될 수 있다.The server 10 can analyze text data by referring to the phrase label (S335). The server 10 may generate a summary or update a previously generated summary using the analyzed counseling content (S340). Some of the content in the summary may be associated with text labels.

서버(10)는 텍스트 데이터를 빅데이터 처리하여 빅데이터 처리물을 생성할 수 있다(S345). 빅데이터 처리시 상담 내용 분석물을 이용할 수 있다.The server 10 may process text data as big data to generate a big data processed product (S345). When processing big data, analysis of consultation contents can be used.

서버(10)는 빅데이터 처리물로부터 상담 보조 내용을 도출 수 있다(S350).The server 10 can derive counseling assistance content from big data processing (S350).

상담이 종료되면, 서버(10)는 최종 요약문을 생성할 수 있다(S335).When the consultation ends, the server 10 can generate a final summary (S335).

도 6은 서버(10)가 내담자 단말기(60) 및 상담사 단말기(70) 사이의 음성을 중계하거나, 적어도 상담사 단말기(70)으로부터 음성 데이터를 수신하는 것으로 설명하였지만, 이에 한정되지 않는다. 서버(10)가 인공 지능 상담을 수행할 경우, 서버(10)는 내담자 단말기(60)으로부터 음성 데이터를 수신(S310)하고, 이를 텍스트 데이터로 변환하고(S315), 필요시 텍스트 데이터를 내담자 단말기(60)로 전송(S320)하고, 내담자가 채팅 창(A)의 대화 박스를 조작하면 내담자 단말기(60)으로부터 문구 라벨를 수신(S325)하여 해당 대화에 라벨링(S330)하고, 텍스트 데이터를 분석하(S335)하고, 요약문을 업데이트(S340)하고, 텍스트 데이터를 빅데이터 처리(S345)하여, 상담에 필요한 내용을 도출(S350)하여 상담을 수행할 수 있다. 상담이 종료되면, 서버(10)는 최종 요약문을 생성할 수 있다(S355).6 illustrates that the server 10 relays voice between the client terminal 60 and the counselor terminal 70, or at least receives voice data from the counselor terminal 70, but the server 10 is not limited to this. When the server 10 performs artificial intelligence counseling, the server 10 receives voice data from the client terminal 60 (S310), converts it into text data (S315), and, if necessary, sends the text data to the client terminal. It is transmitted to (60) (S320), and when the client manipulates the dialog box of the chat window (A), the phrase label is received from the client terminal (60) (S325), the conversation is labeled (S330), and the text data is analyzed. (S335), the summary is updated (S340), the text data is processed as big data (S345), and the content necessary for counseling is derived (S350) to perform counseling. When the consultation is completed, the server 10 can generate a final summary (S355).

도 7은 본 발명의 다른 실시예에 따른 챗봇 상담 시스템을 나타낸 시스템도이다. 도 8은 본 발명에 따른 심리상담 에이전트 챗봇 장치에 적용되는 러셀(Russell)의 감정 공간을 나타내는 그래프이다. 도 1 내지 도 6을 참고한다.Figure 7 is a system diagram showing a chatbot consultation system according to another embodiment of the present invention. Figure 8 is a graph showing Russell's emotional space applied to the psychological counseling agent chatbot device according to the present invention. Refer to Figures 1 to 6.

도 7을 참조하면, 챗봇 상담 시스템은 심리 상담 에이전트 챗봇 서버(10) 및 내담자 단말기(60)를 포함할 수 있다. 심리 상담 에이전트 챗봇 서버(10) 및 내담자 단말기(60)는 도 1 내지 도 6의 서버(10) 및 내담자 단말기(60)에 각각 대응될 수 있다. 심리 상담 에이전트 챗봇 서버(10)은 빅데이터 및 인공 학습된 서버로, 인공 지능 심리 상담 서비스를 제공할 수 있다. 내담자 단말기(60)는 상담사가 아니라 심리 상담 에이전트 챗봇 서버(10)과 직접 심리 상담을 할 수 있다.Referring to FIG. 7, the chatbot counseling system may include a psychological counseling agent chatbot server 10 and a client terminal 60. The psychological counseling agent chatbot server 10 and the client terminal 60 may correspond to the server 10 and the client terminal 60 of FIGS. 1 to 6, respectively. The psychological counseling agent chatbot server 10 is a big data and artificially learned server that can provide artificial intelligence psychological counseling services. The client terminal 60 can provide psychological counseling directly with the psychological counseling agent chatbot server 10 rather than with a counselor.

내담자 단말기(60)는 심리 상담 에이전트 챗봇 서버(10)와 비대면 심리 상당을 받을 수 있는 어플리케이션을 실행할 수 있다. 어플리케이션은 도 1 내지 도 6의 '상담 앱'에 대응될 수 있다. 상담 앱은 음성이 텍스트로 변환된 대화 내용을 대화 박스로 표시할 뿐만 아니라, 사용자(내담자)가 직접 채팅을 위한 문자 대화를 작성하고 이를 심리 상담 에이전트 챗봇 서버(10)로 송신할 수 있다. 내담자에 의해 작성된 대화는 상담 앱의 채팅 창(A)에 표시될 수 있다.The client terminal 60 can run the psychological counseling agent chatbot server 10 and an application that can receive non-face-to-face psychological counseling. The application may correspond to the 'counseling app' of FIGS. 1 to 6. The counseling app not only displays the conversation content converted from voice to text in a dialog box, but also allows the user (client) to directly write a text conversation for chatting and send it to the psychological counseling agent chatbot server (10). Conversations written by the client can be displayed in the chat window (A) of the counseling app.

내담자 단말기(60)은 어플리케이션을 실행하여 심리 상담을 위한 상담 문장을 심리 상담 에이전트 챗봇 서버(10)로 송신할 수 있다. 내담자 단말기(60)은 심리 상담 에이전트 챗봇 서버(10)로부터 송신된 상담 진행 문장을 수신할 수 있다.The client terminal 60 may execute the application and transmit a counseling sentence for psychological counseling to the psychological counseling agent chatbot server 10. The client terminal 60 may receive a counseling progress sentence transmitted from the psychological counseling agent chatbot server 10.

내담자 단말기(60)은 심리 상담 에이전트 챗봇 서버(10)와 상담 문장 및 상담 진행 문장을 송신 및 수신함으로써, 현재 감정에 대한 심리 상담을 받을 수 있다.The client terminal 60 can receive psychological counseling regarding current emotions by transmitting and receiving counseling sentences and counseling progress sentences with the psychological counseling agent chatbot server 10.

내담자 단말기(60)의 내담자와의 상담은 심리 상담 에이전트 챗봇 서버(10)의 상담부(150)에서 주로 수행될 수 있다.Counseling with clients of the client terminal 60 may be mainly performed in the counseling unit 150 of the psychological counseling agent chatbot server 10.

심리 상담 에이전트 챗봇 서버(10)는 텍스트 기반 대화를 통해 현재 감정이 부정적인 감정(예를 들어, 슬픔, 화남, 두려움, 짜증남, 외로움 등)인지를 인식하고, 적절한 대화를 통해 부정적인 감정의 크기를 감소시키기 위한 챗봇 에이전트(agent) 기술을 적용한 것일 수 있다. 또한, 심리 상담 에이전트 챗봇 서버(10)는 심리 상담과 관련된 주요 내용을 사용자의 동의 하에 데이터베이스에 저장함으로써, 효율적인 심리 상담을 수행할 수 있다.The psychological counseling agent chatbot server 10 recognizes whether the current emotion is a negative emotion (e.g., sadness, anger, fear, irritation, loneliness, etc.) through text-based conversation, and reduces the size of the negative emotion through appropriate conversation. It may be an application of chatbot agent technology to do this. Additionally, the psychological counseling agent chatbot server 10 can perform efficient psychological counseling by storing key content related to psychological counseling in a database with the user's consent.

도 8을 참조하면, 러셀(Russell)의 감정 공간에 대한 그래프는 두 개의 독립적인 매개 변수인 각성 정도(arousal)과 쾌감 정도(pleasure) 축으로 구성된 2차원 감정 공간 상에 21 종류의 다양한 감정이 맵핑(mapping)된다. 구체적으로, 도 8에 도시된 그래프에서 1사분면과 4사분면에 위치하는 감정들은 긍정적인 감정(예를 들어, 편안함, 행복함, 즐거움, 흥분됨 등)이며, 2사분면과 3사분면에 위치하는 감정들은 부정적인 감정(예를 들어, 슬픔, 화남, 두려움, 짜증남 등)이다. 따라서, 사용자가 긍정적인 감정을 가지는 경우, 축하해주고 그 즐거움에 동조하면 된다. 하지만, 사용자가 부정적인 감정을 가지는 경우, 그 감정이 누그러질 수 있도록 적극적으로 대화를 이끌어 갈 필요가 있다.Referring to Figure 8, the graph of Russell's emotion space shows 21 different types of emotions in a two-dimensional emotion space composed of two independent parameters, arousal and pleasure axes. It is mapped. Specifically, in the graph shown in Figure 8, the emotions located in the first and fourth quadrants are positive emotions (e.g., comfort, happiness, joy, excitement, etc.), and the emotions located in the second and third quadrants are positive emotions. Negative emotions (e.g., sad, angry, fearful, irritated, etc.) Therefore, if the user has positive emotions, just congratulate him and join in on his joy. However, if the user has negative emotions, it is necessary to actively lead a conversation to alleviate those emotions.

서버 통신부(115)는 사용자 단말로부터 송신된 상담 문장을 수신할 수 있으며, 상담부(150)에 의해 생성된 상담 진행 문장을 상기 사용자 단말로 송신할 수 있다.The server communication unit 115 may receive a counseling sentence transmitted from a user terminal, and may transmit a counseling progress sentence generated by the counseling unit 150 to the user terminal.

내담자는 카메라, 마이크 등을 이용하여 자신의 얼굴을 촬영하거나 음성을 입력할 수 있다. 문자 변환부(130)는 얼굴 인식을 통해 사용자의 입모양으로부터 입력 문장을 추출하거나, 음성-텍스트 변환(STT: Speech-to-Text)을 이용하여 사용자의 음성을 텍스트로 변환하여 상담 문장을 획득할 수 있다.Clients can film their face or input their voice using a camera or microphone. The text converter 130 extracts an input sentence from the user's mouth shape through facial recognition, or converts the user's voice into text using speech-to-text (STT) to obtain a consultation sentence. can do.

문자 변환부(130)는 텍스트를 역으로 음성으로 변환할 수 있다. 문자 변환부(130)는 텍스트-음성 변환(TTS: Text-to-Speech)을 이용하여 상담 진행 문장을 음성 데이터로 변환하여, 내담자 단말기(60)의 스피커에서 음성으로 출력되도록 할 수 있다.The text converter 130 can reversely convert text into voice. The text converter 130 can convert the counseling progress sentences into voice data using text-to-speech (TTS) and output it as a voice from the speaker of the client's terminal 60.

데이터 분석부(135)는 서버 통신부(115)에서 수신하거나 서버 저장부(120)에서 변환한 상담 문장을 구문 분석하여, 복수의 단어로 분할할 수 있다. 데이터 분석부(135)는 자연어 처리 기법을 이용하여 입력 문장에 대한 형태소 분석 및/또는 구문 분석(parsing) 등을 수행할 수 있다. 형태소 분석(추출)은 앞선 내용을 참고한다.The data analysis unit 135 may parse the counseling sentence received from the server communication unit 115 or converted from the server storage unit 120 and divide it into a plurality of words. The data analysis unit 135 may perform morpheme analysis and/or parsing on the input sentence using natural language processing techniques. For morpheme analysis (extraction), refer to the previous content.

구문 분석은 문장을 이루고 있는 복수의 단어로 분할하고, 분할된 복수의 단어 사이의 관계를 분석하여 문장의 구조를 결정하는 것일 수 있다.Syntactic analysis may be to determine the structure of the sentence by dividing the sentence into a plurality of words and analyzing the relationship between the plurality of divided words.

데이터 분석부(135)는 육하원칙에 따라 입력 문장에 대한 구문 분석을 수행할 수 있다. 예를 들어, 데이터 분석부(135)는 서버 통신부(115)에서 수신한 상담 문장이 "나는 슬퍼."인 것으로 가정하면, 데이터 분석부(135)는 상담 문장을 'who: 나', 및 'what: 슬퍼'와 같이 복수의 단어로 분할할 수 있다. 데이터 분석부(135)는 'how: 감정' 및 'when: 현재'와 같이 기본 값이나 생략된 단어를 추정하여 채워 넣을 수 있다.The data analysis unit 135 may perform syntax analysis on the input sentence according to the hexadecimal principle. For example, if the data analysis unit 135 assumes that the counseling sentence received from the server communication unit 115 is “I am sad,” the data analysis unit 135 may change the counseling sentence to ‘who: me’ and ‘ What: Can be divided into multiple words, such as 'sad'. The data analysis unit 135 can estimate and fill in default values or omitted words such as 'how: emotion' and 'when: present'.

데이터 분석부(135)는 분할한 복수의 단어 중 사용자 감정을 나타내는 적어도 하나의 특정 감정 관련 단어를 추출할 수 있다. 데이터 분석부(135)는 복수의 단어 중 기 설정된 감정 단어에 매칭되는 상기 적어도 하나의 특정 감정 관련 단어를 추출할 수 있다. 예를 들면, 데이터 분석부(135)는 복수의 단어 중 'what: 슬퍼' 단어에서 감정과 관련된 특정 감정 관련 단어인 '슬픔'를 추출할 수 있다.The data analysis unit 135 may extract at least one specific emotion-related word representing the user's emotion from the plurality of divided words. The data analysis unit 135 may extract the at least one specific emotion-related word that matches a preset emotion word from among the plurality of words. For example, the data analysis unit 135 may extract 'sadness', a specific emotion-related word, from the word 'what: sad' among the plurality of words.

서버 저장부(120)는 데이터베이스 기능을 수행할 수 있다. 서버 저장부(120)는 심리 상담에 관련된 다양한 정보를 데이터베이스화하여 저장할 수 있다. 서버 저장부(120)에는 내담자의 기존에 심리 상담을 진행했던 상담 내용을 저장되어 있을 수 있다. 상담 내용은 앞서 서술한 '요약문'으로 저장되어 있거나, 병행되어 저장되어 있을 수 있다.The server storage unit 120 may perform a database function. The server storage unit 120 can store various information related to psychological counseling in a database. The server storage unit 120 may store the contents of the client's previous psychological counseling. The contents of the consultation may be stored as the ‘summary’ described above, or may be stored in parallel.

데이터 분석부(135)는 추출된 특정 감정 관련 단어인 '슬픔'를 서버 저장부(120) 내 'mood_status' 값에 저장할 수 있다.The data analysis unit 135 may store the extracted specific emotion-related word 'sadness' in the 'mood_status' value in the server storage unit 120.

서버 저장부(120)는 문장 기반의 대화를 통해 획득된 사용자의 상담 내용을 저장할 수 있다. 심리 상담의 특성상 사용자에게 이전에 있었던 원인 주체나 사건을 다시 상기시키는 경우, 사용자에게 다시 부정적인 감정이 발생하는 경우가 있다. 따라서, 사용자에게 이전에 질의했던 부정적인 감정의 원인, 부정적인 감정을 유발한 사건 등을 다시 질의하는 것은 짜증을 유발할 수 있다. 이에 따라, 서버 저장부(120)에 상담 내용을 저장한 후, 필요할 때 저장된 상담 내용을 인출하는 기능을 추가하여 사용자에게 부정적인 감정이 다시 발생되는 것을 방지할 수 있다. 상담 내용은 '요약문'에서 추출될 수 있다.The server storage unit 120 may store the user's consultation content obtained through sentence-based conversation. Due to the nature of psychological counseling, if the user is reminded of a previous cause or event, negative emotions may arise again in the user. Therefore, re-inquiring the user about the cause of the negative emotion, the event that caused the negative emotion, etc., which was previously queried, may cause irritation. Accordingly, after storing the consultation contents in the server storage unit 120, a function to retrieve the stored consultation contents when necessary can be added to prevent negative emotions from occurring again in the user. The contents of the consultation can be extracted from the ‘summary’.

서버 저장부(120)는 서버 통신부(115)를 통해 입력되거나 문자 변환부(130)에 의해 변환된 상담 문장, 데이터 분석부(135)를 통해 획득된 복수의 단어와 추출된 적어도 하나의 특정 감정 관련 단어 및 상담부(150)에서 생성된 상담 진행 문장 등과 같이 사용자와의 대화를 통해 획득된 다양한 상담 내용을 저장할 수 있다.The server storage unit 120 stores a counseling sentence input through the server communication unit 115 or converted by the text conversion unit 130, a plurality of words obtained through the data analysis unit 135, and at least one specific emotion extracted. Various counseling contents obtained through conversation with the user, such as related words and counseling progress sentences generated by the counseling unit 150, can be stored.

상담부(150)는 데이터 분석부(135)에서 추출한 적어도 하나의 특정 감정 관련 단어에 대한 감정 크기를 산출하고, 감정 크기에 따라 상담 진행 문장을 생성하여, 내담자 단말기(60)로 전송할 수 있다.The counseling unit 150 may calculate the emotion size for at least one specific emotion-related word extracted from the data analysis unit 135, generate a counseling progress sentence according to the emotion size, and transmit it to the client terminal 60.

상담부(150)는 다양한 상담 기법에 기반하여 심리 상담을 진행하기 위한 문장을 생성할 수 있다.The counseling unit 150 may generate sentences for conducting psychological counseling based on various counseling techniques.

상담 기법은 공지된 다양한 상담 기법을 포함할 수 있다. 예를 들어, 상담 기법은 열린 질문, 재진술 및 반영, 감정 객관화, 공감 반응 위주의 대화, 기다려 주기 등과 같은 것이 있을 수 있다. 이러한 상담 기법은 체계적인 상담이 가능하도록 하고, 사용자가 편안한 상태가 되도록 도움을 줄 수 있다.Counseling techniques may include various known counseling techniques. For example, counseling techniques may include open questions, restatement and reflection, objectification of emotions, conversation centered on empathic responses, waiting, etc. These counseling techniques enable systematic counseling and can help the user be in a comfortable state.

상담 진행 문장은 상담을 진행하기 위해 사용자에게 제공될 문장일 수 있다. 구체적으로, 상담 진행 문장은 사용자의 감정 상태를 파악하기 위한 질문 문장, 사용자의 입력 문장에 응답하기 위한 응답 문장 등과 같이 상담 진행을 위한 다양한 문장을 포함할 수 있다.The consultation progress sentence may be a sentence provided to the user to proceed with the consultation. Specifically, the counseling progress sentences may include various sentences for conducting the consultation, such as question sentences for understanding the user's emotional state, response sentences for responding to the user's input sentences, etc.

상담부(150)는 적어도 하나의 특정 감정 관련 단어에 대해 설정된 감정 중요도에 따라 감정 크기를 산출할 수 있다. 감정 크기는 부정적인 감정을 나타내는 단어들 각각에 부여된 감정 값으로 서버 저장부(120)에 설정되어 있을 수 있다.The counseling unit 150 may calculate the emotion magnitude according to the emotion importance set for at least one specific emotion-related word. The emotion magnitude may be set in the server storage unit 120 as an emotion value assigned to each word representing a negative emotion.

상담부(150)는 감정 크기가 설정된 기준 크기 이상이면 사용자 감정이 부정적인 감정으로 판단하고, 상기 부정적인 감정을 유발한 동기를 질문하는 상기 상담 진행 문장을 생성할 수 있다. 즉, 상담부(150)는 적어도 하나의 특정 감정 관련 단어가 사용자 감정이 부정적인 감정으로 판단한 경우, 적어도 하나의 특정 감정 관련 단어와 관련된 질문 문장을 생성할 수 있다. 이때, 부정적인 감정은 슬픔, 화남, 두려움, 놀람, 고독 등을 예시할 수 있다.If the emotion size is greater than or equal to a set standard size, the counseling unit 150 may determine that the user's emotion is a negative emotion and generate the counseling progress sentence asking about the motive for causing the negative emotion. That is, when the counseling unit 150 determines that at least one specific emotion-related word is a negative user emotion, the counseling unit 150 may generate a question sentence related to the at least one specific emotion-related word. At this time, negative emotions can include sadness, anger, fear, surprise, and loneliness.

구체적으로, 상담부(150)는 부정적인 감정이 발생한 원인, 이유, 부정적인 감정의 크기 및 부정적인 감정과 관련된 에피소드 중 적어도 하나를 파악하기 위한 상담 진행 문장을 생성할 수 있다.Specifically, the counseling unit 150 may generate a counseling progress sentence to identify at least one of the cause and reason of negative emotions, the magnitude of negative emotions, and episodes related to negative emotions.

예를 들어, 상담부(150)는 서버 저장부(120) 내 mood_status 값이 '슬픔'로 저장된 경우, 사용자가 슬픈 감정을 가지는 원인, 이유, 슬픈 감정의 크기 등을 파악하기 위한 질문 문장을 생성할 수 있다. 이때, 감정의 크기는 상담 서버 저장부(120) 내 mood_val 값에 저장될 수 있다.For example, if the mood_status value in the server storage unit 120 is stored as 'sadness', the counseling unit 150 generates a question sentence to determine the cause, reason, and magnitude of the user's sad emotions, etc. can do. At this time, the size of the emotion may be stored in the mood_val value in the counseling server storage unit 120.

슬픈 감정의 크기가 매우 큰 경우, 죄책감과 같은 다른 감정이나 삽화적 기억이 뒤섞여 있을 수 있으므로, 상담부(150)는 슬픈 감정을 가지게 된 원인이 되는 사건 또는 에피소드를 파악하기 위한 질문 문장을 생성할 수 있다.If the size of the sad emotion is very large, other emotions such as guilt or episodic memories may be mixed in, so the counseling unit 150 may generate a question sentence to identify the event or episode that caused the sad emotion. You can.

상담부(150)는 감정의 원인에 따라 격언, 명언, 속담 등과 같은 표현들을 인용하여 해당 감정을 해소시키기 위한 응답 문장을 생성할 수 있다. 또한, 상담부(150)는 감정의 원인에 따라 사용자에게 명상 기법을 추천하거나 감정 해소를 위한 음악을 재생하기 위한 응답 문장을 생성할 수 있다. 상담부(150)는 빅데이터 처리부(140) 및 데이터 분석부(135)의 도움을 받아 이러한 기능을 수행할 수 있다. 이는 명세서 전반에 걸쳐 적용될 수 있다.The counseling unit 150 may generate a response sentence to relieve the emotion by quoting expressions such as proverbs, sayings, and proverbs depending on the cause of the emotion. Additionally, the counseling unit 150 may generate a response sentence to recommend a meditation technique to the user or play music to relieve the emotion, depending on the cause of the emotion. The counseling unit 150 can perform these functions with the help of the big data processing unit 140 and the data analysis unit 135. This may apply throughout the specification.

상담부(150)는 상기 감정 크기가 상기 기준 크기보다 낮으면 상기 사용자 감정이 부정적인 감정이 아닌 것으로 판단하고, 상기 문장에 응답하기 위한 상기 상담 진행 문장을 생성할 수 있다. 즉, 상담부(150)는 부정적인 감정이 아닌 것으로 판단하면, 사용자의 이야기에 동조하기 위한 응답 문장을 생성함으로써, 사용자의 감정이 해소되도록 유도할 수 있다.If the emotion size is lower than the reference size, the counseling unit 150 may determine that the user's emotion is not a negative emotion and generate the counseling progress sentence to respond to the sentence. That is, if the counseling unit 150 determines that the emotion is not negative, it can induce the user's emotion to be resolved by generating a response sentence to agree with the user's story.

한편, 상술한 질문 문장 및 응답 문장에 대한 설명은 일 예시에 불과하며, 실시예에 따라 다양한 내용의 질문 문장 및 응답 문장이 생성될 수 있다.Meanwhile, the description of the above-mentioned question sentences and response sentences is only an example, and question sentences and response sentences with various contents may be generated depending on the embodiment.

상담 종료 시, 상담부(150)는 사용자와의 상담 내용, 즉 상담 문장 및 상담 진행 문장의 저장 여부를 질의하기 위한 질문 문장을 생성할 수 있다. 이에 따라, 사용자가 상담 내용을 저장하기를 원하는 경우, 상담 내용은 서버 저장부(120)에 저장될 수 있다.When the consultation ends, the counseling unit 150 may generate a question sentence to inquire whether the content of the consultation with the user, that is, the consultation sentence and the consultation progress sentence, are saved. Accordingly, if the user wishes to save the consultation contents, the consultation contents may be stored in the server storage unit 120.

도 9는 도 8의 심리 상담 에이전트 챗봇 서버의 동작방법을 나타낸 순서도이다. 심리 상담 에이전트 챗봇 서버(10)는 심리지원 챗봇 서비스 제공 방법을 수행할 수 있다.Figure 9 is a flowchart showing the operation method of the psychological counseling agent chatbot server of Figure 8. The psychological counseling agent chatbot server 10 may perform a method of providing a psychological support chatbot service.

도 9를 참조하면, 심리 상담 에이전트 챗봇 서버(10)에 포함된 데이터 분석부(135)는 서버 통신부(115)에서 수신한 상담 문장을 구문 분석하여, 복수의 단어로 분할할 수 있다(S410). 서버 통신부(115)는 사용자 단말로부터 송신된 상담 문장을 수신하여 데이터 분석부(135)로 전달할 수 있다.Referring to FIG. 9, the data analysis unit 135 included in the psychological counseling agent chatbot server 10 may parse the counseling sentence received from the server communication unit 115 and divide it into a plurality of words (S410). . The server communication unit 115 may receive the counseling sentence transmitted from the user terminal and transmit it to the data analysis unit 135.

데이터 분석부(135)는 상담 문장을 구문 분석하여, 복수의 단어로 분할할 수 있다. 구문 분석은 상담 문장을 이루고 있는 복수의 단어로 분할하고, 분할된 복수의 단어 사이의 관계를 분석하여 문장의 구조를 결정하는 것일 수 있다.The data analysis unit 135 may parse the counseling sentence and divide it into a plurality of words. Syntactic analysis may be to determine the structure of the sentence by dividing the counseling sentence into a plurality of words and analyzing the relationship between the plurality of divided words.

데이터 분석부(135)는 상기 복수의 단어 중 사용자 감정을 나타내는 적어도 하나의 특정 감정 관련 단어를 추출할 수 있다(S415). 데이터 분석부(135)는 복수의 단어 중 기 설정된 감정 단어에 매칭되는 상기 적어도 하나의 특정 감정 관련 단어를 추출할 수 있다. 데이터 분석부(135)는 상기 적어도 하나의 특정 감정 관련 단어를 서버 저장부(120)에 저장할 수 있다.The data analysis unit 135 may extract at least one specific emotion-related word representing the user's emotion from among the plurality of words (S415). The data analysis unit 135 may extract the at least one specific emotion-related word that matches a preset emotion word from among the plurality of words. The data analysis unit 135 may store the at least one specific emotion-related word in the server storage unit 120.

심리 상담 에이전트 챗봇 서버(10)에 포함된 상담부(150)는 상기 적어도 하나의 특정 감정 관련 단어에 대한 감정 크기를 산출하고(S420), 상기 감정 크기가 설정된 기준 크기 이상인지 판단할 수 있다(S425).The counseling unit 150 included in the psychological counseling agent chatbot server 10 may calculate the emotion size for the at least one specific emotion-related word (S420) and determine whether the emotion size is greater than or equal to a set standard size (S420). S425).

상담부(150)는 적어도 하나의 특정 감정 관련 단어에 대해 설정된 감정 중요도에 따라 감정 크기를 산출할 수 있다. 감정 크기는 부정적인 감정을 나타내는 단어들 각각에 부여된 감정 값으로 서버 저장부(120)에 설정될 수 있다.The counseling unit 150 may calculate the emotion magnitude according to the emotion importance set for at least one specific emotion-related word. The emotion magnitude may be set in the server storage unit 120 as an emotion value assigned to each word representing a negative emotion.

상담부(150)는 상기 감정 크기가 설정된 기준 크기 이상이면 상기 사용자 감정이 부정적인 감정으로 판단하고, 상기 부정적인 감정을 유발한 동기를 질문하는 상기 상담 진행 문장을 생성할 수 있다(S430). 상담부(150)는 상기 감정 크기가 상기 기준 크기보다 낮으면 상기 사용자 감정이 부정적인 감정이 아닌 것으로 판단하고, 상기 문장에 응답하기 위한 상기 상담 진행 문장을 생성할 수 있다(S435).If the emotion size is greater than or equal to a set standard size, the counseling unit 150 may determine that the user's emotion is a negative emotion and generate the counseling progress sentence asking about the motive for causing the negative emotion (S430). If the emotion size is lower than the reference size, the counseling unit 150 determines that the user's emotion is not a negative emotion, and may generate the counseling progress sentence to respond to the sentence (S435).

상담 진행 문장 생성(S430 또는 S435) 단계 이후, 상담부(150)는 상기 상담 진행 문장을 서버 통신부(115)로 전달하여 사용자 단말로 송신할 수 있다(S440).After the counseling progress sentence generation step (S430 or S435), the counseling unit 150 may transmit the counseling progress sentence to the server communication unit 115 and transmit it to the user terminal (S440).

상담 종료 시, 상담부(150)는 상기 상담 문장 및 상기 상담 진행 문장에 대한 저장 여부를 질의하는 질문 문장을 생성하여, 내담자 단말기(60)에 전송할 수 있다(S445).At the end of the consultation, the counseling unit 150 may generate a question sentence asking whether to save the counseling sentence and the counseling progress sentence and transmit the question to the client terminal 60 (S445).

도 10은 도 9에 나타낸 심리상담 에이전트 챗봇 장치의 동작에 대한 예시를 나타낸 순서도이다.FIG. 10 is a flowchart showing an example of the operation of the psychological counseling agent chatbot device shown in FIG. 9.

도 10은 심리 상담 에이전트 챗봇 서버(10)는 사용자로부터 "나는 슬퍼."라는 상담 문장을 입력받아 '슬퍼'라는 감정 관련 문장 성분을 mood_status 값에 저장한 것으로 가정한다.Figure 10 assumes that the psychological counseling agent chatbot server 10 receives the counseling sentence “I am sad” from the user and stores the emotion-related sentence component “sad” in the mood_status value.

심리 상담 에이전트 챗봇 서버(10)는 감정의 원인을 아는지 여부에 대한 질문 문장를 생성하여 사용자에게 제공할 수 있다(S455).The psychological counseling agent chatbot server 10 may generate a question sentence about whether the user knows the cause of the emotion and provide it to the user (S455).

즉, 이때, 심리 상담 에이전트 챗봇 서버(10)는 사용자가 감정의 원인을 모르는 경우, 부정적인 감정에 대한 이야기를 요청하기 위한 질문 문장을 생성하여 사용자에게 제공할 수 있다. 사용자는 자신의 감정이 발생한 원인을 모르는 경우가 있기 때문에 현재의 부정적인 감정에 대해 자유롭게 얘기함으로써, 감정이 발생한 원인을 알 수 있다. 예를 들어, 사용자가 이유 없이 우울한 경우, 우울한 감정에 대해 이야기하다 보면 날씨가 흐려서 몸이 찌뿌드드하여 우울한 감정을 느끼는 것을 알 수 있기 때문이다.That is, at this time, if the user does not know the cause of the emotion, the psychological counseling agent chatbot server 10 may generate a question sentence to request a story about the negative emotion and provide it to the user. Since users may not know the cause of their emotions, they can find out the cause of their emotions by freely talking about their current negative emotions. For example, if the user is depressed for no reason, when talking about depressed feelings, it can be seen that the weather is cloudy and the user feels depressed and feels depressed.

심리 상담 에이전트 챗봇 서버(10)는 감정이 발생한 이유에 대한 질문 문장을 제공할 수 있다(S460). 즉, 심리 상담 에이전트 챗봇 서버(10)는 사용자가 감정의 원인을 아는 경우, 감정이 발생하게 된 구체적 이유에 대한 질문 문장을 생성하여 제공할 수 있다.The psychological counseling agent chatbot server 10 may provide a question sentence about why the emotion occurred (S460). In other words, if the user knows the cause of the emotion, the psychological counseling agent chatbot server 10 can generate and provide a question sentence about the specific reason why the emotion occurred.

심리 상담 에이전트 챗봇 서버(10)는 감정의 크기에 대한 질문 문장을 제공할 수 있다(S465). 예를 들어, 사용자는 5점 척도로 감정의 크기를 입력할 수 있다. 여기서, 사용자가 감정의 이유 및 크기를 말하게 하는 것은 상담 기법 중 하나인 감정 객관화로서, 사용자가 스스로의 감정을 바라보게 하는 효과가 있다.The psychological counseling agent chatbot server 10 can provide a question sentence about the magnitude of emotion (S465). For example, users can enter the magnitude of their emotions on a 5-point scale. Here, having the user state the reason and magnitude of the emotion is emotion objectification, which is one of the counseling techniques, and has the effect of allowing the user to look at his or her own emotions.

심리 상담 에이전트 챗봇 서버(10)는 감정의 크기에 대응되는 값이 기 설정된 값보다 작은지 여부를 판단할 수 있다(S470). 즉, 심리 상담 에이전트 챗봇 서버(10)는 감정의 크기에 대응되는 값이 예를 들어 3(기 설정된 값)보다 작은지 여부에 따라 부정적인 감정이 약한지 또는 강한지를 결정할 수 있다. 예를 들어, 감정 크기 판단 단계(S470)에서의 판단 결과에 따라 감정의 크기에 대응되는 값이 1~2인 경우, 심리 상담 에이전트 챗봇 서버(10)는 부정적인 감정이 약한 것으로 판단할 수 있다.The psychological counseling agent chatbot server 10 may determine whether the value corresponding to the size of the emotion is smaller than a preset value (S470). That is, the psychological counseling agent chatbot server 10 can determine whether the negative emotion is weak or strong depending on whether the value corresponding to the size of the emotion is smaller than, for example, 3 (a preset value). For example, if the value corresponding to the size of the emotion is 1 to 2 according to the judgment result in the emotion size determination step (S470), the psychological counseling agent chatbot server 10 may determine that the negative emotion is weak.

심리 상담 에이전트 챗봇 서버(10)는 감정과 관련된 에피소드를 요청하기 위한 질문 문장을 제공할 수 있다(S475). 이에 따라, 사용자는 감정과 관련된 에피소드를 입력할 수 있다.The psychological counseling agent chatbot server 10 may provide a question sentence to request an episode related to emotions (S475). Accordingly, the user can input episodes related to emotions.

심리 상담 에이전트 챗봇 서버(10)는 감정과 관련된 에피소드에 대한 응답 문장을 제공할 수 있다(S480). 즉, 심리 상담 에이전트 챗봇 서버(10)는 감정과 관련된 에피소드에 대해 적절하게 맞장구를 쳐주기 위한 응답 문장을 제공할 수 있다.The psychological counseling agent chatbot server 10 may provide a response sentence to an emotion-related episode (S480). In other words, the psychological counseling agent chatbot server 10 can provide a response sentence to appropriately respond to an emotion-related episode.

예를 들어, 사용자가 죽은 반려견(이름: 레오)이 생각나서 슬픈 감정을 가지는 경우, 심리 상담 에이전트 챗봇 서버(10)는 반려견과 관련된 긍정적인 에피소드를 요청하기 위한 질문 문장을 제공할 수 있다. 이후, 사용자가 "레오는 나와 산책하는 것을 좋아했어."라는 입력 문장을 입력하는 경우, 심리 상담 에이전트 챗봇 서버(10)는 입력 문장을 구문 분석하여 사용자의 에피소드를 파악할 수 있다. 또한, 심리 상담 에이전트 챗봇 서버(10)는 "즐거웠겠구나"와 같이 사용자의 감정을 공감하기 위한 응답 문장과 "레오가 산책하는 것을 좋아했구나."와 같이 사용자에게 재차 에피소드를 요청하기 위한 질문 문장을 제공함으로써, 사용자를 위로하기 위한 심리 상담을 수행할 수 있다.For example, if the user feels sad because he or she is reminded of his or her deceased dog (name: Leo), the psychological counseling agent chatbot server 10 may provide a question sentence to request a positive episode related to the dog. Thereafter, when the user inputs the input sentence “Leo liked to walk with me,” the psychological counseling agent chatbot server 10 may parse the input sentence to determine the user's episode. In addition, the psychological counseling agent chatbot server 10 sends a response sentence to empathize with the user's emotions, such as “It must have been fun,” and a question sentence to request another episode from the user, such as “Leo liked to walk.” By providing this, psychological counseling can be performed to comfort the user.

심리 상담 에이전트 챗봇 서버(10)는 감정과 관련된 에피소드를 추가로 요청하기 위한 질문 문장을 제공할 수 있다. 이때, 사용자가 감정과 관련된 추가 에피소드를 이야기하고 싶은 경우, 심리 상담 에이전트 챗봇 서버(10)와 계속적으로 대화를 수행할 수 있다. 이와 달리, 사용자가 대화를 중단하고 싶은 경우, 심리 상담 에이전트 챗봇 서버(10)는 부정적인 감정이 해소되었는지를 파악하기 위한 질문 문장을 제공할 수 있다.The psychological counseling agent chatbot server 10 may provide a question sentence to request additional episodes related to emotions. At this time, if the user wants to talk about additional episodes related to emotions, the user can continuously conduct a conversation with the psychological counseling agent chatbot server 10. On the other hand, if the user wants to stop the conversation, the psychological counseling agent chatbot server 10 may provide a question sentence to determine whether the negative emotions have been resolved.

한편, 감정 크기 판단 단계(S470)에서의 판단 결과에 따라 감정의 크기에 대응되는 값이 기 설정된 값보다 크거나 같은 경우, 심리 상담 에이전트 챗봇 서버(10)는 감정의 잠재된 원인을 파악하기 위한 질문 문장을 제공할 수 있다(S485). 예를 들어, 감정의 크기에 대응되는 값이 3~5인 경우, 심리 상담 에이전트 챗봇 서버(10)는 부정적인 감정이 강한 것으로 판단할 수 있다. 이 경우, 심리 상담 에이전트 챗봇 서버(10)는 부정적인 감정과 관련하여 잠재된 다른 원인이 있을 수 있으므로 이를 확인하기 위한 질문 문장을 제공할 수 있다.On the other hand, if the value corresponding to the size of the emotion is greater than or equal to the preset value according to the judgment result in the emotion size determination step (S470), the psychological counseling agent chatbot server 10 is used to determine the potential cause of the emotion. A question sentence can be provided (S485). For example, if the value corresponding to the magnitude of the emotion is 3 to 5, the psychological counseling agent chatbot server 10 may determine that the negative emotion is strong. In this case, the psychological counseling agent chatbot server 10 may provide a question sentence to confirm that there may be other potential causes related to negative emotions.

심리 상담 에이전트 챗봇 서버(10)는 감정의 잠재된 원인과 관련된 에피소드를 요청하기 위한 질문 문장을 제공할 수 있다(S490). 예를 들어, 사용자는 제공받은 질문 문장에 대한 답변으로 죽은 반려견이 아팠을 때 약을 먹이지 못한 것에 대한 에피소드를 입력할 수 있다.The psychological counseling agent chatbot server 10 may provide a question sentence to request an episode related to the potential cause of the emotion (S490). For example, in response to a provided question sentence, a user may enter an episode about failing to give medicine to a dead dog when it was sick.

심리 상담 에이전트 챗봇 서버(10)는 감정의 잠재된 원인과 관련된 에피소드에 대한 응답 문장을 제공할 수 있다(S495). 예를 들어, 사용자가 죽은 반려견이 아팠을 때 약을 먹이지 못한 것에 대한 죄책감으로 인하여 슬픈 감정을 가지는 경우, 심리 상담 에이전트 챗봇 서버(10)는 "그랬구나. 레오도 널 이해할거야."와 같이 죄책감을 덜어주기 위한 응답 문장을 제공할 수 있다. 다른 예로, 심리 상담 에이전트 챗봇 서버(10)는 죄책감을 덜어주기 위한 명상법을 추천하거나 레오가 좋아하던 음악을 재생하는 등 사용자를 위로하기 위한 기능을 수행할 수 있다. 또한, 심리 상담 에이전트 챗봇 서버(10)는 감정의 잠재된 원인과 관련된 에피소드를 추가로 요청하기 위한 질문 문장을 제공할 수 있다.The psychological counseling agent chatbot server 10 may provide a response sentence to an episode related to the potential cause of the emotion (S495). For example, when a user feels sad due to guilt about not being able to give medicine to a dead dog when it was sick, the psychological counseling agent chatbot server (10) expresses the guilt by saying, "That's right. Leo will understand you too." You can provide a response sentence to alleviate the problem. As another example, the psychological counseling agent chatbot server 10 may perform functions to comfort the user, such as recommending a meditation method to relieve guilt or playing music that Leo liked. Additionally, the psychological counseling agent chatbot server 10 may provide a question sentence to request additional episodes related to the potential cause of the emotion.

심리 상담 에이전트 챗봇 서버(10)는 상담을 종료하는지 여부를 판단할 수 있다(S500). 심리 상담 에이전트 챗봇 서버(10)는 상담을 종료하는지 여부를 질의하기 위한 질문 문장을 제공할 수 있다. 즉, 심리 상담 에이전트 챗봇 서버(10)는 사용자의 부정적인 감정이 어느정도 해소된 경우, 사용자가 계속 상담하기를 원하는 지를 물어볼 수 있다. 사용자가 계속 상담을 원하는 경우, 심리 상담 에이전트 챗봇 서버(10)는 사용자와의 상담을 반복하여 수행할 수 있다.The psychological counseling agent chatbot server 10 can determine whether to end the counseling (S500). The psychological counseling agent chatbot server 10 may provide a question sentence to inquire whether to end the counseling. In other words, the psychological counseling agent chatbot server 10 may ask whether the user wants to continue counseling when the user's negative emotions have been resolved to some extent. If the user wishes to continue counseling, the psychological counseling agent chatbot server 10 may repeatedly perform counseling with the user.

이와 달리, 심리 상담 에이전트 챗봇 서버(10)는 사용자의 부정적인 감정이 해소되지 않은 경우, 기 설정된 시간(예를 들어, 1분) 동안 사용자의 입력을 기다림으로써, 상담의 '기다려주기' 기능을 수행할 수 있다. 기 설정된 시간이 지난 경우, 심리 상담 에이전트 챗봇 서버(10)는 사용자와의 상담을 반복하여 수행할 수 있다.In contrast, the psychological counseling agent chatbot server 10 performs the 'waiting' function of counseling by waiting for the user's input for a preset time (e.g., 1 minute) when the user's negative emotions are not resolved. can do. If the preset time has passed, the psychological counseling agent chatbot server 10 may repeatedly perform counseling with the user.

또한, 심리 상담 에이전트 챗봇 서버(10)는 사용자와의 상담 내용의 저장 여부를 질의하기 위한 질문 문장을 제공할 수 있다. 예를 들어, 상담을 종료하기 전에 "반려견 레오가 2주 전에 죽어서 미나가 슬퍼함"과 같은 상담 내용을 저장하는 것에 대한 동의 여부를 질의하기 위한 질문 문장을 제공할 수 있다. 이때, 사용자가 상담 내용을 저장하는 것에 동의하는 경우, 심리 상담 에이전트 챗봇 서버(10)는 상담 내용을 서버 저장부(120)에 저장할 수 있다.Additionally, the psychological counseling agent chatbot server 10 may provide a question sentence to inquire whether or not to store the content of the counseling session with the user. For example, before ending the consultation, a question sentence can be provided to inquire about consent to saving the consultation content, such as “Mina is sad because her pet dog Leo died two weeks ago.” At this time, if the user agrees to save the counseling content, the psychological counseling agent chatbot server 10 may store the counseling content in the server storage unit 120.

한편, 상술한 예에서는 mood_status 값이 '슬픔'인 경우에 대해 설명하였으나, 심리 상담 에이전트 챗봇 서버(10)는 화남, 두려움, 짜증남, 외로움 등과 같이 다른 부정적인 감정에 대해서도 상술한 방식과 동일한 방식을 통해 심리 상담을 수행할 수 있다.Meanwhile, in the above example, the case where the mood_status value is 'sadness' was explained, but the psychological counseling agent chatbot server 10 uses the same method as described above for other negative emotions such as anger, fear, irritation, loneliness, etc. Psychological counseling can be performed.

10: 서버 60: 내담자 단말기
70: 상담사 단말기 110: 서버 제어부
115: 서버 통신부 120: 서버 저장부
125: 앱 관리부 130: 문자 변환부
135: 데이터 분석부 140: 빅데이터 처리부
150: 상담부 210: 단말기 제어부
220: 단말기 통신부 230: 단말기 입력부
240: 단말기 조작부 250: 단말기 출력부
255: 디스플레이 모듈 260: 단말기 저장부
10: Server 60: Client terminal
70: Counselor terminal 110: Server control unit
115: server communication unit 120: server storage unit
125: App management unit 130: Text conversion unit
135: Data analysis unit 140: Big data processing unit
150: Counseling unit 210: Terminal control unit
220: terminal communication unit 230: terminal input unit
240: terminal control unit 250: terminal output unit
255: display module 260: terminal storage unit

Claims (5)

내담자 단말기 및 상담사 단말기 중 적어도 상담사 단말기(이하, '사용자 단말기')로부터 내담자와 상담사 사이의 상담 내용인 음성 데이터를 수신하는 단계;
상기 음성 데이터를 텍스트 데이터로 변환하는 단계;
상기 텍스트 데이터를 상기 사용자 단말기로 전송하는 단계; 및
상기 사용자 단말기로부터 사용자에 의해 조작된 문구 라벨을 수신하면, 상기 문구 라벨을 해당 대화에 라벨링하는 단계;를 포함하고,
상기 내담자 단말기로부터 인공 지능 상담을 위한 상담 문장을 수신하고, 상기 상담 문장을 구문 분석하여, 복수의 단어로 분할하는 단계;
상기 복수의 단어 중 사용자 감정을 나타내는 적어도 하나의 특정 단어를 추출하는 단계;
상기 적어도 하나의 특정 단어에 대한 감정 크기를 산출하고, 상기 감정 크기에 따라 상담 진행 문장을 생성하는 단계; 및
상기 상담 진행 문장을 상기 사용자 단말로 송신하는 단계;를 더 포함하는, 심리지원 챗봇 서비스 제공 방법.
Receiving voice data, which is the content of the consultation between the client and the counselor, from at least the counselor terminal (hereinafter referred to as 'user terminal') among the client terminal and the counselor terminal;
converting the voice data into text data;
transmitting the text data to the user terminal; and
Upon receiving a phrase label manipulated by the user from the user terminal, labeling the phrase label to the corresponding conversation,
Receiving a counseling sentence for artificial intelligence counseling from the client terminal, parsing the counseling sentence, and dividing the counseling sentence into a plurality of words;
extracting at least one specific word representing a user's emotion from among the plurality of words;
calculating an emotional level for the at least one specific word and generating a counseling progress sentence according to the emotional level; and
A method of providing a psychological support chatbot service, further comprising: transmitting the counseling progress sentence to the user terminal.
제 1 항에 있어서,
상기 문구 라벨를 참조하여 상기 텍스트 데이터를 분석하는 단계; 및
상기 분석된 상담 내용 분석물을 이용하여 요약문을 업데이트하는 단계;를 더 포함하는, 심리지원 챗봇 서비스 제공 방법.
According to claim 1,
analyzing the text data with reference to the phrase label; and
A method of providing a psychological support chatbot service, further comprising: updating a summary using the analyzed counseling content.
제 2 항에 있어서,
상기 텍스트 데이터를 빅데이터 처리하여 빅데이터 처리물을 생성하는 단계; 및
상기 빅데이터 처리물로부터 상담 보조 내용을 도출하는 단계;를 더 포함하는, 심리지원 챗봇 서비스 제공 방법.
According to claim 2,
Processing the text data as big data to generate a big data processed product; and
A method of providing a psychological support chatbot service, further comprising: deriving counseling assistance content from the big data processed product.
제 1 항에 있어서,
상기 특정 단어를 추출하는 단계는 상기 복수의 단어 중 기 설정된 감정 단어에 매칭되는 상기 적어도 하나의 특정 단어를 추출하고, 상기 적어도 하나의 특정 단어를 상담 진행을 위해 데이터베이스에 저장하고,
상기 상담 진행 문장을 생성하는 단계는 상기 적어도 하나의 특정 단어에 대해 설정된 감정 중요도에 따라 상기 감정 크기를 산출하고,
상기 상담 진행 문장을 생성하는 단계는 상기 감정 크기가 설정된 기준 크기 이상이면 상기 사용자 감정이 부정적인 감정으로 판단하고, 상기 부정적인 감정을 유발한 동기를 질문하는 상기 상담 진행 문장을 생성하고,
상기 사용자 감정을 유발한 동기를 질문하는 상기 상담 진행 문장은 상기 부정적인 감정이 발생한 원인, 이유 및 상기 부정적인 감정에 대한 에피소드 중 적어도 하나를 질문하는 문장인, 심리지원 챗봇 서비스 제공 방법.
According to claim 1,
The step of extracting the specific word includes extracting the at least one specific word that matches a preset emotional word among the plurality of words, and storing the at least one specific word in a database for consultation,
The step of generating the counseling progress sentence calculates the emotion size according to the emotional importance set for the at least one specific word,
The step of generating the counseling progress sentence includes determining that the user's emotion is a negative emotion if the emotion size is greater than a set standard size, and generating the counseling progress sentence asking about the motive for causing the negative emotion,
The counseling progress sentence asking about the motive for causing the user's emotion is a sentence asking about at least one of the cause and reason of the negative emotion and the episode about the negative emotion. Method for providing a psychological support chatbot service.
내담자 단말기 및 상담사 단말기 중 적어도 상담사 단말기(이하, '사용자 단말기')와 데이터 통신하는 서버로서,
상기 사용자 단말기로부터 내담자와 상담사 사이의 상담 내용인 음성 데이터를 수신하는 서버 통신부;
상기 음성 데이터를 텍스트 데이터로 변환하는 문자 변환부;
설치용 상담 앱을 상기 사용자 단말기로 전송하여 설치되도록 하고, 상기 설치된 상담 앱에 상기 상기 텍스트 데이터가 표시되도록 하고, 상기 사용자 단말기로부터 사용자에 의해 조작된 문구 라벨을 수신하면, 상기 문구 라벨을 해당 대화에 라벨링하는 앱 관리부;
상기 문구 라벨를 참조하여 상기 텍스트 데이터를 분석하고, 상기 분석된 상담 내용 분석물을 이용하여 요약문을 업데이트하는 데이터 분석부; 및
상기 텍스트 데이터를 빅데이터 처리하여 빅데이터 처리물을 생성하고, 상기 빅데이터 처리물로부터 상담 보조 내용을 도출하는 빅데이터 처리부;를 포함하고,
상기 데이터 분석부는 상기 내담자 단말기로부터 송신된 상담 문장을 수신하고, 상기 상담 문장을 구문 분석하여, 복수의 단어로 분할하고, 상기 복수의 단어 중 사용자 감정을 나타내는 적어도 하나의 특정 단어를 추출하고,
상기 적어도 하나의 특정 단어에 대한 감정 크기를 산출하고, 상기 감정 크기에 따라 상담 진행 문장을 생성하는 상담부을 더 포함하는, 심리 상담 에이전트 챗봇 서버.
A server that communicates data with at least a counselor terminal (hereinafter referred to as “user terminal”) among the client terminal and counselor terminal,
a server communication unit that receives voice data, which is the content of the consultation between the client and the counselor, from the user terminal;
a text converter that converts the voice data into text data;
A counseling app for installation is transmitted to the user terminal to be installed, the text data is displayed on the installed counseling app, and when a phrase label manipulated by the user is received from the user terminal, the phrase label is added to the conversation. App management department for labeling;
a data analysis unit that analyzes the text data with reference to the phrase label and updates a summary using the analyzed counseling content; and
It includes a big data processing unit that processes the text data into big data to generate a big data processed product, and derives counseling assistance content from the big data processed product,
The data analysis unit receives a counseling sentence transmitted from the client terminal, parses the counseling sentence, divides it into a plurality of words, and extracts at least one specific word representing the user's emotion from the plurality of words,
A psychological counseling agent chatbot server further comprising a counseling unit that calculates an emotional level for the at least one specific word and generates a counseling progress sentence according to the emotional level.
KR1020220119705A 2022-09-22 2022-09-22 Method for providing chatbot service for mentality supporting service KR20240040859A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020220119705A KR20240040859A (en) 2022-09-22 2022-09-22 Method for providing chatbot service for mentality supporting service

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020220119705A KR20240040859A (en) 2022-09-22 2022-09-22 Method for providing chatbot service for mentality supporting service

Publications (1)

Publication Number Publication Date
KR20240040859A true KR20240040859A (en) 2024-03-29

Family

ID=90483803

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020220119705A KR20240040859A (en) 2022-09-22 2022-09-22 Method for providing chatbot service for mentality supporting service

Country Status (1)

Country Link
KR (1) KR20240040859A (en)

Similar Documents

Publication Publication Date Title
US10977452B2 (en) Multi-lingual virtual personal assistant
CN107657017B (en) Method and apparatus for providing voice service
KR102462426B1 (en) Electronic device and method for analyzing meaning of speech
US9053096B2 (en) Language translation based on speaker-related information
US11755296B2 (en) Computer device and method for facilitating an interactive conversational session with a digital conversational character
KR102012968B1 (en) Method and server for controlling interaction robot
US10127226B2 (en) Method for dialogue between a machine, such as a humanoid robot, and a human interlocutor utilizing a plurality of dialog variables and a computer program product and humanoid robot for implementing such a method
CN107870977A (en) Chat robots output is formed based on User Status
Kandpal et al. Contextual Chatbot for healthcare purposes (using deep learning)
KR20190028793A (en) Human Machine Interactive Method and Device Based on Artificial Intelligence
CN111666380A (en) Intelligent calling method, device, equipment and medium
CN109543021B (en) Intelligent robot-oriented story data processing method and system
KR102076793B1 (en) Method for providing electric document using voice, apparatus and method for writing electric document using voice
CN108470188B (en) Interaction method based on image analysis and electronic equipment
KR20180055680A (en) Method of providing health care guide using chat-bot having user intension analysis function and apparatus for the same
CN114495927A (en) Multi-modal interactive virtual digital person generation method and device, storage medium and terminal
CN116229977A (en) System for realizing intelligent real-time interactive question and answer based on virtual digital person and processing method thereof
CN109065019B (en) Intelligent robot-oriented story data processing method and system
CN108877795B (en) Method and apparatus for presenting information
WO2019003395A1 (en) Call center conversational content display system, method, and program
CN115222857A (en) Method, apparatus, electronic device and computer readable medium for generating avatar
KR20240040859A (en) Method for providing chatbot service for mentality supporting service
CN113763925B (en) Speech recognition method, device, computer equipment and storage medium
Wanner et al. Towards a multimedia knowledge-based agent with social competence and human interaction capabilities
Skorikov et al. Voice-controlled intelligent personal assistant