[go: up one dir, main page]

KR102719216B1 - Depression diagnosis system using artificial intelligence chatbot and method thereof - Google Patents

Depression diagnosis system using artificial intelligence chatbot and method thereof Download PDF

Info

Publication number
KR102719216B1
KR102719216B1 KR1020220010865A KR20220010865A KR102719216B1 KR 102719216 B1 KR102719216 B1 KR 102719216B1 KR 1020220010865 A KR1020220010865 A KR 1020220010865A KR 20220010865 A KR20220010865 A KR 20220010865A KR 102719216 B1 KR102719216 B1 KR 102719216B1
Authority
KR
South Korea
Prior art keywords
depression
message
chatbot
artificial intelligence
score
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
KR1020220010865A
Other languages
Korean (ko)
Other versions
KR20230114847A (en
Inventor
심민보
오병희
정권환
Original Assignee
주식회사 튜링바이오
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 주식회사 튜링바이오 filed Critical 주식회사 튜링바이오
Priority to KR1020220010865A priority Critical patent/KR102719216B1/en
Publication of KR20230114847A publication Critical patent/KR20230114847A/en
Application granted granted Critical
Publication of KR102719216B1 publication Critical patent/KR102719216B1/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • 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
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/16Devices for psychotechnics; Testing reaction times ; Devices for evaluating the psychological state
    • A61B5/165Evaluating the state of mind, e.g. depression, anxiety
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/903Querying
    • G06F16/9032Query formulation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/30Semantic analysis
    • G06F40/35Discourse or dialogue representation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N20/00Machine learning
    • 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/20ICT specially adapted for the handling or processing of patient-related medical or healthcare data for electronic clinical trials or questionnaires
    • 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
    • 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/30ICT specially adapted for medical diagnosis, medical simulation or medical data mining; ICT specially adapted for detecting, monitoring or modelling epidemics or pandemics for calculating health indices; for individual health risk assessment
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Public Health (AREA)
  • Theoretical Computer Science (AREA)
  • General Health & Medical Sciences (AREA)
  • Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Epidemiology (AREA)
  • Primary Health Care (AREA)
  • Data Mining & Analysis (AREA)
  • Biomedical Technology (AREA)
  • Pathology (AREA)
  • Psychiatry (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Computational Linguistics (AREA)
  • Child & Adolescent Psychology (AREA)
  • Psychology (AREA)
  • Software Systems (AREA)
  • Mathematical Physics (AREA)
  • Social Psychology (AREA)
  • Developmental Disabilities (AREA)
  • Hospice & Palliative Care (AREA)
  • Artificial Intelligence (AREA)
  • Surgery (AREA)
  • Computing Systems (AREA)
  • Veterinary Medicine (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Animal Behavior & Ethology (AREA)
  • Educational Technology (AREA)
  • Heart & Thoracic Surgery (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Evolutionary Computation (AREA)
  • Biophysics (AREA)
  • Molecular Biology (AREA)
  • Medical Treatment And Welfare Office Work (AREA)

Abstract

본 발명의 실시예에 따른 인공지능 챗봇을 이용한 우울증 진단 시스템은, 상기 챗봇을 통해 수신된 수신 메시지의 텍스트로부터 우울증 키워드를 분류하는 우울증 키워드 분류부; 상기 수신 메시지가 우울증 키워드로 분류된 경우, 상기 우울증 키워드와 연관된 우울증 문진 문항에 대한 질문 메시지를 생성하는 우울증 질문 생성부; 상기 질문 메시지에 대한 응답 메시지의 텍스트로부터 상기 우울증 문진 문항에 대한 우울증 점수를 산출하는 우울증 점수 산출부; 상기 산출된 우울증 점수를 기초로 우울증 분석 결과를 제공하는 우울증 분석 엔진; 및 상기 우울증 키워드 분류부가 상기 우울증 키워드를 분류할 수 있도록 학습된 제1인공지능 모델 데이터와, 상기 우울증 점수 산출부가 우울증 점수를 산출할 수 있도록 학습된 제2인공지능 모델 데이터를 포함하는 데이터베이스를 포함한다. A depression diagnosis system using an artificial intelligence chatbot according to an embodiment of the present invention includes: a depression keyword classification unit which classifies depression keywords from the text of a received message received through the chatbot; a depression question generation unit which generates a question message for a depression questionnaire item related to the depression keyword when the received message is classified as a depression keyword; a depression score calculation unit which calculates a depression score for the depression questionnaire item from the text of a response message to the question message; a depression analysis engine which provides a depression analysis result based on the calculated depression score; and a database including first artificial intelligence model data learned so that the depression keyword classification unit can classify the depression keyword, and second artificial intelligence model data learned so that the depression score calculation unit can calculate a depression score.

Figure R1020220010865
Figure R1020220010865

Description

인공지능 챗봇을 이용한 우울증 진단 시스템 및 그 방법{DEPRESSION DIAGNOSIS SYSTEM USING ARTIFICIAL INTELLIGENCE CHATBOT AND METHOD THEREOF}Depression diagnosis system using artificial intelligence chatbot and its method {DEPRESSION DIAGNOSIS SYSTEM USING ARTIFICIAL INTELLIGENCE CHATBOT AND METHOD THEREOF}

본 발명은 인공지능 챗봇을 이용한 우울증 진단 시스템에 관한 것으로, 더욱 상세하게는 자연어 처리를 적용한 챗봇을 이용해 환자와의 일상적인 대화를 통해 정신건강 상태를 파악하여 환자의 정확한 진단을 수행하고, 이에 적합한 치료를 위한 데이터를 생성하는 우울증 진단 시스템 및 그 방법에 관한 것이다.The present invention relates to a depression diagnosis system using an artificial intelligence chatbot, and more specifically, to a depression diagnosis system and method thereof that uses a chatbot that applies natural language processing to identify the mental health status of a patient through everyday conversations with the patient, perform an accurate diagnosis of the patient, and generate data for appropriate treatment.

디지털 치료제는 고도화된 소프트웨어(모바일 애플리케이션, 게임, 가상현실, 챗봇 등)를 활용하여 질병이나 장애를 예방, 관리 및 치료하는 기술이다. 즉, 디지털 치료제는 질병의 진단, 치료, 경감 및 예방의 목적으로 사용된다. 디지털 치료제(Digital therapeutics)에는 다양한 비대면 치료 방법이 포함된다.Digital therapeutics are technologies that use advanced software (mobile applications, games, virtual reality, chatbots, etc.) to prevent, manage, and treat diseases or disorders. In other words, digital therapeutics are used for the purpose of diagnosing, treating, alleviating, and preventing diseases. Digital therapeutics include various non-face-to-face treatment methods.

디지털 치료제는 일반의약품과 같은 제조, 운반 및 보관이 필요하지 않으며 저렴한 비용으로 대량 공급이 용이하다. 따라서, 디지털 치료제를 사용하면 소수의 의사가 다수의 환자를 관리할 수 있어 의료비용을 감소시키는 효과가 있다.Digital therapeutics do not require manufacturing, transportation, and storage like general drugs, and can be easily supplied in large quantities at low cost. Therefore, the use of digital therapeutics can have the effect of reducing medical costs by allowing a small number of doctors to manage a large number of patients.

또한, 디지털 치료제는 대면 진료 과정에서 고려해야할 방역 대책에서 비교적 자유롭다. 따라서, 디지털 치료제는 지속적으로 진료에 이용될 수 있어 관련 기술 개발이 활발히 진행중이다. 일부 국가는 정신 질환 관련 디지털 치료제의 국가 의료보험 적용을 시작하였고, 정신 질환 관련 대면 진료의 일부를 디지털 치료제로 대체한 사례가 있을 정도로 상용화가 이뤄진 상태이다. In addition, digital therapeutics are relatively free from the quarantine measures that must be considered during face-to-face treatment. Therefore, digital therapeutics can be used continuously for treatment, and related technology development is actively underway. Some countries have started to apply national health insurance for digital therapeutics related to mental illness, and commercialization has reached a point where some face-to-face treatment for mental illness has been replaced with digital therapeutics.

이러한 디지털 치료제 기술의 장점을 이용하기 위해, 소프트웨어를 활용하여 환자를 진단 및 치료하기 위한 종래 기술이 개발되어 왔다.To take advantage of these digital therapeutics technologies, conventional techniques have been developed to utilize software to diagnose and treat patients.

예를 들어, 우울증 진단에 있어서, 의사는 환자 정보(언어의 특성, 말하는 습관 등)를 통해 환자의 정신 질환 정도를 파악하게 된다. 우울증 진료는 의사의 특정 질문(과거의 정신 질환, 생활 습관 및 환경 등)에 대한 환자의 반응을 기반으로 진행된다. 병원에 입원하지 않은 다수 우울증 환자의 외래 진료는 1개월 이상의 간격을 두고 진행되며, 담당 의사는 반복되는 외래 진료마다 우울증 진단을 위한 질문과 환자의 답변에 기초하여 우울증 환자의 정신건강 상태를 확인한다.For example, in diagnosing depression, the doctor determines the degree of the patient's mental illness through patient information (language characteristics, speaking habits, etc.). Treatment for depression is based on the patient's response to the doctor's specific questions (past mental illness, lifestyle habits, environment, etc.). Outpatient treatment for many patients with depression who are not hospitalized is conducted at intervals of one month or more, and the doctor in charge checks the mental health status of the patient with depression based on the questions for diagnosing depression and the patient's answers at each repeated outpatient treatment.

한편, 입원 우울증 환자와 다르게 외래 우울증 환자는 다음 진료까지 의사의 진단을 기다려야 한다. 따라서, 외래 우울증 환자는 입원 우울증 환자에 비해 의사의 정확한 우울증 진단과 치료가 어렵다. 우울증 환자의 외래 진료 사이에 담당 의사에게 우울증 환자의 일상생활 중 정신건강 상태를 전달할 수 있다면 담당 의사는 기존 치료방법보다 효과적인 치료를 시행할 수 있다.On the other hand, unlike hospitalized depression patients, outpatient depression patients have to wait for a doctor's diagnosis until the next visit. Therefore, it is more difficult for outpatient depression patients to receive accurate depression diagnosis and treatment from doctors than inpatient depression patients. If the depression patient can convey the mental health status of the depression patient in their daily life to the attending physician between outpatient visits, the attending physician can provide more effective treatment than existing treatment methods.

따라서, 우울증 환자에게는 우울증 환자의 진료 후에 해당 환자의 내원 전까지 일상생활 중의 정신건강 상태를 다양한 방법으로 수집하고, 수집된 결과를 해당 환자의 담당 의사에게 제공하는 기술이 필요하다.Therefore, for patients with depression, it is necessary to have a technology that collects the mental health status of the patient in daily life through various methods before and after the patient's visit to the hospital and provides the collected results to the patient's attending physician.

한편, 정신 질환 진단을 받은 환자 중 다수의 환자는 주변 사람에게 자신의 병력을 알리는 것을 어려워한다. 또한, 정신 질환 진단을 받은 환자 중 일부는 의료진의 도움을 받는 것을 거부한다. 반면에 정신 질환 진단 및 치료를 비대면으로 할 수 있다면 지속적인 치료를 받지 않는 환자들도 진단 및 치료에 참여하여, 기존의 진단 및 치료 방법을 사용할 때보다 많은 환자들이 치료를 받을 수 있다. 따라서, 다양한 비대면 치료 방법을 제공하는 기술이 필요하다.On the other hand, many patients diagnosed with mental illness have difficulty telling people around them about their medical history. In addition, some patients diagnosed with mental illness refuse to receive help from medical staff. On the other hand, if mental illness diagnosis and treatment can be done non-face-to-face, patients who do not receive continuous treatment can also participate in diagnosis and treatment, and more patients can receive treatment than when using existing diagnosis and treatment methods. Therefore, technology that provides various non-face-to-face treatment methods is needed.

한편, 우울증 등의 정신 질환의 치료에도 디지털 치료제가 적용되고 있다. 구체적으로, 자연어 처리를 적용한 챗봇과 사람의 대화는 우울증 환자 및 건강한 사람에게 자연스러운 대화를 유도할 수 있다.Meanwhile, digital therapeutics are also being applied to the treatment of mental illnesses such as depression. Specifically, conversations between chatbots and people using natural language processing can induce natural conversations between patients with depression and healthy people.

또한, 우울증 환자의 사용 언어는 건강한 사람의 사용 언어와 다른 분명한 차이가 있다. 예를 들면, 우울증 환자는 1인칭 단수 대명사를 많이 사용하는 것으로 조사되었다. 말하는 사람은 무의식적으로 대명사를 사용하기 때문에, 말하는 사람의 언어적 특성을 대명사 중심으로 분석하면 말하는 사람의 우울증에 대한 특성을 파악할 수 있다.In addition, there are clear differences in the language used by patients with depression from the language used by healthy people. For example, it has been found that patients with depression use first-person singular pronouns a lot. Since speakers unconsciously use pronouns, analyzing the linguistic characteristics of speakers with a focus on pronouns can help us understand the characteristics of speakers with depression.

챗봇은 유휴 시간이 없이 운용할 수 있기 때문에, 환자와 의료진의 대면 진료 후 지속적인 환자 관리에 적합하다. 또한 우울증 진단을 받지 않은 사람의 정신 건강 관리에 이용할 수 있다. Chatbots are suitable for ongoing patient care after face-to-face consultations between patients and medical staff, as they can be operated without idle time. They can also be used for mental health management for people who have not been diagnosed with depression.

의료진이 개별 환자의 외래 진료 사이 기간에 정신건강 상태를 파악하고, 변화파악, 환자관리 및 챗봇에 의한 상담을 진행한다면 환자에 대한 정확한 진단과 치료를 유도할 수 있다. 따라서, 자연어 처리를 적용한 챗봇을 이용한 정신 질환 진단 시스템이 요구되고 있는 실정이다.If medical staff can identify the mental health status of individual patients between outpatient visits, identify changes, manage patients, and provide counseling via chatbots, they can induce accurate diagnosis and treatment for patients. Therefore, a mental illness diagnosis system using chatbots that apply natural language processing is in demand.

한국 공개특허공보 제10-2021-0061126호 (2021.05.27.)Korean Patent Publication No. 10-2021-0061126 (May 27, 2021) 한국 등록특허공보 제10-2175490호 (2020.11.06.)Korean Patent Publication No. 10-2175490 (2020.11.06.)

본 발명이 이루고자 하는 기술적 과제는 우울증 진단 시스템 및 그 방법에 관한 것이다. The technical problem to be solved by the present invention relates to a depression diagnosis system and method thereof.

더욱 상세하게는 자연어 처리를 적용한 챗봇을 이용한 우울증 진단 시스템 및 그 방법을 이용하여 우울증 키워드를 분류하고, 우울증 평가 척도를 기반으로한 질문을 생성하며, 객관적인 정신건강 상태를 파악할 수 있는 우울증 진단 시스템을 제공하는 것이다.More specifically, the present invention provides a depression diagnosis system that uses a chatbot that applies natural language processing and a method thereof to classify depression keywords, generate questions based on a depression assessment scale, and provide a depression diagnosis system that can objectively determine mental health status.

또한, 본 발명이 이루고자 하는 기술적 과제는 우울증 진단 시스템을 이용하여 개별 우울증 환자의 정확한 진단과 치료를 지원할 수 있는 우울증 진단 시스템을 제공하는 것이다.In addition, the technical task to be achieved by the present invention is to provide a depression diagnosis system that can support accurate diagnosis and treatment of individual depression patients by using the depression diagnosis system.

또한, 본 발명이 이루고자 하는 기술적 과제는 우울증 진단 시스템을 이용하여 우울증 환자뿐만 아니라 우울증 증상을 인지 못하는 사람의 정신 건강 관리도 제공받을 수 있는 우울증 진단 시스템을 제공하는 것이다.In addition, the technical task to be achieved by the present invention is to provide a depression diagnosis system that can provide mental health management not only to depressed patients but also to people who are unaware of their depression symptoms by using the depression diagnosis system.

본 발명이 이루고자 하는 기술적 과제는 이상에서 언급한 기술적 과제로 제한되지 않으며, 언급되지 않은 또 다른 기술적 과제들은 아래의 기재로부터 본 발명이 속하는 기술 분야에서 통상의 지식을 가진 자에게 명확하게 이해될 수 있을 것이다.The technical problems to be achieved by the present invention are not limited to the technical problems mentioned above, and other technical problems not mentioned can be clearly understood by a person having ordinary skill in the technical field to which the present invention belongs from the description below.

상기 기술적 과제를 달성하기 위하여, 본 발명의 일 실시예에 따른 인공지능 챗봇을 이용한 우울증 진단 시스템은, 상기 챗봇을 통해 수신된 수신 메시지의 텍스트로부터 우울증 키워드를 분류하는 우울증 키워드 분류부; 상기 수신 메시지가 우울증 키워드로 분류된 경우, 상기 우울증 키워드와 연관된 우울증 문진 문항에 대한 질문 메시지를 생성하는 우울증 질문 생성부; 상기 질문 메시지에 대한 응답 메시지의 텍스트로부터 상기 우울증 문진 문항에 대한 우울증 점수를 산출하는 우울증 점수 산출부; 상기 산출된 우울증 점수를 기초로 우울증 분석 결과를 제공하는 우울증 분석 엔진; 및 상기 우울증 키워드 분류부가 상기 우울증 키워드를 분류할 수 있도록 학습된 제1인공지능 모델 데이터와, 상기 우울증 점수 산출부가 우울증 점수를 산출할 수 있도록 학습된 제2인공지능 모델 데이터를 포함하는 데이터베이스를 포함한다. In order to achieve the above technical task, a depression diagnosis system using an artificial intelligence chatbot according to an embodiment of the present invention includes: a depression keyword classification unit which classifies a depression keyword from a text of a received message received through the chatbot; a depression question generation unit which generates a question message for a depression questionnaire item related to the depression keyword when the received message is classified as a depression keyword; a depression score calculation unit which calculates a depression score for the depression questionnaire item from a text of a response message to the question message; a depression analysis engine which provides a depression analysis result based on the calculated depression score; and a database including first artificial intelligence model data learned so that the depression keyword classification unit can classify the depression keyword, and second artificial intelligence model data learned so that the depression score calculation unit can calculate a depression score.

여기서, 상기 데이터베이스는, 상기 우울증 키워드와 연관된 우울증 문진 문항을 포함하는 우울증 질문 생성용 데이터를 더 포함할 수 있다. Here, the database may further include data for generating depression questionnaires including depression questionnaire items associated with the depression keyword.

또한, 상기 데이터베이스는, 상기 챗봇을 통해 접속했던 사용자별로 우울증 문진에 대한 누적 데이터가 저장된 우울증 문진 목록 데이터를 더 포함할 수 있다. In addition, the database may further include a depression questionnaire list data in which cumulative data on depression questionnaires is stored for each user who accessed the chatbot.

여기서, 상기 우울증 분석 엔진은 상기 수신 메시지에서 우울증과 관련된 언어적 표현을 추가로 반영하여 우울증 분석 결과를 제공하며, 상기 데이터베이스는, 상기 우울증과 관련된 언어적 표현에 대응하는 우울증 척도 데이터가 저장된 우울증 분석 엔진 데이터를 더 포함할 수 있다. Here, the depression analysis engine provides a depression analysis result by additionally reflecting linguistic expressions related to depression in the received message, and the database may further include depression analysis engine data in which depression scale data corresponding to the linguistic expressions related to depression are stored.

여기서, 상기 우울증 문진 문항은 BDI, HAM-D, PHQ-9 중 적어도 하나일 수 있다. Here, the depression questionnaire may be at least one of BDI, HAM-D, and PHQ-9.

본 발명의 일 실시예에 따른, 인공지능 챗봇을 이용한 우울증 진단 방법은, 상기 챗봇을 활성화하는 단계; 상기 챗봇에 의해 사용자 단말로부터 메시지를 수신하는 단계; 상기 수신된 메시지에서 우울증 키워드를 분류하는 단계;According to one embodiment of the present invention, a method for diagnosing depression using an artificial intelligence chatbot comprises the steps of: activating the chatbot; receiving a message from a user terminal by the chatbot; classifying depression keywords in the received message;

상기 분류된 우울증 키워드와 연관된 우울증 문진 문항에 대한 질문 메시지를 생성하는 단계; 상기 생성된 질문 메시지를 사용자 단말로 송신하는 단계; 상기 질문 메시지에 대한 응답 메시지의 텍스트로부터 우울증 점수를 산출하는 단계; 및 상기 산출된 우울증 점수를 기초로 하여 사용자의 우울증 분석 결과를 출력하는 단계를 포함하고, 상기 우울증 키워드 분류 단계는, 메시지로부터 상기 우울증 키워드를 분류할 수 있도록 학습된 제1인공지능 모델 데이터를 이용하며, 상기 우울증 점수 산출 단계는, 메시지로부터 우울증 점수를 산출할 수 있도록 학습된 제2인공지능 모델 데이터를 이용한다. The method comprises the steps of: generating a question message for a depression questionnaire item associated with the classified depression keyword; transmitting the generated question message to a user terminal; calculating a depression score from a text of a response message to the question message; and outputting a depression analysis result of the user based on the calculated depression score, wherein the depression keyword classification step uses first artificial intelligence model data learned to be able to classify the depression keyword from a message, and the depression score calculation step uses second artificial intelligence model data learned to be able to calculate a depression score from a message.

여기서, 상기 우울증 질문 메시지 생성 단계는, 상기 우울증 키워드와 연관된 우울증 문진 문항을 포함하는 우울증 질문 생성용 데이터를 이용할 수 있다. Here, the depression question message generation step can use data for generating depression questions including depression questionnaire questions associated with the depression keyword.

또한, 상기 우울증 분석 결과 출력 단계는, 상기 수신 메시지에서 우울증과 관련된 언어적 표현을 추가로 반영할 수 있다. Additionally, the depression analysis result output step may additionally reflect linguistic expressions related to depression in the received message.

여기서, 상기 우울증 문진 문항은 BDI, HAM-D, PHQ-9 중 적어도 하나일 수 있다.Here, the depression questionnaire may be at least one of BDI, HAM-D, and PHQ-9.

본 발명의 실시예에 따르면, 자연어 처리를 적용한 챗봇을 이용한 우울증 진단 시스템 및 그 방법을 이용하여 우울증 키워드를 분류하고, 우울증 평가 척도를 기반으로 한 질문을 생성하며, 개별 우울증 환자의 외래 진료 사이 기간의 정신건강 상태를 파악할 수 있다. According to an embodiment of the present invention, a depression diagnosis system and method using a chatbot that applies natural language processing can be used to classify depression keywords, generate questions based on a depression assessment scale, and identify the mental health status of individual depression patients during the period between outpatient visits.

또한, 본 발명의 실시예에 따르면, 챗봇을 이용한 우울증 진단 시스템을 이용하여 개별 우울증 환자의 정확한 진단과 치료를 할 수 있다.In addition, according to an embodiment of the present invention, an accurate diagnosis and treatment of individual depression patients can be performed using a depression diagnosis system using a chatbot.

또한, 본 발명의 실시예에 따르면, 우울증 환자뿐만 아니라 우울증 증상을 인지 못하는 사람까지 정신 건강 관리를 제공받을 수 있다.Additionally, according to an embodiment of the present invention, mental health care can be provided not only to patients with depression but also to people who are unaware of their depression symptoms.

본 발명의 효과는 상기한 효과로 한정되는 것은 아니며, 본 발명의 설명 또는 청구범위에 기재된 발명의 구성으로부터 추론 가능한 모든 효과를 포함하는 것으로 이해되어야 한다.The effects of the present invention are not limited to the effects described above, and should be understood to include all effects that can be inferred from the composition of the invention described in the description or claims of the present invention.

도 1은 본 발명의 실시예에 따른 우울증 진단 시스템의 개요를 도시한 도면이다.
도 2는 본 발명의 실시예에 따른 우울증 진단 시스템의 구성을 도시한 블록도이다.
도 3은 본 발명의 실시예에 따른 데이터베이스의 구성을 도시한 블록도이다.
도 4는 본 발명의 실시예에 따른 우울증 키워드 분류부에 의한 우울증 키워드 문장 분류 과정을 도시한 도면이다.
도 5는 본 발명의 실시예에 따른 우울증 질문 생성부에 의한 챗봇의 메시지 송신 과정을 도시한 도면이다.
도 6은 본 발명의 실시예에 따른 우울증 점수 산출부에 의한 우울증 점수 산출 과정을 도시한 도면이다.
도 7은 본 발명의 실시예에 따른 챗봇을 이용한 우울증 진단 방법을 도시하는 흐름도이다.
도 8은 본 발명의 실시예에 따른 BDI 문진 기반 챗봇의 송수신 메시지를 도시한 도면이다.
FIG. 1 is a diagram illustrating an overview of a depression diagnosis system according to an embodiment of the present invention.
FIG. 2 is a block diagram illustrating the configuration of a depression diagnosis system according to an embodiment of the present invention.
FIG. 3 is a block diagram illustrating the configuration of a database according to an embodiment of the present invention.
FIG. 4 is a diagram illustrating a depression keyword sentence classification process by a depression keyword classification unit according to an embodiment of the present invention.
FIG. 5 is a diagram illustrating a message transmission process of a chatbot by a depression question generation unit according to an embodiment of the present invention.
FIG. 6 is a diagram illustrating a depression score calculation process by a depression score calculation unit according to an embodiment of the present invention.
Figure 7 is a flowchart illustrating a method for diagnosing depression using a chatbot according to an embodiment of the present invention.
FIG. 8 is a diagram illustrating transmitted and received messages of a BDI questionnaire-based chatbot according to an embodiment of the present invention.

이하에서는 첨부한 도면을 참조하여 본 발명을 설명하기로 한다. 그러나 본 발명은 여러 가지 상이한 형태로 구현될 수 있으며, 따라서 여기에서 설명하는 실시예로 한정되는 것은 아니다. 그리고 도면에서 본 발명을 명확하게 설명하기 위해서 설명과 관계없는 부분은 생략하였으며, 명세서 전체를 통하여 유사한 부분에 대해서는 유사한 도면 부호를 붙였다.Hereinafter, the present invention will be described with reference to the attached drawings. However, the present invention can be implemented in various different forms, and therefore is not limited to the embodiments described herein. In addition, in order to clearly describe the present invention in the drawings, parts that are not related to the description are omitted, and similar parts are assigned similar drawing reference numerals throughout the specification.

명세서 전체에서, 어떤 부분이 다른 부분과 "연결(접속, 접촉, 결합)"되어 있다고 할 때, 이는 "직접적으로 연결"되어 있는 경우뿐 아니라, 그 중간에 다른 부재를 사이에 두고 "간접적으로 연결"되어 있는 경우도 포함한다. 또한 어떤 부분이 어떤 구성요소를 "포함"한다고 할 때, 이는 특별히 반대되는 기재가 없는 한 다른 구성요소를 제외하는 것이 아니라 다른 구성요소를 더 구비할 수 있다는 것을 의미한다.Throughout the specification, when a part is said to be "connected (connected, contacted, joined)" to another part, this includes not only cases where it is "directly connected" but also cases where it is "indirectly connected" with another member in between. Also, when a part is said to "include" a certain component, this does not mean that other components are excluded, unless otherwise specifically stated, but that other components can be included.

본 명세서에서 사용한 용어는 단지 특정한 실시예를 설명하기 위해 사용된 것으로, 본 발명을 한정하려는 의도가 아니다. 단수의 표현은 문맥상 명백하게 다르게 뜻하지 않는 한, 복수의 표현을 포함한다. 본 명세서에서, "포함하다" 또는 "가지다" 등의 용어는 명세서상에 기재된 특징, 숫자, 단계, 동작, 구성요소, 부품 또는 이들을 조합한 것이 존재함을 지정하려는 것이지, 하나 또는 그 이상의 다른 특징들이나 숫자, 단계, 동작, 구성요소, 부품 또는 이들을 조합한 것들의 존재 또는 부가 가능성을 미리 배제하지 않는 것으로 이해되어야 한다.The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the present invention. The singular expression includes the plural expression unless the context clearly indicates otherwise. As used herein, the terms "comprises" or "has" and the like are intended to specify the presence of a feature, number, step, operation, component, part or combination thereof described in the specification, but should be understood to not exclude in advance the possibility of the presence or addition of one or more other features, numbers, steps, operations, components, parts or combinations thereof.

본 명세서에서, "모듈"은 하드웨어, 소프트웨어 또는 펌웨어로 구성된 유닛을 포함하며, 예컨대 로직, 논리 블록, 부품, 또는 회로 등의 용어와 상호 호환적으로 사용될 수 있다. 모듈은 일체로 구성된 부품 또는 하나 또는 그 이상의 기능을 수행하는 최소 단위 또는 그 일부가 될 수 있다. 예컨대 모듈은ASIC(application-specific integrated circuit)으로 구성될 수 있다.In this specification, a "module" includes a unit composed of hardware, software or firmware, and may be used interchangeably with terms such as logic, logic block, component, or circuit. A module may be an integrally composed component or a minimum unit or part thereof that performs one or more functions. For example, a module may be composed of an application-specific integrated circuit (ASIC).

이하 첨부된 도면을 참고하여 본 발명의 실시예를 상세히 설명하기로 한다.Hereinafter, an embodiment of the present invention will be described in detail with reference to the attached drawings.

도 1은 본 발명의 실시예에 따른 우울증 진단 시스템의 개요를 도시하고 있다.Figure 1 illustrates an overview of a depression diagnosis system according to an embodiment of the present invention.

본 발명의 실시예에 따른 우울증 진단 시스템(100)은 챗봇(110)을 통해 사용자 단말(10)과 메시지를 송수신하며, 시스템(100)은 송수신된 메시지에 기초하여 우울증 분석 결과를 도출할 수 있다. The depression diagnosis system (100) according to an embodiment of the present invention transmits and receives messages with a user terminal (10) through a chatbot (110), and the system (100) can derive depression analysis results based on the transmitted and received messages.

우울증 진단 시스템(100)은 서버 또는 클라우드 형태로 구현이 가능하며, 인공지능 모델, 데이터베이스, 자연어 처리 엔진 등을 구비하거나 동작 가능하도록 연결된다. The depression diagnosis system (100) can be implemented in the form of a server or cloud, and is equipped with or connected to an artificial intelligence model, a database, a natural language processing engine, etc.

챗봇(110)은 우울증 진단 시스템(100)의 제어를 받아 동작하지만, 사용자 단말(10)의 메신저 프로그램, 가상 캐릭터 또는 음성 통화 프로그램 등 다양한 형태로 구현되어 동작된다. The chatbot (110) operates under the control of the depression diagnosis system (100), but is implemented and operated in various forms such as a messenger program, virtual character, or voice call program of the user terminal (10).

사용자는 텍스트 또는 음성으로 챗봇(110)과 일상적인 대화를 수행하면, 챗봇은 자연어 처리를 수행하여 사용자의 대화 의도를 파악하고 우울증 진단을 위한 대화를 유도하게 된다. When a user conducts a daily conversation with a chatbot (110) via text or voice, the chatbot performs natural language processing to understand the user's conversation intention and guides the conversation for diagnosing depression.

진행된 대화에서는 객관적인 우울증 진단 지표로서 우울증 점수가 산출되고 이는 우울증 진단 및 치료의 데이터로서 활용된다. In the conducted conversation, a depression score is calculated as an objective depression diagnosis indicator, and this is used as data for depression diagnosis and treatment.

이하, 우울증 진단 시스템(100)의 구성에 대해 도 2를 참조하여 상세히 설명한다. Below, the configuration of the depression diagnosis system (100) is described in detail with reference to Fig. 2.

도 2는 본 발명의 실시예에 따른 우울증 진단 시스템의 구성을 도시한 블록도이다.FIG. 2 is a block diagram illustrating the configuration of a depression diagnosis system according to an embodiment of the present invention.

도 2에 도시된 바와 같이, 우울증 진단 시스템(100)은, 챗봇(110), 우울증 키워드 분류부(120), 자연어 응답 생성부(130), 우울증 질문 생성부(140), 우울증 점수 산출부(150), 우울증 분석 엔진(160), 데이터베이스(170)을 포함할 수 있다.As illustrated in FIG. 2, the depression diagnosis system (100) may include a chatbot (110), a depression keyword classification unit (120), a natural language response generation unit (130), a depression question generation unit (140), a depression score calculation unit (150), a depression analysis engine (160), and a database (170).

우울증 진단 시스템(100)은 메신저앱 또는 가상 캐릭터와 수단인 챗봇(110)을 통해 메시지를 사용자 단말(10)과 송수신한다. 우울증 진단 시스템(100)은 다수의 사용자가 접속 가능한 서버 또는 전용 접속을 제공하는 스탠드 얼론 장치, 또는 클라우드 시스템으로 구현될 수 있다.The depression diagnosis system (100) sends and receives messages to and from a user terminal (10) through a messenger app or a chatbot (110) that is a virtual character and means. The depression diagnosis system (100) can be implemented as a server that multiple users can access, a stand-alone device that provides dedicated access, or a cloud system.

사용자 단말(10)은 스마트폰, 태블릿 PC, 노트북 PC, 데스크탑 PC와 같은 프로세서, 메모리, 통신, 음성 인식 기능을 갖춘 장치가 될 수 있다. 또는, 디스플레이, 입력 및 음성 인식 기능을 갖춘 전용의 장치, 키오스크, POC(Clinical point of care) 장비가 될 수 있다.The user terminal (10) may be a device equipped with a processor, memory, communication, and voice recognition functions, such as a smart phone, tablet PC, notebook PC, or desktop PC. Or, it may be a dedicated device equipped with a display, input, and voice recognition functions, a kiosk, or a POC (Clinical point of care) device.

사용자 단말(10)에는 텍스트(Text) 및 음성이 입력될 수 있다. 사용자 단말(10)에 입력된 음성은 사용자 단말(10)에 포함된 음성 인식 기능에 의해 텍스트 형태의 데이터로 변환될 수 있다.Text and voice can be input into the user terminal (10). Voice input into the user terminal (10) can be converted into text-type data by a voice recognition function included in the user terminal (10).

사용자 단말(10)로부터 챗봇으로 수신되는 수신 메시지는 텍스트일 수 있다. 수신 메시지는 사용자 단말(10)으로부터 챗봇(110)으로 수신될 수 있다. 또한, 송신 메시지는 챗봇(110)으로부터 사용자 단말(10)으로 송신될 수 있다.The received message received from the user terminal (10) to the chatbot may be text. The received message may be received from the user terminal (10) to the chatbot (110). In addition, the transmitted message may be transmitted from the chatbot (110) to the user terminal (10).

챗봇(110)은 우울증 키워드 분류부(120) 및 우울증 점수 산출부(150)에 수신 메시지를 전달할 수 있다. 또한, 송신 메시지는 자연어 응답 생성부(130) 및 우울증 질문 생성부(140)로부터 챗봇(110)을 통해 전달될 수 있다. 또한, 챗봇(110)은 송수신된 수신 메시지 및 송신 메시지를 데이터베이스(170)에 저장할 수 있다.The chatbot (110) can transmit received messages to the depression keyword classification unit (120) and the depression score calculation unit (150). In addition, the transmission messages can be transmitted from the natural language response generation unit (130) and the depression question generation unit (140) through the chatbot (110). In addition, the chatbot (110) can store the transmitted and received received messages in the database (170).

우울증 키워드 분류부(120)는 수신 메시지를 분류하는 자연어 처리(NLP, Natural language processing) 모델로 구현될 수 있다. 구체적으로, 우울증 키워드 분류부(120)는 수신 메시지의 텍스트 중 우울증에 관련된 것(우울증 키워드를 포함하거나, 우울증 문진 문항 또는 응답 항목을 포함하는 텍스트)과, 우울증에 관련되지 않은 것을 분류하는 자연어 처리 모델로 구현될 수 있다. 우울증 키워드는 후술하는 제1인공지능 모델을 이용하여 분류될 수 있다. The depression keyword classification unit (120) may be implemented as a natural language processing (NLP) model that classifies received messages. Specifically, the depression keyword classification unit (120) may be implemented as a natural language processing model that classifies texts of received messages that are related to depression (texts that include depression keywords or depression questionnaire items or response items) and those that are not related to depression. The depression keywords may be classified using the first artificial intelligence model described below.

또한, 우울증 키워드 분류부(120)는 수신 메시지가 우울증에 관련된 것으로 분류되면 우울증 질문 생성부(140)로 해당 수신 메시지를 전달할 수 있다. 또한, 우울증 키워드 분류부(120)에 의해 수신 메시지가 우울증에 관련되지 않은 것으로 분류되면 자연어 응답 생성부(130)로 해당 수신 메시지를 전달할 수 있다.In addition, if the depression keyword classification unit (120) classifies the received message as being related to depression, it can forward the received message to the depression question generation unit (140). In addition, if the depression keyword classification unit (120) classifies the received message as not being related to depression, it can forward the received message to the natural language response generation unit (130).

자연어 응답 생성부(130)는 자연어 응답 생성부(130)에 전달된 수신 메시지에 상응하는 송신 메시지를 생성하여 챗봇(110)에 전달하는 자연어 처리 모델로 구현될 수 있다. 구체적으로, 자연어 응답 생성부(130)에 의해 생성된 송신 메시지는 일상적인 대화와 감성적인 공감을 이끌어내는 미리 정해진 데이터로부터 선택된 응답이 될 수 있다.The natural language response generation unit (130) may be implemented as a natural language processing model that generates a transmission message corresponding to a received message transmitted to the natural language response generation unit (130) and transmits it to the chatbot (110). Specifically, the transmission message generated by the natural language response generation unit (130) may be a response selected from predefined data that elicits everyday conversation and emotional empathy.

우울증 질문 생성부(140)는 우울증 질문 생성부(140)에 전달된 우울증 관련 수신 메시지에 상응하는 질문을 생성하여 챗봇(110)에 전달하는 자연어 처리 모델로 구현될 수 있다. 구체적으로, 우울증 질문 생성부(140)에 의해 생성된 질문 메시지는 우울증 평가 척도(BDI, HAM-D, PHQ-9 등)의 우울증 문진 문항에서 추출된 질문과 수신 메시지의 정보를 기초로 한 수신 메시지에 가장 부합하는 질문을 포함할 수 있다.The depression question generation unit (140) may be implemented as a natural language processing model that generates a question corresponding to a depression-related received message transmitted to the depression question generation unit (140) and transmits it to the chatbot (110). Specifically, the question message generated by the depression question generation unit (140) may include a question extracted from a depression questionnaire of a depression assessment scale (BDI, HAM-D, PHQ-9, etc.) and a question that best matches the received message based on information in the received message.

우울증 점수 산출부(150)는 우울증 점수 산출부(150)에 전달된 수신 메시지에 상응하는 우울증 점수를 산출하는 자연어 처리 모델로 구현될 수 있다. 구체적으로, 질문에 대한 응답 메시지로부터 우울증 평가 척도(BDI, HAM-D, PHQ-9 등)의 문진 응답 항목에 대응하는 우울증 평가 척도를 분류하여, 우울증 평가 척도를 기준으로 산출 우울증 점수를 산출한다.The depression score calculation unit (150) can be implemented as a natural language processing model that calculates a depression score corresponding to a received message transmitted to the depression score calculation unit (150). Specifically, a depression assessment scale corresponding to a questionnaire response item of a depression assessment scale (BDI, HAM-D, PHQ-9, etc.) is classified from a response message to a question, and a calculated depression score is calculated based on the depression assessment scale.

우울증 분석 엔진(160)은 우울증 분석 엔진(160)으로 전달된 산출 우울증 점수와 챗봇의 메시지를 종합하여 수신 메시지의 우울증 상태를 판단할 수 있다. The depression analysis engine (160) can determine the depression status of a received message by synthesizing the depression score transmitted to the depression analysis engine (160) and the message from the chatbot.

구체적으로, 우울증 분석 엔진(160)은 수신 메시지의 언어적 표현에서 드러나는 우울증의 수준을 진단하며, 우울증 분석 결과를 출력한다. 예를 들어, 건강한 사람에 비해 우울증에 걸린 사람들이 언어적 표현 중에 '1인칭 단수 대명사'를 많이 사용하는 특성을 이용하여, 우울증 분석 엔진(160)은 수신 메시지에 사용된 '1인칭 단수 대명사'의 빈도를 계산하여 우울증의 수준을 측정한다. 이와 같이 우울증 분석 엔진(160)은 산출 우울증 점수와 언어적 표현의 특성을 종합하여 우울증 분석 결과 도출에 이용할 수 있다.Specifically, the depression analysis engine (160) diagnoses the level of depression revealed in the linguistic expression of the received message and outputs the depression analysis result. For example, by utilizing the characteristic that people with depression use 'first-person singular pronouns' more frequently in their linguistic expressions than healthy people, the depression analysis engine (160) calculates the frequency of 'first-person singular pronouns' used in the received message to measure the level of depression. In this way, the depression analysis engine (160) can derive the depression analysis result by synthesizing the generated depression score and the characteristics of the linguistic expression.

도 3은 본 발명의 실시예에 따른 데이터베이스의 구성을 도시한 블록도이다.FIG. 3 is a block diagram illustrating the configuration of a database according to an embodiment of the present invention.

도 3을 참조하면, 데이터베이스(170)는 자연어 처리 모델 데이터(171), 우울증 문진 목록 데이터(172) 및 우울증 분석 엔진 데이터(173)를 포함할 수 있다.Referring to FIG. 3, the database (170) may include natural language processing model data (171), depression questionnaire list data (172), and depression analysis engine data (173).

자연어 처리 모델 데이터(171)는 자연어 응답 데이터(171a), 제1 인공지능 모델 데이터(171b), 우울증 질문 생성용 데이터(171c) 및 제2 인공지능 모델 데이터(171d)를 포함할 수 있다.Natural language processing model data (171) may include natural language response data (171a), first artificial intelligence model data (171b), data for generating depression questions (171c), and second artificial intelligence model data (171d).

자연어 응답 데이터(171a)는 도 2의 자연어 응답 생성부(130)가 자연어 처리를 위해 열람하는 데이터를 포함할 수 있다. 구체적으로, 자연어 응답 데이터(171a)는 일상적 대화 데이터, 감성적인 공감을 가진 응답 데이터를 포함할 수 있다.Natural language response data (171a) may include data that the natural language response generation unit (130) of Fig. 2 views for natural language processing. Specifically, natural language response data (171a) may include everyday conversation data and response data with emotional empathy.

제1 인공지능 모델 데이터(171b)는 도 2의 우울증 키워드 분류부(120)가 수신 메시지에서 우울증과 관련된 키워드를 분류할 수 있도록 학습된 제1인공지능 모델에 관한 데이터이다. 제1인공지능 모델 데이터(171b)는 우울증 문진 데이터, 우울증 환자와의 녹취 데이터, 우울증과 관련된 학술 자료에 등을 통해 학습될 수 있으며, 수신 메시지에 포함된 키워드와 앞뒤 문맥 사이의 관계를 기반으로 우울증과의 관련성을 수치화하여 제공하는 것이 가능하다. The first artificial intelligence model data (171b) is data about the first artificial intelligence model that is learned so that the depression keyword classification unit (120) of Fig. 2 can classify keywords related to depression in received messages. The first artificial intelligence model data (171b) can be learned through depression questionnaire data, recorded data with depression patients, academic materials related to depression, etc., and it is possible to provide a numerical value of the relevance to depression based on the relationship between the keywords included in the received message and the preceding and following contexts.

우울증 질문 생성용 데이터(171c)는 도 2의 우울증 질문 생성부(140)가 자연어 처리를 위해 열람하는 데이터를 포함할 수 있다. 구체적으로, 우울증 질문 생성용 데이터(171c)는 수신 메시지의 우울증 키워드와 연관된 우울증 진단 척도의 문진 문항 또는 문진 항목에 대한 질문 데이터를 포함할 수 있다. Data (171c) for generating a depression question may include data that the depression question generating unit (140) of Fig. 2 views for natural language processing. Specifically, data (171c) for generating a depression question may include question data for questionnaire items or questionnaire items of a depression diagnosis scale associated with a depression keyword of a received message.

제2 인공지능 모델 데이터(171d)는 도 2의 우울증 점수 산출부(150)가 수신 메시지로부터 우울증 진단 척도에 관한 점수를 산출할 수 있도록 학습된 인공지능 모델에 관한 데이터이다. 제2인공지능 모델 데이터(171d)는 우울증 문진 항목의 답변 리스트, 미리 진단된 우울증 환자의 진단 결과, 우울증 환자와의 녹취 데이터, 우울증 점수 및 통계와 관련된 학술 자료에 등을 통해 학습될 수 있다. 우울증 점수 산출부(150)은 수신 메시지의 자연어 처리를 위하여 제2 인공지능 모델 데이터(170d)를 열람하고 수신 메시지로부터 우울증 점수에 관한 용어, 키워드, 문구를 추출하여 우울증 척도 측정을 위한 문진 항목과 상관성을 도출하여 정확한 우울증 점수를 산출하게 된다. The second artificial intelligence model data (171d) is data about an artificial intelligence model learned so that the depression score calculation unit (150) of Fig. 2 can calculate a score for a depression diagnosis scale from a received message. The second artificial intelligence model data (171d) can be learned through a list of answers to depression questionnaire items, diagnosis results of patients with pre-diagnosed depression, recorded data with patients with depression, academic materials related to depression scores and statistics, etc. The depression score calculation unit (150) reads the second artificial intelligence model data (170d) for natural language processing of the received message, extracts terms, keywords, and phrases related to depression scores from the received message, and derives a correlation with questionnaire items for measuring the depression scale to calculate an accurate depression score.

우울증 문진 목록 데이터(172)는, 상기 챗봇을 통해 접속했던, 사용자 계정별로 우울증 문진에 대해 누적된 데이터를 저장할 수 있다. 더 구체적으로, 우울증 문진 목록 데이터(172)는 사용자별로 챗봇의 송수신 메시지, 산출 우울증 점수, 우울증 분석 결과를 저장할 수 있다.The depression questionnaire list data (172) can store accumulated data on depression questionnaires for each user account that accessed through the chatbot. More specifically, the depression questionnaire list data (172) can store messages sent and received by the chatbot, calculated depression scores, and depression analysis results for each user.

우울증 분석 엔진 데이터(173)는 도 2의 우울증 분석 엔진(160)이 우울증 분석 결과를 출력하기 위해 열람하는 데이터로서, 산출 우울증 점수와 우울증과 관련된 언어적 표현의 데이터가 저장될 수 있다. 예를 들어, 우울증 분석 엔진 데이터(173)는 수신 메시지의 '1인칭 단수 대명사'의 사용 빈도와 매칭된 우울증 척도 데이터가 저장될 수 있다 .Depression analysis engine data (173) is data that the depression analysis engine (160) of Fig. 2 views to output the depression analysis results, and data on the calculated depression score and linguistic expressions related to depression may be stored. For example, depression analysis engine data (173) may store depression scale data that matches the frequency of use of the 'first-person singular pronoun' in the received message.

도 4는 본 발명의 실시예에 따른 우울증 키워드 분류부에 의한 우울증 키워드 분류 과정을 도시한 도면이다.FIG. 4 is a diagram illustrating a depression keyword classification process by a depression keyword classification unit according to an embodiment of the present invention.

도 4에 도시된 바와 같이, 우울증 키워드 분류부(120)는 수신 메시지의 분류 과정에서 제1 인공지능 모델 데이터(171b)를 열람할 수 있다. 또한, 우울증 키워드 분류부(120)는 수신 메시지를 우울증에 관련된 것으로 분류하는 경우, 수신 메시지의 심리 유형을 추출할 수 있다. As shown in Fig. 4, the depression keyword classification unit (120) can view the first artificial intelligence model data (171b) during the classification process of the received message. In addition, the depression keyword classification unit (120) can extract the psychological type of the received message when classifying the received message as being related to depression.

예를 들어, 도 4에 도시된 바와 같이, 우울증 키워드 분류부(120)는 제1 인공지능 모델 데이터(171b)에 저장된 우울증 키워드를 열람하여 수신메시지를 우울증에 관련된 것으로 분류할 수 있다. 구체적으로, 우울증 키워드 분류부(120)는 수신 메시지를 수면 양상 변화에 관련된 우울증에 관련된 메시지로 분류할 수 있다.For example, as illustrated in FIG. 4, the depression keyword classification unit (120) can classify a received message as related to depression by reviewing the depression keywords stored in the first artificial intelligence model data (171b). Specifically, the depression keyword classification unit (120) can classify a received message as a message related to depression related to changes in sleep patterns.

도 5는 본 발명의 실시예에 따른 우울증 질문 생성부에 의한 챗봇의 메시지 송신 과정을 도시한 도면이다.FIG. 5 is a diagram illustrating a message transmission process of a chatbot by a depression question generation unit according to an embodiment of the present invention.

도 5에 도시된 바와 같이, 우울증 질문 생성부(140)는 송신 메시지의 생성 과정에서 우울증 질문 생성용 데이터(171c)를 열람할 수 있다. 예를 들어, 수신 메시지에서 수면 양상 변화에 관련된 우울증 키워드가 검출되면, 도 5에 도시된 바와 같이, 우울증 질문 생성부(140)는 우울증 질문 생성용 데이터(171c)에 저장된 우울증 문진 문항 중에서 수면 양상 변화에 관련된 문진 문항을 추출할 수 있다. 상기 우울증 문진 문항은 우울증 문진을 위한 질문에 해당하며, 챗봇의 질문 메시지는 우울증 문진 문항에 대응한 질문 형태로 구현될 수 있다. As shown in Fig. 5, the depression question generation unit (140) can view the depression question generation data (171c) during the process of generating the transmission message. For example, if a depression keyword related to sleep pattern change is detected in the received message, as shown in Fig. 5, the depression question generation unit (140) can extract a questionnaire related to sleep pattern change from among the depression questionnaire items stored in the depression question generation data (171c). The depression questionnaire items correspond to questions for the depression questionnaire, and the chatbot's question message can be implemented in the form of a question corresponding to the depression questionnaire items.

도 6은 본 발명의 실시예에 따른 우울증 점수 산출부에 의한 우울증 점수 산출 과정을 도시한 도면이다.FIG. 6 is a diagram illustrating a depression score calculation process by a depression score calculation unit according to an embodiment of the present invention.

도 6에 도시된 바와 같이, 우울증 점수 산출부(150)는 산출 우울증 점수를 산출하는 과정에서 제2 인공지능 모델 데이터(170d)를 열람할 수 있다. 또한, 우울증 점수 산출부(150)는 송신 메시지의 응답에 해당하는 수신 메시지의 우울증 점수를 계산할 수 있다. 우울증 점수 산출부(150)은 제2인공지능 모델 데이터(171d)를 이용하여 응답 메시지로부터 긍정, 중간, 약한 부정, 강한 부정을 분류하고 이를 우울증 문진 항목의 점수와 매칭할 수 있다.As shown in Fig. 6, the depression score calculation unit (150) can view the second artificial intelligence model data (170d) in the process of calculating the calculated depression score. In addition, the depression score calculation unit (150) can calculate the depression score of the received message corresponding to the response to the transmitted message. The depression score calculation unit (150) can classify the response message into positive, medium, weak negative, and strong negative using the second artificial intelligence model data (171d) and match them with the scores of the depression questionnaire items.

예를 들어, 도 6에 도시된 바와 같이, 우울증 점수 산출부(150)는 '맞아. 잠을 너무 못 자서 죽겠어.'라는 수신 메시지를 제2 인공지능 모델 데이터(171d)에 저장된 우울증 문진 항목에 포함되어 있는 BDI 수면 양상 변화의 '3: 나는 거의 하루종일 잠을 잔다/나는 이전보다 1~2시간 일찍 잠에서 깨고, 다시 잠들기 어렵다'으로 분류하고 우울증 점수를 3점으로 산출할 수 있다.For example, as illustrated in FIG. 6, the depression score calculation unit (150) can classify the received message, “That’s right. I can’t sleep at all, I’m dying.” into “3: I sleep almost all day/I wake up 1-2 hours earlier than before and have difficulty falling asleep again” of the BDI sleep pattern change included in the depression questionnaire stored in the second artificial intelligence model data (171d) and calculate the depression score as 3 points.

도 7은 본 발명의 실시예에 따른 챗봇을 이용한 우울증 진단 방법을 도시하는 흐름도이다.Figure 7 is a flowchart illustrating a method for diagnosing depression using a chatbot according to an embodiment of the present invention.

단계(S101)에서 우울증 진단 시스템은 사용자 단말의 요청에 응답하여 챗봇을 활성화한다. 챗봇은 사용자 단말의 어플리케이션이나 다양한 형태의 프로그램으로 활성화되며, 사용자의 계정 정보를 통해 개인 정보를 식별한다. \In step (S101), the depression diagnosis system activates a chatbot in response to a request from a user terminal. The chatbot is activated by an application or various types of programs on the user terminal, and identifies personal information through the user's account information. \

챗봇이 활성화되면 우울증 진단 시스템은 사용자 단말로부터 메시지를 수신할 수 있는 상태를 유지한다. 우울증 진단 시스템은 다수의 사용자가 접속 가능한 서버 또는 전용 접속을 제공하는 스탠드 얼론 장치, 또는 클라우드 시스템으로 구현될 수 있다. 챗봇은 유, 무선 네트워크에 연결된다. 우울증 진단 시스템은 챗봇을 통해 메시지를 사용자 단말과 송수신한다. 사용자 단말에는 텍스트(Text) 및 음성이 입력될 수 있다. 사용자 단말에 입력된 음성은 사용자 단말에 포함된 음성 인식 기능에 의해 텍스트 형태의 데이터로 변환될 수 있다.When the chatbot is activated, the depression diagnosis system maintains a state in which it can receive messages from the user terminal. The depression diagnosis system can be implemented as a server that multiple users can access, a stand-alone device that provides dedicated access, or a cloud system. The chatbot is connected to a wired or wireless network. The depression diagnosis system sends and receives messages to and from the user terminal through the chatbot. Text and voice can be input to the user terminal. Voice input to the user terminal can be converted into text-type data by a voice recognition function included in the user terminal.

단계(S102)에서, 챗봇은 사용자 단말로부터 메시지를 수신한다. 사용자 단말로부터 챗봇으로 수신되는 수신 메시지는 텍스트일 수 있다. 수신 메시지는 우울증에 관련된 것, 우울증에 관련되지 않은 것일 수 있다. 수신 메시지가 우울증과 관련되지 않은 것이 아닌 경우에는 우울증 진단 시스템은 자연어 응답 데이터를 이용하여 지속적인 대화를 유도하게 된다. 또한, 챗봇은 우울증 키워드 분류부와 우울증 점수 산출부에 수신 메시지를 전달하게 된다.In step (S102), the chatbot receives a message from the user terminal. The received message received from the user terminal to the chatbot may be text. The received message may be related to depression or may not be related to depression. If the received message is not related to depression, the depression diagnosis system uses natural language response data to induce a continuous conversation. In addition, the chatbot transmits the received message to the depression keyword classification unit and the depression score calculation unit.

단계(S103)에서, 우울증 진단 시스템 내의 우울증 키워드 분류부는 수신 메시지의 텍스트에서 우울증에 관련된 메시지와 키워드를 분류한다. 전술한 바와 같이, 우울증 키워드는 미리 학습된 제1인공지능 모델을 이용하여 분류될 수 있다. 우울증 키워드 분류부는 우울증 키워드 분류부에 의해 수신 메시지가 우울증에 관련된 것으로 분류되면 우울증 질문 생성부로 해당 수신 메시지와 키워드를 전달할 수 있다. 우울증 키워드 분류부는 수신 메시지 중 우울증에 관련된 수신 메시지를 분류하는 자연어 처리 모델로 구현될 수 있다. In step (S103), the depression keyword classification unit within the depression diagnosis system classifies messages and keywords related to depression from the text of the received message. As described above, the depression keywords can be classified using the first artificial intelligence model that has been learned in advance. If the depression keyword classification unit classifies the received message as related to depression, the depression keyword classification unit can transmit the corresponding received message and keywords to the depression question generation unit. The depression keyword classification unit can be implemented as a natural language processing model that classifies received messages related to depression among the received messages.

단계(S104)에서, 우울증 진단 시스템 내의 우울증 질문 생성부는 우울증 질문 생성부에 전달된 우울증 관련 수신 메시지에 상응하는 질문 메시지를 생성한다. 생성된 질문 메시지는 우울증 질문 생성부에 의해 챗봇에 전달된다. 우울증 질문 생성부에 의해 생성된 질문 메시지는 우울증 평가 척도(BDI, HAM-D, PHQ-9 등)의 우울증 문진 문항에서 추출된 질문과 수신 메시지의 정보를 기초로 한 우울증 진단을 위한 질문을 포함할 수 있다. 구체적으로, 우울증 질문 생성부의 송신 메시지 생성 과정에는 데이터베이스에 사전 저장된 다수의 우울증 평가 척도 측정을 위한 문진 문항 또는 문진 항목에서 추출된 질문이 사용될 수 있다.In step (S104), the depression question generation unit within the depression diagnosis system generates a question message corresponding to the depression-related received message transmitted to the depression question generation unit. The generated question message is transmitted to the chatbot by the depression question generation unit. The question message generated by the depression question generation unit may include questions extracted from depression questionnaire items of a depression assessment scale (BDI, HAM-D, PHQ-9, etc.) and questions for depression diagnosis based on information in the received message. Specifically, the process of generating a transmission message by the depression question generation unit may use questionnaire items for measuring a plurality of depression assessment scales pre-stored in a database or questions extracted from questionnaire items.

단계(S105)에서, 우울증 진단 시스템 내의 우울증 질문 생성부에 의해 생성된 질문 메시지는 우울증 질문 생성부로부터 챗봇으로 전달되고 전달된 질문 메시지는 챗봇을 통해 사용자 단말으로 송신된다.In step (S105), a question message generated by a depression question generation unit within a depression diagnosis system is transmitted from the depression question generation unit to a chatbot, and the transmitted question message is transmitted to a user terminal via the chatbot.

단계(S106)에서, 챗봇은 송수신된 수신 메시지 및 송신 메시지를 데이터베이스에 저장한다. 구체적으로, 챗봇을 통해 사용자 단말로 송신된 메시지 데이터와 사용자 단말에서 챗봇으로 수신된 메시지 데이터를 데이터베이스의 우울증 문진 목록 데이터에 저장한다.In step (S106), the chatbot stores the received and transmitted messages in a database. Specifically, the message data transmitted from the chatbot to the user terminal and the message data received from the user terminal to the chatbot are stored in the depression questionnaire list data of the database.

단계(S107)에서, 우울증 진단 시스템 내의 우울증 점수 산출부는 우울증 질문 생성부가 생성한 질문에 대한 응답 메시지를 이용하여 우울증 점수를 산출한다. 우울증 점수 산출부는 자연어 처리 모델로 구현될 수 있으며, 처리된 자연어로부터 우울증 척도와 관련성이 학습된 제2인공지능모델을 이용하게 된다. In step (S107), the depression score calculation unit within the depression diagnosis system calculates a depression score using a response message to a question generated by the depression question generation unit. The depression score calculation unit can be implemented as a natural language processing model, and uses a second artificial intelligence model that learns a correlation with a depression scale from the processed natural language.

구체적으로, 우울증 점수 산출부는 우울증 평가 척도(BDI, HAM-D, PHQ-9 등)의 문진 항목과 수신 메시지의 처리 결과를 매칭 시키고, 매칭된 문진 항목의 우울증 평가 척도를 기준으로 우울증 점수를 산출한다.Specifically, the depression score calculation unit matches the questionnaire items of a depression assessment scale (BDI, HAM-D, PHQ-9, etc.) with the processing results of the received message, and calculates a depression score based on the depression assessment scale of the matched questionnaire items.

단계(S108)에서, 우울증 진단 시스템 내의 우울증 분석 엔진은 우울증 분석 엔진으로 전달된 산출 우울증 점수, 챗봇의 수신 메시지 및 송신 메시지를 종합하여 수신 메시지의 우울증 분석 결과를 출력한다. In step (S108), the depression analysis engine within the depression diagnosis system synthesizes the depression score transmitted to the depression analysis engine, the received message of the chatbot, and the transmitted message to output the depression analysis result of the received message.

우울증 분석 엔진은 수신 메시지의 언어적 표현에서 드러나는 우울증의 수준을 진단하며, 우울증 분석 결과에 추가로 반영한다. 예를 들어, 건강한 사람에 비해 우울증에 걸린 사람들이 언어적 표현 중에 '1인칭 단수 대명사'를 많이 사용하는 특성을 이용하여, 우울증 분석 엔진은 수신 메시지에 사용된 '1인칭 단수 대명사'의 빈도를 계산하여 우울증의 수준을 측정하여 우울증 분석 결과에 반영할 수 있다.The depression analysis engine diagnoses the level of depression revealed in the linguistic expression of the received message and additionally reflects it in the depression analysis results. For example, by utilizing the characteristic that people with depression use 'first-person singular pronouns' more in their linguistic expressions than healthy people, the depression analysis engine can measure the level of depression by calculating the frequency of 'first-person singular pronouns' used in the received message and reflect it in the depression analysis results.

단계(S109)에서, 우울증 진단 시스템 내의 우울증 분석 엔진은 우울증 분석 결과를 데이터베이스에 저장한다. 또한, 우울증 점수 산출부는 산출 우울증 점수를 데이터베이스에 저장한다. 또한, 챗봇과 사용자 단말 사이의 수신 메시지 및 송신 메시지를 데이터베이스에 저장될 수 있다. 구체적으로 데이터베이스에는 사용자 계정별로 우울증 분석 결과, 산출 우울증 점수, 수신 메시지 및 송신 메시지를 저장될 수 있다. In step (S109), the depression analysis engine within the depression diagnosis system stores the depression analysis results in the database. In addition, the depression score calculation unit stores the calculated depression scores in the database. In addition, the received messages and transmitted messages between the chatbot and the user terminal may be stored in the database. Specifically, the database may store the depression analysis results, the calculated depression scores, the received messages, and the transmitted messages for each user account.

추가로, 상기 데이터베이스는 자연어 처리 모델 데이터, 우울증 문진 목록 데이터 및 우울증 분석 엔진 데이터를 포함할 수 있다. 데이터베이스의 자연어 처리 모델 데이터는 자연어 응답 데이터, 제1 인공지능 모델 데이터, 우울증 질문 생성용 데이터 및 제2 인공지능 모델 데이터를 저장할 수 있다. Additionally, the database may include natural language processing model data, depression questionnaire list data, and depression analysis engine data. The natural language processing model data of the database may store natural language response data, first artificial intelligence model data, depression question generation data, and second artificial intelligence model data.

도 8은 본 발명의 실시예에 따른 BDI 문진 기반 챗봇의 송수신 메시지의 예시를 도시한 도면이다.FIG. 8 is a diagram illustrating an example of transmitted and received messages of a BDI questionnaire-based chatbot according to an embodiment of the present invention.

도 8에 도시된 바와 같이, 시스템(미도시)은 BDI 문진 기반 챗봇의 송수신 메시지에 기초하여 BDI 문항 전체를 진단하여 우울증 분석 결과를 출력할 수 있다. As illustrated in Fig. 8, the system (not shown) can diagnose the entire BDI questionnaire based on the transmitted and received messages of the BDI questionnaire-based chatbot and output the depression analysis results.

예를 들어, 도 8에 도시된 바와 같이, 수신 메시지 중 'BDI 문항 진단: 수면 양상 변화'에 해당하는 메시지를 분류할 수 있고, 수신 메시지 중 'BDI문항 진단 짜증'의 감정에 해당하는 메시지를 분류할 수 있다. For example, as illustrated in Fig. 8, among the received messages, a message corresponding to 'BDI item diagnosis: sleep pattern change' can be classified, and among the received messages, a message corresponding to the emotion of 'BDI item diagnosis irritation' can be classified.

이와 같이, BDI 문진 문항에 대해 생성된 질문과 응답에 대한 점수 산출이 완료되면, 시스템(미도시)은 BDI 문항 전체의 진단을 내릴 수 있으며, 이에 대한 결과 또는 개선 방안을 제공할 수 있다. In this way, once the score calculation for the questions and answers generated for the BDI questionnaire items is completed, the system (not shown) can diagnose the entire BDI items and provide results or improvement measures for the same.

전술한 본 발명의 실시예에 따른 방법은 다양한 컴퓨터 구성요소를 통하여 실행될 수 있는 프로그램 명령 형태로 구현되어 컴퓨터 판독 가능한 기록매체에 기록될 수 있다. 컴퓨터 판독 가능한 기록매체는 프로그램 명령어, 데이터 파일, 데이터 구조 등을 단독으로 또는 조합하여 포함할 수 있다. 컴퓨터 판독 가능한 기록매체에 기록되는 프로그램 명령은 본 발명의 실시예를 위하여 특별히 설계되고 구성된 것이거나, 컴퓨터 소프트웨어 분야의 통상의 기술자에게 공지되어 사용가능한 것일 수 있다. 컴퓨터 판독 가능한 기록매체는, 하드디스크, 플로피디스크, 자기테이프 등의 자기기록 매체, CD-ROM, DVD 등의 광기록 매체, 플롭티컬디스크 등의 자기-광 매체, ROM, RAM, 플래시 메모리 등과 같이, 프로그램 명령을 저장하고 수행하도록 구성된 하드웨어를 포함한다. 프로그램 명령은, 컴파일러에 의해 만들어지는 기계어 코드, 인터프리터를 사용하여 컴퓨터에서 실행될 수 있는 고급언어 코드를 포함한다. 하드웨어는 본 발명에 따른 방법을 처리하기 위하여 하나 이상의 소프트웨어 모듈로서 작동하도록 구성될 수 있고, 그 역도 마찬가지이다.The method according to the embodiment of the present invention described above may be implemented in the form of program commands that can be executed through various computer components and recorded on a computer-readable recording medium. The computer-readable recording medium may include program commands, data files, data structures, etc., alone or in combination. The program commands recorded on the computer-readable recording medium may be specially designed and configured for the embodiment of the present invention, or may be known and usable to those skilled in the art of computer software. The computer-readable recording medium includes hardware configured to store and execute program commands, such as magnetic recording media such as hard disks, floppy disks, and magnetic tapes, optical recording media such as CD-ROMs and DVDs, magneto-optical media such as floptical disks, ROMs, RAMs, and flash memories. The program commands include machine language codes generated by a compiler and high-level language codes that can be executed on a computer using an interpreter. The hardware may be configured to operate as one or more software modules to process the method according to the present invention, and vice versa.

본 발명의 실시예에 따른 방법은 프로그램 명령 형태로 전자장치에서 실행될 수 있다. 전자장치는 스마트폰이나 스마트패드 등의 휴대용 통신 장치, 컴퓨터 장치, 휴대용 멀티미디어 장치, 휴대용 의료 기기, 카메라, 웨어러블 장치, 가전 장치를 포함한다.The method according to an embodiment of the present invention can be executed in an electronic device in the form of a program command. The electronic device includes a portable communication device such as a smart phone or a smart pad, a computer device, a portable multimedia device, a portable medical device, a camera, a wearable device, and a home appliance device.

본 발명의 실시예에 따른 방법은 컴퓨터 프로그램 제품에 포함되어 제공될 수 있다. 컴퓨터 프로그램 제품은 상품으로서 판매자 및 구매자 간에 거래될 수 있다. 컴퓨터 프로그램 제품은 기기로 읽을 수 있는 기록매체의 형태로, 또는 어플리케이션 스토어를 통해 온라인으로 배포될 수 있다. 온라인 배포의 경우에, 컴퓨터 프로그램 제품의 적어도 일부는 제조사의 서버, 어플리케이션 스토어의 서버, 또는 중계 서버의 메모리와 같은 저장 매체에 적어도 일시 저장되거나, 임시적으로 생성될 수 있다.The method according to an embodiment of the present invention may be provided as included in a computer program product. The computer program product may be traded between sellers and buyers as a product. The computer program product may be distributed in the form of a machine-readable recording medium or online through an application store. In the case of online distribution, at least a part of the computer program product may be temporarily stored or temporarily generated in a storage medium such as a memory of a manufacturer's server, an application store's server, or an intermediary server.

본 발명의 실시예에 따른 구성요소, 예컨대 모듈 또는 프로그램 각각은 단수 또는 복수의 서브 구성요소로 구성될 수 있으며, 이러한 서브 구성요소들 중 일부 서브 구성요소가 생략되거나, 또는 다른 서브 구성요소가 더 포함될 수 있다. 일부 구성요소들(모듈 또는 프로그램)은 하나의 개체로 통합되어, 통합되기 이전의 각각의 해당 구성요소에 의해 수행되는 기능을 동일 또는 유사하게 수행할 수 있다. 본 발명의 실시예에 따른 모듈, 프로그램 또는 다른 구성요소에 의해 수행되는 동작들은 순차적, 병렬적, 반복적 또는 휴리스틱하게 실행되거나, 적어도 일부 동작이 다른 순서로 실행되거나, 생략되거나, 또는 다른 동작이 추가될 수 있다.Each component according to an embodiment of the present invention, such as a module or a program, may be composed of one or more sub-components, and some of these sub-components may be omitted, or other sub-components may be further included. Some of the components (modules or programs) may be integrated into a single entity and may perform the same or similar functions performed by each of the corresponding components prior to integration. Operations performed by a module, program, or other component according to an embodiment of the present invention may be executed sequentially, in parallel, repeatedly, or heuristically, or at least some of the operations may be executed in a different order, omitted, or other operations may be added.

전술한 본 발명의 설명은 예시를 위한 것이며, 본 발명이 속하는 기술분야의 통상의 지식을 가진 자는 본 발명의 기술적 사상이나 필수적인 특징을 변경하지 않고서 다른 구체적인 형태로 쉽게 변형이 가능하다는 것을 이해할 수 있을 것이다. 그러므로 이상에서 기술한 실시예들은 모든 면에서 예시적인 것이며 한정적이 아닌 것으로 이해해야만 한다. 예를 들어, 단일형으로 설명되어 있는 각 구성 요소는 분산되어 실시될 수도 있으며, 마찬가지로 분산된 것으로 설명되어 있는 구성 요소들도 결합된 형태로 실시될 수 있다.The above description of the present invention is for illustrative purposes, and those skilled in the art will understand that the present invention can be easily modified into other specific forms without changing the technical idea or essential characteristics of the present invention. Therefore, it should be understood that the embodiments described above are exemplary in all respects and not restrictive. For example, each component described as a single component may be implemented in a distributed manner, and likewise, components described as distributed may be implemented in a combined form.

본 발명의 범위는 후술하는 청구범위에 의하여 나타내어지며, 청구범위의 의미 및 범위 그리고 그 균등 개념으로부터 도출되는 모든 변경 또는 변형된 형태가 본 발명의 범위에 포함되는 것으로 해석되어야 한다.The scope of the present invention is indicated by the claims set forth below, and all changes or modifications derived from the meaning and scope of the claims and their equivalent concepts should be interpreted as being included in the scope of the present invention.

10: 사용자 단말 100: 우울증 진단 시스템
110: 챗봇 120: 우울증 키워드 분류부
130: 자연어 응답 생성부 140: 우울증 질문 생성부
150: 우울증 점수 산출부 160: 우울증 분석 엔진
170: 데이터베이스 171: 자연어 처리 모델 데이터
171a: 자연어 응답 데이터 171b: 제1 인공지능 모델 데이터
171c: 우울증 질문 생성용 데이터 171d: 제2 인공지능 모델 데이터
172: 우울증 문진 목록 데이터 173: 우울증 분석 엔진 데이터
10: User terminal 100: Depression diagnosis system
110: Chatbot 120: Depression Keyword Classification Department
130: Natural language response generation unit 140: Depression question generation unit
150: Depression Score Calculator 160: Depression Analysis Engine
170: Database 171: Natural Language Processing Model Data
171a: Natural language response data 171b: First artificial intelligence model data
171c: Data for generating depression questions 171d: Data for the second artificial intelligence model
172: Depression questionnaire list data 173: Depression analysis engine data

Claims (9)

인공지능 챗봇을 이용한 우울증 진단 시스템에 있어서,
상기 챗봇을 통해 수신된 수신 메시지의 텍스트로부터 우울증 키워드를 분류하는 우울증 키워드 분류부;
상기 수신 메시지가 우울증 키워드로 분류된 경우, 상기 우울증 키워드와 연관된 우울증 문진 문항에 대한 질문 메시지를 생성하는 우울증 질문 생성부;
상기 질문 메시지에 대한 응답 메시지의 텍스트로부터 상기 우울증 문진 문항에 대한 우울증 점수를 산출하는 우울증 점수 산출부;
상기 산출된 우울증 점수를 기초로 우울증 분석 결과를 제공하는 우울증 분석 엔진; 및
상기 우울증 키워드 분류부가 상기 우울증 키워드를 분류할 수 있도록 학습된 제1인공지능 모델 데이터와, 상기 우울증 점수 산출부가 우울증 점수를 산출할 수 있도록 학습된 제2인공지능 모델 데이터를 포함하는 데이터베이스; 를 포함하며,
상기 우울증 분석 엔진은 상기 수신 메시지에서 우울증과 관련된 언어적 표현을 추가로 반영하여 산출 우울증 점수와 언어적 표현의 특성을 종합하여 우울증 분석 결과를 도출하는 것이고,
상기 데이터베이스는 상기 우울증과 관련된 언어적 표현에 대응하는 우울증 척도 데이터가 저장된 우울증 분석 엔진 데이터를 더 포함하는 것인
우울증 진단 시스템.
In a depression diagnosis system using an artificial intelligence chatbot,
A depression keyword classification unit that classifies depression keywords from the text of a received message received through the above chatbot;
A depression question generation unit that generates a question message for a depression questionnaire item associated with the depression keyword when the above received message is classified as a depression keyword;
A depression score calculation unit for calculating a depression score for the depression questionnaire items from the text of the response message to the above question message;
A depression analysis engine that provides depression analysis results based on the depression scores calculated above; and
A database including first artificial intelligence model data learned so that the depression keyword classification unit can classify the depression keyword, and second artificial intelligence model data learned so that the depression score calculation unit can calculate a depression score;
The above depression analysis engine additionally reflects linguistic expressions related to depression in the received message and derives a depression analysis result by synthesizing the characteristics of the depression score and linguistic expressions.
The above database further includes depression analysis engine data storing depression scale data corresponding to linguistic expressions related to the above depression.
Depression diagnostic system.
제1항에 있어서,
상기 데이터베이스는,
상기 우울증 키워드와 연관된 우울증 문진 문항을 포함하는 우울증 질문 생성용 데이터를 더 포함하는 우울증 진단 시스템.
In the first paragraph,
The above database is,
A depression diagnosis system further comprising data for generating depression questionnaires including depression questionnaire items associated with the above depression keywords.
제2항에 있어서,
상기 데이터베이스는,
상기 챗봇을 통해 접속했던 사용자별로 우울증 문진에 대한 누적 데이터가 저장된 우울증 문진 목록 데이터를 더 포함하는 우울증 진단 시스템.
In the second paragraph,
The above database is,
A depression diagnosis system further including a depression questionnaire list data in which cumulative data on depression questionnaires for each user who accessed through the above chatbot is stored.
삭제delete 제2항에 있어서,
상기 우울증 문진 문항은 BDI, HAM-D, PHQ-9 중 적어도 하나인 것인 우울증 진단 시스템.
In the second paragraph,
A depression diagnosis system in which the above depression questionnaire is at least one of the BDI, HAM-D, and PHQ-9.
우울증 진단 시스템의 인공지능 챗봇을 이용한 우울증 진단 방법에 있어서,
상기 챗봇을 활성화하는 단계;
상기 챗봇에 의해 사용자 단말로부터 메시지를 수신하는 단계;
상기 수신된 메시지의 텍스트에서 우울증 키워드를 분류하는 단계;
상기 분류된 우울증 키워드와 연관된 우울증 문진 문항에 대한 질문 메시지를 생성하는 단계;
상기 생성된 질문 메시지를 사용자 단말로 송신하는 단계;
상기 질문 메시지에 대한 응답 메시지의 텍스트로부터 우울증 점수를 산출하는 단계; 및
상기 산출된 우울증 점수를 기초로 하여 사용자의 우울증 분석 결과를 출력하는 단계를 포함하고,
상기 우울증 키워드 분류 단계는, 메시지로부터 상기 우울증 키워드를 분류할 수 있도록 학습된 제1인공지능 모델 데이터를 이용하며,
상기 우울증 점수 산출 단계는, 메시지로부터 우울증 점수를 산출할 수 있도록 학습된 제2인공지능 모델 데이터를 이용하며,
상기 우울증 분석 출력 단계는, 상기 수신 메시지에서 우울증과 관련된 언어적 표현을 추가로 반영하여 산출 우울증 점수와 언어적 표현의 특성을 종합하여 우울증 분석 결과를 도출하며,
상기 우울증 진단 시스템은 상기 제1인공지능 모델 데이터, 상기 제2인공지능 모델 데이터 및 상기 우울증과 관련된 언어적 표현에 대응하는 우울증 척도 데이터가 저장된 우울증 분석 엔진 데이터를 포함하는 데이터베이스를 포함하는 것인
우울증 진단 방법.
In a method for diagnosing depression using an artificial intelligence chatbot in a depression diagnosis system,
Steps to activate the above chatbot;
A step of receiving a message from a user terminal by the above chatbot;
A step of classifying depression keywords from the text of the received message;
A step of generating a question message for a depression questionnaire item associated with the above classified depression keywords;
A step of transmitting the generated question message to a user terminal;
A step of calculating a depression score from the text of a response message to the above question message; and
A step of outputting the user's depression analysis results based on the above-mentioned calculated depression score,
The above depression keyword classification step uses the first artificial intelligence model data learned to classify the depression keyword from the message.
The above depression score calculation step uses the second artificial intelligence model data learned to calculate the depression score from the message.
The above depression analysis output step additionally reflects linguistic expressions related to depression in the received message and synthesizes the depression score and the characteristics of the linguistic expressions to derive the depression analysis results.
The above depression diagnosis system includes a database including the first artificial intelligence model data, the second artificial intelligence model data, and depression analysis engine data in which depression scale data corresponding to linguistic expressions related to depression are stored.
How to diagnose depression.
제6항에 있어서,
우울증 질문 메시지 생성 단계는, 상기 우울증 키워드와 연관된 우울증 문진 문항을 포함하는 우울증 질문 생성용 데이터를 이용하는 것인 우울증 진단 방법.
In Article 6,
A depression diagnosis method, wherein the depression question message generation step uses data for generating a depression question including depression questionnaire items associated with the depression keyword.
삭제delete 제7항에 있어서,
상기 우울증 문진 문항은 BDI, HAM-D, PHQ-9 중 적어도 하나인 것인 우울증 진단 방법.

In Article 7,
A method for diagnosing depression, wherein the above depression questionnaire is at least one of the BDI, HAM-D, and PHQ-9.

KR1020220010865A 2022-01-25 2022-01-25 Depression diagnosis system using artificial intelligence chatbot and method thereof Active KR102719216B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020220010865A KR102719216B1 (en) 2022-01-25 2022-01-25 Depression diagnosis system using artificial intelligence chatbot and method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020220010865A KR102719216B1 (en) 2022-01-25 2022-01-25 Depression diagnosis system using artificial intelligence chatbot and method thereof

Publications (2)

Publication Number Publication Date
KR20230114847A KR20230114847A (en) 2023-08-02
KR102719216B1 true KR102719216B1 (en) 2024-10-22

Family

ID=87566900

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020220010865A Active KR102719216B1 (en) 2022-01-25 2022-01-25 Depression diagnosis system using artificial intelligence chatbot and method thereof

Country Status (1)

Country Link
KR (1) KR102719216B1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102699978B1 (en) 2023-08-11 2024-08-28 주식회사 톰소여에듀피아 User profiling system of psychological counseling platform
KR102619428B1 (en) * 2023-10-13 2023-12-29 주식회사 디오랩스 School violence, youth drug and suicide prevention system through artificial intelligence-based smartphone monitoring and emotional analysis

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102175490B1 (en) * 2020-04-14 2020-11-06 가천대학교 산학협력단 Method and apparatus for measuring depression

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20210061126A (en) 2019-11-19 2021-05-27 동아대학교 산학협력단 Apparatus and method for providing chatbot service for psychological counselling

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102175490B1 (en) * 2020-04-14 2020-11-06 가천대학교 산학협력단 Method and apparatus for measuring depression

Also Published As

Publication number Publication date
KR20230114847A (en) 2023-08-02

Similar Documents

Publication Publication Date Title
US12230369B2 (en) Systems and methods for mental health assessment
US11120895B2 (en) Systems and methods for mental health assessment
Bulla et al. A review of AI based medical assistant chatbot
US20180018966A1 (en) System for understanding health-related communications between patients and providers
Kim et al. Prediction for retrospection: Integrating algorithmic stress prediction into personal informatics systems for college students’ mental health
US20210345925A1 (en) A data processing system for detecting health risks and causing treatment responsive to the detection
Resnik et al. Prosthesis satisfaction in a national sample of Veterans with upper limb amputation
KR102719216B1 (en) Depression diagnosis system using artificial intelligence chatbot and method thereof
Martins et al. Unlocking human-like conversations: Scoping review of automation techniques for personalized healthcare interventions using conversational agents
Chatzimina et al. Employing conversational agents in palliative care: a feasibility study and preliminary assessment
KR20230103601A (en) Method and system for providing personalized health care contents based on artificial intelligence
US20240062877A1 (en) System and method for providing mental and behavioural health services
Chavan et al. Enabling remote healthcare platform for rural & urban areas
Ferrari et al. Using voice and biofeedback to predict user engagement during product feedback interviews
WO2020201389A1 (en) Method and system for medical diagnosis assistance
Hah et al. Rationalizing personal health management (PHM) policy: identifying health IT use patterns via observations of daily living (ODLs) data
Vryoni Chatbots in healthcare: towards AI-enabled general diagnosis and medical support
Yang et al. Detecting Signs of Depression for Using Chatbots–Extraction of the First Person from Japanese
Barreda et al. Transforming healthcare with chatbots: Uses and applications—A scoping review
US20250226066A1 (en) Systems and methods for mental health assessment
Riley et al. Problematising menstrual tracking apps: presenting a novel critical scoping review methodology for mapping and interpreting research literature
KR20240027185A (en) Content providing platform for digital psychological schema therapy and method thereof
Yimmee Learning From Cancer Patients Who Push on With Tenacity
Carreiro Patient relationship management (PRM) and Ai: The role of affective computing
Gupta et al. Leveraging Artificial Intelligence and Machine Learning for Disease Diagnosis in Healthcare

Legal Events

Date Code Title Description
PA0109 Patent application

Patent event code: PA01091R01D

Comment text: Patent Application

Patent event date: 20220125

PA0201 Request for examination
PG1501 Laying open of application
E902 Notification of reason for refusal
PE0902 Notice of grounds for rejection

Comment text: Notification of reason for refusal

Patent event date: 20240116

Patent event code: PE09021S01D

GRNT Written decision to grant
PR0701 Registration of establishment

Comment text: Registration of Establishment

Patent event date: 20241015

Patent event code: PR07011E01D

PR1002 Payment of registration fee

Payment date: 20241016

End annual number: 3

Start annual number: 1

PG1601 Publication of registration