KR20200127814A - Server for seleting a target device according to a voice input, and controlling the selected target device, and method for operating the same - Google Patents

Server for seleting a target device according to a voice input, and controlling the selected target device, and method for operating the same Download PDF

Info

Publication number
KR20200127814A
KR20200127814A KR1020190092641A KR20190092641A KR20200127814A KR 20200127814 A KR20200127814 A KR 20200127814A KR 1020190092641 A KR1020190092641 A KR 1020190092641A KR 20190092641 A KR20190092641 A KR 20190092641A KR 20200127814 A KR20200127814 A KR 20200127814A
Authority
KR
South Korea
Prior art keywords
model
information
server
target device
text
Prior art date
Application number
KR1020190092641A
Other languages
Korean (ko)
Other versions
KR102309540B1 (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 US16/841,086 priority Critical patent/US20200349940A1/en
Priority to EP22205263.1A priority patent/EP4160592A1/en
Priority to EP20168960.1A priority patent/EP3734596B1/en
Priority to PCT/KR2020/005052 priority patent/WO2020222444A1/en
Priority to CN202010356462.2A priority patent/CN111880645A/en
Publication of KR20200127814A publication Critical patent/KR20200127814A/en
Priority to KR1020210128348A priority patent/KR102429436B1/en
Application granted granted Critical
Publication of KR102309540B1 publication Critical patent/KR102309540B1/en

Links

Images

Classifications

    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS OR SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING; SPEECH OR AUDIO CODING OR DECODING
    • G10L15/00Speech recognition
    • G10L15/22Procedures used during a speech recognition process, e.g. man-machine dialogue
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS OR SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING; SPEECH OR AUDIO CODING OR DECODING
    • G10L15/00Speech recognition
    • G10L15/04Segmentation; Word boundary detection
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS OR SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING; SPEECH OR AUDIO CODING OR DECODING
    • G10L15/00Speech recognition
    • G10L15/08Speech classification or search
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS OR SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING; SPEECH OR AUDIO CODING OR DECODING
    • G10L15/00Speech recognition
    • G10L15/08Speech classification or search
    • G10L15/18Speech classification or search using natural language modelling
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS OR SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING; SPEECH OR AUDIO CODING OR DECODING
    • G10L15/00Speech recognition
    • G10L15/28Constructional details of speech recognition systems
    • G10L15/30Distributed recognition, e.g. in client-server systems, for mobile phones or network applications
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS OR SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING; SPEECH OR AUDIO CODING OR DECODING
    • G10L15/00Speech recognition
    • G10L15/08Speech classification or search
    • G10L2015/081Search algorithms, e.g. Baum-Welch or Viterbi
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS OR SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING; SPEECH OR AUDIO CODING OR DECODING
    • G10L15/00Speech recognition
    • G10L15/22Procedures used during a speech recognition process, e.g. man-machine dialogue
    • G10L2015/223Execution procedure of a spoken command
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS OR SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING; SPEECH OR AUDIO CODING OR DECODING
    • G10L15/00Speech recognition
    • G10L15/22Procedures used during a speech recognition process, e.g. man-machine dialogue
    • G10L2015/226Procedures used during a speech recognition process, e.g. man-machine dialogue using non-speech characteristics
    • G10L2015/227Procedures used during a speech recognition process, e.g. man-machine dialogue using non-speech characteristics of the speaker; Human-factor methodology

Abstract

Disclosed are a server for controlling a device based on a voice input of a user and an operation method thereof. According to one embodiment of the present disclosure, the server determines a type of target device related to a voice input of a user received from a client device in a network environment including a plurality of devices, determines the target device based on the determined type and device information related to the plurality of devices, and obtains operation information so that the determined target device performs an operation.

Description

사용자의 입력 입력에 기초하여 타겟 디바이스를 결정하고, 타겟 디바이스를 제어하는 서버 및 그 동작 방법 {SERVER FOR SELETING A TARGET DEVICE ACCORDING TO A VOICE INPUT, AND CONTROLLING THE SELECTED TARGET DEVICE, AND METHOD FOR OPERATING THE SAME} A server that determines the target device based on the user's input and controls the target device and its operation method {SERVER FOR SELETING A TARGET DEVICE ACCORDING TO A VOICE INPUT, AND CONTROLLING THE SELECTED TARGET DEVICE, AND METHOD FOR OPERATING THE SAME}

본 개시는 복수의 디바이스를 포함하는 네트워크 환경에서 사용자로부터 수신한 음성 입력에 포함되는 사용자의 의도에 따른 동작을 수행할 타겟 디바이스를 결정하고, 결정된 타겟 디바이스를 제어하는 서버 및 그 동작 방법에 관한 것이다. The present disclosure relates to a server for determining a target device to perform an operation according to a user's intention included in a voice input received from a user in a network environment including a plurality of devices, and controlling the determined target device, and an operation method thereof. .

멀티 미디어 기술 및 네트워크 기술이 발전함에 따라, 사용자는 디바이스를 이용하여 다양한 서비스를 제공받을 수 있게 되었다. 특히, 음성 인식 기술이 발전함에 따라, 사용자는 디바이스에 음성(예를 들어, 발화)을 입력하고, 서비스 제공 에이전트를 통해 음성 입력에 따른 응답 메시지를 수신할 수 있게 되었다. With the development of multimedia technology and network technology, users can receive various services using devices. In particular, with the development of speech recognition technology, a user can input a voice (for example, speech) to a device and receive a response message according to the voice input through a service providing agent.

하지만, 복수의 디바이스를 포함하는 홈 네트워크 환경 등에서 사용자가 음성 입력 등을 통해 대화(interaction)하는 클라이언트 디바이스가 아닌, 다른 디바이스를 통해 서비스를 제공받고 싶은 경우, 서비스 에이전트를 직접 선택해야 하는 번거로움이 있다. 특히, 복수의 디바이스 각각이 제공할 수 있는 서비스의 종류가 다르기 때문에, 사용자의 음성 입력에 포함된 의도를 파악하여 효과적으로 서비스를 제공할 수 있는 기술이 요구되고 있다. However, in a home network environment including a plurality of devices, when a user wants to receive a service through a device other than a client device that interacts through voice input, etc., it is troublesome to select a service agent directly. have. In particular, since the types of services that can be provided by each of a plurality of devices are different, there is a demand for a technology capable of effectively providing a service by grasping an intention included in a user's voice input.

사용자의 음성 입력에 포함된 의도를 파악할 때, 인공지능(Artificial Intelligence, AI) 기술이 활용될 수 있으며, 룰(Rule) 기반의 자연어 이해 기술(Natural Language Understanding, NLU)이 활용될 수도 있다. When determining the intention included in the user's voice input, artificial intelligence (AI) technology may be used, and rule-based natural language understanding technology (NLU) may be used.

본 개시는 서버 및 그 동작 방법에 관한 것으로, 보다 구체적으로는 복수의 디바이스를 포함하는 네트워크 환경에서 음성 입력으로부터 사용자의 의도를 파악하고, 파악된 의도에 따른 동작을 수행할 디바이스를 자동으로 결정하고, 결정된 디바이스를 제어하는 서버 및 그 동작 방법을 제공하는 것을 목적으로 한다. The present disclosure relates to a server and a method of operation thereof, and more specifically, to determine a user's intention from a voice input in a network environment including a plurality of devices, and automatically determine a device to perform an operation according to the identified intention. It is an object of the present invention to provide a server for controlling the determined device and an operation method thereof.

상술한 기술적 과제를 해결하기 위하여, 본 개시의 일 실시예는 클라이언트 디바이스로부터 사용자의 음성 입력을 수신하는 단계, ASR(Automatic Speech Recognition)을 수행하여, 수신된 음성 입력을 텍스트로 변환하는 단계, 상기 텍스트에 제1 자연어 이해 모델(Natural Language Understanding)을 적용하여, 상기 텍스트와 관련된 타겟 디바이스의 타입(type)을 결정하는 단계, 복수의 제2 자연어 이해 모델 중 상기 결정된 타겟 디바이스의 타입에 대응하는 제2 자연어 이해 모델을 선택하는 단계, 결정된 타입 및 상기 복수의 디바이스의 디바이스 정보에 기초하여 타겟 디바이스를 결정하는 단계, 상기 텍스트 중 적어도 일부에 상기 선택된 제2 자연어 이해 모델을 적용하여 상기 텍스트를 해석함으로써, 상기 타겟 디바이스가 수행할 동작에 관한 동작 정보를 획득하는 단계, 및 상기 획득된 동작 정보를 상기 타겟 디바이스에 전송하는 단계를 포함하는, 서버가 음성 입력에 기초하여 디바이스를 제어하는 방법을 제공한다. In order to solve the above technical problem, an embodiment of the present disclosure includes the steps of receiving a user's voice input from a client device, performing ASR (Automatic Speech Recognition), and converting the received voice input into text, the Determining a type of a target device related to the text by applying a first natural language understanding model to the text, a second natural language understanding model corresponding to the determined type of the target device among a plurality of second natural language understanding models 2 Selecting a natural language understanding model, determining a target device based on the determined type and device information of the plurality of devices, and analyzing the text by applying the selected second natural language understanding model to at least part of the text It provides a method of controlling a device by a server based on a voice input, comprising the step of obtaining operation information on an operation to be performed by the target device, and transmitting the obtained operation information to the target device. .

상술한 기술적 과제를 해결하기 위하여, 본 개시의 다른 실시예는 클라이언트 디바이스 및 복수의 디바이스와 데이터 통신을 수행하는 통신 인터페이스, 하나 이상의 명령어들(instructions)을 포함하는 프로그램을 저장하는 메모리, 및 메모리에 저장된 프로그램의 하나 이상의 명령어들을 실행하는 프로세서를 포함하고, 상기 프로세서는, 상기 클라이언트 디바이스로부터 사용자의 음성 입력을 수신하도록 상기 통신 인터페이스를 제어하고, ASR(Automatic Speech Recognition)을 수행하여, 수신된 음성 입력을 텍스트로 변환하고, 상기 텍스트에 제1 자연어 이해 모델(Natural Language Understanding)을 적용하여, 상기 텍스트와 관련된 타겟 디바이스의 타입(type)을 결정하고, 복수의 제2 자연어 이해 모델 중 상기 결정된 타입에 대응되는 제2 자연어 이해 모델을 선택하고, 결정된 타입 및 상기 복수의 디바이스의 디바이스 정보에 기초하여 타겟 디바이스를 결정하고, 상기 텍스트 중 적어도 일부에 상기 선택된 제2 자연어 이해 모델을 적용하여 상기 텍스트를 해석함으로써, 상기 타겟 디바이스가 수행할 동작에 관한 동작 정보를 획득하고, 상기 획득된 동작 정보를 상기 타겟 디바이스에 전송하도록 상기 통신 인터페이스를 제어하는, 서버를 제공한다. In order to solve the above technical problem, another embodiment of the present disclosure provides a client device and a communication interface for performing data communication with a plurality of devices, a memory for storing a program including one or more instructions, and a memory. And a processor that executes one or more instructions of the stored program, wherein the processor controls the communication interface to receive a user's voice input from the client device, performs Automatic Speech Recognition (ASR), and receives the received voice input. Is converted to text, and a first natural language understanding model is applied to the text to determine a type of a target device related to the text, and to the determined type among a plurality of second natural language understanding models. Select a corresponding second natural language understanding model, determine a target device based on the determined type and device information of the plurality of devices, and analyze the text by applying the selected second natural language understanding model to at least part of the text By doing so, it provides a server, which obtains operation information on an operation to be performed by the target device and controls the communication interface to transmit the obtained operation information to the target device.

상술한 기술적 과제를 해결하기 위하여, 본 개시의 다른 실시예는 컴퓨터에서 실행시키기 위한 프로그램을 기록한 컴퓨터로 읽을 수 있는 기록매체를 제공하고, 상기 기록매체는 클라이언트 디바이스로부터 사용자의 음성 입력을 수신하는 단계, ASR(Automatic Speech Recognition)을 수행하여, 수신된 음성 입력을 텍스트로 변환하는 단계, 제1 자연어 이해 모델(Natural Language Understanding)을 이용하여 텍스트를 해석함으로써, 텍스트와 관련된 타겟 디바이스의 타입(type)을 결정하는 단계, 결정된 타입 및 복수의 디바이스의 디바이스 정보에 기초하여 타겟 디바이스를 결정하는 단계, 결정된 타입에 대응되는 제2 자연어 이해 모델을 이용하여 텍스트를 해석함으로써, 타겟 디바이스가 수행할 동작에 관한 동작 정보를 획득하는 단계, 및 획득된 동작 정보를 IoT 클라우드 서버에 전송하는 단계를 포함한다. In order to solve the above technical problem, another embodiment of the present disclosure provides a computer-readable recording medium in which a program for execution on a computer is recorded, the recording medium receiving a user's voice input from a client device. , Performing ASR (Automatic Speech Recognition) to convert the received speech input into text, by analyzing the text using a first natural language understanding model, the type of target device related to the text Determining, determining a target device based on the determined type and device information of the plurality of devices, analyzing the text using a second natural language understanding model corresponding to the determined type, It includes obtaining motion information, and transmitting the obtained motion information to an IoT cloud server.

본 개시는, 다음의 자세한 설명과 그에 수반되는 도면들의 결합으로 쉽게 이해될 수 있다.
도 1은 서버 및 복수의 디바이스를 포함하는 네트워크 환경을 도시한 도면이다.
도 2a 및 도 2b는 본 개시의 서버에서 실행 가능한 음성비서의 실시예를 도시한 도면이다.
도 3은 본 개시의 서버가 사용자의 음성 입력으로부터 사용자의 의도를 파악하고, 사용자의 의도와 관련에 타겟 디바이스를 결정하고, 타겟 디바이스를 제어하는 실시예를 도시한 개념도이다.
도 4는 본 개시의 서버가 사용자의 음성 입력으로부터 사용자의 의도에 따른 동작을 수행할 타겟 디바이스를 결정하고, 타겟 디바이스를 제어하는 방법을 도시한 흐름도이다.
도 5는 본 개시의 서버가 사용자의 음성 입력으로부터 사용자의 의도에 따른 동작을 수행할 타겟 디바이스를 결정하고, 타겟 디바이스를 제어하는 방법을 도시한 흐름도이다.
도 6은 본 개시의 서버가 음성 입력으로부터 변환된 텍스트를 통해 타겟 디바이스의 타입을 결정하는 구체적인 방법을 도시한 흐름도이다.
도 7은 본 개시의 서버가 텍스트로부터 결정된 타겟 디바이스 타입 및 복수의 디바이스에 관한 정보에 기초하여 타겟 디바이스를 결정하는 방법을 도시한 흐름도이다.
도 8은 본 개시의 서버가 복수의 디바이스의 정보를 고려하더라도 타겟 디바이스를 결정할 수 없는 경우, 사용자의 응답 입력에 기초하여 타겟 디바이스를 결정하는 방법에 관한 흐름도이다.
도 9는 본 개시의 서버가 제2 자연어 이해 모델을 이용하여 타겟 디바이스가 수행할 동작에 관한 동작 정보를 획득하는 방법을 도시한 흐름도이다.
도 10은 본 개시의 서버가 텍스트로부터 제1 인텐트와 제2 인텐트를 결정하고, 액션 플랜 관리 모델로부터 동작 정보를 획득하는 방법을 설명하기 위한 도면이다.
도 11은 본 개시의 클라이언트 디바이스, 서버, 인공지능 비서 엔진, 및 IoT 클라우드 서버의 동작을 도시한 흐름도이다.
도 12는 본 개시의 클라이언트 디바이스, 서버, 및 IoT 클라우드 서버의 동작을 도시한 흐름도이다.
도 13은 본 개시의 클라이언트 디바이스, 서버, 및 IoT 클라우드 서버의 동작을 도시한 흐름도이다.
도 14는 본 개시의 클라이언트 디바이스, 서버, 및 IoT 클라우드 서버를 도시한 블록도이다.
도 15는 본 개시의 서버에 의해 실행되는 프로그램의 시스템 아키텍쳐(architecture)의 일 예시를 도시한 도면이다.
도 16은 본 개시의 서버에 의해 실행되는 프로그램의 디바이스 타입 분류부(Device Type Classifier)의 일 예시를 도시한 도면이다.
도 17은 본 개시의 서버에 의해 실행되는 프로그램의 디바이스 명확화부를 도시한 도면이다.
도 18은 본 개시의 서버에 의해 실행되는 프로그램의 응답 메시지 제어부(Response Execute Manager) 의 일 예시를 도시한 도면이다.
도 19는 본 개시의 서버에 의해 실행되는 프로그램의 지능적 디바이스 리졸버(Intelligence Device Resolver)의 일 예시를 도시한 도면이다.
도 20은 본 개시의 일 실시예에 따른 액션 플랜 관리 모델을 도시한 개념도이다.
도 21은 본 개시의 일 실시예에 따른 캡슐 데이터베이스를 도시한 도면이다.
도 22는 본 개시의 디바이스의 구성 요소를 도시한 블록도이다.
The present disclosure may be easily understood by a combination of the following detailed description and accompanying drawings.
1 is a diagram illustrating a network environment including a server and a plurality of devices.
2A and 2B are diagrams showing an embodiment of a voice assistant executable in the server of the present disclosure.
3 is a conceptual diagram showing an embodiment in which the server of the present disclosure recognizes the user's intention from the user's voice input, determines a target device in relation to the user's intention, and controls the target device.
4 is a flowchart illustrating a method of determining a target device to perform an operation according to a user's intention from a user's voice input and controlling the target device by the server of the present disclosure.
5 is a flowchart illustrating a method of determining, by the server of the present disclosure, a target device to perform an operation according to a user's intention from a user's voice input and controlling the target device.
6 is a flowchart illustrating a specific method of determining a type of a target device through text converted from a voice input by the server of the present disclosure.
7 is a flowchart illustrating a method of determining a target device based on information on a plurality of devices and a target device type determined from text by the server of the present disclosure.
8 is a flowchart illustrating a method of determining a target device based on a user's response input when the server of the present disclosure cannot determine the target device even when considering information of a plurality of devices.
9 is a flowchart illustrating a method of obtaining, by the server of the present disclosure, operation information regarding an operation to be performed by a target device using a second natural language understanding model.
10 is a diagram illustrating a method of determining, by a server of the present disclosure, a first intent and a second intent from text and obtaining operation information from an action plan management model.
11 is a flowchart illustrating the operation of a client device, a server, an artificial intelligence assistant engine, and an IoT cloud server of the present disclosure.
12 is a flowchart illustrating operations of a client device, a server, and an IoT cloud server according to the present disclosure.
13 is a flowchart illustrating operations of a client device, a server, and an IoT cloud server according to the present disclosure.
14 is a block diagram illustrating a client device, a server, and an IoT cloud server according to the present disclosure.
15 is a diagram showing an example of a system architecture of a program executed by a server of the present disclosure.
16 is a diagram illustrating an example of a device type classifier of a program executed by a server of the present disclosure.
17 is a diagram showing a device disambiguation unit of a program executed by the server of the present disclosure.
18 is a diagram showing an example of a response message control unit (Response Execute Manager) of a program executed by the server of the present disclosure.
19 is a diagram illustrating an example of an intelligent device resolver of a program executed by the server of the present disclosure.
20 is a conceptual diagram illustrating an action plan management model according to an embodiment of the present disclosure.
21 is a diagram illustrating a capsule database according to an embodiment of the present disclosure.
22 is a block diagram showing components of a device according to the present disclosure.

본 명세서의 실시예들에서 사용되는 용어는 본 개시의 기능을 고려하면서 가능한 현재 널리 사용되는 일반적인 용어들을 선택하였으나, 이는 당 분야에 종사하는 기술자의 의도 또는 판례, 새로운 기술의 출현 등에 따라 달라질 수 있다. 또한, 특정한 경우는 출원인이 임의로 선정한 용어도 있으며, 이 경우 해당되는 실시예의 설명 부분에서 상세히 그 의미를 기재할 것이다. 따라서 본 명세서에서 사용되는 용어는 단순한 용어의 명칭이 아닌, 그 용어가 가지는 의미와 본 개시의 전반에 걸친 내용을 토대로 정의되어야 한다. The terms used in the embodiments of the present specification have selected general terms that are currently widely used as possible while taking the functions of the present disclosure into consideration, but this may vary depending on the intention or precedent of a technician working in the field, the emergence of new technologies, etc. . In addition, in certain cases, there are terms arbitrarily selected by the applicant, and in this case, the meaning of the terms will be described in detail in the description of the corresponding embodiment. Therefore, the terms used in the present specification should be defined based on the meaning of the term and the contents of the present disclosure, not the name of a simple term.

단수의 표현은 문맥상 명백하게 다르게 뜻하지 않는 한, 복수의 표현을 포함할 수 있다. 기술적이거나 과학적인 용어를 포함해서 여기서 사용되는 용어들은 본 명세서에 기재된 기술 분야에서 통상의 지식을 가진 자에 의해 일반적으로 이해되는 것과 동일한 의미를 가질 수 있다. Singular expressions may include plural expressions unless the context clearly indicates otherwise. Terms used herein, including technical or scientific terms, may have the same meaning as commonly understood by a person of ordinary skill in the technical field described herein.

명세서 전체에서 어떤 부분이 어떤 구성요소를 "포함"한다고 할 때, 이는 특별히 반대되는 기재가 없는 한 다른 구성요소를 제외하는 것이 아니라 다른 구성요소를 더 포함할 수 있음을 의미한다. 또한, 본 명세서에 기재된 "...부", "...모듈" 등의 용어는 적어도 하나의 기능이나 동작을 처리하는 단위를 의미하며, 이는 하드웨어 또는 소프트웨어로 구현되거나 하드웨어와 소프트웨어의 결합으로 구현될 수 있다.When a part of the specification is said to "include" a certain component, it means that other components may be further included rather than excluding other components unless otherwise stated. In addition, terms such as "... unit" and "... module" described in this specification mean a unit that processes at least one function or operation, which is implemented as hardware or software, or is a combination of hardware and software. Can be implemented.

본 명세서에서 사용된 표현 "~하도록 구성된(또는 설정된)(configured to)"은 상황에 따라, 예를 들면, "~에 적합한(suitable for)", "~하는 능력을 가지는(having the capacity to)", "~하도록 설계된(designed to)", "~하도록 변경된(adapted to)", "~하도록 만들어진(made to)", 또는 "~를 할 수 있는(capable of)"과 바꾸어 사용될 수 있다. 용어 "~하도록 구성된(또는 설정된)"은 하드웨어적으로 "특별히 설계된(specifically designed to)" 것만을 반드시 의미하지 않을 수 있다. 대신, 어떤 상황에서는, "~하도록 구성된 시스템"이라는 표현은, 그 시스템이 다른 장치 또는 부품들과 함께 "~할 수 있는" 것을 의미할 수 있다. 예를 들면, 문구 "A, B, 및 C를 수행하도록 구성된(또는 설정된) 프로세서"는 해당 동작을 수행하기 위한 전용 프로세서(예: 임베디드 프로세서), 또는 메모리에 저장된 하나 이상의 소프트웨어 프로그램들을 실행함으로써, 해당 동작들을 수행할 수 있는 범용 프로세서(generic-purpose processor)(예: CPU 또는 application processor)를 의미할 수 있다.The expression "configured to (configured to)" used in this specification is, for example, "suitable for", "having the capacity to" depending on the situation. It can be used interchangeably with ", "designed to", "adapted to", "made to", or "capable of". The term "configured to (or set)" may not necessarily mean only "specifically designed to" in hardware. Instead, in some situations, the expression "a system configured to" may mean that the system "can" along with other devices or parts. For example, the phrase “a processor configured (or configured) to perform A, B, and C” means a dedicated processor (eg, an embedded processor) for performing the operation, or by executing one or more software programs stored in memory, It may mean a generic-purpose processor (eg, a CPU or an application processor) capable of performing corresponding operations.

본 명세서에서 '제1 자연어 이해 모델'은 음성 신호로부터 변환된 텍스트를 해석하여, 텍스트에 대응하는 제1 인텐트를 획득하도록 학습된 모델이다. 제1 자연어 이해 모델은 텍스트가 입력되면 사용자가 의도하는 동작을 수행할 디바이스 타입을 결정하도록 학습된 모델일 수 있다. 제1 자연어 이해 모델은 입력된 텍스트를 해석함으로써 제1 인텐트를 결정할 수 있으며, 제1 인텐트는 디바이스 타입을 결정하는데 이용될 수 있다. 또한, 제1 자연어 이해 모델은 입력된 텍스트를 해석함으로써 타겟 디바이스를 결정하는 데 이용될 수 있다.In the present specification, the'first natural language understanding model' is a model trained to obtain a first intent corresponding to the text by analyzing the text converted from the speech signal. The first natural language understanding model may be a model trained to determine a device type to perform an operation intended by the user when text is input. The first natural language understanding model may determine a first intent by interpreting the input text, and the first intent may be used to determine a device type. Further, the first natural language understanding model may be used to determine a target device by interpreting the input text.

본 명세서에서 '제2 자연어 이해 모델'은 특정 타입의 디바이스와 관련된 텍스트를 해석하기 위하여 학습된 인공지능 모델이다. 본 명세서에서 제2 자연어 이해 모델을 복수 개이며, 복수의 제2 자연어 이해 모델 각각은 서로 다른 복수의 디바이스 타입에 대응된다. 제1 자연어 이해 모델을 통해 디바이스 타입이 결정되면, 복수의 제2 자연어 이해 모델 중 디바이스 타입에 대응하는 제2 자연어 이해 모델이 선택된다. 선택된 제2 자연어 이해 모델에 음성 신호로부터 변환된 텍스트가 입력된다. 이 때, 입력되는 텍스트는, 음성 신호로부터 변환된 텍스트의 일부일 수도 있다. 제2 자연어 이해 모델은 입력된 텍스트를 해석함으로써 사용자가 의도하는 동작과 관련된 제2 인텐트 및 파라미터들을 결정하도록 학습된 모델일 수 있다. 제2 자연어 이해 모델은 텍스트가 입력되면 특정 디바이스의 타입과 관련된 기능을 결정하도록 학습된 모델일 수 있다. 복수 개의 제2 자연어 이해 모델의 저장 용량은 제1 자연어 이해 모델의 저장 용량에 비해 클 수 있다. In the present specification, the'second natural language understanding model' is an artificial intelligence model learned to analyze text related to a specific type of device. In the present specification, there are a plurality of second natural language understanding models, and each of the plurality of second natural language understanding models corresponds to a plurality of different device types. When the device type is determined through the first natural language understanding model, a second natural language understanding model corresponding to the device type is selected from among the plurality of second natural language understanding models. Text converted from the speech signal is input to the selected second natural language understanding model. In this case, the input text may be a part of the text converted from the voice signal. The second natural language understanding model may be a model trained to determine second intents and parameters related to an operation intended by the user by analyzing the input text. The second natural language understanding model may be a model trained to determine a function related to a specific device type when text is input. The storage capacity of the plurality of second natural language understanding models may be larger than the storage capacity of the first natural language understanding model.

본 명세서에서 '인텐트'는 텍스트를 해석하여 판단되는 사용자의 의도를 나타내는 정보이다. 인텐트는 사용자의 발화 의도를 나타내는 정보로, 사용자가 요청한 타겟 디바이스의 동작을 나타내는 정보일 수 있다. 인텐트는 자연어 이해 모델(Natural Language Understanding, NLU) 모델을 이용하여 텍스트를 해석함으로써 결정될 수 있다. 예를 들어, 사용자의 음성 입력으로부터 변환된 텍스트가 "TV에서 영화 어벤져스 틀어줘"인 경우, 인텐트는 "컨텐트 재생"일 수 있다. 다른 예를 들어, 사용자의 음성 입력으로부터 변환된 텍스트가 "에어컨 온도를 18°C로 내려줘"인 경우, 인텐트는 "온도 제어"일 수 있다. In this specification, the'intent' is information indicating the intention of the user determined by interpreting the text. The intent is information indicating the user's intention to speak, and may be information indicating the operation of the target device requested by the user. The intent may be determined by interpreting the text using a natural language understanding (NLU) model. For example, if the text converted from the user's voice input is "Play Movie Avengers on TV", the intent may be "Play content". For another example, when the text converted from the user's voice input is "Turn down the air conditioner temperature to 18 °C", the intent may be "temperature control".

인텐트는, 사용자의 발화 의도를 나타내는 정보(이하, 의도 정보)뿐 아니라, 사용자의 의도를 나타내는 정보에 대응하는 수치값을 포함할 수 있다. 수치값은, 텍스트가 특정 의도를 나타내는 정보와 관련될 확률을 나타낼 수 있다. 자연어 이해 모델을 이용하여 텍스트를 해석한 결과, 사용자의 의도를 나타내는 정보가 복수개 획득되는 경우, 각 의도 정보에 대응되는 수치값이 최대인 의도 정보가 인텐트로 결정될 수 있다. The intent may include not only information indicating the user's utterance intention (hereinafter, intention information), but also a numerical value corresponding to information indicating the user's intention. The numerical value may indicate the probability that the text is associated with information indicating a specific intent. When a plurality of pieces of information representing the user's intention are obtained as a result of analyzing the text using the natural language understanding model, intention information having a maximum numerical value corresponding to each intention information may be determined as the intent.

'제1 인텐트'는 텍스트에 포함된 사용자의 발화 의도를 나타내는 정보로서, 복수의 타겟 디바이스 타입 중 적어도 하나의 타입을 결정하는 데 사용될 수 있다. 제1 인텐트는 제1 자연어 이해 모델을 이용하여 텍스트를 분석함으로써 결정될 수 있다. The'first intent' is information indicating the user's speech intention included in the text, and may be used to determine at least one type of a plurality of target device types. The first intent may be determined by analyzing the text using the first natural language understanding model.

'제2 인텐트'는 텍스트에 포함된 사용자의 발화 의도를 나타내는 정보로서, 특정 타입의 디바이스가 수행할 동작을 결정하는 데 사용될 수 있다. 또한, 제2 자연어 이해 모델은 텍스트를 해석함으로써 사용자의 음성 입력과 관련된 디바이스의 동작을 결정할 수 있도록 학습된 모델일 수 있다. 제2 인텐트는 제2 자연어 이해 모델을 이용하여 텍스트를 분석함으로써 결정될 수 있다. The'second intent' is information indicating the user's speech intention included in the text, and may be used to determine an operation to be performed by a specific type of device. In addition, the second natural language understanding model may be a model trained to determine an operation of a device related to a user's voice input by analyzing text. The second intent may be determined by analyzing the text using the second natural language understanding model.

본 명세서에서 '파라미터'는 인텐트와 관련된 타겟 디바이스의 세부 동작 들을 결정하기 위한 변수(variable) 정보를 의미한다. 파라미터는 인텐트와 관련된 정보이며, 하나의 인텐트에 복수 종류의 파라미터가 대응될 수 있다. 파라미터는 타겟 디바이스의 동작 정보를 결정하기 위한 변수 정보 뿐만 아니라, 텍스트가 그 변수 정보와 관련될 확률을 나타내는 수치값을 포함할 수 있다. 제2 자연어 이해 모델을 이용하여 텍스트를 해석한 결과, 파라미터를 나타내는 변수 정보가 복수개 획득될 수 있다. 이 경우, 각 변수 정보에 대응되는 수치값이 최대인 변수 정보가 파라미터로 결정될 수 있다. 예를 들어, 사용자의 음성 입력으로부터 변환된 텍스트가 "영화 어벤져스 틀어줘"인 경우, 인텐트는 '컨텐트 재생(play)'이고, 파라미터는 재생할 컨텐츠의 장르인 '영화' 및/또는 재생할 컨텐츠의 타이틀인 '어벤져스'일 수 있다. In the present specification,'parameter' means variable information for determining detailed operations of a target device related to an intent. The parameter is information related to the intent, and a plurality of types of parameters may correspond to one intent. The parameter may include not only variable information for determining operation information of the target device, but also a numerical value indicating a probability that the text is related to the variable information. As a result of analyzing the text using the second natural language understanding model, a plurality of variable information indicating parameters may be obtained. In this case, variable information having a maximum numerical value corresponding to each variable information may be determined as a parameter. For example, if the text converted from the user's voice input is "Play Movie Avengers", the intent is'play content', and the parameter is'movie' which is the genre of the content to be played and/or the content to be played. It may be the title of'Avengers'.

본 명세서에서 '액션 플랜 관리 모델'은 타겟 디바이스가 수행할 세부 동작들 및 세부 동작들의 실행 순서를 생성하기 위하여 디바이스의 세부 동작에 관련된 동작 정보를 관리하는 모델일 수 있다. 액션 플랜 관리 모델은, 디바이스 타입 별로 디바이스의 세부 동작들 및 세부 동작들 간의 관계에 관한 동작 정보를 관리할 수 있다. 액션 플랜 관리 모델은, 텍스트로부터 출력된 제2 인텐트 및 파라미터에 기초하여, 디바이스가 수행할 세부 동작들 및 세부 동작들의 실행 순서를 플래닝(planning)할 수 있다.In the present specification, the'action plan management model' may be a model for managing operation information related to a detailed operation of a device in order to generate detailed operations to be performed by the target device and an execution order of the detailed operations. The action plan management model may manage detailed operations of a device for each device type and operation information regarding a relationship between the detailed operations. The action plan management model may plan detailed operations to be performed by the device and an execution order of detailed operations based on the second intent and parameters output from the text.

본 명세서에서, 디바이스의 동작은, 디바이스에서 특정 기능을 실행함으로써, 디바이스가 수행하는 적어도 하나의 액션을 의미할 수 있다. 동작은 디바이스에서 애플리케이션을 실행함으로써, 디바이스가 수행하는 적어도 하나의 액션을 나타낼 수 있다. 동작은 예를 들어, 디바이스가 애플리케이션의 실행을 통해 수행하는 동영상 재생(play), 음악 재생, 이메일 작성, 날씨 정보 수신, 뉴스 정보 표시, 게임 실행 및 사진 촬영 등을 나타낼 수 있다. 다만, 동작이 전술한 예시로 한정되지는 않는다.In this specification, an operation of a device may mean at least one action performed by the device by executing a specific function in the device. The operation may represent at least one action performed by the device by executing an application on the device. The operation may represent, for example, playing a video, playing music, writing an email, receiving weather information, displaying news information, executing a game, taking a picture, and the like performed by the device through execution of an application. However, the operation is not limited to the above-described example.

디바이스의 동작은 액션 플랜 관리 모델에서 출력한 세부 동작에 관한 정보에 기초하여 수행될 수 있다. 디바이스는, 액션 플랜 관리 모델에서 출력한 세부 동작에 대응하는 기능을 실행함으로써, 적어도 하나의 액션을 수행할 수 있다. 디바이스는, 세부 동작에 대응하는 기능을 실행하기 위한 명령어를 저장할 수 있으며, 세부 동작이 결정되면 세부 동작에 대응하는 명령어를 결정하여 명령어를 실행함으로써 특정 기능을 실행할 수 있다.The operation of the device may be performed based on information on detailed operations output from the action plan management model. The device may perform at least one action by executing a function corresponding to the detailed operation output from the action plan management model. The device may store a command for executing a function corresponding to a detailed operation, and when a detailed operation is determined, the device may execute a specific function by determining a command corresponding to the detailed operation and executing the command.

또한, 디바이스는, 세부 동작에 대응하는 애플리케이션을 실행하기 위한 명령어를 저장할 수 있다. 애플리케이션을 실행하기 위한 명령어는, 애플리케이션 자체를 실행하기 위한 명령어 및 애플리케이션을 구성하는 세부 기능을 실행하기 위한 명령어를 포함할 수 있다. 디바이스는 세부 동작이 결정되면 세부 동작에 대응하는 애플리케이션을 실행하기 위한 명령어를 실행함으로써 애플리케이션을 실행하고, 세부 동작에 대응하는 애플리케이션의 세부 기능을 실행하기 위한 명령어를 실행함으로써 세부 기능을 실행할 수 있다.Also, the device may store a command for executing an application corresponding to a detailed operation. The instructions for executing the application may include instructions for executing the application itself and instructions for executing detailed functions constituting the application. When a detailed operation is determined, the device may execute an application by executing a command for executing an application corresponding to the detailed operation, and execute a detailed function by executing a command for executing a detailed function of the application corresponding to the detailed operation.

본 명세서에서 '동작 정보'는, 디바이스가 수행할 세부 동작들, 각 세부 동작들과 다른 세부 동작과의 연관 관계, 및 세부 동작들의 실행 순서에 관련된 정보일 수 있다. 각 세부 동작과 다른 세부 동작과의 연관 관계는, 하나의 동작을 실행하기 위해서 그 동작을 실행하기 전에 필수적으로 실행되어야 할 다른 동작에 대한 정보를 포함한다. 예를 들어, 수행할 동작이 "음악 재생"인 경우, "전원 온(on)"은 "음악 재생" 동작 이전에 필수적으로 실행되어야 하는 다른 세부 동작이 될 수 있다. 동작 정보는 예를 들어, 특정 동작의 수행을 위하여 타겟 디바이스가 실행해야 할 기능들, 기능들의 실행 순서, 기능들을 실행하기 위하여 필요한 입력 값 및 기능들의 실행 결과로서 출력되는 출력 값을 포함할 수 있으나, 이에 한정되지 않는다.In this specification,'action information' may be information related to detailed operations to be performed by the device, a relationship between each detailed operation and other detailed operations, and an execution order of the detailed operations. The association relationship between each detailed operation and another detailed operation includes information about another operation that must be executed before executing the operation in order to execute one operation. For example, when the operation to be performed is “music playback”, “power on” may be another detailed operation that must be essentially executed before the “music playback” operation. The operation information may include, for example, functions to be executed by the target device in order to perform a specific operation, an execution order of functions, an input value necessary to execute the functions, and an output value output as a result of execution of the functions. , Is not limited thereto.

IoT 클라우드 서버는, 복수의 디바이스 각각에 관한 디바이스 정보를 획득하고, 저장하고, 관리하는 서버이다. IoT 클라우드 서버는 저장된 디바이스 정보를 활용하여 디바이스를 제어할 수 있는 제어 명령을 획득, 결정 또는 생성할 수 있다. IoT 클라우드 서버는, 동작 정보에 기초하여 동작을 수행하도록 결정된 디바이스에 제어 명령을 전송할 수 있다. IoT 클라우드 서버는 제어 명령에 따른 동작 수행 결과를, 동작을 수행한 디바이스로부터 수신할 수 있다. IoT 클라우드 서버는 본 명세서에 기재된 '서버'와는 독립된 하드웨어 장치로 구성될 수 있지만, 이에 한정되는 것은 아니다. IoT 클라우드 서버는 본 명세서의 '서버'의 일 구성 요소이거나, 또는 소프트웨어로 구분되도록 설계된 서버일 수 있다. The IoT cloud server is a server that acquires, stores, and manages device information for each of a plurality of devices. The IoT cloud server may acquire, determine, or generate a control command capable of controlling a device using stored device information. The IoT cloud server may transmit a control command to a device determined to perform an operation based on the operation information. The IoT cloud server may receive a result of performing the operation according to the control command from the device that performed the operation. The IoT cloud server may be configured as a hardware device independent from the'server' described herein, but is not limited thereto. The IoT cloud server may be a component of the'server' of the present specification, or may be a server designed to be classified by software.

아래에서는 첨부한 도면을 참고하여 본 개시의 실시예에 대하여 본 개시가 속하는 기술 분야에서 통상의 지식을 가진 자가 용이하게 실시할 수 있도록 상세히 설명한다. 그러나 본 개시는 여러 가지 상이한 형태로 구현될 수 있으며 여기에서 설명하는 실시 예에 한정되지 않는다.Hereinafter, exemplary embodiments of the present disclosure will be described in detail with reference to the accompanying drawings so that those of ordinary skill in the art may easily implement the embodiments. However, the present disclosure may be implemented in various different forms and is not limited to the exemplary embodiments described herein.

이하에서는 도면을 참조하여 본 개시의 실시예들을 상세하게 설명한다. Hereinafter, embodiments of the present disclosure will be described in detail with reference to the drawings.

도 1은 클라이언트 디바이스(110), 복수의 디바이스(121 내지 127) 및 서버(300)를 포함하는 네트워크 환경을 도시한 도면이다.1 is a diagram illustrating a network environment including a client device 110, a plurality of devices 121 to 127, and a server 300.

도 1을 참조하면, 클라이언트 디바이스(110), 복수의 디바이스(121 내지 127), 서버(300), 및 IoT 클라우드 서버(400)는 유선 통신 또는 무선 통신 방식으로 상호 연결되고, 통신을 수행할 수 있다. 일 실시예에서, 클라이언트 디바이스(110)와 복수의 디바이스(121 내지 127)는 상호 간 통신망을 통해 직접 연결될 수 있지만, 이에 한정되는 것은 아니다. 클라이언트 디바이스(110) 및 복수의 디바이스(121 내지 127)는 서버(300)와 연결될 수 있으며, 클라이언트 디바이스(110)은 서버를 통해 복수의 디바이스(121 내지 127)과 연결될 수 있다. 또한, 클라이언트 디바이스(110)와 복수의 디바이스(121 내지 127)는 IoT 클라우드 서버(400)와 연결될 수 있다. 다른 실시예에서, 클라이언트 디바이스(110)와 복수의 디바이스(121 내지 127) 각각은 통신망을 통해 서버(300)와 연결되고, 서버(300)를 통해 외부의 IoT 클라우드 서버(400)와 연결될 수 있다. 또 다른 실시예에서, 클라이언트 디바이스(110) 및 복수의 디바이스(121 내지 127)는 게이트웨이(Gateway), 또는 중계기(relay)를 통해 연결될 수 있다. Referring to FIG. 1, a client device 110, a plurality of devices 121 to 127, a server 300, and an IoT cloud server 400 are interconnected by wired communication or wireless communication, and may perform communication. have. In one embodiment, the client device 110 and the plurality of devices 121 to 127 may be directly connected to each other through a communication network, but are not limited thereto. The client device 110 and the plurality of devices 121 to 127 may be connected to the server 300, and the client device 110 may be connected to the plurality of devices 121 to 127 through the server. In addition, the client device 110 and the plurality of devices 121 to 127 may be connected to the IoT cloud server 400. In another embodiment, each of the client device 110 and the plurality of devices 121 to 127 may be connected to the server 300 through a communication network, and may be connected to an external IoT cloud server 400 through the server 300. . In another embodiment, the client device 110 and the plurality of devices 121 to 127 may be connected through a gateway or a relay.

클라이언트 디바이스(110), 복수의 디바이스(121 내지 127), 서버(300) 및 IoT 클라우드 서버(400)는 근거리 통신망(Local Area Network; LAN), 광역 통신망(Wide Area Network; WAN), 부가가치 통신망(Value Added Network; VAN), 이동 통신망(mobile radio communication network), 위성 통신망 또는 이들의 상호 조합을 통해 연결될 수 있다. 무선 통신 방법은 예를 들어, 무선 랜(Wi-Fi), 블루투스, 블루투스 저 에너지(Bluetooth low energy), 지그비, WFD(Wi-Fi Direct), UWB(ultra wideband), 적외선 통신(IrDA, infrared Data Association), NFC(Near Field Communication) 등이 있을 수 있으나, 이에 한정되는 것은 아니다.The client device 110, a plurality of devices 121 to 127, the server 300 and the IoT cloud server 400 include a local area network (LAN), a wide area network (WAN), and a value-added communication network ( Value Added Network (VAN), a mobile radio communication network, a satellite communication network, or a combination thereof. Wireless communication methods include, for example, wireless LAN (Wi-Fi), Bluetooth, Bluetooth low energy, Zigbee, WFD (Wi-Fi Direct), UWB (ultra wideband), infrared communication (IrDA, infrared data). Association), NFC (Near Field Communication), and the like, but are not limited thereto.

일 실시예에서, 클라이언트 디바이스(110)는 사용자의 음성 입력을 수신할 수 있다. 복수의 디바이스(121 내지 127) 중 적어도 하나는 서버(300) 및/또는 IoT 클라우드 서버(400)의 제어 명령을 받아 특정 동작을 수행하는 타겟 디바이스일 수 있다. 복수의 디바이스(121 내지 127) 중 적어도 하나는, 클라이언트 디바이스(100)가 수신한 사용자의 음성 입력에 기반하여, 특정 동작을 수행하도록 제어될 수 있다. 일 실시예에서, 복수의 디바이스(121 내지 127) 중 적어도 하나는, 서버(300) 및/또는 IoT 클라우드 서버(400)로부터 제어 명령을 받지 않고, 클라이언트 디바이스(110)로부터 제어 명령을 수신할 수 있다.In one embodiment, the client device 110 may receive a user's voice input. At least one of the plurality of devices 121 to 127 may be a target device that performs a specific operation by receiving a control command from the server 300 and/or the IoT cloud server 400. At least one of the plurality of devices 121 to 127 may be controlled to perform a specific operation based on a user's voice input received by the client device 100. In one embodiment, at least one of the plurality of devices 121 to 127 may receive a control command from the client device 110 without receiving a control command from the server 300 and/or the IoT cloud server 400 have.

클라이언트 디바이스(110)는 사용자로부터 음성 입력(예를 들어, 발화)을 수신할 수 있다. 일 실시예에서, 클라이언트 디바이스(110)는 음성 인식 모듈을 포함할 수 있다. 일 실시예에서, 클라이언트 디바이스(110)는 제한적인 기능을 갖는 음성 인식 모듈을 포함할 수 있다. 예를 들어, 클라이언트 디바이스(110)는 지정된 음성 입력(예를 들어, '하이 빅스비', '오케이 구글'등과 같은 웨이크 업 입력)을 감지하는 기능 또는 일부 음성 입력으로부터 획득한 음성 신호를 전처리하는 기능을 갖는 음성 인식 모듈을 포함할 수 있다. 도 1에서, 클라이언트 디바이스(110)는 인공지능 스피커(AI speaker)로 도시되었지만, 이에 한정되는 것은 아니다. 일 실시예에서, 복수의 디바이스(121 내지 127) 중 어느 하나의 디바이스가 클라이언트 디바이스(110)일 수 있다. The client device 110 may receive a voice input (eg, speech) from a user. In one embodiment, the client device 110 may include a voice recognition module. In one embodiment, the client device 110 may include a speech recognition module with limited functionality. For example, the client device 110 has a function of detecting a designated voice input (for example, a wake-up input such as'Hi Bixby','OK Google', etc.) or preprocessing a voice signal obtained from some voice inputs. It may include a speech recognition module having a function. In FIG. 1, the client device 110 is illustrated as an AI speaker, but is not limited thereto. In an embodiment, any one of the plurality of devices 121 to 127 may be the client device 110.

클라이언트 디바이스(110)는 마이크를 통해 사용자의 음성 입력을 수신하고, 수신된 음성 입력을 서버(300)에 전송할 수 있다. 일 실시예에서, 클라이언트 디바이스(110)는 수신된 음성 입력으로부터 음성 신호를 획득하고, 음성 신호를 서버(300)에게 전송할 수 있다. The client device 110 may receive a user's voice input through a microphone and transmit the received voice input to the server 300. In an embodiment, the client device 110 may obtain a voice signal from the received voice input and transmit the voice signal to the server 300.

도 1에 도시된 실시예에서, 복수의 디바이스(121 내지 127)는 전등(121), 에어컨(122), TV(123), 로봇 청소기(124), 세탁기(125), 체중계(126) 및 냉장고(127)를 포함하지만, 이에 한정되지 않는다. 예를 들어, 복수의 디바이스(121 내지 127)는 스마트폰(smartphone), 태블릿 PC(tablet personal computer), 이동 전화기(mobile phone), 영상 전화기, 전자책 리더기(e-book reader), 데스크탑 PC(desktop personal computer), 랩탑 PC(laptop personal computer), 넷북 컴퓨터(netbook computer), 워크스테이션(workstation), 서버, PDA(personal digital assistant), PMP(portable multimedia player), MP3 플레이어, 모바일 의료기기, 카메라(camera), 또는 웨어러블 장치(wearable device) 중 적어도 하나를 포함할 수 있다. 일 실시예에서, 복수의 디바이스(121 내지 127)는 가전 제품(home appliance)일 수 있다. 가전 제품은, 예를 들면, 텔레비전, DVD(digital video disk) 플레이어, 오디오, 냉장고, 에어컨, 청소기, 오븐, 전자레인지, 세탁기, 공기 청정기, 셋톱 박스(set-top box), 홈 오토매이션 컨트롤 패널(home automation control panel), 보안 컨트롤 패널(security control panel), 게임 콘솔, 전자 키, 캠코더(camcorder), 또는 전자 액자 중 적어도 하나를 포함할 수 있다.In the embodiment shown in FIG. 1, the plurality of devices 121 to 127 are a light 121, an air conditioner 122, a TV 123, a robot cleaner 124, a washing machine 125, a weight scale 126, and a refrigerator. (127), but is not limited thereto. For example, the plurality of devices 121 to 127 include a smartphone, a tablet personal computer, a mobile phone, a video phone, an e-book reader, and a desktop PC ( desktop personal computer), laptop PC (laptop personal computer), netbook computer, workstation, server, personal digital assistant (PDA), portable multimedia player (PMP), MP3 player, mobile medical device, camera It may include at least one of (camera) or a wearable device. In one embodiment, the plurality of devices 121 to 127 may be home appliances. Home appliances include, for example, television, digital video disk (DVD) player, audio, refrigerator, air conditioner, vacuum cleaner, oven, microwave oven, washing machine, air cleaner, set-top box, and home automation control. It may include at least one of a home automation control panel, a security control panel, a game console, an electronic key, a camcorder, or an electronic frame.

서버(300)는 수신된 음성 신호에 기초하여, 사용자가 의도하는 동작을 수행할 타겟 디바이스의 타입(type)을 결정할 수 있다. 서버(300)는 클라이언트 디바이스(110)로부터 아날로그 신호인 음성 신호를 수신하고, ASR(Automatic Speech Recognition)을 수행하여 음성 부분을 컴퓨터로 판독 가능한 텍스트로 변환할 수 있다. 서버(300)는 제1 자연어 이해(Natural Language Understanding, NLU) 모델을 이용하여 변환된 텍스트를 해석하고, 해석 결과에 기초하여 타겟 디바이스의 타입을 결정할 수 있다.The server 300 may determine a type of a target device to perform an operation intended by the user based on the received voice signal. The server 300 may receive a voice signal, which is an analog signal, from the client device 110 and convert the voice part into computer-readable text by performing Automatic Speech Recognition (ASR). The server 300 may analyze the converted text using a first natural language understanding (NLU) model and determine the type of the target device based on the analysis result.

서버(300)는, 결정된 타겟 디바이스의 타입에 대응하는 제2 자연어 이해 모델을 이용하여 사용자가 요청한 타겟 디바이스에서 수행하고자 하는 동작을 판단할 수 있다.The server 300 may determine an operation to be performed in the target device requested by the user by using the second natural language understanding model corresponding to the determined type of the target device.

서버(300)는 IoT 클라우드 서버(400)로부터 복수의 디바이스(121 내지 127)의 정보를 수신할 수 있다. 서버(300)는 수신한 복수의 디바이스(121 내지 127) 의 정보 및 결정된 타겟 디바이스의 타입을 이용하여 타겟 디바이스를 결정할 수 있다. 또한, 서버(300)는, IoT 클라우드 서버(400)을 통하여, 타겟 디바이스가 판단된 동작을 실행할 수 있도록 타겟 디바이스를 제어할 수 있다. 서버(300)의 동작에 관해서는 도 4 내지 도 9에서 구체적으로 설명하기로 한다. The server 300 may receive information on a plurality of devices 121 to 127 from the IoT cloud server 400. The server 300 may determine a target device using the received information of the plurality of devices 121 to 127 and the determined target device type. In addition, the server 300 may control the target device through the IoT cloud server 400 so that the target device may execute the determined operation. The operation of the server 300 will be described in detail with reference to FIGS. 4 to 9.

IoT 클라우드 서버(400)는 네트워크를 통해 연결된 기등록된 복수의 디바이스(121 내지 127)에 관한 정보를 저장할 수 있다. 일 실시예에서, IoT 클라우드 서버(400)는 복수의 디바이스(121 내지 127)의 식별 값(예: 디바이스 id 정보), 복수의 디바이스(121 내지 127) 각각의 디바이스 타입, 및 복수의 디바이스(121 내지 127) 각각의 기능 수행 능력 정보(capability) 중 적어도 하나를 저장할 수 있다. 일 실시예에서, IoT 클라우드 서버(400)는 복수의 디바이스(121 내지 127) 각각의 전원 온오프(on/off), 또는 실행하고 있는 동작에 관한 상태 정보를 저장할 수도 있다. The IoT cloud server 400 may store information on a plurality of pre-registered devices 121 to 127 connected through a network. In one embodiment, the IoT cloud server 400 includes identification values (eg, device ID information) of a plurality of devices 121 to 127, a device type of each of the plurality of devices 121 to 127, and a plurality of devices 121 To 127) at least one of respective function performance capability information (capability) may be stored. In an embodiment, the IoT cloud server 400 may store power on/off of each of the plurality of devices 121 to 127 or state information regarding an operation being executed.

IoT 클라우드 서버(400)는, 판단된 동작을 실행하기 위한 제어 명령을 복수의 디바이스(121 내지 127) 중 타겟 디바이스로 전송할 수 있다. IoT 클라우드 서버(400)는, 서버(300)로부터 결정된 타겟 디바이스에 대한 정보 및 판단된 동작에 대한 정보를 수신하고, 수신한 정보에 기반하여 타겟 디바이스로 제어 명령을 전송할 수 있다.The IoT cloud server 400 may transmit a control command for executing the determined operation to a target device among the plurality of devices 121 to 127. The IoT cloud server 400 may receive information on the determined target device and information on the determined operation from the server 300, and transmit a control command to the target device based on the received information.

도 2a 및 도 2b는 본 개시의 서버(300)에서 실행 가능한 음성비서(200)의 실시예를 도시한 도면이다.2A and 2B are diagrams illustrating an embodiment of a voice assistant 200 executable in the server 300 of the present disclosure.

도 2a 및 도 2b를 참조하면, 음성비서(200)는, 소프트웨어로 구현될 수 있다. 음성비서(200)는 사용자의 음성 입력으로부터 사용자의 의도를 결정하고, 사용자의 의도와 관련된 타겟 디바이스를 제어하도록 구성될 수 있다. 음성비서(200)는, 음성비서(200)를 통해 제어되는 디바이스가 추가되었을 때, 학습 등을 통해 기존 모델을 새로운 모델로 갱신하도록 구성된 제1 어시스턴트 모델(200a), 및 추가된 디바이스에 대응하는 모델을 기존 모델에 추가하도록 구성된 제2 어시스턴트 모델(200b)을 포함할 수 있다. 2A and 2B, the voice assistant 200 may be implemented in software. The voice assistant 200 may be configured to determine a user's intention from the user's voice input and control a target device related to the user's intention. When a device controlled through the voice assistant 200 is added, the voice assistant 200 includes a first assistant model 200a configured to update an existing model to a new model through learning, etc., and corresponding to the added device. It may include a second assistant model 200b configured to add the model to the existing model.

제1 어시스턴트 모델 (200a)은, 사용자 음성 입력을 분석하여 사용자 의도와 관련된 타겟 디바이스를 결정하는 모델이다. 제1 어시스턴트 모델(200a)은, ASR 모델(202), NLG 모델(204), 제1 자연어 이해 모델(300a), 및 디바이스 디스패쳐 모델(310)을 포함할 수 있다. 일 실시예에서, 디바이스 디스패쳐 모델(310)은 제1 자연어 이해 모델(300a)을 포함할 수 있다. 또 다른 실시예에서, 디바이스 디스패쳐 모델(310)과 제1 자연어 이해 모델(300a)을 별도의 구성 요소로 구성될 수 있다. 디바이스 디스패쳐 모델(310)은 제1 자연어 이해 모델(300a)의 분석 결과를 이용하여 타겟 디바이스를 결정하는 동작을 수행하기 위한 모델이다. 디바이스 디스패쳐 모델(310)은 복수 개의 세부 모델을 포함할 수 있다. The first assistant model 200a is a model for determining a target device related to a user intention by analyzing a user voice input. The first assistant model 200a may include an ASR model 202, an NLG model 204, a first natural language understanding model 300a, and a device dispatcher model 310. In an embodiment, the device dispatcher model 310 may include a first natural language understanding model 300a. In another embodiment, the device dispatcher model 310 and the first natural language understanding model 300a may be configured as separate components. The device dispatcher model 310 is a model for determining a target device by using the analysis result of the first natural language understanding model 300a. The device dispatcher model 310 may include a plurality of detailed models.

제2 어시스턴트 모델(200b)은, 특정 디바이스에 특화된 모델로, 사용자의 음성 입력에 대응하는 타겟 디바이스가 수행할 동작을 결정하는 모델이다. 도 2a에서 제2 어시스턴트 모델(200b)은, 복수의 제2 자연어 이해 모델(300b), NLG 모델(206), 및 액션 플랜 관리 모델(210)을 포함할 수 있다. 복수의 자연어 이해 모델(300b)은 서로 다른 복수의 디바이스에 각각 대응될 수 있다. The second assistant model 200b is a model specialized for a specific device and is a model that determines an operation to be performed by a target device corresponding to a user's voice input. In FIG. 2A, the second assistant model 200b may include a plurality of second natural language understanding models 300b, an NLG model 206, and an action plan management model 210. The plurality of natural language understanding models 300b may respectively correspond to a plurality of different devices.

도 2b를 참조하면, 제2 어시스턴트 모델(200b)은, 복수의 액션 플랜 관리 모델과 복수의 NLG 모델을 포함할 수 있다. 도 2b에서, 제2 어시스턴트 모델(200b)에 포함된 복수의 제2 자연어 이해 모델 각각은 도2a의 제2 자연어 이해 모델(300b)에 대응되고, 제2 어시스턴트 모델(200b)에 포함된 복수의 NLG 모델 각각은 도2a의 NLG 모델(206)에 대응되며, 제2 어시스턴트 모델(200b)에 포함된 복수의 액션 플랜 관리 모델 각각은 도2a의 액션 플랜 관리 모듈(210)에 대응될 수 있다.Referring to FIG. 2B, the second assistant model 200b may include a plurality of action plan management models and a plurality of NLG models. In FIG. 2B, each of the plurality of second natural language understanding models included in the second assistant model 200b corresponds to the second natural language understanding model 300b of FIG. 2A, and includes a plurality of second natural language understanding models included in the second assistant model 200b. Each of the NLG models corresponds to the NLG model 206 of FIG. 2A, and each of the plurality of action plan management models included in the second assistant model 200b may correspond to the action plan management module 210 of FIG. 2A.

도 2b에서, 복수의 액션 플랜 관리 모델 각각은 복수의 제2 자연어 이해 모델 각각에 대응되도록 구성될 수 있다. 또한, 복수의 NLG 모델 각각은 복수의 제2 자연어 이해 모델 각각에 대응되도록 구성될 수 있다. 다른 실시예에서, 하나의 NLG 모델이 복수의 제2 자연어 이해 모델에 대응될 수 있으며, 하나의 액션 플랜 관리 모델이 복수의 제2 자연어 이해 모델에 대응되도록 구성될 수 있다. In FIG. 2B, each of the plurality of action plan management models may be configured to correspond to each of the plurality of second natural language understanding models. In addition, each of the plurality of NLG models may be configured to correspond to each of the plurality of second natural language understanding models. In another embodiment, one NLG model may correspond to a plurality of second natural language understanding models, and one action plan management model may be configured to correspond to a plurality of second natural language understanding models.

도 2b에서, 제1 자연어 이해 모델(300a)은, 음성비서(200)를 통해 제어되는 디바이스가 추가되었을 때 학습 등을 통해 새로운 모델로 갱신되도록 구성될 수 있다. 또한, 디바이스 디스패쳐 모델(310)이 제1 자연어 이해 모델(300a)을 포함하도록 구성된 경우, 디바이스 디스패쳐 모델(310)은 음성비서(200)를 통해 제어되는 디바이스가 추가되었을 때 학습 등을 통해 기존 모델 전체가 새로운 모델로 갱신되도록 구성될 수 있다. 제1 자연어 이해 모델(300a) 또는 디바이스 디스패쳐 모델(310)은 인공지능 모델일 수 있다.In FIG. 2B, when a device controlled through the voice assistant 200 is added, the first natural language understanding model 300a may be configured to be updated to a new model through learning or the like. In addition, when the device dispatcher model 310 is configured to include the first natural language understanding model 300a, the device dispatcher model 310 is performed through learning when a device controlled through the voice assistant 200 is added. The entire existing model can be configured to be updated with a new model. The first natural language understanding model 300a or the device dispatcher model 310 may be an artificial intelligence model.

도 2b에서, 제2 어시스턴트 모델(200b)은, 음성비서(200)를 통해 제어되는 디바이스가 추가되었을 때 추가된 디바이스에 대응하는 제2 자연어 이해 모델, NLG 모델 및 액션 플랜 관리 모델을 기존 모델에 추가함으로써 업데이트될 수 있다. 제2 자연어 이해 모델, NLG 모델 및 액션 플랜 관리 모델은 룰 베이스 시스템(rule-based system)으로 구현되는 모델일 수 있다. 2B, the second assistant model 200b includes a second natural language understanding model, an NLG model, and an action plan management model corresponding to the added device when a device controlled through the voice assistant 200 is added to the existing model. It can be updated by adding. The second natural language understanding model, NLG model, and action plan management model may be models implemented with a rule-based system.

도 2b의 일 실시예에서, 제2 자연어 이해 모델, NLG 모델, 및 액션 플랜 관리 모델은 인공지능 모델일 수 있다. 제2 자연어 이해 모델, NLG 모델 및 액션 플랜 관리 모델은 각각 대응하는 디바이스에 따라 하나의 모듈로 관리될 수 있다. 이 경우, 제2 어시스턴트 모델(200-b)는 복수의 디바이스에 각각 대응하는 복수의 제2 어시스턴트 모델(200b-1, 200b-2, 200b-3)을 포함할 수 있다. 예를 들면, TV에 대응하는 제2 자연어 이해 모델, TV에 대응하는 NLG 모델 및 TV에 대응하는 액션 플랜 관리 모델은 TV에 대응하는 제2 어시스턴트 모델(200b-1)로 관리될 수 있다. 또한, 스피커에 대응하는 제2 자연어 이해 모델, 스피커에 대응하는 NLG 모델 및 스피커에 대응하는 액션 플랜 관리 모델은 스피커에 대응하는 제2 어시스턴트 모델(200b-2)로 관리될 수 있다. 또한, 냉장고에 대응하는 제2 자연어 이해 모델, 냉장고에 대응하는 NLG 모델 및 냉장고에 대응하는 액션 플랜 관리 모델은 냉장고에 대응하는 제2 어시스턴트 모델(200b-3)로 관리될 수 있다.In the embodiment of FIG. 2B, the second natural language understanding model, the NLG model, and the action plan management model may be an artificial intelligence model. The second natural language understanding model, the NLG model, and the action plan management model may be managed as one module according to each corresponding device. In this case, the second assistant model 200-b may include a plurality of second assistant models 200b-1, 200b-2, and 200b-3 respectively corresponding to a plurality of devices. For example, the second natural language understanding model corresponding to the TV, the NLG model corresponding to the TV, and the action plan management model corresponding to the TV may be managed by the second assistant model 200b-1 corresponding to the TV. In addition, the second natural language understanding model corresponding to the speaker, the NLG model corresponding to the speaker, and the action plan management model corresponding to the speaker may be managed as the second assistant model 200b-2 corresponding to the speaker. In addition, the second natural language understanding model corresponding to the refrigerator, the NLG model corresponding to the refrigerator, and the action plan management model corresponding to the refrigerator may be managed by the second assistant model 200b-3 corresponding to the refrigerator.

도 3은 본 개시의 서버(300)가 사용자의 음성 입력으로부터 사용자의 의도를 결정하고, 사용자의 의도와 관련에 타겟 디바이스를 제어하는 실시예를 도시한 개념도이다.3 is a conceptual diagram showing an embodiment in which the server 300 of the present disclosure determines a user's intention from a user's voice input and controls a target device in relation to the user's intention.

도 3을 참조하면, 클라이언트 디바이스(110)는 마이크를 통해 사용자로부터 음성 입력을 수신한다. 도 2에 도시된 실시예에서, 클라이언트 디바이스(110)는 인공 지능 스피커일 수 있으나, 이에 한정되는 것은 아니다. 클라이언트 디바이스(110)는 음성 인식 모듈을 포함할 수 있다. Referring to FIG. 3, the client device 110 receives a voice input from a user through a microphone. In the embodiment shown in FIG. 2, the client device 110 may be an artificial intelligence speaker, but is not limited thereto. The client device 110 may include a voice recognition module.

일 실시예에서, 클라이언트 디바이스(110)는 사용자로부터 "볼륨 올려줘"와 같이 볼륨을 증가시키는 동작을 수행할 타겟 디바이스의 명칭을 명시하지 않은 음성 입력을 수신할 수 있다. 다른 실시예에서, 클라이언트 디바이스(110)는 사용자로부터 "TV에서 보헤미안 랩소디 틀어줘~"와 같이 타겟 디바이스의 명칭을 포함하는 음성 입력을 수신할 수도 있다.In an embodiment, the client device 110 may receive a voice input from the user without specifying the name of the target device to perform an operation of increasing the volume, such as "Raise the volume." In another embodiment, the client device 110 may receive a voice input including the name of the target device, such as "Play Bohemian Rhapsody on TV" from the user.

클라이언트 디바이스(110)는 마이크를 통해 수신된 음성 입력으로부터 음성 신호를 획득하고, 획득된 음성 신호를 서버(300)로 전송한다. The client device 110 obtains a voice signal from a voice input received through a microphone, and transmits the obtained voice signal to the server 300.

서버(300)는 수신된 음성 신호에 기초하여 타겟 디바이스(123)를 결정하는 음성비서(200)의 기능 또는 동작들에 관한 명령어들(instructions)을 포함하는 프로그램 코드(program code), 애플리케이션(application), 알고리즘(algorithm), 루틴(routine), 명령어 세트(set of instructions), 자연어 이해 엔진, 또는 인공 지능 모델 중 어느 하나를 포함할 수 있다. The server 300 includes program code and application instructions including instructions on functions or operations of the voice assistant 200 for determining the target device 123 based on the received voice signal. ), an algorithm, a routine, a set of instructions, a natural language understanding engine, or an artificial intelligence model.

서버(300)는 ASR(Automatic Speech Recognition)을 수행함으로써, 클라이언트 디바이스(110)로부터 수신한 음성 신호를 텍스트로 변환한다. 일 실시예에서, 서버(300)는 음향 모델(acoustic model; AM) 또는 언어 모델(language model; LM) 등 기 정의된 모델을 이용하여 음성 신호를 컴퓨터로 판독 가능한 텍스트로 변환할 수 있다. The server 300 converts the speech signal received from the client device 110 into text by performing Automatic Speech Recognition (ASR). In an embodiment, the server 300 may convert a speech signal into a computer-readable text using a predefined model such as an acoustic model (AM) or a language model (LM).

서버(300)는 제1 자연어 이해 모델(제1 NLU)(300a)를 이용하여 텍스트를 해석함으로써, 제1 인텐트를 결정할 수 있다. 서버(300)는 결정된 제1 인텐트와 관련된 타겟 디바이스의 타입을 결정할 수 있다. The server 300 may determine the first intent by analyzing the text using the first natural language understanding model (first NLU) 300a. The server 300 may determine the type of the target device related to the determined first intent.

서버(300)는, 결정된 타겟 디바이스의 타입을 고려하여, 복수의 제2 자연어 이해 모델(제2 NLU)(300b) 중 타겟 디바이스의 타입에 대응하는 제2 자연어 이해 모델을 결정할 수 있다. 서버(300)는 복수의 제2 자연어 이해 모델(300b) 중 타겟 디바이스의 타입에 대응하는 제2 자연어 이해 모델(제2 NLU)를 이용하여 텍스트를 해석함으로써, 제2 인텐트를 결정할 수 있다. 이 때, 제2 자연어 이해 모델에 입력되는 텍스트는, 음성 신호로부터 변환된 텍스트의 적어도 일부일 수 있다. 일 실시예에서, 서버(300)는 제2 자연어 이해 모델을 이용하여, 텍스트로부터 제2 인텐트 및 파라미터를 결정할 수도 있다. The server 300 may determine a second natural language understanding model corresponding to the type of the target device from among the plurality of second natural language understanding models (second NLU) 300b in consideration of the determined type of the target device. The server 300 may determine the second intent by analyzing the text using a second natural language understanding model (second NLU) corresponding to the type of the target device among the plurality of second natural language understanding models 300b. In this case, the text input to the second natural language understanding model may be at least a part of the text converted from the speech signal. In an embodiment, the server 300 may determine the second intent and parameter from the text using the second natural language understanding model.

서버(300)는, IoT 클라우드 서버(400)로부터 복수의 디바이스(120)의 정보를 수신한다. 복수의 디바이스(120)는 사용자의 계정 정보와 관련하여 IoT 클라우드 서버(400)에 기 등록된 디바이스일 수 있다. The server 300 receives information on a plurality of devices 120 from the IoT cloud server 400. The plurality of devices 120 may be devices previously registered with the IoT cloud server 400 in relation to user account information.

서버(300)는 기 등록된 복수의 디바이스(120)에 관한 디바이스 정보를 IoT 클라우드 서버(400)로부터 수신할 수 있다. 일 실시예에서, 서버(300)는 복수의 디바이스(120)의 기능 수행 능력(capability) 정보, 위치 정보, 및 상태 정보 중 적어도 하나를 포함하는 디바이스 정보를 IoT 클라우드 서버(400)로부터 수신할 수 있다. 일 실시예에서, 서버(300)는 복수의 디바이스(120)의 전원 온오프(on/off) 여부 또는 현재 수행하고 있는 동작 정보를 포함하는 상태 정보를 IoT 클라우드 서버(400)로부터 수신할 수 있다. The server 300 may receive device information about a plurality of previously registered devices 120 from the IoT cloud server 400. In one embodiment, the server 300 may receive device information including at least one of capability information, location information, and status information of the plurality of devices 120 from the IoT cloud server 400. have. In an embodiment, the server 300 may receive status information including information on whether a plurality of devices 120 are powered on or off or operation information currently being performed from the IoT cloud server 400. .

서버(300)는 결정된 타겟 디바이스의 타입 및 IoT 클라우드 서버(400)로부터 수신된 디바이스 정보에 기초하여 타겟 디바이스를 결정할 수 있다. 서버(300)는 복수의 디바이스(120) 중 결정된 타입에 해당되는 복수의 후보 디바이스를 선택하고, 선택된 복수의 후보 디바이스의 상태 정보를 고려함으로써, 타겟 디바이스를 결정할 수 있다. 도 3에 도시된 실시예에서, 서버(300)는 제3 디바이스(123)를 타겟 디바이스로 결정할 수 있다. The server 300 may determine a target device based on the determined type of the target device and device information received from the IoT cloud server 400. The server 300 may determine a target device by selecting a plurality of candidate devices corresponding to the determined type among the plurality of devices 120 and considering state information of the selected plurality of candidate devices. In the embodiment shown in FIG. 3, the server 300 may determine the third device 123 as a target device.

서버(300)는 결정된 타겟 디바이스의 타입에 대응되는 제2 자연어 이해 모델을 이용하여 텍스트로부터 제2 인텐트 및 파라미터(parameter)를 결정할 수 있다. 이 때, 제2 자연어 이해 모델에 입력되는 텍스트는, 음성 신호로부터 변환된 텍스트의 적어도 일부일 수 있다. 서버(300)는 제2 인텐트 및 파라미터에 기초하여 타겟 디바이스가 수행할 동작을 결정할 수 있다. 일 실시예에서, 서버(300)는 액션 플랜 관리 모델에 타겟 디바이스의 식별 정보, 제2 인텐트 및 파라미터를 전송하고, 액션 플랜 관리 모델로부터 제2 인텐트 및 파라미터와 관련된 동작을 수행하기 위한 세부 동작에 대한 동작 정보를 획득할 수 있다. The server 300 may determine a second intent and a parameter from the text using a second natural language understanding model corresponding to the determined type of the target device. In this case, the text input to the second natural language understanding model may be at least a part of the text converted from the speech signal. The server 300 may determine an operation to be performed by the target device based on the second intent and parameter. In one embodiment, the server 300 transmits the identification information of the target device, the second intent and the parameter to the action plan management model, and details for performing an operation related to the second intent and the parameter from the action plan management model. It is possible to obtain motion information for the motion.

서버(300)는 동작 정보를 IoT 클라우드 서버(400)에 전송한다. IoT 클라우드 서버(400)는 서버(300)로부터 획득한 동작 정보를 타겟 디바이스가 판독할 수 있는 제어 명령(control command)으로 변환할 수 있다. 여기서, 제어 명령은, 타겟 디바이스가 동작 정보 내에 포함된 세부 동작들을 수행할 수 있도록, 타겟 디바이스가 판독하고, 실행할 수 있는 명령어를 의미한다. The server 300 transmits operation information to the IoT cloud server 400. The IoT cloud server 400 may convert operation information obtained from the server 300 into a control command that can be read by the target device. Here, the control command means a command that the target device can read and execute so that the target device can perform detailed operations included in the operation information.

IoT 클라우드 서버(400)는 제어 명령을 타겟 디바이스로 결정된 제3 디바이스(123)에 전송한다. The IoT cloud server 400 transmits a control command to the third device 123 determined as a target device.

종래에는 복수의 디바이스(120)를 포함하는 네트워크 환경에서, 사용자는 음성 입력 등을 통해 대화와 같은 상호 작용(interaction)을 하는 클라이언트 디바이스(110)가 아닌 다른 디바이스를 통해 서비스를 제공받고 싶은 경우, 다른 디바이스를 직접 선택하고, 다른 디바이스를 직접 실행시켜야 하는 번거로움이 있었다. Conventionally, in a network environment including a plurality of devices 120, when a user wants to receive a service through a device other than the client device 110 that performs an interaction such as conversation through voice input, There was a hassle of having to select another device and run another device directly.

본 개시의 서버(300)는 클라이언트 디바이스(110)를 통해 수신된 사용자의 음성 입력에 포함된 의도를 결정하여 타겟 디바이스를 자동으로 결정함으로써, 사용자에게 자동화된 시스템 환경을 제공하고, 사용자 편의성을 향상시킬 수 있다. 또한, 도 3에 도시된 실시예에 따른 서버(300)는, 사용자가 디바이스의 명칭 또는 디바이스의 타입에 관하여 발화하지 않거나 불명확하게 발화하는 경우에도 디바이스의 상태 정보를 고려하여 타겟 디바이스(123)를 결정하는바, 직관적이고 편리한 사용자 경험(User eXperience, UX)을 제공할 수 있다. 서버(300)가 수행하는 구체적인 동작들에 관해서는 도 4 및 도 5에서 상세하게 설명하기로 한다. The server 300 of the present disclosure automatically determines the target device by determining the intention included in the user's voice input received through the client device 110, thereby providing an automated system environment to the user and improving user convenience. I can make it. In addition, the server 300 according to the embodiment shown in FIG. 3 considers the state information of the device even when the user does not speak or speaks indefinitely about the device name or device type. It is decided that it can provide an intuitive and convenient user experience (User eXperience, UX). Specific operations performed by the server 300 will be described in detail with reference to FIGS. 4 and 5.

도 4는 본 개시의 서버(300)가 사용자의 음성 입력으로부터 사용자의 의도에 따른 동작을 수행할 타겟 디바이스를 결정하고, 타겟 디바이스를 제어하는 방법을 도시한 흐름도이다. FIG. 4 is a flowchart illustrating a method of determining a target device to perform an operation according to a user's intention from a user's voice input and controlling the target device by the server 300 of the present disclosure.

단계 S410에서, 서버(300)는 사용자의 음성 신호를 수신한다. 일 실시예에서, 서버(300)는 음성 신호를 클라이언트 디바이스(110)로부터 수신할 수 있다. 일 실시예에서, 서버(300)는 클라이언트 디바이스(110)로부터, 클라이언트 디바이스(110)의 식별 정보(id 정보) 또는 사용자의 식별 정보를 획득할 수 있다. 일 실시예에서, 서버(300)는 클라이언트 디바이스(110)의 식별 정보를 수신하면, 클라이언트 디바이스(110)의 식별 정보와 관련된 사용자의 계정 정보를 검색할 수 있다. In step S410, the server 300 receives a user's voice signal. In one embodiment, the server 300 may receive a voice signal from the client device 110. In an embodiment, the server 300 may obtain identification information (id information) of the client device 110 or identification information of a user from the client device 110. In an embodiment, upon receiving the identification information of the client device 110, the server 300 may search for user account information related to the identification information of the client device 110.

단계 S420에서, 서버(300)는 ASR(Automatic Speech Recognition)을 수행하여, 수신된 음성 신호를 텍스트(text)로 변환한다. 일 실시예에서, 서버(300)는 음향 모델(acoustic model; AM) 또는 언어 모델(language model; LM) 등 기 정의된 모델을 이용하여 음성 신호를 컴퓨터로 판독 가능한 텍스트로 변환하는 ASR을 수행할 수 있다.In step S420, the server 300 converts the received speech signal into text by performing ASR (Automatic Speech Recognition). In one embodiment, the server 300 performs ASR for converting a speech signal into a computer-readable text using a predefined model such as an acoustic model (AM) or a language model (LM). I can.

단계 S430에서, 서버(300)는 제1 자연어 이해 모델(Natural Language Understanding; NLU)을 이용하여 변환된 텍스트를 분석하고, 텍스트의 분석 결과에 기초하여 타겟 디바이스를 결정한다. 제1 자연어 이해 모델은 ASR을 통해 변환된 텍스트를 해석하여, 사용자의 음성 입력과 관련된 적어도 하나의 타겟 디바이스를 결정하도록 학습된 모델일 수 있다. 일 실시예에 따르면, 제1 자연어 이해 모델을 포함하는 디바이스 디스패쳐 모델은, 사용자의 음성 입력과 관련된 적어도 하나의 타겟 디바이스를 결정한다. 예를 들어, 사용자의 음성 입력으로부터 변환된 텍스트가 "보헤미안 랩소디 틀어줘~"인 경우, 타겟 디바이스는 TV일 수 있다. In step S430, the server 300 analyzes the converted text using a first natural language understanding model (NLU), and determines a target device based on the analysis result of the text. The first natural language understanding model may be a model trained to determine at least one target device related to a user's voice input by analyzing the text converted through ASR. According to an embodiment, the device dispatcher model including the first natural language understanding model determines at least one target device related to a user's voice input. For example, when the text converted from the user's voice input is "Play Bohemian Rhapsody~", the target device may be a TV.

단계 S440에서, 서버(300)는 복수의 제2 자연어 이해 모델 중 결정된 타겟 디바이스에 대응되는 제2 자연어 이해 모델을 이용하여, 타겟 디바이스가 수행할 동작에 관한 정보를 획득한다. In step S440, the server 300 acquires information on an operation to be performed by the target device by using a second natural language understanding model corresponding to the determined target device among the plurality of second natural language understanding models.

일 실시예에서, 서버(300)는 복수의 제2 자연어 이해 모델 중 결정된 타겟 디바이스에 대응되는 제2 자연어 이해 모델을 선택할 수 있다. 제2 자연어 이해 모델은 특정 디바이스에 특화된 모델로서, 제1 자연어 이해 모델에 의해 결정된 디바이스와 관련되며 텍스트에 대응하는, 동작을 결정하도록 학습된 인공지능 모델일 수 있다. 동작은, 디바이스에서 특정 기능을 실행함으로서, 디바이스가 수행하는 적어도 하나의 액션을 의미할 수 있다. 동작은, 디바이스에서 애플리케이션을 실행함으로써, 디바이스가 수행하는 적어도 하나의 액션을 나타낼 수 있다. In an embodiment, the server 300 may select a second natural language understanding model corresponding to the determined target device from among the plurality of second natural language understanding models. The second natural language understanding model is a model specialized for a specific device, and may be an artificial intelligence model trained to determine an operation, which is related to a device determined by the first natural language understanding model and corresponds to a text. An operation may mean at least one action performed by the device by executing a specific function in the device. The operation may represent at least one action performed by the device by executing an application on the device.

단계 S450에서, 서버(300)는 획득된 동작 정보를 타겟 디바이스에 전송한다. 서버(300)는 동작 정보 및 결정된 타겟 디바이스의 식별 정보(디바이스 id)를 이용하여 타겟 디바이스에게 동작 정보를 전송할 수 있다. 일 실시예에서, 서버(300)는 단계 S410에서 획득한 사용자의 계정 정보(예를 들어, 사용자 id)와 관련하여 기 등록된 사용자의 복수의 디바이스에 관한 디바이스 정보 중에, 단계 S430에서 결정된 타겟 디바이스의 식별 정보를 확인한다. 복수의 디바이스에 관한 디바이스 정보는 IoT 클라우드 서버(400)를 통해 획득할 수 있다.In step S450, the server 300 transmits the obtained operation information to the target device. The server 300 may transmit the motion information to the target device using the motion information and the determined identification information (device id) of the target device. In one embodiment, the server 300 is a target device determined in step S430 among device information about a plurality of devices of a user that is previously registered in relation to the user's account information (eg, user ID) acquired in step S410. Check the identification information of. Device information about a plurality of devices may be obtained through the IoT cloud server 400.

일 실시예에서, 서버(300)는 동작 정보를 타겟 디바이스로 직접 전송할 수 있으며, 이 경우 동작 정보는 동작 명령을 포함할 수 있다. 다른 실시예에서, 서버(300)는 동작 정보를 IoT 클라우드 서버(400)를 통해 타겟 디바이스로 전송할 수 있다. 이 경우, IoT 클라우드 서버(400)는, 서버(300)부터 수신한 동작 정보를 이용하여 타겟 디바이스로 전송할 제어 명령을 확인할 수 있다. IoT 클라우드 서버(400)는, 타겟 디바이스의 식별 정보를 이용하여 확인된 제어 명령을 타겟 디바이스로 전송할 수 있다. In one embodiment, the server 300 may directly transmit motion information to the target device, in which case the motion information may include an operation command. In another embodiment, the server 300 may transmit operation information to the target device through the IoT cloud server 400. In this case, the IoT cloud server 400 may check a control command to be transmitted to the target device using the operation information received from the server 300. The IoT cloud server 400 may transmit the identified control command to the target device using the identification information of the target device.

도 5는 본 개시의 서버(300)가 사용자의 음성 입력으로부터 사용자의 의도에 따른 동작을 수행할 타겟 디바이스를 결정하고, 타겟 디바이스를 제어하는 방법을 도시한 흐름도이다. 5 is a flowchart illustrating a method of determining a target device to perform an operation according to a user's intention from a user's voice input and controlling the target device by the server 300 of the present disclosure.

단계 S510에서, 서버(300)는 클라이언트 디바이스(110)로부터 사용자의 음성 신호를 수신한다. 일 실시예에서, 클라이언트 디바이스(110)는 사용자의 음성 입력(예를 들어, 발화)을 마이크를 통해 수신하고, 사용자의 음성 입력으로부터 음성 신호를 획득하고, 서버(300)는 음성 신호를 클라이언트 디바이스(110)로부터 수신할 수 있다. 클라이언트 디바이스(110)는 마이크를 통해 수신된 소리(sound)를 음향 신호로 변환하고, 음향 신호로부터 노이즈(예를 들어, 비음성 성분)를 제거하여 음성 신호를 획득할 수 있다. In step S510, the server 300 receives a user's voice signal from the client device 110. In one embodiment, the client device 110 receives a user's voice input (eg, speech) through a microphone, obtains a voice signal from the user's voice input, and the server 300 transmits the voice signal to the client device. It can be received from (110). The client device 110 converts a sound received through a microphone into an acoustic signal and removes noise (eg, a non-speech component) from the acoustic signal to obtain a speech signal.

일 실시예에서, 클라이언트 디바이스(110)는 음성 신호를 서버(300)에 전송할 때, 클라이언트 디바이스(110)의 식별 정보(예를 들어, 클라이언트 디바이스의 id 정보) 또는 사용자의 계정 정보(예를 들어, 사용자의 id 정보)를 서버(300)에 전송할 수 있다. 서버(300)는 클라이언트 디바이스(110)로부터, 클라이언트 디바이스(110)의 식별 정보(id 정보) 또는 사용자의 식별 정보를 획득할 수 있다. 일 실시예에서, 서버(300)는 클라이언트 디바이스(110)의 식별 정보를 수신하면, 클라이언트 디바이스(110)의 식별 정보와 관련된 사용자의 계정 정보를 검색할 수 있다. In one embodiment, when the client device 110 transmits the voice signal to the server 300, identification information of the client device 110 (eg, ID information of the client device) or account information of the user (eg, , User ID information) may be transmitted to the server 300. The server 300 may obtain identification information (id information) of the client device 110 or identification information of a user from the client device 110. In an embodiment, upon receiving the identification information of the client device 110, the server 300 may search for user account information related to the identification information of the client device 110.

단계 S520에서, 서버(300)는 ASR(Automatic Speech Recognition)을 수행하여, 수신된 음성 신호를 텍스트(text)로 변환한다. 일 실시예에서, 서버(300)는 음향 모델(acoustic model; AM) 또는 언어 모델(language model; LM) 등 기 정의된 모델을 이용하여 음성 신호를 컴퓨터로 판독 가능한 텍스트로 변환하는 ASR을 수행할 수 있다. 서버(300)가 클라이언트 디바이스로부터 노이즈가 제거되지 않은 음향 신호를 수신할 경우에는, 수신된 음향 신호에서 노이즈를 제거하여 음성 신호를 획득하고, 음성 신호에 대하여 ASR을 수행할 수 있다. In step S520, the server 300 performs ASR (Automatic Speech Recognition) to convert the received speech signal into text. In one embodiment, the server 300 performs ASR for converting a speech signal into a computer-readable text using a predefined model such as an acoustic model (AM) or a language model (LM). I can. When the server 300 receives a sound signal from which noise has not been removed from a client device, the server 300 may obtain a voice signal by removing noise from the received sound signal, and perform ASR on the voice signal.

단계 S530에서, 서버(300)는 제1 자연어 이해 모델(Natural Language Understanding; NLU)을 이용하여 변환된 텍스트를 분석하고, 텍스트의 분석 결과에 기초하여 타겟 디바이스의 타입(type)을 결정한다. 제1 자연어 이해 모델은, ASR을 통해 변환된 텍스트를 해석하여 텍스트에 대응하는 제1 인텐트를 획득하도록 학습된 모델일 수 있다. 여기서, 제1 인텐트는, 텍스트에 포함된 사용자의 발화 의도를 나타내는 정보로서, 복수의 타겟 디바이스의 타입 중 적어도 하나의 타입을 결정하는 데 사용될 수 있다. 예를 들어, 사용자의 음성 입력으로부터 변환된 텍스트가 "보헤미안 랩소디 틀어줘~"인 경우, 제1 인텐트는 "컨텐트 재생(play)"일 수 있다. 일 실시예에서, 제1 자연어 이해 모델은 ASR을 통해 변환된 텍스트를 해석하여, 사용자의 음성 입력과 관련된 적어도 하나의 타겟 디바이스의 타입을 결정하도록 학습된 모델일 수 있다. 다른 실시예에서, 제1 자연어 이해 모델을 포함하는 디바이스 디스패쳐 모델은, 제1 자연어 이해 모델의 해석 결과에 기반하여 사용자의 음성 입력과 관련된 적어도 하나의 타겟 디바이스의 타입을 결정할 수 있다. In step S530, the server 300 analyzes the converted text using a first natural language understanding model (NLU), and determines a type of the target device based on the analysis result of the text. The first natural language understanding model may be a model trained to obtain a first intent corresponding to the text by analyzing the text converted through the ASR. Here, the first intent is information indicating the user's utterance intention included in the text, and may be used to determine at least one type of a plurality of target device types. For example, when the text converted from the user's voice input is "Play Bohemian Rhapsody~", the first intent may be "play content". In an embodiment, the first natural language understanding model may be a model trained to determine the type of at least one target device related to the user's voice input by analyzing the text converted through the ASR. In another embodiment, the device dispatcher model including the first natural language understanding model may determine the type of at least one target device related to the user's voice input based on an analysis result of the first natural language understanding model.

서버(300)는 제1 자연어 이해 모델을 이용하여 문법적 분석(syntactic analyze) 또는 의미적 분석(semantic analyze)을 수행함으로써, 변환된 텍스트로부터 사용자의 제1 인텐트(intent)를 결정할 수 있다. 일 실시예에서, 서버(300)는 제1 자연어 이해 모델을 이용하여, 변환된 텍스트를 형태소, 단어(word), 또는 구(phrase)의 단위로 파싱(parse)한다. 서버(300)는 제1 자연어 이해 모델을 이용하여, 파싱된 형태소, 단어, 또는 구의 언어적 특징(예: 문법적 요소)을 이용하여 파싱된 텍스트로부터 추출된 단어의 의미를 추론할 수 있다. 서버(300)는, 추론된 단어의 의미를 제1 자연어 이해 모델에서 제공되는 기 정의된 인텐트들과 비교함으로써, 추론된 단어의 의미에 대응되는 제1 인텐트를 결정할 수 있다. The server 300 may determine the user's first intent from the converted text by performing a syntactic analysis or a semantic analysis using the first natural language understanding model. In an embodiment, the server 300 parses the converted text in units of morphemes, words, or phrases using the first natural language understanding model. The server 300 may infer the meaning of the word extracted from the parsed text by using the parsed morpheme, word, or linguistic feature (eg, grammatical element) of the parsed morpheme, word, or phrase using the first natural language understanding model. The server 300 may determine a first intent corresponding to the meaning of the inferred word by comparing the meaning of the inferred word with predefined intents provided in the first natural language understanding model.

서버(300)는 제1 인텐트에 기초하여 타겟 디바이스의 타입을 결정할 수 있다. 일 실시예에서, 서버(300)는 제1 자연어 이해 모델을 이용하여 제1 인텐트에 관련된 타겟 디바이스의 타입을 결정할 수 있다. '타입(type)'은 기설정된 기준에 따라 분류된 디바이스의 카테고리를 의미한다. 디바이스의 타입은, 예를 들어, 디바이스의 기능 또는 용도에 기초하여 결정될 수 있다. 예를 들어, 디바이스는 음향 신호를 출력하는 오디오 장치(예: 스피커), 음향 신호와 영상 신호를 모두 출력하는 영상 장치(예: TV), 공기의 온도를 제어하는 공조 장치(예: 에어컨), 청소 장치(예: 로봇 청소기) 등의 타입으로 분류될 수 있으나, 이에 제한되지 않는다. The server 300 may determine the type of the target device based on the first intent. In an embodiment, the server 300 may determine the type of the target device related to the first intent using the first natural language understanding model. The'type' refers to a category of devices classified according to a preset criterion. The type of device may be determined, for example, based on the function or use of the device. For example, the device includes an audio device (eg, a speaker) that outputs an acoustic signal, an image device (eg, a TV) that outputs both sound and video signals, an air conditioner that controls the air temperature (eg, an air conditioner), It may be classified into a type such as a cleaning device (eg, a robot cleaner), but is not limited thereto.

또 다른 실시예에서, 서버(300)는 제1 인텐트와 타겟 디바이스 타입 간의 관련성을 판단할 수 있는 매칭 모델에 기초하여, 텍스트로부터 인식된 제1 인텐트와 관련된 타겟 디바이스 타입을 결정할 수 있다. 제1 인텐트와 타겟 디바이스 타입 간의 관련성은 소정의 수치 값으로 산출될 수 있다. 일 실시예에서, 제1 인텐트와 타겟 디바이스 타입 간의 관련성은 확률값으로 산출될 수 있다. In yet another embodiment, the server 300 may determine a target device type related to the first intent recognized from the text, based on a matching model capable of determining the relationship between the first intent and the target device type. The relationship between the first intent and the target device type may be calculated as a predetermined numerical value. In an embodiment, the relationship between the first intent and the target device type may be calculated as a probability value.

서버(300)는, 제1 자연어 이해 모델에서 획득한 제1 인텐트에 매칭 모델을 적용하여, 복수의 타겟 디바이스의 타입 중 제1 인텐트와 관련된 타겟 디바이스의 타입을 결정할 수 있다. 일 실시예에서, 서버(300)는 제1 인텐트에 매칭 모델을 적용함으로써, 제1 인텐트와 복수의 타겟 디바이스 타입 간의 관련성 정도를 나타내는 복수의 수치값을 획득하고, 획득된 복수의 수치값 중 최대값을 갖는 타겟 디바이스 타입을 최종 타입으로 결정할 수 있다. 예를 들어, 제1 인텐트가 제1 디바이스 타입 및 제2 디바이스 타입과 각각 관련되는 경우, 서버(300)는 제1 인텐트와 제1 디바이스 타입 간의 관련성 정도를 나타내는 제1 수치값, 및 제1 인텐트와 제2 디바이스 타입 간의 관련성 정도를 나타내는 제2 수치값을 획득하고, 제1 수치값 및 제2 수치값 중 높은 수치값을 갖는 제1 디바이스 타입을 타겟 디바이스 타입으로 결정할 수 있다. The server 300 may determine a type of a target device related to the first intent from among the types of a plurality of target devices by applying the matching model to the first intent obtained from the first natural language understanding model. In one embodiment, the server 300 obtains a plurality of numerical values representing the degree of association between the first intent and a plurality of target device types by applying a matching model to the first intent, and the obtained plurality of numerical values The target device type having the maximum value among them may be determined as the final type. For example, if the first intent is related to the first device type and the second device type, respectively, the server 300 may provide a first numerical value indicating a degree of association between the first intent and the first device type, and A second numerical value indicating a degree of correlation between the first intent and the second device type may be obtained, and a first device type having a higher numerical value among the first numerical value and the second numerical value may be determined as the target device type.

예를 들어, 매칭 모델을 적용하여 산출된 "컨텐트 재생"의 제1 인텐트와 "TV" 간의 관련도를 나타내는 제1 수치값은 다른 타겟 디바이스 타입, 예를 들어 "냉장고"와 "컨텐트 재생" 간의 관련도를 나타내는 제2 수치값 보다 클 수 있다. 이 경우, 서버(300)는 컨텐트 재생의 제1 인텐트와 관련된 타겟 디바이스 타입으로 TV를 결정할 수 있다. 다른 예에서, 제1 인텐트가 "온도 제어"인 경우, 제1 인텐트와 "TV" 간의 관련도를 나타내는 수치값 보다는 제1 인텐트와 "에어컨"의 관련도를 나타내는 수치값이 더 높을 수 있다. 이와 같은 경우에, 서버(300)는 온도 제어의 제1 인텐트와 관련된 타겟 디바이스 타입으로 에어컨을 결정할 수 있다. For example, the first numerical value representing the degree of relation between the first intent and the "TV" of "content reproduction" calculated by applying the matching model is different target device types, for example "refrigerator" and "content reproduction" It may be greater than the second numerical value indicating the degree of relationship between the liver. In this case, the server 300 may determine the TV as a target device type related to the first intent of content playback. In another example, when the first intent is "temperature control", a numerical value representing the degree of relation between the first intent and the "air conditioner" may be higher than a numerical value representing the degree of relationship between the first intent and the "TV". I can. In this case, the server 300 may determine the air conditioner as a target device type related to the first intent of temperature control.

그러나, 전술한 예시로 한정되는 것은 아니고, 서버(300)는 제1 인텐트와 복수의 디바이스 타입 간의 관련성 정도를 나타내는 수치값을 높은 순서로 나열하여, 미리 정해진 개수의 디바이스 타입을 결정할 수도 있다. 일 실시예에서, 서버(300)는 관련성 정도를 나타내는 수치값이 소정의 임계치 이상인 디바이스 타입을 제1 인텐트와 관련된 디바이스 타입으로 결정할 수 있다. 이 경우, 복수의 디바이스 타입이 타겟 디바이스 타입으로 결정될 수 있다. However, it is not limited to the above-described example, and the server 300 may determine a predetermined number of device types by arranging numerical values representing degrees of association between the first intent and the plurality of device types in high order. In an embodiment, the server 300 may determine a device type in which a numerical value indicating a degree of relevance is equal to or greater than a predetermined threshold as a device type related to the first intent. In this case, a plurality of device types may be determined as target device types.

서버(300)는 예를 들어, 룰 베이스 시스템(rule-based system)을 이용하여 제1 인텐트와 타겟 디바이스 타입 간의 매칭 모델을 학습할 수 있으나, 이에 한정되는 것은 아니다. 서버(300)가 이용하는 인공지능 모델은 예를 들어, 신경망 베이스 시스템(neural network-based system)(예: 컨볼루션 신경망(convolution neural network; CNN, 순환 신경망(recurrent neural network; RNN), SVM(Support Vector Machine), 선형 회귀(linear regression), 로지스틱 회귀(logistic regression), 나이브 베이즈 분류(Naive Bayes), 랜덤 포레스트(random forest), decision tree, 또는 k-nearest neighbor algorithm 일 수 있다. 또는, 전술한 것의 조합 또는 이와 다른 인공지능 모델일 수도 있다. The server 300 may learn a matching model between the first intent and the target device type using, for example, a rule-based system, but is not limited thereto. The artificial intelligence model used by the server 300 is, for example, a neural network-based system (e.g., a convolution neural network; CNN, a recurrent neural network; RNN), and SVM (Support Vector Machine), linear regression, logistic regression, Naive Bayes, random forest, decision tree, or k-nearest neighbor algorithm. It could be a combination of one or another AI model.

서버(300)는 제1 자연어 이해 모델을 이용하여 결정된 타겟 디바이스의 타입 및 복수의 디바이스의 정보에 기초하여 타겟 디바이스를 결정한다. 서버(300)는 단계 S510에서 클라이언트 디바이스(110)로부터 획득한 사용자의 계정 정보(예를 들어, 사용자 id)를 IoT 클라우드 서버(400)에게 전송하고, IoT 클라우드 서버(400)에 사용자의 계정 정보와 관련하여 기 등록된 사용자의 복수의 디바이스에 관한 디바이스 정보를 요청할 수 있다. IoT 클라우드 서버(400)는 사용자의 계정 별로 기 등록된 사용자의 복수의 디바이스에 관한 디바이스 정보를 저장하는 서버일 수 있다. IoT 클라우드 서버(400)는 서버(300)와는 별개이고, 서버(300)와는 네트워크를 통해 연결될 수 있다. 서버(300)는 IoT 클라우드 서버(400)로부터 사용자의 계정 정보와 관련하여 등록된 복수의 디바이스에 관한 디바이스 정보를 수신할 수 있다. 예를 들어, 디바이스 정보는 디바이스의 식별 정보(디바이스 id 정보), 기능 수행 능력 정보(capability), 위치 정보, 및 상태 정보를 포함할 수 있다.The server 300 determines a target device based on the type of the target device determined using the first natural language understanding model and information on a plurality of devices. The server 300 transmits the user's account information (eg, user ID) obtained from the client device 110 in step S510 to the IoT cloud server 400, and the user's account information to the IoT cloud server 400 In connection with, it is possible to request device information on a plurality of devices of a user who has been previously registered. The IoT cloud server 400 may be a server that stores device information about a plurality of devices of a user, which are previously registered for each user account. The IoT cloud server 400 is separate from the server 300 and may be connected to the server 300 through a network. The server 300 may receive device information on a plurality of devices registered in relation to the user's account information from the IoT cloud server 400. For example, the device information may include device identification information (device id information), function performance capability information (capability), location information, and status information.

일 실시예에서, 서버(300)는, 서버(300)에 기 저장되어 있던 사용자의 계정 정보 등을 이용하여 IoT 클라우드 서버(400)로부터 복수의 디바이스에 관한 디바이스 정보를 수신할 수 있다. 서버(300)는, 음성 입력이 수신되기 전에도 IoT 클라우드 서버(400)로부터 디바이스 정보를 수신할 수 있으며, 기 설정된 주기에 따라 디바이스 정보를 수신할 수 있다.In an embodiment, the server 300 may receive device information about a plurality of devices from the IoT cloud server 400 by using the user's account information previously stored in the server 300. The server 300 may receive device information from the IoT cloud server 400 even before a voice input is received, and may receive device information according to a preset period.

기능 수행 능력 정보는, 동작을 수행하기 위하여 기 정의된 디바이스의 기능에 관한 정보일 수 있다. 예를 들어, 디바이스가 에어컨인 경우에 에어컨의 기능 수행 능력 정보는, 온도 업, 온도 다운, 또는 공기 정화와 같은 기능을 나타낼 수 있고, 디바이스가 스피커인 경우에 볼륨업/다운, 음악 재생(play) 와 같은 기능을 나타낼 수 있다. 기능 수행 능력 정보는 IoT 클라우드 서버(400)에 기 저장되어 있을 수 있다. 그러나, 이에 한정되는 것은 아니고, 기능 수행 능력 정보는 서버(300)에 저장될 수도 있다.The function performance capability information may be information on a function of a device predefined to perform an operation. For example, when the device is an air conditioner, the function performance information of the air conditioner may indicate a function such as temperature up, temperature down, or air purification, and when the device is a speaker, volume up/down, music playback ) Can represent the same function. The function performance capability information may be previously stored in the IoT cloud server 400. However, the present invention is not limited thereto, and function performance capability information may be stored in the server 300.

또한, 위치 정보는 디바이스의 위치를 나타내는 정보로서, 예를 들어, 디바이스가 위치하는 장소의 명칭 및 디바이스의 위치를 나타내는 위치 좌표 값을 포함할 수 있다. 예를 들어, 디바이스의 위치 정보는, 방, 거실 등과 같이 집 안의 특정 장소를 나타내는 명칭을 포함하거나, 집, 사무실과 같은 장소의 명칭을 포함할 수 있다. Further, the location information is information indicating the location of the device, and may include, for example, a name of a place where the device is located and a location coordinate value indicating the location of the device. For example, the location information of the device may include a name indicating a specific place in a house such as a room or a living room, or may include a name of a place such as a house or an office.

디바이스의 상태 정보는, 예를 들어, 전원 온오프(on/off) 정보, 및 현재 실행하고 있는 동작 정보 중 적어도 하나를 포함하는 디바이스의 현재 상태를 나타내는 정보일 수 있다. The device state information may be information indicating a current state of the device, including at least one of power on/off information and information on an operation currently being executed.

일 실시예에서, 서버(300)는 단계 S530에서 결정된 타겟 디바이스 타입에 관한 정보와 사용자의 계정 정보를 IoT 클라우드 서버(400)에게 전송하고, 사용자의 계정 정보와 관련하여 기 등록된 복수의 디바이스 중 결정된 타겟 디바이스 타입에 해당되는 디바이스에 관한 정보만을 획득할 수도 있다. In one embodiment, the server 300 transmits the information on the target device type determined in step S530 and the user's account information to the IoT cloud server 400, and among a plurality of devices previously registered in relation to the user's account information Only information about a device corresponding to the determined target device type may be obtained.

일 실시예에서, 서버(300)는 사용자의 계정 별로 기 등록된 사용자의 복수의 디바이스에 관한 디바이스 정보를 저장할 수 있다. 이 경우, 서버(300)는 IoT 클라우드 서버(400)로 디바이스 정보를 요청하지 않고, 서버(300)에 저장되어 있는 사용자의 계정 정보와 관련하여 기 등록된 사용자의 복수의 디바이스에 관한 디바이스 정보를 이용할 수 있다. 또한, 결정된 타겟 디바이스 타입에 대한 정보를 이용하여, 기 등록된 사용자의 복수의 디바이스 중 결정된 타겟 디바이스 타입에 해당하는 디바이스에 대한 정보만을 획득할 수도 있다.In an embodiment, the server 300 may store device information on a plurality of devices of a user that are pre-registered for each user account. In this case, the server 300 does not request device information from the IoT cloud server 400, and retrieves device information about a plurality of devices of a user that is previously registered in relation to the user's account information stored in the server 300. Can be used. In addition, by using information on the determined target device type, only information on a device corresponding to the determined target device type among a plurality of devices of a pre-registered user may be obtained.

서버(300)는 사용자의 계정 정보와 관련하여 기 등록된 복수의 디바이스 중 결정된 타겟 디바이스 타입에 해당되는 후보 디바이스를 선택할 수 있다. 선택된 후보 디바이스는 한 개일 수 있으나, 복수개일 수도 있다. 선택된 후보 디바이스가 한 개인 경우, 선택된 후보 디바이스가 타겟 디바이스로 결정될 수 있다. The server 300 may select a candidate device corresponding to the determined target device type from among a plurality of devices previously registered in relation to the user's account information. There may be one selected candidate device, but there may be a plurality of selected candidate devices. When there is only one selected candidate device, the selected candidate device may be determined as the target device.

일 실시예에서, 선택된 후보 디바이스가 복수개인 경우, 서버(300)는 선택된 복수의 후보 디바이스의 상태 정보를 고려하여 타겟 디바이스 결정할 수 있다. 예를 들어, "컨텐트 재생"의 제1 인텐트와 관련된 타겟 디바이스 타입이 "TV"로 결정된 경우, 서버(300)는 후보 디바이스인 거실 TV, 안방 TV, 자녀방 TV 중 현재 전원이 켜져있는 거실 TV를 타겟 디바이스로 결정할 수 있다. In an embodiment, when there are a plurality of selected candidate devices, the server 300 may determine the target device in consideration of state information of the selected plurality of candidate devices. For example, when the target device type related to the first intent of "playing content" is determined as "TV", the server 300 is a living room that is currently powered on among candidate devices such as living room TV, home TV, and children's room TV. TV can be determined as a target device.

다른 실시예에서, 선택된 디바이스가 복수개인 경우, 서버(300)는 선택된 복수의 후보 디바이스의 설치 위치를 고려하여 타겟 디바이스를 결정할 수 있다. 예를 들어, "컨텐트 재생"의 제1 인텐트와 관련된 타겟 디바이스 타입이 "TV"로 결정된 경우, 서버(300)는 후보 디바이스인 거실 TV, 안방 TV, 자녀방 TV 중 사용자의 현재 위치와 근접한 위치에 설치되어 있는 안방 TV를 타겟 디바이스로 결정할 수 있다. 전술한 예시들에서, 거실 TV, 안방 TV, 및 자녀방 TV 각각의 전원 온오프 여부 및 설치 위치 정보는 IoT 클라우드 서버(400)로부터 획득될 수 있다. In another embodiment, when there are a plurality of selected devices, the server 300 may determine a target device in consideration of installation locations of the selected plurality of candidate devices. For example, when the target device type related to the first intent of "playing content" is determined to be "TV", the server 300 may be close to the current location of the user among candidate devices such as living room TV, home room TV, and child room TV. The home TV installed at the location can be determined as the target device. In the above-described examples, information on whether the power of the living room TV, the home TV, and the children's room TV is turned on and off and installation location information may be obtained from the IoT cloud server 400.

서버(300)는 결정된 타입 및 IoT 클라우드 서버(400)로부터 수신한 디바이스 정보에 기초하여 타겟 디바이스를 결정할 수 있지만, 이에 한정되는 것은 아니다. 서버(300)가 결정된 타입에 해당되는 후보 디바이스가 복수 개 존재하고, IoT 클라우드 서버(400)로부터 수신한 디바이스 정보를 이용하더라도 타겟 디바이스를 결정할 수 없는 경우에는 질의 메시지를 통해 사용자가 특정 타겟 디바이스를 결정할 것을 요청할 수도 있다. The server 300 may determine a target device based on the determined type and device information received from the IoT cloud server 400, but is not limited thereto. If there are a plurality of candidate devices corresponding to the type determined by the server 300 and the target device cannot be determined even though the device information received from the IoT cloud server 400 is used, the user selects a specific target device through a query message. You can also ask for a decision.

단계 S530에서는 하나의 타겟 디바이스의 타입을 결정하는 것으로 설명되었지만, 이에 한정되는 것은 아니다. 단계 S530에서 서버(300)는 복수개의 타겟 디바이스 타입을 결정할 수 있다. 복수의 타겟 디바이스 타입이 결정된 경우, 서버(300)는 복수의 타겟 디바이스 타입에 기초하여 타겟 디바이스를 결정할 수 있다. 예를 들어, 타겟 디바이스 타입으로서 제1 디바이스 타입 및 제2 디바이스 타입이 결정된 경우, 서버(300)는 사용자의 계정 정보와 관련하여 기 등록된 복수의 디바이스 중 제1 디바이스 타입에 해당되는 복수의 디바이스를 선택하고, 선택된 복수의 디바이스의 상태 정보 및 설치 위치 정보에 기초하여 제1 후보 디바이스 및 제2 후보 디바이스를 결정할 수 있다. 또한, 서버(300)는 기 등록된 복수의 디바이스 중 제2 디바이스 타입에 해당되는 복수의 디바이스를 선택하고, 선택된 복수의 디바이스의 상태 정보 및 설치 위치 정보에 기초하여 제3 후보 디바이스 및 제4 후보 디바이스를 결정할 수 있다. 서버(300)는 제1 후보 디바이스, 제2 후보 디바이스, 제3 후보 디바이스 및 제4 후보 디바이스 중 어느 하나의 디바이스를 타겟 디바이스로 결정할 수 있다. Although it has been described that the type of one target device is determined in step S530, the present invention is not limited thereto. In step S530, the server 300 may determine a plurality of target device types. When a plurality of target device types are determined, the server 300 may determine a target device based on the plurality of target device types. For example, when the first device type and the second device type are determined as the target device type, the server 300 may select a plurality of devices corresponding to the first device type among a plurality of devices previously registered in relation to the user's account information. Then, the first candidate device and the second candidate device may be determined based on state information and installation location information of the selected plurality of devices. In addition, the server 300 selects a plurality of devices corresponding to the second device type from among a plurality of previously registered devices, and based on status information and installation location information of the selected plurality of devices, the third candidate device and the fourth candidate Device can be determined. The server 300 may determine any one of a first candidate device, a second candidate device, a third candidate device, and a fourth candidate device as the target device.

단계 S540에서, 서버(300)는 복수의 제2 자연어 이해 모델 중 결정된 타겟 디바이스의 타입에 대응되는 제2 자연어 이해 모델을 선택하고, 선택된 제2 자연어 이해 모델을 이용하여, 타겟 디바이스가 수행할 동작에 관한 정보를 획득한다. 제2 자연어 이해 모델은 특정 타입의 디바이스에 특화된 모델로서, 제1 자연어 이해 모델에 의해 결정된 타입에 해당되는 디바이스와 관련되며 텍스트에 대응하는 제2 인텐트 및 파라미터를 획득하도록 학습된 인공지능 모델일 수 있다. 제2 인텐트는 텍스트에 포함된 사용자의 발화 의도를 나타내는 정보로, 특정 타입의 디바이스가 수행할 동작을 결정하는 데 사용될 수 있다. In step S540, the server 300 selects a second natural language understanding model corresponding to the determined type of the target device from among the plurality of second natural language understanding models, and uses the selected second natural language understanding model to perform an operation to be performed by the target device. Obtain information about The second natural language understanding model is a model specialized for a specific type of device, which is related to a device corresponding to the type determined by the first natural language understanding model and is an artificial intelligence model that has been trained to acquire a second intent and parameter corresponding to the text. I can. The second intent is information indicating the user's speech intention included in the text, and may be used to determine an operation to be performed by a specific type of device.

일 실시예에서, 제2 자연어 이해 모델은 텍스트를 해석함으로써 사용자의 음성 입력과 관련된 디바이스의 동작을 결정할 수 있도록 학습된 모델일 수 있다. 동작은, 디바이스에서 특정 기능을 실행함으로서, 디바이스가 수행하는 적어도 하나의 액션을 의미할 수 있다. 동작은, 디바이스에서 애플리케이션을 실행함으로써, 디바이스가 수행하는 적어도 하나의 액션을 나타낼 수 있다.In an embodiment, the second natural language understanding model may be a model trained to determine an operation of a device related to a user's voice input by analyzing text. An operation may mean at least one action performed by the device by executing a specific function in the device. The operation may represent at least one action performed by the device by executing an application on the device.

일 실시예에서, 서버(300)는 결정된 타겟 디바이스의 타입에 대응되는 제2 자연어 이해 모델을 이용하여 텍스트를 분석할 수 있다. 이 때, 제2 자연어 이해 모델에 입력되는 텍스트는, 음성 신호로부터 변환된 텍스트의 적어도 일부일 수 있다. 예를 들면, 변환된 텍스트에 디바이스 명칭이 포함되어 있는 경우, 서버(300)는 텍스트에서 디바이스 명칭을 제거하고, 제2 자연어 이해 모델에 입력할 수 있다. 즉, 서버(300)는 변환된 텍스트를 제2 자연어 이해 모델이 분석할 수 있는 포맷의 텍스트로 변환하여 입력할 수 있다. 제2 자연어 이해 모델이 분석할 수 있는 포맷이란, 제2 자연어 이해 모델의 학습 데이터로 사용된 텍스트에 대응하는 문장 구조를 의미한다. In an embodiment, the server 300 may analyze the text using a second natural language understanding model corresponding to the determined type of the target device. In this case, the text input to the second natural language understanding model may be at least a part of the text converted from the speech signal. For example, when the device name is included in the converted text, the server 300 may remove the device name from the text and input it into the second natural language understanding model. That is, the server 300 may convert and input the converted text into text in a format that can be analyzed by the second natural language understanding model. The format that the second natural language understanding model can analyze refers to a sentence structure corresponding to the text used as training data of the second natural language understanding model.

서버(300)는 제2 자연어 이해 모델을 이용하여 텍스트를 형태소, 단어, 또는 구 단위로 파싱하고, 문법적 및 의미적 분석을 통해 파싱된 형태소, 단어, 또는 구의 의미를 파악하고, 파악된 의미를 기 정의된 단어에 매칭시켜 제2 인텐트 및 파라미터를 결정할 수 있다. 서버(300)는 제2 자연어 이해 모델을 이용하여 텍스트로부터 제2 인텐트를 결정할 수 있는데, 제1 인텐트 보다 디바이스 타입에 특화된 인텐트를 제2 인텐트로 결정할 수 있다. 예를 들어, 디바이스 타입이 "TV"로 결정된 경우, 제2 자연어 이해 모델을 이용하는 경우, "보헤미안 랩소디 틀어줘~"라는 텍스트를 분석하여, '영화 컨텐트 재생'을 제2 인텐트로 결정할 수 있다. 다른 예에서, 디바이스 타입이 "스피커"로 결정된 경우, 제2 자연어 이해 모델을 이용하는 경우, "보헤미안 랩소디 틀어줘~"라는 텍스트를 분석하여 '노래 재생'을 제2 인텐트로 결정할 수 있다. The server 300 parses the text in units of morphemes, words, or phrases using a second natural language understanding model, grasps the meaning of the parsed morphemes, words, or phrases through grammatical and semantic analysis, and identifies the identified meanings. The second intent and parameter may be determined by matching to a predefined word. The server 300 may determine a second intent from text by using the second natural language understanding model, and may determine an intent specialized for a device type rather than the first intent as the second intent. For example, when the device type is determined to be "TV", when the second natural language understanding model is used, the text "Play Bohemian Rhapsody~" may be analyzed to determine'play movie content' as the second intent. . In another example, when the device type is determined to be “speaker”, and when the second natural language understanding model is used, “play a song” may be determined as the second intent by analyzing the text “Play Bohemian Rhapsody”.

서버(300)는 복수 개의 제2 자연어 이해 모델을 포함할 수 있으며, S530에서 결정된 타겟 디바이스의 타입에 기초하여, 타겟 디바이스의 타입에 대응하는 적어도 하나의 제2 자연어 이해 모델을 선택할 수 있다. 적어도 하나의 제2 자연어 이해 모델이 선택되면, 서버(300)는 선택된 제2 자연어 이해 모델을 이용하여 텍스트를 해석함으로써 제2 인텐트 및 파라미터를 결정할 수 있다.The server 300 may include a plurality of second natural language understanding models, and may select at least one second natural language understanding model corresponding to the type of the target device based on the type of the target device determined in S530. When at least one second natural language understanding model is selected, the server 300 may determine a second intent and parameters by analyzing the text using the selected second natural language understanding model.

서버(300)는 결정된 타겟 디바이스의 타입에 관한 액션 플랜들이 저장되어 있는 액션 플랜 관리 모델을 이용하여 제2 인텐트 및 파라미터에 관련된 적어도 하나의 세부 동작에 대한 동작 정보를 획득할 수 있다. 액션 플랜 관리 모델은, 디바이스 타입 별로 디바이스의 세부 동작들 및 세부 동작들 간의 관계에 관한 정보를 관리할 수 있다. 서버(300)는 액션 플랜 관리 모델을 이용함으로써, 제2 인텐트 및 파라미터에 기초하여, 디바이스가 수행할 세부 동작들 및 세부 동작들의 실행 순서를 플래닝(planning)할 수 있다.The server 300 may obtain operation information on at least one detailed operation related to the second intent and the parameter by using an action plan management model in which action plans related to the determined target device type are stored. The action plan management model may manage detailed operations of a device for each device type and information about a relationship between detailed operations. The server 300 may plan detailed operations to be performed by the device and an execution order of detailed operations based on the second intent and parameters by using the action plan management model.

서버(300)는 결정된 타겟 디바이스의 식별 정보(디바이스 id 정보)와 타겟 디바이스 타입의 식별 값을 액션 플랜 관리 모델에게 제공함으로써, 타겟 디바이스가 수행할 일련의 세부 동작들에 관한 동작 정보를 획득할 수 있다. 동작 정보는, 디바이스가 수행할 세부 동작들 및 세부 동작들의 실행 순서에 관련된 정보일 수 있다. 동작 정보는 디바이스가 수행할 세부 동작들, 각 세부 동작과 다른 세부 동작과의 연관 관계 및 실행 순서에 관련된 정보를 포함할 수 있다. 동작 정보는 예를 들어, 특정 동작의 수행을 위하여 타겟 디바이스가 실행해야 할 기능들, 기능들의 실행 순서, 기능들을 실행하기 위하여 필요한 입력 값 및 기능들의 실행 결과로서 출력되는 출력 값을 포함할 수 있으나, 이에 한정되지 않는다.The server 300 may obtain operation information on a series of detailed operations to be performed by the target device by providing the determined identification information (device id information) of the target device and the identification value of the target device type to the action plan management model. have. The operation information may be information related to detailed operations to be performed by the device and an execution order of the detailed operations. The operation information may include detailed operations to be performed by the device, a relationship between each detailed operation and other detailed operations, and information related to an execution order. The operation information may include, for example, functions to be executed by the target device in order to perform a specific operation, an execution order of functions, an input value necessary to execute the functions, and an output value output as a result of execution of the functions. , Is not limited thereto.

단계 S550에서, 서버(300)는 획득된 동작 정보를 IoT 클라우드 서버(400)에 전송한다. 서버(300)는 동작 정보 및 결정된 타겟 디바이스의 식별 정보(디바이스 id)를 IoT 클라우드 서버(400)에게 전송할 수 있다. In step S550, the server 300 transmits the obtained operation information to the IoT cloud server 400. The server 300 may transmit operation information and identification information (device ID) of the determined target device to the IoT cloud server 400.

IoT 클라우드 서버(400)는 서버(300)로부터 수신한 동작 정보 및 디바이스 식별 정보에 기초하여, 타겟 디바이스의 세부 동작들을 제어하기 위한 제어 명령(control command)을 획득할 수 있다. 일 실시예에서, IoT 클라우드 서버(400)는 데이터베이스(DB)에 기 저장된 타겟 디바이스의 제어 명령들 중에서, 동작 정보 내의 타겟 디바이스의 세부 동작들을 제어하기 위한 제어 명령을 선택할 수 있다. IoT 클라우드 서버(400)에는 복수의 디바이스에 대한 제어 명령 및 동작 정보가 저장된 데이터베이스를 포함할 수 있다. IoT 클라우드 서버(400)는 서버(300)로부터 수신한 디바이스 식별 정보를 이용하여 데이터베이스를 선택하고, 선택된 데이터베이스에서 동작 정보를 이용하여 제어 명령을 검색할 수 있다. The IoT cloud server 400 may obtain a control command for controlling detailed operations of the target device based on the operation information and device identification information received from the server 300. In an embodiment, the IoT cloud server 400 may select a control command for controlling detailed operations of the target device in operation information from among control commands of the target device previously stored in the database DB. The IoT cloud server 400 may include a database in which control commands and operation information for a plurality of devices are stored. The IoT cloud server 400 may select a database using device identification information received from the server 300 and search for a control command using operation information from the selected database.

제어 명령은 디바이스가 판독할 수 있는 정보로서, 디바이스가 기능을 실행하여 동작 정보에 따른 세부 동작들을 수행하기 위한 명령어를 포함할 수 있다. The control command is information that can be read by the device and may include a command for the device to execute a function and perform detailed operations according to the operation information.

IoT 클라우드 서버(400)는 제어 명령을 타겟 디바이스에 전송할 수 있다. The IoT cloud server 400 may transmit a control command to the target device.

종래에는, 복수의 디바이스로 구성된 네트워크 환경에서 사용자의 음성을 입력받아 디바이스가 동작을 수행하기 위해서는, 복수의 디바이스 모두가 사용자의 음성 입력을 수신하고, 음성 입력에 따라 동작할 수 있는 기능을 갖추고 있어야만 하였으므로, 디바이스의 리소스(resource)가 과다해지는 문제점이 있었다. 즉, 새로운 디바이스가 네트워크 환경에 추가되는 경우, 새로운 디바이스를 제어하기 위해서는 모든 기능들을 새로 개발해야 할 수밖에 없었다. Conventionally, in order for a device to perform an operation by receiving a user's voice in a network environment composed of a plurality of devices, all of the plurality of devices must have a function to receive the user's voice input and operate according to the voice input. As a result, there is a problem in that the resources of the device become excessive. In other words, when a new device is added to the network environment, all functions have to be newly developed to control the new device.

본 개시의 일 실시예에 따른 서버(300)는, 클라이언트 디바이스(110)가 수신한 사용자의 음성 입력을 텍스트로 변환하고, 제1 자연어 이해 모델을 이용하여 텍스트를 해석하여 타겟 디바이스의 타입을 결정하고, 제1 자연어 이해 모델에 의해 결정된 디바이스 타입에 대응되는 제2 자연어 이해 모델을 이용하여 분석된 텍스트와 관련된 동작 정보를 획득하는바, 디바이스 내에 불필요한 리소스를 감소시키고, 시스템 아키텍쳐의 범용성을 확보하는 효과가 있다. The server 300 according to an embodiment of the present disclosure converts the user's voice input received by the client device 110 into text, analyzes the text using the first natural language understanding model, and determines the type of the target device. And, by using the second natural language understanding model corresponding to the device type determined by the first natural language understanding model, operation information related to the analyzed text is obtained, reducing unnecessary resources in the device and securing the universality of the system architecture. It works.

도 6은 본 개시의 서버(300)가 음성 입력으로부터 변환된 텍스트를 통해 타겟 디바이스의 타입을 결정하는 구체적인 방법을 도시한 흐름도이다. 도 6은 도 5의 단계 S530의 구체적인 실시예를 도시한 도면이다.6 is a flowchart illustrating a specific method of determining a type of a target device through text converted from a voice input by the server 300 of the present disclosure. 6 is a diagram illustrating a specific embodiment of step S530 of FIG. 5.

단계 S610에서, 서버(300)는 단계 S520에서 변환된 텍스트를 파싱한다. 일 실시예에서, 서버(300)는 제1 자연어 이해 모델을 이용하여 텍스트를 형태소, 단어(word), 또는 구(phrase)의 단위로 파싱(parse)할 수 있다. 예를 들어, 서버(300)는 "TV에서 보헤미안 랩소디 틀어줘~"의 텍스트를 'TV', '보헤미안 랩소디', '틀어', 및 '줘'로 파싱할 수 있다. In step S610, the server 300 parses the text converted in step S520. In one embodiment, the server 300 may parse the text in units of morphemes, words, or phrases using the first natural language understanding model. For example, the server 300 may parse the text of "Play Bohemian Rhapsody on TV~" as'TV','Bohemian Rhapsody','Play', and'Give me'.

단계 S620에서, 서버(300)는 파싱된 텍스트 중에 디바이스의 명칭이 포함되어 있는지를 판단한다. 일 실시예에서, 서버(300)는 제1 자연어 이해 모델을 이용하여, 파싱된 형태소, 단어, 또는 구의 언어적 특징(예: 문법적 요소)을 분석하고, 파싱된 텍스트로부터 추출된 단어의 의미를 추론할 수 있다. 서버(300)는, 추론된 단어의 의미를 제1 자연어 이해 모델에서 제공되는 기 정의된 디바이스 명칭들과 비교함으로써, 추론된 단어의 의미에 대응되는 디바이스 명칭을 결정할 수 있다. 예를 들어, 서버(300)는 "TV에서 보헤미안 랩소디 틀어줘~"의 텍스트를 파싱하여 추출된 단어 또는 구를 기 정의된 디바이스 명칭들과 비교함으로써, 'TV'를 디바이스 명칭으로서 결정할 수 있다. 이 경우, 서버(300)는 텍스트가 디바이스 명칭을 포함하고 있다고 판단할 수 있다. In step S620, the server 300 determines whether the name of the device is included in the parsed text. In one embodiment, the server 300 analyzes linguistic features (eg, grammatical elements) of parsed morphemes, words, or phrases using the first natural language understanding model, and analyzes the meaning of words extracted from the parsed text. I can infer. The server 300 may determine a device name corresponding to the meaning of the inferred word by comparing the meaning of the inferred word with predefined device names provided in the first natural language understanding model. For example, the server 300 may determine'TV' as the device name by parsing the text "Play Bohemian Rhapsody on TV" and comparing the extracted word or phrase with predefined device names. In this case, the server 300 may determine that the text includes the device name.

다른 예를 들어, "보헤미안 랩소디 틀어줘~"의 텍스트를 파싱하여 추출된 단어 또는 구를 기 정의된 디바이스의 명칭들과 비교하더라도 디바이스 명칭에 대응되는 단어 또는 구를 추출할 수 없는 경우, 서버(300)는 텍스트에 디바이스 명칭이 포함되지 않는다고 판단할 수 있다. For another example, if the word or phrase corresponding to the device name cannot be extracted even if the word or phrase extracted by parsing the text of "Play Bohemian Rhapsody~" is compared with the predefined device names, the server ( 300) may determine that the device name is not included in the text.

단계 S620에서 파싱된 텍스트 중에 디바이스 명칭이 포함되어 있다고 판단한 경우(YES), 서버(300)는 텍스트 내에 포함된 타겟 디바이스의 명칭에 기초하여, 타겟 디바이스의 타입을 결정한다 (단계 S630). 예를 들어, 서버(300)는 "TV에서 보헤미안 랩소디 틀어줘~"의 텍스트를 파싱하여 'TV'를 디바이스 명칭으로서 추출한 경우, 'TV'를 타겟 디바이스 타입으로 결정할 수 있다. If it is determined that the device name is included in the text parsed in step S620 (YES), the server 300 determines the type of the target device based on the name of the target device included in the text (step S630). For example, when the server 300 parses the text “Play Bohemian Rhapsody on TV~” and extracts “TV” as the device name, “TV” may be determined as the target device type.

일 실시예에서, 파싱된 텍스트에 디바이스의 보통 명칭 및 설치 위치가 포함될 수 있다. 이 경우, 서버(300)는 텍스트를 파싱하여 추출된 단어 또는 구를 기 정의된 단어 또는 구와 매칭시켜 디바이스의 보통 명칭 및 설치 위치에 관한 단어를 획득할 수 있다. 예를 들어, 텍스트가 "거실 TV에서 보헤미안 랩소디 틀어줘~"인 경우, 서버(300)는 텍스트를 파싱한 후, 파싱된 텍스트로부터 디바이스의 보통 명칭(TV)과 설치 위치(거실)에 관한 단어를 추출할 수 있다. 서버(300)는 추출된 디바이스의 보통 명칭 및 설치 위치에 기초하여 타겟 디바이스의 타입을 결정할 수 있다.In one embodiment, the parsed text may include the generic name and installation location of the device. In this case, the server 300 may parse the text and match the extracted word or phrase with a predefined word or phrase to obtain a common name of the device and a word regarding the installation location. For example, if the text is "Play Bohemian Rhapsody on a living room TV~", the server 300 parses the text, and then, from the parsed text, a word about the common name (TV) of the device and the installation location (living room) Can be extracted. The server 300 may determine the type of the target device based on the extracted device name and the installation location.

단계 S620에서 파싱된 텍스트 중에 디바이스 명칭이 포함되지 않는다고 판단한 경우(NO), 서버(300)는 제1 자연어 이해 모델을 이용하여 텍스트를 해석함으로써, 제1 인텐트를 인식한다 (단계 S640). 일 실시예에서, 서버(300)는 제1 자연어 이해 모델을 이용하여 문법적 분석(syntactic analyze) 또는 의미적 분석(semantic analyze)을 수행함으로써, 텍스트로부터 사용자의 제1 인텐트(intent)를 결정할 수 있다. 서버(300)는 제1 자연어 이해 모델을 이용하여, 파싱된 텍스트로부터 추출된 형태소, 단어, 또는 구의 언어적 특징(예: 문법적 요소)을 분석함으로써, 파싱된 텍스트로부터 추출된 단어의 의미를 추론할 수 있다. 서버(300)는, 추론된 단어의 의미를 제1 자연어 이해 모델에서 제공되는 기 정의된 인텐트들과 비교함으로써, 추론된 단어의 의미에 대응되는 제1 인텐트를 결정할 수 있다. 예를 들어, 서버(300)는 "보헤미안 랩소디 틀어줘~"의 텍스트를 '보헤미안 랩소디', '틀어', '줘~'와 같이 단어 또는 구 단위로 파싱하고, 파싱된 단어 또는 구를 기 정의된 인텐트와 비교하여 보헤미안 랩소디의 식별값(예: 영화 제목)을 갖는 컨텐트를 재생하는 '컨텐트 재생(play)'을 제1 인텐트로 결정할 수 있다. If it is determined that the device name is not included in the text parsed in step S620 (NO), the server 300 recognizes the first intent by analyzing the text using the first natural language understanding model (step S640). In one embodiment, the server 300 may determine a user's first intent from the text by performing syntactic analysis or semantic analysis using the first natural language understanding model. have. The server 300 infers the meaning of the word extracted from the parsed text by analyzing the linguistic features (eg, grammatical elements) of morphemes, words, or phrases extracted from the parsed text using the first natural language understanding model. can do. The server 300 may determine a first intent corresponding to the meaning of the inferred word by comparing the meaning of the inferred word with predefined intents provided in the first natural language understanding model. For example, the server 300 parses the text of "Play Bohemian Rhapsody~" into words or phrases such as'Bohemian Rhapsody','Turn','Give~', and pre-define the parsed word or phrase. A'content play' for playing content having an identification value (eg, a movie title) of a Bohemian Rhapsody compared with the intent may be determined as the first intent.

단계 S650에서, 서버(300)는 복수의 디바이스의 특성 정보를 획득한다. 일 실시예에서, 서버(300)는 사용자의 계정 정보(예를 들어, 사용자 id)와 관련하여 IoT 클라우드 서버(400)에 기 등록된 복수의 디바이스의 특성 정보를, IoT 클라우드 서버(400)로부터 수신할 수 있다. 서버(300)는 사용자의 계정 정보와 관련하여 기 등록된 복수의 디바이스에 관한 특성 정보를 IoT 클라우드 서버(400)에 요청할 수 있다. 서버(300)는 IoT 클라우드 서버(400)로부터 사용자의 계정 정보와 관련하여 등록된 복수의 디바이스에 관한 특성 정보를 수신할 수 있다. 특성 정보는 디바이스 타입을 결정하기 위하여 서버에 의해 이용되는 정보일 수 있다. 특성 정보는 디바이스 정보 중 일부를 포함할 수 있다. 특성 정보는 예를 들어, 복수의 디바이스 각각의 식별 값(디바이스 id), 및 기능 수행 능력 정보(capability)에 관한 정보를 포함할 수 있다. In step S650, the server 300 acquires characteristic information of a plurality of devices. In one embodiment, the server 300 provides characteristic information of a plurality of devices previously registered in the IoT cloud server 400 in relation to the user's account information (eg, user ID) from the IoT cloud server 400. Can receive. The server 300 may request the IoT cloud server 400 for characteristic information about a plurality of devices that are previously registered in relation to the user's account information. The server 300 may receive characteristic information on a plurality of devices registered in relation to the user's account information from the IoT cloud server 400. The characteristic information may be information used by the server to determine the device type. The characteristic information may include some of the device information. The characteristic information may include, for example, information on an identification value (device id) of each of a plurality of devices, and function performance capability information (capability).

서버(300)는 사용자의 계정 정보와 관련하여 기 등록된 복수의 디바이스에 대한 특성 정보를 저장할 수 있으며, 이 경우 서버(300)는 저장된 특성 정보를 이용할 수 있다.The server 300 may store characteristic information for a plurality of devices that are previously registered in relation to the user's account information, and in this case, the server 300 may use the stored characteristic information.

단계 S660에서, 서버(300)는 제1 인텐트 및 특성 정보에 기초하여 타겟 디바이스 타입을 결정한다. 일 실시예에서, 서버(300)는 제1 인텐트와 타겟 디바이스 타입 간의 관련성을 판단할 수 있는 매칭 모델에 기초하여, 텍스트로부터 인식된 제1 인텐트와 관련된 타겟 디바이스 타입을 결정할 수 있다. 매칭 모델은 제1 인텐트와 타겟 디바이스의 특성 정보에 기초하여 기 정의되어 있을 수 있다. 매칭 모델에는 예를 들어, 제1 인텐트가 나타내는 동작에 대하여 적어도 하나의 기능이 매칭될 수 있다. 서버(300)는 디바이스의 특성 정보에 기초하여, 제1 인텐트에 매칭된 기능을 수행할 수 있는 디바이스를 식별함으로써, 적어도 하나의 디바이스 타입을 결정할 수 있다. 디바이스의 기능 수행 능력 정보는, 디바이스가 실행할 수 있는 기능에 관한 정보를 의미할 수 있다. 예를 들어, 모바일 폰의 기능 수행 능력은 SNS, 지도, 전화, 인터넷 등이고, TV의 기능 수행 능력은 컨텐트 재생, 에어컨의 수행 능력은 공기의 온도 조절일 수 있다.In step S660, the server 300 determines a target device type based on the first intent and characteristic information. In an embodiment, the server 300 may determine a target device type related to the first intent recognized from the text, based on a matching model capable of determining the relationship between the first intent and the target device type. The matching model may be predefined based on the first intent and characteristic information of the target device. In the matching model, for example, at least one function may be matched with respect to an operation indicated by the first intent. The server 300 may determine at least one device type by identifying a device capable of performing a function matched with the first intent based on the device characteristic information. The function performance capability information of the device may mean information on a function that the device can execute. For example, the mobile phone's ability to perform functions may be SNS, map, phone, Internet, etc., the TV's ability to play content, and the air conditioner's ability to control air temperature.

예를 들어, 매칭 모델에서 '컨텐트 재생'의 제1 인텐트는 영화 또는 음악과 같은 컨텐트를 재생할 수 있는 기능 수행 능력을 갖는 'TV' 또는 '스피커'와 매칭되는 것으로 정의될 수 있다. 다른 예를 들어, 매칭 모델에서 '온도 제어'의 제1 인텐트는 공기의 온도를 올리거나 내릴 수 있는 기능을 수행하는 능력을 갖는 디바이스인 '에어컨'과 매칭되는 것으로 정의될 수 있다. For example, in the matching model, the first intent of'playing content' may be defined as being matched with'TV' or'speaker' having a function performance capability capable of playing content such as a movie or music. As another example, in the matching model, the first intent of'temperature control' may be defined as being matched with'air conditioner', which is a device having the ability to raise or lower the temperature of air.

일 실시예에서, 매칭 모델에서 제1 인텐트와 타겟 디바이스 타입 간의 매칭 룰 또는 매칭 패턴이 기 정의되어 있을 수도 있다. In an embodiment, a matching rule or matching pattern between the first intent and the target device type may be predefined in the matching model.

매칭 모델에서 매칭의 정도, 즉 제1 인텐트와 타겟 디바이스 타입 간의 관련성 정도는 확률값으로 산출될 수 있다. 서버(300)는 텍스트로부터 결정된 제1 인텐트에 매칭 모델을 적용함으로서, 제1 인텐트와 복수의 타겟 디바이스 타입 간의 매칭 정도를 나타내는 복수의 확률값을 획득하고, 획득된 복수의 확률값 중 최대값을 갖는 타겟 디바이스 타입을 최종 타겟 디바이스 타입으로 결정할 수 있다. In the matching model, the degree of matching, that is, the degree of correlation between the first intent and the target device type may be calculated as a probability value. The server 300 obtains a plurality of probability values indicating the degree of matching between the first intent and a plurality of target device types by applying the matching model to the first intent determined from the text, and determines the maximum value among the obtained plurality of probability values. The target device type to have may be determined as the final target device type.

예를 들어, 매칭 모델을 적용하여 산출된 "컨텐트 재생"의 제1 인텐트와 "TV" 간의 매칭 정도를 나타내는 제1 확률값은 다른 타겟 디바이스 타입, 예를 들어 "냉장고"와 "컨텐트 재생" 간의 매칭 정도를 나타내는 제2 확률값 보다 클 수 있다. 이 경우, 서버(300)는 컨텐트 재생의 제1 인텐트와 관련된 타겟 디바이스 타입으로 TV를 결정할 수 있다. 다른 예에서, 제1 인텐트가 "온도 제어"인 경우, 제1 인텐트와 "TV" 간의 매칭 정도를 나타내는 확률값 보다는 제1 인텐트와 "에어컨"의 매칭 정도를 나타내는 확률값이 더 높을 수 있다. 이와 같은 경우에, 서버(300)는 온도 제어의 제1 인텐트와 관련된 타겟 디바이스 타입으로 에어컨을 결정할 수 있다. For example, a first probability value indicating the degree of matching between the first intent of the “content playback” calculated by applying the matching model and the “TV” is between different target device types, for example, between “refrigerator” and “content playback” It may be greater than the second probability value indicating the degree of matching. In this case, the server 300 may determine the TV as a target device type related to the first intent of content playback. In another example, when the first intent is "temperature control", a probability value representing the degree of matching between the first intent and "air conditioner" may be higher than a probability value representing the degree of matching between the first intent and "TV". . In this case, the server 300 may determine the air conditioner as a target device type related to the first intent of temperature control.

서버(300)는 예를 들어, 룰 베이스 시스템(rule-based system)을 이용하여 제1 인텐트와 타겟 디바이스 타입 간의 매칭 모델을 학습할 수 있으나, 이에 한정되는 것은 아니다. 서버(300)가 이용하는 인공지능 모델은 예를 들어, 신경망 베이스 시스템(neural network-based system)(예: 컨볼루션 신경망(convolution neural network; CNN, 순환 신경망(recurrent neural network; RNN), SVM(Support Vector Machine), 선형 회귀(linear regression), 로지스틱 회귀(logistic regression), 나이브 베이즈 분류(Naive Bayes), 랜덤 포레스트(random forest), decision tree, 또는 k-nearest neighbor algorithm 일 수 있다. 또는, 전술한 것의 조합 또는 이와 다른 인공지능 모델일 수도 있다. The server 300 may learn a matching model between the first intent and the target device type using, for example, a rule-based system, but is not limited thereto. The artificial intelligence model used by the server 300 is, for example, a neural network-based system (e.g., a convolution neural network; CNN, a recurrent neural network; RNN), and SVM (Support Vector Machine), linear regression, logistic regression, Naive Bayes, random forest, decision tree, or k-nearest neighbor algorithm. It could be a combination of one or another AI model.

도 7은 본 개시의 서버(300)가 텍스트로부터 결정된 타겟 디바이스 타입 및 복수의 디바이스에 관한 정보에 기초하여 타겟 디바이스를 결정하는 방법을 도시한 흐름도이다. 7 is a flowchart illustrating a method of determining a target device based on a target device type determined from text and information on a plurality of devices by the server 300 of the present disclosure.

단계 S710에서, 서버(300)는 사용자의 계정 정보를 IoT 클라우드 서버(400)에 전송함으로써, 디바이스 정보를 요청한다. 서버(300)는 클라이언트 디바이스(110)로부터 획득한 사용자의 계정 정보(예를 들어, 사용자 id)를 IoT 클라우드 서버(400)에게 전송하고, IoT 클라우드 서버(400)에 사용자의 계정 정보와 관련하여 기 등록된 사용자의 복수의 디바이스에 관한 디바이스 정보를 요청할 수 있다. In step S710, the server 300 requests device information by transmitting the user's account information to the IoT cloud server 400. The server 300 transmits the user's account information (eg, user ID) acquired from the client device 110 to the IoT cloud server 400, and transmits the user's account information to the IoT cloud server 400 Device information on a plurality of devices of a user who has been registered may be requested.

일 실시예에서, 서버(300)는 결정된 타겟 디바이스 타입에 관한 정보를 사용자의 계정 정보와 함께 IoT 클라우드 서버(400)에 전송할 수 있다. 이 경우, 서버(300)는 사용자의 계정 정보와 관련하여 기 등록된 복수의 디바이스 중 결정된 타겟 디바이스 타입에 해당되는 디바이스에 관한 디바이스 정보만을 IoT 클라우드 서버(400)에 요청할 수 있다.In an embodiment, the server 300 may transmit information on the determined target device type to the IoT cloud server 400 together with the user's account information. In this case, the server 300 may request from the IoT cloud server 400 only device information regarding a device corresponding to the determined target device type among a plurality of devices previously registered in relation to the user's account information.

일 실시예에서, 서버(300)는 메모리(306)에 복수의 디바이스에 대한 정보를 저장할 수 있으며, 사용자의 계정 정보를 이용하여 메모리(306)에 저장되어 있는 복수의 디바이스에 대한 정보를 검색할 수 있다.In one embodiment, the server 300 may store information on a plurality of devices in the memory 306, and retrieve information on a plurality of devices stored in the memory 306 using user account information. I can.

단계 S720에서, 서버(300)는 사용자의 계정 정보와 관련하여 기 등록된 복수의 디바이스의 디바이스 정보를 IoT 클라우드 서버(400)로부터 수신한다. IoT 클라우드 서버(400)는, 서버(300)로부터 수신한 사용자의 계정 정보 별로 기 등록된 복수의 디바이스에 관한 리스트를 저장하고, 리스트에 포함된 복수의 디바이스 각각에 관한 기능 수행 능력 정보, 위치 정보, 및 상태 정보 중 적어도 하나를 포함하는 디바이스 정보를 저장할 수 있다. 상태 정보는, 예를 들어, 사용자의 계정 정보와 관련하여 기 등록된 복수의 디바이스의 전원 온오프(on/off) 정보, 및 현재 실행하고 있는 동작 정보 중 적어도 하나를 포함할 수 있다. 서버(300)는 IoT 클라우드 서버(400)로부터 복수의 디바이스 각각의 기능 수행 능력 정보, 위치 정보, 및 상태 정보 중 적어도 하나를 수신할 수 있다. In step S720, the server 300 receives device information of a plurality of devices previously registered in relation to the user's account information from the IoT cloud server 400. The IoT cloud server 400 stores a list of a plurality of devices previously registered for each user's account information received from the server 300, and function performance information and location information for each of the plurality of devices included in the list Device information including at least one of, and state information may be stored. The status information may include, for example, at least one of power on/off information of a plurality of devices previously registered in relation to the user's account information, and operation information currently being executed. The server 300 may receive at least one of function performance information, location information, and status information of each of a plurality of devices from the IoT cloud server 400.

일 실시예에서, 서버(300)가 메모리(306)에 복수의 디바이스에 대한 정보를 저장하고 있는 경우, 메모리(306)에 저장된 정보 중 사용자의 계정 정보와 관련하여 기 등록된 복수의 디바이스에 대한 정보를 획득할 수 있다.In one embodiment, when the server 300 stores information on a plurality of devices in the memory 306, among information stored in the memory 306, information about a plurality of devices previously registered in relation to the user's account information Information can be obtained.

단계 S730에서, 서버(300)는 복수의 디바이스 중 결정된 타입에 해당되는 적어도 하나의 디바이스를 선택한다. 일 실시예에서, 서버(300)는 제1 인텐트와 관련된 타겟 디바이스 타입을 하나의 타입만 결정한 경우, 결정된 타입에 해당되는 적어도 하나의 디바이스를 선택할 수 있다. 다른 실시예에서, 서버(300)가 제1 인텐트와 관련된 타겟 디바이스 타입으로서 복수의 타입을 결정한 경우, 서버(300)는 복수의 타겟 디바이스 타입 각각에 해당되는 복수의 디바이스를 선택할 수 있다. 예를 들어, 타겟 디바이스 타입으로서 'TV'와 '스피커'를 포함하는 복수의 타입이 결정된 경우, 서버(300)는 사용자의 계정 정보와 관련하여 기 등록된 복수의 디바이스 중 TV에 해당되는 복수의 디바이스, 예를 들어 거실 TV, 안방 TV, 및 자녀방 TV와, 스피커에 해당되는 인공지능 스피커 및 블루투스 오디오 스피커를 각각 선택할 수 있다. In step S730, the server 300 selects at least one device corresponding to the determined type from among a plurality of devices. In an embodiment, when only one type of target device related to the first intent is determined, the server 300 may select at least one device corresponding to the determined type. In another embodiment, when the server 300 determines a plurality of types as target device types related to the first intent, the server 300 may select a plurality of devices corresponding to each of the plurality of target device types. For example, when a plurality of types including'TV' and'speaker' are determined as the target device type, the server 300 may select a plurality of devices corresponding to the TV among the plurality of devices previously registered in relation to the user's account information. Devices such as a living room TV, a home TV, and a children's room TV, and an artificial intelligence speaker and a Bluetooth audio speaker corresponding to the speaker may be selected, respectively.

단계 S740에서, 서버(300)는 선택된 복수의 디바이스의 디바이스 정보를 고려함으로써, 타겟 디바이스 후보가 복수개인지 여부를 판단한다. 일 실시예에서, 서버(300)는 타겟 디바이스 타입이 하나인 경우, 타겟 디바이스의 타입에 해당되는 디바이스의 디바이스 정보에 기초하여 타겟 디바이스 후보를 결정하고, 결정된 타겟 디바이스 후보가 복수개인지 여부를 판단할 수 있다. 다른 실시예에서, 타겟 디바이스의 타입이 복수개인 경우, 서버(300)는 복수의 타입에 해당되는 복수의 디바이스 각각의 상태 정보 또는 설치 위치 정보에 기초하여 타겟 디바이스 후보를 결정하고, 결정된 타겟 디바이스 후보가 복수개인지 여부를 판단할 수 있다. In step S740, the server 300 determines whether there are a plurality of target device candidates by considering device information of a plurality of selected devices. In one embodiment, when the target device type is one, the server 300 determines a target device candidate based on device information of a device corresponding to the target device type, and determines whether there are a plurality of the determined target device candidates. I can. In another embodiment, when there are multiple types of target devices, the server 300 determines a target device candidate based on status information or installation location information of each of a plurality of devices corresponding to the plurality of types, and the determined target device candidate It can be determined whether or not is a plurality of.

단계 S740에서, 타겟 디바이스 후보가 하나로 판단되는 경우(NO), 서버(300)가 하나의 타겟 디바이스를 최종 타겟 디바이스로 결정한다(단계 S750). In step S740, if one target device candidate is determined (NO), the server 300 determines one target device as the final target device (step S750).

단계 S740에서, 타겟 디바이스 후보가 복수개인 경우(YES), ⓐ 단계로 진행되는데, ⓐ 단계는 도 8에서 설명하기로 한다. In step S740, if there are a plurality of target device candidates (YES), the process proceeds to step ⓐ, which will be described with reference to FIG. 8.

도 8은 본 개시의 서버(300)가 복수의 디바이스의 정보를 고려하더라도 타겟 디바이스를 결정할 수 없는 경우, 사용자의 응답 입력에 기초하여 타겟 디바이스를 결정하는 방법에 관한 흐름도이다. 도 8은 도 7의 단계 S740에 도시된 ⓐ의 경우에 관한 구체적인 실시예를 도시한 도면이다. 8 is a flowchart illustrating a method of determining a target device based on a user's response input when the server 300 of the present disclosure cannot determine the target device even if the information of a plurality of devices is considered. 8 is a diagram showing a specific embodiment of the case of ⓐ shown in step S740 of FIG. 7.

단계 S810에서, 서버(300)는 자연어 생성 모델(Natural Language Generation; NLG)을 이용하여, 타겟 디바이스를 선택하기 위한 질의 메시지를 생성한다. 서버(300)는 도 7의 단계 S730에서 선택된, 특정 타입에 해당되는 복수의 디바이스 후보 중 어느 하나의 타겟 디바이스를 선택하기 위한 질의 메시지를 생성할 수 있다. 예를 들어, 도 7의 단계 S730에서 선택된 복수의 디바이스의 타입이 TV인 경우, 네트워크 내에 TV가 '거실 TV', '안방 TV', '자녀방 TV'로 복수 개 존재할 수 있다. 단계 S810에서 서버(300)는 선택된 복수 개의 디바이스 중 타겟 디바이스를 결정하는 명확화(disambiguation) 단계를 수행할 수 있다. 일 실시예에서, 서버(300)는 자연어 생성 모델을 이용하여 복수의 디바이스 후보 중 어느 디바이스를 타겟 디바이스로 결정할 것인지에 관하여 사용자의 응답을 유도하는 질의 메시지를 생성할 수 있다. In step S810, the server 300 generates a query message for selecting a target device using a natural language generation model (NLG). The server 300 may generate a query message for selecting any one target device from among a plurality of device candidates corresponding to a specific type selected in step S730 of FIG. 7. For example, if the type of the plurality of devices selected in step S730 of FIG. 7 is a TV, a plurality of TVs may exist in the network as'living room TV','home room TV', and'children's room TV'. In step S810, the server 300 may perform a disambiguation step of determining a target device among a plurality of selected devices. In an embodiment, the server 300 may generate a query message that induces a user's response as to which device among a plurality of device candidates to be determined as a target device using the natural language generation model.

일 실시예에서, 질의 메시지는 특정 타입에 해당되는 복수의 디바이스 후보를 나열하는 리스트(list)를 포함하고, 리스트에 포함된 복수의 디바이스 후보 중 타겟 디바이스를 선택할 것을 사용자에게 요청하는 메시지일 수 있다. 예를 들어, 서버(300)는 "1. 거실 TV, 2. 안방 TV, 3. 자녀방 TV 중 어느 TV로 보헤미안 랩소디 영화를 재생할까요?"와 같이 복수의 TV를 기설정된 순서로 나열하는 리스트를 사용자에게 제공하는 질의 메시지를 생성할 수 있다. In one embodiment, the query message includes a list listing a plurality of device candidates corresponding to a specific type, and may be a message requesting the user to select a target device from among a plurality of device candidates included in the list. . For example, the server 300 is a list listing a plurality of TVs in a preset order, such as "1. Living room TV, 2. home room TV, 3. children's room TV on which TV to play the Bohemian Rhapsody movie?" You can create a query message that provides to the user.

다른 실시예에서, 질의 메시지는 복수의 디바이스 후보를 설치 위치에 따라 선택하게 하는 메시지일 수 있다. 예를 들어, 서버(300)는 "거실, 안방, 자녀방에 있는 TV 중 어느 TV로 영화 보헤미안 랩소디를 재생할까요?"와 같이 복수의 TV를 위치에 기초하여 제시하고, 제시된 복수의 TV 중 타겟 디바이스를 선택할 것을 사용자에게 요청하는 질의 메시지를 생성할 수 있다. In another embodiment, the query message may be a message for selecting a plurality of device candidates according to the installation location. For example, the server 300 presents a plurality of TVs based on the location, such as "Which TV will play the movie Bohemian Rhapsody on any of the TVs in the living room, home room, and children's room?" You can create a query message asking the user to select a device.

서버(300)는 자연어 생성 모델이 생성한 질의 메시지에 TTS(Text to Speech) 모델을 이용하여, 텍스트 형태의 질의 메시지를 오디오 신호로 변환할 수 있다.The server 300 may convert a text query message into an audio signal by using a text to speech (TTS) model in the query message generated by the natural language generation model.

단계 S820에서, 서버(300)는 클라이언트 디바이스(110)에 질의 메시지를 전송함으로써, 클라이언트 디바이스(110)가 질의 메시지를 출력하도록 요청한다. 서버(300)는 클라이언트 디바이스(110)에 질의 메시지를 전송할 수 있다. 서버(300)는 클라이언트 디바이스(110)에 오디오 신호로 변환된 질의 메시지를 전송할 수 있다. 클라이언트 디바이스(110)가 디스플레이를 포함하고 있는 디바이스인 경우, 텍스트 형태의 질의 메시지를 전송할 수도 있다.In step S820, the server 300 requests the client device 110 to output a query message by transmitting a query message to the client device 110. The server 300 may transmit a query message to the client device 110. The server 300 may transmit a query message converted to an audio signal to the client device 110. When the client device 110 is a device including a display, a text query message may be transmitted.

단계 S830에서, 서버(300)는 클라이언트 디바이스(110)로부터 사용자의 응답 입력을 수신한다. 클라이언트 디바이스(110)는 질의 메시지 내에 포함된 복수의 디바이스 중 특정 디바이스를 선택하는 사용자의 응답 입력을 수신할 수 있다. 예를 들어, 질의 메시지가 "1. 거실 TV, 2. 안방 TV, 3. 자녀방 TV 중 어느 TV로 영화 보헤미안 랩소디를 재생할까요?"와 같이 복수의 TV를 기설정된 순서로 나열하는 리스트를 사용자에게 제공하는 메시지인 경우, 클라이언트 디바이스는 "첫번째 TV"와 같이 특정 서수를 통해 타겟 디바이스를 선택하는 응답 입력을 수신할 수 있다. 예를 들어, 질의 메시지가 "거실, 안방, 자녀방에 있는 TV 중 어느 TV로 영화 보헤미안 랩소디를 재생할까요?"와 같이 복수의 TV를 위치에 기초하여 선택할 것을 사용자에게 요청하는 메시지인 경우, 클라이언트 디바이스는 "거실"과 같이 설치 위치를 통해 타겟 디바이스를 선택하는 사용자의 응답 입력을 수신할 수 있다. 서버(300)는 클라이언트 디바이스로부터 사용자의 응답 입력을 수신할 수 있다. In step S830, the server 300 receives a user's response input from the client device 110. The client device 110 may receive a response input from a user selecting a specific device from among a plurality of devices included in the query message. For example, the query message is "1. Living room TV, 2. home room TV, 3. children's room TV on which TV to play the movie Bohemian Rhapsody?", a user who lists a plurality of TVs in a preset order. In the case of a message provided to the client, the client device may receive a response input for selecting a target device through a specific ordinal number, such as "first TV". For example, if the query message is a message asking the user to select multiple TVs based on location, such as "Which TV in the living room, master room, or children's room will play the movie Bohemian Rhapsody?" The device may receive a response input from a user selecting a target device through an installation location, such as "living room". The server 300 may receive a user's response input from a client device.

사용자의 응답 입력은, 클라이언트 디바이스(110)로부터 음성 신호의 형태로 전송될 수 있다. The user's response input may be transmitted from the client device 110 in the form of a voice signal.

단계 S840에서, 서버(300)는 사용자의 응답 입력에 기초하여 타겟 디바이스를 결정한다. 서버(300)는 수신된 응답 입력을 ASR 과정을 거쳐 텍스트로 변환하고, 변환된 텍스트를 자연어 이해 모델을 이용하여 분석함으로써, 사용자가 선택한 타겟 디바이스에 관한 단어를 추출할 수 있다. 서버(300)는 자연어 이해 모델을 이용하여 추출된 단어의 의미를 해석하고, 추출된 단어에 기초하여 타겟 디바이스를 결정할 수 있다. In step S840, the server 300 determines a target device based on the user's response input. The server 300 converts the received response input into text through an ASR process, and analyzes the converted text using a natural language understanding model, thereby extracting a word for a target device selected by the user. The server 300 may analyze the meaning of the extracted word by using the natural language understanding model and determine a target device based on the extracted word.

일 실시예에서는, ASR 과정을 거쳐 사용자의 응답 입력에 대한 텍스트를 획득하고, 획득한 텍스트를 기 정의된 텍스트와 매칭하여 텍스트의 의미를 판단할 수 있다. 이 때 사용되는 ASR 모델 및 자연어 이해 모델은 도 2a 및 도 2b에서 설명한 모델과는 상이한 모델일 수 있다. 물론, 서버(300)는 도 2a 및 도 2b에서 설명한 모델 중 적어도 하나를 사용할 수도 있다.In one embodiment, a text for a user's response input is obtained through an ASR process, and the meaning of the text may be determined by matching the obtained text with a predefined text. The ASR model and the natural language understanding model used at this time may be different from the models described in FIGS. 2A and 2B. Of course, the server 300 may use at least one of the models described in FIGS. 2A and 2B.

도 9는 본 개시의 서버(300)가 제2 자연어 이해 모델을 이용하여 타겟 디바이스가 수행할 동작에 관한 동작 정보를 획득하는 방법을 도시한 흐름도이다. 도 9는 도 5의 단계 S540의 구체적인 실시예를 도시한 도면이다.9 is a flowchart illustrating a method of obtaining, by the server 300 of the present disclosure, operation information regarding an operation to be performed by a target device using a second natural language understanding model. 9 is a diagram illustrating a specific embodiment of step S540 of FIG. 5.

단계 S910에서, 서버(300)는 단계 S530에서 결정한 타겟 디바이스의 타입을 이용하여, 타겟 디바이스 타입에 특화된 제2 자연어 이해 모델(NLU)을 선택한다. 제2 자연어 이해 모델은 특정 타입의 디바이스와 관련하여 텍스트를 해석하도록 학습된 모델이다. 제2 자연어 이해 모델은 텍스트를 해석함으로써 특정 타입의 디바이스들와 관련된 제2 인텐트 및 파라미터들을 결정하도록 학습된 모델일 수 있다. 제2 자연어 이해 모델은 복수 개가 존재할 수 있으며, 각 제2 자연어 이해 모델은 각 디바이스 타입에 대응한다. 일 실시예에서, 서버(300)는 결정된 타겟 디바이스 타입의 식별 정보를 기초로 복수의 제2 자연어 이해 모델 중 타겟 디바이스 타입에 대응되는 제2 자연어 이해 모델을 선택할 수 있다. In step S910, the server 300 selects a second natural language understanding model (NLU) specialized for the target device type by using the type of the target device determined in step S530. The second natural language understanding model is a model trained to interpret text in relation to a specific type of device. The second natural language understanding model may be a model trained to determine second intents and parameters related to specific types of devices by interpreting the text. There may be a plurality of second natural language understanding models, and each second natural language understanding model corresponds to each device type. In an embodiment, the server 300 may select a second natural language understanding model corresponding to the target device type from among the plurality of second natural language understanding models based on the determined identification information of the target device type.

단계 S920에서, 서버(300)는 제2 자연어 이해 모델을 이용하여 텍스트를 분석함으로써, 제2 인텐트 및 파라미터를 획득한다. 일 실시예에서, 서버(300)는 제2 자연어 이해 모델을 이용하여 텍스트를 단어, 또는 구 단위로 파싱하고, 문법적 분석 및 의미적 분석을 통해 파싱된 단어, 또는 구의 의미를 추론하고, 추론된 의미를 기 정의된 인텐트 및 파라미터에 매칭시켜 제2 인텐트 및 파라미터를 획득할 수 있다. 일 실시예에서, 서버(300)는 단계 S610에서 수행한 텍스트에 대한 파싱 결과를 이용하여, 제2 인텐트 및 파라미터를 획득할 수 있다.In step S920, the server 300 obtains a second intent and a parameter by analyzing the text using the second natural language understanding model. In one embodiment, the server 300 parses the text into words or phrases using the second natural language understanding model, infers the meaning of the parsed word or phrase through grammatical analysis and semantic analysis, and inferred The second intent and parameter may be obtained by matching the meaning with the predefined intent and parameter. In an embodiment, the server 300 may obtain a second intent and a parameter by using the result of parsing the text performed in step S610.

제2 인텐트는 텍스트에 포함된 사용자의 발화 의도를 나타내는 정보로서, 특정 타입의 디바이스가 수행할 동작을 결정하는 데 사용될 수 있다. 제2 인텐트는 제2 자연어 이해 모델을 이용하여 텍스트를 분석함으로써 결정될 수 있다. 파라미터는 제2 인텐트와 관련된 타겟 디바이스의 세부 동작들을 결정하기 위한 변수(variable) 정보를 의미한다. 파라미터를 제2 인텐트에 대응하는 정보이며, 하나의 제2 인텐트에 복수 종류의 파라미터가 대응될 수 있다. 파라미터는 타겟 디바이스의 동작 정보를 결정하기 위한 변수 정보와, 텍스트가 그 변수 정보와 관련될 확률을 나타내는 수치값을 포함할 수 있다. 제2 자연어 이해 모델을 이용하여 텍스트를 해석한 결과, 파라미터를 나타내는 변수 정보가 복수개 획득되는 경우, 각 변수 정보에 대응되는 수치값이 최대인 변수 정보가 파라미터로 결정될 수 있다. 예를 들어, "거실 TV에서 보헤미안 랩소디 틀어줘~"의 텍스트에서, 제2 인텐트는 TV와 관련된 동작을 나타내는 '컨텐트 재생(play)'이고, 파라미터는 'TV', '거실 TV', '영화' 또는 영화 제목인'보헤미안 랩소디'로 결정될 수 있다.The second intent is information indicating the user's speech intention included in the text, and may be used to determine an operation to be performed by a specific type of device. The second intent may be determined by analyzing the text using the second natural language understanding model. The parameter means variable information for determining detailed operations of the target device related to the second intent. The parameter is information corresponding to the second intent, and a plurality of types of parameters may correspond to one second intent. The parameter may include variable information for determining operation information of the target device, and a numerical value indicating a probability that the text is related to the variable information. When a plurality of variable information indicating a parameter is obtained as a result of analyzing the text using the second natural language understanding model, variable information having a maximum numerical value corresponding to each variable information may be determined as a parameter. For example, in the text of "Play Bohemian Rhapsody on Living Room TV~", the second intent is'play content' representing an operation related to TV, and parameters are'TV','Living Room TV', ' It can be decided by the movie' or the title of the movie,'Bohemian Rhapsody'.

제2 자연어 이해 모델은 텍스트를 해석함으로써 특정 디바이스의 타입과 관련된 제2 인텐트를 결정하기 때문에, 제2 인텐트는 제1 인텐트 보다 구체적인 데이터일 수 있다. 제1 인텐트와 제2 인텐트에 관해서는 도 10에서 상세하게 설명하기로 한다.Since the second natural language understanding model determines a second intent related to a specific device type by analyzing text, the second intent may be more specific data than the first intent. The first intent and the second intent will be described in detail with reference to FIG. 10.

단계 S930에서, 서버(300)는 디바이스 별 액션 플랜(action plan)을 저장하고 있는 액션 플랜 관리 모델에 제2 인텐트, 파라미터, 및 타겟 디바이스의 식별 정보를 제공한다. 일 실시예에서, 서버(300)는 단계 S920에서 획득된 제2 인텐트 및 파라미터와, 결정된 타겟 디바이스의 디바이스 id를 액션 플랜 관리 모델에 제공할 수 있다. 액션 플랜 관리 모델은 액션 플랜을 생성하기 위하여 디바이스의 세부 동작과 관련된 정보를 관리하는 모델일 수 있다. 액션 플랜 관리 모델은, 디바이스 타입 별로 디바이스의 세부 동작들 및 세부 동작들 간의 관계에 관한 정보를 관리할 수 있다. 일 실시예에서, 액션 플랜 관리 모델은, 세부 동작들의 실행을 위하여 입력되는 파라미터 값 또는 동작들의 실행에 의해 출력되는 결과 값을 에 대응되는 정보를 디바이스의 타입 별로 저장할 수 있다. In step S930, the server 300 provides a second intent, a parameter, and identification information of a target device to an action plan management model storing an action plan for each device. In an embodiment, the server 300 may provide the second intent and parameter obtained in step S920 and the determined device ID of the target device to the action plan management model. The action plan management model may be a model that manages information related to detailed operations of a device in order to create an action plan. The action plan management model may manage detailed operations of a device for each device type and information about a relationship between detailed operations. In an embodiment, the action plan management model may store information corresponding to a parameter value input for execution of detailed operations or a result value output by execution of the operations for each device type.

일 실시예에서, 단계 S930은 IoT 클라우드 서버(400)에 의해 수행될 수 있다. 이 경우, 서버(300)는 단계 S920에서 획득한 제2 인텐트, 파라미터, 및 타겟 디바이스의 식별정보를 IoT 클라우드 서버(400)로 전송할 수 있다. IoT 클라우드 서버(400)는 액션 플랜 관리 모델을 포함할 수 있다.In an embodiment, step S930 may be performed by the IoT cloud server 400. In this case, the server 300 may transmit the second intent, parameter, and identification information of the target device acquired in step S920 to the IoT cloud server 400. The IoT cloud server 400 may include an action plan management model.

단계 S940에서, 서버(300)는 액션 플랜 관리 모델로부터 타겟 디바이스가 수행할 세부 동작에 관한 동작 정보를 획득한다. 액션 플랜 관리 모델은 서버(300)로부터 획득한 타겟 디바이스의 식별 정보로부터 타겟 디바이스를 식별하고, 타겟 디바이스에 관련된 기저장된 '세부 동작들 및 세부 동작들 간의 연관 관계를 나타내는 정보'를 메모리로부터 획득할 수 있다. In step S940, the server 300 acquires operation information on detailed operations to be performed by the target device from the action plan management model. The action plan management model identifies the target device from the identification information of the target device obtained from the server 300, and obtains pre-stored'information indicating the relationship between detailed operations and detailed operations' related to the target device from the memory. I can.

액션 플랜 관리 모델(210)은 '세부 동작들 및 세부 동작들 간의 관계를 나타내는 정보' 중 제2 인텐트 및 파라미터와 관련된 동작들을 식별하고, 식별된 세부 동작들 및 세부 동작들의 실행 순서를 플래닝함으로써, 타겟 디바이스가 수행할 동작 정보를 생성할 수 있다. 동작 정보는, 디바이스가 수행할 세부 동작들, 세부 동작들 간의 연관 관계, 및 세부 동작들의 실행 순서와 관련된 정보일 수 있다. 동작 정보는 예를 들어, 특정 동작들의 수행을 위하여 타겟 디바이스가 실행해야 할 기능들, 기능들의 실행 순서, 기능들을 실행하기 위하여 필요한 입력 값 및 기능들의 실행 결과로서 출력되는 출력 값을 포함할 수 있으나, 이에 한정되지 않는다. 액션 플랜 관리 모델은 동작 정보를 서버(300)에 제공하고, 서버(300)는 액션 플랜 관리 모델로부터 동작 정보를 획득할 수 있다.The action plan management model 210 identifies actions related to a second intent and parameter among'information representing the relationship between detailed actions and detailed actions', and plans the execution order of the identified detailed actions and detailed actions. , Operation information to be performed by the target device may be generated. The operation information may be information related to detailed operations to be performed by the device, a correlation relationship between detailed operations, and an execution order of the detailed operations. The operation information may include, for example, functions to be executed by the target device to perform specific operations, an execution order of functions, an input value required to execute the functions, and an output value output as a result of execution of the functions. , Is not limited thereto. The action plan management model provides motion information to the server 300, and the server 300 may obtain motion information from the action plan management model.

일 실시예에서, 단계 S940은 IoT 클라우드 서버(400)에서 수행될 수 있다. IoT 클라우드 서버(400)는 제2 인텐트, 파라미터, 및 타겟 디바이스의 식별정보를 수신하여, 타겟 디바이스가 수행할 세부 동작들 및 세부 동작들에 관한 실행 순서를 포함하는 동작 정보를 획득한다.In an embodiment, step S940 may be performed in the IoT cloud server 400. The IoT cloud server 400 receives a second intent, a parameter, and identification information of a target device, and obtains operation information including detailed operations to be performed by the target device and an execution order of the detailed operations.

단계 S950에서, 서버(300)는 IoT 클라우드 서버(400)로부터 타겟 디바이로 제어 명령이 제공될 수 있도록, 획득된 동작 정보를 IoT 클라우드 서버(400)에 전송한다. 서버(300)는 동작 정보 및 결정된 타겟 디바이스의 식별 정보를 IoT 클라우드 서버(400)에게 전송할 수 있다. In step S950, the server 300 transmits the acquired operation information to the IoT cloud server 400 so that a control command can be provided from the IoT cloud server 400 to the target device. The server 300 may transmit operation information and identification information of the determined target device to the IoT cloud server 400.

IoT 클라우드 서버(400)는 서버(300)로부터 수신한 동작 정보 및 디바이스 식별 정보에 기초하여, 타겟 디바이스의 세부 동작들을 제어하기 위한 제어 명령(control command)을 획득할 수 있다. 일 실시예에서, IoT 클라우드 서버(400)는 데이터베이스(DB)에 기 저장된 타겟 디바이스의 제어 명령들 중에서, 동작 정보 내의 타겟 디바이스의 세부 동작들을 제어하기 위한 제어 명령을 선택할 수 있다. 일 실시예에서, IoT 클라우드 서버(400)는 서버(300)로부터 수신한 디바이스 식별 정보를 이용하여 데이터베이스를 선택하고, 선택된 데이터베이스에서 동작 정보를 이용하여 제어 명령을 검색할 수 있다. 제어 명령은 디바이스가 판독할 수 있는 정보로서, 디바이스가 기능을 실행하여 동작을 수행하기 위한 명령어를 포함할 수 있다. The IoT cloud server 400 may obtain a control command for controlling detailed operations of the target device based on the operation information and device identification information received from the server 300. In an embodiment, the IoT cloud server 400 may select a control command for controlling detailed operations of the target device in operation information from among control commands of the target device previously stored in the database DB. In an embodiment, the IoT cloud server 400 may select a database using device identification information received from the server 300 and search for a control command using operation information from the selected database. The control command is information that can be read by the device, and may include a command for the device to perform an operation by executing a function.

IoT 클라우드 서버(400)는 제어 명령을 타겟 디바이스에 전송할 수 있다. The IoT cloud server 400 may transmit a control command to the target device.

도 10은 본 개시의 서버(300)가 텍스트로부터 제1 인텐트와 제2 인텐트를 결정하고, 액션 플랜 관리 모델(210)로부터 동작 정보를 획득하는 방법을 설명하기 위한 도면이다.FIG. 10 is a diagram illustrating a method of determining a first intent and a second intent from text by the server 300 of the present disclosure and obtaining operation information from the action plan management model 210.

도 10을 참조하면, 서버(300)는 제1 자연어 이해 모델(300a), 제2 자연어 이해 모델(300b), 및 액션 플랜 관리 모델(210)을 포함할 수 있다. 여기서, "자연어 이해 모델"은 텍스트를 해석하기 위한 모델로서, 하드웨어 또는 소프트웨어로 구현되거나 하드웨어와 소프트웨어의 결합으로 구현될 수 있다. 일 실시예에서, 액션 플랜 관리 모델(210)은 서버(300)와는 별개의 구성 요소일 수 있으며, IoT 클라우드 서버(400)에 포함될 수 있다.Referring to FIG. 10, the server 300 may include a first natural language understanding model 300a, a second natural language understanding model 300b, and an action plan management model 210. Here, the "natural language understanding model" is a model for interpreting text, and may be implemented as hardware or software, or a combination of hardware and software. In one embodiment, the action plan management model 210 may be a separate component from the server 300 and may be included in the IoT cloud server 400.

도 10에 도시된 실시예에서, 사용자가 "보헤미안 랩소디 틀어줘~"라는 발화를 한 경우, 서버(300)는 클라이언트 디바이스(110)로부터 음성 신호를 수신하고, ASR을 수행하여 음성 신호를 텍스트로 변환할 수 있다. 제1 자연어 이해 모델(300a)은 텍스트를 해석하여, 텍스트에 대응하는 제1 인텐트를 획득하도록 학습된 모델이다. 제1 자연어 이해 모델(300a)은 텍스트를 형태소, 단어(word), 또는 구(phrase)의 단위로 파싱(parse)하고, 파싱된 형태소, 단어, 또는 구의 언어적 특징(예: 문법적 요소)을 이용하여 파싱된 텍스트로부터 추출된 단어의 의미를 추론할 수 있다. 제1 자연어 이해 모델(300a)은 추론된 단어의 의미를 기 정의된 인텐트들과 비교함으로써, 추론된 단어의 의미에 대응되는 제1 인텐트를 결정할 수 있다. 제1 인텐트는 텍스트에 포함된 사용자의 발화 의도를 나타내는 정보를 의미한다. In the embodiment shown in FIG. 10, when the user utters "Play Bohemian Rhapsody~", the server 300 receives a voice signal from the client device 110 and performs ASR to convert the voice signal into text. Can be converted. The first natural language understanding model 300a is a model that is trained to obtain a first intent corresponding to the text by analyzing text. The first natural language understanding model 300a parses text in units of morphemes, words, or phrases, and determines linguistic features (eg, grammatical elements) of the parsed morphemes, words, or phrases. The meaning of the word extracted from the parsed text can be inferred. The first natural language understanding model 300a may determine a first intent corresponding to the inferred meaning of the word by comparing the meaning of the inferred word with predefined intents. The first intent refers to information indicating the user's speech intention included in the text.

예를 들어, 텍스트가 "보헤미안 랩소디 틀어줘"인 경우, 제1 자연어 이해 모델(300a)은 텍스트를 형태소, 단어 등으로 "보헤미안", "랩소디", "틀어줘"와 같이 세분화한다. 제1 자연어 이해 모델(300a)은 세분화된 각 형태소 또는 단어들에 대해 문법적 요소, 즉, 품사, 문장 구조 등을 각 형태소 또는 단어에 태깅(tagging)하는 과정을 수행한다. "보헤미안"이라는 단어에는 형용사 또는 수식어, "랩소디"이라는 단어에는 명사 또는 목적어, "틀어줘"라는 단어에는 동사 또는 서술어가 태깅될 수 있다. 제1 자연어 이해 모델(300a)은 각 단어, 단어의 위치/순서 및 단어의 태깅 정보 등을 이용하여 각 단어의 관계를 도출한다. 즉, 제1 자연어 이해 모델(300a)은 "보헤미안"은 "랩소디"를 수식하는 형용사 또는 수식어이며, "보헤미안"과 "랩소디"를 조합한 "보헤미안 랩소디"라는 단어는 "틀어줘"라는 동사 또는 서술어의 대상이 되는 명사 또는 목적어라는 것을 판단한다. 제1 자연어 이해 모델(300a)은, 텍스트를 문법적 요소를 이용하여 분석한 결과를 이용하여, 텍스트 내 동사 또는 서술어의 의미를 추론한다. 예를 들면, 제1 자연어 이해 모델(300a)은, "보헤미안 랩소디 틀어줘"라는 텍스트 중 '틀어줘'가 '어떤 것을 틀어줘(play something)'라는 동작(action)을 수행한다는 의미를 갖고 있다는 것을 추론할 수 있다.For example, when the text is "Play Bohemian Rhapsody", the first natural language understanding model 300a subdivides the text into morphemes and words such as "Bohemian", "Rhapsody", and "Play". The first natural language understanding model 300a performs a process of tagging each morpheme or word with grammatical elements, that is, parts of speech, sentence structure, etc. for each subdivided morpheme or words. The word "bohemian" may be tagged with an adjective or modifier, the word "rhapsody" may be tagged with a noun or object, and the word "flick" may be tagged with a verb or predicate. The first natural language understanding model 300a derives a relationship between each word by using each word, the position/order of the word, and tagging information of the word. That is, in the first natural language understanding model 300a, "bohemian" is an adjective or modifier that modifies "rapsody," and the word "bohemian rhapsody" which is a combination of "bohemian" and "rhapsody" is a verb or It judges that it is a noun or object that is the target of the predicate. The first natural language understanding model 300a infers the meaning of a verb or predicate in the text using the result of analyzing the text using grammatical elements. For example, in the first natural language understanding model 300a, in the text "Play Bohemian Rhapsody",'play it' has a meaning of performing an action of'play something'. Can be deduced.

본 명세서에서 제1 자연어 이해 모델은 위에서 추론된 의미에 대응하는 제1 인텐트를 결정한다. 제1 자연어 이해 모델(300a)은, 복수 개의 제1 인텐트에 대한 정보를 포함하고 있으며, 위에서 추론된 의미에 대한 정보와 복수 개의 제1 인텐트에 대한 정보를 비교하여, 추론된 의미에 대응하는 제1 인텐트를 결정한다. 예를 들어, 제1 자연어 이해 모델(300a)은, '어떤 것을 틀어줘(play something)'와 복수 개의 제1 인텐트에 대한 정보와 비교하여, '어떤 것을 틀어줘(play something)'에 대응하는 제1 인텐트를 "컨텐츠 재생(content play)"으로 결정할 수 있다. In the present specification, the first natural language understanding model determines a first intent corresponding to the meaning inferred above. The first natural language understanding model 300a includes information on a plurality of first intents, and corresponds to the inferred meaning by comparing the information on the meaning inferred above with information on the plurality of first intents. Determine the first intent to do. For example, the first natural language understanding model 300a responds to'play something' by comparing it with information about'play something' and a plurality of first intents. The first intent to be played may be determined as “content play”.

제1 자연어 이해 모델(300a)은 특정 디바이스의 타입을 고려하지 않고 텍스트를 해석하는 모델로서, 제2 자연어 이해 모델(300b) 보다는 간소화된 모델일 수 있다. 제1 자연어 이해 모델(300a)은, 입력된 텍스트에서 서술어 또는 동사에 해당하는 단어에 대한 해석을 수행하는 모델이다. 또한, 제1 자연어 이해 모델(300a)은, 새로운 텍스트를 해석하기 위해서 학습 등을 통해 기존 모델 전체를 새로운 모델로 갱신하도록 구성될 수 있다.The first natural language understanding model 300a is a model that analyzes text without considering a specific device type, and may be a simplified model than the second natural language understanding model 300b. The first natural language understanding model 300a is a model that analyzes a word corresponding to a predicate or verb in the input text. In addition, the first natural language understanding model 300a may be configured to update the entire existing model with a new model through learning or the like in order to interpret a new text.

제2 자연어 이해 모델(300b)은 특정 타입의 디바이스와 관련하여 텍스트를 해석하기 위하여 학습된 모델이다. 제2 자연어 이해 모델(300b)은 특정 타입의 디바이스들에 대하여 적용될 수 있으며, 텍스트를 해석함으로써 사용자가 의도하는 동작과 관련된 제2 인텐트 및 파라미터들을 결정하도록 학습된 모델일 수 있다. 제2 자연어 이해 모델(300b)은 텍스트를 형태소, 단어, 또는 구 단위로 파싱하고, 문법적 및 의미적 분석을 통해 파싱된 형태소, 단어, 또는 구의 의미를 추론하고, 추론된 의미를 기 정의된 단어에 매칭시켜 제2 인텐트 및 파라미터를 획득할 수 있다. 제2 인텐트는 텍스트에 포함된 사용자의 발화 의도를 나타내는 정보로서, 특정 타입의 디바이스가 수행할 동작을 결정하기 위하여 사용될 수 있다. 파라미터는 제2 인텐트와 관련된 타겟 디바이스의 세부 동작들을 결정하기 위한 변수(variable) 정보를 의미한다. 파라미터를 제2 인텐트에 대응하는 정보이며, 하나의 제2 인텐트에 복수 종류의 파라미터가 대응될 수 있다.The second natural language understanding model 300b is a model trained to interpret text in relation to a specific type of device. The second natural language understanding model 300b may be applied to specific types of devices, and may be a model trained to determine second intents and parameters related to an operation intended by the user by analyzing text. The second natural language understanding model 300b parses text into morphemes, words, or phrases, infers the meaning of the parsed morphemes, words, or phrases through grammatical and semantic analysis, and defines the inferred meaning as a predefined word. The second intent and parameter may be obtained by matching with. The second intent is information indicating a user's speech intention included in the text, and may be used to determine an operation to be performed by a specific type of device. The parameter means variable information for determining detailed operations of the target device related to the second intent. The parameter is information corresponding to the second intent, and a plurality of types of parameters may correspond to one second intent.

예를 들어, 텍스트가 "보헤미안 랩소디 틀어줘"인 경우, 제2 자연어 이해 모델(300b)은 텍스트를 형태소, 단어 등으로 "보헤미안", "랩소디", "틀어줘"와 같이 세분화한다. 제2 자연어 이해 모델(300b)은 세분화된 각 형태소 또는 단어들에 대해 문법적 요소, 즉, 품사, 문장 구조 등을 각 형태소 또는 단어에 태깅하는 과정을 수행한다. "보헤미안"이라는 단어에는 형용사 또는 수식어, "랩소디"이라는 단어에는 명사 또는 목적어, "틀어줘"라는 단어에는 동사 또는 서술어가 태깅될 수 있다. 제2 자연어 이해 모델(300b)은 각 단어, 단어의 위치/순서 및 단어의 태깅 정보 등을 이용하여 각 단어의 관계를 도출한다. 즉, 제2 자연어 이해 모델(300b)은 "보헤미안"은 "랩소디"를 수식하는 형용사 또는 수식어이며, "보헤미안"과 "랩소디"를 조합한 "보헤미안 랩소디"라는 단어는 "틀어줘"라는 동사 또는 서술어의 대상이 되는 명사 또는 목적어라는 것을 판단한다. 제2 자연어 이해 모델(300b)은, "보헤미안 랩소디 틀어줘"라는 텍스트가 '어떤 것을 틀어줘(play something)'라는 동작(action)을 수행한다는 의미를 갖고 있으며, 어떤 것은 '보헤미안 랩소디'라는 대상(object)이라는 것을 추론할 수 있다.For example, when the text is "Play Bohemian Rhapsody", the second natural language understanding model 300b subdivides the text into morphemes and words such as "Bohemian", "Rhapsody", and "Play". The second natural language understanding model 300b performs a process of tagging grammatical elements, that is, parts of speech, sentence structures, etc., to each morpheme or word for each subdivided morpheme or words. The word "bohemian" may be tagged with an adjective or modifier, the word "rhapsody" may be tagged with a noun or object, and the word "flick" may be tagged with a verb or predicate. The second natural language understanding model 300b derives a relationship between each word using each word, the position/order of the word, and tagging information of the word. That is, in the second natural language understanding model 300b, "Bohemian" is an adjective or modifier that modifies "Rhapsody", and the word "Bohemian Rhapsody" combined with "Bohemian" and "Rhapsody" is a verb of "Turn on" or It judges that it is a noun or object that is the target of the predicate. The second natural language understanding model 300b has the meaning that the text "Play Bohemian Rhapsody" performs an action of'play something', and some are the object of'Bohemian Rhapsody'. We can infer that it is (object).

여기서, 제2 자연어 이해 모델(300b)은, 제1 자연어 이해 모델(300a)에 의해 분석된 결과를 획득하고, 일부 단계를 추가적으로 수행하여 제2 인텐트 및 파라미터를 결정할 수 있다. 예를 들어, 제2 자연어 이해 모델(300b)은, 제1 자연어 이해 모델(300a)이 분석한 텍스트에 포함되어 있는 각 단어들의 관계 정보를 수신할 수 있다. 예를 들면, 제2 자연어 이해 모델(300b)은 보헤미안"은 "랩소디"를 수식하는 형용사 또는 수식어이며, "보헤미안"과 "랩소디"를 조합한 "보헤미안 랩소디"라는 단어는 "틀어줘"라는 동사 또는 서술어의 대상이 되는 명사 또는 목적어라는 정보를 제1 자연어 이해 모델(300a)로부터 수신할 수 있다. 제2 자연어 이해 모델(300b)은, 수신된 정보를 이용하여 "보헤미안 랩소디 틀어줘"라는 텍스트가 '어떤 것을 틀어줘(play something)'라는 동작(action)을 수행하라는 의도를 갖고 있으며, 동작의 수행 대상은'보헤미안 랩소디'이라는 것을 추론할 수 있다.Here, the second natural language understanding model 300b may obtain a result analyzed by the first natural language understanding model 300a and additionally perform some steps to determine a second intent and a parameter. For example, the second natural language understanding model 300b may receive relationship information of words included in the text analyzed by the first natural language understanding model 300a. For example, in the second natural language understanding model 300b, bohemian" is an adjective or modifier that modifies "rapsody", and the word "bohemian rhapsody" which combines "bohemian" and "rhapsody" is a verb of "turn it on" Alternatively, information on a noun or object that is the target of the predicate may be received from the first natural language understanding model 300a. The second natural language understanding model 300b uses the received information to use the text "Play Bohemian Rhapsody". Is intended to perform an action called'play something', and it can be inferred that the target of the action is'Bohemian Rhapsody'.

또한, 제2 자연어 이해 모델(300b)은, 제1 자연어 이해 모델(300a)에 입력된 변환된 텍스트 중 적어도 일부를 분석할 수 있다. 예를 들면, 변환된 텍스트에 디바이스 명칭이 포함되어 있는 경우, 제2 자연어 이해 모델(300b)은 변환된 텍스트에서 디바이스 명칭을 삭제한 나머지 텍스트를 입력받아 분석할 수 있다. 변환된 텍스트에서 디바이스 명칭을 삭제하는 것은, 제1 자연어 이해 모델(300a)에 의해 수행될 수 있고, 제2 자연어 이해 모델(300b)에 의해 수행될 수도 있다. Also, the second natural language understanding model 300b may analyze at least a part of the converted text input to the first natural language understanding model 300a. For example, when a device name is included in the converted text, the second natural language understanding model 300b may receive and analyze the remaining text after the device name is deleted from the converted text. Deleting the device name from the converted text may be performed by the first natural language understanding model 300a, or may be performed by the second natural language understanding model 300b.

본 명세서에서 제2 자연어 이해 모델(300b)은 위에서 추론된 의미에 대응하는 제2 인텐트를 결정한다. 제2 자연어 이해 모델(300b)은, 복수 개의 제2 인텐트에 대한 정보를 포함하고 있으며, 추론된 의미에 대한 정보와 복수 개의 제2 인텐트에 대한 정보를 비교하여, 추론된 의미에 대응하는 제2 인텐트를 결정한다. In the present specification, the second natural language understanding model 300b determines a second intent corresponding to the meaning inferred above. The second natural language understanding model 300b includes information on a plurality of second intents, and compares information on the inferred meaning with information on a plurality of second intents, and corresponds to the inferred meaning. Determine the second intent.

또한, 제2 자연어 이해 모델(300b)은, 제2 인텐트의 대상이 될 수 있는 복수의 파라미터에 대한 정보를 포함한다. 제2 자연어 이해 모델(300b)은 '보헤미안 랩소디'라는 대상에 대한 정보와 복수의 파라미터에 대한 정보를 비교하여, 제2 인텐트와 관련된 파라미터를 결정한다. In addition, the second natural language understanding model 300b includes information on a plurality of parameters that may be targets of the second intent. The second natural language understanding model 300b determines a parameter related to the second intent by comparing information on an object called'Bohemian Rhapsody' with information on a plurality of parameters.

예를 들어, 디바이스 타입이 "TV"인 경우, 제2 자연어 이해 모델(300b)은 “보헤미안 랩소디 틀어줘~”의 텍스트를 파싱하여 추출된 '어떤 것을 틀어줘' 라는 추론된 의미와 제2 자연어 이해 모델(300b)이 포함하고 있는 복수의 제2 인텐트 정보와 비교하고, 복수의 제2 인텐트 정보와 '어떤 것을 틀어줘' 간의 관련성 정도를 나타내는 수치값에 기초하여 '영화 컨텐트 재생(movie content play)’을 제2 인텐트로 결정할 수 있다. 제2 자연어 이해 모델(300b)에서 관련성 정도를 나타내는 수치값은 디바이스 타입을 고려하여 결정되는 것으로서, 디바이스 타입이 TV임을 고려할 때 '틀어줘'와 영화 컨텐트 재생 간의 관련성 정도를 나타내는 제1 수치값은 '틀어줘'와 음악 컨텐트 재생 간의 관련성 정도를 나타내는 제2 수치값 보다는 클 수 있다. 따라서, 제2 자연어 이해 모델(300b)은 디바이스 타입이 TV인 경우, '틀어줘'와 관련된 제2 인텐트로서 '영화 컨텐트 재생'을 결정할 수 있다. For example, when the device type is "TV", the second natural language understanding model 300b parses the text of "Play Bohemian Rhapsody~" and the inferred meaning of'play something' and the second natural language Comparing the plurality of second intent information included in the understanding model 300b, based on a numerical value indicating the degree of association between the plurality of second intent information and'play something','playing movie content (movie content) content play)' may be determined as the second intent. In the second natural language understanding model 300b, a numerical value indicating the degree of relevance is determined in consideration of the device type, and when considering that the device type is TV, the first numerical value indicating the degree of relevance between'play me' and movie content playback is It may be larger than the second numerical value indicating the degree of correlation between'play it' and music content playback. Accordingly, when the device type is TV, the second natural language understanding model 300b may determine “play movie content” as a second intent related to “play it”.

다른 예에서, 디바이스 타입이 스피커인 경우, 제2 자연어 이해 모델(300b)을 통해 동일한 텍스트를 해석하면 '틀어줘'와 영화 컨텐트 재생 간의 관련성 정도를 나타내는 제1 수치값 보다 '틀어줘'와 음악 컨텐트 재생 간의 관련성 정도를 나타내는 제2 수치값이 더 클 수 있다. 이 경우에, 제2 자연어 이해 모델(300b)은 '틀어줘'와 관련된 제2 인텐트로서 '음악 컨텐트 재생(music content play)'을 결정할 수 있다. In another example, when the device type is a speaker, when the same text is interpreted through the second natural language understanding model 300b, the first numerical value indicating the degree of relevance between'play it up' and movie content playback is'play it up' and music The second numerical value indicating the degree of relevance between content reproduction may be larger. In this case, the second natural language understanding model 300b may determine “music content play” as a second intent related to “play it”.

제2 자연어 이해 모델(300b)은 특정 디바이스의 타입에 따른 속성을 반영하여 텍스트를 해석함으로써 제2 인텐트를 결정하기 때문에, 제2 인텐트는 제1 인텐트 보다는 구체적인 정보일 수 있다. 제2 자연어 이해 모델(300b)은, 입력된 텍스트에서 서술어 또는 동사 뿐만 아니라 목적어 또는 명사, 수식어 또는 형용사에 해당하는 단어에 대한 해석을 수행하는 모델이다. 따라서, 제2 자연어 이해 모델(300b)은 제1 자연어 이해 모델(300a) 보다 텍스트 해석에 소요되는 시간이 길거나, 메모리에 저장되는 보다 많은 정보를 활용하여 텍스트를 해석할 수 있다. 또한, 제2 자연어 이해 모델(300b)은, 새로운 디바이스와 관련된 텍스트를 해석하기 위해서 기존 모델에 새로운 디바이스에 대응하는 모델을 추가되도록 구성될 수 있다.Since the second natural language understanding model 300b determines the second intent by analyzing the text by reflecting the attribute according to the specific device type, the second intent may be more specific information than the first intent. The second natural language understanding model 300b is a model that analyzes not only a predicate or verb, but also an object or a noun, a modifier, or a word corresponding to an adjective in the input text. Accordingly, the second natural language understanding model 300b may interpret the text by using a longer time for text interpretation than the first natural language understanding model 300a or by using more information stored in the memory. In addition, the second natural language understanding model 300b may be configured to add a model corresponding to a new device to an existing model in order to analyze text related to a new device.

제2 자연어 이해 모델(300b)은 디바이스 타입을 고려하여 텍스트를 해석함으로써, 파라미터를 결정할 수 있다. 제2 자연어 이해 모델(300b)은 텍스트를 해석한 결과, 파라미터를 나타내는 변수 정보가 복수개 획득되는 경우, 각 변수 정보에 대응되는 수치값이 최대인 변수 정보가 파라미터로 결정될 수 있다. 예를 들어, 제2 자연어 이해 모델(300b)은 디바이스 타입이 TV인 경우, "보헤미안 랩소디 틀어줘~"의 텍스트를 파싱하여 추출된 '보헤미안 랩소디'를 제2 자연어 이해 모델(300b)이 포함하고 있는 복수의 파라미터에 대한 정보와 비교하여, 제2 인텐트와 관련된 파라미터를 결정할 수 있다. 이 때, 제2 자연어 이해 모델(300b)은 복수의 파라미터에 대한 정보 중 제2 인텐트와 관련된 복수의 파리미터의 정보와 텍스트에서 추출된 '보헤미안 랩소디'를 비교하여, 보헤미안 랩소디에 대응하는 파라미터를 결정할 수 있다. 제2 인텐트가 '영화 컨텐트 재생'으로 결정된 경우, 제2 자연어 이해 모델(300b)은, 영화 컨텐트와 관련된 복수의 파라미터 중 보헤미안 랩소디에 대응하는 파라미터를 결정한다. 다른 예에서, 제2 인텐트가 '음악 컨텐트 재생'으로 결정된 경우, 제2 자연어 이해 모델은, 음악 컨텐트와 관련된 복수의 파라미터 중 보헤미안 랩소디에 대응하는 파라미터를 결정한다. The second natural language understanding model 300b may determine a parameter by analyzing the text in consideration of the device type. In the second natural language understanding model 300b, when a plurality of variable information representing a parameter is obtained as a result of analyzing the text, variable information having a maximum numerical value corresponding to each variable information may be determined as a parameter. For example, in the second natural language understanding model 300b, when the device type is TV, the second natural language understanding model 300b includes'Bohemian Rhapsody' extracted by parsing the text of "Play Bohemian Rhapsody". A parameter related to the second intent may be determined by comparing information on a plurality of parameters that are present. At this time, the second natural language understanding model 300b compares the information of a plurality of parameters related to the second intent among the information on the plurality of parameters and the'Bohemian Rhapsody' extracted from the text, and compares the parameter corresponding to the Bohemian Rhapsody. You can decide. When the second intent is determined to be'playing movie content', the second natural language understanding model 300b determines a parameter corresponding to the Bohemian Rhapsody among a plurality of parameters related to the movie content. In another example, when the second intent is determined to be'music content playback', the second natural language understanding model determines a parameter corresponding to a bohemian rhapsody among a plurality of parameters related to music content.

서버(300)는 결정된 제2 인텐트 및 파라미터를 액션 플랜 관리 모델(210)에 제공하고, 액션 플랜 관리 모델(210)로부터 제2 인텐트 및 파라미터에 관련된 동작 정보를 획득할 수 있다. 일 실시예에서, 서버(300)는 제2 인텐트 및 파라미터 뿐만 아니라, 타겟 디바이스의 타입에 관한 식별 정보를 액션 플랜 관리 모델(210)에 제공할 수도 있다. The server 300 may provide the determined second intent and parameter to the action plan management model 210 and obtain operation information related to the second intent and parameter from the action plan management model 210. In an embodiment, the server 300 may provide identification information on the type of the target device as well as the second intent and parameter to the action plan management model 210.

액션 플랜 관리 모델(210)은 디바이스 타입 별로 디바이스의 세부 동작들 및 세부 동작들 간의 관계에 관한 정보를 관리할 수 있다. 액션 플랜 관리 모델(210)은 획득한 타겟 디바이스의 식별 정보에 기초하여 타겟 디바이스를 식별하고, 타겟 디바이스에 관련된 기 저장된 세부 동작들 및 세부 동작들 간의 연관 관계를 나타내는 정보를 메모리로부터 획득할 수 있다. 액션 플랜 관리 모델(210)은 타겟 디바이스의 세부 동작들 및 세부 동작들 간의 관계에 관한 정보 중 제2 인텐트 및 파라미터와 관련된 세부 동작들을 선택하고, 선택된 세부 동작들의 실행 순서를 플래닝함으로써, 동작 정보를 획득할 수 있다.The action plan management model 210 may manage detailed operations of a device and information on a relationship between detailed operations for each device type. The action plan management model 210 may identify a target device based on the acquired identification information of the target device, and obtain information indicating pre-stored detailed operations related to the target device and a relationship between the detailed operations from the memory. . The action plan management model 210 selects detailed actions related to a second intent and a parameter among detailed actions of the target device and information on the relationship between the detailed actions, and plans the execution order of the selected detailed actions, thereby operating information Can be obtained.

도 10에 도시된 실시예에서, 액션 플랜 관리 모델(210)은 타겟 디바이스 타입에 관한 식별 정보, 즉 TV 타입의 id 정보를 획득하고, 영화 보헤미안 랩소디를 재생하기 위한 복수의 세부 동작들(동작 A 내지 동작 C)을 식별하고, 복수의 세부 동작들(동작 A 내지 동작 C)의 실행 순서를 플래닝함으로써, 동작 정보를 획득할 수 있다. 여기서, 동작 정보는 예를 들어, 특정 동작의 수행을 위하여 타겟 디바이스가 실행해야 할 기능들, 기능들의 실행 순서, 기능들을 실행하기 위하여 필요한 입력 값 및 기능들의 실행 결과로서 출력되는 출력 값을 포함할 수 있으나, 이에 한정되지 않는다. In the embodiment shown in FIG. 10, the action plan management model 210 acquires identification information about the target device type, that is, ID information of the TV type, and performs a plurality of detailed operations (operation A) for reproducing the movie Bohemian Rhapsody. To operation C), and planning the execution order of a plurality of detailed operations (operations A to C), operation information can be obtained. Here, the operation information may include, for example, functions to be executed by the target device to perform a specific operation, an execution order of functions, an input value required to execute the functions, and an output value output as a result of execution of the functions. However, it is not limited thereto.

액션 플랜 관리 모델(210)은 예를 들어, 영화 플레이어 애플리케이션을 실행하는 동작 A, 네트워크 또는 로컬 저장소 내에서 영화 보헤미안 랩소디를 검색하는 동작 B, 및 검색된 보헤미안 랩소디를 재생(play)하는 동작 C를 데이터베이스로부터 선택하고, 선택된 동작 A 내지 동작 C의 실행 순서를 플래닝함으로써, 동작 정보를 획득할 수 있다. The action plan management model 210 includes, for example, an action A of running a movie player application, an action B of retrieving a movie Bohemian Rhapsody within a network or local storage, and an action C of playing the retrieved Bohemian Rhapsody into a database. By selecting from and planning the execution order of the selected operations A to C, operation information may be obtained.

도 11은 본 개시의 클라이언트 디바이스(110), 서버(300), 및 IoT 클라우드 서버(400)의 동작을 도시한 흐름도이다. 11 is a flowchart illustrating operations of the client device 110, the server 300, and the IoT cloud server 400 of the present disclosure.

도 11을 참조하면, 서버(300)는 제1 어시스턴트 모델(assistant model)(200a) 및 제2 어시스턴트 모델(200b)을 포함할 수 있다. 도 11에서 제2 어시스턴트 모델(200b)은 서버(300) 내에 포함되는 구성 요소인 것으로 도시되어 있으나, 이에 한정되지 않는다. 제2 어시스턴트 모델(200b)은 서버(300)와는 별개의 구성 요소일 수 있다. 일 실시예에서, 제2 어시스턴트 모델(200b)은 IoT 클라우드 서버(400) 내에 포함될 수 있다. Referring to FIG. 11, the server 300 may include a first assistant model 200a and a second assistant model 200b. In FIG. 11, the second assistant model 200b is illustrated as a component included in the server 300, but is not limited thereto. The second assistant model 200b may be a separate component from the server 300. In one embodiment, the second assistant model 200b may be included in the IoT cloud server 400.

제1 어시스턴트 모델(200a)과 제2 어시스턴트 모델(200b)은 서버(300) 내에 포함되는 구성으로서, 하드웨어 또는 소프트웨어로 구현되거나 하드웨어와 소프트웨어의 결합으로 구현될 수 있다. 일 실시예에서, 제1 어시스턴트 모델(200a)과 제2 어시스턴트 모델(200b)은 명령어들(instructions)을 포함하는 프로그램 코드(program code), 애플리케이션(application), 알고리즘(algorithm), 루틴(routine), 명령어 세트(set of instructions), 또는 인공 지능 학습 모델 중 어느 하나 또는 적어도 두 개의 집합으로 구성될 수 있다. The first assistant model 200a and the second assistant model 200b are components included in the server 300 and may be implemented as hardware or software, or a combination of hardware and software. In one embodiment, the first assistant model 200a and the second assistant model 200b are program code including instructions, an application, an algorithm, and a routine. , A set of instructions, or an artificial intelligence learning model, or at least two sets.

단계 S1110에서, 클라이언트 디바이스(110)는 사용자로부터 음성 신호를 획득한다. 사용자가 발화하면, 클라이언트 디바이스(110)는 마이크를 통해 사용자의 음성 입력을 수신할 수 있다. 클라이언트 디바이스(110)는 마이크를 통해 수신된 소리(sound)를 음향 신호로 변환하고, 음향 신호로부터 노이즈(예를 들어, 비음성 성분)를 제거하여 음성 신호를 획득할 수 있다. In step S1110, the client device 110 obtains a voice signal from the user. When the user speaks, the client device 110 may receive the user's voice input through the microphone. The client device 110 converts a sound received through a microphone into an acoustic signal and removes noise (eg, a non-speech component) from the acoustic signal to obtain a speech signal.

단계 S1112에서, 클라이언트 디바이스(110)는 음성 신호를 서버(300)에 전송한다. In step S1112, the client device 110 transmits a voice signal to the server 300.

단계 S1120에서, 제1 어시스턴트 모델(200a)은 ASR(Automatic Speech Recognition) 모델(202)을 이용하여, ASR을 수행함으로서, 음성 신호를 텍스트로 변환한다. 일 실시예에서, 제1 어시스턴트 모델(200a)의 ASR 모델(202)은 음향 모델(acoustic model; AM) 또는 언어 모델(language model; LM) 등 기 정의된 모델을 이용하여 음성 신호를 컴퓨터로 판독 가능한 텍스트로 변환하는 ASR을 수행할 수 있다. 제1 어시스턴트 모델(200a)이 클라이언트 디바이스(110)로부터 노이즈가 제거되지 않은 음향 신호를 수신한 경우에는, ASR 모델(202)은 수신된 음향 신호에서 노이즈를 제거하여 음성 신호를 획득하고, 음성 신호에 대하여 ASR을 수행할 수 있다. In step S1120, the first assistant model 200a converts the speech signal into text by performing ASR using the Automatic Speech Recognition (ASR) model 202. In one embodiment, the ASR model 202 of the first assistant model 200a reads a speech signal by a computer using a predefined model such as an acoustic model (AM) or a language model (LM). You can perform ASR that converts to text as much as possible. When the first assistant model 200a receives an acoustic signal from which noise is not removed from the client device 110, the ASR model 202 obtains a speech signal by removing noise from the received acoustic signal, and ASR can be performed on.

단계 S1130에서, 제1 어시스턴트 모델(200a)의 디바이스 디스패쳐 모델(310)은 제1 자연어 이해 모델(300a)을 이용하여 텍스트를 분석하고, 분석 결과에 기초하여 제1 인텐트를 결정한다. 제1 자연어 이해 모델(300a)은, 텍스트를 해석하여 텍스트에 대응하는 제1 인텐트를 획득하도록 학습된 모델일 수 있다. 여기서, 제1 인텐트는, 텍스트에 포함된 사용자의 발화 의도를 나타내는 정보일 수 있다. 디바이스 디스패쳐 모델(310)은 제1 자연어 이해 모델(300a)을 이용하여 문법적 분석(syntactic analyze) 또는 의미적 분석(semantic analyze)을 수행함으로써, 변환된 텍스트로부터 사용자의 제1 인텐트(intent)를 결정할 수 있다. 일 실시예에서, 디바이스 디스패쳐 모델(310)은 제1 자연어 이해 모델(300a)을 이용하여, 변환된 텍스트를 형태소, 단어(word), 또는 구(phrase)의 단위로 파싱(parse)하고, 파싱된 형태소, 단어, 또는 구의 언어적 특징(예: 문법적 요소)을 이용하여 파싱된 텍스트로부터 추출된 단어의 의미를 추론할 수 있다. 디바이스 디스패쳐 모델(310)은, 추론된 단어의 의미를 제1 자연어 이해 모델(300a)에서 제공되는 기 정의된 인텐트들과 비교함으로써, 추론된 단어의 의미에 대응되는 제1 인텐트를 결정할 수 있다. In step S1130, the device dispatcher model 310 of the first assistant model 200a analyzes the text using the first natural language understanding model 300a, and determines a first intent based on the analysis result. The first natural language understanding model 300a may be a model trained to obtain a first intent corresponding to the text by analyzing the text. Here, the first intent may be information indicating the user's speech intention included in the text. The device dispatcher model 310 performs a syntactic analysis or semantic analysis using the first natural language understanding model 300a, so that the user's first intent from the converted text Can be determined. In one embodiment, the device dispatcher model 310 parses the converted text in units of morphemes, words, or phrases using the first natural language understanding model 300a, and The meaning of the word extracted from the parsed text can be inferred by using the parsed morphemes, words, or linguistic features (eg, grammatical elements) of the phrase. The device dispatcher model 310 determines a first intent corresponding to the meaning of the inferred word by comparing the meaning of the inferred word with predefined intents provided in the first natural language understanding model 300a. I can.

단계 S1140에서, 디바이스 디스패쳐 모델(310)은 제1 인텐트에 기초하여 타겟 디바이스의 타입(type)을 결정한다. 일 실시예에서, 디바이스 디스패쳐 모델(310)은 제1 자연어 이해 모델(300a)을 이용하여 획득한 제1 인텐트를 활용하여, 타겟 디바이스의 타입을 결정할 수 있다. In step S1140, the device dispatcher model 310 determines a type of the target device based on the first intent. In an embodiment, the device dispatcher model 310 may determine the type of the target device by using the first intent obtained by using the first natural language understanding model 300a.

일 실시예에서, 디바이스 디스패쳐 모델(310)은 제1 인텐트와 타겟 디바이스 타입 간의 관련성을 판단할 수 있는 매칭 모델에 기초하여, 텍스트로부터 인식된 제1 인텐트와 관련된 타겟 디바이스 타입을 결정할 수 있다. 제1 인텐트와 타겟 디바이스 타입 간의 관련성은 소정의 수치 값으로 산출될 수 있다. 일 실시예에서, 제1 인텐트와 타겟 디바이스 타입 간의 관련성은 확률값으로 산출될 수 있다. In an embodiment, the device dispatcher model 310 may determine a target device type related to the first intent recognized from the text, based on a matching model capable of determining the relationship between the first intent and the target device type. have. The relationship between the first intent and the target device type may be calculated as a predetermined numerical value. In an embodiment, the relationship between the first intent and the target device type may be calculated as a probability value.

디바이스 디스패쳐 모델(310)은, 제1 자연어 이해 모델(300a)을 통해 획득한 제1 인텐트에 매칭 모델을 적용하여, 복수의 타겟 디바이스의 타입 중 제1 인텐트와 관련된 타겟 디바이스의 타입을 결정할 수 있다. 일 실시예에서, 디바이스 디스패쳐 모델(310)은 제1 인텐트에 매칭 모델을 적용함으로써, 제1 인텐트와 복수의 타겟 디바이스 타입 간의 관련성 정도를 나타내는 복수의 수치값을 획득하고, 획득된 복수의 수치값 중 최대값을 갖는 타겟 디바이스 타입을 최종 타입으로 결정할 수 있다. The device dispatcher model 310 applies a matching model to the first intent acquired through the first natural language understanding model 300a to determine the type of the target device related to the first intent among the types of the plurality of target devices. You can decide. In one embodiment, the device dispatcher model 310 obtains a plurality of numerical values indicating the degree of correlation between the first intent and the plurality of target device types by applying a matching model to the first intent, and The target device type having the maximum value among the numerical values of may be determined as the final type.

단계 S1150에서, 디바이스 디스패쳐 모델(310)은 결정된 타입 및 기 등록된 복수의 디바이스의 디바이스 정보에 기초하여 타겟 디바이스를 결정한다. 일 실시예에서, 디바이스 디스패쳐 모델(310)은 IoT 클라우드 서버(400)로부터 사용자의 계정 정보와 관련하여 기 등록된 복수의 디바이스의 디바이스 정보를 수신할 수 있다. 디바이스 디스패쳐 모델(310)은 예를 들어, 사용자의 계정 정보와 관련하여 기 등록된 복수의 디바이스의 기능 수행 능력 정보(capability), 위치 정보, 및 상태 정보 중 적어도 하나를 IoT 클라우드 서버(400)로부터 수신할 수 있다. 여기서 상태 정보는, 복수의 디바이스의 전원 온오프(on/off) 여부 및 현재 실행 중인 동작에 관한 정보를 포함할 수 있다. In step S1150, the device dispatcher model 310 determines a target device based on the determined type and device information of a plurality of previously registered devices. In an embodiment, the device dispatcher model 310 may receive device information of a plurality of devices previously registered in relation to the user's account information from the IoT cloud server 400. The device dispatcher model 310 includes, for example, at least one of function performance information (capability), location information, and status information of a plurality of devices previously registered in relation to the user's account information, and the IoT cloud server 400 Can be received from Here, the state information may include information on whether a plurality of devices are powered on or off and an operation currently being executed.

디바이스 디스패쳐 모델(310)은 사용자의 계정 정보와 관련하여 기 등록된 복수의 디바이스 중 단계 S1140에서 결정된 타입에 해당되는 복수의 디바이스를 선택하고, 선택된 복수의 디바이스에 관한 상태 정보에 기초하여 타겟 디바이스를 결정할 수 있다. 일 실시예에서, 디바이스 디스패쳐 모델(310)은 선택된 복수의 디바이스의 설치 위치 정보에 고려하여 사용자의 위치와 근접한 위치에 있는 디바이스를 타겟 디바이스로 결정할 수 있다. 다른 실시예에서, 디바이스 디스패쳐 모델(310)은 선택된 복수의 디바이스의 전원 온오프 여부 또는 현재 실행하고 있는 동작에 관한 상태 정보에 기초하여 타겟 디바이스를 결정할 수 있다. The device dispatcher model 310 selects a plurality of devices corresponding to the type determined in step S1140 from among a plurality of devices previously registered in relation to the user's account information, and a target device based on status information about the selected plurality of devices. Can be determined. In an embodiment, the device dispatcher model 310 may determine a device in a location close to the user's location as the target device in consideration of installation location information of the selected plurality of devices. In another embodiment, the device dispatcher model 310 may determine a target device based on status information regarding whether the selected plurality of devices are powered on or off or an operation currently being executed.

단계 S1160에서, 제1 어시스턴트 모델(200a)은 파싱된 텍스트 및 타겟 디바이스 정보를 제2 어시스턴트 모델(200b)에 제공한다. 일 실시예에서, 디바이스 디스패쳐 모델(310)은 결정된 타겟 디바이스의 식별 정보(예: 디바이스 id)를 파싱된 텍스트와 함께 제2 어시스턴트 모델(200b)에게 제공할 수 있다.In step S1160, the first assistant model 200a provides the parsed text and target device information to the second assistant model 200b. In an embodiment, the device dispatcher model 310 may provide the determined identification information (eg, device ID) of the target device to the second assistant model 200b together with the parsed text.

단계 S1170에서, 제2 어시스턴트 모델(200b)은 복수의 제2 자연어 이해 모델(300b) 중 단계 S1140에서 결정된 타겟 디바이스의 타입에 대응되는 제2 자연어 이해 모델을 이용하여 파싱된 텍스트를 분석함으로써, 제2 인텐트 및 파라미터를 결정한다. 일 실시예에서, 제2 어시스턴트 모델(200b)은 제2 자연어 이해 모델을 이용하여 파싱된 텍스트로부터 추출된 단어 또는 구의 의미를 추론하고, 추론된 의미를 기 정의된 인텐트 및 파라미터에 매칭시켜 제2 인텐트 및 파라미터를 결정할 수 있다. 제2 인텐트는 텍스트에 포함된 사용자의 발화 의도를 나타내는 정보로서, 특정 타입의 디바이스가 수행할 동작을 결정하는 데 사용될 수 있다. 파라미터는 제2 인텐트와 관련된 타겟 디바이스의 세부 동작들을 결정하기 위한 변수(variable) 정보를 의미한다. 파라미터를 제2 인텐트에 대응하는 정보이며, 하나의 제2 인텐트에 복수 종류의 파라미터가 대응될 수 있다. In step S1170, the second assistant model 200b analyzes the parsed text using the second natural language understanding model corresponding to the type of the target device determined in step S1140 among the plurality of second natural language understanding models 300b. 2 Determine the intent and parameters. In one embodiment, the second assistant model 200b infers the meaning of the word or phrase extracted from the parsed text using the second natural language understanding model, and matches the inferred meaning to predefined intents and parameters to provide a 2 Can determine intents and parameters. The second intent is information indicating the user's speech intention included in the text, and may be used to determine an operation to be performed by a specific type of device. The parameter means variable information for determining detailed operations of the target device related to the second intent. The parameter is information corresponding to the second intent, and a plurality of types of parameters may correspond to one second intent.

단계 S1180에서, 제2 어시스턴트 모델(200b)의 액션 플랜 관리 모델(210)은 제2 인텐트 및 파라미터에 기초하여 타겟 디바이스가 수행할 동작 정보를 플래닝(planning)한다. 액션 플랜 관리 모델(210)은 디바이스 디스패쳐 모델(310)로부터 획득한 타겟 디바이스의 식별 정보로부터 타겟 디바이스를 식별하고, 제2 인텐트 및 파라미터에 기초하여 타겟 디바이스가 수행할 동작들을 해석할 수 있다. 액션 플랜 관리 모델(210)은 기 저장된 디바이스 별 동작들 중 해석된 동작들과 관련된 세부 동작들을 선택하고, 선택된 세부 동작들의 실행 순서를 플래닝할 수 있다. 액션 플랜 관리 모델(210)은 플래닝 결과를 이용하여 타겟 디바이스가 수행할 세부 동작에 관한 동작 정보를 획득할 수 있다. 여기서 동작 정보는, 디바이스가 수행할 세부 동작들, 세부 동작들 간의 연관 관계, 및 세부 동작들의 실행 순서와 관련된 정보일 수 있다. 동작 정보는 예를 들어, 세부 동작들의 수행을 위하여 타겟 디바이스가 실행해야 할 기능들, 기능들의 실행 순서, 기능들을 실행하기 위하여 필요한 입력 값 및 기능들의 실행 결과로서 출력되는 출력 값을 포함할 수 있으나, 이에 한정되지 않는다. In step S1180, the action plan management model 210 of the second assistant model 200b plans operation information to be performed by the target device based on the second intent and parameters. The action plan management model 210 may identify the target device from the identification information of the target device obtained from the device dispatcher model 310 and analyze actions to be performed by the target device based on the second intent and parameters. . The action plan management model 210 may select detailed operations related to analyzed operations among previously stored device-specific operations, and may plan an execution order of the selected detailed operations. The action plan management model 210 may acquire operation information regarding a detailed operation to be performed by the target device by using the planning result. Here, the operation information may be information related to detailed operations to be performed by the device, a correlation relationship between the detailed operations, and an execution order of the detailed operations. The operation information may include, for example, functions to be executed by the target device in order to perform detailed operations, an execution order of functions, an input value required to execute the functions, and an output value output as a result of execution of the functions. , Is not limited thereto.

단계 S1190에서, 제2 어시스턴트 모델(200b)은 액션 플랜 관리 모델(210)을 통해 획득한 동작 정보를 제1 어시스턴트 모델(200a)에 제공한다.In step S1190, the second assistant model 200b provides the motion information acquired through the action plan management model 210 to the first assistant model 200a.

도 12는 본 개시의 클라이언트 디바이스(110), 서버(300), 및 IoT 클라우드 서버(400)의 동작을 도시한 흐름도이다. 도 12는 도 11의 단계 S1150의 구체적인 실시예를 도시한 도면이다. 도 12에서는 설명의 편의 상 서버(300)가 제1 어시스턴트 모델(200a)만을 포함하는 것으로 도시하였으나, 이에 한정되는 것은 아니다. 서버(300)은 도 11에 도시된 바와 같이 제2 어시스턴트 모델(200b)을 더 포함할 수 있다. 도 12에서 제1 어시스턴트 모델(200a)은 ASR 모델(202), NLG 모델(204), 제1 자연어 이해 모델(300a), 및 디바이스 디스패쳐 모델(310)을 포함할 수 있다.12 is a flowchart illustrating operations of the client device 110, the server 300, and the IoT cloud server 400 of the present disclosure. 12 is a diagram illustrating a specific embodiment of step S1150 of FIG. 11. In FIG. 12, for convenience of description, it is illustrated that the server 300 includes only the first assistant model 200a, but is not limited thereto. The server 300 may further include a second assistant model 200b as shown in FIG. 11. In FIG. 12, the first assistant model 200a may include an ASR model 202, an NLG model 204, a first natural language understanding model 300a, and a device dispatcher model 310.

단계 S1210에서, 서버(300)는 복수의 디바이스에 관한 디바이스 정보를 IoT 클라우드 서버(400)에 요청한다. 서버(300)는 사용자의 계정 정보와 관련하여 IoT 클라우드 서버(400)에 기 등록된 복수의 디바이스에 관한 디바이스 정보를 요청하는 신호를 IoT 클라우드 서버(400)에 전송할 수 있다. IoT 클라우드 서버(400)는 사용자의 계정 별로 기 등록된 사용자의 복수의 디바이스에 관한 디바이스 정보를 저장하는 서버일 수 있다. IoT 클라우드 서버(400)는 서버(300)와는 별개이고, 서버(300)와는 네트워크를 통해 연결될 수 있다. 일 실시예에서, 서버(300)는 클라이언트 디바이스(110)로부터 획득한 사용자의 계정 정보(예: 사용자 id)를 IoT 클라우드 서버(400)에게 전송하고, IoT 클라우드 서버(400)에 사용자의 계정 정보와 관련하여 기 등록된 사용자의 복수의 디바이스에 관한 디바이스 정보를 요청할 수 있다. In step S1210, the server 300 requests device information about a plurality of devices from the IoT cloud server 400. The server 300 may transmit, to the IoT cloud server 400, a signal for requesting device information about a plurality of devices previously registered in the IoT cloud server 400 in connection with the user's account information. The IoT cloud server 400 may be a server that stores device information about a plurality of devices of a user, which are previously registered for each user account. The IoT cloud server 400 is separate from the server 300 and may be connected to the server 300 through a network. In one embodiment, the server 300 transmits the user's account information (eg, user ID) acquired from the client device 110 to the IoT cloud server 400, and the user's account information to the IoT cloud server 400 In connection with, it is possible to request device information on a plurality of devices of a user who has been previously registered.

일 실시예에서, 서버(300)는 결정된 타겟 디바이스 타입에 관한 타입 정보를 IoT 클라우드 서버(400)에 전송할 수도 있다. 이 경우, 서버(300)는 사용자의 계정 정보에 기 등록된 복수의 디바이스 중 결정된 타입에 해당되는 디바이스에 관한 정보만을 IoT 클라우드 서버(400)에 요청할 수 있다. In an embodiment, the server 300 may transmit type information on the determined target device type to the IoT cloud server 400. In this case, the server 300 may request only information on a device corresponding to a determined type among a plurality of devices previously registered in the user's account information from the IoT cloud server 400.

일 실시예에서, 서버(300)는 사용자의 계정 별로 기 등록된 사용자의 복수의 디바이스에 관한 디바이스 정보를 저장할 수 있다. 이 경우, 서버(300)는 IoT 클라우드 서버(400)에게 디바이스 정보를 요청하지 않고, 서버(300)에 저장되어 있는 사용자의 계정 정보와 관련하여 기 등록된 사용자의 복수의 디바이스에 관한 디바이스 정보를 이용할 수 있다. 또한, 결정된 타겟 디바이스 타입에 대한 정보를 이용하여, 기 등록된 사용자의 복수의 디바이스 중 결정된 타겟 디바이스 타입에 해당하는 디바이스에 대한 정보만을 획득할 수도 있다.In an embodiment, the server 300 may store device information on a plurality of devices of a user that are pre-registered for each user account. In this case, the server 300 does not request device information from the IoT cloud server 400, and retrieves device information about a plurality of devices of a user that is previously registered in relation to the user's account information stored in the server 300. Can be used. In addition, by using information on the determined target device type, only information on a device corresponding to the determined target device type among a plurality of devices of a pre-registered user may be obtained.

단계 S1220에서, IoT 클라우드 서버(400)는 사용자의 계정 정보와 관련하여 기 등록된 복수의 디바이스의 기능 수행 능력 정보(capability), 위치 정보, 상태 정보 중 적어도 하나의 정보를 서버(300)에 전송한다. In step S1220, the IoT cloud server 400 transmits at least one of function performance information (capability), location information, and status information of a plurality of devices previously registered in relation to the user's account information to the server 300 do.

일 실시예에서, IoT 클라우드 서버(400)가 서버(300)로부터 타겟 디바이스 타입에 관한 타입 정보를 획득한 경우, IoT 클라우드 서버(400)는 사용자의 계정 정보와 관련하여 기 등록된 복수의 디바이스 중 타입 정보에 기초한 특정 타입에 해당되는 디바이스에 관한 정보만을 서버(300)에 전송할 수 있다. In one embodiment, when the IoT cloud server 400 obtains type information on the target device type from the server 300, the IoT cloud server 400 is among a plurality of devices previously registered in relation to the user's account information. Only information about a device corresponding to a specific type based on the type information may be transmitted to the server 300.

단계 S1230에서, 서버(300)는 제1 어시스턴트 모델(200a)의 디바이스 디스패쳐 모델(310)을 이용하여 결정된 타입 및 획득된 복수의 디바이스 정보에 기초하여 타겟 디바이스 후보가 복수개 존재하는지 판단한다. 일 실시예에서, 디바이스 디스패쳐 모델(310)은 타겟 디바이스 타입이 하나인 경우, 타겟 디바이스의 타입에 해당되는 디바이스의 상태 정보 또는 설치 위치 정보에 기초하여 타겟 디바이스 후보를 결정하고, 결정된 타겟 디바이스 후보가 복수개인지 여부를 판단할 수 있다. In step S1230, the server 300 determines whether there are a plurality of target device candidates based on the type determined using the device dispatcher model 310 of the first assistant model 200a and the obtained device information. In an embodiment, when the target device type is one, the device dispatcher model 310 determines a target device candidate based on state information or installation location information of a device corresponding to the target device type, and the determined target device candidate It can be determined whether or not is a plurality of.

다른 실시예에서, 타겟 디바이스의 타입이 복수개인 경우, 디바이스 디스패쳐 모델(310)은 복수의 타입에 해당되는 복수의 디바이스 각각의 상태 정보 또는 설치 위치 정보에 기초하여 타겟 디바이스 후보를 결정하고, 결정된 타겟 디바이스 후보가 복수개인지 여부를 판단할 수 있다. In another embodiment, when there are multiple types of target devices, the device dispatcher model 310 determines a target device candidate based on state information or installation location information of each of a plurality of devices corresponding to the plurality of types, and the determined It may be determined whether there are a plurality of target device candidates.

단계 S1230에서, 타겟 디바이스 후보가 하나로 판단되는 경우(NO), 서버(300)가 제1 어시스턴트 모델(200a)의 디바이스 디스패쳐 모델(310)을 이용하여 하나의 타겟 디바이스를 최종 타겟 디바이스로 결정한다(단계 S1240). In step S1230, when it is determined that the target device candidate is one (NO), the server 300 determines one target device as the final target device using the device dispatcher model 310 of the first assistant model 200a. (Step S1240).

단계 S1230에서, 타겟 디바이스 후보가 복수개로 판단되는 경우(YES), 서버(300)는 제1 어시스턴트 모델(200a)의 NLG 모델(204)을 이용하여, 복수의 후보 디바이스 중 타겟 디바이스를 결정하기 위한 질의 메시지를 생성한다 (단계 S1250). 서버(300)는 NLG 모델(204)을 이용하여 특정 타입에 해당되는 복수의 디바이스 중 어느 하나의 타겟 디바이스를 선택하기 위한 질의 메시지를 생성할 수 있다. 단계 S1250에서 서버(300)는 복수개의 후보 디바이스 중 타겟 디바이스를 결정하는 명확화(disambiguation) 단계를 수행할 수 있다. 일 실시예에서, 서버(300)는 NLG 모델(204)을 이용하여, 복수의 디바이스 중 어느 디바이스를 타겟 디바이스로 결정할 것인지에 관하여 사용자의 응답을 유도하는 질의 메시지를 생성할 수 있다. In step S1230, if a plurality of target device candidates is determined (YES), the server 300 uses the NLG model 204 of the first assistant model 200a to determine a target device among the plurality of candidate devices. A query message is generated (step S1250). The server 300 may generate a query message for selecting any one target device from among a plurality of devices corresponding to a specific type by using the NLG model 204. In step S1250, the server 300 may perform a disambiguation step of determining a target device among a plurality of candidate devices. In one embodiment, the server 300 may generate a query message that induces a user's response as to which device among a plurality of devices to determine as the target device using the NLG model 204.

일 실시예에서, 질의 메시지는 특정 타입에 해당되는 복수의 디바이스를 나열하는 리스트(list)를 포함하고, 리스트에 포함된 복수의 디바이스 중 타겟 디바이스를 선택할 것을 사용자에게 요청하는 메시지일 수 있다. 다른 실시예에서, 질의 메시지는 복수의 디바이스를 설치 위치에 따라 선택하도록 요청하는 메시지일 수 있다.In an embodiment, the query message includes a list listing a plurality of devices corresponding to a specific type, and may be a message requesting the user to select a target device from among a plurality of devices included in the list. In another embodiment, the query message may be a message requesting to select a plurality of devices according to installation locations.

단계 S1260에서, 서버(300)는 생성된 질의 메시지를 클라이언트 디바이스(110)에 전송한다. 일 실시예에서, 서버(300)의 제1 어시스턴트 모델(200a)은 TTS(Text-to-Speech)를 통해 텍스트로 구성된 질의 메시지를 오디오 신호로 변환할 수 있다. 서버(300)는 오디오 신호로 변환된 질의 메시지를 클라이언트 디바이스(110)에 전송할 수 있다. 그러나 이에 한정되는 것은 아니고, 클라이언트 디바이스(110)가 디스플레이부를 포함하고 있는 디바이스인 경우, 서버(300)는 질의 메시지를 텍스트 데이터의 형태로 클라이언트 디바이스(110)에 전송할 수도 있다. In step S1260, the server 300 transmits the generated query message to the client device 110. In an embodiment, the first assistant model 200a of the server 300 may convert a query message composed of text into an audio signal through text-to-speech (TTS). The server 300 may transmit a query message converted into an audio signal to the client device 110. However, the present invention is not limited thereto, and when the client device 110 is a device including a display unit, the server 300 may transmit a query message to the client device 110 in the form of text data.

단계 S1270에서, 클라이언트 디바이스(110)는 서버(300)부터 질의 메시지를 수신하고, 수신된 질의 메시지를 출력한다. 일 실시예에서, 클라이언트 디바이스(110)는 오디오 신호로 변환된 질의 메시지를 스피커를 통해 출력할 수 있다. 다른 실시예에서, 클라이언트 디바이스(110)가 디스플레이부를 포함하는 디바이스인 경우, 클라이언트 디바이스(110)는 질의 메시지를 디스플레이부 상에 디스플레이할 수도 있다.In step S1270, the client device 110 receives a query message from the server 300 and outputs the received query message. In an embodiment, the client device 110 may output a query message converted into an audio signal through a speaker. In another embodiment, when the client device 110 is a device including a display unit, the client device 110 may display an inquiry message on the display unit.

단계 S1272에서, 클라이언트 디바이스(110)는 사용자의 응답 입력을 수신한다. 일 실시예에서, 클라이언트 디바이스(110)는 복수의 후보 디바이스 중 어느 하나의 디바이스를 선택하는 사용자의 응답 입력을 수신할 수 있다. 사용자의 응답 입력을 선택된 디바이스의 명칭일 수 있으나, 이에 한정되는 것은 아니다. 일 실시예에서, 사용자의 응답 입력은 복수의 후보 디바이스를 포함하는 리스트 내의 나열된 순서, 즉 서수(예: 두번째 디바이스)일 수 있다. In step S1272, the client device 110 receives a user's response input. In an embodiment, the client device 110 may receive a response input from a user selecting any one of a plurality of candidate devices. The name of the device selected for the user's response input may be, but is not limited thereto. In one embodiment, the user's response input may be an ordinal number (eg, a second device) in the order listed in a list including a plurality of candidate devices.

단계 S1274에서, 클라이언트 디바이스(110)는 사용자로부터 수신한 응답 입력을 서버(300)에 전송한다. 사용자의 응답 입력은, 클라이언트 디바이스(110)로부터 음성 신호의 형태로 전송될 수 있다. In step S1274, the client device 110 transmits the response input received from the user to the server 300. The user's response input may be transmitted from the client device 110 in the form of a voice signal.

단계 S1280에서, 서버(300)는 제1 어시스턴트 모델(200a)을 이용하여 응답 입력에 기초하여 타겟 디바이스를 결정한다. 일 실시예에서, 서버(300)는 ASR 모델(202)을 이용하여 수신된 응답 입력을 ASR 과정을 거쳐 텍스트로 변환하고, 변환된 텍스트를 제1 자연어 이해 모델(300a)을 이용하여 분석함으로써, 사용자가 선택한 타겟 디바이스에 관한 단어를 추출할 수 있다. 서버(300)는 제1 자연어 이해 모델(300a)을 이용하여 추출된 단어의 의미를 판단하고, 추출된 단어에 기초하여 타겟 디바이스를 결정할 수 있다. 일 실시예에서, ASR 과정을 거쳐 사용자의 응답 입력을 텍스트로 변환하고, 변환된 텍스트를 기 정의된 텍스트와 매칭하여 텍스트의 의미를 판단하는 ASR 모델(202) 및 제1 자연어 이해 모델(300a)은 도 2a 및 도 2b에서 설명한 모델과는 상이한 모델일 수 있다. 그러나 이에 한정되는 것은 아니고, 서버(300)는 도 2a 및 도 2b에서 설명한 모델 중 적어도 하나를 사용할 수도 있다.In step S1280, the server 300 determines a target device based on the response input using the first assistant model 200a. In one embodiment, the server 300 converts the response input received using the ASR model 202 into text through an ASR process, and analyzes the converted text using the first natural language understanding model 300a, Words related to the target device selected by the user can be extracted. The server 300 may determine the meaning of the extracted word using the first natural language understanding model 300a and determine a target device based on the extracted word. In one embodiment, an ASR model 202 and a first natural language understanding model 300a for determining the meaning of the text by converting the user's response input into text through an ASR process and matching the converted text with a predefined text May be a model different from the model described in FIGS. 2A and 2B. However, the present invention is not limited thereto, and the server 300 may use at least one of the models described in FIGS. 2A and 2B.

일 실시예에서, 서버(300)의 디바이스 디스패쳐 모델(310)은 질의 메시지 내 후보 디바이스에 관한 리스트 중 특정 순서를 선택하는 사용자의 응답 입력에 기초하여 특정 순서에 매칭(matching)되는 타겟 디바이스를 결정할 수도 있다. In one embodiment, the device dispatcher model 310 of the server 300 selects a target device that is matched in a specific order based on a response input from a user who selects a specific order from a list of candidate devices in the query message. You can decide.

도 13은 본 개시의 클라이언트 디바이스(110), 타겟 디바이스(120), 서버(300), 및 IoT 클라우드 서버(400)의 동작을 도시한 흐름도이다. 도 13은 도 11의 단계 S1190 이후에 클라이언트 디바이스(110), 타겟 디바이스(120), 서버(300), 및 IoT 클라우드 서버(400)에 의해 수행되는 단계들을 구체적으로 도시한 도면이다. 13 is a flowchart illustrating operations of the client device 110, the target device 120, the server 300, and the IoT cloud server 400 of the present disclosure. FIG. 13 is a diagram specifically showing steps performed by the client device 110, the target device 120, the server 300, and the IoT cloud server 400 after step S1190 of FIG. 11.

단계 S1310에서, 제2 어시스턴트 모델(200b)은 제1 어시스턴트 모델(200a)에 동작 정보를 제공한다. 단계 S1310은 도 11의 단계 S1190과 동일한 단계이다.In step S1310, the second assistant model 200b provides motion information to the first assistant model 200a. Step S1310 is the same step as step S1190 of FIG. 11.

단계 S1320에서 제1 어시스턴트 모델(200a)은 IoT 클라우드 서버(400)에 동작 수행 요청 정보를 전송한다. 일 실시예에서, 제1 어시스턴트 모델(200a)은 IoT 클라우드 서버(400)에 동작 정보 및 타겟 디바이스 식별 정보(예: 디바이스 id)를 전송할 수 있다. 일 실시예에서, 제1 어시스턴트 모델(200a)은 IoT 클라우드 서버(400)에 대화 정보를 전송할 수도 있다. 여기서, 대화 정보는 서버(300)의 ASR 모델(202)이 클라이언트 디바이스(110)를 통해 수신한 사용자의 음성 입력을 변환한 텍스트, 서버(300)가 NLG 모델(204, 206)을 이용하여 자연어 생성 모델을 이용하여 생성한 질의 메시지, 및 사용자의 응답 입력을 변환한 텍스트 중 적어도 하나를 포함할 수 있다. In step S1320, the first assistant model 200a transmits operation execution request information to the IoT cloud server 400. In an embodiment, the first assistant model 200a may transmit operation information and target device identification information (eg, device ID) to the IoT cloud server 400. In an embodiment, the first assistant model 200a may transmit conversation information to the IoT cloud server 400. Here, the conversation information is a text obtained by converting the user's voice input received through the client device 110 by the ASR model 202 of the server 300, and the natural language by using the NLG models 204 and 206. It may include at least one of a query message generated using the generation model and text converted from a user's response input.

단계 S1330에서, IoT 클라우드 서버(400)는 제1 어시스턴트 모델(200a)로부터 수신한 타겟 디바이스의 식별 정보 및 동작 정보에 기초하여 제어 명령(control command)을 획득, 생성 또는 결정한다. 일 실시예에서, IoT 클라우드 서버(400)는 동작 정보에 기초하여, 타겟 디바이스가 동작 정보 내의 세부 동작들을 수행하도록 하기 위한 제어 명령을 생성할 수 있다. 생성된 제어 명령은 타겟 디바이스로 전송되며, 타겟 디바이스는 생성된 제어 명령을 판독함으로써 동작 정보 내의 세부 동작들을 실행 순서에 따라 순차적으로 실행할 수 있다. 그러나, 이에 한정되는 것은 아니고, IoT 클라우드 서버(400)는 동작 정보 및 타겟 디바이스의 식별 정보에 대응되는 제어 명령을 저장하고 있을 수도 있다. In step S1330, the IoT cloud server 400 acquires, generates, or determines a control command based on identification information and operation information of the target device received from the first assistant model 200a. In an embodiment, the IoT cloud server 400 may generate a control command for causing the target device to perform detailed operations in the operation information based on the operation information. The generated control command is transmitted to the target device, and the target device can sequentially execute detailed operations in the operation information according to the execution order by reading the generated control command. However, the present invention is not limited thereto, and the IoT cloud server 400 may store operation information and a control command corresponding to identification information of a target device.

단계 S1340에서, IoT 클라우드 서버(400)는 타겟 정보의 식별 정보를 이용하여 단계 S1330에서 획득, 생성 또는 결정된 제어 명령을 타겟 디바이스(120)에 전송한다. In step S1340, the IoT cloud server 400 transmits the control command acquired, generated, or determined in step S1330 to the target device 120 by using the identification information of the target information.

단계 S1350에서, 타겟 디바이스(120)는 수신된 제어 명령에 따라, 제어 명령에 대응하는 동작들을 실행한다. In step S1350, the target device 120 executes operations corresponding to the control command according to the received control command.

단계 S1352에서, 동작의 실행이 성공적으로 완료되거나 동작의 실행이 실패하면, 타겟 디바이스(120)는 동작의 실행 결과를 IoT 클라우드 서버(400)에 전송한다. 동작의 실행이 실패한 경우, 타겟 디바이스(120)는 동작의 실행이 실패된 원인과 함께 동작의 실행 결과를 IoT 클라우드 서버(400)에 전송한다.In step S1352, when the execution of the operation is successfully completed or the execution of the operation fails, the target device 120 transmits the execution result of the operation to the IoT cloud server 400. When the execution of the operation fails, the target device 120 transmits the execution result of the operation to the IoT cloud server 400 together with the cause of the failure of the operation.

단계 S1354에서, IoT 클라우드 서버(400)는 동작 실행 결과를 제1 어시스턴트 모델(200a)에 전송한다. In step S1354, the IoT cloud server 400 transmits the operation execution result to the first assistant model 200a.

단계 S1356에서, 제1 어시스턴트 모델(200a)은 동작 실행 결과를 제2 어시스턴트 모델(200b)에게 전송한다. 일 실시예에서, 제1 어시스턴트 모델(200a)은 동작 실행 결과와 함께 타겟 디바이스(120)의 타입에 관한 정보를 함께 전송할 수 있다. In step S1356, the first assistant model 200a transmits the operation execution result to the second assistant model 200b. In an embodiment, the first assistant model 200a may transmit information about the type of the target device 120 together with the operation execution result.

단계 S1360에서, 제2 어시스턴트 모델(200b)은 NLG 모델(206)을 이용하여, 동작 실행 결과를 나타내는 응답 메시지를 생성, 획득 또는 결정한다. 일 실시예에서, 제2 어시스턴트 모델(200b)은 수신된 타겟 디바이스 타입에 관한 정보에 기초하여 동작 실행 결과에 대응되는 응답 메시지를 생성, 획득 또는 결정할 수 있다. 응답 메시지는, 타겟 디바이스(120)에 의해 동작이 실행되었다는 실행 결과를 나타내는 메시지일 수 있다. In step S1360, the second assistant model 200b uses the NLG model 206 to generate, obtain, or determine a response message indicating the result of the operation execution. In an embodiment, the second assistant model 200b may generate, obtain, or determine a response message corresponding to an operation execution result based on the received information on the target device type. The response message may be a message indicating an execution result indicating that the operation has been executed by the target device 120.

예를 들어, 타겟 디바이스(120)가 TV이고, TV가 영화를 재생하는 동작을 실행한 경우, 제2 어시스턴트 모델(200b)은 서버(300)로부터 수신된 영화 재생 동작의 실행 결과에 기초하여, "TV에서 영화를 재생하였습니다."라는 응답 메시지를 생성할 수 있다. For example, when the target device 120 is a TV and the TV executes an operation of playing a movie, the second assistant model 200b is based on the execution result of the movie playing operation received from the server 300, You can generate a response message stating "The movie was played on the TV."

또 다른 예에서, 타겟 디바이스(120)가 스피커이고, 스피커가 볼륨을 증가하는 동작에 대한 실행에 실패한 경우, 제2 어시스턴트 모델(200b)은 서버(300)로부터 수신된 볼륨 증가 동작의 실행 결과 및 실패 원인에 기초하여, "볼륨이 가장 높은 상태이므로, 볼륨 증가에 실패하였습니다."라는 응답 메시지를 생성할 수 있다. 이 경우, 서버(300)로부터 수신된 실행 결과는 "실패"이고, 실행 결과와 함께 수신된 실패 원인은 "현재 볼륨은 가장 높은 상태"일 수 있다.In another example, when the target device 120 is a speaker and the speaker fails to perform the operation of increasing the volume, the second assistant model 200b is the result of executing the operation of increasing the volume received from the server 300 and Based on the cause of the failure, you can generate a response message stating "The volume increase has failed because the volume is in the highest state." In this case, the execution result received from the server 300 may be "fail", and the cause of the failure received together with the execution result may be "the current volume is in the highest state".

단계 S1360에는 제2 어시스턴트 모델(200b)이 NLG 모델(206)을 이용하여 동작 실행 결과에 따른 응답 메시지를 생성, 획득 또는 결정하는 것으로 기재되어 있지만, 이에 한정되는 것은 아니다. 일 실시예에서, 응답 메시지는 액션 플랜 관리 모델(210) 내의 디바이스 타입 별 액션 플랜과 함께 기 저장되어 있을 수 있다. 액션 플랜 관리 모델(210)은 기 저장된 응답 메시지 중 수신된 동작 실행 결과에 대응되는 응답 메시지를 식별하고, 식별된 응답 메시지를 획득할 수 있다. In step S1360, it is described that the second assistant model 200b generates, acquires, or determines a response message according to the result of the operation execution using the NLG model 206, but is not limited thereto. In an embodiment, the response message may be pre-stored together with an action plan for each device type in the action plan management model 210. The action plan management model 210 may identify a response message corresponding to a result of the received operation execution among the previously stored response messages, and obtain the identified response message.

단계 S1362에서, 제2 어시스턴트 모델(200b)은 응답 메시지를 제1 어시스턴트 모델(200a)에 전송한다. In step S1362, the second assistant model 200b transmits a response message to the first assistant model 200a.

단계 S1370에서, 제1 어시스턴트 모델(200a)은 응답 메시지에 기초하여, 동작 실행 결과를 알리기 위한 알림 컨텐트를 생성한다. 일 실시예에서, 제1 어시스턴트 모델(200a)는 알림 컨텐트의 포맷으로, 텍스트, 오디오, 이미지, 및 동영상 중 적어도 하나를 결정하고, 결정된 포맷에 맞게 알림 컨텐트를 생성 또는 획득할 수 있다. In step S1370, the first assistant model 200a generates notification content for notifying the result of the operation execution based on the response message. In an embodiment, the first assistant model 200a may determine at least one of text, audio, image, and video as the format of the notification content, and generate or obtain the notification content according to the determined format.

제1 어시스턴트 모델(200a)은 텍스트를 음성으로 변환하는 TTS(Text-to- Speech) 기능을 수행하여, 텍스트 포맷의 응답 메시지를 오디오 신호로 변환할 수 있다. 일 실시예에서, 서버(300)는 타겟 디바이스(120)로부터 수신한 레이아웃 키(layout key)에 대응되는 레이아웃에 기초하여 이미지를 생성할 수 있다. The first assistant model 200a may convert a text-formatted response message into an audio signal by performing a text-to-speech (TTS) function that converts text into speech. In an embodiment, the server 300 may generate an image based on a layout corresponding to a layout key received from the target device 120.

단계 S1372에서, 서버(300)의 제1 어시스턴트 모델(200a)은 알림 컨텐트를 클라이언트 디바이스(110)에 전송한다. 일 실시예에서, 서버(300)는 알림 컨텐트를 타겟 디바이스(120)에 전송할 수 있다. 서버(300)는 알림 컨텐트를 제공할 디바이스를 기 정의된 규칙에 의해 판단할 수 있다. 기 정의된 규칙은, 동작 별로 대응하는 알림 컨텐트의 포맷에 대한 정보를 포함한다. 또한, 추가적으로 알림 컨텐트를 출력할 디바이스에 대한 정보를 포함할 수도 있다. In step S1372, the first assistant model 200a of the server 300 transmits the notification content to the client device 110. In an embodiment, the server 300 may transmit notification content to the target device 120. The server 300 may determine a device to provide notification content according to a predefined rule. The predefined rule includes information on the format of the notification content corresponding to each operation. In addition, it may additionally include information on a device to output notification content.

예를 들면, 영화 재생 동작은 오디오 포맷의 알림 컨텐트를 출력하는 것으로 정의되어 있으며, 사용자의 음성 입력을 전송한 클라이언트 디바이스(110)에서 제공하는 것으로 정의되어 있다. 영화 재생 동작에 대한 알림 컨텐츠는, 오디오 포맷으로 출력되며 클라이언트 디바이스에서 제공하는 것으로 정의되어 있다면, 서버(300)는 알림 컨텐트를 오디오 포맷으로 변환하여 클라이언트 디바이스로 전송할 수 있다.For example, the movie playback operation is defined as outputting notification content in an audio format, and is defined as being provided by the client device 110 that has transmitted the user's voice input. If the notification content for the movie playback operation is output in an audio format and is defined as being provided by the client device, the server 300 may convert the notification content into an audio format and transmit it to the client device.

단계 S1380에서, 클라이언트 디바이스(110)는 알림 컨텐트를 출력한다. 알림 컨텐트가 오디오 포맷인 경우, 클라이언트 디바이스(110)는 스피커를 통해 알림 컨텐트를 출력할 수 있다. 알림 컨텐트가 이미지인 경우, 클라이언트 디바이스(110)는 이미지를 디스플레이부 상에 알림 컨텐트를 디스플레이할 수 있다. In step S1380, the client device 110 outputs notification content. When the notification content is in an audio format, the client device 110 may output the notification content through a speaker. When the notification content is an image, the client device 110 may display the notification content on the display unit.

도 14는 본 개시의 클라이언트 디바이스(110), 서버(300), 및 IoT 클라우드 서버(400)를 도시한 블록도이다. 14 is a block diagram illustrating a client device 110, a server 300, and an IoT cloud server 400 of the present disclosure.

클라이언트 디바이스(110)는 적어도 마이크(112), 프로세서(114), 메모리(116), 및 통신 인터페이스(118)을 포함하도록 구성될 수 있다. 클라이언트 디바이스(110)는 마이크(112)를 통해 사용자로부터 음성 입력(예를 들어, 발화)을 수신하고, 사용자의 음성 입력으로부터 음성 신호를 획득할 수 있다. 클라이언트 디바이스(110)는 프로세서(114)를 통해 통신 인터페이스(118)를 제어하고, 통신 인터페이스(118)를 통해 서버(300)에 음성 신호를 전송할 수 있다. 일 실시예에서, 클라이언트 디바이스(110)의 프로세서(114)는, 마이크(112)를 통해 수신된 소리를 음향 신호로 변환하고, 음향 신호로부터 노이즈(예를 들어, 비음성 성분)를 제거하여 음성 신호를 획득할 수 있다. The client device 110 may be configured to include at least a microphone 112, a processor 114, a memory 116, and a communication interface 118. The client device 110 may receive a voice input (eg, speech) from a user through the microphone 112 and obtain a voice signal from the user's voice input. The client device 110 may control the communication interface 118 through the processor 114 and transmit a voice signal to the server 300 through the communication interface 118. In one embodiment, the processor 114 of the client device 110 converts the sound received through the microphone 112 into an acoustic signal, and removes noise (for example, a non-speech component) from the acoustic signal. The signal can be acquired.

메모리(116)는 클라이언트 디바이스(110)의 식별 정보(예를 들어, 클라이언트 디바이스의 id 정보) 또는 사용자의 계정 정보(예를 들어, 사용자의 id 정보)를 기 저장하고 있을 수 있다. 일 실시예에서, 클라이언트 디바이스(110)는 프로세서(114)의 제어에 따라 통신 인터페이스(118)를 통해 음성 신호를 서버(300)에 전송할 때, 메모리(116)에 저장되어 있는 클라이언트 디바이스(110)의 식별 정보(예를 들어, 클라이언트 디바이스의 id 정보) 또는 사용자의 계정 정보(예를 들어, 사용자의 id 정보)를 서버(300)에 전송할 수 있다. The memory 116 may pre-store identification information (eg, ID information of a client device) or user account information (eg, user ID information) of the client device 110. In one embodiment, when the client device 110 transmits a voice signal to the server 300 through the communication interface 118 under the control of the processor 114, the client device 110 stored in the memory 116 Identification information (eg, ID information of a client device) or user account information (eg, ID information of a user) may be transmitted to the server 300.

서버(300)는 통신 인터페이스(302), 프로세서(304), 및 메모리(306)를 포함할 수 있다. Server 300 may include a communication interface 302, a processor 304, and a memory 306.

통신 인터페이스(302)은 클라이언트 디바이스(110) 및 IoT 클라우드 서버(400)와 데이터 통신을 수행할 수 있다. 통신 인터페이스(302)는 예를 들어, 유선 랜, 무선 랜(Wireless LAN), 와이파이(Wi-Fi), 블루투스(Bluetooth), 지그비(zigbee), WFD(Wi-Fi Direct), 적외선 통신(IrDA, infrared Data Association), BLE (Bluetooth Low Energy), NFC(Near Field Communication), 와이브로(Wireless Broadband Internet, Wibro), 와이맥스(World Interoperability for Microwave Access, WiMAX), SWAP(Shared Wireless Access Protocol), 와이기그(Wireless Gigabit Allicance, WiGig) 및 RF 통신을 포함하는 데이터 통신 방식 중 적어도 하나를 이용하여 클라이언트 디바이스(110) 또는 IoT 클라우드 서버(400)와 데이터 통신을 수행할 수 있다. The communication interface 302 may perform data communication with the client device 110 and the IoT cloud server 400. The communication interface 302 is, for example, wired LAN, wireless LAN, Wi-Fi, Bluetooth, zigbee, Wi-Fi Direct (WFD), infrared communication (IrDA, infrared Data Association), BLE (Bluetooth Low Energy), NFC (Near Field Communication), Wibro (Wireless Broadband Internet, Wibro), WiMAX (World Interoperability for Microwave Access, WiMAX), SWAP (Shared Wireless Access Protocol), Wiigg Data communication with the client device 110 or the IoT cloud server 400 may be performed by using at least one of a data communication method including (Wireless Gigabit Allicance, WiGig) and RF communication.

프로세서(304)는 메모리(306)에 저장된 프로그램의 하나 이상의 명령어들(instructions)을 실행할 수 있다. 프로세서(304)는 산술, 로직 및 입출력 연산과 시그널 프로세싱을 수행하는 하드웨어 구성 요소로 구성될 수 있다. 프로세서(304)는 예를 들어, 중앙 처리 장치(Central Processing Unit), 마이크로 프로세서(microprocessor), 그래픽 프로세서(Graphic Processing Unit), ASICs(Application Specific Integrated Circuits), DSPs(Digital Signal Processors), DSPDs(Digital Signal Processing Devices), PLDs(Programmable Logic Devices), 및 FPGAs(Field Programmable Gate Arrays) 중 적어도 하나로 구성될 수 있으나, 이에 제한되는 것은 아니다. The processor 304 may execute one or more instructions of a program stored in the memory 306. The processor 304 may be composed of hardware components that perform arithmetic, logic and input/output operations and signal processing. The processor 304 is, for example, a central processing unit (Central Processing Unit), a microprocessor (microprocessor), a graphics processor (Graphic Processing Unit), ASICs (Application Specific Integrated Circuits), DSPs (Digital Signal Processors), DSPDs (Digital Signal Processing Devices), Programmable Logic Devices (PLDs), and Field Programmable Gate Arrays (FPGAs), but are not limited thereto.

메모리(306)에는 사용자의 음성 입력으로부터 동작을 수행할 타겟 디바이스를 결정하는 명령어들(instruction)을 포함하는 프로그램이 저장될 수 있다. 메모리(306)에는 프로세서(304)가 판독할 수 있는 명령어들 및 프로그램 코드(program code)가 저장될 수 있다. 이하의 실시예에서, 프로세서(304)는 메모리에 저장된 프로그램의 명령어들 또는 코드들을 실행함으로써 구현될 수 있다. A program including instructions for determining a target device to perform an operation may be stored in the memory 306. The memory 306 may store instructions and program code that the processor 304 can read. In the following embodiment, the processor 304 may be implemented by executing instructions or codes of a program stored in memory.

또한, 메모리(306)에는 제1 어시스턴트 모델(200a)과 제2 어시스턴트 모델(200b)에 대응하는 데이터가 저장될 수 있다. 제1 어시스턴트 모델(200a)에 대응하는 데이터는 적어도 ASR 모델(202)에 대한 데이터, NLG 모델(204)에 관한 데이터, 제1 자연어 이해 모델(300a)에 대한 데이터, 및 디바이스 디스패쳐 모델(310)에 대한 데이터를 포함할 수 있다. 제2 어시스턴트 모델(200b)에 대응하는 데이터는 적어도 복수의 제2 자연어 이해 모델(300b)에 대한 데이터, NLG 모델(206)에 관한 데이터, 및 액션 플랜 관리 모델(310)에 대한 데이터 등을 포함한다.In addition, data corresponding to the first assistant model 200a and the second assistant model 200b may be stored in the memory 306. The data corresponding to the first assistant model 200a includes at least data for the ASR model 202, data for the NLG model 204, data for the first natural language understanding model 300a, and the device dispatcher model 310. ) Can be included. The data corresponding to the second assistant model 200b includes data for at least a plurality of second natural language understanding models 300b, data for the NLG model 206, and data for the action plan management model 310. do.

메모리(306)는 예를 들어, 플래시 메모리 타입(flash memory type), 하드디스크 타입(hard disk type), 멀티미디어 카드 마이크로 타입(multimedia card micro type), 카드 타입의 메모리(예를 들어 SD 또는 XD 메모리 등), 램(RAM, Random Access Memory) SRAM(Static Random Access Memory), 롬(ROM, Read-Only Memory), EEPROM(Electrically Erasable Programmable Read-Only Memory), PROM(Programmable Read-Only Memory), 자기 메모리, 자기 디스크, 광디스크 중 적어도 하나의 타입의 저장매체를 포함할 수 있다. The memory 306 is, for example, a flash memory type, a hard disk type, a multimedia card micro type, a card type memory (eg, SD or XD memory). Etc.), RAM (RAM, Random Access Memory) SRAM (Static Random Access Memory), ROM (ROM, Read-Only Memory), EEPROM (Electrically Erasable Programmable Read-Only Memory), PROM (Programmable Read-Only Memory), Magnetic It may include at least one type of storage medium among memory, magnetic disk, and optical disk.

프로세서(304)는 예를 들어, 중앙 처리 장치(Central Processing Unit), 마이크로 프로세서(microprocessor), 그래픽 프로세서(Graphic Processing Unit), ASICs(Application Specific Integrated Circuits), DSPs(Digital Signal Processors), DSPDs(Digital Signal Processing Devices), PLDs(Programmable Logic Devices), 및 FPGAs(Field Programmable Gate Arrays) 중 적어도 하나의 하드웨어로 구성될 수 있으나, 이에 한정되는 것은 아니다.The processor 304 is, for example, a central processing unit (Central Processing Unit), a microprocessor (microprocessor), a graphics processor (Graphic Processing Unit), ASICs (Application Specific Integrated Circuits), DSPs (Digital Signal Processors), DSPDs (Digital Signal Processing Devices), Programmable Logic Devices (PLDs), and Field Programmable Gate Arrays (FPGAs), but are not limited thereto.

프로세서(304)는 클라이언트 디바이스(110)로부터 음성 신호를 수신하도록 통신 인터페이스(302)를 제어할 수 있다. 프로세서(304)는 메모리(306)에 저장된 ASR 모델(202)에 대한 데이터를 이용하여 ASR(Automatic Speech Recognition)을 수행하고, 클라이언트 디바이스(110)로부터 수신한 음성 신호를 텍스트(text)로 변환할 수 있다. The processor 304 can control the communication interface 302 to receive a voice signal from the client device 110. The processor 304 performs ASR (Automatic Speech Recognition) using the data for the ASR model 202 stored in the memory 306, and converts the speech signal received from the client device 110 into text. I can.

프로세서(304)는 메모리(306)에 저장된 제1 자연어 이해 모델(Natural Language Understanding; NLU)(300a)에 대한 데이터를 이용하여 변환된 텍스트를 분석하고, 텍스트의 분석 결과에 기초하여 적어도 하나의 타겟 디바이스의 타입(type)을 결정할 수 있다. 일 실시예에서, 프로세서(304)는 메모리(306)에 저장된 제1 자연어 이해 모델(300a)에 관한 데이터를 이용하여, 텍스트를 형태소, 단어(word), 또는 구(phrase)의 단위로 파싱(parse)하고, 형태소, 단어, 또는 구의 언어적 특징(예: 문법적 요소)을 이용하여 파싱된 텍스트로부터 추출된 단어의 의미를 추론할 수 있다. 프로세서(304)는, 추론된 단어의 의미를 제1 자연어 이해 모델(300a)에서 제공되는 기 정의된 인텐트들과 비교함으로써, 추론된 단어의 의미에 대응되는 제1 인텐트를 결정할 수 있다. The processor 304 analyzes the converted text by using data on the first natural language understanding (NLU) 300a stored in the memory 306, and analyzes at least one target based on the analysis result of the text. The device type can be determined. In an embodiment, the processor 304 parses the text in units of morphemes, words, or phrases by using data on the first natural language understanding model 300a stored in the memory 306 ( parse), and the meaning of the word extracted from the parsed text can be inferred by using the linguistic features (eg, grammatical elements) of the morpheme, word, or phrase. The processor 304 may determine a first intent corresponding to the meaning of the inferred word by comparing the meaning of the inferred word with predefined intents provided in the first natural language understanding model 300a.

프로세서(304)는 제1 인텐트와 타겟 디바이스 타입 간의 관련성을 판단할 수 있는 매칭 모델에 기초하여, 텍스트로부터 인식된 제1 인텐트와 관련된 타겟 디바이스 타입을 결정할 수 있다. 일 실시예에서, 매칭 모델은 메모리(306)에 저장된 디바이스 디스패쳐 모델(310)에 대한 데이터에 포함되며, 룰 베이스 시스템(rule-based system)을 통한 학습을 통해 획득될 수 있지만, 이에 한정되지는 않는다. 디바이스 디스패쳐 모델(310)은 제1 자연어 이해 모델(300a)와는 별개로 구성될 수 있지만, 이에 한정되는 것은 아니다. 디바이스 디스패쳐 모델(310)은 제1 자연어 이해 모델(300a)을 포함하도록 구성될 수도 있다.The processor 304 may determine a target device type related to the first intent recognized from the text, based on a matching model capable of determining the relationship between the first intent and the target device type. In one embodiment, the matching model is included in data on the device dispatcher model 310 stored in the memory 306, and may be obtained through learning through a rule-based system, but is not limited thereto. Does not. The device dispatcher model 310 may be configured separately from the first natural language understanding model 300a, but is not limited thereto. The device dispatcher model 310 may be configured to include a first natural language understanding model 300a.

일 실시예에서, 프로세서(304)는 사용자의 계정 정보와 관련하여 IoT 클라우드 서버에 기 등록되어 있는 복수의 디바이스에 관한 정보를 수신하도록 통신 인터페이스(302)을 제어할 수 있다. 사용자의 계정 정보는 클라이언트 디바이스(110)의 메모리(116)에 저장되어 있는 정보로, 서버(300)는 통신 인터페이스(302)와 클라이언트 디바이스(110)의 통신 인터페이스(118) 간의 통신을 통해 사용자의 계정 정보를 수신할 수 있다. In an embodiment, the processor 304 may control the communication interface 302 to receive information on a plurality of devices that are previously registered in the IoT cloud server in relation to the user's account information. The user's account information is information stored in the memory 116 of the client device 110, and the server 300 communicates between the communication interface 302 and the communication interface 118 of the client device 110. You can receive account information.

IoT 클라우드 서버(400)는 사용자의 계정 별로 기 등록된 사용자의 복수의 디바이스에 관한 디바이스 정보를 저장하는 서버일 수 있다. IoT 클라우드 서버(400)는 서버(300)와는 별개이고, 서버(300)와는 네트워크를 통해 연결될 수 있다. IoT 클라우드 서버(400)는 적어도 통신 인터페이스(402), 프로세서(404), 및 메모리(406)을 포함할 수 있다. IoT 클라우드 서버(400)의 메모리(406)는, 사용자 계정별로 기 등록된 복수의 디바이스의 식별 정보, 기능 수행 능력 정보, 위치 정보, 상태 정보, 디바이스의 명칭 정보, 디바이스별 제어 명령을 저장할 수 있다. IoT 클라우드 서버(400)는 통신 인터페이스(402)를 통해 서버(300) 또는 타겟 디바이스(120)와 네트워크를 통해 연결되고 데이터를 수신 또는 전송할 수 있다. IoT 클라우드 서버(400)는 프로세서(404)의 제어에 따라 통신 인터페이스(402)를 통해 서버(300) 또는 타겟 디바이스(120)로 메모리(406)에 저장된 데이터를 전송할 수 있다. 또한 IoT 클라우드 서버(400)는 프로세서(404)의 제어에 따라 통신 인터페이스(402)를 통해 서버(300) 또는 타겟 디바이스(120)로부터 데이터를 수신할 수 있다.The IoT cloud server 400 may be a server that stores device information about a plurality of devices of a user, which are previously registered for each user account. The IoT cloud server 400 is separate from the server 300 and may be connected to the server 300 through a network. The IoT cloud server 400 may include at least a communication interface 402, a processor 404, and a memory 406. The memory 406 of the IoT cloud server 400 may store identification information, function performance capability information, location information, status information, device name information, and device-specific control commands for a plurality of devices previously registered for each user account. . The IoT cloud server 400 is connected to the server 300 or the target device 120 through a network through the communication interface 402 and may receive or transmit data. The IoT cloud server 400 may transmit data stored in the memory 406 to the server 300 or the target device 120 through the communication interface 402 under the control of the processor 404. In addition, the IoT cloud server 400 may receive data from the server 300 or the target device 120 through the communication interface 402 under the control of the processor 404.

프로세서(304)는 통신 인터페이스(302)를 제어하고, 통신 인터페이스(302)를 통해, 사용자의 계정 정보와 관련하여 기 등록된 복수의 디바이스의 식별 정보(예: 디바이스 id), 기능 수행 능력 정보, 위치 정보, 및 상태 정보 중 적어도 하나를 포함하는 디바이스 정보를 IoT 클라우드 서버(400)로부터 수신할 수 있다. 여기서, 상태 정보는 복수의 디바이스의 전원 온오프(on/off) 정보, 및 현재 실행하고 있는 동작 정보 중 적어도 하나와 같이 디바이스의 현재 상태를 나타내는 정보일 수 있다. The processor 304 controls the communication interface 302, and through the communication interface 302, identification information (eg, device ID) of a plurality of devices previously registered in relation to the user's account information, function performance capability information, Device information including at least one of location information and status information may be received from the IoT cloud server 400. Here, the state information may be information indicating a current state of the device, such as at least one of power on/off information of a plurality of devices and information about an operation currently being executed.

프로세서(304)는 메모리(306)에 저장된 제1 어시스턴트 모델(200a)에 관한 데이터를 이용하여, 결정된 타겟 디바이스 타입 및 사용자의 계정에 기 등록된 복수의 디바이스의 디바이스 정보에 기초하여 타겟 디바이스를 결정할 수 있다. The processor 304 uses the data on the first assistant model 200a stored in the memory 306 to determine the target device based on the determined target device type and device information of a plurality of devices previously registered in the user's account. I can.

일 실시예에서, 프로세서(304)는 메모리(306)에 저장된 제1 자연어 이해 모델(300a)에 관한 데이터를 이용하여, 텍스트로부터 디바이스의 타입에 관련된 보통 명칭 및 디바이스의 설치 위치에 관한 단어 또는 구를 추출하고, 추출된 디바이스의 보통 명칭 및 설치 위치에 기초하여 타겟 디바이스를 결정할 수 있다. In one embodiment, the processor 304 uses the data about the first natural language understanding model 300a stored in the memory 306, from the text to a word or phrase related to the type of device and the installation location of the device. Is extracted, and the target device can be determined based on the normal name and installation location of the extracted device.

일 실시예에서, 프로세서(304)는 텍스트로부터 사용자에 의해 기 등록된 개인화된 디바이스의 명칭을 추출할 수 있다. 프로세서(304)는 통신 인터페이스(302)를 제어함으로써, 추출된 디바이스의 명칭을 복수의 디바이스의 명칭 및 각 디바이스의 명칭에 대응하는 디바이스 식별 정보를 저장하고 있는IoT 서버(400) 또는 디바이스 명칭 서버(410, 도 15 참조)에 추출된 디바이스의 명칭을 전송할 수 있다. 프로세서(304)는 외부 서버로부터 전송한 디바이스의 명칭에 대응되는 디바이스 식별 정보를 수신하도록 통신 인터페이스(302)을 제어할 수 있다. 여기서, 디바이스 명칭 서버(410)는 IoT 클라우드 서버(400)에 포함되는 일부 구성 요소일 수 있으나, 이에 한정되지 않는다. 디바이스 명칭 서버(410)는 IoT 클라우드 서버(400)와 분리된 형태의 서버로 구성될 수도 있다. 디바이스 명칭 서버(410)에 저장된 복수의 디바이스의 명칭은 사용자가 직접 등록한 명칭 및 등록된 명칭의 동의어, 유사어 및 속어 중 적어도 하나를 포함할 수 있다.In one embodiment, the processor 304 may extract the name of the personalized device pre-registered by the user from the text. The processor 304 controls the communication interface 302 to store the extracted device names as the names of a plurality of devices and device identification information corresponding to the names of each device. 410 (refer to FIG. 15), the extracted device name may be transmitted. The processor 304 may control the communication interface 302 to receive device identification information corresponding to the device name transmitted from an external server. Here, the device name server 410 may be some components included in the IoT cloud server 400, but is not limited thereto. The device name server 410 may be configured as a server separate from the IoT cloud server 400. The names of the plurality of devices stored in the device name server 410 may include at least one of a name directly registered by the user and a synonym of the registered name, a similar word, and a slang word.

프로세서(304)는 메모리(302)에 저장된 제1 어시스턴트 모델(200a)에 대한 데이터를 이용하여, 수신된 디바이스 식별 정보에 기초하여 타겟 디바이스를 결정할 수 있다. 일 실시예에서, 프로세서(304)는 결정된 타입에 해당되는 디바이스가 복수 개 존재하는 경우, 메모리(302)에 저장된 NLG 모델(204)을 이용하여, 복수의 후보 디바이스 중 타겟 디바이스를 선택하기 위한 질의 메시지를 생성할 수 있다. 프로세서(304)는 클라이언트 디바이스(110)가 생성된 질의 메시지를 출력하도록 클라이언트 디바이스(110)를 제어할 수 있다.The processor 304 may determine a target device based on the received device identification information by using the data for the first assistant model 200a stored in the memory 302. In one embodiment, when a plurality of devices corresponding to the determined type exist, the processor 304 uses the NLG model 204 stored in the memory 302 to make a query for selecting a target device from among a plurality of candidate devices. You can create a message. The processor 304 may control the client device 110 so that the client device 110 outputs the generated query message.

프로세서(304)는 메모리(302)에 저장된 제2 어시스턴트 모델(200b)에 포함되는 복수의 제2 자연어 이해 모델(300b) 중 결정된 타겟 디바이스의 타입에 대응되는 제2 자연어 이해 모델을 이용하여, 타겟 디바이스가 수행할 세부 동작에 관한 동작 정보를 획득한다. 일 실시예에서, 프로세서(304)는 제2 자연어 이해 모델을 이용하여 텍스트를 형태소, 단어, 또는 구 단위로 파싱하고, 문법적 및 의미적 분석을 통해 파싱된 형태소, 단어, 또는 구의 의미를 추론하고, 추론된 의미를 기 정의된 단어에 매칭시켜 제2 인텐트 및 파라미터를 획득할 수 있다. 프로세서(304)는 제2 자연어 이해 모델을 이용하여 텍스트로부터 제2 인텐트를 결정할 수 있는데, 제1 인텐트보다 디바이스 타입에 특화된 인텐트를 제2 인텐트로 결정할 수 있다.The processor 304 uses a second natural language understanding model corresponding to the determined type of the target device among the plurality of second natural language understanding models 300b included in the second assistant model 200b stored in the memory 302, Acquires operation information on detailed operations to be performed by the device. In one embodiment, the processor 304 parses the text into morphemes, words, or phrases using the second natural language understanding model, and infers the meaning of the parsed morphemes, words, or phrases through grammatical and semantic analysis. , By matching the inferred meaning to a predefined word, a second intent and a parameter may be obtained. The processor 304 may determine a second intent from the text using the second natural language understanding model, and may determine an intent specialized for a device type rather than the first intent as the second intent.

프로세서(304)는 메모리(302)에 저장된 제2 어시스턴트 모델(200b) 중 액션 플랜 관리 모델(210)을 이용하여 제2 인텐트 및 파라미터에 관련된 적어도 하나의 동작에 대한 동작 정보를 획득할 수 있다. 동작 정보는, 디바이스가 수행할 세부 동작들 및 세부 동작들의 실행 순서에 관련된 정보일 수 있다. 액션 플랜 관리 모델(210)은, 디바이스 타입 별로 디바이스의 세부 동작들 및 세부 동작들 간의 관계에 관한 정보를 관리할 수 있다. 프로세서(304)는 액션 플랜 관리 모델(210)을 이용함으로써, 제2 인텐트 및 파라미터에 기초하여, 디바이스가 수행할 세부 동작들 및 세부 동작들의 실행 순서를 플래닝(planning)할 수 있다. The processor 304 may obtain operation information on at least one operation related to the second intent and parameter by using the action plan management model 210 of the second assistant model 200b stored in the memory 302. . The operation information may be information related to detailed operations to be performed by the device and an execution order of the detailed operations. The action plan management model 210 may manage detailed operations of a device for each device type and information about a relationship between detailed operations. The processor 304 may plan detailed operations to be performed by the device and an execution order of detailed operations based on the second intent and parameters by using the action plan management model 210.

통신 인터페이스(302)는 프로세서(304)의 제어에 따라 결정된 타겟 디바이스의 식별 정보, 타겟 디바이스의 세부 동작 및 세부 동작의 실행 순서에 대한 정보를 IoT 클라우드 서버(400)로 전송한다. IoT 클라우드 서버(400)는 통신 인터페이스(402)를 통해 수신한 타겟 디바이스의 식별 정보, 타겟 디바이스의 세부 동작 및 세부 동작의 실행 순서에 대한 정보를 이용하여, 프로세서(404)의 제어에 따라 메모리(402)에 저장된 디바이스 별 제어 명령 중 대응하는 제어 명령들을 결정할 수 있다.The communication interface 302 transmits, to the IoT cloud server 400, identification information of the target device determined according to the control of the processor 304, detailed operation of the target device, and information on the execution order of the detailed operation. The IoT cloud server 400 uses the identification information of the target device received through the communication interface 402, the detailed operation of the target device, and the information on the execution order of the detailed operation, according to the control of the processor 404, the memory ( Among the control commands for each device stored in 402), corresponding control commands may be determined.

IoT 클라우드 서버(400)의 통신 인터페이스(402)는 프로세서(404)의 제어에 따라, 통신 인터페이스(402)를 통해 결정된 제어 명령들을 타겟 디바이스로 전송한다. 일 실시예에서, 프로세서(404)는 타겟 디바이스의 식별 정보를 이용하여 결정된 제어 명령을 전송할 디바이스를 결정하고, 통신 인터페이스(402)를 통해 결정된 디바이스로 제어 명령들을 전송한다. 일 실시예에서, 프로세서(404)는 통신 인터페이스(402)를 통해 타겟 디바이스에서 제어 명령에 따라 동작을 실행한 결과를 수신할 수 있다. The communication interface 402 of the IoT cloud server 400 transmits control commands determined through the communication interface 402 to the target device under the control of the processor 404. In one embodiment, the processor 404 determines a device to transmit the determined control command using the identification information of the target device, and transmits the control commands to the determined device through the communication interface 402. In an embodiment, the processor 404 may receive a result of executing an operation according to a control command in the target device through the communication interface 402.

도 15 내지 도 19는 본 개시의 서버에 의해 실행되는 프로그램 모듈의 동작들을 설명하는 도면들이다.15 to 19 are diagrams illustrating operations of a program module executed by the server of the present disclosure.

도 15는 본 개시의 일 실시예에 따른 서버(300)에 의해 실행되는 프로그램의 아키텍쳐(architecture)를 도시한 도면이다. 도 15에 도시된 클라이언트 디바이스(110) 및 IoT 클라우드 서버(400)는 도 14에 도시된 클라이언트 디바이스(110) 및 IoT 클라우드 서버(400)와 동일한 구성 요소이다. 도 15에서는 편의 상 제1 어시스턴트 모델(200a)의 구성 요소들 중 일부 구성 요소는 생략하여 도시하였으며, 제2 어시스턴트 모델(200b)에 포함되는 구성 요소들에 관한 도시는 생략하였다. 제1 어시스턴트 모델(200a) 및 제2 어시스턴트 모델(200b) 각각에 포함되는 구성 요소들에 관한 예시는 도 14를 참조한다.FIG. 15 is a diagram illustrating an architecture of a program executed by the server 300 according to an embodiment of the present disclosure. The client device 110 and IoT cloud server 400 shown in FIG. 15 are the same components as the client device 110 and IoT cloud server 400 shown in FIG. 14. In FIG. 15, for convenience, some of the components of the first assistant model 200a are omitted, and illustration of components included in the second assistant model 200b is omitted. For an example of the components included in each of the first assistant model 200a and the second assistant model 200b, refer to FIG. 14.

도 15를 참조하면, 서버(300)는 제2 어시스턴트 모델(200b), 및 디바이스 디스패쳐 모델(310)을 포함할 수 있다. 디바이스 디스패쳐 모델(310)은 플로우 제어부(Flow Controller)(320), 디바이스 타입 분류부(Device Type Classifier)(330), 디바이스 명확화부(Conversational Device Disambiguation)(340), 지능적 디바이스 리졸버(Intelligence Device Resolver)(350) 및 응답 메시지 수행 제어부(Reponse Execute Manager)(360)를 포함할 수 있다. Referring to FIG. 15, the server 300 may include a second assistant model 200b and a device dispatcher model 310. The device dispatcher model 310 includes a flow controller 320, a device type classifier 330, a device disambiguation unit 340, and an intelligent device resolver. ) 350 and a response message execution control unit (Reponse Execute Manager) 360.

플로우 제어부(IDS Flow Controller)(320), 디바이스 타입 분류부(Device Type Classifier)(330), 디바이스 명확화부(Conversational Device Disambiguation)(340), 지능적 디바이스 리졸버(Intelligence Device Resolver)(350) 및 응답 메시지 수행 제어부(Reponse Execute Manager)(360)는 서버(300)에 의해 실행되는 프로그램의 명령어들 또는 프로그램 코드로 구성된 소프트웨어 모듈일 수 있다. 도 15에서는 소프트웨어 모듈들이 별개의 구성인 것으로 도시되어 있지만, 이는 설명의 편의를 위한 것이고, 도시된 바와 같이 한정되는 것은 아니다. IDS Flow Controller 320, Device Type Classifier 330, Conversational Device Disambiguation 340, Intelligent Device Resolver 350, and Response Message The Response Execute Manager 360 may be a software module composed of instructions or program codes of a program executed by the server 300. In FIG. 15, the software modules are illustrated as being separate configurations, but this is for convenience of description and is not limited as illustrated.

도 15에는 도시되지 않았지만, 디바이스 디스패쳐 모델(310)은 세션 매니져(Session Manager)를 더 포함할 수 있다. 세션 매니져는 사용자의 계정 정보와 관련하여 IoT 클라우드 서버(400)에 기 등록된 복수의 디바이스와 서버(300) 간의 세션(session)에 관한 정보를 저장할 수 있다. 세션 매니져는 또한, 클라이언트 디바이스(110)와 디바이스 디스패쳐 모델(310) 및 제2 어시스턴트 모델(200b)과 디바이스 디스패쳐 모델(310) 간의 데이터 및 명령어의 송수신을 제어할 수 있다. 일 실시예에서, 세션 매니져는 사용자와의 대화(interaction)에서 복수의 디바이스 간의 대화를 유지할 것인지 또는 클라이언트 디바이스(110)를 통해서만 사용자의 음성 입력을 수신할 것인지에 관한 정책(policy)을 저장할 수 있다. 세션 매니져는 사용자로부터 특정 디바이스의 명칭 또는 타입을 특정하지 않는 음성 입력을 수신하는 경우, 음성 입력이 수신되기 전에 동작을 수행하던 디바이스를 선택하고, 제2 어시스턴트 모델(200b)에서 결정된 타겟 디바이스에 관련된 동작 정보를 검색할 수 있다. Although not shown in FIG. 15, the device dispatcher model 310 may further include a session manager. The session manager may store information on a session between the server 300 and a plurality of devices previously registered in the IoT cloud server 400 in relation to the user's account information. The session manager may also control transmission and reception of data and commands between the client device 110 and the device dispatcher model 310, and the second assistant model 200b and the device dispatcher model 310. In an embodiment, the session manager may store a policy regarding whether to maintain a conversation between a plurality of devices in an interaction with a user or to receive a user's voice input only through the client device 110. When receiving a voice input that does not specify the name or type of a specific device from the user, the session manager selects the device that performed the operation before the voice input is received, and relates to the target device determined in the second assistant model 200b. You can search operation information.

플로우 제어부(320)는 클라이언트 디바이스(110)로부터 음성 신호를 수신할 수 있다. 플로우 제어부(320)는 디바이스 디스패쳐 모델(310) 내의 데이터 흐름(flow)을 제어하는 모듈일 수 있다. 플로우 제어부(320)는 디바이스 타입 분류부(330) 및 디바이스 명확화부(340)와 연결되고, 디바이스 타입 분류부(330) 및 디바이스 명확화부(340) 사이에서 음성 신호로부터 타겟 디바이스의 타입을 결정하는데 필요한 데이터 플로우의 송수신을 제어할 수 있다. The flow control unit 320 may receive a voice signal from the client device 110. The flow control unit 320 may be a module that controls a data flow in the device dispatcher model 310. The flow control unit 320 is connected to the device type classification unit 330 and the device disambiguation unit 340, and determines the type of the target device from the voice signal between the device type classification unit 330 and the device disambiguation unit 340. You can control the transmission and reception of necessary data flows.

디바이스 타입 분류부(330)는 음성 신호와 관련된 타겟 디바이스 타입(type)을 결정할 수 있다. 디바이스 타입 분류부(330)는 ASR(Automatic Speech Recognition)을 수행하여 음성 신호를 컴퓨터로 판독 가능한 텍스트로 변환할 수 있다. 디바이스 타입 분류부(330)는 제1 자연어 이해 모델을 이용하여 텍스트를 해석하고, 해석 결과에 기초하여 사용자가 타겟 디바이스에서 수행하고자 하는 제1 인텐트(intent)를 획득할 수 있다. 일 실시예에서, 디바이스 타입 분류부(330)는 인공지능 모델을 이용하여 제1 인텐트와 관련된 타겟 디바이스의 타입 간의 매칭 룰(matching rule) 또는 매칭 패턴(matching pattern)을 학습하고, 학습된 매칭 룰 또는 매칭 패턴에 기초하여 인텐트에 따른 타겟 디바이스의 타입을 결정할 수 있다. The device type classifier 330 may determine a target device type related to the voice signal. The device type classification unit 330 may convert a speech signal into a computer-readable text by performing ASR (Automatic Speech Recognition). The device type classifier 330 may analyze text using the first natural language understanding model and obtain a first intent that the user intends to perform in the target device based on the analysis result. In one embodiment, the device type classifier 330 learns a matching rule or a matching pattern between types of target devices related to the first intent using an artificial intelligence model, and the learned matching The type of target device according to the intent may be determined based on a rule or a matching pattern.

디바이스 타입 분류부(330)는 예를 들어, 룰 베이스 시스템(rule-based system)을 이용하여 인텐트와 타겟 디바이스 타입 간의 매칭 룰 또는 매칭 패턴을 학습할 수 있으나, 이에 한정되는 것은 아니다. 디바이스 타입 분류부(330)가 이용하는 인공지능 모델은 예를 들어, 신경망 베이스 시스템(neual network-based system)(예: 컨볼루션 신경망(convolution neural network; CNN, 순환 신경망(recurrent neural network; RNN), SVM(Support Vector Machine), 선형 회귀(linear regression), 로지스틱 회귀(logistic regression), 나이브 베이즈 분류(Naive Bayes), 랜덤 포레스트(random forest), decision tree, 또는 k-nearest neighbor algorithm 일 수 있다. 또는, 전술한 것의 조합 또는 이와 다른 인공지능 모델일 수도 있다. The device type classifier 330 may learn a matching rule or a matching pattern between an intent and a target device type using, for example, a rule-based system, but is not limited thereto. The artificial intelligence model used by the device type classification unit 330 is, for example, a neural network-based system (e.g., a convolution neural network; CNN, a recurrent neural network; RNN), SVM (Support Vector Machine), linear regression (linear regression), logistic regression (logistic regression), Naive Bayes classification (Naive Bayes), random forest (random forest), may be a decision tree, or a k-nearest neighbor algorithm. Alternatively, it may be a combination of the above or other artificial intelligence models.

일 실시예에서, 디바이스 타입 분류부(330)는 텍스트로부터 디바이스의 명칭을 인식하고, 인식된 디바이스의 명칭에 기초하여 디바이스의 타입을 결정할 수 있다. 디바이스 타입 분류부(330)는 제1 자연어 이해 모델을 이용하여 텍스트를 단어 또는 구 단위로 파싱(parse)하고, 파싱된 단어 또는 구를 기 정의된 디바이스 명칭에 대응시켜, 텍스트에 포함된 디바이스 명칭을 획득할 수 있다. 예를 들어, 플로우 제어부(320)로부터 "TV에서 보헤미안 랩소디 틀어줘~"라는 음성 신호를 수신하는 경우, 디바이스 타입 분류부(330)는 음성 신호를 텍스트로 변환하고, 변환된 텍스트를 파싱하여, 'TV'라는 디바이스 명칭을 획득할 수 있다. In an embodiment, the device type classifier 330 may recognize a device name from text and determine a device type based on the recognized device name. The device type classification unit 330 parses the text into words or phrases using the first natural language understanding model, and associates the parsed word or phrase with a predefined device name, and the device name included in the text Can be obtained. For example, when receiving a voice signal "Play Bohemian Rhapsody on TV" from the flow control unit 320, the device type classification unit 330 converts the voice signal into text, parses the converted text, A device name of'TV' can be obtained.

일 실시예에서, 디바이스 타입 분류부(330)는 텍스트로부터 획득된 디바이스의 명칭이 개인화된 별칭인 경우, 디바이스 명칭 서버(410)에 쿼리(query)를 전송하고, 디바이스 명칭 서버(410)로부터 개인화된 별칭에 해당되는 디바이스 식별 정보를 수신할 수 있다. 디바이스 명칭 서버(410)는 기등록된 복수의 디바이스의 명칭과 관련된 별칭 정보를 저장하는 외부 서버일 수 있다. 디바이스 명칭 서버(410)는 IoT 클라우드 서버(400) 내에 포함될 수 있으나, 이에 한정되는 것은 아니다. 디바이스 명칭 서버(410)는 IoT 클라우드 서버(400)와는 별개의 서버일 수 있다. 디바이스 명칭 서버(410)는 예를 들어, 사용자에 의해 등록된 복수의 디바이스 각각의 명칭의 동의어, 유사어, 및 속어 중 적어도 하나의 개인화된 어휘(personalized vocabulary)를 저장할 수 있다. In one embodiment, the device type classification unit 330 transmits a query to the device name server 410 and personalizes it from the device name server 410 when the device name obtained from the text is a personalized alias. Device identification information corresponding to the alias may be received. The device name server 410 may be an external server that stores alias information related to names of a plurality of previously registered devices. The device name server 410 may be included in the IoT cloud server 400, but is not limited thereto. The device name server 410 may be a server separate from the IoT cloud server 400. The device name server 410 may store, for example, a personalized vocabulary of at least one of synonyms, similar words, and slang words of names of a plurality of devices registered by the user.

디바이스 명칭 서버(410)는 사용자가 계정 정보에 디바이스를 등록할 때 개인화된 단어 또는 어휘로 등록하여 저장할 수 있고, 개인화된 단어 또는 어휘는 추가 또는 삭제될 수 있다. 예를 들어, 사용자가 거실 TV를 '네모네모'라고 디바이스 명칭 서버(410)에 저장한 경우, 디바이스 타입 분류부(330)는 디바이스 명칭 서버(410)에 '네모네모'에 관한 쿼리(query)를 전송하고, 디바이스 명칭 서버(410)로부터 '네모네모'에 대응되는 "거실 TV"의 식별 정보(id 정보)를 수신할 수 있다. 일 실시예에서, 디바이스 명칭 서버(410)는 클라우드 서버, 외부 저장소 또는 데이터 베이스(DB) 형태로 존재할 수도 있다.When a user registers a device in account information, the device name server 410 may register and store a personalized word or vocabulary, and the personalized word or vocabulary may be added or deleted. For example, when the user stores the living room TV as'square' in the device name server 410, the device type classification unit 330 queries the device name server 410 for'square'. And receive identification information (id information) of the “living room TV” corresponding to the “square” from the device name server 410. In an embodiment, the device name server 410 may exist in the form of a cloud server, an external storage, or a database (DB).

디바이스 타입 분류부(330)는 결정된 타겟 디바이스의 타입에 관한 정보를 플로우 제어부(320)에 전송할 수 있다. The device type classification unit 330 may transmit information on the determined type of the target device to the flow controller 320.

플로우 제어부(320)는 디바이스 명확화부(340)에 타겟 디바이스 타입에 관한 정보를 전송한다. The flow control unit 320 transmits information on the target device type to the device disambiguation unit 340.

디바이스 명확화부(340)는 디바이스 타입 분류부(330)에 의해 결정된 타입에 해당되는 디바이스가 복수 개인 경우, 사용자와의 대화를 통해 타겟 디바이스를 명확화(disambiguation)할 수 있다. 디바이스 명확화부(340)는 복수의 타겟 디바이스 후보 중 타겟 디바이스를 선택하기 위한 질의 메시지를 생성할 수 있다. 디바이스 명확화부(340)는 자연어 생성(Natural Language Generation; NLG) 모델을 이용하여 질의 메시지를 생성할 수 있다. 디바이스 명확화부(340)는 TTS(Text to Speech) 모델을 이용하여, 텍스트 형태의 질의 메시지를 오디오 신호로 변환할 수 있다. 일 실시예에서, 디바이스 명확화부(340)는 생성된 질의 메시지가 사용자로부터 음성 입력을 수신하는 클라이언트 디바이스(110)에 의해 출력되도록, 질의 메시지를 플로우 제어부(320)에 전송할 수 있다. 디바이스 명확화부(340)는 텍스트 형태의 질의 메시지를 플로우 제어부(320)에 전송할 수 있지만, 이에 한정되는 것은 아니다. 디바이스 명확화부(340)는 오디오 신호로 변환된 질의 메시지를 플로우 제어부(320)에 전송할 수도 있다. When there are a plurality of devices corresponding to the type determined by the device type classification unit 330, the device disambiguation unit 340 may disambiguate the target device through a conversation with the user. The device disambiguation unit 340 may generate a query message for selecting a target device from among a plurality of target device candidates. The device disambiguation unit 340 may generate a query message using a natural language generation (NLG) model. The device disambiguation unit 340 may convert a text query message into an audio signal using a text to speech (TTS) model. In an embodiment, the device disambiguation unit 340 may transmit a query message to the flow controller 320 so that the generated query message is output by the client device 110 that receives a voice input from the user. The device disambiguation unit 340 may transmit a text query message to the flow control unit 320, but is not limited thereto. The device disambiguation unit 340 may transmit an inquiry message converted into an audio signal to the flow controller 320.

플로우 제어부(320)는 질의 메시지를 클라이언트 디바이스(110)에 전송할 수 있다.The flow control unit 320 may transmit an inquiry message to the client device 110.

디바이스 명확화부(340)는 복수의 타겟 디바이스 중 어느 하나를 선택해야 하는 경우, 사용자의 기존 응답 입력 및 기존 응답 입력에 의해 사용자가 기존에 선택하였던 타겟 디바이스에 관한 정보를 질의 메시지와 함께 제공할 수 있다. When it is necessary to select any one of a plurality of target devices, the device disambiguation unit 340 may provide information on the target device previously selected by the user by the user's existing response input and the existing response input together with a query message. have.

디바이스 명확화부(340)는 질의 메시지 내에 포함되는 복수의 타겟 디바이스 후보 중 어느 하나를 선택하는 사용자의 응답 입력에 기초하여 타겟 디바이스를 결정할 수 있다. 사용자의 응답 입력은, 클라이언트 디바이스(110)로부터 음성 신호의 형태로 전송될 수 있다. 일 실시예에서, 디바이스 명확화부(340)는 응답 입력으로부터 디바이스의 보통 명칭, 설치 위치, 또는 질의 메시지 내에서 복수의 타겟 디바이스 후보가 나열된 순서를 인식하고, 응답 입력에 기초하여 타겟 디바이스를 결정할 수 있다. 디바이스 명확화부(340)는 클라이언트 디바이스(110)로부터 수신된 응답 입력을 텍스트로 변환하고, 텍스트를 단어 또는 구 단위로 파싱하여, 텍스트에 포함된 디바이스의 보통 명칭, 설치 위치, 또는 서수(나열 순서, 예: '첫번째 디바이스')를 획득할 수 있다. 예를 들어, 질의 메시지가 복수의 타겟 디바이스 후보를 기설정된 순서로 나열된 리스트를 포함하는 경우, 디바이스 명확화부(340)는 "첫번째" 또는 "두번째"와 같은 사용자의 응답 입력에 기초하여 리스트 내에서 특정 타겟 디바이스의 순서에 대응되는 디바이스를 인식하고, 인식된 디바이스를 타겟 디바이스로 결정할 수 있다. The device disambiguation unit 340 may determine a target device based on a response input from a user selecting any one of a plurality of target device candidates included in the query message. The user's response input may be transmitted from the client device 110 in the form of a voice signal. In one embodiment, the device disambiguation unit 340 recognizes the order in which the plurality of target device candidates are listed in the general name, installation location, or query message of the device from the response input, and determines the target device based on the response input. have. The device disambiguation unit 340 converts the response input received from the client device 110 into text, parses the text into words or phrases, and the normal name, installation location, or ordinal number of the device included in the text (sequence order). , Example:'first device') can be acquired. For example, if the query message includes a list in which a plurality of target device candidates are listed in a preset order, the device disambiguation unit 340 may within the list based on the user's response input such as "first" or "second". A device corresponding to an order of a specific target device may be recognized, and the recognized device may be determined as a target device.

디바이스 명확화부(340)는 지능적 디바이스 리졸버(350)에 복수의 타겟 디바이스 후보에 관한 정보를 전송할 수 있다. The device disambiguation unit 340 may transmit information on a plurality of target device candidates to the intelligent device resolver 350.

지능적 디바이스 리졸버(350)는 사용자의 계정 정보와 관련하여 IoT 클라우드 서버(400)에 기 등록된 복수의 디바이스에 관한 식별 정보를 획득하고, 복수의 디바이스 각각에 관한 디바이스 정보에 기초하여 타겟 디바이스를 선택할 수 있다. 디바이스 정보는 사용자의 계정 정보와 관련하여 기 등록된 복수의 디바이스 각각의 기능 수행 능력 정보(capability), 위치 정보, 및 상태 정보를 포함할 수 있다. 상태 정보는 예를 들어, 복수의 디바이스의 전원 온오프(on/off) 여부, 및 현재 실행 중인 동작 중 적어도 하나의 정보를 포함할 수 있다. The intelligent device resolver 350 acquires identification information about a plurality of devices previously registered in the IoT cloud server 400 in relation to the user's account information, and selects a target device based on device information about each of the plurality of devices. I can. The device information may include function performance information, location information, and status information of each of a plurality of devices previously registered in relation to the user's account information. The state information may include, for example, information about whether a plurality of devices are powered on or off, and at least one of an operation currently being executed.

지능적 디바이스 리졸버(350)는 선택된 타겟 디바이스에 관한 정보를 디바이스 명확화부(340)에 전송할 수 있다. 일 실시예에서, 지능적 디바이스 리졸버(350)는 타겟 디바이스의 식별 정보(id), 명칭, 별칭, 위치, 제조사, 모델 id, 기능 수행 능력 및 현재 동작 상태에 관한 정보 중 적어도 하나를 디바이스 명확화부(340)에 전송할 수 있다.The intelligent device resolver 350 may transmit information on the selected target device to the device disambiguation unit 340. In one embodiment, the intelligent device resolver 350 transmits at least one of information on the identification information (id), name, alias, location, manufacturer, model id, function performance capability, and current operation state of the target device to the device disambiguation unit ( 340).

플로우 제어부(320)는 타겟 디바이스에 관한 정보를 세션 매니져에 전송할 수 있다. 세션 매니져는 제2 어시스턴트 모델(200b)에 파싱된(parsed) 텍스트 및 타겟 디바이스에 관한 정보를 전송할 수 있다. The flow controller 320 may transmit information about the target device to the session manager. The session manager may transmit the parsed text and information on the target device to the second assistant model 200b.

제2 어시스턴트 모델(200b)의 액션 플랜 관리 모델(210)은 디바이스 타입 별로 디바이스의 동작들 및 동작들 간의 관계에 관한 정보를 관리할 수 있다. 제2 어시스턴트 모델(200b)은 복수의 제2 자연어 이해 모델 중 타겟 디바이스의 타입에 대응되는 제2 자연어 이해 모델을 이용하여 파싱된 텍스트를 해석함으로써, 제2 인텐트 및 파라미터를 결정할 수 있다. 제2 어시스턴트 모델(200b)은 제2 인텐트 및 파라미터에 기초하여, 디바이스가 수행할 세부 동작들 및 세부 동작들의 실행 순서를 플래닝(planning)함으로써, 타겟 디바이스가 수행할 동작에 관한 동작 정보를 생성할 수 있다. 제2 어시스턴트 모델(200b)은 예를 들어, TV 에이전트 또는 스피커 에이전트의 동작 실행과 관련된 액션 플래닝을 수행하여 동작 정보를 생성할 수 있다. The action plan management model 210 of the second assistant model 200b may manage device operations for each device type and information about a relationship between the operations. The second assistant model 200b may determine a second intent and a parameter by analyzing the parsed text using a second natural language understanding model corresponding to the type of the target device among the plurality of second natural language understanding models. The second assistant model 200b generates operation information on the operation to be performed by the target device by planning detailed operations to be performed by the device and the execution order of the detailed operations based on the second intent and parameters. can do. The second assistant model 200b may generate motion information by performing action planning related to an action execution of a TV agent or a speaker agent, for example.

제2 어시스턴트 모델(200b)은 동작 정보, 및 타겟 디바이스의 식별 정보를 세션 매니져에 전송할 수 있다. 세션 매니져는 제2 어시스턴트 모델(200b)로부터 획득한 동작 정보를 응답 메시지 제어부(360)에 전송할 수 있다. 응답 메시지 제어부(360)는 동작 정보 및 타겟 디바이스 식별 정보를 IoT 클라우드 서버(400)에 전송할 수 있다. 일 실시예에서, 응답 메시지 제어부(360)는 대화 정보를 IoT 클라우드 서버(400)에 전송할 수 있다. 대화 정보는, 사용자로부터 수신한 음성 입력을 변환한 텍스트, 서버(300)가 자연어 생성 모델을 이용하여 생성한 질의 메시지, 및 질의 메시지에 관한 응답 입력을 변환한 텍스트 중 적어도 하나를 포함할 수 있다. The second assistant model 200b may transmit operation information and identification information of the target device to the session manager. The session manager may transmit motion information obtained from the second assistant model 200b to the response message controller 360. The response message controller 360 may transmit operation information and target device identification information to the IoT cloud server 400. In an embodiment, the response message controller 360 may transmit conversation information to the IoT cloud server 400. The conversation information may include at least one of a text converted from a voice input received from a user, a query message generated by the server 300 using a natural language generation model, and a text converted from a response input for the query message. .

IoT 클라우드 서버(400)는 수신한 타겟 디바이스의 식별 정보 및 동작 정보에 기초하여 디바이스를 제어할 수 있는 제어 명령(control command)을 획득, 결정 또는 생성할 수 있다. 일 실시예에서, IoT 클라우드 서버(400)는 동작 정보에 기초하여, 타겟 디바이스가 동작 정보 내의 세부 동작들을 수행하도록 하기 위한 제어 명령을 획득, 결정, 또는 생성할 수 있다. 제어 명령은, 타겟 디바이스가 동작 정보에 따른 세부 동작들을 실행하도록 제어하는 명령어를 의미할 수 있다. 그러나, 이에 한정되는 것은 아니고, IoT 클라우드 서버(400)는 동작 정보 및 타겟 디바이스의 식별 정보에 대응되는 제어 명령을 저장하고 있을 수도 있다. The IoT cloud server 400 may acquire, determine, or generate a control command capable of controlling a device based on the received identification information and operation information of the target device. In an embodiment, the IoT cloud server 400 may obtain, determine, or generate a control command for causing the target device to perform detailed operations in the operation information based on the operation information. The control command may mean a command that controls the target device to execute detailed operations according to the operation information. However, the present invention is not limited thereto, and the IoT cloud server 400 may store operation information and a control command corresponding to identification information of a target device.

IoT 클라우드 서버(400)는 타겟 디바이스에 제어 명령을 전송할 수 있다. 타겟 디바이스는 생성된 제어 명령을 판독함으로써, 동작 정보 내의 세부 동작들을 실행 순서에 따라 순차적으로 실행할 수 있다. IoT 클라우드 서버(400)는 제어 명령이 타겟 디바이스에 의해 실행된 결과인, 동작 실행 결과에 관한 신호를 타겟 디바이스로부터 수신할 수 있다. The IoT cloud server 400 may transmit a control command to the target device. By reading the generated control command, the target device can sequentially execute detailed operations in the operation information according to the execution order. The IoT cloud server 400 may receive a signal related to an operation execution result, which is a result of executing a control command by the target device, from the target device.

IoT 클라우드 서버(400)는 동작 실행 결과 신호를 응답 메시지 제어부(360)에 전송할 수 있다.The IoT cloud server 400 may transmit an operation execution result signal to the response message controller 360.

응답 메시지 제어부(360)는 동작 실행 결과에 기초하여 알림 컨텐트를 생성할 수 있다. 일 실시예에서, 응답 메시지 제어부(360)는 자연어 생성(NLG) 모델을 이용하여 알림 컨텐트를 생성할 수 있다. 알림 컨텐트는 타겟 디바이스에 의해 동작이 실행되었다는 결과를 나타내는 메시지일 수 있다. The response message controller 360 may generate notification content based on a result of the operation execution. In an embodiment, the response message controller 360 may generate notification content using a natural language generation (NLG) model. The notification content may be a message indicating a result that the operation has been executed by the target device.

응답 메시지 제어부(360)는 알림 컨텐츠의 포맷으로, 텍스트, 오디오, 이미지, 및 동영상 중 적어도 하나를 결정하고, 결정된 포맷에 맞게 알림 컨텐츠를 생성 또는 획득할 수 있다. 응답 메시지 제어부(360)는 텍스트를 음성으로 변환하는 TTS(Text-to- Speech) 기능을 수행하여, 텍스트 포맷의 알림 컨텐트를 오디오 신호로 변환할 수 있다. The response message controller 360 may determine at least one of text, audio, image, and video as the format of the notification content, and generate or obtain the notification content according to the determined format. The response message controller 360 may perform a text-to-speech (TTS) function for converting text into speech, and may convert notification content in a text format into an audio signal.

응답 메시지 제어부(360)는 알림 컨텐트를 세션 매니져에 전송할 수 있다. The response message controller 360 may transmit notification content to the session manager.

세션 매니져는 클라이언트 디바이스(110)에 알림 컨텐트를 전송할 수 있다. 세션 매니져는 알림 컨텐트를 제공할 디바이스를 기 정의된 규칙에 의해 판단할 수 있다. 기 정의된 규칙은, 동작 별로 대응하는 알림 컨텐트의 포맷에 관한 정보를 포함할 수 있다. 또한, 기 정의된 규칙은 추가적으로 알림 컨텐트를 출력할 디바이스에 관한 정보를 포함할 수도 있다. The session manager may transmit notification content to the client device 110. The session manager may determine a device to provide notification content according to a predefined rule. The predefined rule may include information on the format of the notification content corresponding to each operation. In addition, the predefined rule may additionally include information on a device to output notification content.

클라이언트 디바이스(110)는 수신된 알림 컨텐트를 스피커를 통해 출력할 수 있다. The client device 110 may output the received notification content through a speaker.

도 15에서 디바이스 디스패쳐 모델(310)은 사용자로부터 수신된 음성 입력과 관련하여 결정된 타입에 해당되는 디바이스가 복수 개 존재하는 경우, 사용자에게 어느 디바이스를 타겟 디바이스로 선택할 것인지 질의하는 질의 메시지를 통해 최종적으로 동작을 수행할 타겟 디바이스를 결정하는 실시예를 도시하고 있지만, 이에 한정되는 것은 아니다. 일 실시예에서, 디바이스 디스패쳐 모델(310)은 사용자의 음성 입력으로부터 인식된 제1 인텐트와 사용자가 최종적으로 선택한 타겟 디바이스의 쌍(pair)을 인공 신경망의 입력과 출력으로 적용하여 학습(training)하고, 학습의 결과를 통해 생성된 학습 네트워크 모델을 이용하여 타겟 디바이스를 선택할 수도 있다. 여기서, 디바이스 디스패쳐 모델(310)은 컨볼루션 신경망 모델(Convolution Neural Network, CNN) 또는 재귀 신경망 모델(Recurrent Neural Network, RNN)와 같은 공지의 심층 신경망 모델(Deep Neural Network, DNN)을 이용하여 학습할 수 있으나, 이에 한정되지는 않는다. 학습을 통한 방법을 통해, 사용자의 의도에 따른 타겟 디바이스 결정의 정확도를 향상시킬 수도 있다. In FIG. 15, the device dispatcher model 310 is the final device through a query message that asks the user which device to select as the target device when there are multiple devices corresponding to the type determined in relation to the voice input received from the user. Although an embodiment of determining a target device to perform an operation is illustrated, it is not limited thereto. In one embodiment, the device dispatcher model 310 is trained by applying a pair of a first intent recognized from a user's voice input and a target device finally selected by the user as inputs and outputs of an artificial neural network. ), and the target device may be selected using the learning network model generated through the learning result. Here, the device dispatcher model 310 is trained using a known deep neural network (DNN) such as a convolution neural network (CNN) or a recurrent neural network (RNN). It can be, but is not limited thereto. Through a method through learning, the accuracy of determining a target device according to the user's intention may be improved.

도 16은 본 개시의 일 실시예에 따른 디바이스 디스패쳐 모델(310)의 디바이스 타입 분류부(330)를 도시한 도면이다. 16 is a diagram illustrating a device type classifier 330 of the device dispatcher model 310 according to an embodiment of the present disclosure.

도 16을 참조하면, 디바이스 디스패쳐 모델(310)은 플로우 제어부(320) 및 디바이스 타입 분류부(330)를 포함할 수 있다. Referring to FIG. 16, the device dispatcher model 310 may include a flow control unit 320 and a device type classification unit 330.

디바이스 타입 분류부(330)는 프록시(331), 사전 매니져(Dictionary Manager)(332), 디바이스 이름 디스패쳐(Device Named Dispatcher)(333), 디바이스 타입 디스패쳐(Device Type Dispatcher)(334), 수행 능력 디스패쳐(Capability Dispatcher)(335), 룰 엔진(336), 기준 핸들러(Criteria Handler)(337) 및 그래머(Grammar)(338)를 포함할 수 있다. The device type classification unit 330 includes a proxy 331, a dictionary manager 332, a device name dispatcher 333, a device type dispatcher 334, and performs It may include a capability dispatcher 335, a rule engine 336, a criterion handler 337, and a grammar 338.

사전 매니져(332)는 클라이언트 디바이스로부터 수신한 사용자의 음성 입력으로부터 획득된 디바이스의 명칭이 개인화된 별칭인 경우, 디바이스 명칭 서버(410, 도 15 참조)에 쿼리(query)를 전송하고, 디바이스 명칭 서버로부터 개인화된 별칭에 대응되는 디바이스의 식별 정보를 수신할 수 있다. 사전 매니져(332)는 음성 입력으로부터 변환된 텍스트 내에 포함되는 디바이스의 개인화된 별칭을 외부의 디바이스 명칭 서버 내에 등록된 동의어, 유사어, 및 속어 중 적어도 하나의 어휘와 동기화(synchronization)할 수 있다. 예를 들어, 텍스트로부터 '바보 상자'라는 어휘를 인식한 경우, 사전 매니져(332)는 디바이스 명칭 서버에 쿼리(query)를 전송하고, '바보 상자'에 대응되는 '거실 TV'의 식별 정보를 수신할 수 있다. 사전 매니져(332)는 수신된 거실 TV의 식별 정보를 '바보 상자'라는 별칭과 동기화할 수 있다. The dictionary manager 332 transmits a query to the device name server 410 (refer to FIG. 15) when the device name obtained from the user's voice input received from the client device is a personalized alias, and transmits a query to the device name server. Identification information of the device corresponding to the personalized alias may be received from. The dictionary manager 332 may synchronize the personalized alias of the device included in the text converted from the voice input with at least one vocabulary of synonyms, similar words, and slang registered in an external device name server. For example, when recognizing the word'stupid box' from the text, the dictionary manager 332 transmits a query to the device name server and retrieves identification information of the'living room TV' corresponding to the'stupid box'. Can receive. The dictionary manager 332 may synchronize the received identification information of the living room TV with an alias called'stupid box'.

디바이스 이름 디스패쳐(333)는 음성 입력으로부터 변환된 텍스트를 파싱하고, 파싱된 텍스트로부터 디바이스의 명칭을 획득할 수 있다. 일 실시예에서, 디바이스 이름 디스패쳐(333)는 자연어 이해 모델을 이용하여 문법적 분석(syntactic analyze) 또는 의미적 분석(semantic analyze)을 수행하고, 텍스트로부터 디바이스 명칭에 해당되는 단어 또는 구를 추출할 수 있다. 일 실시예에서, 디바이스 이름 디스패쳐(333)는 추출된 디바이스 명칭에 관한 쿼리(query)를 사전 매니져(332)에 전송하고, 기 정의된 디바이스의 명칭과 비교하여 디바이스의 식별 정보를 인식할 수 있다. 예를 들어, 디바이스 타입 분류부 프록시(331)로부터 "TV에서 보헤미안 랩소디 틀어줘~"라는 텍스트가 수신되는 경우, 디바이스 이름 디스패쳐(333)는 텍스트로부터 'TV'라는 디바이스 명칭을 획득할 수 있다. The device name dispatcher 333 may parse the text converted from the voice input and obtain a device name from the parsed text. In one embodiment, the device name dispatcher 333 performs a syntactic analysis or semantic analysis using a natural language understanding model, and extracts a word or phrase corresponding to the device name from the text. I can. In one embodiment, the device name dispatcher 333 transmits a query regarding the extracted device name to the dictionary manager 332 and compares the device name with a predefined device name to recognize device identification information. have. For example, when the text "Play Bohemian Rhapsody on TV" is received from the device type classifier proxy 331, the device name dispatcher 333 may obtain a device name of "TV" from the text. .

디바이스 타입 디스패쳐(334)는 음성 입력으로부터 변환된 텍스트에 기초하여, 디바이스의 타입을 결정할 수 있다. 디바이스 타입 디스패쳐(334)는 제1 자연어 이해 모델을 이용하여 텍스트로부터 제1 인텐트를 획득하고, 룰 엔진(336)에 기 저장된 매칭 룰에 기초하여 획득된 제1 인텐트와 매칭되는 디바이스 타입을 결정할 수 있다. 제1 자연어 이해 모델을 이용하여 텍스트로부터 제1 인텐트를 결정하는 구체적인 방법은 도 5에서 설명한 서버(300)가 제1 인텐트로부터 타겟 디바이스 타입을 결정하는 방법과 동일하므로, 중복되는 설명은 생략한다. The device type dispatcher 334 may determine the type of device based on the text converted from the voice input. The device type dispatcher 334 obtains the first intent from the text using the first natural language understanding model, and the device type matches the obtained first intent based on a matching rule previously stored in the rule engine 336 Can be determined. The detailed method of determining the first intent from the text using the first natural language understanding model is the same as the method of determining the target device type from the first intent described in FIG. 5, so a duplicate description will be omitted. do.

수행 능력 디스패쳐(335)는 제1 인텐트가 나타내는 동작과 관련된 기능 수행 능력에 기초하여 타겟 디바이스 타입을 결정할 수 있다. 예를 들어, 제1 인텐트가 나타내는 동작에 대하여 적어도 하나의 기능이 매칭될 수 있다. 수행 능력 디스패쳐(335)는 디바이스의 기능 수행 능력 정보에 기초하여, 제1 인텐트에 매칭된 기능을 수행할 수 있는 디바이스를 식별함으로써, 타겟 디바이스 타입을 결정할 수 있다. 여기서, 기능 수행 능력 정보는 디바이스가 실행할 수 있는 기능에 관한 정보를 의미할 수 있다. 예를 들어, 모바일 폰의 기능 수행 능력은 SNS, 지도, 전화, 인터넷 등이고, TV의 기능 수행 능력은 컨텐트 재생, 에어컨의 수행 능력은 공기의 온도 조절일 수 있다.The performance capability dispatcher 335 may determine a target device type based on a function execution capability related to an operation indicated by the first intent. For example, at least one function may be matched with an operation indicated by the first intent. The performance capability dispatcher 335 may determine a target device type by identifying a device capable of performing a function matched with the first intent based on the function performance capability information of the device. Here, the function performance capability information may mean information on a function that the device can execute. For example, the mobile phone's ability to perform functions may be SNS, map, phone, Internet, etc., the TV's ability to play content, and the air conditioner's ability to control air temperature.

디바이스 타입 디스패쳐(334) 및 수행 능력 디스패쳐(335)가 프로그램 코드 또는 알고리즘으로 구성되는 경우, 룰 엔진(336)의 그래머(338)들을 사용하여 전술한 기능들을 수행할 수 있다. 디바이스 타입 디스패쳐(334) 및 수행 능력 디스패쳐(335)가 기계 학습(Machine Learning) 또는 인공신경망 모델로 구현되는 경우, 룰 엔진(336) 및 그래머(338)는 생략될 수 있다. When the device type dispatcher 334 and the performance capability dispatcher 335 are composed of program codes or algorithms, the above-described functions may be performed using the grammars 338 of the rule engine 336. When the device type dispatcher 334 and the capability dispatcher 335 are implemented as machine learning or artificial neural network models, the rule engine 336 and the grammar 338 may be omitted.

기준 핸들러(Criteria Handler)(337)는 결정된 타입에 해당되는 디바이스가 복수 개 존재하는 경우, 복수의 후보 디바이스가 나열된 순서와 실제 타겟 디바이스 간의 매핑(mapping) 정보를 저장할 수 있다. 일 실시예에서, 기준 핸들러(337)는 복수의 후보 디바이스가 나열된 순서에 관한 정보를 저장하고, 나열 순서에 관한 정보에 기초하여 사용자의 응답 입력에 의해 선택된 특정 순서의 타겟 디바이스에 매핑되는 실제 타겟 디바이스를 결정할 수 있다. 예를 들어, 기준 핸들러(337)는 타겟 디바이스 후보로서 거실 TV, 안방 TV, 자녀방 TV 등 3개의 TV가 존재하는 경우, 첫번째 TV, 두번째 TV, 세번째 TV 각각과 매핑되는 실제 TV가 무엇인지에 관한 식별 정보를 포함할 수 있다. When there are a plurality of devices corresponding to the determined type, the criteria handler 337 may store the order in which the plurality of candidate devices are arranged and mapping information between the actual target devices. In one embodiment, the reference handler 337 stores information on the order in which the plurality of candidate devices are listed, and is mapped to the target device in a specific order selected by the user's response input based on the information on the listing order. Device can be determined. For example, when there are three TVs such as living room TV, home TV, and children's room TV as target device candidates, the reference handler 337 determines what actual TV is mapped to each of the first TV, the second TV, and the third TV. It may contain identification information about.

도 17은 본 개시의 일 실시예에 따른 디바이스 디스패쳐 모델(310)의 디바이스 명확화부(340)을 도시한 도면이다. 17 is a diagram illustrating a device disambiguation unit 340 of the device dispatcher model 310 according to an embodiment of the present disclosure.

도 17을 참조하면, 디바이스 디스패쳐 모델(310)은 플로우 제어부(320), 디바이스 명확화부(340), 및 지능적 디바이스 리졸버(350)를 포함할 수 있다. Referring to FIG. 17, the device dispatcher model 310 may include a flow control unit 320, a device disambiguation unit 340, and an intelligent device resolver 350.

디바이스 명확화부(340)는 디바이스 명확화 서비스 모델(Device Disambiguation Service)(341), 질의 메시지 생성부(342), 대화 상태 매니져(Device State Manager)(343), IDR 연결부(344), 대화 상태 추적부(Conversation State Tracker)(345), 및 데이터베이스(346)를 포함할 수 있다. The device disambiguation unit 340 includes a device disambiguation service 341, a query message generation unit 342, a device state manager 343, an IDR connection unit 344, and a conversation state tracking unit. (Conversation State Tracker) 345, and a database 346.

디바이스 명확화 서비스 모델(341)은 플로우 제어부(320)로부터 타겟 디바이스 후보가 한 개인지, 또는 복수 개인지 여부를 인식하고, 타겟 디바이스 후보가 복수 개인 경우 타겟 디바이스를 명확하게 하기 위한 신호를 질의 메시지 생성부(342)에 전송할 수 있다. The device disambiguation service model 341 recognizes whether there is one or more target device candidates from the flow control unit 320, and when there are multiple target device candidates, a query message is generated for a signal to clarify the target device. It can be transmitted to the unit 342.

질의 메시지 생성부(342)는 복수의 타겟 디바이스 후보 중 타겟 디바이스를 선택하기 위한 질의 메시지를 생성할 수 있다. 일 실시예에서, 질의 메시지 생성부(342)는 자연어 생성(Natural Language Generation, NLG) 모델을 이용하여 질의 메시지를 생성할 수 있다. 일 실시예에서, 질의 메시지 생성부(342)는 TTS(Text to Speech) 모델을 이용하여, 텍스트 형태의 질의 메시지를 오디오 신호로 변환할 수 있다. The query message generator 342 may generate a query message for selecting a target device from among a plurality of target device candidates. In an embodiment, the query message generator 342 may generate a query message using a natural language generation (NLG) model. In an embodiment, the query message generator 342 may convert a text query message into an audio signal using a text to speech (TTS) model.

대화 상태 매니져(343)는 사용자와 클라이언트 디바이스 간의 대화 또는 디바이스 간의 대화에 관한 상태(state)를 제어할 수 있다. 예를 들어, 정지 상태(idle)에서 사용자의 음성 입력으로부터 타겟 디바이스가"TV"로 인식되는 경우, 대화 상태 매니져(343)는 어느 TV가 동작을 수행할 지에 관하여 명확화(disambiguation)을 수행하는 상태로 변경할 수 있다. The conversation state manager 343 may control a state regarding a conversation between a user and a client device or a conversation between devices. For example, when the target device is recognized as "TV" from the user's voice input in the idle state, the conversation state manager 343 is a state in which disambiguation is performed as to which TV is to be operated. Can be changed to.

IDR 연결부(344)는 사용자의 음성 입력에 기초하여 결정된 타입에 해당되는 디바이스 후보가 복수 개 존재하는 경우, 지능적 디바이스 리졸버(1640)와의 쿼리(query) 송수신을 통해 타겟 디바이스의 명칭 또는 타입에 대응되는 디바이스 후보가 몇 개 존재하는지, 어떤 디바이스가 최적의 타겟 디바이스인지를 결정할 수 있다. IDR connection unit 344, when there are a plurality of device candidates corresponding to the type determined based on the user's voice input, through the query (query) transmission and reception with the intelligent device resolver 1640 to correspond to the name or type of the target device It is possible to determine how many device candidates exist and which device is an optimal target device.

일 실시예에서, 대화 상태 매니져(343)에서 사용자로부터 수신한 음성 입력으로부터 결정된 타입에 해당되는 디바이스가 복수 개 존재한다고 인식하는 경우, 상태를 명확화 상태로 변경할 수 있다. 디바이스 명확화 서비스 모델(341)은 명확화 상태에 관한 신호에 기초하여 질의 메시지 생성부(342)에 신호를 전송할 수 있다. 질의 메시지 생성부(342)는 복수의 후보 디바이스 후보 중 어느 디바이스를 타겟 디바이스로 선택할 것인지를 질의하는 질의 메시지를 생성할 수 있다. In an embodiment, when the conversation state manager 343 recognizes that there are a plurality of devices corresponding to a type determined from a voice input received from a user, the state may be changed to a disambiguation state. The device disambiguation service model 341 may transmit a signal to the query message generator 342 based on a signal relating to the disambiguation state. The query message generator 342 may generate a query message for inquiring which device from among a plurality of candidate device candidates to be selected as a target device.

대화 상태 추적부(345)는 사용자와 클라이언트 디바이스 간, 또는 디바이스 간의 대화 상황에 관한 정보를 획득하여 대화 상태를 추적할 수 있다. 예를 들어, 대화 상태 추적부(345)는 현재 상황이 타겟 디바이스를 명확하게 하기 위한 응답 입력이 수신된 상태인지, 응답 입력이 수신된 것에 맞춰 대화를 재시작(resume)해야 되는지 등의 상황에 관한 정보를 획득할 수 있다. The conversation status tracking unit 345 may track the conversation status by acquiring information about a conversation situation between a user and a client device or between devices. For example, the conversation status tracking unit 345 relates to a situation such as whether the current situation is a state in which a response input for clarifying the target device has been received, and whether a conversation should be resumed in accordance with the received response input. Information can be obtained.

도 18은 본 개시의 일 실시예에 따른 디바이스 디스패쳐 모델(310)의 응답 메시지 제어부(360)를 도시한 도면이다. 18 is a diagram illustrating a response message controller 360 of a device dispatcher model 310 according to an embodiment of the present disclosure.

도 18을 참조하면, 디바이스 디스패쳐 모델(310)은 응답 메시지 제어부(360)를 포함할 수 있다. Referring to FIG. 18, the device dispatcher model 310 may include a response message controller 360.

응답 메시지 제어부(360)는 사용자로부터 음성 입력을 수신하는 리스너(listener)에 해당되는 클라이언트 디바이스와, 동작을 실행하는 익스큐터(executer)인 타겟 디바이스에서 동작이 수행되도록 신호를 분배할 수 있다. 응답 메시지 제어부(360)는 결정부(361), 응답 디스패쳐(Response Dispatcher)(362), 레이아웃 핸들러(Layout Handler)(363), 동작 정보(364), 레이아웃 DB(365), 및 자연어 생성 DB(366)를 포함할 수 있다. The response message controller 360 may distribute a signal to perform an operation in a client device corresponding to a listener that receives a voice input from a user and a target device that is an executer executing an operation. The response message control unit 360 includes a determination unit 361, a response dispatcher 362, a layout handler 363, operation information 364, a layout DB 365, and a natural language generation DB. (366) may be included.

결정부(361)는 제2 어시스턴트 모델로부터 획득한 동작 정보에 따라 타겟 디바이스에 의해 동작이 수행된 결과를 사용자에게 제공하는 피드백(feedback)의 속성을 결정할 수 있다. 일 실시예에서, 결정부(361)는 동작 정보가 타겟 디바이스를 통한 동작의 실행만을 요구하는지, 또는 자연어 생성을 통한 응답 메시지의 출력과 같은 피드백을 포함하는 것인지 여부를 결정할 수 있다. The determiner 361 may determine a property of feedback that provides a result of an operation performed by the target device to a user according to the operation information obtained from the second assistant model. In an embodiment, the determination unit 361 may determine whether the operation information requires only execution of the operation through the target device or includes feedback such as output of a response message through natural language generation.

여기서, 응답 메시지는 타겟 디바이스에 의해 동작이 실행되었거나, 또는 동작 실행이 실패하였다는 실행 결과를 나타내는 메시지일 수 있다. 예를 들어, 타겟 디바이스가 TV이고, TV가 영화를 재생하는 동작을 실행한 경우, 응답 메지시는 영화 재생 동작의 실행 결과를 나타내는 “TV에서 영화를 재생하였습니다.”일 수 있다. 또 다른 예에서, 타겟 디바이스가 스피커이고, 스피커가 볼륨을 증가하는 동작에 대한 실행을 실패한 경우, 응답 메시지는 볼륨 증가 동작의 실행 결과 및 실패 원인을 나타내는 “볼륨이 가장 높은 상태이므로, 볼륨 증가에 실패하였습니다.”일 수 있다. 이 경우, 실행 결과는 “실패”이고, 실행 결과와 함께 수신된 실패 원인은 “현재 볼륨은 가장 높은 상태”일 수 있다.Here, the response message may be a message indicating an execution result indicating that the operation has been executed by the target device or the operation execution has failed. For example, if the target device is a TV and the TV executes an operation to play a movie, the response message may be "The movie was played on TV" indicating the execution result of the movie play operation. In another example, when the target device is a speaker and the speaker fails to execute the operation of increasing the volume, the response message indicates “The volume is in the highest state, so the volume increase is It may have failed.” In this case, the execution result may be "fail", and the cause of the failure received with the execution result may be "the current volume is in the highest state".

응답 메시지는 텍스트, 오디오, 이미지, 및 동영상 중 적어도 하나의 포맷으로 구성될 수 있다. 결정부(361)는 결정부(361)는 동작 정보가 피드백을 요하는 경우, 응답 메시지의 포맷을 결정할 수 있다. The response message may be configured in at least one format of text, audio, image, and video. The determination unit 361 may determine the format of the response message when the operation information requires feedback.

응답 디스패쳐(362)로부터 동작 정보(364)과 레이아웃에 관한 정보를 포함하는 신호를 수신하는 경우, 결정부(361)는 동작을 실행하기 위한 제어 명령 및 레이 아웃은 타겟 디바이스에서 출력되고, 응답 메시지는 클라이언트 디바이스에서 각각 출력되도록 신호를 분리할 수 있다. 예를 들어, 결정부(361)는 동작의 수행을 위한 동작 정보 및 GUI 정보는 IoT 클라우드 서버(400)로 전송하고, "TV에서 영화를 재생하였습니다."와 같은 응답 메시지는 세션 매니져로 전송할 수 있다. 응답 메시지는 자연어 생성 DB(366)에 기 저장된 메시지를 이용하여 생성될 수 있다. 여기서, GUI 정보는 레이아웃 DB(365)에 저장되어 있을 수 있다. When receiving a signal including operation information 364 and layout information from the response dispatcher 362, the decision unit 361 outputs a control command and layout for executing the operation from the target device, and responds You can separate the signals so that the messages are output from each client device. For example, the decision unit 361 may transmit operation information and GUI information for performing an operation to the IoT cloud server 400, and a response message such as "Played a movie on TV" to the session manager. have. The response message may be generated using a message previously stored in the natural language generation DB 366. Here, the GUI information may be stored in the layout DB 365.

응답 디스패쳐(362)는 응답 메시지가 출력되어야 하는 디바이스를 결정할 수 있다. 응답 디스패쳐(362)는 기 정의된 규칙에 의해 응답 메시지가 출력될 디바이스를 결정할 수 있다. 기 정의된 규칙은, 동작 별로 대응하는 응답 메시지의 포맷에 관한 정보를 포함할 수 있다. 또한, 기 정의된 규칙은 추가적으로 응답 메시지를 출력할 디바이스에 대한 정보를 포함할 수도 있다. The response dispatcher 362 may determine a device to which a response message is to be output. The response dispatcher 362 may determine a device to which a response message is to be output according to a predefined rule. The predefined rule may include information on the format of a response message corresponding to each operation. Also, the predefined rule may additionally include information on a device to output a response message.

예를 들면, 영화 재생 동작은 오디오 포맷의 응답 메시지를 출력하는 것으로 정의되어 있으며, 사용자의 음성 입력을 전송한 클라이언트 디바이스(110)에서 제공하는 것으로 정의되어 있다. 영화 재생 동작에 대한 응답 메시지는, 오디오 포맷으로 출력되며 클라이언트 디바이스에서 제공하는 것으로 정의되어 있다면, 서버(300)는 응답 메시지를 오디오 포맷으로 변환하여 클라이언트 디바이스로 전송할 수 있다. For example, the movie playback operation is defined as outputting a response message in an audio format, and is defined as being provided by the client device 110 that transmits the user's voice input. If the response message for the movie playback operation is output in an audio format and is defined as being provided by the client device, the server 300 may convert the response message into an audio format and transmit it to the client device.

일 실시예에서, 응답 디스패쳐(362)는 생성된 응답 메시지의 출력 디바이스를 사용자로부터 음성 입력을 수신하는 클라이언트 디바이스로 결정할 수 있다. 이는 사용자는 대화(interaction)하고 있는 디바이스가 아닌, 다른 디바이스에서 응답 메시지가 출력되는 경우, 어떤 디바이스와 대화를 해야되는지 혼란스러울 수 있는 문제점을 방지하기 위함이다.In an embodiment, the response dispatcher 362 may determine the output device of the generated response message as a client device that receives a voice input from a user. This is to prevent a problem in which the user may be confused as to which device to communicate with when a response message is output from a device other than the device being interacted with.

레이아웃 핸들러(363)는 기 저장된 레이아웃 중 타겟 디바이스가 실제로 동작을 수행하기 위하여 필요한 레이아웃을 결정할 수 있다. 일 실시예에서, 레이아웃 핸들러(363)는 타겟 디바이스에 전달될 레이아웃을 결정할 수 있다.The layout handler 363 may determine a layout necessary for the target device to actually perform an operation from among the previously stored layouts. In one embodiment, the layout handler 363 may determine a layout to be delivered to the target device.

레이아웃 DB(365)는 타겟 디바이스가 동작을 수행하기 위하여 사용하는 레이아웃을 저장할 수 있다. 레이아웃 DB(365)는 예를 들어, 음악 재생, 영화 재생 등과 관련된 GUI에 관한 데이터를 저장할 수 있다.The layout DB 365 may store a layout used by the target device to perform an operation. The layout DB 365 may store, for example, data related to a GUI related to music playback, movie playback, and the like.

도 19는 본 개시의 일 실시예에 따른 디바이스 디스패쳐 모델(310)의 지능적 디바이스 리졸버(Intelligence Device Resolver; IDR)(350)를 도시한 도면이다.FIG. 19 is a diagram illustrating an intelligent device resolver (IDR) 350 of a device dispatcher model 310 according to an embodiment of the present disclosure.

도 19를 참조하면, 디바이스 디스패쳐 모델(310)은 플로우 제어부(320) 및 지능적 디바이스 리졸버(350)를 포함할 수 있다. 도 19에 도시된 IoT 클라우드 서버(400)는 도 15에 도시된 IoT 클라우드 서버(400, 도 15 참조)와 동일하고, 디바이스 명칭 서버(410)는 도 15에 도시된 디바이스 명칭 서버(410, 도 15 참조)와 동일한 구성 요소인바, 중복되는 설명은 생략하기로 한다. 도 19에서 IoT 클라우드 서버(400)와 디바이스 명칭 서버(410)는 분리된 별개의 서버로 도시되었지만, 이에 한정되는 것은 아니다. IoT 클라우드 서버(400)와 디바이스 명칭 서버(410)는 하나의 서버로 통합될 수 있다. Referring to FIG. 19, the device dispatcher model 310 may include a flow controller 320 and an intelligent device resolver 350. The IoT cloud server 400 shown in FIG. 19 is the same as the IoT cloud server 400 (see FIG. 15) shown in FIG. 15, and the device name server 410 is a device name server 410 shown in FIG. 15), the overlapping description will be omitted. In FIG. 19, the IoT cloud server 400 and the device name server 410 are illustrated as separate and separate servers, but are not limited thereto. The IoT cloud server 400 and the device name server 410 may be integrated into one server.

플로우 제어부(320)는 사용자의 음성 입력으로부터 변환된 텍스트와 관련하여 결정된 타입에 해당되는 디바이스 후보가 복수 개 존재하는 경우, 지능적 디바이스 리졸버(350)와의 쿼리(query) 송수신을 통해 타겟 디바이스의 명칭 또는 타입에 대응되는 디바이스 후보가 몇 개 존재하는지, 디바이스 후보 중 어떤 디바이스가 최적의 타겟 디바이스인지를 결정할 수 있다. When there are a plurality of device candidates corresponding to the type determined in relation to the text converted from the user's voice input, the flow control unit 320 transmits/receives a query to/from the intelligent device resolver 350 to determine the name of the target device or It is possible to determine how many device candidates corresponding to the type exist and which of the device candidates is an optimal target device.

지능적 디바이스 리졸버(350)는 텍스트를 제1 자연어 이해 모델을 통해 해석함으로써 획득된 제1 인텐트, 및 사용자의 계정 정보와 관련하여 IoT 클라우드 서버(400)에 기 등록된 복수의 디바이스의 디바이스 정보에 기초하여 복수의 디바이스 후보 중 최적의 타겟 디바이스를 결정할 수 있다. 디바이스 정보는 예를 들어, 클라이언트 디바이스(110)의 위치 정보, IoT 클라우드 서버(400)에 기 등록된 복수의 디바이스 각각의 기능 수행 능력 정보, 위치 정보, 전원 온오프 여부, 및 현재 수행 중인 동작 정보 중 적어도 하나에 관한 정보를 포함할 수 있다. The intelligent device resolver 350 uses the device information of a plurality of devices previously registered in the IoT cloud server 400 in relation to the first intent obtained by interpreting the text through the first natural language understanding model and the user's account information. Based on the plurality of device candidates, an optimal target device may be determined. The device information includes, for example, location information of the client device 110, function performance information of each of a plurality of devices previously registered in the IoT cloud server 400, location information, power on/off status, and current operation information. It may include information on at least one of the.

지능적 디바이스 리졸버(350)는 디바이스 리졸버(Device Resolver)(351) 및 싱크 매니져(Sync Manager)(352)를 포함할 수 있다. The intelligent device resolver 350 may include a device resolver 351 and a sync manager 352.

디바이스 리졸버(351)는 사용자의 계정 정보와 관련하여 기 등록된 복수의 디바이스에 관한 리스트를 IoT 클라우드 서버(400)로부터 획득할 수 있다. 일 실시예에서, 디바이스 리졸버(346)는 클라이언트 디바이스(110)의 위치에 기초하여 주변에 설치된 복수의 디바이스를 식별할 수 있다. 일 실시예에서, 디바이스 리졸버(351)는 복수의 디바이스 각각의 타입, 명칭, 보통 명칭, 위치, 현재 수행 중인 동작, 및 전원 온오프 여부 중 적어도 하나에 기초하여 타겟 디바이스를 결정할 수 있다. 일 실시예에서, 디바이스 리졸버(351)는 IoT 클라우드 서버(400)에 디바이스의 명칭 또는 타입에 따른 기능 수행 능력에 관한 정보를 요청하는 쿼리(query)를 전송하고, IoT 클라우드 서버(400)로부터 디바이스의 기능 수행 능력 정보를 수신할 수 있다. 디바이스 리졸버(351)는 수신된 정보에 기초하여 타겟 디바이스를 결정할 수 있다. The device resolver 351 may obtain a list of a plurality of devices previously registered in relation to the user's account information from the IoT cloud server 400. In an embodiment, the device resolver 346 may identify a plurality of devices installed around the client device 110 based on the location of the client device 110. In an embodiment, the device resolver 351 may determine a target device based on at least one of a type, a name, a common name, a location, an operation currently being performed, and whether power is turned on or off of each of the plurality of devices. In one embodiment, the device resolver 351 transmits a query to the IoT cloud server 400 for requesting information on a function performance capability according to the name or type of the device, and transmits a device from the IoT cloud server 400 It is possible to receive information on the function performance capability of The device resolver 351 may determine a target device based on the received information.

일 실시예에서, 디바이스 리졸버(351)는 타겟 디바이스의 식별 정보(id), 명칭, 별칭, 위치, 제조사, 모델 id, 기능 수행 능력 및 현재 동작 상태에 관한 정보 중 적어도 하나를 디바이스 명확화부(340, 도 15 참조)에 전송할 수 있다. In an embodiment, the device resolver 351 stores at least one of information on identification information (id), name, alias, location, manufacturer, model id, function performance capability, and current operating state of the target device. , See FIG. 15).

싱크 매니져(352)는 디바이스 명칭 서버(410)과 디바이스 명칭을 동기화할 수 있다. 일 실시예에서, 싱크 매니져(352)는 사용자의 음성 입력으로부터 변환된 텍스트로부터 획득된 디바이스 별칭을 외부의 디바이스 명칭 서버(410)에 기저장된 디바이스의 별칭과 동기화(synchronization)할 수 있다. The sync manager 352 may synchronize the device name server 410 with the device name. In one embodiment, the sync manager 352 may synchronize the device alias obtained from the text converted from the user's voice input with the alias of the device previously stored in the external device name server 410.

디바이스 명칭 서버(410)는 디바이스의 명칭과 관련하여 사용자에 의해 등록된 동의어, 유사어, 및 속어 중 적어도 하나의 개인화된 어휘(personalized vocabulary)를 저장하고 있는 외부 서버일 수 있다. 디바이스 명칭 서버(410)는 사용자가 디바이스를 등록할 때 개인화된 단어 또는 어휘로 등록하여 저장할 수 있고, 개인화된 단어 또는 어휘는 추가 또는 삭제될 수 있다. 일 실시예에서, 디바이스 명칭 서버(410)는 클라우드 서버, 외부 저장소 또는 데이터 베이스(DB) 형태로 존재할 수도 있다.The device name server 410 may be an external server that stores at least one personalized vocabulary among synonyms, similar words, and slang words registered by a user in relation to the device name. When a user registers a device, the device name server 410 may register and store a personalized word or vocabulary, and the personalized word or vocabulary may be added or deleted. In an embodiment, the device name server 410 may exist in the form of a cloud server, an external storage, or a database (DB).

일 실시예에서, 싱크 매니져(352)는 디바이스 명칭 서버(410)에 저장된 디바이스의 개인화된 별칭과 Redis(420)에 저장된 디바이스 명칭을 서로 동기화할 수도 있다. 이 경우, 싱크 매니져(352)는 캐쉬 서버(cache server)처럼 동작될 수 있다. In an embodiment, the sync manager 352 may synchronize the device name stored in the device name server 410 and the device name stored in the Redis 420 with the personalized alias of the device. In this case, the sink manager 352 may operate like a cache server.

도 20은 본 개시의 일 실시예에 따른 액션 플랜 관리 모델(210)을 도시한 개념도이다. 액션 플랜 관리 모델(210)은 서버(300)에 포함되는 구성 요소일 수 있으나, 이에 한정되는 것은 아니다. 액션 플랜 관리 모델(210)은 서버(300)와는 별개의 구성 요소일 수 있다. 일 실시예에서, 액션 플랜 관리 모델(210)은 IoT 클라우드 서버(400) 내에 포함될 수도 있다. 액션 플랜 관리 모델(210)은 복수의 제2 자연어 이해 모델(300b)과 함께 제2 어시스턴트 모델(200b)를 구성할 수 있다. 일 실시예에서, 액션 플랜 관리 모델(210)은 복수의 제2 자연어 이해 모델(300b)을 포함하도록 구성될 수 있다.20 is a conceptual diagram illustrating an action plan management model 210 according to an embodiment of the present disclosure. The action plan management model 210 may be a component included in the server 300, but is not limited thereto. The action plan management model 210 may be a separate component from the server 300. In one embodiment, the action plan management model 210 may be included in the IoT cloud server 400. The action plan management model 210 may constitute a second assistant model 200b together with a plurality of second natural language understanding models 300b. In one embodiment, the action plan management model 210 may be configured to include a plurality of second natural language understanding models 300b.

액션 플랜 관리 모델(210)은, 액션 플랜을 생성하기 위하여 디바이스에 관한 동작 정보를 관리하는 모델일 수 있다. 액션 플랜 관리 모델(210)은 서버(300)에 의해 결정된 타겟 디바이스가 동작들을 수행하기 위하여 필요한 동작 정보를 저장하는 서버일 수 있다. 액션 플랜 관리 모델(210)은 인공지능 학습 모델, 인공지능 학습 알고리즘, 루틴(routine), 명령어 세트(set of instructions), 및 자연어 이해 모델 중 적어도 하나를 포함할 수 있다. 일 실시예에서, 액션 플랜 관리 모델(210)은 자연어 생성(NLG) 모델을 포함할 수도 있다. The action plan management model 210 may be a model that manages operation information on a device to generate an action plan. The action plan management model 210 may be a server that stores operation information necessary for the target device determined by the server 300 to perform operations. The action plan management model 210 may include at least one of an artificial intelligence learning model, an artificial intelligence learning algorithm, a routine, a set of instructions, and a natural language understanding model. In one embodiment, the action plan management model 210 may include a natural language generation (NLG) model.

액션 플랜 관리 모델(210)은, 디바이스 타입 별로 디바이스의 복수의 세부 동작들 및 복수의 세부 동작들 간의 관계에 관한 정보를 관리할 수 있다. 복수의 세부 동작들 중 각각의 세부 동작과 다른 세부 동작과의 연관 관계는, 하나의 세부 동작을 실행하기 위해서 그 세부 동작을 실행하기 전에 필수적으로 실행되어야 할 다른 세부 동작에 대한 정보를 포함한다.The action plan management model 210 may manage information about a plurality of detailed operations of a device and a relationship between a plurality of detailed operations for each device type. The association relationship between each detailed operation and another detailed operation among the plurality of detailed operations includes information on other detailed operations that must be executed before executing the detailed operation in order to execute one detailed operation.

액션 플랜 관리 모델(210)은, 제2 자연어 이해 모델을 통해 텍스트로부터 결정된 제2 인텐트 및 파라미터에 기초하여, 디바이스가 수행할 복수의 세부 동작들을 결정할 수 있다. 일 실시예에서, 액션 플랜 관리 모델(210)은 결정된 복수의 세부 동작들을 실행하기 위하여 필요한 입력 파라미터 값이나, 세부 동작들의 실행에 의해 출력되는 결과 값을 결정할 수 있다. 여기서, 입력 파라미터 값 및 출력 결과 값은 지정된 형식(또는 클래스)의 컨셉(concept)으로 정의될 수 있다. 이에 따라, 액션 플랜은 제2 인텐트 및 파라미터와 관련하여 결정된 복수의 세부 동작들 및 복수의 컨셉을 포함할 수 있다. The action plan management model 210 may determine a plurality of detailed operations to be performed by the device based on a second intent and a parameter determined from text through the second natural language understanding model. In an embodiment, the action plan management model 210 may determine an input parameter value required to execute a plurality of determined detailed operations or a result value output by execution of the detailed operations. Here, the input parameter value and the output result value may be defined as a concept of a designated format (or class). Accordingly, the action plan may include a plurality of detailed operations and a plurality of concepts determined in relation to the second intent and parameter.

액션 플랜 관리 모델(210)은 복수의 동작들, 및 상기 복수의 컨셉 사이의 관계를 단계적(또는, 계층적)으로 결정할 수 있다. 예를 들어, 액션 플랜 관리 모델(210)은 제2 인텐트 및 파라미터에 기초하여 결정된 복수의 세부 동작들의 실행 순서를 결정하는 플래닝(planning)을 수행하고, 플래닝 결과 동작 정보를 생성할 수 있다. 즉, 액션 플랜 관리 모델(210)은 복수의 세부 동작들의 실행에 필요한 입력 파라미터 값 및 복수의 세부 동작들의 실행에 의해 출력되는 결과 값에 기초하여, 복수의 세부 동작들의 실행 순서를 플래닝하고, 이를 통해 동작 정보를 생성할 수 있다. The action plan management model 210 may determine a plurality of operations and a relationship between the plurality of concepts in stages (or hierarchical). For example, the action plan management model 210 may perform planning to determine an execution order of a plurality of detailed operations determined based on a second intent and a parameter, and may generate operation information as a result of the planning. That is, the action plan management model 210 plans an execution order of a plurality of detailed operations based on an input parameter value required for execution of a plurality of detailed operations and a result value output by execution of a plurality of detailed operations, Through this, motion information can be generated.

동작 정보는, 디바이스가 수행할 세부 동작들, 각 세부 동작과 다른 세부 동작 간의 연관 관계, 및 세부 동작들의 실행 순서에 관련된 정보일 수 있다. 동작 정보는 예를 들어, 특정 동작의 수행을 위하여 타겟 디바이스가 실행해야 할 기능들, 기능들의 실행 순서, 기능들을 실행하기 위하여 필요한 입력 값 및 기능들의 실행 결과로서 출력되는 출력 값을 포함할 수 있으나, 이에 한정되지 않는다. 동작 정보는 액션 플랜 관리 모델(210)에 의해 생성된 액션 플랜을 포함할 수 있다. The operation information may be information related to detailed operations to be performed by the device, a correlation relationship between each detailed operation and another detailed operation, and an execution order of the detailed operations. The operation information may include, for example, functions to be executed by the target device in order to perform a specific operation, an execution order of functions, an input value necessary to execute the functions, and an output value output as a result of execution of the functions. , Is not limited thereto. The operation information may include an action plan generated by the action plan management model 210.

액션 플랜 관리 모델(210)은 컨셉과 동작들 간의 관계들의 집합이 저장된 캡슐 데이터베이스에 저장된 정보를 이용하여 플래닝을 할 수 있다. 액션 플랜 관리 모델(210)은 동작들과 동작들에 대응되는 컨셉을 캡슐 형태의 데이터베이스인 CAN(Concept Action Network)으로 저장할 수 있다. 액션 플랜 관리 모델(210)은 디바이스 별로 CAN을 저장하는 캡슐 데이터베이스로 구성될 수 있다. The action plan management model 210 may perform planning using information stored in a capsule database in which a set of relationships between concepts and actions is stored. The action plan management model 210 may store actions and concepts corresponding to the actions in a capsule-type database, a Concept Action Network (CAN). The action plan management model 210 may be configured as a capsule database that stores CAN for each device.

도 20을 참조하면, 액션 플랜 관리 모델(210)은 스피커 CAN(212), 모바일 CAN(214), 및 TV CAN(216)을 포함할 수 있다. 스피커 CAN(212)은 스피커 제어, 미디어 재생, 날씨, 및 TV 제어를 포함하는 세부 동작들에 관한 정보와, 세부 동작들 각각에 대응되는 컨셉을 캡슐 형태로 저장하는 액션 플랜을 포함할 수 있다. 모바일 CAN(214)은 SNS, 모바일 제어, 지도, 및 QA를 포함하는 세부 동작들에 관한 정보와, 세부 동작들 각각에 대응되는 컨셉을 캡슐 형태로 저장하는 액션 플랜을 포함할 수 있다. TV CAN(216)은 쇼핑, 미디어 재생, 교육, 및 TV 재생을 포함하는 세부 동작들에 관한 정보와, 세부 동작들 각각에 대응되는 컨셉을 캡슐 형태로 저장하는 액션 플랜을 포함할 수 있다. 일 실시예에서, 스피커 CAN(212), 모바일 CAN(214), 및 TV CAN(216) 각각에 포함된 복수의 캡슐은 액션 플랜 관리 모델(210) 내의 구성 요소인 기능 저장소(function registry)에 저장될 수 있다. Referring to FIG. 20, the action plan management model 210 may include a speaker CAN 212, a mobile CAN 214, and a TV CAN 216. The speaker CAN 212 may include information on detailed operations including speaker control, media playback, weather, and TV control, and an action plan for storing concepts corresponding to each of the detailed operations in a capsule form. The mobile CAN 214 may include an action plan that stores information on detailed operations including SNS, mobile control, map, and QA, and concepts corresponding to each of the detailed operations in a capsule form. The TV CAN 216 may include information on detailed operations including shopping, media playback, education, and TV playback, and an action plan for storing concepts corresponding to each of the detailed operations in a capsule form. In one embodiment, a plurality of capsules included in each of the speaker CAN 212, mobile CAN 214, and TV CAN 216 are stored in a function registry, which is a component in the action plan management model 210 Can be.

일 실시예에서, 액션 플랜 관리 모델(210)은 서버(300)가 제2 자연어 이해 모델을 통해, 음성 입력으로부터 변환된 텍스트를 해석함으로써 결정된 제2 인텐트 및 파라미터에 대응되는 세부 동작들을 결정할 때 필요한 전략 레지스트리(strategy registry)를 포함할 수 있다. 전략 레지스트리는 텍스트와 관련된 복수의 액션 플랜이 있는 경우, 하나의 액션 플랜을 결정하기 위한 기준 정보를 포함할 수 있다. 일 실시예에서, 액션 플랜 관리 모델(210)은 지정된 상황에서 사용자에게 후속 동작을 제안하기 위한 후속 동작의 정보가 저장된 후속 동작 레지스트리(follow up registry)를 포함할 수 있다. 상기 후속 동작은, 예를 들어, 후속 발화를 포함할 수 있다. In one embodiment, the action plan management model 210 determines detailed actions corresponding to the second intent and parameters determined by the server 300 interpreting the text converted from the speech input through the second natural language understanding model. It may contain the necessary strategy registry. When there are a plurality of action plans related to the text, the strategy registry may include reference information for determining one action plan. In one embodiment, the action plan management model 210 may include a follow up registry in which information of a follow-up operation for suggesting a follow-up operation to a user in a specified situation is stored. The subsequent operation may include, for example, a subsequent speech.

일 실시예에서, 액션 플랜 관리 모델(210)은 타겟 디바이스에 의해 출력되는 레이아웃(layout) 정보를 저장하는 레이아웃 레지스트리(layout registry)를 포함할 수 있다. In one embodiment, the action plan management model 210 may include a layout registry that stores layout information output by the target device.

일 실시예에서, 액션 플랜 관리 모델(210)은 캡슐 정보에 포함된 어휘(vocabulary) 정보가 저장된 어휘 레지스트리(vocabulary registry)를 포함할 수 있다. 일 실시예에서, 액션 플랜 관리 모델(210)은 사용자와의 대화(dialog)(또는, 인터렉션(interaction)) 정보가 저장된 대화 레지스트리(dialog registry)를 포함할 수 있다. In one embodiment, the action plan management model 210 may include a vocabulary registry in which vocabulary information included in capsule information is stored. In an embodiment, the action plan management model 210 may include a dialog registry in which information about a conversation (or interaction) with a user is stored.

도 21은 본 개시의 일 실시예에 따른 액션 플랜 관리 모델(210)에 저장된 캡슐 데이터베이스(220)를 도시한 도면이다. 21 is a diagram illustrating a capsule database 220 stored in the action plan management model 210 according to an embodiment of the present disclosure.

도 21을 참조하면, 캡슐 데이터베이스(220)는 세부 동작들과, 세부 동작들에 대응되는 컨셉에 관한 관계 정보가 저장되어 있다. 캡슐 데이터베이스(220)는 CAN(Concept Action Network) 형태로 구현될 수 있다. 캡슐 데이터베이스(220)는 복수의 캡슐(230, 240, 250)을 저장할 수 있다. 캡슐 데이터베이스(220)는 사용자의 음성 입력과 관련된 동작들을 실행하기 위한 세부 동작, 및 세부 동작을 위해 필요한 입력 파라미터 값 및 출력 결과 값을 CAN(concept action network) 형태로 저장될 수 있다.Referring to FIG. 21, the capsule database 220 stores detailed operations and relationship information regarding concepts corresponding to the detailed operations. The capsule database 220 may be implemented in a CAN (Concept Action Network) form. Capsule database 220 may store a plurality of capsules (230, 240, 250). The capsule database 220 may store detailed operations for executing operations related to a user's voice input, and input parameter values and output result values required for detailed operations in the form of a concept action network (CAN).

캡슐 데이터베이스(220)는 디바이스 별로 동작에 관련된 정보를 저장할 수 있다. 도 21에 도시된 실시예에서, 캡슐 데이터베이스(220)는 특정 디바이스, 예를 들어 TV가 수행하는 동작들과 관련된 복수의 캡슐(230, 240, 250)을 저장할 수 있다. 일 실시예에서, 하나의 캡슐(예를 들어, 캡슐 A(230))은 하나의 애플리케이션에 대응될 수 있다. 하나의 캡슐은 지정된 기능을 수행하기 위한 적어도 하나 이상의 세부 동작 및 적어도 하나 이상의 컨셉을 포함할 수 있다. 예를 들어, 캡슐 A(230)의 경우 세부 동작(231a)와 세부 동작(231a)에 대응되는 컨셉(231b)을 포함하고, 캡슐 B(240)는 복수의 세부 동작들(241a, 242a, 243a)과, 복수의 세부 동작들(241a, 242a, 243a) 각각에 대응되는 복수의 컨셉(241b, 242b, 243b)을 포함할 수 있다. The capsule database 220 may store operation related information for each device. In the embodiment shown in FIG. 21, the capsule database 220 may store a plurality of capsules 230, 240, 250 related to operations performed by a specific device, for example, a TV. In one embodiment, one capsule (eg, capsule A 230) may correspond to one application. One capsule may include at least one or more detailed operations and at least one or more concepts for performing a specified function. For example, the capsule A 230 includes a detailed operation 231a and a concept 231b corresponding to the detailed operation 231a, and the capsule B 240 includes a plurality of detailed operations 241a, 242a, and 243a. ), and a plurality of concepts 241b, 242b, and 243b corresponding to each of the plurality of detailed operations 241a, 242a, and 243a.

액션 플랜 관리 모델(210)은 캡슐 데이터베이스(220)에 저장된 캡슐을 이용하여 사용자의 음성 입력과 관련된 동작을 수행하기 위한 액션 플랜을 생성할 수 있다. 예를 들어, 액션 플랜 관리 모델(210)은 캡슐 데이터베이스(220)에 저장된 캡슐을 이용하여 액션 플랜을 생성할 수 있다. 예를 들어, 액션 플랜 관리 모델(210)은 캡슐 A(230)의 세부 동작(231a)과 컨셉(231b), 캡슐 B(240)의 세부 동작들(241a, 242a, 243a)과 컨셉들(241b, 242b, 243b) 및 캡슐 C(250)의 세부 동작(251a) 및 컨셉(251b)를 이용하여 액션 플랜(260)을 생성할 수 있다. The action plan management model 210 may generate an action plan for performing an operation related to a user's voice input using a capsule stored in the capsule database 220. For example, the action plan management model 210 may generate an action plan using capsules stored in the capsule database 220. For example, the action plan management model 210 includes detailed operations 231a and concept 231b of capsule A 230, detailed operations 241a, 242a, 243a and concepts 241b of capsule B 240. , 242b, 243b), and the detailed operation 251a and concept 251b of the capsule C 250 may be used to generate the action plan 260.

액션 플랜 관리 모델(210)은 생성된 액션 플랜(260)을 서버(300)에 제공할 수 있다. The action plan management model 210 may provide the generated action plan 260 to the server 300.

도 22는 본 개시의 디바이스(1000)의 구성 요소를 도시한 블록도이다. 22 is a block diagram illustrating components of the device 1000 of the present disclosure.

본 개시의 도 2a 내지 도 19에서는, 본 개시의 실시예들이 서버(300)에 의해 수행된다고 기재되어 있으나, 이에 한정되는 것은 아니다. 본 개시의 실시예들은 서버(300) 뿐만 아니라 디바이스(1000)에서도 수행될 수 있다. 본 개시에 도시된 클라이언트 디바이스(110) 또는 복수의 디바이스(120)는 도 22의 디바이스(1000)에 포함된 구성 요소들에 대응되는 구성 요소를 포함할 수 있다. 예를 들어, 프로세서(1300)는 클라이언트 디바이스(110)의 프로세서(114, 도 14 참조)와 동일하고, 통신 인터페이스(1500)는 클라이언트 디바이스(110)의 통신 인터페이스(118, 도 14 참조)와 동일하고, 마이크(1620)는 클라이언트 디바이스(110)의 마이크(112, 도 14 참조)와 동일하며, 메모리(1700)는 클라이언트 디바이스(110)의 메모리(116, 도 14 참조)와 동일할 수 있다. In FIGS. 2A to 19 of the present disclosure, it is described that embodiments of the present disclosure are performed by the server 300, but are not limited thereto. Embodiments of the present disclosure may be performed in the device 1000 as well as the server 300. The client device 110 or the plurality of devices 120 illustrated in the present disclosure may include components corresponding to components included in the device 1000 of FIG. 22. For example, the processor 1300 is the same as the processor 114 (see FIG. 14) of the client device 110, and the communication interface 1500 is the same as the communication interface 118 (see FIG. 14) of the client device 110. And, the microphone 1620 may be the same as the microphone 112 of the client device 110 (see FIG. 14), and the memory 1700 may be the same as the memory 116 of the client device 110 (see FIG. 14).

도 22를 참조하면, 본 개시의 일 실시예에 따른 디바이스(1000)는 사용자 입력부(1100), 출력부(1200), 프로세서(1300), 센싱부(1400), 통신 인터페이스(1500), A/V 입력부(1600), 및 메모리(1700)를 포함할 수 있다. Referring to FIG. 22, a device 1000 according to an embodiment of the present disclosure includes a user input unit 1100, an output unit 1200, a processor 1300, a sensing unit 1400, a communication interface 1500, and A/ A V input unit 1600 and a memory 1700 may be included.

사용자 입력부(1100)는, 사용자가 디바이스(1000)를 제어하기 위한 데이터를 입력하는 수단을 의미한다. 예를 들어, 사용자 입력부(1100)에는 키 패드(key pad), 돔 스위치 (dome switch), 터치 패드(접촉식 정전 용량 방식, 압력식 저항막 방식, 적외선 감지 방식, 표면 초음파 전도 방식, 적분식 장력 측정 방식, 피에조 효과 방식 등), 조그 휠, 조그 스위치 등이 있을 수 있으나 이에 한정되는 것은 아니다.The user input unit 1100 refers to a means for a user to input data for controlling the device 1000. For example, the user input unit 1100 includes a key pad, a dome switch, a touch pad (contact type capacitance method, pressure type resistive film method, infrared detection method, surface ultrasonic conduction method, integral type). Tension measurement method, piezo effect method, etc.), a jog wheel, a jog switch, and the like, but are not limited thereto.

사용자 입력부(1100)는, 질의 메시지에 관한 응답 입력을 요청하고, 사용자로부터 응답 입력을 수신할 수 있다. The user input unit 1100 may request a response input for a query message and receive a response input from a user.

출력부(1200)는, 오디오 신호 또는 비디오 신호 또는 진동 신호를 출력할 수 있으며, 출력부(1200)는 디스플레이부(1210), 음향 출력부(1220), 및 진동 모터(1230)를 포함할 수 있다.The output unit 1200 may output an audio signal, a video signal, or a vibration signal, and the output unit 1200 may include a display unit 1210, an audio output unit 1220, and a vibration motor 1230. have.

디스플레이부(1210)는 디바이스(1000)에서 처리되는 정보를 표시 출력한다. 예를 들어, 디스플레이부(1210)는 서버(300)로부터 동작의 실행 결과를 나타내는 알림 컨텐트를 수신하고, 알림 컨텐트를 디스플레이할 수 있다. 일 실시예에서, 디스플레이부(1210)는 서버(300)로부터 수신된 텍스트 및 GUI를 디스플레이할 수 있다. The display 1210 displays and outputs information processed by the device 1000. For example, the display 1210 may receive notification content indicating an execution result of an operation from the server 300 and display the notification content. In an embodiment, the display 1210 may display text and GUI received from the server 300.

일 실시예에서, 디스플레이부(1210)는 IoT 클라우드 서버(400)로부터 수신한 제어 명령에 기초하여 영화 재생, TV 방송 재생 등 영상과 관련된 컨텐츠를 디스플레이할 수 있다. In an embodiment, the display 1210 may display content related to an image, such as playing a movie or playing a TV broadcast, based on a control command received from the IoT cloud server 400.

음향 출력부(1220)는 통신 인터페이스(1500)로부터 수신되거나 메모리(1700)에 저장된 오디오 데이터를 출력한다. 또한, 음향 출력부(1220)는 디바이스(1000)에서 수행되는 기능과 관련된 음향 신호를 출력한다. 음향 출력부(1220)는 서버(300)로부터 수신된 알림 컨텐트가 음성 신호인 경우, 음향 출력부(1220)는 알림 컨텐트를 출력할 수 있다. The sound output unit 1220 outputs audio data received from the communication interface 1500 or stored in the memory 1700. Also, the sound output unit 1220 outputs sound signals related to functions performed by the device 1000. When the notification content received from the server 300 is a voice signal, the sound output unit 1220 may output the notification content.

프로세서(1300)는, 통상적으로 디바이스(1000)의 전반적인 동작을 제어한다. 예를 들어, 프로세서(1300)는, 메모리(1700)에 저장된 프로그램들을 실행하여 메모리(1700)에 저장된 데이터를 처리함으로써, 사용자 입력부(1100), 출력부(1200), 센싱부(1400), 통신 인터페이스(1500), A/V 입력부(1600) 등을 전반적으로 제어할 수 있다. 또한, 프로세서(1300)는 메모리(1700)에 저장된 프로그램들을 실행하여 메모리(1700)에 저장된 데이터를 처리함으로써, 도 2 내지 도 17에 기재된 디바이스(1000)의 기능을 수행할 수 있다.The processor 1300 typically controls the overall operation of the device 1000. For example, the processor 1300 executes programs stored in the memory 1700 and processes data stored in the memory 1700, so that the user input unit 1100, the output unit 1200, the sensing unit 1400, and communication The interface 1500, the A/V input unit 1600, and the like can be generally controlled. In addition, the processor 1300 may execute programs stored in the memory 1700 to process data stored in the memory 1700, thereby performing the function of the device 1000 illustrated in FIGS. 2 to 17.

프로세서(1300)는 예를 들어, 중앙 처리 장치(Central Processing Unit), 마이크로 프로세서(microprocessor), 그래픽 프로세서(Graphic Processing Unit), ASICs(Application Specific Integrated Circuits), DSPs(Digital Signal Processors), DSPDs(Digital Signal Processing Devices), PLDs(Programmable Logic Devices), 및 FPGAs(Field Programmable Gate Arrays) 중 적어도 하나로 구성될 수 있으나, 이에 제한되는 것은 아니다. The processor 1300 is, for example, a central processing unit (Central Processing Unit), a microprocessor (microprocessor), a graphics processor (Graphic Processing Unit), ASICs (Application Specific Integrated Circuits), DSPs (Digital Signal Processors), DSPDs (Digital Signal Processing Devices), Programmable Logic Devices (PLDs), and Field Programmable Gate Arrays (FPGAs), but are not limited thereto.

구체적으로, 프로세서(1300)는 서버(300) 또는 네트워크를 통해 연결된 타(他) 디바이스로부터 사용자의 음성 입력을 수신하도록 통신 인터페이스(1500)를 제어할 수 있다. 프로세서(1300)는 메모리(1700)에 저장된 ASR 모델(1712)에 관한 데이터를 이용하여 ASR을 수행함으로써, 수신된 음성 입력을 텍스트로 변환하고, 메모리(1700)에 저장된 제1 자연어 이해 모델(1714)에 관한 데이터를 이용하여 텍스트와 관련된 제1 인텐트를 결정하고, 디바이스 디스패쳐 모델(1716)에 관한 데이터를 이용하여 제1 인텐트와 관련된 타겟 디바이스의 타입을 결정할 수 있다. Specifically, the processor 1300 may control the communication interface 1500 to receive a user's voice input from the server 300 or another device connected through a network. The processor 1300 converts the received speech input into text by performing ASR using data on the ASR model 1712 stored in the memory 1700, and stores the first natural language understanding model 1714 in the memory 1700. ) May be used to determine a first intent related to text, and a type of a target device related to the first intent may be determined using data related to the device dispatcher model 1716.

일 실시예에서, 프로세서(1300)는 메모리(1700)에 저장된 복수의 제2 자연어 이해 모델(1722) 중 결정된 타겟 디바이스 타입에 대응되는 제2 자연어 이해 모델 및 메모리(1700)에 저장된 액션 플랜 관리 모델(1724)을 통해 타겟 디바이스가 텍스트에 포함된 사용자의 의도와 관련된 동작들을 실행하기 위한 동작 정보를 획득할 수 있다. In one embodiment, the processor 1300 includes a second natural language understanding model corresponding to the determined target device type among the plurality of second natural language understanding models 1722 stored in the memory 1700 and an action plan management model stored in the memory 1700. Through 1724, the target device may obtain operation information for executing operations related to the user's intention included in the text.

일 실시예에서, 프로세서(1300)는 사용자의 계정 정보와 관련하여 IoT 클라우드 서버(400)에 기 등록된 복수의 디바이스의 디바이스 정보를 수신하도록 통신 인터페이스(1500)를 제어할 수 있다. 기 등록된 복수의 디바이스의 디바이스 정보는 메모리(1700)에 저장되어 있을 수 있다. 이 경우, 프로세서(1300)는 메모리(1700)에서 디바이스 정보를 획득할 수 있다. 프로세서(1300)는 타 디바이스의 디바이스 정보에 기초하여 타겟 디바이스를 결정할 수 있다.In an embodiment, the processor 1300 may control the communication interface 1500 to receive device information of a plurality of devices previously registered in the IoT cloud server 400 in relation to the user's account information. Device information of a plurality of previously registered devices may be stored in the memory 1700. In this case, the processor 1300 may obtain device information from the memory 1700. The processor 1300 may determine a target device based on device information of another device.

일 실시예에서, 프로세서(1300)는 메모리(1700)에 저장된 제1 자연어 이해 모델(1714)을 이용하여 텍스트로부터 디바이스의 명칭을 획득하고, 메모리(1700)에 저장된 디바이스 디스패쳐 모델(1716)에 관한 데이터를 이용하여, 디바이스의 명칭 및 IoT 클라우드 서버(400)로부터 수신한 디바이스 정보에 기초하여 타겟 디바이스의 타입을 결정할 수 있다. In one embodiment, the processor 1300 obtains the name of the device from the text using the first natural language understanding model 1714 stored in the memory 1700, and uses the device dispatcher model 1716 stored in the memory 1700. Using the related data, the type of the target device may be determined based on the device name and device information received from the IoT cloud server 400.

일 실시예에서, 프로세서(1300)는 제1 자연어 이해 모델(1714)를 이용하여 텍스트로부터 디바이스 타입과 관련된 보통 명칭 및 디바이스의 설치 위치에 관한 단어 또는 구를 추출하고, 추출된 디바이스의 보통 명칭 및 설치 위치에 기초하여 타겟 디바이스의 타입을 결정할 수 있다.In one embodiment, the processor 1300 uses the first natural language understanding model 1714 to extract a common name related to the device type and a word or phrase related to the installation location of the device from the text, and the extracted common name and The type of target device may be determined based on the installation location.

일 실시예에서, 프로세서(1300)는 텍스트에서 개인화된 별칭을 추출한 경우, 사용자에 의하여 기등록된 복수의 디바이스의 동의어, 유사어, 및 속어 중 적어도 하나를 저장하고 있는 외부 서버에 개인화된 별칭을 전송하고, 외부 서버로부터 개인화된 별칭에 대응되는 디바이스 식별 정보를 수신하도록 통신 인터페이스(1500)를 제어할 수 있다. 개인화된 별칭 및 이에 대응하는 디바이스 식별 정보는 메모리(1700)에 저장될 수 있다. 이 경우 프로세서(1300)는 디바이스 식별 정보를 메모리(1700)로부터 획득할 수 있다. 프로세서(1300)는 수신 또는 획득된 디바이스 식별 정보에 기초하여 타겟 디바이스를 결정할 수 있다.In one embodiment, when extracting a personalized alias from the text, the processor 1300 transmits the personalized alias to an external server that stores at least one of synonyms, similar words, and slang words of a plurality of devices previously registered by the user. And, the communication interface 1500 may be controlled to receive device identification information corresponding to a personalized alias from an external server. The personalized alias and device identification information corresponding thereto may be stored in the memory 1700. In this case, the processor 1300 may obtain device identification information from the memory 1700. The processor 1300 may determine a target device based on the received or acquired device identification information.

일 실시예에서, 프로세서(1300)는 사용자의 계정 정보와 관련하여 기 등록된 복수의 디바이스 각각의 각각의 명칭, 타입, 설치 위치, 및 전원 온오프(on/off), 현재 실행하고 있는 동작 중 적어도 하나를 포함하는 정보를 외부의 IoT 클라우드 서버(400)로부터 수신하도록 통신 인터페이스(1500)를 제어할 수 있다.In one embodiment, the processor 1300 is the name, type, installation location, and power on/off of each of a plurality of devices previously registered in relation to the user's account information, and during an operation currently being executed. The communication interface 1500 may be controlled to receive information including at least one from the external IoT cloud server 400.

일 실시예에서, 프로세서(1300)는 결정된 타겟 디바이스의 타입에 해당되는 디바이스가 복수 개 존재하는 경우, 자연어 생성(NLG) 모델을 이용하여 복수의 후보 디바이스 중 타겟 디바이스를 선택하기 위한 질의 메시지를 생성할 수 있다. 프로세서(1300)는 생성된 질의 메시지를 클라이언트 디바이스가 출력하도록 제어할 수 있다.In one embodiment, the processor 1300 generates a query message for selecting a target device from among a plurality of candidate devices using a natural language generation (NLG) model when a plurality of devices corresponding to the determined target device type exist. can do. The processor 1300 may control the client device to output the generated query message.

이외에도, 프로세서(1300)는 서버(300)가 수행하는 모든 동작들을 수행할 수 있다. In addition, the processor 1300 may perform all operations performed by the server 300.

센싱부(1400)는, 디바이스(1000)의 상태 또는 디바이스(1000) 주변의 상태를 감지하고, 감지된 정보를 프로세서(1300)로 전달할 수 있다. 센싱부(1400)는 사용자 또는 디바이스(1000)의 위치 정보를 생성하는데 이용될 수 있다. The sensing unit 1400 may detect a state of the device 1000 or a state around the device 1000 and transmit the sensed information to the processor 1300. The sensing unit 1400 may be used to generate location information of a user or device 1000.

센싱부(1400)는, 지자기 센서(Magnetic sensor)(1410), 가속도 센서(Acceleration sensor)(1420), 온/습도 센서(1430), 적외선 센서(1440), 자이로스코프 센서(1450), 위치 센서(예컨대, GPS)(1460), 기압 센서(1470), 근접 센서(1480), 및 RGB 센서(illuminance sensor)(1490) 중 적어도 하나를 포함할 수 있으나, 이에 한정되는 것은 아니다. 각 센서들의 기능은 그 명칭으로부터 당업자가 직관적으로 추론할 수 있으므로, 구체적인 설명은 생략하기로 한다.The sensing unit 1400 includes a magnetic sensor 1410, an acceleration sensor 1420, a temperature/humidity sensor 1430, an infrared sensor 1440, a gyroscope sensor 1450, and a position sensor. (Eg, GPS) 1460, barometric pressure sensor 1470, proximity sensor 1480, and RGB sensor (illuminance sensor) 1490 may include at least one of, but is not limited thereto. Since the function of each sensor can be intuitively inferred by a person skilled in the art from its name, detailed description will be omitted.

예를 들어, 디바이스(1000)는 위치 센서(1460)를 통해 디바이스(1000)의 위치 정보를 획득할 수 있다. 예를 들어, 위치 정보는, 디바이스(1000)가 현재 위치한 장소 또는 위치 좌표를 나타낼 수 있다.For example, the device 1000 may obtain location information of the device 1000 through the location sensor 1460. For example, the location information may indicate a place where the device 1000 is currently located or location coordinates.

통신 인터페이스(1500)는, 디바이스(1000)가 다른 디바이스, 서버(300), 및 IoT 클라우드 서버(400) 등과 데이터 통신을 하는 하나 이상의 구성요소를 포함할 수 있다. 통신 인터페이스(1500)는 예를 들어, 유선 랜, 무선 랜(Wireless LAN), 와이파이(Wi-Fi), 블루투스(Bluetooth), 지그비(zigbee), WFD(Wi-Fi Direct), 적외선 통신(IrDA, infrared Data Association), BLE (Bluetooth Low Energy), NFC(Near Field Communication), 와이브로(Wireless Broadband Internet, Wibro), 와이맥스(World Interoperability for Microwave Access, WiMAX), SWAP(Shared Wireless Access Protocol), 와이기그(Wireless Gigabit Allicance, WiGig) 및 RF 통신을 포함하는 데이터 통신 방식 중 적어도 하나를 이용하여 다른 디바이스, 서버(300), 및 IoT 클라우드 서버(400) 등과 데이터 통신을 수행할 수 있다.The communication interface 1500 may include one or more components through which the device 1000 communicates with other devices, the server 300, and the IoT cloud server 400. The communication interface 1500 is, for example, wired LAN, wireless LAN, Wi-Fi, Bluetooth, zigbee, Wi-Fi Direct (WFD), infrared communication (IrDA, infrared Data Association), BLE (Bluetooth Low Energy), NFC (Near Field Communication), Wibro (Wireless Broadband Internet, Wibro), WiMAX (World Interoperability for Microwave Access, WiMAX), SWAP (Shared Wireless Access Protocol), Wiigg Data communication with other devices, the server 300, and the IoT cloud server 400 may be performed using at least one of data communication methods including (Wireless Gigabit Allicance, WiGig) and RF communication.

예를 들어, 통신 인터페이스(1500)는, 근거리 통신부(1510), 이동 통신부(1520), 방송 수신부(1530)를 포함할 수 있다. For example, the communication interface 1500 may include a short-range communication unit 1510, a mobile communication unit 1520, and a broadcast reception unit 1530.

근거리 통신부(short-range wireless communication unit)(1510)는, 블루투스 통신부, BLE(Bluetooth Low Energy) 통신부, 근거리 무선 통신부(Near Field Communication unit), WLAN(와이파이) 통신부, 지그비(Zigbee) 통신부, 적외선(IrDA, infrared Data Association) 통신부, WFD(Wi-Fi Direct) 통신부, UWB(ultra wideband) 통신부, Ant+ 통신부 등을 포함할 수 있으나, 이에 한정되는 것은 아니다. The short-range wireless communication unit 1510 includes a Bluetooth communication unit, a Bluetooth Low Energy (BLE) communication unit, a near field communication unit, a WLAN (Wi-Fi) communication unit, a Zigbee communication unit, and an infrared ( IrDA, infrared data association) communication unit, WFD (Wi-Fi Direct) communication unit, UWB (ultra wideband) communication unit, Ant+ communication unit, etc. may be included, but is not limited thereto.

일 실시예에서, 디바이스(1000)는 근거리 통신부(1510)를 통해 디바이스(1000)의 위치 정보를 획득할 수 있다. 예를 들어, 디바이스(1000)는 NFC 태그를 통해 디바이스(1000)가 위치한 장소를 결정할 수 있다. 또한, 예를 들어, 디바이스(1000)는 와이파이의 식별자를 통해 디바이스(1000)가 위치한 장소를 결정할 수 있다. 예를 들어, 디바이스(1000)는 디바이스(1000)가 연결된 와이파이의 SSID를 확인함으로써, 디바이스(1000)가 위치가 위치한 장소를 알아낼 수 있다.In an embodiment, the device 1000 may obtain location information of the device 1000 through the short-range communication unit 1510. For example, the device 1000 may determine a location where the device 1000 is located through an NFC tag. Also, for example, the device 1000 may determine a location where the device 1000 is located through an identifier of Wi-Fi. For example, the device 1000 may determine the location where the device 1000 is located by checking the SSID of the Wi-Fi to which the device 1000 is connected.

이동 통신부(1520)는, 이동 통신망 상에서 기지국, 외부의 단말, 서버 중 적어도 하나와 무선 신호를 송수신한다. 여기에서, 무선 신호는, 음성 호 신호, 화상 통화 호 신호 또는 문자/멀티미디어 메시지 송수신에 따른 다양한 형태의 데이터를 포함할 수 있다.The mobile communication unit 1520 transmits and receives a radio signal with at least one of a base station, an external terminal, and a server on a mobile communication network. Here, the wireless signal may include a voice call signal, a video call signal, or various types of data according to transmission/reception of text/multimedia messages.

방송 수신부(1530)는, 방송 채널을 통하여 외부로부터 방송 신호 및/또는 방송 관련된 정보를 수신한다. 방송 채널은 위성 채널, 지상파 채널을 포함할 수 있다. 구현 예에 따라서 디바이스(1000)가 방송 수신부(1530)를 포함하지 않을 수도 있다.The broadcast receiver 1530 receives a broadcast signal and/or broadcast-related information from outside through a broadcast channel. Broadcast channels may include satellite channels and terrestrial channels. Depending on the implementation example, the device 1000 may not include the broadcast receiver 1530.

A/V(Audio/Video) 입력부(1600)는 오디오 신호 또는 비디오 신호 입력을 위한 것으로, 이에는 카메라(1610)와 마이크(1620) 등이 포함될 수 있다. 카메라(1610)은 화상 통화모드 또는 촬영 모드에서 이미지 센서를 통해 정지영상 또는 동영상 등의 화상 프레임을 얻을 수 있다. 이미지 센서를 통해 캡쳐된 이미지는 프로세서(1300) 또는 별도의 이미지 처리부(미도시)를 통해 처리될 수 있다. The A/V (Audio/Video) input unit 1600 is for inputting an audio signal or a video signal, and may include a camera 1610 and a microphone 1620. The camera 1610 may obtain an image frame such as a still image or a video through an image sensor in a video call mode or a shooting mode. The image captured through the image sensor may be processed through the processor 1300 or a separate image processing unit (not shown).

마이크(1620)은, 외부의 음향 신호를 입력 받아 전기적인 음성 데이터로 처리한다. 예를 들어, 마이크(1620)은 사용자로부터 음성 신호를 수신할 수 있다. 마이크(1620)은 사용자의 음성 입력을 수신할 수 있다. 마이크(1620)은 외부의 음향 신호를 입력 받는 과정에서 발생 되는 잡음(noise)를 제거하기 위한 다양한 잡음 제거 알고리즘을 이용할 수 있다. The microphone 1620 receives an external sound signal and processes it as electrical voice data. For example, the microphone 1620 may receive a voice signal from a user. The microphone 1620 may receive a user's voice input. The microphone 1620 may use various noise removal algorithms to remove noise generated in the process of receiving an external sound signal.

메모리(1700)는, 프로세서(1300)의 처리 및 제어를 위한 프로그램을 저장할 수 있고, 디바이스(1000)로 입력되거나 디바이스(1000)로부터 출력되는 데이터를 저장할 수도 있다. The memory 1700 may store a program for processing and controlling the processor 1300 and may store data input to the device 1000 or output from the device 1000.

메모리(1700)는 플래시 메모리 타입(flash memory type), 하드디스크 타입(hard disk type), 멀티미디어 카드 마이크로 타입(multimedia card micro type), 카드 타입의 메모리(예를 들어 SD 또는 XD 메모리 등), 램(RAM, Random Access Memory) SRAM(Static Random Access Memory), 롬(ROM, Read-Only Memory), EEPROM(Electrically Erasable Programmable Read-Only Memory), PROM(Programmable Read-Only Memory), 자기 메모리, 자기 디스크, 광디스크 중 적어도 하나의 타입의 저장매체를 포함할 수 있다. The memory 1700 is a flash memory type, a hard disk type, a multimedia card micro type, a card type memory (for example, SD or XD memory), and RAM. (RAM, Random Access Memory) SRAM (Static Random Access Memory), ROM (ROM, Read-Only Memory), EEPROM (Electrically Erasable Programmable Read-Only Memory), PROM (Programmable Read-Only Memory), magnetic memory, magnetic disk And at least one type of storage medium among optical disks.

일 실시예에서, 메모리(1700)는 제1 어시스턴트 모델(1710) 및 제2 어시스턴트 모델(1720), UI 모듈(1730), 터치스크린 모듈(1740), 및 알림 모듈(1750)을 포함할 수 있다. 제1 어시스턴트 모델(1710)은 ASR 모델(1712), 제1 자연어 이해 모델(1714), 및 디바이스 디스패쳐 모델(1716)에 관한 데이터를 저장할 수 있다. 제2 어시스턴트 모델(1720)은 복수의 제2 자연어 이해 모델(1722) 및 액션 플랜 관리 모델(1724)에 관한 데이터를 저장할 수 있다. 일 실시예에서, 메모리(1700)는 디바이스 정보 및 디바이스 명칭 정보를 저장할 수 있다. In one embodiment, the memory 1700 may include a first assistant model 1710 and a second assistant model 1720, a UI module 1730, a touch screen module 1740, and a notification module 1750. . The first assistant model 1710 may store data related to the ASR model 1712, the first natural language understanding model 1714, and the device dispatcher model 1716. The second assistant model 1720 may store data about a plurality of second natural language understanding models 1722 and an action plan management model 1724. In an embodiment, the memory 1700 may store device information and device name information.

UI 모듈(1730)은, 애플리케이션 별로 디바이스(1000)와 연동되는 특화된 UI, GUI 등을 제공할 수 있다. The UI module 1730 may provide a specialized UI, GUI, etc. that are interlocked with the device 1000 for each application.

터치 스크린 모듈(1740)은 사용자의 터치 스크린 상의 터치 제스처를 감지하고, 터치 제스처에 관한 정보를 프로세서(1300)로 전달할 수 있다. 일부 실시예에 따른 터치 스크린 모듈(1740)은 터치 코드를 인식하고 분석할 수 있다. 터치 스크린 모듈(1740)은 컨트롤러를 포함하는 별도의 하드웨어로 구성될 수도 있다.The touch screen module 1740 may sense a user's touch gesture on a touch screen and transmit information about the touch gesture to the processor 1300. The touch screen module 1740 according to some embodiments may recognize and analyze a touch code. The touch screen module 1740 may be configured as separate hardware including a controller.

알림 모듈(1750)은 디바이스(1000)의 이벤트 발생을 알리기 위한 신호를 발생할 수 있다. 디바이스(1000)에서 발생되는 이벤트의 예로는 호 신호 수신, 메시지 수신, 키 신호 입력, 일정 알림 등이 있다. 알림 모듈(1750)은 디스플레이부(1210)를 통해 비디오 신호 형태로 알림 신호를 출력할 수도 있고, 음향 출력부(1220)를 통해 오디오 신호 형태로 알림 신호를 출력할 수도 있고, 진동 모터(1230)를 통해 진동 신호 형태로 알림 신호를 출력할 수도 있다.The notification module 1750 may generate a signal to notify the occurrence of an event of the device 1000. Examples of events occurring in the device 1000 include call signal reception, message reception, key signal input, and schedule notification. The notification module 1750 may output a notification signal in the form of a video signal through the display unit 1210, may output a notification signal in the form of an audio signal through the sound output unit 1220, and the vibration motor 1230 It is also possible to output a notification signal in the form of a vibration signal through.

본 명세서에서 설명된 서버(300)에 의해 실행되는 프로그램은 하드웨어 구성요소, 소프트웨어 구성요소, 및/또는 하드웨어 구성요소 및 소프트웨어 구성요소의 조합으로 구현될 수 있다. 프로그램은 컴퓨터로 읽을 수 있는 명령어들을 수행할 수 있는 모든 시스템에 의해 수행될 수 있다. The program executed by the server 300 described herein may be implemented as a hardware component, a software component, and/or a combination of a hardware component and a software component. A program can be executed by any system capable of executing computer-readable instructions.

소프트웨어는 컴퓨터 프로그램(computer program), 코드(code), 명령어(instruction), 또는 이들 중 하나 이상의 조합을 포함할 수 있으며, 원하는 대로 동작하도록 처리 장치를 구성하거나 독립적으로 또는 결합적으로(collectively) 처리 장치를 명령할 수 있다. Software may include a computer program, code, instructions, or a combination of one or more of them, and configure the processing unit to operate as desired or process it independently or collectively. You can command the device.

소프트웨어는, 컴퓨터로 읽을 수 있는 저장 매체(computer-readable storage media)에 저장된 명령어를 포함하는 컴퓨터 프로그램으로 구현될 수 있다. 컴퓨터가 읽을 수 있는 기록 매체로는, 예를 들어 마그네틱 저장 매체(예컨대, ROM(read-only memory), RAM(random-access memory), 플로피 디스크, 하드 디스크 등) 및 광학적 판독 매체(예컨대, 시디롬(CD-ROM), 디브이디(DVD: Digital Versatile Disc)) 등이 있다. 컴퓨터가 읽을 수 있는 기록 매체는 네트워크로 연결된 컴퓨터 시스템들에 분산되어, 분산 방식으로 컴퓨터가 판독 가능한 코드가 저장되고 실행될 수 있다. 매체는 컴퓨터에 의해 판독가능하며, 메모리에 저장되고, 프로세서에서 실행될 수 있다. The software may be implemented as a computer program including instructions stored in a computer-readable storage media. The computer-readable recording medium includes, for example, a magnetic storage medium (e.g., read-only memory (ROM), random-access memory (RAM), floppy disk, hard disk, etc.) and optical reading medium (e.g., CD-ROM (CD-ROM) and DVD (Digital Versatile Disc)). The computer-readable recording medium is distributed over network-connected computer systems, so that computer-readable codes can be stored and executed in a distributed manner. The medium is readable by a computer, stored in memory, and executed on a processor.

컴퓨터로 읽을 수 있는 저장매체는, 비일시적(non-transitory) 저장매체의 형태로 제공될 수 있다. 여기서, '비일시적'은 저장매체가 신호(signal)를 포함하지 않으며 실재(tangible)한다는 것을 의미할 뿐 데이터가 저장매체에 반영구적 또는 임시적으로 저장됨을 구분하지 않는다. The computer-readable storage medium may be provided in the form of a non-transitory storage medium. Here,'non-transient' means that the storage medium does not contain a signal and is tangible, but does not distinguish between semi-permanent or temporary storage of data in the storage medium.

또한, 본 명세서에 개시된 실시예들에 따른 프로그램은 컴퓨터 프로그램 제품(computer program product)에 포함되어 제공될 수 있다. 컴퓨터 프로그램 제품은 상품으로서 판매자 및 구매자 간에 거래될 수 있다.In addition, a program according to the embodiments disclosed in the present specification may be included in a computer program product and provided. Computer program products can be traded between sellers and buyers as commodities.

컴퓨터 프로그램 제품은 소프트웨어 프로그램, 소프트웨어 프로그램이 저장된 컴퓨터로 읽을 수 있는 저장 매체를 포함할 수 있다. 예를 들어, 컴퓨터 프로그램 제품은 디바이스의 제조사 또는 전자 마켓(예를 들어, 구글 플레이 스토어, 앱 스토어)을 통해 전자적으로 배포되는 소프트웨어 프로그램 형태의 상품(예를 들어, 다운로드 가능한 애플리케이션(downloadable application))을 포함할 수 있다. 전자적 배포를 위하여, 소프트웨어 프로그램의 적어도 일부는 저장 매체에 저장되거나, 임시적으로 생성될 수 있다. 이 경우, 저장 매체는 제조사의 서버, 전자 마켓의 서버, 또는 소프트웨어 프로그램을 임시적으로 저장하는 중계 서버의 저장매체가 될 수 있다.The computer program product may include a software program and a computer-readable storage medium storing the software program. For example, a computer program product is a product (for example, a downloadable application) in the form of a software program that is electronically distributed through a device manufacturer or an electronic market (eg, Google Play Store, App Store). It may include. For electronic distribution, at least a part of the software program may be stored in a storage medium or may be temporarily generated. In this case, the storage medium may be a server of a manufacturer, a server of an electronic market, or a storage medium of a relay server temporarily storing a software program.

컴퓨터 프로그램 제품은, 서버 및 디바이스로 구성되는 시스템에서, 서버의 저장매체 또는 디바이스의 저장매체를 포함할 수 있다. 또는, 서버 또는 디바이스와 통신 연결되는 제3 디바이스(예, 스마트폰)가 존재하는 경우, 컴퓨터 프로그램 제품은 제3 디바이스의 저장매체를 포함할 수 있다. 또는, 컴퓨터 프로그램 제품은 서버로부터 디바이스 또는 제3 디바이스로 전송되거나, 제3 디바이스로부터 디바이스로 전송되는 소프트웨어 프로그램 자체를 포함할 수 있다.The computer program product may include a storage medium of a server or a storage medium of a device in a system composed of a server and a device. Alternatively, when there is a server or a third device (eg, a smartphone) that is communicatively connected to the device, the computer program product may include a storage medium of the third device. Alternatively, the computer program product may include a software program itself transmitted from a server to a device or a third device, or transmitted from a third device to the device.

이 경우, 서버, 디바이스 및 제3 디바이스 중 하나가 컴퓨터 프로그램 제품을 실행하여 개시된 실시예들에 따른 방법을 수행할 수 있다. 또는, 서버, 디바이스 및 제3 디바이스 중 둘 이상이 컴퓨터 프로그램 제품을 실행하여 개시된 실시예들에 따른 방법을 분산하여 실시할 수 있다.In this case, one of the server, the device and the third device may execute the computer program product to perform the method according to the disclosed embodiments. Alternatively, two or more of a server, a device, and a third device may execute a computer program product to distribute and implement the method according to the disclosed embodiments.

예를 들면, 서버(예로, IoT 클라우드 서버 또는 인공 지능 서버 등)가 서버에 저장된 컴퓨터 프로그램 제품을 실행하여, 서버와 통신 연결된 디바이스가 개시된 실시예들에 따른 방법을 수행하도록 제어할 수 있다. For example, a server (eg, an IoT cloud server or an artificial intelligence server) may execute a computer program product stored in the server to control a device communicating with the server to perform the method according to the disclosed embodiments.

또 다른 예로, 제3 디바이스가 컴퓨터 프로그램 제품을 실행하여, 제3 디바이스와 통신 연결된 디바이스가 개시된 실시예에 따른 방법을 수행하도록 제어할 수 있다. As another example, a third device may execute a computer program product, and a device connected in communication with the third device may be controlled to perform a method according to the disclosed embodiment.

제3 디바이스가 컴퓨터 프로그램 제품을 실행하는 경우, 제3 디바이스는 서버로부터 컴퓨터 프로그램 제품을 다운로드하고, 다운로드된 컴퓨터 프로그램 제품을 실행할 수 있다. 또는, 제3 디바이스는 프리로드된 상태로 제공된 컴퓨터 프로그램 제품을 실행하여 개시된 실시예들에 따른 방법을 수행할 수도 있다.When the third device executes the computer program product, the third device may download the computer program product from the server and execute the downloaded computer program product. Alternatively, the third device may execute the computer program product provided in a preloaded state to perform the method according to the disclosed embodiments.

이상과 같이 실시예들이 비록 한정된 실시예와 도면에 의해 설명되었으나, 해당 기술분야에서 통상의 지식을 가진 자라면 상기의 기재로부터 다양한 수정 및 변형이 가능하다. 예를 들어, 설명된 기술들이 설명된 방법과 다른 순서로 수행되거나, 및/또는 설명된 컴퓨터 시스템 또는 모듈 등의 구성요소들이 설명된 방법과 다른 형태로 결합 또는 조합되거나, 다른 구성요소 또는 균등물에 의하여 대치되거나 치환되더라도 적절한 결과가 달성될 수 있다. As described above, although the embodiments have been described by the limited embodiments and drawings, various modifications and variations are possible from the above description by 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 a computer system or module described are combined or combined in a form different from the described method, or other components or equivalents Even if substituted or substituted by, appropriate results can be achieved.

Claims (21)

서버 및 복수의 디바이스를 포함하는 네트워크 환경에서, 상기 서버가 음성 입력에 기초하여 디바이스를 제어하는 방법에 있어서,
클라이언트 디바이스로부터 사용자의 음성 입력을 수신하는 단계;
ASR(Automatic Speech Recognition)을 수행하여, 수신된 음성 입력을 텍스트로 변환하는 단계;
상기 텍스트에 제1 자연어 이해 모델(Natural Language Understanding)을 적용하여, 상기 텍스트와 관련된 타겟 디바이스의 타입(type)을 결정하는 단계;
복수의 제2 자연어 이해 모델 중 상기 결정된 타입에 대응하는 제2 자연어 이해 모델을 선택하는 단계;
결정된 타입 및 상기 복수의 디바이스의 디바이스 정보에 기초하여 타겟 디바이스를 결정하는 단계;
상기 텍스트 중 적어도 일부에 상기 선택된 제2 자연어 이해 모델을 적용하여 상기 텍스트를 해석함으로써, 상기 타겟 디바이스가 수행할 동작에 관한 동작 정보를 획득하는 단계; 및
상기 획득된 동작 정보를 상기 타겟 디바이스에 전송하는 단계;
를 포함하는, 방법.
In a network environment including a server and a plurality of devices, in a method for the server to control a device based on a voice input,
Receiving a user's voice input from a client device;
Converting the received speech input into text by performing Automatic Speech Recognition (ASR);
Determining a type of a target device related to the text by applying a first natural language understanding model to the text;
Selecting a second natural language understanding model corresponding to the determined type from among a plurality of second natural language understanding models;
Determining a target device based on the determined type and device information of the plurality of devices;
Analyzing the text by applying the selected second natural language understanding model to at least some of the texts, thereby obtaining operation information regarding an operation to be performed by the target device; And
Transmitting the obtained motion information to the target device;
Containing, method.
제1 항에 있어서,
상기 제1 자연어 이해 모델은, 상기 텍스트를 해석함으로써 상기 타겟 디바이스 타입을 결정하도록 구성된 모델이고,
상기 제2 자연어 이해 모델은, 상기 특정 타입의 디바이스와 관련하여 상기 텍스트를 해석함으로써, 상기 결정된 타겟 디바이스가 수행할 상기 동작 정보를 획득하도록 구성된 모델인, 방법.
The method of claim 1,
The first natural language understanding model is a model configured to determine the target device type by analyzing the text,
The second natural language understanding model is a model configured to obtain the operation information to be performed by the determined target device by interpreting the text in relation to the specific type of device.
제1 항에 있어서,
상기 타겟 디바이스의 타입을 결정하는 단계는,
상기 텍스트를 단어(word) 또는 구(phrase) 단위로 파싱하는 단계;
상기 제1 자연어 이해 모델을 이용하여 상기 파싱된 텍스트를 해석함으로써, 제1 인텐트(intent)를 획득하는 단계;
상기 IoT 클라우드 서버로부터 상기 복수의 디바이스의 특성 정보를 획득하는 단계; 및
상기 제1 인텐트와 상기 복수의 디바이스의 특성 정보 간의 관련성을 판단할 수 있는 매칭 모델을 이용하여, 상기 타겟 디바이스 타입을 결정하는 단계;
를 포함하는, 방법.
The method of claim 1,
Determining the type of the target device,
Parsing the text in units of words or phrases;
Obtaining a first intent by analyzing the parsed text using the first natural language understanding model;
Acquiring characteristic information of the plurality of devices from the IoT cloud server; And
Determining the target device type by using a matching model capable of determining a relationship between the first intent and characteristic information of the plurality of devices;
Containing, method.
제3 항에 있어서,
상기 타겟 디바이스 타입을 결정하는 단계는,
상기 매칭 모델을 이용하여, 상기 제1 인텐트와 복수의 디바이스 타입 간의 매칭 정도를 나타내는 복수의 수치값을 획득하는 단계; 및
상기 획득된 복수의 수치값 중 최대의 수치값을 갖는 디바이스 타입을 상기 타겟 디바이스 타입으로 결정하는 단계;
를 포함하는, 방법.
The method of claim 3,
The step of determining the target device type,
Acquiring a plurality of numerical values indicating a degree of matching between the first intent and a plurality of device types by using the matching model; And
Determining a device type having a maximum numerical value among the obtained numerical values as the target device type;
Containing, method.
제3 항에 있어서,
상기 매칭 모델은 룰 베이스 시스템(rule-based system)을 통한 학습을 통해 획득된 매칭 룰(matching rule)을 포함하는, 방법.
The method of claim 3,
The matching model comprises a matching rule obtained through learning through a rule-based system.
제1 항에 있어서,
상기 타겟 디바이스의 타입을 결정하는 단계는,
상기 텍스트를 단어(word) 또는 구(phrase) 단위로 파싱하는 단계;
상기 제1 자연어 이해 모델을 이용하여, 상기 파싱된 텍스트로부터 디바이스 명칭을 추출하는 단계; 및
상기 추출된 디바이스 명칭에 기초하여 상기 타입을 결정하는 단계;
를 포함하는, 방법.
The method of claim 1,
Determining the type of the target device,
Parsing the text in units of words or phrases;
Extracting a device name from the parsed text by using the first natural language understanding model; And
Determining the type based on the extracted device name;
Containing, method.
제1 항에 있어서,
상기 복수의 디바이스의 디바이스 정보를 획득하는 단계; 를 더 포함하고,
상기 복수의 디바이스의 디바이스 정보를 획득하는 단계는,
상기 복수의 디바이스 각각의 기능 수행 능력(capability) 정보, 위치 정보, 전원 온오프(on/off) 정보, 및 현재 수행하고 있는 동작에 관한 정보 중 적어도 하나를 상기 IoT 클라우드 서버로부터 획득하는, 방법.
The method of claim 1,
Acquiring device information of the plurality of devices; Including more,
Acquiring device information of the plurality of devices,
A method of acquiring from the IoT cloud server at least one of function performance information, location information, power on/off information, and information on an operation currently being performed of each of the plurality of devices.
제1 항에 있어서,
상기 결정된 타입에 해당되는 디바이스가 복수 개 존재하는 경우, 자연어 생성(Natural Language Generator, NLG) 모델을 이용하여 복수의 후보 디바이스 중 상기 타겟 디바이스를 선택하기 위한 질의 메시지를 생성하는 단계; 및
상기 타겟 디바이스를 결정하는 단계는, 상기 생성된 질의 메시지에 관한 사용자의 응답 입력에 기초하여 상기 타겟 디바이스를 결정하는, 방법.
The method of claim 1,
Generating a query message for selecting the target device from among a plurality of candidate devices using a Natural Language Generator (NLG) model when there are a plurality of devices corresponding to the determined type; And
The determining of the target device comprises determining the target device based on a user's response input to the generated query message.
제1 항에 있어서,
상기 동작 정보를 획득하는 단계는,
상기 타겟 디바이스의 타입에 특화된 상기 제2 자연어 이해 모델을 이용하여 상기 텍스트를 해석함으로써, 제2 인텐트 및 파라미터를 획득하는 단계;
상기 복수의 디바이스 각각에 관련된 액션 플랜들을 저장하는 액션 플랜 관리 모델에게 상기 제2 인텐트, 상기 파라미터, 및 상기 타겟 디바이스의 식별 정보를 제공하는 단계; 및
상기 액션 플랜 관리 모델로부터 상기 타겟 디바이스가 수행할 동작에 관한 동작 정보를 획득하는 단계; 를 포함하는, 방법.
The method of claim 1,
Obtaining the operation information,
Interpreting the text using the second natural language understanding model specialized for the type of the target device, thereby obtaining a second intent and a parameter;
Providing the second intent, the parameter, and identification information of the target device to an action plan management model that stores action plans related to each of the plurality of devices; And
Obtaining operation information regarding an operation to be performed by the target device from the action plan management model; Containing, method.
제9 항에 있어서,
상기 동작 정보는, 상기 액션 플랜 관리 모델에 의해, 상기 액션 플랜 관리 모델에 기 저장된 상기 타겟 디바이스의 세부 동작들 및 세부 동작들 간의 관계에 관한 정보 중 상기 제2 제2 인텐트 및 상기 파라미터와 관련된 동작들이 선택되고, 상기 선택된 세부 동작들의 실행 순서를 플래닝(planning)됨으로써 획득되는, 방법.
The method of claim 9,
The operation information is related to the second second intent and the parameter from information on the relationship between detailed operations and detailed operations of the target device previously stored in the action plan management model, according to the action plan management model. Operations are selected and obtained by planning an execution order of the selected detailed operations.
사용자의 음성 입력에 기초하여 디바이스를 제어하는 서버에 있어서,
클라이언트 디바이스 및 복수의 디바이스와 데이터 통신을 수행하는 통신 인터페이스;
하나 이상의 명령어들(instructions)을 포함하는 프로그램을 저장하는 메모리; 및
상기 메모리에 저장된 프로그램의 하나 이상의 명령어들을 실행하는 프로세서;
를 포함하고,
상기 프로세서는, 상기 클라이언트 디바이스로부터 사용자의 음성 입력을 수신하도록 상기 통신 인터페이스를 제어하고,
ASR(Automatic Speech Recognition)을 수행하여, 수신된 음성 입력을 텍스트로 변환하고,
상기 텍스트에 제1 자연어 이해 모델(Natural Language Understanding)을 적용하여, 상기 텍스트와 관련된 타겟 디바이스의 타입(type)을 결정하고,
복수의 제2 자연어 이해 모델 중 상기 결정된 타입에 대응되는 제2 자연어 이해 모델을 선택하고,
결정된 타입 및 상기 복수의 디바이스의 디바이스 정보에 기초하여 타겟 디바이스를 결정하고,
상기 텍스트 중 적어도 일부에 상기 선택된 제2 자연어 이해 모델을 적용하여 상기 텍스트를 해석함으로써, 상기 타겟 디바이스가 수행할 동작에 관한 동작 정보를 획득하고,
상기 획득된 동작 정보를 상기 타겟 디바이스에 전송하도록 상기 통신 인터페이스를 제어하는, 서버.
In the server for controlling a device based on a user's voice input,
A communication interface for performing data communication with a client device and a plurality of devices;
A memory storing a program including one or more instructions; And
A processor that executes one or more instructions of a program stored in the memory;
Including,
The processor controls the communication interface to receive a user's voice input from the client device,
By performing ASR (Automatic Speech Recognition), the received speech input is converted into text,
By applying a first natural language understanding model to the text, a type of a target device related to the text is determined, and
Selecting a second natural language understanding model corresponding to the determined type from among a plurality of second natural language understanding models,
Determine a target device based on the determined type and device information of the plurality of devices,
By analyzing the text by applying the selected second natural language understanding model to at least a portion of the text, operation information regarding an operation to be performed by the target device is obtained,
The server for controlling the communication interface to transmit the obtained operation information to the target device.
제11 항에 있어서,
상기 제1 자연어 이해 모델은, 상기 텍스트를 해석함으로써 상기 타겟 디바이스 타입을 결정하도록 구성된 모델이고,
상기 제2 자연어 이해 모델은, 상기 특정 타입의 디바이스와 관련하여 상기 텍스트를 해석함으로써, 상기 결정된 타겟 디바이스가 수행할 상기 동작 정보를 획득하도록 구성된 모델인, 서버.
The method of claim 11,
The first natural language understanding model is a model configured to determine the target device type by analyzing the text,
The second natural language understanding model is a model configured to obtain the operation information to be performed by the determined target device by interpreting the text in relation to the specific type of device.
제11 항에 있어서,
상기 프로세서는,
상기 텍스트를 단어(word) 또는 구(phrase) 단위로 파싱하고, 상기 제1 자연어 이해 모델을 이용하여 상기 파싱된 텍스트를 해석함으로써 제1 인텐트(intent)를 획득하고, 상기 제1 인텐트와 상기 복수의 디바이스의 특성 정보 간의 관련성을 판단할 수 있는 매칭 모델을 이용하여, 상기 타겟 디바이스의 타입을 결정하는, 서버.
The method of claim 11,
The processor,
The text is parsed in units of words or phrases, the parsed text is analyzed using the first natural language understanding model to obtain a first intent, and the first intent and A server configured to determine a type of the target device by using a matching model capable of determining a relationship between characteristic information of the plurality of devices.
제13 항에 있어서,
상기 프로세서는,
상기 IoT 클라우드 서버로부터 상기 복수의 디바이스의 특성 정보를 획득하도록 상기 통신 인터페이스를 제어하는, 서버.
The method of claim 13,
The processor,
The server for controlling the communication interface to obtain characteristic information of the plurality of devices from the IoT cloud server.
제13 항에 있어서,
상기 프로세서는,
상기 매칭 모델을 이용하여, 상기 제1 인텐트와 복수의 디바이스 타입 간의 매칭 정도를 나타내는 복수의 수치값을 획득하고, 상기 획득된 복수의 수치값 중 최대의 수치값을 갖는 디바이스 타입을 상기 타겟 디바이스 타입으로 결정하는, 서버.
The method of claim 13,
The processor,
Using the matching model, a plurality of numerical values indicating a matching degree between the first intent and a plurality of device types are obtained, and a device type having the largest numerical value among the obtained plurality of numerical values is selected as the target device. Server, determined by type.
제13 항에 있어서,
상기 매칭 모델은 룰 베이스 시스템(rule-based system)을 통한 학습을 통해 획득된 매칭 룰(matching rule)을 포함하는, 서버.
The method of claim 13,
The matching model includes a matching rule obtained through learning through a rule-based system.
제13 항에 있어서,
상기 프로세서는,
상기 텍스트를 단어(word) 또는 구(phrase) 단위로 파싱하고, 상기 제1 자연어 이해 모델을 이용하여, 상기 파싱된 텍스트로부터 디바이스 명칭을 추출하고, 상기 추출된 디바이스 명칭에 기초하여 상기 타입을 결정하는, 서버.
The method of claim 13,
The processor,
Parses the text in units of words or phrases, extracts a device name from the parsed text using the first natural language understanding model, and determines the type based on the extracted device name That, the server.
제11 항에 있어서,
상기 프로세서는, IoT 클라우드 서버로부터 상기 복수의 디바이스 각각의 기능 수행 능력(capability) 정보, 설치 위치 정보, 전원 온오프(on/off) 정보, 및 현재 수행하고 있는 동작에 관한 정보 중 적어도 하나를 포함하는 디바이스 정보를 수신하도록 상기 통신 인터페이스를 제어하는, 서버.
The method of claim 11,
The processor, from the IoT cloud server, includes at least one of capability information, installation location information, power on/off information, and information on an operation currently being performed of each of the plurality of devices. And controlling the communication interface to receive device information.
제11 항에 있어서,
상기 프로세서는,
상기 결정된 타입에 해당되는 디바이스가 복수 개 존재하는 경우, 자연어 생성(Natural Language Generator, NLG) 모델을 이용하여 복수의 후보 디바이스 중 상기 타겟 디바이스를 선택하기 위한 질의 메시지를 생성하고, 상기 생성된 질의 메시지에 관한 사용자의 응답 입력에 기초하여 상기 타겟 디바이스를 결정하는, 서버.
The method of claim 11,
The processor,
When a plurality of devices corresponding to the determined type exist, a query message for selecting the target device from among a plurality of candidate devices is generated using a natural language generator (NLG) model, and the generated query message Determining the target device based on the user's response input for the server.
제11 항에 있어서,
상기 프로세서는,
상기 타겟 디바이스의 타입에 특화된 상기 제2 자연어 이해 모델을 이용하여 상기 텍스트를 해석함으로써, 제2 인텐트 및 파라미터를 획득하고, 상기 복수의 디바이스 각각에 관련된 액션 플랜들을 저장하는 액션 플랜 관리 모델에게 상기 제2 인텐트, 상기 파라미터, 및 상기 타겟 디바이스의 식별 정보를 제공하고, 상기 액션 플랜 관리 모델로부터 상기 타겟 디바이스가 수행할 동작에 관한 동작 정보를 획득하는, 서버.
The method of claim 11,
The processor,
By analyzing the text using the second natural language understanding model specialized for the type of the target device, the second intent and the parameter are obtained, and the action plan management model stores the action plans related to each of the plurality of devices. A server that provides a second intent, the parameter, and identification information of the target device, and obtains operation information about an operation to be performed by the target device from the action plan management model.
제11 항의 방법을 컴퓨터에서 실행시키기 위한 프로그램을 기록한 컴퓨터로 읽을 수 있는 기록매체.

A computer-readable recording medium storing a program for executing the method of claim 11 on a computer.

KR1020190092641A 2019-05-02 2019-07-30 Server for seleting a target device according to a voice input, and controlling the selected target device, and method for operating the same KR102309540B1 (en)

Priority Applications (6)

Application Number Priority Date Filing Date Title
US16/841,086 US20200349940A1 (en) 2019-05-02 2020-04-06 Server for determining target device based on speech input of user and controlling target device, and operation method of the server
EP22205263.1A EP4160592A1 (en) 2019-05-02 2020-04-09 Determination of target device based on speech input of user and control of said target device
EP20168960.1A EP3734596B1 (en) 2019-05-02 2020-04-09 Determining target device based on speech input of user and controlling target device
PCT/KR2020/005052 WO2020222444A1 (en) 2019-05-02 2020-04-16 Server for determining target device based on speech input of user and controlling target device, and operation method of the server
CN202010356462.2A CN111880645A (en) 2019-05-02 2020-04-29 Server for determining and controlling target device based on voice input of user and operating method thereof
KR1020210128348A KR102429436B1 (en) 2019-05-02 2021-09-28 Server for seleting a target device according to a voice input, and controlling the selected target device, and method for operating the same

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
KR1020190051824 2019-05-02
KR20190051824 2019-05-02
US201962862201P 2019-06-17 2019-06-17
US62/862,201 2019-06-17

Related Child Applications (1)

Application Number Title Priority Date Filing Date
KR1020210128348A Division KR102429436B1 (en) 2019-05-02 2021-09-28 Server for seleting a target device according to a voice input, and controlling the selected target device, and method for operating the same

Publications (2)

Publication Number Publication Date
KR20200127814A true KR20200127814A (en) 2020-11-11
KR102309540B1 KR102309540B1 (en) 2021-10-07

Family

ID=73451626

Family Applications (2)

Application Number Title Priority Date Filing Date
KR1020190092641A KR102309540B1 (en) 2019-05-02 2019-07-30 Server for seleting a target device according to a voice input, and controlling the selected target device, and method for operating the same
KR1020210128348A KR102429436B1 (en) 2019-05-02 2021-09-28 Server for seleting a target device according to a voice input, and controlling the selected target device, and method for operating the same

Family Applications After (1)

Application Number Title Priority Date Filing Date
KR1020210128348A KR102429436B1 (en) 2019-05-02 2021-09-28 Server for seleting a target device according to a voice input, and controlling the selected target device, and method for operating the same

Country Status (1)

Country Link
KR (2) KR102309540B1 (en)

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112307173A (en) * 2020-11-18 2021-02-02 托普爱英(北京)科技有限公司 Learning assisting method and device and electronic equipment
KR102369021B1 (en) * 2021-06-28 2022-03-02 주식회사 세찬아이앤씨 Voice recognition control system
KR102395122B1 (en) * 2020-11-18 2022-05-09 한국과학기술원 Conversational services composition model to support end-user services composition in iot environments
WO2022139097A1 (en) * 2020-12-22 2022-06-30 삼성전자주식회사 Electronic device, system, and control method therefor
WO2022177351A1 (en) * 2021-02-19 2022-08-25 삼성전자 주식회사 Method and mobile device for processing command based on utterance input
WO2023008714A1 (en) * 2021-07-30 2023-02-02 삼성전자주식회사 Electronic device and method for providing connection switching of wireless audio device
CN116088325A (en) * 2022-12-05 2023-05-09 广州视声智能股份有限公司 Digital twinning-based household equipment control method and device and storage medium
EP4199000A1 (en) * 2021-12-15 2023-06-21 F. Hoffmann-La Roche AG Healthcare data management system
WO2023121077A1 (en) * 2021-12-21 2023-06-29 삼성전자 주식회사 Method for identifying target device, and electronic device therefor
WO2023128547A1 (en) * 2021-12-30 2023-07-06 삼성전자주식회사 Electronic device and control method therefor
KR102598501B1 (en) * 2023-02-24 2023-11-03 김남영 Home networking system using AI artificial intelligence speaker
EP4297344A1 (en) * 2022-06-20 2023-12-27 Mindwareworks Co.,Ltd. System for providing iot device integrated control service through ai server
US11948579B2 (en) 2019-12-05 2024-04-02 Samsung Electronics Co., Ltd. Electronic device performing operation based on user speech in multi device environment and operating method thereof

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20230091322A (en) * 2021-12-16 2023-06-23 삼성전자주식회사 Electronic device and method for recommending voice command thereof

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110060587A1 (en) * 2007-03-07 2011-03-10 Phillips Michael S Command and control utilizing ancillary information in a mobile voice-to-speech application
JP2014510942A (en) * 2011-02-22 2014-05-01 スピーク・ウィズ・ミー・インコーポレイテッド Hybrid client / server speech recognition
JP2015018238A (en) * 2013-07-08 2015-01-29 インタラクションズ コーポレイション Automated speech recognition proxy system for natural language understanding
US20170025124A1 (en) * 2014-10-09 2017-01-26 Google Inc. Device Leadership Negotiation Among Voice Interface Devices
KR20180022021A (en) * 2016-08-23 2018-03-06 삼성전자주식회사 Method and electronic device for recognizing voice
US20180068663A1 (en) * 2016-09-07 2018-03-08 Samsung Electronics Co., Ltd. Server and method for controlling external device
US20190019518A1 (en) * 2014-04-08 2019-01-17 Panasonic Intellectual Property Corporation Of America Device control method, device management system, and voice input apparatus

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110060587A1 (en) * 2007-03-07 2011-03-10 Phillips Michael S Command and control utilizing ancillary information in a mobile voice-to-speech application
JP2014510942A (en) * 2011-02-22 2014-05-01 スピーク・ウィズ・ミー・インコーポレイテッド Hybrid client / server speech recognition
JP2015018238A (en) * 2013-07-08 2015-01-29 インタラクションズ コーポレイション Automated speech recognition proxy system for natural language understanding
US20190019518A1 (en) * 2014-04-08 2019-01-17 Panasonic Intellectual Property Corporation Of America Device control method, device management system, and voice input apparatus
US20170025124A1 (en) * 2014-10-09 2017-01-26 Google Inc. Device Leadership Negotiation Among Voice Interface Devices
KR20180022021A (en) * 2016-08-23 2018-03-06 삼성전자주식회사 Method and electronic device for recognizing voice
US20180068663A1 (en) * 2016-09-07 2018-03-08 Samsung Electronics Co., Ltd. Server and method for controlling external device

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11948579B2 (en) 2019-12-05 2024-04-02 Samsung Electronics Co., Ltd. Electronic device performing operation based on user speech in multi device environment and operating method thereof
CN112307173A (en) * 2020-11-18 2021-02-02 托普爱英(北京)科技有限公司 Learning assisting method and device and electronic equipment
KR102395122B1 (en) * 2020-11-18 2022-05-09 한국과학기술원 Conversational services composition model to support end-user services composition in iot environments
WO2022139097A1 (en) * 2020-12-22 2022-06-30 삼성전자주식회사 Electronic device, system, and control method therefor
WO2022177351A1 (en) * 2021-02-19 2022-08-25 삼성전자 주식회사 Method and mobile device for processing command based on utterance input
KR102369021B1 (en) * 2021-06-28 2022-03-02 주식회사 세찬아이앤씨 Voice recognition control system
WO2023008714A1 (en) * 2021-07-30 2023-02-02 삼성전자주식회사 Electronic device and method for providing connection switching of wireless audio device
EP4199000A1 (en) * 2021-12-15 2023-06-21 F. Hoffmann-La Roche AG Healthcare data management system
WO2023121077A1 (en) * 2021-12-21 2023-06-29 삼성전자 주식회사 Method for identifying target device, and electronic device therefor
WO2023128547A1 (en) * 2021-12-30 2023-07-06 삼성전자주식회사 Electronic device and control method therefor
EP4297344A1 (en) * 2022-06-20 2023-12-27 Mindwareworks Co.,Ltd. System for providing iot device integrated control service through ai server
CN116088325A (en) * 2022-12-05 2023-05-09 广州视声智能股份有限公司 Digital twinning-based household equipment control method and device and storage medium
KR102598501B1 (en) * 2023-02-24 2023-11-03 김남영 Home networking system using AI artificial intelligence speaker

Also Published As

Publication number Publication date
KR20210120960A (en) 2021-10-07
KR102309540B1 (en) 2021-10-07
KR102429436B1 (en) 2022-08-04

Similar Documents

Publication Publication Date Title
KR102429436B1 (en) Server for seleting a target device according to a voice input, and controlling the selected target device, and method for operating the same
EP3734596B1 (en) Determining target device based on speech input of user and controlling target device
US11887604B1 (en) Speech interface device with caching component
US20230053350A1 (en) Encapsulating and synchronizing state interactions between devices
JP7418526B2 (en) Dynamic and/or context-specific hotwords to trigger automated assistants
EP3389044A1 (en) Management layer for multiple intelligent personal assistant services
EP3190512B1 (en) Display device and operating method therefor
US10860289B2 (en) Flexible voice-based information retrieval system for virtual assistant
US11373645B1 (en) Updating personalized data on a speech interface device
JP2019503526A (en) Parameter collection and automatic dialog generation in dialog systems
US11979437B2 (en) System and method for registering device for voice assistant service
US11721343B2 (en) Hub device, multi-device system including the hub device and plurality of devices, and method of operating the same
US11830482B2 (en) Method and apparatus for speech interaction, and computer storage medium
JP6728319B2 (en) Service providing method and system using a plurality of wake words in an artificial intelligence device
US10838954B1 (en) Identifying user content
US10135950B2 (en) Creating a cinematic storytelling experience using network-addressable devices
US20230290338A1 (en) Methods for natural language model training in natural language understanding (nlu) systems
JP2020038709A (en) Continuous conversation function with artificial intelligence device
US11817093B2 (en) Method and system for processing user spoken utterance
KR20200040562A (en) System for processing user utterance and operating method thereof
KR20200127823A (en) The hub device, multi device system comprising the hub device and a plurality of devices and method operating the same
JP2021531923A (en) Systems and devices for controlling network applications
KR102487078B1 (en) The hub device, multi device system comprising the hub device and a plurality of devices and method operating the same
US11893996B1 (en) Supplemental content output
US20210264910A1 (en) User-driven content generation for virtual assistant

Legal Events

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