KR102239223B1 - Method and system for automatic activation of machine - Google Patents

Method and system for automatic activation of machine Download PDF

Info

Publication number
KR102239223B1
KR102239223B1 KR1020190156693A KR20190156693A KR102239223B1 KR 102239223 B1 KR102239223 B1 KR 102239223B1 KR 1020190156693 A KR1020190156693 A KR 1020190156693A KR 20190156693 A KR20190156693 A KR 20190156693A KR 102239223 B1 KR102239223 B1 KR 102239223B1
Authority
KR
South Korea
Prior art keywords
emotion
conversation
user
electronic device
information
Prior art date
Application number
KR1020190156693A
Other languages
Korean (ko)
Other versions
KR20190135457A (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 KR1020190156693A priority Critical patent/KR102239223B1/en
Publication of KR20190135457A publication Critical patent/KR20190135457A/en
Application granted granted Critical
Publication of KR102239223B1 publication Critical patent/KR102239223B1/en

Links

Images

Classifications

    • 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
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/16Sound input; Sound output
    • G06F3/167Audio in a user interface, e.g. using voice commands for navigating, audio feedback
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/30Semantic analysis
    • G06K9/00302
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/16Human faces, e.g. facial parts, sketches or expressions
    • G06V40/174Facial expression recognition

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • General Engineering & Computer Science (AREA)
  • Mathematical Physics (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Multimedia (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Artificial Intelligence (AREA)
  • Computational Linguistics (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Oral & Maxillofacial Surgery (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

기계의 자동 활성을 위한 방법 및 시스템이 개시된다. 컴퓨터로 구현되는 인공지능 대화 방법은, 대화 기능이 비활성화 된 상태에서 수집된 정보로부터 사용자의 감정 정보를 추출하는 단계; 및 상기 감정 정보를 대화 활성 트리거로 사용하여 상기 대화 기능을 활성화 하는 단계를 포함할 수 있다.A method and system for automatic activation of a machine is disclosed. A computer-implemented artificial intelligence conversation method includes the steps of: extracting emotion information of a user from information collected while a conversation function is deactivated; And activating the conversation function by using the emotion information as a conversation activation trigger.

Figure R1020190156693
Figure R1020190156693

Description

기계의 자동 활성을 위한 방법 및 시스템{METHOD AND SYSTEM FOR AUTOMATIC ACTIVATION OF MACHINE}METHOD AND SYSTEM FOR AUTOMATIC ACTIVATION OF MACHINE

아래의 설명은 인공지능 대화 시스템에 관한 것이다.The description below relates to an artificial intelligence dialogue system.

일반적으로 개인비서 시스템, 챗봇 플랫폼(chatbot platform), 인공지능(AI) 스피커 등에서 사용되는 인공지능 대화 시스템은 사람의 명령어에 대한 의도를 이해하고 그에 대응하는 답변 문구를 제공하는 방식이다.In general, artificial intelligence conversation systems used in personal assistant systems, chatbot platforms, and artificial intelligence (AI) speakers are a way to understand the intention of a person's command and provide a response phrase corresponding thereto.

주로 인공지능 대화 시스템은 사람이 기능적인 요구를 전달하고 이에 기계가 사람의 요구에 대한 해답을 제공하는 방식으로, 마이크(microphone)를 통해 사용자의 음성 입력을 수신하고 수신된 음성 입력에 기반하여 디바이스 동작이나 컨텐츠 제공을 제어할 수 있다.Mainly, an artificial intelligence conversation system is a method in which a person delivers a functional request and a machine provides an answer to a person's request. It receives the user's voice input through a microphone and uses the device based on the received voice input. You can control the operation or content provision.

예를 들어, 한국공개특허 제10-2011-0139797호(공개일 2011년 12월 30일)에는 홈 네트워크 서비스에서 이동통신망 외에 와이파이와 같은 제2 통신망을 이용하여 홈 네트워크 서비스를 제공하는 것이 가능하고 홈 내 복수의 멀티미디어 기기를 사용자가 별도의 버튼 조작 없이도 음성 명령을 통해 다중 제어할 수 있는 기술이 개시되어 있다.For example, in Korean Patent Publication No. 10-2011-0139797 (published on December 30, 2011), it is possible to provide a home network service using a second communication network such as Wi-Fi in addition to a mobile communication network in the home network service. A technology is disclosed in which a user can multi-control a plurality of multimedia devices in a home through a voice command without a separate button operation.

일반적으로 인공지능 대화 시스템은 사전에 정해진 키워드(예를 들어, 기계의 이름 등)를 대화 활성 트리거로 사용하고 있다. 기계는 사용자가 기계의 이름을 부르면 이를 인식하여 명령어 수집 모드로 활성화 할 수 있으나, 기계 스스로 대화를 활성화 할 수는 없다.In general, artificial intelligence conversation systems use predetermined keywords (eg, the name of a machine) as a conversation activation trigger. The machine recognizes when the user calls the machine's name and can activate it in command collection mode, but the machine cannot activate the conversation by itself.

인공지능 대화를 위한 기계의 활성화를 스스로 트리거 할 수 있는 방법 및 시스템을 제공한다.It provides a method and system that can trigger the activation of a machine for artificial intelligence conversation by itself.

사용자의 표정 정보와 음성 정보 중 적어도 하나를 이용하여 기계 스스로 활성화 시키고 사용자에게 먼저 대화를 시작할 수 있는 방법 및 시스템을 제공한다.Provides a method and system that enables a machine to activate itself by using at least one of a user's facial expression information and voice information, and to initiate a conversation to the user.

컴퓨터로 구현되는 인공지능 대화 방법에 있어서, 대화 기능이 비활성화 된 상태에서 수집된 정보로부터 사용자의 감정 정보를 추출하는 단계; 및 상기 감정 정보를 대화 활성 트리거로 사용하여 상기 대화 기능을 활성화 하는 단계를 포함하는 인공지능 대화 방법을 제공한다.A computer-implemented artificial intelligence conversation method, comprising: extracting emotion information of a user from information collected while a conversation function is deactivated; And activating the conversation function by using the emotion information as a conversation activation trigger.

일 측면에 따르면, 상기 추출하는 단계는, 상기 사용자의 음성 입력을 수신하여 상기 음성 입력의 문장으로부터 상기 감정 정보를 추출할 수 있다.According to an aspect, the extracting may include receiving the user's voice input and extracting the emotion information from the sentence of the voice input.

다른 측면에 따르면, 상기 추출하는 단계는, 상기 사용자의 얼굴 영상을 수신하여 얼굴 표정으로부터 상기 감정 정보를 추출할 수 있다.According to another aspect, in the extracting, the emotion information may be extracted from the facial expression by receiving the user's face image.

또 다른 측면에 따르면, 상기 추출하는 단계는, 동작 센서를 통해 동작이 감지되는 경우 영상 입력 장치를 활성화 하는 단계; 상기 영상 입력 장치로부터 상기 사용자의 얼굴 영상을 수신하는 단계; 및 상기 얼굴 영상을 기반으로 얼굴 표정으로부터 상기 감정 정보를 추출하는 단계를 포함할 수 있다.According to another aspect, the extracting may include activating an image input device when motion is detected through a motion sensor; Receiving a face image of the user from the image input device; And extracting the emotion information from a facial expression based on the facial image.

또 다른 측면에 따르면, 상기 동작 센서의 동작 감지 주기를 위한 타이머가 설정될 수 있다.According to another aspect, a timer for a motion detection period of the motion sensor may be set.

또 다른 측면에 따르면, 상기 추출하는 단계는, 상기 사용자의 음성 입력을 수신하여 상기 음성 입력의 문장으로부터 제1 감정 정보를 추출하는 단계; 상기 사용자의 얼굴 영상을 수신하여 얼굴 표정으로부터 제2 감정 정보를 추출하는 단계; 및 상기 제1 감정 정보와 상기 제2 감정 정보를 종합하여 상기 사용자의 감정 정보를 판단하는 단계를 포함할 수 있다.According to another aspect, the extracting includes: receiving the user's voice input and extracting first emotion information from the sentence of the voice input; Receiving the user's face image and extracting second emotion information from the facial expression; And determining the user's emotion information by synthesizing the first emotion information and the second emotion information.

또 다른 측면에 따르면, 상기 추출하는 단계는, 상기 수집된 정보로부터 감정의 종류와 강도를 포함하는 감정 정보를 추출할 수 있다.According to another aspect, the extracting may extract emotion information including types and intensity of emotions from the collected information.

또 다른 측면에 따르면, 상기 활성화 하는 단계는, 상기 감정 정보에 포함된 감정의 강도가 설정 범위를 초과하는 경우 상기 대화 기능을 활성화 할 수 있다.According to another aspect, in the activating step, when the intensity of the emotion included in the emotion information exceeds a set range, the conversation function may be activated.

또 다른 측면에 따르면, 상기 설정 범위는 상기 사용자의 감정 패턴에 대한 학습을 통해 수렴된 값으로 설정될 수 있다.According to another aspect, the setting range may be set to a value converged through learning about the user's emotion pattern.

또 다른 측면에 따르면, 상기 활성화 하는 단계는, 상기 감정 정보에 포함된 감정의 강도가 설정 범위를 초과하는지 여부를 판단하는 단계; 상기 감정의 강도가 상기 설정 범위를 초과하는 경우 상기 사용자와 관련된 상황 정보가 사전에 설정된 활성화 조건에 부합하는지 여부를 판단하는 단계; 및 상기 상황 정보가 상기 활성화 조건에 부합되는 경우 상기 대화 기능을 활성화 하는 단계를 포함할 수 있다.According to another aspect, the activating may include determining whether the intensity of the emotion included in the emotion information exceeds a set range; Determining whether context information related to the user satisfies a preset activation condition when the intensity of the emotion exceeds the set range; And activating the conversation function when the context information meets the activation condition.

또 다른 측면에 따르면, 상기 활성화 조건은 상기 사용자의 감정 패턴이나 활동 패턴에 대한 학습을 통해 수렴된 값으로 설정되고, 상기 활성화 조건은 시간, 발화의 종류나 크기, 감정의 종류, 동작의 크기 중 적어도 하나의 조건이 포함될 수 있다.According to another aspect, the activation condition is set to a value converged through learning about the user's emotion pattern or activity pattern, and the activation condition is one of time, type or size of utterance, type of emotion, and size of motion. At least one condition may be included.

컴퓨터와 결합되어 상기 인공지능 대화 방법을 컴퓨터에 실행시키기 위해 컴퓨터 판독 가능한 기록매체에 저장된 컴퓨터 프로그램을 제공한다.It is combined with a computer to provide a computer program stored in a computer-readable recording medium to execute the artificial intelligence conversation method on the computer.

상기 인공지능 대화 방법을 컴퓨터에 실행시키기 위한 프로그램이 기록되어 있는 것을 특징으로 하는 컴퓨터에서 판독 가능한 기록매체를 제공한다.It provides a computer-readable recording medium, characterized in that a program for executing the artificial intelligence conversation method on a computer is recorded.

컴퓨터로 구현되는 인공지능 대화 시스템에 있어서, 컴퓨터에서 판독 가능한 명령을 실행하도록 구현되는 적어도 하나의 프로세서를 포함하고, 상기 적어도 하나의 프로세서는, 사용자의 대화 의도를 판단하고, 대화 기능이 비활성화 된 상태에서 수집된 정보로부터 사용자의 감정 정보를 추출하고, 상기 감정 정보를 대화 활성 트리거로 사용하여 상기 대화 기능을 활성화 하는 것을 특징으로 하는 인공지능 대화 시스템을 제공한다.A computer-implemented artificial intelligence conversation system, comprising at least one processor implemented to execute a command readable by a computer, wherein the at least one processor determines a user's conversation intention, and a conversation function is deactivated. Provides an artificial intelligence dialogue system, characterized in that the user's emotion information is extracted from the information collected at and the emotion information is used as a dialogue activation trigger to activate the dialogue function.

본 발명의 실시예들에 따르면, 사용자의 표정 정보와 음성 정보 중 적어도 하나를 이용하여 인공지능 대화를 위한 기계의 활성화를 스스로 트리거 할 수 있다. 따라서, 기계 활성화를 위한 별도의 키워드나 액션을 요구하지 않으며 사용자가 대화 의사를 먼저 전달하지 않더라도 사용자의 감정에 따라 기계가 스스로 활성화 하여 사용자에게 먼저 대화를 시작할 수 있어 사용자와 기계 간의 정서적 교감을 한층 높일 수 있다.According to embodiments of the present invention, activation of a machine for artificial intelligence conversation may be triggered by itself using at least one of the user's facial expression information and voice information. Therefore, it does not require a separate keyword or action to activate the machine, and even if the user does not communicate the intention of the conversation first, the machine activates itself according to the user's emotions and can initiate a conversation with the user, further enhancing the emotional connection between the user and the machine. You can increase it.

도 1은 본 발명의 일실시예에 따른 음성 기반 인터페이스를 활용한 서비스 환경의 예를 도시한 도면이다.
도 2는 본 발명의 일실시예에 따른 음성 기반 인터페이스를 활용한 서비스 환경의 다른 예를 도시한 도면이다.
도 3은 본 발명의 일실시예에 있어서, 클라우드 인공지능 플랫폼의 예를 도시한 도면이다.
도 4는 본 발명의 일실시예에 있어서, 전자 기기 및 서버의 내부 구성을 설명하기 위한 블록도이다.
도 5 내지 도 7은 본 발명의 일실시예에 있어서, 인공지능 대화 방법을 도시한 흐름도이다.
도 8은 본 발명의 일실시예에 있어서, 대화 활성화 과정의 예를 도시한 흐름도이다.
1 is a diagram illustrating an example of a service environment using a voice-based interface according to an embodiment of the present invention.
2 is a diagram illustrating another example of a service environment using a voice-based interface according to an embodiment of the present invention.
3 is a diagram illustrating an example of a cloud artificial intelligence platform according to an embodiment of the present invention.
4 is a block diagram illustrating an internal configuration of an electronic device and a server according to an embodiment of the present invention.
5 to 7 are flowcharts illustrating an artificial intelligence conversation method according to an embodiment of the present invention.
8 is a flowchart illustrating an example of a conversation activation process according to an embodiment of the present invention.

이하, 본 발명의 실시예를 첨부된 도면을 참조하여 상세하게 설명한다.Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings.

본 발명의 실시예들에 따른 인공지능 대화 시스템은 사용자와의 대화를 기반으로 동작하는 인터페이스를 제공하는 전자 기기를 통해 구현될 수 있다. 이때, 인공지능 대화 시스템은 사용자와의 대화를 위한 기계의 활성화를 스스로 트리거 할 수 있고 사용자에게 먼저 대화를 시작할 수 있다.The artificial intelligence conversation system according to embodiments of the present invention may be implemented through an electronic device that provides an interface that operates based on a conversation with a user. At this time, the artificial intelligence dialogue system can trigger the activation of the machine for dialogue with the user by itself and initiate dialogue with the user first.

본 발명의 실시예들에 따른 인공지능 대화 방법은 상술한 전자 기기를 통해 수행될 수 있다. 이때, 전자 기기에는 본 발명의 일실시예에 따른 컴퓨터 프로그램이 설치 및 구동될 수 있고, 전자 기기는 구동된 컴퓨터 프로그램의 제어에 따라 본 발명의 일실시예에 따른 인공지능 대화 방법을 수행할 수 있다. 상술한 컴퓨터 프로그램은 컴퓨터로 구현되는 전자 기기와 결합되어 인공지능 대화 방법을 컴퓨터에 실행시키기 위해 컴퓨터 판독 가능한 기록매체에 저장될 수 있다.The artificial intelligence conversation method according to the embodiments of the present invention may be performed through the above-described electronic device. In this case, a computer program according to an embodiment of the present invention may be installed and driven in the electronic device, and the electronic device may perform an artificial intelligence conversation method according to an embodiment of the present invention according to the control of the driven computer program. have. The above-described computer program may be combined with an electronic device implemented by a computer and stored in a computer-readable recording medium in order to execute an artificial intelligence conversation method on a computer.

도 1은 본 발명의 일실시예에 따른 음성 기반 인터페이스를 활용한 서비스 환경의 예를 도시한 도면이다. 도 1의 실시예에서는 스마트홈(smart home)이나 홈 네트워크 서비스와 같이 댁내의 디바이스들을 연결하여 제어하는 기술에서, 음성을 기반으로 동작하는 인터페이스를 제공하는 전자 기기(100)가 사용자(110)의 발화에 따라 수신되는 음성 입력 "불 꺼줘"를 인식 및 분석하여 댁내에서 전자 기기(100)와 내부 네트워크를 통해 연계된 댁내 조명기기(120)의 라이트 전원을 제어하는 예를 나타내고 있다.1 is a diagram illustrating an example of a service environment using a voice-based interface according to an embodiment of the present invention. In the embodiment of FIG. 1, in a technology for connecting and controlling in-house devices such as a smart home or a home network service, the electronic device 100 providing an interface operating based on voice An example of recognizing and analyzing a voice input "Turn off" received according to an utterance and controlling the light power of the in-house lighting device 120 connected to the electronic device 100 through an internal network in the home is shown.

예를 들어, 댁내의 디바이스들은 상술한 댁내 조명기기(120) 외에도 텔레비전, PC(Personal Computer), 주변기기, 에어컨, 냉장고, 로봇 청소기 등과 같은 가전제품을 비롯하여, 수도, 전기, 냉난방 기기 등과 같은 에너지 소비장치, 도어록, 감시카메라 등과 같은 보안기기 등 온라인 상에서 연결되어 제어될 수 있는 다양한 디바이스들을 포함할 수 있다. 또한, 내부 네트워크는 이더넷(Ethernet), HomePNA, IEEE 1394와 같은 유선 네트워크 기술이나, 블루투스(Bluetooth), UWB(ultra Wide Band), 지그비(ZigBee), Wireless 1394, Home RF와 같은 무선 네트워크 기술 등이 활용될 수 있다.For example, in-house devices include home appliances such as televisions, personal computers (PCs), peripheral devices, air conditioners, refrigerators, robot cleaners, etc., in addition to the above-described in-house lighting devices 120, and energy consumption such as water, electricity, air conditioning and heating devices. It may include a variety of devices that can be connected and controlled online, such as security devices such as devices, door locks, and surveillance cameras. In addition, the internal network includes wired network technologies such as Ethernet, HomePNA, and IEEE 1394, and wireless network technologies such as Bluetooth, Ultra Wide Band (UWB), ZigBee, Wireless 1394, and Home RF. Can be utilized.

전자 기기(100)는 댁내의 디바이스들 중 하나일 수 있다. 예를 들어, 전자 기기(100)는 댁내에 구비된 인공지능 스피커나 로봇 청소기 등과 같은 디바이스들 중 하나일 수 있다. 또한, 전자 기기(100)는 스마트폰(smart phone), 휴대폰, 노트북, 디지털방송용 단말, PDA(Personal Digital Assistants), PMP(Portable Multimedia Player), 태블릿 PC 등과 같은 사용자(110)의 모바일 기기일 수도 있다. 이처럼 전자 기기(100)는 사용자(110)의 음성 입력을 수신하여 댁내의 디바이스들을 제어하기 위해 댁내의 디바이스들과 연결 가능한 기능을 포함하는 기기라면 특별히 제한되지 않는다. 또한, 실시예에 따라 상술한 사용자(110)의 모바일 기기들이 댁내의 디바이스들로서 포함될 수도 있다.The electronic device 100 may be one of in-house devices. For example, the electronic device 100 may be one of devices such as an artificial intelligence speaker or a robot cleaner provided in the home. In addition, the electronic device 100 may be a mobile device of the user 110 such as a smart phone, a mobile phone, a notebook computer, a terminal for digital broadcasting, a personal digital assistant (PDA), a portable multimedia player (PMP), a tablet PC, and the like. have. As such, the electronic device 100 is not particularly limited as long as it includes a function capable of connecting with in-house devices in order to control in-house devices by receiving a voice input from the user 110. Also, according to an embodiment, the mobile devices of the user 110 described above may be included as in-house devices.

도 2는 본 발명의 일실시예에 따른 음성 기반 인터페이스를 활용한 서비스 환경의 다른 예를 도시한 도면이다. 도 2는 음성을 기반으로 동작하는 인터페이스를 제공하는 전자 기기(100)가 사용자(110)의 발화에 따라 수신되는 음성 입력 "오늘 날씨"를 인식 및 분석하여 외부 네트워크를 통해 외부 서버(210)로부터 오늘의 날씨에 대한 정보를 획득하고, 획득한 정보를 "오늘의 날씨는 ..."와 같이 음성으로 출력하는 예를 나타내고 있다.2 is a diagram illustrating another example of a service environment using a voice-based interface according to an embodiment of the present invention. FIG. 2 shows that the electronic device 100 providing an interface operating based on voice recognizes and analyzes the voice input “today weather” received according to the user's utterance from the external server 210 through an external network. It shows an example of acquiring information about today's weather and outputting the acquired information by voice, such as "Today's weather is ...".

예를 들어, 외부 네트워크는 PAN(personal area network), LAN(local area network), CAN(campus area network), MAN(metropolitan area network), WAN(wide area network), BBN(broadband network), 인터넷 등의 네트워크 중 하나 이상의 임의의 네트워크를 포함할 수 있다.For example, external networks include personal area network (PAN), local area network (LAN), campus area network (CAN), metropolitan area network (MAN), wide area network (WAN), broadband network (BBN), and the Internet. May include any one or more of the networks of.

도 2의 실시예에서도 전자 기기(100)는 댁내의 디바이스들 중 하나이거나 사용자(110)의 모바일 기기 중 하나일 수 있으며, 사용자(110)의 음성 입력을 수신하여 처리하기 위한 기능과 외부 네트워크를 통해 외부 서버(210)에 접속하여 외부 서버(210)가 제공하는 서비스나 컨텐츠를 사용자(110)에게 제공하기 위한 기능을 포함하는 기기라면 특별히 제한되지 않는다.In the embodiment of FIG. 2, the electronic device 100 may be one of the devices in the home or one of the mobile devices of the user 110, and provides a function for receiving and processing the user's 110 voice input and an external network. A device including a function for providing a service or content provided by the external server 210 to the user 110 by accessing the external server 210 through the external server 210 is not particularly limited.

이처럼, 본 발명의 실시예들에 따른 전자 기기(100)는 음성 기반 인터페이스를 통해 사용자(110)의 발화에 따라 수신되는 음성 입력을 적어도 포함하는 사용자 명령을 처리할 수 있는 기기라면 특별히 제한되지 않을 수 있다. 예를 들어, 전자 기기(100)는 직접 사용자의 음성 입력을 인식 및 분석하여 음성 입력에 알맞은 동작을 수행함으로써 사용자 명령을 처리할 수도 있으나, 실시예에 따라 사용자의 음성 입력에 대한 인식이나 인식된 음성 입력의 분석, 사용자에게 제공될 음성의 합성 등의 처리를 전자 기기(100)와 연계된 외부의 플랫폼을 통해 수행할 수도 있다.As such, the electronic device 100 according to the embodiments of the present invention is not particularly limited as long as it is a device capable of processing a user command including at least a voice input received according to the user's utterance through a voice-based interface. I can. For example, the electronic device 100 may directly recognize and analyze the user's voice input and perform an operation suitable for the voice input to process a user command. However, according to an embodiment, the user's voice input is recognized or recognized. Processing such as analysis of voice input and synthesis of voice to be provided to the user may be performed through an external platform connected with the electronic device 100.

도 3은 본 발명의 일실시예에 있어서, 클라우드 인공지능 플랫폼의 예를 도시한 도면이다. 도 3은 전자 기기들(310)과 클라우드 인공지능 플랫폼(320) 및 컨텐츠·서비스(330)를 나타내고 있다.3 is a diagram illustrating an example of a cloud artificial intelligence platform according to an embodiment of the present invention. 3 shows electronic devices 310, a cloud artificial intelligence platform 320, and a content/service 330.

일례로, 전자 기기들(310)은 댁내에 구비되는 디바이스들을 의미할 수 있으며, 적어도 앞서 설명한 전자 기기(100)를 포함할 수 있다. 이러한 전자 기기들(310)이나 전자 기기들(310)에 설치 및 구동되는 어플리케이션들(이하, 앱들)은 인터페이스 커넥트(340)를 통해 클라우드 인공지능 플랫폼(320)과 연계될 수 있다. 여기서 인터페이스 커넥트(340)는 전자 기기들(310)이나 전자 기기들(310)에 설치 및 구동되는 앱들의 개발을 위한 SDK(Software Development Kit) 및/또는 개발 문서들을 개발자들에게 제공할 수 있다. 또한, 인터페이스 커넥트(340)는 전자 기기들(310)이나 전자 기기들(310)에 설치 및 구동되는 앱들이 클라우드 인공지능 플랫폼(320)이 제공하는 기능들을 활용할 수 있는 API(Application Program Interface)를 제공할 수 있다. 구체적인 예로, 개발자들은 인터페이스 커넥트(340)가 제공하는 SDK(Software Development Kit) 및/또는 개발 문서를 이용하여 개발한 기기나 앱은 인터페이스 커넥트(340)가 제공하는 API를 이용하여 클라우드 인공지능 플랫폼(320)이 제공하는 기능들을 활용할 수 있게 된다.For example, the electronic devices 310 may refer to devices provided in a home, and may include at least the electronic device 100 described above. These electronic devices 310 or applications (hereinafter referred to as apps) installed and driven on the electronic devices 310 may be linked to the cloud artificial intelligence platform 320 through the interface connect 340. Here, the interface connect 340 may provide developers with software development kits (SDKs) and/or development documents for developing apps installed and driven on the electronic devices 310 or the electronic devices 310. In addition, the interface connect 340 provides an API (Application Program Interface) that allows apps installed and driven on the electronic devices 310 or the electronic devices 310 to utilize functions provided by the cloud artificial intelligence platform 320. Can provide. As a specific example, developers may use a software development kit (SDK) and/or a development document provided by the interface connect 340 to develop a device or app using an API provided by the interface connect 340 to a cloud artificial intelligence platform ( 320) can be used.

여기서 클라우드 인공지능 플랫폼(320)은 음성 기반의 서비스를 제공하기 위한 기능을 제공할 수 있다. 예를 들어, 클라우드 인공지능 플랫폼(320)은 수신된 음성을 인식하고, 출력될 음성을 합성하기 위한 음성처리모듈(321), 수신된 영상이나 동영상을 분석하여 처리하기 위한 비전처리모듈(322), 수신된 음성에 따라 알맞은 음성을 출력하기 위해 적절한 대화를 결정하기 위한 대화처리모듈(323), 수신된 음성에 알맞은 기능을 추천하기 위한 추천모듈(324), 인공지능이 데이터 학습을 통해 문장 단위로 언어를 번역할 수 있도록 지원하는 인공신경망 기반 기계 번역(Neural Machine Translation, NMT, 325) 등과 같이 음성 기반 서비스를 제공하기 위한 다양한 모듈들을 포함할 수 있다.Here, the cloud artificial intelligence platform 320 may provide a function for providing a voice-based service. For example, the cloud artificial intelligence platform 320 is a voice processing module 321 for recognizing a received voice and synthesizing a voice to be output, and a vision processing module 322 for analyzing and processing a received image or video. , A conversation processing module 323 for determining an appropriate conversation in order to output an appropriate voice according to the received voice, a recommendation module 324 for recommending a function suitable for the received voice, and a sentence unit through data learning by artificial intelligence It may include various modules for providing voice-based services, such as Neural Machine Translation (NMT, 325), which supports translation of languages to and from.

예를 들어, 도 1 및 도 2의 실시예들에서 전자 기기(100)는 사용자(110)의 음성 입력을 인터페이스 커넥트(340)에서 제공하는 API를 이용하여 클라우드 인공지능 플랫폼(320)으로 전송할 수 있다. 이 경우, 클라우드 인공지능 플랫폼(320)은 수신된 음성 입력을 상술한 모듈들(321 내지 325)을 활용하여 인식 및 분석할 수 있으며, 수신된 음성 입력에 따라 적절한 답변 음성을 합성하여 제공하거나, 적절한 동작을 추천할 수 있다.For example, in the embodiments of FIGS. 1 and 2, the electronic device 100 may transmit the voice input of the user 110 to the cloud artificial intelligence platform 320 using an API provided by the interface connect 340. have. In this case, the cloud artificial intelligence platform 320 may recognize and analyze the received voice input using the modules 321 to 325 described above, and synthesize and provide an appropriate answer voice according to the received voice input, or Can recommend appropriate actions.

또한, 확장 키트(350)는 제3자 컨텐츠 개발자 또는 회사들이 클라우드 인공지능 플랫폼(320)에 기반하여 새로운 음성기반 기능을 구현할 수 있는 개발 키트를 제공할 수 있다. 예를 들어, 도 2의 실시예에서, 전자 기기(100)는 수신된 사용자(110)의 음성 입력을 외부 서버(210)로 전송할 수 있고, 외부 서버(210)는 확장 키트(350)를 통해 제공되는 API를 통해 클라우드 인공지능 플랫폼(320)으로 음성 입력을 전송할 수 있다. 이 경우, 앞서 설명한 바와 유사하게 클라우드 인공지능 플랫폼(320)은 수신되는 음성 입력을 인식, 분석하여 적절한 답변 음성을 합성하여 제공하거나 음성 입력을 통해 처리되어야 할 기능에 대한 추천정보를 외부 서버(210)로 제공할 수 있다. 일례로, 도 2에서, 외부 서버(210)는 음성 입력 "오늘 날씨"를 클라우드 인공지능 플랫폼(320)으로 전송할 수 있고, 클라우드 인공지능 플랫폼(320)으로부터 음성 입력 "오늘 날씨"의 인식을 통해 추출되는 키워드 "오늘" 및 "날씨"를 수신할 수 있다. 이 경우, 외부 서버(210)는 키워드 "오늘" 및 "날씨"를 통해 "오늘의 날씨는 ..."와 같은 텍스트 정보를 생성하여 다시 클라우드 인공지능 플랫폼(320)으로 생성된 텍스트 정보를 전송할 수 있다. 이때, 클라우드 인공지능 플랫폼(320)는 텍스트 정보를 음성으로 합성하여 외부 서버(210)로 제공할 수 있다. 외부 서버(210)는 합성된 음성을 전자 기기(100)로 전송할 수 있고, 전자 기기(100)는 합성된 음성 "오늘의 날씨는 ..."을 스피커를 통해 출력함으로써, 사용자(110)로부터 수신한 음성 입력 "오늘 날씨"가 처리될 수 있다.In addition, the extension kit 350 may provide a development kit that enables third-party content developers or companies to implement new voice-based functions based on the cloud artificial intelligence platform 320. For example, in the embodiment of FIG. 2, the electronic device 100 may transmit the received voice input of the user 110 to the external server 210, and the external server 210 is Voice input may be transmitted to the cloud artificial intelligence platform 320 through the provided API. In this case, similar to the foregoing, the cloud artificial intelligence platform 320 recognizes and analyzes the received voice input, synthesizes and provides an appropriate answer voice, or provides recommended information on a function to be processed through the voice input to the external server 210 ) Can be provided. As an example, in FIG. 2, the external server 210 may transmit the voice input “today weather” to the cloud artificial intelligence platform 320, and through recognition of the voice input “today weather” from the cloud artificial intelligence platform 320 The extracted keywords "today" and "weather" can be received. In this case, the external server 210 generates text information such as "Today's weather is ..." through the keywords "today" and "weather" and transmits the generated text information to the cloud artificial intelligence platform 320 again. I can. In this case, the cloud artificial intelligence platform 320 may synthesize text information into speech and provide it to the external server 210. The external server 210 may transmit the synthesized voice to the electronic device 100, and the electronic device 100 outputs the synthesized voice "Today's weather ..." through a speaker, from the user 110 The received voice input "weather today" may be processed.

이때, 전자 기기(100)는 사용자와의 대화를 기반으로 디바이스 동작이나 컨텐츠 제공을 위해 본 발명의 실시예에 따른 인공지능 대화 방법을 수행할 수 있다.In this case, the electronic device 100 may perform an artificial intelligence conversation method according to an embodiment of the present invention to operate a device or provide content based on a conversation with a user.

도 4는 본 발명의 일실시예에 있어서, 전자 기기 및 서버의 내부 구성을 설명하기 위한 블록도이다. 도 4의 전자 기기(410)는 앞서 설명한 전자 기기(100)에 대응할 수 있고, 서버(420)는 앞서 설명한 외부 서버(210)나 클라우드 인공지능 플랫폼(320)을 구현하는 하나의 컴퓨터 장치에 대응할 수 있다.4 is a block diagram illustrating an internal configuration of an electronic device and a server according to an embodiment of the present invention. The electronic device 410 of FIG. 4 may correspond to the electronic device 100 described above, and the server 420 may correspond to a single computer device implementing the external server 210 or the cloud artificial intelligence platform 320 described above. I can.

전자 기기(410)과 서버(420)는 메모리(411, 421), 프로세서(412, 422), 통신 모듈(413, 423) 그리고 입출력 인터페이스(414, 424)를 포함할 수 있다. 메모리(411, 421)는 컴퓨터에서 판독 가능한 기록매체로서, RAM(random access memory), ROM(read only memory) 및 디스크 드라이브와 같은 비소멸성 대용량 기록장치(permanent mass storage device)를 포함할 수 있다. 여기서 ROM과 디스크 드라이브와 같은 비소멸성 대용량 기록장치는 메모리(411, 421)와는 구분되는 별도의 영구 저장 장치로서 전자 기기(410)나 서버(420)에 포함될 수도 있다. 또한, 메모리(411, 421)에는 운영체제와 적어도 하나의 프로그램 코드(일례로 전자 기기(410)에 설치되어 특정 서비스의 제공을 위해 전자 기기(410)에서 구동되는 어플리케이션 등을 위한 코드)가 저장될 수 있다. 이러한 소프트웨어 구성요소들은 메모리(411, 421)와는 별도의 컴퓨터에서 판독 가능한 기록매체로부터 로딩될 수 있다. 이러한 별도의 컴퓨터에서 판독 가능한 기록매체는 플로피 드라이브, 디스크, 테이프, DVD/CD-ROM 드라이브, 메모리 카드 등의 컴퓨터에서 판독 가능한 기록매체를 포함할 수 있다. 다른 실시예에서 소프트웨어 구성요소들은 컴퓨터에서 판독 가능한 기록매체가 아닌 통신 모듈(413, 423)을 통해 메모리(411, 421)에 로딩될 수도 있다. 예를 들어, 적어도 하나의 프로그램은 개발자들 또는 어플리케이션의 설치 파일을 배포하는 파일 배포 시스템이 네트워크(430)를 통해 제공하는 파일들에 의해 설치되는 컴퓨터 프로그램(일례로 상술한 어플리케이션)에 기반하여 전자 기기(410)의 메모리(411)에 로딩될 수 있다.The electronic device 410 and the server 420 may include memories 411 and 421, processors 412 and 422, communication modules 413 and 423, and input/output interfaces 414 and 424. The memories 411 and 421 are computer-readable recording media, and may include a random access memory (RAM), a read only memory (ROM), and a permanent mass storage device such as a disk drive. Here, a non-destructive large-capacity recording device such as a ROM and a disk drive may be included in the electronic device 410 or the server 420 as a separate permanent storage device separated from the memories 411 and 421. In addition, the memory 411 and 421 stores an operating system and at least one program code (for example, a code for an application installed in the electronic device 410 and driven by the electronic device 410 to provide a specific service). I can. These software components may be loaded from a computer-readable recording medium separate from the memories 411 and 421. Such a separate computer-readable recording medium may include a computer-readable recording medium such as a floppy drive, a disk, a tape, a DVD/CD-ROM drive, and a memory card. In another embodiment, software components may be loaded into the memories 411 and 421 through communication modules 413 and 423 rather than a computer-readable recording medium. For example, at least one program is electronic based on a computer program (for example, the above-described application) installed by files provided by the file distribution system for distributing the installation files of the developers or applications through the network 430 It may be loaded into the memory 411 of the device 410.

프로세서(412, 422)는 기본적인 산술, 로직 및 입출력 연산을 수행함으로써, 컴퓨터 프로그램의 명령을 처리하도록 구성될 수 있다. 명령은 메모리(411, 421) 또는 통신 모듈(413, 423)에 의해 프로세서(412, 422)로 제공될 수 있다. 예를 들어 프로세서(412, 422)는 메모리(411, 421)와 같은 기록 장치에 저장된 프로그램 코드에 따라 수신되는 명령을 실행하도록 구성될 수 있다.The processors 412 and 422 may be configured to process instructions of a computer program by performing basic arithmetic, logic, and input/output operations. The instructions may be provided to the processors 412 and 422 by the memories 411 and 421 or the communication modules 413 and 423. For example, the processors 412 and 422 may be configured to execute a command received according to a program code stored in a recording device such as the memories 411 and 421.

통신 모듈(413, 423)은 네트워크(430)를 통해 전자 기기(410)과 서버(420)가 서로 통신하기 위한 기능을 제공할 수 있으며, 전자 기기(410) 및/또는 서버(420)가 다른 전자 기기 또는 다른 서버와 통신하기 위한 기능을 제공할 수 있다. 일례로, 전자 기기(410)의 프로세서(412)가 메모리(411)와 같은 기록 장치에 저장된 프로그램 코드에 따라 생성한 요청이 통신 모듈(213)의 제어에 따라 네트워크(430)를 통해 서버(420)로 전달될 수 있다. 역으로, 서버(420)의 프로세서(422)의 제어에 따라 제공되는 제어 신호나 명령, 컨텐츠, 파일 등이 통신 모듈(223)과 네트워크(430)를 거쳐 전자 기기(410)의 통신 모듈(213)을 통해 전자 기기(410)로 수신될 수 있다. 예를 들어 통신 모듈(213)을 통해 수신된 서버(420)의 제어 신호나 명령, 컨텐츠, 파일 등은 프로세서(412)나 메모리(411)로 전달될 수 있고, 컨텐츠나 파일 등은 전자 기기(410)가 더 포함할 수 있는 저장 매체(상술한 영구 저장 장치)로 저장될 수 있다.The communication modules 413 and 423 may provide a function for the electronic device 410 and the server 420 to communicate with each other through the network 430, and the electronic device 410 and/or the server 420 A function for communicating with an electronic device or other server may be provided. As an example, a request generated by the processor 412 of the electronic device 410 according to a program code stored in a recording device such as the memory 411 is sent to the server 420 through the network 430 under the control of the communication module 213. ) Can be delivered. Conversely, control signals, commands, contents, files, etc. provided under the control of the processor 422 of the server 420 are transmitted through the communication module 223 and the network 430 to the communication module 213 of the electronic device 410. ) Through the electronic device 410. For example, a control signal, command, content, file, etc. of the server 420 received through the communication module 213 may be transmitted to the processor 412 or memory 411, and the content or file may be transmitted to an electronic device ( It may be stored in a storage medium (permanent storage device described above) that 410 may further include.

입출력 인터페이스(414)는 입출력 장치(415)와의 인터페이스를 위한 수단일 수 있다. 예를 들어, 입력 장치는 마이크, 키보드 또는 마우스 등의 장치를, 그리고 출력 장치는 디스플레이, 스피커와 같은 장치를 포함할 수 있다. 다른 예로 입출력 인터페이스(414)는 터치스크린과 같이 입력과 출력을 위한 기능이 하나로 통합된 장치와의 인터페이스를 위한 수단일 수도 있다. 입출력 장치(415)는 전자 기기(410)와 하나의 장치로 구성될 수도 있다. 또한, 서버(420)의 입출력 인터페이스(424)는 서버(420)와 연결되거나 서버(420)가 포함할 수 있는 입력 또는 출력을 위한 장치(미도시)와의 인터페이스를 위한 수단일 수 있다.The input/output interface 414 may be a means for an interface with the input/output device 415. For example, the input device may include a device such as a microphone, a keyboard, or a mouse, and the output device may include a device such as a display or a speaker. As another example, the input/output interface 414 may be a means for interfacing with a device in which input and output functions are integrated into one, such as a touch screen. The input/output device 415 may be configured with the electronic device 410 and one device. In addition, the input/output interface 424 of the server 420 may be a means for interface with a device (not shown) for input or output that is connected to the server 420 or that the server 420 may include.

또한, 다른 실시예들에서 전자 기기(410) 및 서버(420)는 도 4의 구성요소들보다 더 적은 또는 더 많은 구성요소들을 포함할 수도 있다. 그러나, 대부분의 종래기술적 구성요소들을 명확하게 도시할 필요성은 없다. 예를 들어, 전자 기기(410)는 상술한 입출력 장치(415) 중 적어도 일부를 포함하도록 구현되거나 또는 트랜시버(transceiver), GPS(Global Positioning System) 모듈, 카메라, 각종 센서, 데이터베이스 등과 같은 다른 구성요소들을 더 포함할 수도 있다. 보다 구체적인 예로, 전자 기기(410)가 스마트폰인 경우, 일반적으로 스마트폰이 포함하고 있는 가속도 센서나 자이로 센서, 동작 센서, 카메라 모듈, 각종 물리적인 버튼, 터치패널을 이용한 버튼, 입출력 포트, 진동을 위한 진동기 등의 다양한 구성요소들이 전자 기기(410)에 더 포함되도록 구현될 수 있다.In addition, in other embodiments, the electronic device 410 and the server 420 may include fewer or more components than the components of FIG. 4. However, there is no need to clearly show most of the prior art components. For example, the electronic device 410 may be implemented to include at least some of the input/output devices 415 described above, or other components such as a transceiver, a global positioning system (GPS) module, a camera, various sensors, a database, etc. May include more. As a more specific example, when the electronic device 410 is a smartphone, in general, an acceleration sensor or a gyro sensor, a motion sensor, a camera module, various physical buttons, a button using a touch panel, an input/output port, and a vibration included in the smartphone Various components, such as a vibrator for, may be implemented to be further included in the electronic device 410.

본 실시예들에서 전자 기기(410)는 사용자의 음성 입력을 수신하기 위한 마이크 및/또는 사용자의 얼굴 영상을 수신하기 위한 카메라를 입출력 장치(415)로서 기본적으로 포함할 수 있으며, 사용자의 음성 입력 및/또는 얼굴 영상에 대응하는 답변 음성이나 오디오 컨텐츠와 같은 소리를 출력하기 위한 스피커를 입출력 장치(415)로서 더 포함할 수 있다.In the present embodiments, the electronic device 410 may basically include a microphone for receiving a user's voice input and/or a camera for receiving a user's face image as the input/output device 415, and the user's voice input And/or a speaker for outputting a sound such as an answer voice or audio content corresponding to a face image may be further included as the input/output device 415.

본 발명의 실시예들에 따른 인공지능 대화 방법은 앞서 설명한 전자 기기(410)와 같은 컴퓨터 장치에 의해 수행될 수 있다. 이때, 전자 기기(410)의 프로세서(412)는 메모리(411)가 포함하는 운영체제의 코드나 적어도 하나의 프로그램의 코드에 따른 제어 명령(instruction)을 실행하도록 구현될 수 있다. 여기서, 프로세서(412)는 전자 기기(410)에 저장된 코드가 제공하는 제어 명령에 따라 전자 기기(410)가 이하에서 설명하게 될 인공지능 대화 방법이 포함하는 단계들을 수행하도록 전자 기기(410)를 제어할 수 있다.The artificial intelligence conversation method according to embodiments of the present invention may be performed by a computer device such as the electronic device 410 described above. In this case, the processor 412 of the electronic device 410 may be implemented to execute a control instruction according to a code of an operating system included in the memory 411 or a code of at least one program. Here, the processor 412 operates the electronic device 410 so that the electronic device 410 performs steps included in the artificial intelligence conversation method to be described below according to a control command provided by the code stored in the electronic device 410. Can be controlled.

도 5는 본 발명의 일실시예에 있어서, 인공지능 대화 방법의 예를 도시한 흐름도이다.5 is a flowchart illustrating an example of an artificial intelligence conversation method according to an embodiment of the present invention.

단계(S511)에서 전자 기기(410)는 대화 기능이 비활성화 된 상태에서 대화 기반 인터페이스를 통해 사용자의 음성 입력을 수신할 수 있다. 예를 들어, 전자 기기(410)는 대화 기반 인터페이스로서 전자 기기(410)가 포함하는 마이크 또는 전자 기기(410)와 연동된 마이크와 같은 음성 입력 장치를 통해 사용자의 발화에 따른 음성 입력을 수신할 수 있다. 다시 말해, 전자 기기(410)는 대화 기능이 비활성화 된 상태에서 음성 입력 장치를 통해 사용자의 음성 정보를 수집할 수 있다.In step S511, the electronic device 410 may receive a user's voice input through a conversation-based interface while the conversation function is deactivated. For example, the electronic device 410 may receive a voice input according to a user's utterance through a voice input device such as a microphone included in the electronic device 410 or a microphone interlocked with the electronic device 410 as a conversation-based interface. I can. In other words, the electronic device 410 may collect the user's voice information through the voice input device while the conversation function is deactivated.

단계(S521)에서 전자 기기(410)는 단계(S511)에서 수신된 음성 입력의 문장에서 감정 정보(이하, '문장 감정 정보'라 칭함)를 추출할 수 있다. 이때, 문장 감정 정보는 감정 종류와 감정 강도(감정 정도)를 포함할 수 있다. 감정을 나타내는 용어, 즉 감정 용어들은 사전에 정해지며 소정 기준에 따라 복수 개의 감정 종류(예컨대, 기쁨, 슬픔, 놀람, 고민, 괴로움, 불안, 공포, 혐오, 분노 등)로 분류되고 감정 용어의 강약에 따라 복수 개의 강도 등급(예컨대, 1~10)으로 분류될 수 있다. 일례로, 전자 기기(410)는 STT(speech to text) 변환을 통해 사용자의 음성 입력을 텍스트 형태의 문장으로 변환할 수 있다. 그리고, 전자 기기(410)는 음성 입력에 대응되는 문장에서 형태소를 추출한 후 추출된 형태소에서 미리 정해진 감정 용어를 추출하여 추출된 감정 용어에 대응되는 감정 종류와 감정 강도를 분류할 수 있다. 전자 기기(410)는 음성 입력의 문장에 복수 개의 감정 용어가 포함된 경우 감정 용어가 속한 감정 종류와 감정 강도에 따라 가중치를 계산할 수 있고 이를 통해 문장의 감정 정보에 대한 감정 벡터를 계산하여 해당 문장을 대표하는 감정 정보를 추출할 수 있다. 상기한 문장 감정 정보를 추출하는 기술은 예시적인 것으로 이에 한정되는 것은 아니며, 이미 잘 알려진 다른 기술들을 이용하는 것 또한 가능하다.In step S521, the electronic device 410 may extract emotion information (hereinafter, referred to as “sentence emotion information”) from the sentence of the voice input received in step S511. In this case, the sentence emotion information may include an emotion type and an emotion intensity (feeling degree). Terms representing emotions, that is, emotion terms, are determined in advance and are classified into a plurality of emotion types (e.g., joy, sadness, surprise, trouble, suffering, anxiety, fear, disgust, anger, etc.) according to a predetermined criterion. According to, it may be classified into a plurality of strength classes (eg, 1 to 10). For example, the electronic device 410 may convert a user's voice input into a text-type sentence through speech to text (STT) conversion. Further, the electronic device 410 may extract a morpheme from a sentence corresponding to a voice input, and then extract a predetermined emotion term from the extracted morpheme, and classify an emotion type and an emotion intensity corresponding to the extracted emotion term. When a plurality of emotion terms are included in a sentence of the voice input, the electronic device 410 may calculate a weight according to the emotion type and the emotion intensity to which the emotion term belongs. Through this, the emotion vector for the emotion information of the sentence is calculated and the corresponding sentence It is possible to extract the emotional information representing the. The technique for extracting the sentence emotion information is illustrative and is not limited thereto, and other well-known techniques may also be used.

단계(S530)에서 전자 기기(410)는 단계(S521)에서 추출된 문장 감정 정보를 이용하여 문장 감정 정보에 포함된 감정의 강도가 사전에 정해진 설정 범위를 초과하는지 여부를 확인할 수 있다. 감정의 강도에 대한 설정 범위는 사용자나 시스템에 의해 특정 값으로 사전에 설정되거나, 혹은 사용자의 감정 패턴에 대한 학습 과정을 거쳐 수렴된 값으로 정해질 수 있다.In step S530, the electronic device 410 may check whether the intensity of the emotion included in the sentence emotion information exceeds a predetermined setting range by using the sentence emotion information extracted in step S521. The setting range for the intensity of emotion may be set in advance to a specific value by the user or the system, or may be determined as a value converged through a learning process for the user's emotion pattern.

단계(S540)에서 전자 기기(410)는 문장 감정 정보에 포함된 감정의 강도가 설정 범위를 초과하는 경우 대화 기능을 자동 활성화 할 수 있다. 전자 기기(410)는 사용자의 음성 입력으로부터 설정 범위를 초과하는 감정이 감지되는 경우 스스로 대화를 활성화 할 수 있다.In step S540, the electronic device 410 may automatically activate the conversation function when the intensity of the emotion included in the sentence emotion information exceeds a set range. The electronic device 410 may activate a conversation by itself when an emotion exceeding a set range is detected from a user's voice input.

사용자가 특정 키워드나 액션을 통해 대화 의사를 먼저 전달해야만 대화가 활성화 되는 기존 방식과 달리, 본 실시예에서는 특정 키워드나 액션을 대신하여 사용자의 감정 강도를 대화 활성 트리거로서 활용할 수 있다. 예를 들어, 감정의 종류는 기쁨, 슬픔, 놀람, 고민, 괴로움, 불안, 공포, 혐오, 분노 등으로 구분되고, 아울러 감정의 강도는 복수 개의 등급(예컨대, 1~10)으로 구분될 수 있다. 전자 기기(410)는 감정의 강도에 대해 소정 범위의 등급, 예컨대 1에서 6까지 안정 범위로 설정할 수 있다. 그리고, 전자 기기(410)는 사용자의 감정이 안정 범위를 넘는 강도, 예를 들어 [슬픔, 8], [분노, 9], [기쁨, 7] 등으로 나타날 경우 대화를 자동 활성화 시킬 수 있다. 이때, 전자 기기(410)는 대화 활성화 시 전자 기기(410)에 포함되거나 전자 기기(410)와 연동 가능한 출력장치를 통해 사용자가 대화 활성 상태를 인지할 수 있는 정보, 예를 들어 디스플레이를 켜거나 효과음을 출력할 수 있다.Unlike the conventional method in which the conversation is activated only when the user first communicates the conversation intention through a specific keyword or action, in this embodiment, the user's emotional intensity may be used as a conversation activation trigger in place of a specific keyword or action. For example, the types of emotions are divided into joy, sadness, surprise, anxiety, suffering, anxiety, fear, disgust, anger, etc., and the intensity of emotion can be divided into a plurality of grades (e.g., 1-10). . The electronic device 410 may set the level of emotion in a predetermined range, for example, in a stable range from 1 to 6. In addition, the electronic device 410 may automatically activate a conversation when the user's emotion appears as an intensity exceeding a stable range, for example, [sad, 8], [anger, 9], [joy, 7], and the like. At this time, the electronic device 410 is included in the electronic device 410 when the conversation is activated, or information through an output device that can be interlocked with the electronic device 410, for example, turning on the display or Sound effect can be output.

단계(S550)에서 전자 기기(410)는 설정 범위를 초과하는 사용자 감정에 대해 대화를 자동 활성화 한 후 문장 감정 정보에 대응되는 대화 정보를 출력할 수 있다. 대화 정보에는 대화 기반 인터페이스를 통해 출력 가능한 정보로서, 음성 메시지, 표정 정보, 동작 정보 중 적어도 하나를 포함할 수 있다. 일례로, 전자 기기(410)는 전자 기기(410)가 포함하는 스피커 또는 전자 기기(410)와 연동된 스피커와 같은 음성 출력 장치를 통해 대화 정보에 따른 음성 메시지를 출력할 수 있다. 그리고, 전자 기기(410)는 전자 기기(410)가 포함하는 디스플레이 또는 전자 기기(410)와 연동된 디스플레이와 같은 영상 출력 장치를 통해 대화 정보에 따른 표정 정보를 출력할 수 있다. 예를 들어, 영상 출력 장치는 대화 기반 인터페이스에 해당되는 소정의 캐릭터를 표시할 수 있고 설정 범위를 초과하는 사용자 감정에 대해 그에 대응하는 표정 정보를 해당 캐릭터에 반영할 수 있다. 또한, 전자 기기(410)는 전자 기기(410)가 포함하는 모터 제어 동작 장치 또는 전자 기기(410)와 연동된 모터 제어 동작 장치를 통해 대화 정보에 따른 동작 정보를 출력할 수 있다. 예컨대, 전자 기기(410)가 대화 로봇인 경우 사용자의 감정에 대응하는 대화 정보에 따라 해당 대화 내용과 관련된 동작을 구현할 수 있다. 사용자 감정이 설정 범위를 초과하는 [슬픔, 8]로 나타나는 경우 로봇의 슬픈 제스처와 표정을 출력함과 동시에 <혹시.. 안 좋은 일이 있으신가요>와 같은 음성 메시지를 함께 출력할 수 있다.In step S550, the electronic device 410 may automatically activate a conversation with respect to a user's emotion exceeding a set range, and then output conversation information corresponding to the sentence emotion information. The conversation information is information that can be output through a conversation-based interface, and may include at least one of a voice message, facial expression information, and motion information. For example, the electronic device 410 may output a voice message according to conversation information through an audio output device such as a speaker included in the electronic device 410 or a speaker interlocked with the electronic device 410. In addition, the electronic device 410 may output facial expression information according to conversation information through an image output device such as a display included in the electronic device 410 or a display interlocked with the electronic device 410. For example, the image output device may display a predetermined character corresponding to a conversation-based interface, and may reflect facial expression information corresponding to the user emotion exceeding a set range to the corresponding character. In addition, the electronic device 410 may output motion information according to conversation information through a motor control operating device included in the electronic device 410 or a motor control operating device interlocked with the electronic device 410. For example, when the electronic device 410 is a conversation robot, an operation related to the corresponding conversation content may be implemented according to conversation information corresponding to the user's emotion. If the user's emotion appears as [Sad, 8] that exceeds the setting range, the robot's sad gesture and expression can be output and a voice message such as <Are there any bad things?> can be output together.

따라서, 본 실시예에서는 사용자의 음성 입력으로부터 사용자의 현재 감정의 종류와 강도를 파악할 수 있고 이러한 사용자 감정을 대화 활성 트리거로 사용하여 감정의 강도가 설정 범위를 초과하는 경우 대화를 자동으로 활성화 시킬 수 있다.Therefore, in this embodiment, the type and intensity of the user's current emotion can be grasped from the user's voice input, and the user emotion can be used as a conversation activation trigger to automatically activate the conversation when the intensity of the emotion exceeds the set range. have.

도 6은 본 발명의 일실시예에 있어서, 인공지능 대화 방법의 다른 예를 도시한 흐름도이다.6 is a flowchart illustrating another example of an artificial intelligence conversation method according to an embodiment of the present invention.

단계(S612)에서 전자 기기(410)는 대화 기능이 비활성화 된 상태에서 전자 기기(410)에 포함되거나 연동 가능한 동작 센서(예컨대, 적외선 센서 등)를 이용하여 일정 거리(예컨대, 3m) 이내의 동작을 감지할 수 있다. 다시 말해, 전자 기기(410)는 적외선 센서와 같은 동작 센서를 통해 사용자 동작을 감지할 수 있다. 동작 감지가 너무 자주 발생하면 불필요한 전류 사용 등의 원인이 될 수 있기 때문에, 전자 기기(410)는 동작 센서에 대해 타이머를 설정하여 동작 감지 주기를 적용할 수 있다. 예를 들어, 전자 기기(410)는 동작 센서에서 동작이 감지된 이후 동작 센서를 12시간 동안 비활성화 시키고 12시간이 경과하면 다시 활성화 시킬 수 있다.In step S612, the electronic device 410 operates within a certain distance (eg, 3m) using a motion sensor (eg, an infrared sensor) that is included in the electronic device 410 or can be interlocked with the conversation function disabled. Can be detected. In other words, the electronic device 410 may detect a user's motion through a motion sensor such as an infrared sensor. If motion detection occurs too often, it may cause unnecessary current use, and so on, the electronic device 410 may apply a motion detection period by setting a timer for the motion sensor. For example, the electronic device 410 may deactivate the motion sensor for 12 hours after motion is detected by the motion sensor, and activate it again after 12 hours elapse.

단계(S613)에서 전자 기기(410)는 동작이 감지되면 전자 기기(410)가 포함하는 카메라 또는 전자 기기(410)와 연동된 카메라와 같은 영상 입력 장치를 활성화 하여 해당 영상 입력 장치를 통해 사용자의 얼굴 영상을 수신할 수 있다. 다시 말해, 전자 기기(410)는 대화 기능이 비활성화 된 상태에서 사용자 동작이 감지되는 경우 카메라를 활성화 하여 카메라를 통해 동작이 감지된 사용자의 얼굴 정보를 수집할 수 있다.In step S613, when a motion is detected, the electronic device 410 activates an image input device such as a camera included in the electronic device 410 or a camera interlocked with the electronic device 410, Face images can be received. In other words, when a user motion is detected while the conversation function is deactivated, the electronic device 410 may activate the camera and collect face information of the user whose motion is detected through the camera.

단계(S622)에서 전자 기기(410)는 단계(S613)에서 수신된 얼굴 영상에서 감정 정보(이하, '얼굴 감정 정보'라 칭함)를 추출할 수 있다. 전자 기기(410)는 영상을 기반으로 얼굴 표정으로부터 감정 종류와 감정 강도를 포함한 얼굴 감정 정보를 추출할 수 있다. 얼굴 표정은 눈썹, 눈, 코, 입, 피부와 같은 얼굴 요소들의 변형이 일어날 때 발생하는 얼굴 근육의 수축에 의하여 나타나며, 얼굴 표정의 강도는 얼굴 특징의 기하학적 변화 또는 근육 표현의 밀도에 따라서 결정될 수 있다. 일례로, 전자 기기(410)는 표정에 따른 특징을 추출하기 위한 관심 영역(예컨대, 눈 영역, 눈썹 영역, 코 영역, 입 영역 등)을 추출한 후 관심 영역에서 특징점(point)을 추출하고 특징점을 이용하여 일정한 특징값을 결정할 수 있다. 특징값은 특징점 사이의 거리 등을 기반으로 사람의 표정을 나타내는 특정한 수치에 해당한다. 전자 기기(410)는 결정한 특징값을 감정 감응치 모델에 적용하기 위하여 영상에 나타난 특징값에 대한 수치의 정도에 따라 일정한 세기값을 결정하고, 미리 마련한 맵핑 테이블을 이용하여 각 특정값의 수치에 매칭하는 일정한 세기값을 결정한다. 맵핑 테이블은 감정 감응치 모델에 따라 사전에 마련된다. 전자 기기(410)는 감정 감응치 모델과 세기값을 맵핑하고 해당 세기값을 감정 감응치 모델에 적용한 결과에 따라 결정한 감정의 종류와 강도를 추출할 수 있다. 상기한 얼굴 감정 정보를 추출하는 기술은 예시적인 것으로 이에 한정되는 것은 아니며, 이미 잘 알려진 다른 기술들을 이용하는 것 또한 가능하다.In step S622, the electronic device 410 may extract emotion information (hereinafter referred to as “face emotion information”) from the face image received in step S613. The electronic device 410 may extract facial emotion information including an emotion type and an emotion intensity from a facial expression based on an image. Facial expressions are expressed by contraction of facial muscles that occur when facial elements such as eyebrows, eyes, nose, mouth, and skin are deformed, and the intensity of facial expressions can be determined according to geometric changes in facial features or density of muscle expressions. have. As an example, the electronic device 410 extracts a region of interest (eg, an eye region, an eyebrow region, a nose region, a mouth region, etc.) for extracting a feature according to an expression, and then extracts a feature point from the region of interest. Can be used to determine a certain feature value. The feature value corresponds to a specific value representing a person's facial expression based on the distance between feature points, etc. In order to apply the determined feature value to the emotion sensitive value model, the electronic device 410 determines a certain intensity value according to the degree of the value for the feature value displayed in the image, and uses a mapping table prepared in advance to apply the determined value to the value of each specific value. Determine the matching constant intensity value. The mapping table is prepared in advance according to the emotion sensitivity model. The electronic device 410 may map the emotion sensitive value model and the intensity value, and extract the determined emotion type and intensity according to a result of applying the corresponding intensity value to the emotion sensitive value model. The technique for extracting the facial emotion information is illustrative and is not limited thereto, and other well-known techniques may also be used.

단계(S630)에서 전자 기기(410)는 단계(S622)에서 추출된 얼굴 감정 정보를 이용하여 얼굴 감정 정보에 포함된 감정의 강도가 사전에 정해진 설정 범위를 초과하는지 여부를 확인할 수 있다.In step S630, the electronic device 410 may check whether the intensity of the emotion included in the facial emotion information exceeds a predetermined setting range by using the facial emotion information extracted in step S622.

단계(S640)에서 전자 기기(410)는 얼굴 감정 정보에 포함된 감정의 강도가 설정 범위를 초과하는 경우 대화 기능을 자동 활성화 할 수 있다. 전자 기기(410)는 사용자의 얼굴 영상으로부터 설정 범위를 초과하는 감정이 감지되는 경우 스스로 대화를 활성화 할 수 있다.In step S640, the electronic device 410 may automatically activate the conversation function when the intensity of the emotion included in the facial emotion information exceeds a set range. The electronic device 410 may activate a conversation by itself when an emotion exceeding a set range is detected from the user's face image.

감정의 강도를 바탕으로 대화를 자동 활성화 하는 구체적인 내용은 도 5를 통해 설명한 것과 동일하므로 구체적인 설명은 생략하기로 한다.Since the details of automatically activating the conversation based on the intensity of emotion are the same as those described with reference to FIG. 5, detailed descriptions will be omitted.

단계(S650)에서 전자 기기(410)는 설정 범위를 초과하는 사용자 감정에 대해 대화를 자동 활성화 한 후 얼굴 감정 정보에 대응되는 대화 정보를 출력할 수 있다. 대화 정보에는 음성 메시지, 표정 정보, 동작 정보 중 적어도 하나를 포함할 수 있으며, 전자 기기(410)는 스피커와 같은 음성 출력 장치, 디스플레이와 같은 영상 출력 장치, 로봇과 같은 모터 제어 동작 장치 중 적어도 하나를 이용하여 대화 정보를 출력할 수 있다. 대화 정보를 출력하는 구체적인 내용 또한 도 5를 통해 설명한 것과 동일하므로 구체적인 설명은 생략하기로 한다.In step S650, the electronic device 410 may automatically activate a conversation for a user emotion exceeding a set range, and then output conversation information corresponding to the facial emotion information. The conversation information may include at least one of a voice message, facial expression information, and motion information, and the electronic device 410 includes at least one of an audio output device such as a speaker, an image output device such as a display, and a motor control operation device such as a robot. You can output conversation information by using. Details of outputting conversation information are also the same as those described with reference to FIG. 5, and thus detailed descriptions will be omitted.

따라서, 본 실시예에서는 사용자의 얼굴 영상 속 표정으로부터 사용자의 현재 감정의 종류와 강도를 파악할 수 있고 이러한 사용자 감정을 대화 활성 트리거로 사용하여 감정의 강도가 설정 범위를 초과하는 경우 대화를 자동으로 활성화 시킬 수 있다.Therefore, in this embodiment, the type and intensity of the user's current emotion can be grasped from the expression in the user's face image, and the user emotion is used as a conversation activation trigger to automatically activate the conversation when the intensity of the emotion exceeds the set range. I can make it.

도 7은 본 발명의 일실시예에 있어서, 인공지능 대화 방법의 또 다른 예를 도시한 흐름도이다.7 is a flowchart illustrating another example of an artificial intelligence conversation method according to an embodiment of the present invention.

단계(S711)에서 전자 기기(410)는 대화 기능이 비활성화 된 상태에서 대화 기반 인터페이스를 통해 사용자의 음성 입력을 수신할 수 있다. 예를 들어, 전자 기기(410)는 대화 기반 인터페이스로서 전자 기기(410)가 포함하는 마이크 또는 전자 기기(410)와 연동된 마이크와 같은 음성 입력 장치를 통해 사용자의 발화에 따른 음성 입력을 수신할 수 있다.In step S711, the electronic device 410 may receive a user's voice input through a conversation-based interface while the conversation function is deactivated. For example, the electronic device 410 may receive a voice input according to a user's utterance through a voice input device such as a microphone included in the electronic device 410 or a microphone interlocked with the electronic device 410 as a conversation-based interface. I can.

단계(S712)에서 전자 기기(410)는 전자 기기(410)가 포함하는 동작 센서(예컨대, 적외선 센서 등)를 이용하여 일정 거리(예컨대, 3m) 이내의 동작을 감지할 수 있다. 다시 말해, 전자 기기(410)는 적외선 센서와 같은 동작 센서를 통해 사용자 동작을 감지할 수 있다.In step S712, the electronic device 410 may detect a motion within a certain distance (eg, 3m) using a motion sensor (eg, an infrared sensor) included in the electronic device 410. In other words, the electronic device 410 may detect a user's motion through a motion sensor such as an infrared sensor.

단계(S713)에서 전자 기기(410)는 동작이 감지되면 대화 기반 인터페이스를 활성화 하여 해당 인터페이스를 통해 사용자의 얼굴 영상을 수신할 수 있다. 예를 들어, 전자 기기(410)는 사용자 동작이 감지되면 전자 기기(410)가 포함하는 카메라 또는 전자 기기(410)와 연동된 카메라와 같은 영상 입력 장치를 활성화 하여 사용자의 얼굴 영상을 수신할 수 있다.In step S713, when a motion is detected, the electronic device 410 may activate a conversation-based interface and receive a face image of the user through the interface. For example, when a user's motion is detected, the electronic device 410 may receive a face image of the user by activating an image input device such as a camera included in the electronic device 410 or a camera interlocked with the electronic device 410. have.

단계(S721)에서 전자 기기(410)는 단계(S711)에서 수신된 음성 입력의 문장에서 감정 정보(즉, 문장 감정 정보)를 추출할 수 있다. 이때, 문장 감정 정보는 감정 종류와 감정 강도(감정 정도)를 포함할 수 있다. 문장 감정 정보를 추출하는 방법은 도 5를 통해 설명한 단계(S521)와 동일하므로 구체적인 설명은 생략하기로 한다.In step S721, the electronic device 410 may extract emotion information (ie, sentence emotion information) from the sentence of the voice input received in step S711. In this case, the sentence emotion information may include an emotion type and an emotion intensity (feeling degree). Since the method of extracting the sentence emotion information is the same as in step S521 described with reference to FIG. 5, a detailed description will be omitted.

단계(S722)에서 전자 기기(410)는 단계(S713)에서 수신된 얼굴 영상에서 감정 정보(즉, 얼굴 감정 정보)를 추출할 수 있다. 전자 기기(410)는 영상을 기반으로 얼굴 표정으로부터 감정 종류와 감정 강도를 포함한 얼굴 감정 정보를 추출할 수 있다. 얼굴 감정 정보를 추출하는 방법은 도 6을 통해 설명한 단계(S622)와 동일하므로 구체적인 설명은 생략하기로 한다.In step S722, the electronic device 410 may extract emotion information (ie, facial emotion information) from the face image received in step S713. The electronic device 410 may extract facial emotion information including an emotion type and an emotion intensity from a facial expression based on an image. Since the method of extracting facial emotion information is the same as in step S622 described with reference to FIG. 6, a detailed description will be omitted.

단계(S723)에서 전자 기기(410)는 단계(S721)에서 추출된 문장 감정 정보와 단계(S722)에서 추출된 얼굴 감정 정보를 종합한 감정 정보(이하, '사용자 감정 정보'라 칭함)를 판단할 수 있다. 일례로, 전자 기기(410)는 문장 감정 정보와 얼굴 감정 정보에 따라 가중치를 계산할 수 있고 이를 통해 종합적인 감정 정보를 판단할 수 있다. 사용자 감정 정보 또한 마찬가지로 감정 종류와 감정 강도를 포함할 수 있다. 따라서, 전자 기기(410)는 사용자의 음성 입력에 따른 문장에서 나타내는 감정과 사용자 얼굴 영상의 표정에서 나타나는 감정을 종합하여 최종적인 사용자 감정을 판단할 수 있다.In step S723, the electronic device 410 determines emotion information (hereinafter, referred to as'user emotion information') by combining the sentence emotion information extracted in step S721 and the facial emotion information extracted in step S722. can do. For example, the electronic device 410 may calculate a weight according to sentence emotion information and face emotion information, and determine comprehensive emotion information through this. User emotion information may also include emotion type and emotion intensity. Accordingly, the electronic device 410 may determine the final user emotion by synthesizing the emotion expressed in the sentence according to the user's voice input and the emotion expressed in the facial expression of the user's face image.

단계(S730)에서 전자 기기(410)는 단계(S723)에서 추출된 사용자 감정 정보를 이용하여 사용자 감정 정보에 포함된 감정의 강도가 사전에 정해진 설정 범위를 초과하는지 여부를 확인할 수 있다.In step S730, the electronic device 410 may check whether the intensity of the emotion included in the user emotion information exceeds a predetermined setting range by using the user emotion information extracted in step S723.

단계(S740)에서 전자 기기(410)는 사용자 감정 정보에 포함된 감정의 강도가 설정 범위를 초과하는 경우 대화 기능을 자동 활성화 할 수 있다. 전자 기기(410)는 사용자의 음성 입력에서 나타난 감정과 얼굴 영상의 표정에서 나타난 감정을 종합하여 판단된 감정의 강도가 설정 범위를 초과하는 경우 스스로 대화를 활성화 할 수 있다.In step S740, the electronic device 410 may automatically activate the conversation function when the intensity of the emotion included in the user emotion information exceeds a set range. The electronic device 410 may activate a conversation by itself when the strength of the determined emotion exceeds a set range by synthesizing the emotion indicated by the user's voice input and the emotion indicated by the facial expression of the facial image.

감정의 강도를 바탕으로 대화를 자동 활성화 하는 구체적인 내용은 도 5를 통해 설명한 것과 동일하므로 구체적인 설명은 생략하기로 한다.Since the details of automatically activating the conversation based on the intensity of emotion are the same as those described with reference to FIG. 5, detailed descriptions will be omitted.

단계(S750)에서 전자 기기(410)는 설정 범위를 초과하는 사용자 감정에 대해 대화를 자동 활성화 한 후 사용자 감정 정보에 대응되는 대화 정보를 출력할 수 있다. 대화 정보에는 음성 메시지, 표정 정보, 동작 정보 중 적어도 하나를 포함할 수 있으며, 전자 기기(410)는 스피커와 같은 음성 출력 장치, 디스플레이와 같은 영상 출력 장치, 로봇과 같은 모터 제어 동작 장치 중 적어도 하나를 이용하여 대화 정보를 출력할 수 있다. 대화 정보를 출력하는 구체적인 내용 또한 도 5를 통해 설명한 것과 동일하므로 구체적인 설명은 생략하기로 한다.In operation S750, the electronic device 410 may automatically activate a conversation for a user emotion exceeding a set range, and then output conversation information corresponding to the user emotion information. The conversation information may include at least one of a voice message, facial expression information, and motion information, and the electronic device 410 includes at least one of an audio output device such as a speaker, an image output device such as a display, and a motor control operation device such as a robot. You can output conversation information by using. Details of outputting conversation information are also the same as those described with reference to FIG. 5, and thus detailed descriptions will be omitted.

따라서, 본 실시예에서는 사용자의 음성 입력과 얼굴 영상을 함께 이용하여 사용자의 현재 감정의 종류와 강도를 파악할 수 있고 이러한 사용자 감정을 대화 활성 트리거로 사용하여 감정의 강도가 설정 범위를 초과하는 경우 대화를 자동으로 활성화 시킬 수 있다.Therefore, in this embodiment, the type and intensity of the user's current emotion can be grasped by using the user's voice input and the face image together, and when the intensity of the emotion exceeds the set range, the user's emotion is used as a conversation activation trigger. Can be activated automatically.

더 나아가, 본 실시예들은 사용자 감정을 대화 활성 트리거로 사용하되 사용자와 관련된 상황 정보를 추가적인 활성화 조건으로 적용하는 것 또한 가능하다.Furthermore, in the present embodiments, it is also possible to use user emotion as a conversation activation trigger, but to apply context information related to the user as an additional activation condition.

도 8은 본 발명의 일실시예에 있어서, 대화 활성화 과정의 예를 도시한 흐름도이다.8 is a flowchart illustrating an example of a conversation activation process according to an embodiment of the present invention.

단계(S830)에서 전자 기기(410)는 사용자의 음성 입력 및/또는 얼굴 영상으로부터 판단된 감정의 강도가 사전에 정해진 설정 범위를 초과하는지 여부를 확인할 수 있다.In step S830, the electronic device 410 may check whether the intensity of the emotion determined from the user's voice input and/or the face image exceeds a predetermined setting range.

단계(S831)에서 전자 기기(410)는 단계(S830)의 판단 결과 감정의 강도가 설정 범위를 초과하는 경우 사용자와 관련된 상황 정보가 사전에 설정된 활성화 조건에 부합하는지 여부를 판단할 수 있다. 활성화 조건은 시간, 발화의 종류나 크기, 감정의 종류, 동작의 크기 등 다양한 상황 조건 중 적어도 하나의 조건이 포함될 수 있다. 상기한 활성화 조건은 사용자나 시스템에 의해 특정 값으로 사전에 설정되거나, 혹은 사용자의 감정 패턴이나 활동 패턴에 대한 학습 과정을 거쳐 수렴된 값으로 정해지는 것 또한 가능하다.In step S831, when the determination result in step S830 that the intensity of emotion exceeds a set range, the electronic device 410 may determine whether context information related to the user satisfies a preset activation condition. The activation condition may include at least one of various situational conditions such as time, type or size of utterance, type of emotion, size of motion, and so on. The above-described activation condition may be set in advance to a specific value by the user or the system, or may be determined as a value converged through a learning process for the user's emotion pattern or activity pattern.

단계(S840)에서 전자 기기(410)는 사용자의 상황 정보가 활성화 조건에 부합하는 경우 대화 기능을 자동 활성화 할 수 있다. 일례로, 전자 기기(410)는 활성화 조건으로서 대화 기능의 비활성화 상태가 연속적으로 유지된 시간을 이용할 수 있고, 비활성화 상태의 유지 시간이 활성화 조건으로 설정된 시간을 초과한 경우 설정 범위를 초과한 강도의 감정에 대해 대화를 자동 활성화 할 수 있다. 다른 예로, 전자 기기(410)는 활성화 조건으로서 사용자의 평소 활동 시간을 이용할 수 있고, 사용자의 평소 활동 시간 이외의 시간에 설정 범위를 초과한 강도의 감정이 감지된 경우 대화를 자동 활성화 할 수 있다. 또 다른 예로, 전자 기기(410)는 활성화 조건으로서 사용자의 평소 활동 시간과 한숨의 크기를 이용할 수 있고, 사용자의 평소 활동 시간 이외의 시간에 설정 크기 이상의 한숨이 감지되는 경우 대화를 자동 활성화 할 수 있다. 또 다른 예로, 전자 기기(410)는 활성화 조건으로서 사용자에게 평소 나타나는 감정의 종류를 이용할 수 있고, 설정 범위를 초과한 강도의 감정이 사용자의 평소 감정 종류에 해당되지 않는 경우 대화를 자동 활성화 할 수 있다. 또 다른 예로, 전자 기기(410)는 활성화 조건으로서 동작의 크기를 이용할 수 있고, 설정 범위를 초과한 강도의 감정과 함께 동작 센서를 통해 감지된 동작의 크기가 설정 범위를 초과하는 경우 대화를 자동 활성화 할 수 있다.In step S840, the electronic device 410 may automatically activate the conversation function when the user's context information satisfies the activation condition. As an example, the electronic device 410 may use a time in which the deactivation state of the conversation function is continuously maintained as an activation condition, and when the maintenance time in the deactivation state exceeds the time set as the activation condition, the intensity exceeding the set range You can automatically activate the conversation about your emotions. As another example, the electronic device 410 may use a user's usual activity time as an activation condition, and may automatically activate a conversation when an emotion having an intensity exceeding a set range is detected at a time other than the user's usual activity time. . As another example, the electronic device 410 may use the user's usual activity time and the size of sigh as an activation condition, and when a sigh of more than a set size is detected at a time other than the user's usual activity time, the conversation may be automatically activated. have. As another example, the electronic device 410 may use the type of emotion normally displayed to the user as an activation condition, and automatically activate the conversation when the emotion having an intensity exceeding the set range does not correspond to the user's usual emotion type. have. As another example, the electronic device 410 may use the size of the motion as an activation condition, and automatically initiate a conversation when the size of the motion detected through the motion sensor exceeds the set range along with the emotion of the intensity exceeding the set range. Can be activated.

따라서, 본 실시예에서는 설정 범위를 초과한 강도의 감정을 대화 활성 트리거로 사용하되 시간, 발화의 종류나 크기, 감정의 종류, 동작의 크기 등 다양한 상황 정보를 추가의 활성화 조건으로 적용할 수 있다.Accordingly, in the present embodiment, an emotion having an intensity exceeding the set range is used as a conversation activation trigger, but various context information such as time, type or size of utterance, type of emotion, size of motion, etc. can be applied as an additional activation condition. .

이처럼 본 발명의 실시예들에 따르면, 사용자의 표정 정보와 음성 정보 중 적어도 하나를 이용하여 인공지능 대화를 위한 기계의 활성화를 스스로 트리거 할 수 있다. 따라서, 기계 활성화를 위한 별도의 키워드나 액션을 요구하지 않으며 사용자가 대화 의사를 먼저 전달하지 않더라도 사용자의 감정에 따라 기계가 스스로 활성화 하여 사용자에게 먼저 대화를 시작할 수 있어 사용자와 기계 간의 정서적 교감을 한층 높일 수 있다.As described above, according to embodiments of the present invention, activation of a machine for artificial intelligence conversation may be triggered by itself using at least one of the user's facial expression information and voice information. Therefore, it does not require a separate keyword or action to activate the machine, and even if the user does not communicate the intention of the conversation first, the machine activates itself according to the user's emotions and can initiate a conversation with the user, further enhancing the emotional connection between the user and the machine. You can increase it.

이상에서 설명된 장치는 하드웨어 구성요소, 소프트웨어 구성요소, 및/또는 하드웨어 구성요소 및 소프트웨어 구성요소의 조합으로 구현될 수 있다. 예를 들어, 실시예들에서 설명된 장치 및 구성요소는, 프로세서, 콘트롤러, ALU(arithmetic logic unit), 디지털 신호 프로세서(digital signal processor), 마이크로컴퓨터, FPGA(field programmable gate array), PLU(programmable logic unit), 마이크로프로세서, 또는 명령(instruction)을 실행하고 응답할 수 있는 다른 어떠한 장치와 같이, 하나 이상의 범용 컴퓨터 또는 특수 목적 컴퓨터를 이용하여 구현될 수 있다. 처리 장치는 운영 체제(OS) 및 상기 운영 체제 상에서 수행되는 하나 이상의 소프트웨어 어플리케이션을 수행할 수 있다. 또한, 처리 장치는 소프트웨어의 실행에 응답하여, 데이터를 접근, 저장, 조작, 처리 및 생성할 수도 있다. 이해의 편의를 위하여, 처리 장치는 하나가 사용되는 것으로 설명된 경우도 있지만, 해당 기술분야에서 통상의 지식을 가진 자는, 처리 장치가 복수 개의 처리 요소(processing element) 및/또는 복수 유형의 처리 요소를 포함할 수 있음을 알 수 있다. 예를 들어, 처리 장치는 복수 개의 프로세서 또는 하나의 프로세서 및 하나의 콘트롤러를 포함할 수 있다. 또한, 병렬 프로세서(parallel processor)와 같은, 다른 처리 구성(processing configuration)도 가능하다.The apparatus described above may be implemented as a hardware component, a software component, and/or a combination of a hardware component and a software component. For example, the devices and components described in the embodiments include a processor, a controller, an arithmetic logic unit (ALU), a digital signal processor, a microcomputer, a field programmable gate array (FPGA), and a programmable gate array (PLU). It may be implemented using one or more general purpose or special purpose computers, such as a logic unit), a microprocessor, or any other device capable of executing and responding to instructions. The processing device may execute an operating system (OS) and one or more software applications executed on the operating system. Further, the processing device may access, store, manipulate, process, and generate data in response to the execution of software. For the convenience of understanding, although it is sometimes described that one processing device is used, one of ordinary skill in the art, the processing device is a plurality of processing elements and/or a plurality of types of processing elements. It can be seen that it may include. For example, the processing device may include a plurality of processors or one processor and one controller. In addition, other processing configurations are possible, such as a parallel processor.

소프트웨어는 컴퓨터 프로그램(computer program), 코드(code), 명령(instruction), 또는 이들 중 하나 이상의 조합을 포함할 수 있으며, 원하는 대로 동작하도록 처리 장치를 구성하거나 독립적으로 또는 결합적으로(collectively) 처리 장치를 명령할 수 있다. 소프트웨어 및/또는 데이터는, 처리 장치에 의하여 해석되거나 처리 장치에 명령 또는 데이터를 제공하기 위하여, 어떤 유형의 기계, 구성요소(component), 물리적 장치, 컴퓨터 저장 매체 또는 장치에 구체화(embody)될 수 있다. 소프트웨어는 네트워크로 연결된 컴퓨터 시스템 상에 분산되어서, 분산된 방법으로 저장되거나 실행될 수도 있다. 소프트웨어 및 데이터는 하나 이상의 컴퓨터 판독 가능 기록 매체에 저장될 수 있다.The software may include a computer program, code, instructions, or a combination of one or more of these, configuring the processing unit to behave as desired or processed independently or collectively. You can command the device. Software and/or data may be embodyed in any type of machine, component, physical device, computer storage medium or device to be interpreted by the processing device or to provide instructions or data to the processing device. have. The software may be distributed over networked computer systems and stored or executed in a distributed manner. Software and data may be stored on one or more computer-readable recording media.

실시예에 따른 방법은 다양한 컴퓨터 수단을 통하여 수행될 수 있는 프로그램 명령 형태로 구현되어 컴퓨터 판독 가능 매체에 기록될 수 있다. 이때, 매체는 컴퓨터로 실행 가능한 프로그램을 계속 저장하거나, 실행 또는 다운로드를 위해 임시 저장하는 것일 수도 있다. 또한, 매체는 단일 또는 수 개의 하드웨어가 결합된 형태의 다양한 기록수단 또는 저장수단일 수 있는데, 어떤 컴퓨터 시스템에 직접 접속되는 매체에 한정되지 않고, 네트워크 상에 분산 존재하는 것일 수도 있다. 매체의 예시로는, 하드 디스크, 플로피 디스크 및 자기 테이프와 같은 자기 매체, CD-ROM 및 DVD와 같은 광기록 매체, 플롭티컬 디스크(floptical disk)와 같은 자기-광 매체(magneto-optical medium), 및 ROM, RAM, 플래시 메모리 등을 포함하여 프로그램 명령어가 저장되도록 구성된 것이 있을 수 있다. 또한, 다른 매체의 예시로, 어플리케이션을 유통하는 앱 스토어나 기타 다양한 소프트웨어를 공급 내지 유통하는 사이트, 서버 등에서 관리하는 기록매체 내지 저장매체도 들 수 있다.The method according to the embodiment may be implemented in the form of program instructions that can be executed through various computer means and recorded in a computer-readable medium. In this case, the medium may continue to store a program executable by a computer or temporarily store a program for execution or download. Further, the medium may be a variety of recording means or storage means in a form in which a single or several pieces of hardware are combined, but is not limited to a medium directly connected to a computer system, but may be distributed on a network. Examples of media include magnetic 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, And there may be ones configured to store program instructions, including ROM, RAM, flash memory, and the like. In addition, examples of other media include an app store that distributes applications, a site that supplies or distributes various software, and a recording medium or a storage medium managed by a server.

이상과 같이 실시예들이 비록 한정된 실시예와 도면에 의해 설명되었으나, 해당 기술분야에서 통상의 지식을 가진 자라면 상기의 기재로부터 다양한 수정 및 변형이 가능하다. 예를 들어, 설명된 기술들이 설명된 방법과 다른 순서로 수행되거나, 및/또는 설명된 시스템, 구조, 장치, 회로 등의 구성요소들이 설명된 방법과 다른 형태로 결합 또는 조합되거나, 다른 구성요소 또는 균등물에 의하여 대치되거나 치환되더라도 적절한 결과가 달성될 수 있다.Although the embodiments have been described by the limited embodiments and drawings as described above, various modifications and variations can be made from the above description to those of ordinary skill in the art. For example, the described techniques are performed in a different order from the described method, and/or components such as systems, structures, devices, circuits, etc. described are combined or combined in a form different from the described method, or other components Alternatively, even if substituted or substituted by an equivalent, an appropriate result can be achieved.

그러므로, 다른 구현들, 다른 실시예들 및 특허청구범위와 균등한 것들도 후술하는 특허청구범위의 범위에 속한다.Therefore, other implementations, other embodiments, and those equivalent to the claims also fall within the scope of the claims to be described later.

Claims (5)

컴퓨터로 구현되는 인공지능 대화 방법에 있어서,
대화 기능이 비활성화 된 상태에서 수집된 정보로부터 사용자의 감정 정보를 추출하는 단계; 및
상기 감정 정보를 대화 활성 트리거로 사용하여 상기 대화 기능을 활성화 하는 단계
를 포함하고,
상기 활성화 하는 단계는,
상기 대화 기능이 비활성화 된 상태에서 추출된 상기 감정 정보에 포함된 감정의 강도가 설정 범위를 초과하는지 여부를 판단하는 단계;
상기 감정의 강도가 상기 설정 범위를 초과하는 경우 상기 사용자와 관련된 상황 정보가 사전에 설정된 활성화 조건에 부합하는지 여부를 판단하는 단계; 및
상기 상황 정보가 상기 활성화 조건에 부합되는 경우 상기 설정 범위를 초과한 강도의 감정에 대해 상기 대화 기능을 활성화 하는 단계
를 포함하고,
상기 설정 범위는 상기 사용자의 감정 패턴에 대한 학습을 통해 수렴된 값으로 설정되며,
상기 활성화 조건은 시간, 발화의 종류나 크기, 감정의 종류, 동작의 크기 중 적어도 하나의 조건이 포함되고,
상기 활성화 하는 단계는,
상기 감정 정보에 포함된 감정의 종류가 상기 사용자에게 평소에 나타나는 감정의 종류에 해당되지 않는 감정이고 상기 감정 정보에 포함된 감정의 강도가 상기 설정 범위를 초과하는 경우 상기 대화 기능을 활성화 하는 단계
를 포함하는 인공지능 대화 방법.
In the artificial intelligence conversation method implemented by a computer,
Extracting emotion information of a user from information collected in a state in which the conversation function is deactivated; And
Activating the conversation function by using the emotion information as a conversation activation trigger
Including,
The activating step,
Determining whether the intensity of the emotion included in the emotion information extracted while the conversation function is deactivated exceeds a set range;
Determining whether context information related to the user satisfies a preset activation condition when the intensity of the emotion exceeds the set range; And
Activating the conversation function for an emotion having an intensity exceeding the set range when the context information meets the activation condition
Including,
The setting range is set to a value converged through learning about the user's emotion pattern,
The activation condition includes at least one of time, type or size of utterance, type of emotion, and size of motion,
The activating step,
Activating the conversation function when the type of emotion included in the emotion information does not correspond to the type of emotion normally displayed to the user and the intensity of the emotion included in the emotion information exceeds the setting range
Artificial intelligence conversation method comprising a.
제1항에 있어서,
상기 활성화 하는 단계는,
상기 대화 기능의 비활성화 상태의 유지 시간이 설정된 시간을 초과하는 경우 상기 설정 범위를 초과한 강도의 감정에 대해 상기 대화 기능을 활성화 하는 단계
를 더 포함하는 인공지능 대화 방법.
The method of claim 1,
The activating step,
Activating the conversation function for an emotion having an intensity exceeding the setting range when the retention time of the inactive state of the conversation function exceeds a set time
Artificial intelligence conversation method further comprising a.
제1항에 있어서,
상기 활성화 하는 단계는,
상기 사용자의 평소 활동 시간 이외의 시간에 상기 설정 범위를 초과한 강도의 감정이 감지된 경우 상기 대화 기능을 활성화 하는 단계
를 더 포함하는 인공지능 대화 방법.
The method of claim 1,
The activating step,
Activating the conversation function when an emotion having an intensity exceeding the set range is detected at a time other than the user's usual activity time
Artificial intelligence conversation method further comprising a.
제1항에 있어서,
상기 활성화 하는 단계는,
상기 사용자의 평소 활동 시간 이외의 시간에 설정된 크기 이상의 한숨이 감지되는 경우 상기 대화 기능을 활성화 하는 단계
를 더 포함하는 인공지능 대화 방법.
The method of claim 1,
The activating step,
Activating the conversation function when a sigh of more than a set size is detected at a time other than the user's usual activity time
Artificial intelligence conversation method further comprising a.
제1항에 있어서,
상기 활성화 하는 단계는,
상기 설정 범위를 초과한 강도의 감정과 함께, 동작 센서를 통해 감지된 동작의 크기가 설정된 범위를 초과하는 경우 상기 대화 기능을 활성화 하는 단계
를 더 포함하는 인공지능 대화 방법.
The method of claim 1,
The activating step,
Activating the conversation function when the magnitude of the motion detected through the motion sensor exceeds the set range, together with the emotion of the intensity exceeding the set range.
Artificial intelligence conversation method further comprising a.
KR1020190156693A 2019-11-29 2019-11-29 Method and system for automatic activation of machine KR102239223B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020190156693A KR102239223B1 (en) 2019-11-29 2019-11-29 Method and system for automatic activation of machine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020190156693A KR102239223B1 (en) 2019-11-29 2019-11-29 Method and system for automatic activation of machine

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
KR1020190018454A Division KR20190018666A (en) 2019-02-18 2019-02-18 Method and system for automatic activation of machine

Publications (2)

Publication Number Publication Date
KR20190135457A KR20190135457A (en) 2019-12-06
KR102239223B1 true KR102239223B1 (en) 2021-04-12

Family

ID=68837010

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020190156693A KR102239223B1 (en) 2019-11-29 2019-11-29 Method and system for automatic activation of machine

Country Status (1)

Country Link
KR (1) KR102239223B1 (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170054848A1 (en) 2015-08-21 2017-02-23 Samsung Electronics Co., Ltd. Assistant redirection for customer service agent processing
JP2017100221A (en) * 2015-11-30 2017-06-08 パナソニックIpマネジメント株式会社 Communication robot

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100903348B1 (en) * 2007-11-28 2009-06-23 중앙대학교 산학협력단 Emotion recognition mothod and system based on feature fusion
EP2933070A1 (en) * 2014-04-17 2015-10-21 Aldebaran Robotics Methods and systems of handling a dialog with a robot

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170054848A1 (en) 2015-08-21 2017-02-23 Samsung Electronics Co., Ltd. Assistant redirection for customer service agent processing
JP2017100221A (en) * 2015-11-30 2017-06-08 パナソニックIpマネジメント株式会社 Communication robot

Also Published As

Publication number Publication date
KR20190135457A (en) 2019-12-06

Similar Documents

Publication Publication Date Title
US10923130B2 (en) Electronic device and method of performing function of electronic device
KR101949497B1 (en) Method and system for processing user command to provide and adjust operation of device or range of providing contents accoding to analyzing presentation of user speech
US11854527B2 (en) Electronic device and method of controlling speech recognition by electronic device
CN109243432B (en) Voice processing method and electronic device supporting the same
KR102411766B1 (en) Method for activating voice recognition servive and electronic device for the same
JP6567727B2 (en) User command processing method and system for adjusting output volume of sound output based on input volume of received voice input
KR102034255B1 (en) Method and system for human-machine emotional communication
EP3543999A2 (en) System for processing sound data and method of controlling system
US11437034B2 (en) Remote control method and apparatus for an imaging apparatus
KR20190084789A (en) Electric terminal and method for controlling the same
KR102209092B1 (en) Method and system for controlling artificial intelligence device using plurality wake up word
KR102508863B1 (en) A electronic apparatus and a server for processing received data from the apparatus
EP3866160A1 (en) Electronic device and control method thereof
JP6728319B2 (en) Service providing method and system using a plurality of wake words in an artificial intelligence device
KR102563817B1 (en) Method for processing user voice input and electronic device supporting the same
KR102431817B1 (en) Electronic apparatus and server for processing user utterance
KR20190090424A (en) Method for responding user speech and electronic device supporting the same
KR20190002073A (en) Method and system for automatic activation of machine
US20210295835A1 (en) Method for controlling external device based on voice and electronic device thereof
CN111640429A (en) Method of providing voice recognition service and electronic device for the same
KR20190018666A (en) Method and system for automatic activation of machine
KR102012927B1 (en) Method and system for automatic defect detection of artificial intelligence device
KR102396147B1 (en) Electronic device for performing an operation using voice commands and the method of the same
KR102239223B1 (en) Method and system for automatic activation of machine
US11670294B2 (en) Method of generating wakeup model and electronic device therefor

Legal Events

Date Code Title Description
A107 Divisional application of patent
E902 Notification of reason for refusal
E701 Decision to grant or registration of patent right
GRNT Written decision to grant