WO2020022723A1 - Electronic device and control method therefor - Google Patents

Electronic device and control method therefor Download PDF

Info

Publication number
WO2020022723A1
WO2020022723A1 PCT/KR2019/009035 KR2019009035W WO2020022723A1 WO 2020022723 A1 WO2020022723 A1 WO 2020022723A1 KR 2019009035 W KR2019009035 W KR 2019009035W WO 2020022723 A1 WO2020022723 A1 WO 2020022723A1
Authority
WO
WIPO (PCT)
Prior art keywords
application
user
electronic device
user question
data
Prior art date
Application number
PCT/KR2019/009035
Other languages
French (fr)
Korean (ko)
Inventor
최원종
김수필
함진아
Original Assignee
삼성전자주식회사
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Priority claimed from KR1020190087731A external-priority patent/KR20200010131A/en
Application filed by 삼성전자주식회사 filed Critical 삼성전자주식회사
Priority to CN201980048144.5A priority Critical patent/CN112424768A/en
Priority to US15/733,975 priority patent/US20210217409A1/en
Priority to EP19842116.6A priority patent/EP3786812A4/en
Publication of WO2020022723A1 publication Critical patent/WO2020022723A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/40Information retrieval; Database structures therefor; File system structures therefor of multimedia data, e.g. slideshows comprising image and additional audio data
    • G06F16/43Querying
    • G06F16/432Query formulation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/903Querying
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/16Sound input; Sound output
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/08Learning methods
    • 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

Definitions

  • the present disclosure relates to an electronic device and a control method thereof, and more particularly, to an electronic device and a control method thereof capable of providing an optimized answer to a user question based on a personalized database.
  • AI Artificial Intelligence
  • Artificial intelligence technology consists of elementary technologies that utilize machine learning (deep learning) and machine learning.
  • Machine learning is an algorithm technology that classifies / learns the characteristics of input data by itself
  • element technology is a technology that uses machine learning algorithms such as deep learning, and it includes linguistic understanding, visual understanding, reasoning / prediction, knowledge expression, motion control, etc. It consists of technical fields.
  • Linguistic understanding is a technology for recognizing and applying / processing human language / characters, including natural language processing, machine translation, dialogue system, question answering, speech recognition / synthesis, and the like.
  • Visual understanding is a technology that recognizes and processes objects as human vision, and includes object recognition, object tracking, image retrieval, human recognition, scene understanding, spatial understanding, and image enhancement.
  • Inference prediction is a technique of judging information, logically inferring, and predicting information, and includes knowledge / probability based inference, optimization prediction, preference based planning, and recommendation.
  • Knowledge expression is a technology that automatically processes human experience information into knowledge data, and includes knowledge construction (data generation / classification) and knowledge management (data utilization).
  • Motion control is a technique for controlling autonomous driving of a vehicle and movement of a robot, and includes motion control (navigation, collision, driving), operation control (action control), and the like.
  • Artificial intelligence technologies typically operate on an external server. However, if the data used in artificial intelligence technology is data related to personal information, problems related to security may occur.
  • the present disclosure has been made to solve the above-described problem, and relates to an electronic device and a control method thereof capable of providing an optimized answer to a user question based on a personalized database.
  • a method of controlling an electronic device may include: when a user command is input while an application is running, through the type of the application, content information related to the running application, and the application; Acquiring and storing at least one of the used functions in a memory and inputting a user question related to the application to a trained artificial intelligence model and outputting an answer to the obtained user question; And answering the user question may be determined based on at least one of a type of the application, content information related to the running application, and a function used through the application.
  • the storing may include obtaining and storing at least one of a type of the application, content information related to the running application, and a function used through the application.
  • the storing may include extracting and storing the core information of the text when the running application includes the text.
  • the storing may include storing history information including information on the performed function and the user interaction when a user interaction for performing a function on the running application is detected.
  • the outputting may include outputting at least one of providing a search result for the user question, performing an action on the user question, and performing an application function on the user question.
  • the outputting may include recommending an application for playing the searched content based on the information related to the application when the user question is a question related to content search.
  • the outputting step if the user question is input, transmitting the user question to an external server, receiving an answer candidate for the user question from the external server and the received response candidate and the data And outputting an answer to the user question based on the information stored in the base.
  • the storing may include storing at least one of domain information of the running application, a type of the application, content information related to the running application, and a function used through the application, wherein the artificial intelligence model is stored. May obtain an answer to the user question based on at least one of the stored domain information and the type of the application, content information related to the running application, and a function used through the application.
  • the user question may be at least one of user voice or text.
  • the electronic device for achieving the above object, if a user command is input while the application is running, the type of the application, the content information associated with the running application and the application; Acquire and store at least one of the functions used in the memory, and if a user question related to the application is input, input a user question related to the application to a learned artificial intelligence model to answer the obtained user question. Output and answer the above user questions
  • the processor may acquire and store at least one of a type of the application, content information related to the running application, and a function used through the application, in the memory.
  • the processor may extract key information of the text and store the core information in the memory.
  • the processor may store history information including information about the performed function and the user interaction in the memory.
  • the processor may output at least one of providing a search result for the user question, performing an action on the user question, and performing an application function on the user question.
  • the processor may recommend an application for playing the searched content based on information related to the application.
  • the electronic device further includes a communication unit, and when the user question is input, the processor transmits the user question to an external server through the communication unit, and receives a candidate for answering the user question from the external server. Received through the communication unit, based on the received response candidate and the information stored in the memory may output the answer to the user question.
  • the processor may store at least one of domain information of the running application, the type of the application, content information related to the running application, and a function used through the application in the memory, and the artificial intelligence
  • the model may obtain an answer to the user question based on at least one of the stored domain information and the type of the application, content information related to the running application, and a function used through the application.
  • the user question may be at least one of user voice or text.
  • the electronic device may protect the privacy of the user while using an artificial intelligence model and may output a user-specific answer.
  • FIG. 2 is a block diagram schematically illustrating a configuration of an electronic device according to an embodiment of the present disclosure.
  • FIG. 3 is a block diagram illustrating in detail an electronic device according to an embodiment of the present disclosure.
  • FIG. 4 is a block diagram illustrating a conversation system according to an exemplary embodiment of the present disclosure.
  • 5A and 5B are exemplary diagrams for describing data stored in a knowledge base according to an embodiment of the present disclosure.
  • FIG. 6 is an exemplary diagram for describing a method of classifying domains (or categories) of data stored in a knowledge base according to an embodiment of the present disclosure.
  • FIG. 7 is an exemplary view for explaining a domain management method according to an embodiment of the present disclosure.
  • FIG. 8 is an exemplary diagram for describing a method of obtaining data stored in a knowledge base according to an embodiment of the present disclosure.
  • FIG. 9 is an exemplary diagram for describing a method of outputting a question about a user's voice based on an application operation by an electronic device according to an embodiment of the present disclosure.
  • 10A and 10B are exemplary diagrams for describing a method of recommending a user's application operation according to another exemplary embodiment of the present disclosure.
  • 11A and 11B are exemplary views for describing various embodiments according to the present disclosure.
  • FIG. 12 is an exemplary diagram for describing an operation of an electronic device and a server according to an embodiment of the present disclosure.
  • FIG. 13 is a system diagram for describing an operation of an electronic device and a server according to an exemplary embodiment of the present disclosure.
  • FIG. 14 is a system diagram for describing an operation of an electronic device and a server according to another exemplary embodiment of the present disclosure.
  • 15 is a flowchart illustrating a control method of an electronic device according to an embodiment of the present disclosure.
  • expressions such as “have,” “may have,” “include,” or “may include” include the presence of a corresponding feature (e.g., numerical, functional, operational, or component such as a component). Does not exclude the presence of additional features.
  • expressions such as “A or B,” “at least one of A or / and B,” or “one or more of A or / and B” may include all possible combinations of items listed together.
  • “A or B,” “at least one of A and B,” or “at least one of A or B” includes (1) at least one A, (2) at least one B, Or (3) both of cases including at least one A and at least one B.
  • first,” “second,” “first,” or “second,” and the like may modify various components in any order and / or in importance. It is used to distinguish it from other components and does not limit the components.
  • One component (such as a first component) is "(functionally or communicatively) coupled with / to" to another component (such as a second component) or " When referred to as “connected to,” it is to be understood that any component may be directly connected to the other component or may be connected through another component (e.g., a third component).
  • a component e.g., a first component
  • another component e.g., a second component
  • the expression “configured to” used in this document is, for example, “having the capacity to,” “suitable for,” “ , “” Designed to, “” adapted to, “” made to, “or” capable of. " The term “configured to” may not necessarily mean only “specifically designed to” in hardware. Instead, in some situations, the expression “device configured to” may mean that the device “can” along with other devices or components.
  • the phrase “subprocessor configured (or set up) to perform A, B, and C” may execute a dedicated processor (eg, an embedded processor) or one or more software programs stored on a memory device to perform the operation. By doing so, it may mean a general-purpose processor (for example, a CPU or an application processor) capable of performing the corresponding operations.
  • An electronic device may be, for example, a smartphone, a tablet PC, a mobile phone, a video phone, an e-book reader, a desktop PC, a laptop PC, a netbook computer, a workstation, a server, a PDA, a PMP. (portable multimediaplayer), an MP3 player, a medical device, a camera, or a wearable device.
  • Wearable devices may be accessory (e.g. watches, rings, bracelets, anklets, necklaces, eyeglasses, contact lenses, or head-mounted-devices (HMDs), textiles or clothing integral (e.g.
  • an electronic device may comprise, for example, a television, a digital video disk (DVD) player, Audio, Refrigerator, Air Conditioner, Cleaner, Oven, Microwave, Washing Machine, Air Purifier, Set Top Box, Home Automation Control Panel, Security Control Panel, Media Box (e.g. Samsung HomeSyncTM, Apple TVTM, or Google TVTM), Game Console (Eg, XboxTM, PlayStationTM), an electronic dictionary, an electronic key, a camcorder, or an electronic picture frame.
  • DVD digital video disk
  • the electronic device may include a variety of medical devices (e.g., various portable medical measuring devices such as blood glucose meters, heart rate monitors, blood pressure meters, or body temperature meters), magnetic resonance angiography (MRA), magnetic resonance imaging (MRI), Computed tomography (CT), cameras or ultrasounds), navigation devices, global navigation satellite systems (GNSS), event data recorders (EDR), flight data recorders (FDRs), automotive infotainment devices, ship electronic equipment (E.g., various portable medical measuring devices such as blood glucose meters, heart rate monitors, blood pressure meters, or body temperature meters), magnetic resonance angiography (MRA), magnetic resonance imaging (MRI), Computed tomography (CT), cameras or ultrasounds), navigation devices, global navigation satellite systems (GNSS), event data recorders (EDR), flight data recorders (FDRs), automotive infotainment devices, ship electronic equipment (E.g.
  • medical devices e.g., various portable medical measuring devices such as blood glucose meters, heart rate monitors, blood pressure meters, or body temperature meters
  • MRA
  • gyro compasses etc.
  • avionics security devices
  • vehicle head units industrial or home robots
  • drones drones
  • ATMs in financial institutions point of sale (POS) points in stores
  • POS point of sale
  • Internet of Things devices eg, light bulbs, various sensors, sprinkler devices, fire alarms, thermostats, street lights, toasters, exercise equipment, hot water tanks, heaters, boilers, etc.
  • the term user may refer to a person who uses an electronic device or a device (eg, an artificial intelligence electronic device) that uses an electronic device.
  • a device eg, an artificial intelligence electronic device
  • FIG. 1 is an exemplary diagram for briefly describing an operation of an electronic device according to the present disclosure.
  • the electronic device 100 stores a user's application use, content use, web content use, etc. in the knowledge base 460, and when a user's question is input, the electronic device 100 outputs a response to a user question based on the knowledge base 460. Can be.
  • the electronic device 100 determines a domain of data to be stored based on the user's application use, content use, web content use, and the like, and when the domain is determined, the user's application use, content use, and web content in the determined domain. You can store data about usage.
  • the electronic device 100 stores the operation order of the user's application in the knowledge base 460, and when the user executes the application, determines the domain associated with the executed application, and stores the stored order in the determined domain.
  • the application may be controlled according to the operation order of the stored application based on the data. Or, if a movie is reserved through a movie application, the electronic device 100 determines a domain (eg, a movie domain) related to the movie application, and transmits a reservation confirmation to another user based on data stored in the domain. I can recommend that.
  • the electronic device 100 may store an action of a user who executes content through a specific application in the knowledge base 460, and when a user command to play related content is input, the electronic device 100 determines a domain related to the related content, An application for reproducing related content may be obtained based on data stored in a domain, and the related content may be reproduced through the obtained application.
  • the electronic device 100 may determine a domain related to the bookmarked content and bookmark the content related to the bookmarked content based on the data stored in the determined domain. .
  • the electronic device 100 obtains various data based on various usage histories of the electronic device 100, stores the data in the knowledge base 460 for each domain, and if a user question is input, the question stored in the knowledge base 460. Based on this, you can print the answer.
  • the knowledge base 460 refers to a database that stores a data set consisting of subject data, object data, and predicate data according to a suitable schema. That is, the knowledge base 460 may express the association type between the data and the data in a generalized form (for example, in the form of a table of a relational database) and store the set of association types between the expressed data and the data. have.
  • the subject data refers to data representing an object to be expressed
  • the association data refers to data representing a relationship between the subject and the object
  • the object data refers to data representing the content or value of the association relationship.
  • the set of subject data, connection relation data, and target data may be referred to as triple data.
  • the knowledge base 460 may be constructed by storing the triple data acquired by the electronic device 100 through a web page or various applications in a table form of a relational database.
  • the electronic device 100 may obtain triple data by performing morphological analysis and parsing on the text identified on the web page. For example, if the text "Seoul population is currently 97.7 million" is displayed on the web page, the electronic device 100 may stem and analyze the text to search for "Seoul (subject data) and population (association relation).” Data), and 9,770,000 (object data) 'triple data can be obtained.
  • the knowledge base 460 may be constructed by storing triple data acquired by the electronic device 100 in a table form of a relational database as shown in Table 1.
  • the electronic device 100 may obtain triple data including an application name (given data), an performed function (association data), and a content name (purpose data) based on the use of the application. .
  • the electronic device 100 obtains triple data consisting of a movie application name (subject data), a movie reservation (association relation data), and a movie title (purpose data). can do.
  • the knowledge base 460 may be constructed by storing the triple data acquired by the electronic device 100 in the form of a table of relational data as shown in Table 1 below.
  • the electronic device 100 may output an answer to a user's voice based on triple data stored in the knowledge base 460. Specifically, when a user's voice including a question is input, the electronic device 100 recognizes and analyzes the user's voice to determine the intention of the question, and the intention of the identified question is based on any of the triple data stored in the knowledge base 460. It may be determined whether it corresponds to the association data. For example, when a user's voice of 'Saturday OOO movie is good?' Is input, the electronic device 100 determines that the user's intention is 'movie reservation', and the connection relationship data stored in the knowledge base 460 is stored. Identify data that is 'movie booking'.
  • the electronic device 100 may identify the subject data in which the 'movie booking' of the triple data is association data using the table of relational data stored in the knowledge base 460.
  • the electronic device 100 may identify the subject data (movie application) having the highest frequency of use among the identified subject data, and may output an answer for recommending a movie reservation to the identified movie application.
  • the electronic device 100 may include a memory 110 and a processor 120.
  • the memory 110 may store instructions or data related to at least one other component of the electronic device 100.
  • the memory 110 may be implemented as a nonvolatile memory, a volatile memory, a flash-memory, a hard disk drive (HDD), or a solid state drive (SSD).
  • the memory 110 is accessed by the processor 120, and may read / write / modify / delete / update data, etc. by the processor 120.
  • the term memory refers to a memory 110, a ROM (not shown), a RAM (not shown), or a memory card (not shown) mounted in the electronic device 100 (eg, micro SD). Card, memory stick).
  • the memory 110 may store programs and data for configuring various screens to be displayed on the display area of the display unit 150.
  • the memory 110 may store a dialogue system that provides a response to a user input (especially a user's voice).
  • the dialogue system includes an automatic speech recognition unit (ASR) 410, a natural language understanding unit (NLU) 420, and a dialogue manager (DM). 430, a natural language generator (NLG) 440, a text-to-speech (TTS) 450, and a knowledge database 460.
  • ASR automatic speech recognition unit
  • NLU natural language understanding unit
  • DM dialogue manager
  • NLG natural language generator
  • TTS text-to-speech
  • the automatic voice recognition unit 410 may perform voice recognition on a user voice input through a microphone or the like.
  • the natural language understanding unit 420 may determine the intent of the user's voice based on the speech recognition result.
  • the conversation manager 430 may obtain information about a response to the user's voice based on the natural language understanding result and the data stored in the knowledge base 460. For example, the conversation manager 430 may obtain information for generating a response. As described above, the obtained information may be obtained from the intent and knowledge of the user's voice identified through the natural language understanding unit 420. It may be determined based on the data stored in the base 460.
  • the natural language generator 440 may obtain the natural language as a response to the user's voice based on the information obtained through the conversation manager 430.
  • the TTS 450 may convert the obtained natural language into a voice, thereby enabling the conversation system to provide a response to the user's voice as a voice, thereby allowing the user to communicate with the electronic device 100. .
  • the natural language generator 440 inputs the information obtained through the conversation manager 430 and the knowledge base 460 as an input value of the artificial intelligence model, as a response to the user's voice. Natural language can be obtained.
  • Knowledge base 460 may store data for personalized responses. In this case, the data stored in the knowledge base 460 may vary. According to an embodiment, the knowledge base 460 may store at least one of a type of an application used by the electronic device 100, content information related to the application, and a function used through the application. As another example, the knowledge base 460 may store key information of text included in an application. As another example, when a user interaction for performing a function on an application being used is detected, the knowledge base 460 may store information about the performed function and the used user interaction. As another example, the knowledge base 460 may store category information about a running application and knowledge information about a running application.
  • the knowledge base 460 may store information related to continuous use of an application, store information related to operation of an application, or use information about a specific application when using content of the same type when using a specific application. And store information by matching information about a specific type of content.
  • the information on the application may be at least one of a type of the application, content information related to the running application, and a function (payment function, search function, advance reservation function, etc.) used through the application.
  • the memory 110 may also store an artificial intelligence agent for operating the conversation system.
  • the electronic device 100 may use an artificial intelligence agent to generate natural language in response to a user voice.
  • the artificial intelligence agent is a dedicated program for providing an AI (Artificial Intelligence) based service (for example, a voice recognition service, a secretary service, a translation service, a search service, etc.), and an existing general purpose processor (for example, CPU) or a separate AI dedicated processor (eg, GPU, etc.).
  • AI Artificial Intelligence
  • the artificial intelligence agent may operate.
  • the AI agent may obtain a response by inputting the user question into the learned AI learning model.
  • the AI agent may operate when a user voice (particularly, a trigger voice for executing an AI function) is input or a predetermined button (for example, a button for executing an AI assistant function) is selected. .
  • the AI agent may be in a previously executed state before a user voice is input or a preset button is selected. In this case, after the user voice is input or a predetermined button is input, the artificial intelligence agent of the electronic device 100 may obtain an answer to the user question.
  • the AI agent may be in a standby state before a user voice is input or a preset button is selected.
  • the standby state is a state in which a predefined user input is received to control the start of the operation of the artificial intelligence agent.
  • the electronic device 100 may operate the AI agent and acquire natural language in response to the user voice.
  • the memory 110 may store an AI model trained to generate (or obtain) an answer to a user question.
  • the artificial intelligence model learned in the present disclosure may be constructed in consideration of application fields of the recognition model or computer performance of the device.
  • the artificial intelligence model may be trained to obtain natural language using information obtained from the conversation manager 430 and the knowledge database 460 as input data.
  • the learned AI model may be, for example, a model based on a neural network.
  • the AI model can be designed to simulate a human brain structure on a computer and can include a plurality of weighted network nodes that simulate neurons in a human neural network.
  • the plurality of network nodes may form a connection relationship so that neurons simulate the synaptic activity of neurons that send and receive signals through synapses.
  • the document summary model may include, for example, a neural network model or a deep learning model developed from the neural network model.
  • a plurality of network nodes may be located at different depths (or layers) and exchange data according to a convolutional connection relationship.
  • Examples of the learned AI model may include, but are not limited to, a Deep Neural Network (DNN), a Recurrent Neural Network (RNN), and a Bidirectional Recurrent Deep Neural Network (BRDNN).
  • DNN Deep Neural Network
  • RNN Recurrent Neural Network
  • BBDNN Bidirectional Recurrent Deep Neural Network
  • the AI model is described as being stored in the electronic device 100.
  • the AI model may be stored in another electronic device.
  • the artificial intelligence model may be stored on at least one external server.
  • the electronic device 100 receives a user voice and transmits it to an external server storing the artificial intelligence model, and inputs the user voice received from the electronic device 100 as an input value to output the result. Of course it can.
  • the processor 120 may be electrically connected to the memory 110 to control overall operations and functions of the electronic device 100.
  • the processor 120 may execute an application stored in the memory 110.
  • the processor 120 may obtain and store at least one of a type of the application being executed, content information related to the application being executed, and a function used by the application in the memory 110. have.
  • the processor 120 acquires at least one of a type of the application being executed, content information related to the application being executed, and a function used through the application and the knowledge base 460.
  • the processor 120 uses the type of the running application stored in the knowledge base 460, content information related to the running application, and the application. The user may output an answer to a user question determined based on at least one of the functions.
  • the answer output by the processor 120 may be at least one of an answer providing a search result for a user question, an answer for performing an action on the user question, and an answer for performing a function of an application for the user question.
  • the processor 120 may recommend an application for playing the searched content based on information related to the application.
  • the processor 120 may obtain an answer to the user question based on at least one of the stored domain information and the type of the executed application, content information related to the executed application, and a function used through the application.
  • the processor 120 may transmit the user question to an external server, and receive a candidate to answer the user question input from the external server.
  • the processor 120 may output an answer to a user question based on the received answer candidate and the information stored in the knowledge base 460.
  • the processor 120 calculates the similarity between the received answer candidate and the data stored in the knowledge base 460 through an artificial intelligence model, and has the highest similarity with the data of the knowledge base 460 among the received answer candidates. Answer candidates can be output.
  • the user question in the present disclosure is described as a case of a user voice, but is not limited thereto. That is, the user question may be input in the form of text.
  • the processor 130 may be composed of one or a plurality of processors. At this time, one or a plurality of processors are general purpose processors such as CPU, AP, GPU. It may be a graphics dedicated processor such as a VPU or the like, or an AI dedicated processor such as an NPU.
  • the one or more processors control to process the input data according to a predefined operating rule or artificial intelligence model stored in the memory 110.
  • the predefined action rule or artificial intelligence model is characterized by being made through learning.
  • to be made through learning means that a predetermined operating rule or artificial intelligence model of a desired characteristic is created by applying a learning algorithm to a plurality of learning data.
  • learning may be made in the device itself in which the artificial intelligence according to the present disclosure is performed, or may be made through a separate server / system.
  • the artificial intelligence model may consist of a plurality of neural network layers. Each layer has a plurality of weight values, and the layer is calculated through the calculation result of the previous layer and the calculation of the plurality of weights.
  • Examples of neural networks include Convolutional Neural Network (CNN), Deep Neural Network (DNN), Recurrent Neural Network (RNN), Restricted Boltzmann Machine (RBM), Deep Belief Network (DBN), Bidirectional Recurrent Deep Neural Network (BRDNN), and deep There are Deep Q-Networks, and the neural network in the present disclosure is not limited to the above examples except where specified.
  • the learning algorithm is a method of training a predetermined target device (eg, a robot) using a plurality of learning data so that the predetermined target device can make a decision or make a prediction by itself.
  • Examples of learning algorithms include supervised learning, unsupervised learning, semi-supervised learning or reinforcement learning, where the learning algorithm in the present disclosure is specified. It is not limited to the above-described example except for.
  • FIG. 3 is a block diagram illustrating in detail an electronic device according to an embodiment of the present disclosure.
  • the electronic device 100 may further include a communication unit 130, an input unit 140, a display 150, and an audio output unit 160 in addition to the memory 110 and the processor 120.
  • a communication unit 130 may further include a communication unit 130, an input unit 140, a display 150, and an audio output unit 160 in addition to the memory 110 and the processor 120.
  • the present invention is not limited to the above-described configuration, and some configurations may be added or omitted as necessary.
  • the communication unit 130 is a component for performing communication with an external device.
  • the electronic device 100 may receive a plurality of answer candidates for a user's voice from an external server through the communication unit 130.
  • the communication unit 130 may be connected to the external device to communicate through a third device (for example, a repeater, hub, access point, server or gateway, etc.).
  • the wireless communication may be, for example, LTE, LTE Advance (LTE-A), code division multiple access (CDMA), wideband CDMA (WCDMA), universal mobile telecommunications system (UMTS), wireless broadband (WiBro), or global network (GSM).
  • LTE Long Term Evolution
  • LTE-A LTE Advance
  • CDMA code division multiple access
  • WCDMA wideband CDMA
  • UMTS universal mobile telecommunications system
  • WiBro wireless broadband
  • GSM global network
  • the wireless communication may include, for example, wireless fidelity (WiFi), Bluetooth, Bluetooth low power (BLE), Zigbee, near field communication (NFC), magnetic secure transmission, and radio.
  • Wired communication may include, for example, at least one of a universal serial bus (USB), a high definition multimedia interface (HDMI), a recommended standard232 (RS-232), power line communication, or a plain old telephone service (POTS).
  • the network in which wireless or wired communication is performed may include at least one of a telecommunication network, for example, a computer network (eg, LAN or WAN), the Internet, or a telephone network.
  • the input unit 140 is a component for receiving a user command.
  • the input unit 140 may include a camera 141, a microphone 142, and a touch panel 143.
  • the camera 141 is a component for acquiring image data around the electronic device 100.
  • the camera 141 may capture a still image and a video.
  • the camera 141 may include one or more image sensors (eg, a front sensor or a rear sensor), a lens, an image signal processor (ISP), or a flash (eg, an LED or an xenon lamp, etc.).
  • the microphone 142 is a component for acquiring sound around the electronic device 100.
  • the microphone 142 may receive electrical sound signals to generate electrical voice information.
  • the microphone 142 may use various noise removing algorithms for removing noise generated in the process of receiving an external sound signal.
  • Image information or voice information input through the camera 141 or the microphone 142 may be input as an input value of an artificial intelligence model.
  • the touch panel 143 is a component that can receive various user inputs.
  • the touch panel 143 may receive data by user manipulation.
  • the touch panel 143 may be configured in combination with a display which will be described later.
  • the input unit 140 may have various configurations for receiving various data in addition to the camera 141, the microphone 142, and the touch panel 143 described above.
  • the display 150 is a component for outputting various images.
  • the display 150 for providing various images may be implemented as various types of display panels.
  • display panels can include Liquid Crystal Display (LCD), Organic Light Emitting Diodes (OLED), Active-Matrix Organic Light-Emitting Diode (AM-OLED), Liquid Crystal on Silicon (LcoS), or Digital Light Processing (DLP). It can be implemented in various display technologies such as.
  • the display 150 may be coupled to at least one of a front region, a side region, and a rear region of the electronic device 100 in the form of a flexible display.
  • the audio output unit 160 is configured to output not only various audio data on which various processing tasks such as decoding, amplification, and noise filtering are performed, but also various notification sounds or voice messages.
  • the audio processor is a component that performs processing on audio data.
  • the audio processor may perform various processing such as decoding, amplification, noise filtering, and the like on the audio data.
  • the audio data processed by the audio processor 150 may be output to the audio output unit 160.
  • the audio output unit may be implemented as a speaker, but this is only an example, and may be implemented as an output terminal capable of outputting audio data.
  • the processor 120 controls the overall operation of the electronic device 100.
  • the processor 120 may include a RAM 121, a ROM 122, a main CPU 123, a graphics processor 124, first to n interface 125-1 to 125-n, and a bus 126.
  • the RAM 121, the ROM 122, the main CPU 123, the graphics processor 124, and the first through n interfaces 125-1 through 125-n may be connected to each other through the bus 126. .
  • the ROM 122 stores a command set for system booting.
  • the main CPU 123 copies the O / S stored in the memory to the RAM 121 according to the command stored in the ROM 122, and executes the O / S to boot the system. Let's do it.
  • the main CPU 123 copies various application programs stored in the memory to the RAM 121 and executes the application programs copied to the RAM 121 to perform various operations.
  • the main CPU 123 accesses the first memory 110 or the second memory 120 to perform booting using an operating system stored in the first memory 110 or the second memory 120. do.
  • the main CPU 123 performs various operations using various programs, contents, data, etc. stored in the first memory 110 or the second memory 120.
  • the first to n interfaces 125-1 to 125-n are connected to the various components described above.
  • One of the interfaces may be a network interface connected to an external device through a network.
  • 5A and 5B are exemplary diagrams for describing data stored in a knowledge base according to an embodiment of the present disclosure.
  • the electronic device 100 when a preset user voice is input, transmits data related to an application or web content that is executed at a time when a preset user command is input to the knowledge base 460. Can be stored. For example, when a user command such as “bixby! Remember!” 510 is input, the electronic device 100 may store data related to an application or web content that is running at a point in time when a preset user voice is input. 460). In this case, the time when the preset user voice is input may mean a preset time before and after the time when the user voice is input.
  • the electronic device 100 may execute an application or web running at a time when a preset user command is input.
  • Data related to the content may be stored in the knowledge base 460.
  • a method of pushing the button 520 provided in the electronic device 100 may vary.
  • the electronic device 100 may be pushed by pushing the button 520 for a preset time (for example, 2 seconds) and pushing the button 520 for a preset number of times (for example, 3 times). ) May store data related to an application or web content running at the time when the corresponding motion is detected in the knowledge base 460.
  • the present invention is not limited to the embodiments of FIGS. 5A and 5B, and operations for storing data in the knowledge base 460 may vary.
  • the electronic device 100 may store data related to the corresponding application or web content in the knowledge base 460.
  • the specific condition may be, for example, a condition of using an application or web content a predetermined number of times.
  • the specific condition may be a condition of using an application or web content for a predetermined time.
  • the specific condition may be a use condition of all applications or web content detected by the electronic device 100.
  • the specific condition may be a condition related to a touch input for bookmarking specific web content.
  • FIG. 6 is an exemplary diagram for describing a method of classifying domains (or categories) of data stored in a knowledge base according to an embodiment of the present disclosure.
  • the electronic device 100 may determine a domain (or category) of the determined data.
  • the electronic device 100 may determine a domain based on the content of the running application or the web content.
  • the electronic device 100 may determine a domain based on the content of the executed news article.
  • the domain determined at this time may be, for example, an IT domain.
  • the electronic device 100 may determine a domain based on the game application to be executed.
  • the domain determined at this time may be, for example, a sports domain.
  • the electronic device 100 may determine a domain based on the payment details. For example, if there are many restaurants that go frequently in the payment details, the determined domain may be a restaurant domain.
  • the domain may be stored in the knowledge base 460.
  • the electronic device 100 may add a new domain corresponding to data related to an application or web content.
  • the added domain may be one of domains stored in an external server.
  • the domain can be added or deleted by user command.
  • the electronic device 100 may delete the corresponding domain. That is, the electronic device 100 may save the memory by deleting the unused domain.
  • the electronic device 100 may edit domains in the order in which data is stored. That is, the electronic device 100 may determine the priority of domains according to the size or number of data stored in each domain. For example, as illustrated in FIG. 6, when the size or number of data stored in the domain is in the order of a restaurant domain, a movie domain, an IT domain, and a sports domain, the electronic device 100 may serve as a restaurant domain, a movie domain, an IT domain, or a sport. Priority can be given in order of domain. When the user's voice is input, the electronic device 100 may output an answer for the user's voice according to the priority.
  • FIG. 7 is an exemplary view for explaining a domain management method according to an embodiment of the present disclosure.
  • the electronic device 100 may store various data in the knowledge base 460 according to various embodiments of FIGS. 5A through 6. In this case, when the data stored in the knowledge base 460 increases, the electronic device 100 may remove some of the stored data to secure a memory space. For example, the electronic device 100 may first delete the stored data. Alternatively, the electronic device 100 may first delete data having a low number of uses.
  • the electronic device 100 may not only remove some of the data but also transmit the data to an external server. That is, the electronic device 100 may secure the memory space of the electronic device 100 by transmitting old data (or unused data) to an external server such as a personal cloud server.
  • FIG. 8 is an exemplary diagram for describing a method of obtaining data stored in a knowledge base according to an embodiment of the present disclosure.
  • the electronic device 100 may obtain the name of the application to be executed, the content name to be executed in the application, and the function to be executed in the application to be stored in the knowledge base 460.
  • the electronic device 100 may textify and tokenize data identified in the application or the web content. Tokenization refers to the task of classifying text into words. When the tokenization is completed, the electronic device 100 performs Part Of Speech Tagging (POS). POS refers to the task of identifying and tagging parts of speech in text. The electronic device 100 may parse the text and remove the preset stop word. After removing the negative word, the electronic device 100 may determine the headword. Heading determination refers to the process of grouping the refraction forms of a word so that it can be analyzed as a single item identified in the auxiliary theorem or dictionary form of the word. Through the above-described process, the electronic device 100 may obtain an application name, a content name, and a function name and store it in the knowledge base 460.
  • POS Part Of Speech Tagging
  • the electronic device 100 may obtain an original sentence (eg, Samsung research has AI Center.) Of the news.
  • the electronic device may separate raw sentences through tokenization, POS, and the like.
  • the original sentence may be classified as "(Samsung research) -noun phrase, (has) -verb, (AI Center) -noun phrase".
  • the electronic device 100 may generate a tuple from the separated sentence, generalize it, and store the tuple structure in the knowledge base 460.
  • the generated tuple is "Samsung research, AI Center, have”
  • the electronic device 100 is "Samsung research, AI Center, have”, “Samsung research, AI Center, contain”, “Samsung research, Data such as AI Center, include "may be stored in the knowledge base 460.
  • data stored in the knowledge base 460 may be generated in a specific situation.
  • the data stored in the knowledge base 460 may be stored when the user command is not input to the electronic device, when the electronic device 100 is being charged, or at dawn (for example, between 0 am and 6 am). It may be generated when any one of the conditions, such as). That is, the data stored in the knowledge base 460 may be generated in a situation where the user does not use the electronic device 100 to efficiently use the electronic device 100.
  • the electronic device 100 may determine the intention of the user question.
  • the electronic device 100 may determine the intention of the user's voice through the natural language understanding unit 420.
  • the electronic device 100 may determine a domain suitable for the intention of the user voice based on the intention of the user voice and the domain stored in the knowledge base 460.
  • the electronic device 100 may determine the domains most similar to the user intentions by determining similarities between the identified user intentions and the plurality of domains stored in the knowledge base 460.
  • the electronic device 100 may output a result value for the user intention based on the data included in the determined domain and the intention for the user voice.
  • the electronic device 100 may determine similarity between the identified user intention and the plurality of data included in the determined domain, and may determine the data most similar to the user intention.
  • the electronic device 100 may output an answer to a user question based on the determined data.
  • 9 through 11B are exemplary diagrams for describing various embodiments according to the present disclosure.
  • FIG. 9 is an exemplary diagram for describing a method of outputting a question about a user's voice based on an application operation by an electronic device according to an embodiment of the present disclosure.
  • the electronic device 100 may store data obtained based on the use of various applications or web contents in the knowledge base 460. That is, the electronic device 100 may determine data stored in the domain and the knowledge base 460 based on the application or the web content. For example, when the electronic device 100 executes a news article of a web browser, the electronic device 100 analyzes the news article to determine the domain as the IT domain, and selects "Samsung Electronics, OO Won, Operating Profit". The same data may be obtained and stored in the knowledge base 460. As another example, when the electronic device 100 executes the movie booking application, the electronic device 100 determines the domain as the movie domain based on the movie application, and the data such as "movie name, movie application name, advance reservation". Can be stored.
  • the electronic device 100 may store data such as "a movie theater, a movie theater location, a movie theater name” based on a movie application.
  • the electronic device 100 may store data such as "movie ticket, quantity of movie tickets” based on the movie application.
  • the electronic device 100 may analyze the payment details and store "restaurant name, price, function (payment, cancellation, etc.)".
  • the electronic device 100 may output an appropriate answer based on the user voice. For example, the electronic device 100 confirms that the user does not have a schedule after 2 pm on the basis of the information obtained from the calendar application, and based on the information stored in the knowledge base 460, the user mainly uses the OOO application. After confirming that the movie reservation is made, it is possible to print out an answer such as "2:30 pm at the OOO cinema.
  • the electronic device 100 may obtain information related to a seat preferred by the user, a quantity of movie tickets to be reserved, and a location of a movie theater through a movie application, and reserve a movie theater and a seat of a proper location to the user.
  • 10A and 10B are exemplary diagrams for describing a method of recommending a user's application operation according to another exemplary embodiment of the present disclosure.
  • the electronic device 100 reserves a user command (for example, "bixby memorizes") to store a series of operations for booking a movie through a movie application and sharing the movie reservation content to another user. ! ”) Can be entered.
  • the electronic device 100 may capture a reservation screen after booking a movie through a movie application, and store a series of operations shared to other users through the chat application in the knowledge base 460. Thereafter, as illustrated in FIG. 10B, when the booking screen is executed through the movie application, the electronic device 100 may recommend sharing the booking screen to other users through the chat application.
  • the electronic device 100 may not only store data related to one application or web content in the knowledge base 460, but also store one data related to a plurality of applications or web content in the knowledge base 460. Can be stored. That is, the electronic device 100 may not only store data included in the application or the web content itself, but may also store a plurality of user commands (for example, movie reservation, photo sharing, etc.) input to the application or the web content. If some of the plurality of user commands stored in 460 are stored, the user command may be recommended.
  • a plurality of user commands for example, movie reservation, photo sharing, etc.
  • 11A and 11B are exemplary views for describing various embodiments according to the present disclosure.
  • the electronic device 100 may search for data related to OOO content in the knowledge base 460. At this time, when the user watches up to 6 episodes of the OOO content and the record viewed through the specific application is stored in the knowledge base 460, the electronic device 100 viewed up to 6 episodes. Do you want to play it? "
  • the electronic device 100 when the user command "show the daughter picture” is input, the electronic device 100 outputs a response such as "I have a picture taken yesterday. Send to the wife through the OO application?" In other words, the electronic device 100 may not only answer the user's question (daughter photo search) but also recommend additional actions not instructed by the user, in this case, the knowledge base 460 may include the user's daughter. There may be data associated with a series of actions that a picture is retrieved and sent to the wipe through an OO application.
  • the intention of the user corresponding to the user voice and the generation of the natural language corresponding to the result data of the user intention may be performed by the electronic device 100, but is not limited thereto. That is, as shown in FIG. 12, it is a matter of course that the intention of the user corresponding to the user voice and the generation of the natural language corresponding to the result data of the user intention may be performed by the server 200. That is, when a user voice is input, the electronic device 100 transmits the user voice to the server 200, and the server 200 identifies the user's intention corresponding to the received user voice and results data on the user's intention.
  • the natural language corresponding to the control unit may be generated and transmitted to the electronic device 100.
  • FIG. 13 is a system diagram for describing an operation of an electronic device and a server according to an exemplary embodiment of the present disclosure.
  • the electronic device 100 receives a plurality of answer candidates corresponding to the user's voice from the server 200, and responds to the user's voice based on the plurality of answer candidates and the data stored in the knowledge base 460. You can of course output.
  • the electronic device 100 may receive a user voice in operation S1410.
  • the electronic device 100 may perform voice recognition on the input user voice (S1420).
  • the voice recognition may be performed through the automatic voice recognition unit 410.
  • the electronic device 100 may determine the intention of the user's voice based on the voice recognition result in operation S1430.
  • the electronic device 100 may transmit the determined intention of the user's voice to the external server 200 (S1440).
  • the server 200 may obtain a plurality of answer candidates for the intention of the user's voice based on the intention of the user's voice (S1450). In this case, the server 200 may obtain a plurality of answer candidates based on a database included in the server 200. In detail, the server 200 may input the intention of the user's voice and a plurality of data included in the database into the artificial intelligence model to obtain data similar to the intention of the user's voice as the answer candidate. For example, if the intention of the user's voice is a movie recommendation, the server 200 may obtain an answer candidate such as an answer candidate related to a movie ranking currently being released and an answer candidate related to a movie ranking by genre.
  • the server 200 may transmit the obtained plurality of answer candidates to the electronic device 100 (S1460).
  • the electronic device 100 may determine a final answer based on the similarity between the data stored in the knowledge base 460 and the received plurality of answer candidates in operation S1470. Specifically, the electronic device 100 inputs the data stored in the knowledge base 460 and the received plurality of answer candidate data to the artificial intelligence model to determine a domain most similar to the intention of the user's voice, and is included in the determined domain. Of the data, data similar to the intention of the user's voice may be determined as the final answer.
  • the electronic device 100 when the electronic device 100 is an answer candidate related to a movie ranking currently being released from a server and an answer candidate related to a movie ranking by genre, the electronic device 100 selects a movie domain among a plurality of domains from the received response candidate. Determine and recommend a movie similar to the intention of the user question, among the data contained in the movie domain. For example, when the movie domain of the knowledge base 460 includes information for reserving a movie through a movie application and information related to an action movie, the electronic device 100 may reserve an action movie among the currently open movies. You can print out the answer. Alternatively, when there is no action movie among the currently open movies, the electronic device 100 may output an answer for booking the movie with the highest number of tickets currently being opened.
  • the electronic device 100 may output an answer recommending to download or watch the movie with the highest number of views in the action movie genre. That is, the electronic device 100 may recommend an answer to a user question according to the similarity between the data included in the determined domain and the plurality of answer candidates.
  • the electronic device 100 may output a natural language response to the user's voice using the natural language generator 440 and the TTS 450 (S1480).
  • the electronic device 100 performs voice recognition in the embodiment of FIG. 13, the present invention is not limited thereto.
  • the electronic device 100 may include only an artificial intelligence model for calculating a similarity between the knowledge base 460 and the plurality of answer candidates and the data of the knowledge base 460.
  • the electronic device 100 transmits a user's voice to the server 200 so that the server 200 processes voice recognition, conversation management, natural language generation, and the like.
  • the candidate can be determined.
  • FIG. 14 is a system diagram for describing an operation of an electronic device and a server according to another exemplary embodiment of the present disclosure.
  • the server 200 may include both a speech recognition system and a knowledge base 460.
  • the server 200 may be configured as a general external server, but may be configured as a personal cloud server.
  • the electronic device 100 may receive a user voice in operation S1510.
  • the electronic device 100 may transmit the received user voice to the server 200 in operation S1520.
  • the server 200 may perform voice recognition on the received user voice (S1530).
  • the speech recognition may be performed through the automatic speech recognition unit.
  • the server 200 may determine the intention of the user's voice based on the speech recognition result (S1540), and obtain a plurality of answer candidates for the intention of the user's voice based on the intention of the user's voice (S1550). In detail, the server 200 may obtain a plurality of answer candidates based on a database included in the server 200. For example, the server 200 may input the intention of the user's voice and a plurality of data included in the database into the artificial intelligence model to obtain data similar to the intention of the user's voice as the answer candidate.
  • the server 200 may determine a final answer based on the similarity between the data stored in the knowledge base and the plurality of answer candidates received (S1560).
  • the server 200 may input data stored in the knowledge base and received plurality of answer candidate data into an artificial intelligence model to determine data similar to the intention of the user's voice as the final answer.
  • the server 200 may obtain a natural language response to the user's voice using the natural language generator and the TTS (S1570), and transmit the obtained natural language response to the electronic device 100 (S1580).
  • the electronic device 100 may output the received natural language response in operation S1590.
  • the user voice is input and the natural language response to the input user voice is output, but the present invention is not limited thereto. That is, the user's question inputted to the electronic device 100 and the outputted answer may be in the form of text instead of voice.
  • 15 is a flowchart illustrating a control method of an electronic device according to an embodiment of the present disclosure.
  • the electronic device 100 may execute an application in operation S1610.
  • the electronic device 100 may execute an application corresponding to the user command.
  • the electronic device 100 may execute not only an application but also a web browser and web content.
  • the electronic device 100 may obtain information about the running application and store it in the memory in operation S1620.
  • the electronic device 100 may store information about an application being executed in the knowledge base 460.
  • the user command may be a voice command (for example, remember Bixby! Or a command for pushing a button provided in the electronic device 100 in a specific method.
  • the information on the running application may be information related to a running application name, a content name played by the application, and a function name executed by the application.
  • the information about the application may be information related to the content (for example, news article) displayed by the application.
  • the information related to the application may be information related to the operation of the application.
  • the electronic device 100 may output an answer to the user question determined based on information about the stored application.
  • the electronic device 100 may calculate a similarity between the user question and the data stored in the knowledge base 460 using an artificial intelligence model, and output an answer related to the data having the highest similarity as an answer to the user question. have.
  • the electronic device 100 may transmit a user voice to the server 200, and the server 200 may transmit a plurality of answer candidates for the user voice to the electronic device 100.
  • the electronic device 100 may calculate the similarity between the plurality of answer candidates and the data stored in the knowledge base 460 using an artificial intelligence model, and output the answer candidate with the highest similarity as the answer to the user question. have.
  • the term “part” or “module” as used in the present disclosure includes a unit composed of hardware, software, or firmware, and for example, may be used interchangeably with terms such as logic, logic block, component, or circuit. Can be.
  • the "unit” or “module” may be an integrally formed part or a minimum unit or part of performing one or more functions.
  • the module may be configured as an application-specific integrated circuit (ASIC).
  • ASIC application-specific integrated circuit
  • Various embodiments of the present disclosure may be implemented in software that includes instructions stored in a machine-readable storage media.
  • the device may include an electronic device according to the disclosed embodiments (eg, the electronic device 100.)
  • the processor When the command is executed by the processor, the processor directly, Alternatively, other components may be used to perform functions corresponding to the instructions under the control of the processor, and the instructions may include code generated or executed by a compiler or an interpreter. It may be provided in the form of a non-transitory storage medium, where 'non-transitory' means that the storage medium does not contain a signal. Only it means that the material (tangible) data is not case that the permanently or temporarily stored in the storage medium.
  • a method may be provided included in a computer program product.
  • the computer program product may be traded between the seller and the buyer as a product.
  • the computer program product may be distributed online in the form of a device-readable storage medium (eg compact disc read only memory (CD-ROM)) or through an application store (eg Play StoreTM).
  • a device-readable storage medium eg compact disc read only memory (CD-ROM)
  • an application store eg Play StoreTM
  • at least a portion of the computer program product may be stored at least temporarily or temporarily created in a storage medium such as a server of a manufacturer, a server of an application store, or a relay server.
  • Each component eg, a module or a program
  • some components eg, modules or programs
  • the operations performed by a module, program, or other component may be executed sequentially, in parallel, repeatedly, or heuristically, or at least some of the operations may be executed in a different order, omitted, or other operations may be added. Can be.

Abstract

An electronic device and a control method therefor are disclosed. A control method for an electronic device, according to the present disclosure, comprises the steps of: acquiring information about an application being executed and storing same in a memory, when a user command is inputted during execution of the application; and inputting a user question related to the application in a learned artificial intelligence model so as to output an answer to the acquired user question, when the user question related to the application is inputted, wherein the answer to the user question can be determined on the basis of the information about the application being executed.

Description

전자 장치 및 그의 제어 방법Electronic device and its control method
본 개시는 전자 장치 및 그의 제어 방법에 관한 것으로, 보다 상세하게는 개인화된 데이터 베이스를 바탕으로 사용자 질문에 대한 최적화된 답변을 제공할 수 있는 전자 장치 및 그의 제어 방법에 관한 것이다.The present disclosure relates to an electronic device and a control method thereof, and more particularly, to an electronic device and a control method thereof capable of providing an optimized answer to a user question based on a personalized database.
인공 지능(Artificial Intelligence, AI) 시스템은 인간 수준의 지능을 구현하는 컴퓨터 시스템이며, 기존 규칙 기반 스마트 시스템과 달리 기계가 스스로 학습하고 판단하며 똑똑해지는 시스템이다. 인공 지능 시스템은 사용할수록 인식률이 향상되고 사용자 취향을 보다 정확하게 이해할 수 있게 되어, 기존 규칙 기반 스마트 시스템은 점차 딥러닝 기반 인공 지능 시스템으로 대체되고 있다.Artificial Intelligence (AI) system is a computer system that implements human-level intelligence, and unlike conventional rule-based smart systems, it is a system that machines learn, judge, and become smart. As the artificial intelligence system is used, the recognition rate is improved and the user taste can be understood more accurately, and the existing rule-based smart system is gradually replaced by the deep learning-based artificial intelligence system.
인공 지능 기술은 기계학습(딥러닝) 및 기계 학습을 활용한 요소 기술들로 구성된다.Artificial intelligence technology consists of elementary technologies that utilize machine learning (deep learning) and machine learning.
기계 학습은 입력 데이터들의 특징을 스스로 분류/학습하는 알고리즘 기술이며, 요소 기술은 딥러닝 등의 기계학습 알고리즘을 활용하는 기술로서, 언어적 이해, 시각적 이해, 추론/예측, 지식 표현, 동작 제어 등의 기술 분야로 구성된다.Machine learning is an algorithm technology that classifies / learns the characteristics of input data by itself, and element technology is a technology that uses machine learning algorithms such as deep learning, and it includes linguistic understanding, visual understanding, reasoning / prediction, knowledge expression, motion control, etc. It consists of technical fields.
인공 지능 기술이 응용되는 다양한 분야는 다음과 같다. 언어적 이해는 인간의 언어/문자를 인식하고 응용/처리하는 기술로서, 자연어 처리, 기계 번역, 대화 시스템, 질의 응답, 음성 인식/합성 등을 포함한다. 시각적 이해는 사물을 인간의 시각처럼 인식하여 처리하는 기술로서, 객체 인식, 객체 추적, 영상 검색, 사람 인식, 장면 이해, 공간 이해, 영상 개선 등을 포함한다. 추론 예측은 정보를 판단하여 논리적으로 추론하고 예측하는 기술로서, 지식/확률 기반 추론, 최적화 예측, 선호 기반 계획, 추천 등을 포함한다. 지식 표현은 인간의 경험 정보를 지식데이터로 자동화 처리하는 기술로서, 지식 구축(데이터 생성/분류), 지식 관리(데이터 활용) 등을 포함한다. 동작 제어는 차량의 자율 주행, 로봇의 움직임을 제어하는 기술로서, 움직임 제어(항법, 충돌, 주행), 조작 제어(행동 제어) 등을 포함한다.The various fields in which artificial intelligence technology is applied are as follows. Linguistic understanding is a technology for recognizing and applying / processing human language / characters, including natural language processing, machine translation, dialogue system, question answering, speech recognition / synthesis, and the like. Visual understanding is a technology that recognizes and processes objects as human vision, and includes object recognition, object tracking, image retrieval, human recognition, scene understanding, spatial understanding, and image enhancement. Inference prediction is a technique of judging information, logically inferring, and predicting information, and includes knowledge / probability based inference, optimization prediction, preference based planning, and recommendation. Knowledge expression is a technology that automatically processes human experience information into knowledge data, and includes knowledge construction (data generation / classification) and knowledge management (data utilization). Motion control is a technique for controlling autonomous driving of a vehicle and movement of a robot, and includes motion control (navigation, collision, driving), operation control (action control), and the like.
한편, 인공 지능 기술은 일반적으로 외부 서버에서 동작하는 경우가 많다. 그러나 인공 지능 기술에 사용되는 데이터가 개인정보와 관련된 데이터일 경우, 보안과 관련된 문제가 발생할 수 있다.Artificial intelligence technologies, on the other hand, typically operate on an external server. However, if the data used in artificial intelligence technology is data related to personal information, problems related to security may occur.
본 개시는 상술한 문제점을 해결하기 위해 안출된 것으로, 개인화된 데이터 베이스를 바탕으로 사용자 질문에 대한 최적화된 답변을 제공할 수 있는 전자 장치 및 그의 제어 방법에 관한 것이다.The present disclosure has been made to solve the above-described problem, and relates to an electronic device and a control method thereof capable of providing an optimized answer to a user question based on a personalized database.
상기 목적을 달성하기 위한 본 개시의 일 실시예에 따른 전자 장치의 제어 방법은, 어플리케이션이 실행되는 동안 사용자 명령이 입력되면, 상기 어플리케이션의 종류, 상기 실행중인 어플리케이션과 관련된 컨텐츠 정보 및 상기 어플리케이션을 통해 사용된 기능 중 적어도 하나를 획득하여 메모리에 저장하는 단계 및 상기 어플리케이션과 관련된 사용자 질문이 입력되면, 학습된 인공 지능 모델에 상기 어플리케이션과 관련된 사용자 질문을 입력하여 획득된 상기 사용자 질문에 대한 답변을 출력하는 단계를 포함하고, 상기 사용자 질문에 대한 답변은 상기 어플리케이션의 종류, 상기 실행중인 어플리케이션과 관련된 컨텐츠 정보 및 상기 어플리케이션을 통해 사용된 기능 중 적어도 하나를 바탕으로 결정될 수 있다.According to an embodiment of the present disclosure, a method of controlling an electronic device may include: when a user command is input while an application is running, through the type of the application, content information related to the running application, and the application; Acquiring and storing at least one of the used functions in a memory and inputting a user question related to the application to a trained artificial intelligence model and outputting an answer to the obtained user question; And answering the user question may be determined based on at least one of a type of the application, content information related to the running application, and a function used through the application.
이때, 상기 저장하는 단계는, 상기 어플리케이션의 종류, 상기 실행중인 어플리케이션과 관련된 컨텐츠 정보 및 상기 어플리케이션을 통해 사용된 기능 중 적어도 하나를 획득하여 상기 데이터 베이스에 저장할 수 있다.The storing may include obtaining and storing at least one of a type of the application, content information related to the running application, and a function used through the application.
이때, 상기 저장하는 단계는, 상기 실행중인 어플리케이션이 텍스트를 포함하는 경우, 상기 텍스트의 핵심 정보를 추출하여 저장하는 단계를 포함할 수 있다.In this case, the storing may include extracting and storing the core information of the text when the running application includes the text.
이때, 상기 저장하는 단계는, 상기 실행 중인 어플리케이션에 대한 기능을 수행하는 사용자 인터랙션이 감지된 경우, 상기 수행된 기능 및 상기 사용자 인터랙션에 대한 정보를 포함하는 히스토리 정보를 저장하는 단계를 포함할 수 있다.In this case, the storing may include storing history information including information on the performed function and the user interaction when a user interaction for performing a function on the running application is detected. .
이때, 상기 출력하는 단계는, 상기 사용자 질문에 대한 검색 결과 제공, 상기 사용자 질문에 대한 액션 수행 및 상기 사용자 질문에 대한 어플리케이션 기능 수행 중 적어도 하나를 출력할 수 있다.The outputting may include outputting at least one of providing a search result for the user question, performing an action on the user question, and performing an application function on the user question.
이때, 상기 출력하는 단계는, 상기 사용자 질문이 컨텐츠 검색과 관련된 질문인 경우, 상기 어플리케이션과 관련된 정보를 바탕으로 상기 검색된 컨텐츠를 재생하기 위한 어플리케이션을 추천하는 단계를 포함할 수 있다.In this case, the outputting may include recommending an application for playing the searched content based on the information related to the application when the user question is a question related to content search.
이때, 상기 출력하는 단계는, 상기 사용자 질문이 입력되면, 상기 사용자 질문을 외부 서버로 전송하는 단계, 상기 외부 서버로부터 상기 사용자 질문에 대한 답변 후보를 수신하는 단계 및 상기 수신한 답변 후보 및 상기 데이터 베이스에 저장된 정보를 바탕으로 상기 사용자 질문에 대한 답변을 출력하는 단계를 포함할 수 있다.At this time, the outputting step, if the user question is input, transmitting the user question to an external server, receiving an answer candidate for the user question from the external server and the received response candidate and the data And outputting an answer to the user question based on the information stored in the base.
이때, 상기 저장하는 단계는, 상기 실행중인 어플리케이션에 대한 도메인 정보 및, 상기 어플리케이션의 종류, 상기 실행중인 어플리케이션과 관련된 컨텐츠 정보 및 상기 어플리케이션을 통해 사용된 기능 중 적어도 하나를 저장하고, 상기 인공지능 모델은, 상기 저장된 도메인 정보 및 상기 어플리케이션의 종류, 상기 실행중인 어플리케이션과 관련된 컨텐츠 정보 및 상기 어플리케이션을 통해 사용된 기능 중 적어도 하나를 바탕으로 상기 사용자 질문에 대한 답변을 획득할 수 있다.The storing may include storing at least one of domain information of the running application, a type of the application, content information related to the running application, and a function used through the application, wherein the artificial intelligence model is stored. May obtain an answer to the user question based on at least one of the stored domain information and the type of the application, content information related to the running application, and a function used through the application.
이때, 상기 사용자 질문은 사용자 음성 또는 텍스트 중 적어도 하나일 수 있다.In this case, the user question may be at least one of user voice or text.
한편, 상술한 목적을 달성하기 위한 본 개시의 또 다른 실시예에 따른 전자장치는, 어플리케이션이 실행되는 동안 사용자 명령이 입력되면, 상기 어플리케이션의 종류, 상기 실행중인 어플리케이션과 관련된 컨텐츠 정보 및 상기 어플리케이션을 통해 사용된 기능 중 적어도 하나를 획득하여 상기 메모리에 저장하고, 상기 어플리케이션과 관련된 사용자 질문이 입력되면, 학습된 인공 지능 모델에 상기 어플리케이션과 관련된 사용자 질문을 입력하여 획득된 상기 사용자 질문에 대한 답변을 출력하고, 상기 사용자 질문에 On the other hand, the electronic device according to another embodiment of the present disclosure for achieving the above object, if a user command is input while the application is running, the type of the application, the content information associated with the running application and the application; Acquire and store at least one of the functions used in the memory, and if a user question related to the application is input, input a user question related to the application to a learned artificial intelligence model to answer the obtained user question. Output and answer the above user questions
이때, 상기 프로세서는, 상기 어플리케이션의 종류, 상기 실행중인 어플리케이션과 관련된 컨텐츠 정보 및 상기 어플리케이션을 통해 사용된 기능 중 적어도 하나를 획득하여 상기 메모리에 저장할 수 있다.In this case, the processor may acquire and store at least one of a type of the application, content information related to the running application, and a function used through the application, in the memory.
이때, 상기 프로세서는, 상기 실행중인 어플리케이션이 텍스트를 포함하는 경우, 상기 텍스트의 핵심 정보를 추출하여 상기 메모리에 저장할 수 있다.In this case, when the running application includes text, the processor may extract key information of the text and store the core information in the memory.
이때, 상기 프로세서는, 상기 실행 중인 어플리케이션에 대한 기능을 수행하는 사용자 인터랙션이 감지된 경우, 상기 수행된 기능 및 상기 사용자 인터랙션에 대한 정보를 포함하는 히스토리 정보를 상기 메모리에 저장할 수 있다.In this case, when a user interaction for performing a function on the running application is detected, the processor may store history information including information about the performed function and the user interaction in the memory.
이때, 상기 프로세서는, 상기 사용자 질문에 대한 검색 결과 제공, 상기 사용자 질문에 대한 액션 수행 및 상기 사용자 질문에 대한 어플리케이션 기능 수행 중 적어도 하나를 출력할 수 있다.In this case, the processor may output at least one of providing a search result for the user question, performing an action on the user question, and performing an application function on the user question.
이때, 상기 프로세서는, 상기 사용자 질문이 컨텐츠 검색과 관련된 질문인 경우, 상기 어플리케이션과 관련된 정보를 바탕으로 상기 검색된 컨텐츠를 재생하기 위한 어플리케이션을 추천할 수 있다.In this case, when the user question is a question related to content search, the processor may recommend an application for playing the searched content based on information related to the application.
이때, 상기 전자 장치는, 통신부를 더 포함하고, 상기 프로세서는, 상기 사용자 질문이 입력되면, 상기 사용자 질문을 상기 통신부를 통해 외부 서버로 전송하고, 상기 외부 서버로부터 상기 사용자 질문에 대한 답변 후보를 상기 통신부를 통해 수신하고, 상기 수신한 답변 후보 및 상기 메모리에 저장된 정보를 바탕으로 상기 사용자 질문에 대한 답변을 출력할 수 있다.In this case, the electronic device further includes a communication unit, and when the user question is input, the processor transmits the user question to an external server through the communication unit, and receives a candidate for answering the user question from the external server. Received through the communication unit, based on the received response candidate and the information stored in the memory may output the answer to the user question.
이때, 상기 프로세서는, 상기 실행중인 어플리케이션에 대한 도메인 정보 및, 상기 어플리케이션의 종류, 상기 실행중인 어플리케이션과 관련된 컨텐츠 정보 및 상기 어플리케이션을 통해 사용된 기능 중 적어도 하나를 상기 메모리에 저장 하고, 상기 인공지능 모델은, 상기 저장된 도메인 정보 및 상기 어플리케이션의 종류, 상기 실행중인 어플리케이션과 관련된 컨텐츠 정보 및 상기 어플리케이션을 통해 사용된 기능 중 적어도 하나를 바탕으로 상기 사용자 질문에 대한 답변을 획득할 수 있다.In this case, the processor may store at least one of domain information of the running application, the type of the application, content information related to the running application, and a function used through the application in the memory, and the artificial intelligence The model may obtain an answer to the user question based on at least one of the stored domain information and the type of the application, content information related to the running application, and a function used through the application.
이때, 상기 사용자 질문은 사용자 음성 또는 텍스트 중 적어도 하나일 수 있다.In this case, the user question may be at least one of user voice or text.
상술한 본 개시에 따른 다양한 실시예에 따라, 전자 장치는 인공 지능 모델을 사용하면서 사용자의 프라이버시를 보호함과 동시에, 사용자 맞춤형 답변을 출력할 수 있게 된다.According to various embodiments of the present disclosure as described above, the electronic device may protect the privacy of the user while using an artificial intelligence model and may output a user-specific answer.
도 1은 본 개시에 따른 전자 장치의 동작을 간략히 설명하기 위한 예시도이다.1 is an exemplary diagram for briefly describing an operation of an electronic device according to the present disclosure.
도 2는 본 개시의 일 실시예에 따른, 전자 장치의 구성을 간략히 도시한 블럭도이다.2 is a block diagram schematically illustrating a configuration of an electronic device according to an embodiment of the present disclosure.
도 3은 본 개시의 일 실시예에 따른 전자 장치를 상세히 도시한 블록도이다.3 is a block diagram illustrating in detail an electronic device according to an embodiment of the present disclosure.
도 4는 본 개시의 일 실시예에 따른 대화 시스템을 설명하기 위한 블록도이다.4 is a block diagram illustrating a conversation system according to an exemplary embodiment of the present disclosure.
도 5a 및 도 5b는 본 개시의 일 실시예에 따른 지식 베이스에 저장되는 데이터를 설명하기 위한 예시도이다.5A and 5B are exemplary diagrams for describing data stored in a knowledge base according to an embodiment of the present disclosure.
도 6은 본 개시의 일 실시예에 따른, 지식 베이스에 저장되는 데이터의 도메인(또는 카테고리)를 분류하는 방법을 설명하기 위한 예시도이다.6 is an exemplary diagram for describing a method of classifying domains (or categories) of data stored in a knowledge base according to an embodiment of the present disclosure.
도 7은 본 개시의 일 실시예에 따른 도메인 관리 방법을 설명하기 위한 예시도이다.7 is an exemplary view for explaining a domain management method according to an embodiment of the present disclosure.
도 8은 본 개시의 일 실시예에 따른, 지식 베이스에 저장되는 데이터를 획득하는 방법을 설명하기 위한 예시도이다. 8 is an exemplary diagram for describing a method of obtaining data stored in a knowledge base according to an embodiment of the present disclosure.
도 9는 본 개시의 일 실시예에 따른, 전자 장치가 어플리케이션 조작을 바탕으로 사용자 음성에 대한 질문을 출력하는 방법을 설명하기 위한 예시도이다.9 is an exemplary diagram for describing a method of outputting a question about a user's voice based on an application operation by an electronic device according to an embodiment of the present disclosure.
도 10a 및 도 10b는 본 개시의 또 다른 실시예에 따른, 사용자의 어플리케이션 조작을 추천하는 방법을 설명하기 위한 예시도이다.10A and 10B are exemplary diagrams for describing a method of recommending a user's application operation according to another exemplary embodiment of the present disclosure.
도 11a 및 도 11b는 본 개시에 따른 다양한 실시예를 설명하기 위한 예시도이다. 11A and 11B are exemplary views for describing various embodiments according to the present disclosure.
도 12는 본 개시의 일 실시예에 따른 전자 장치와 서버의 동작을 설명하기 위한 예시도이다.12 is an exemplary diagram for describing an operation of an electronic device and a server according to an embodiment of the present disclosure.
도 13은 본 개시의 일 실시예에 따른 전자 장치 및 서버의 동작을 설명하기 위한 시스템도이다.13 is a system diagram for describing an operation of an electronic device and a server according to an exemplary embodiment of the present disclosure.
도 14는 본 개시의 또 다른 실시예에 따른 전자 장치 및 서버의 동작을 설명하기 위한 시스템도이다.14 is a system diagram for describing an operation of an electronic device and a server according to another exemplary embodiment of the present disclosure.
도 15는 본 개시의 일 실시예에 따른 전자 장치의 제어 방법을 설명하기 위한 흐름도이다.15 is a flowchart illustrating a control method of an electronic device according to an embodiment of the present disclosure.
이하, 본 문서의 다양한 실시 예가 첨부된 도면을 참조하여 기재된다. 그러나, 이는 본 문서에 기재된 기술을 특정한 실시 형태에 대해 한정하려는 것이 아니며, 본 문서의 실시 예의 다양한 변경(modifications), 균등물(equivalents), 및/또는 대체물(alternatives)을 포함하는 것으로 이해되어야 한다. 도면의 설명과 관련하여, 유사한 구성요소에 대해서는 유사한 참조 부호가 사용될 수 있다.Hereinafter, various embodiments of the present disclosure will be described with reference to the accompanying drawings. However, this is not intended to limit the techniques described in this document to specific embodiments, but should be understood to cover various modifications, equivalents, and / or alternatives to the embodiments of this document. . In connection with the description of the drawings, similar reference numerals may be used for similar components.
본 문서에서, "가진다," "가질 수 있다," "포함한다," 또는 "포함할 수 있다" 등의 표현은 해당 특징(예: 수치, 기능, 동작, 또는 부품 등의 구성요소)의 존재를 가리키며, 추가적인 특징의 존재를 배제하지 않는다.In this document, expressions such as "have," "may have," "include," or "may include" include the presence of a corresponding feature (e.g., numerical, functional, operational, or component such as a component). Does not exclude the presence of additional features.
본 문서에서, "A 또는 B," "A 또는/및 B 중 적어도 하나," 또는 "A 또는/및 B 중 하나 또는 그 이상"등의 표현은 함께 나열된 항목들의 모든 가능한 조합을 포함할 수 있다. 예를 들면, "A 또는 B," "A 및 B 중 적어도 하나," 또는 "A 또는 B 중 적어도 하나"는, (1) 적어도 하나의 A를 포함, (2) 적어도 하나의 B를 포함, 또는 (3) 적어도 하나의 A 및 적어도 하나의 B 모두를 포함하는 경우를 모두 지칭할 수 있다.In this document, expressions such as "A or B," "at least one of A or / and B," or "one or more of A or / and B" may include all possible combinations of items listed together. . For example, "A or B," "at least one of A and B," or "at least one of A or B" includes (1) at least one A, (2) at least one B, Or (3) both of cases including at least one A and at least one B.
본 문서에서 사용된 "제1," "제2," "첫째," 또는 "둘째,"등의 표현들은 다양한 구성요소들을, 순서 및/또는 중요도에 상관없이 수식할 수 있고, 한 구성요소를 다른 구성요소와 구분하기 위해 사용될 뿐 해당 구성요소들을 한정하지 않는다. As used herein, the expressions “first,” “second,” “first,” or “second,” and the like may modify various components in any order and / or in importance. It is used to distinguish it from other components and does not limit the components.
어떤 구성요소(예: 제1 구성요소)가 다른 구성요소(예: 제2 구성요소)에 "(기능적으로 또는 통신적으로) 연결되어((operatively or communicatively) coupled with/to)" 있다거나 "접속되어(connected to)" 있다고 언급된 때에는, 상기 어떤 구성요소가 상기 다른 구성요소에 직접적으로 연결되거나, 다른 구성요소(예: 제3 구성요소)를 통하여 연결될 수 있다고 이해되어야 할 것이다. 반면에, 어떤 구성요소(예: 제1 구성요소)가 다른 구성요소(예: 제2 구성요소)에 "직접 연결되어" 있다거나 "직접 접속되어" 있다고 언급된 때에는, 상기 어떤 구성요소와 상기 다른 구성요소 사이에 다른 구성요소(예: 제 3 구성요소)가 존재하지 않는 것으로 이해될 수 있다.One component (such as a first component) is "(functionally or communicatively) coupled with / to" to another component (such as a second component) or " When referred to as "connected to," it is to be understood that any component may be directly connected to the other component or may be connected through another component (e.g., a third component). On the other hand, when a component (e.g., a first component) is said to be "directly connected" or "directly connected" to another component (e.g., a second component), the component and the It may be understood that no other component (eg, a third component) exists between the other components.
본 문서에서 사용된 표현 "~하도록 구성된(또는 설정된)(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" used in this document is, for example, "having the capacity to," "suitable for," " , "" Designed to, "" adapted to, "" made to, "or" capable of. " The term "configured to" may not necessarily mean only "specifically designed to" in hardware. Instead, in some situations, the expression “device configured to” may mean that the device “can” along with other devices or components. For example, the phrase “subprocessor configured (or set up) to perform A, B, and C” may execute a dedicated processor (eg, an embedded processor) or one or more software programs stored on a memory device to perform the operation. By doing so, it may mean a general-purpose processor (for example, a CPU or an application processor) capable of performing the corresponding operations.
본 문서의 다양한 실시예들에 따른 전자 장치는, 예를 들면, 스마트폰, 태블릿 PC, 이동 전화기, 영상 전화기, 전자책 리더기, 데스크탑 PC, 랩탑 PC, 넷북 컴퓨터, 워크스테이션, 서버, PDA, PMP(portable multimediaplayer), MP3 플레이어, 의료기기, 카메라, 또는 웨어러블 장치 중 적어도 하나를 포함할 수 있다. 웨어러블 장치는 액세서리형(예: 시계, 반지, 팔찌, 발찌, 목걸이, 안경, 콘택트 렌즈, 또는 머리 착용형 장치(head-mounted-device(HMD)), 직물 또는 의류 일체형(예: 전자 의복), 신체 부착형(예: 스킨 패드 또는 문신), 또는 생체 이식형 회로 중 적어도 하나를 포함할 수 있다. 어떤 실시예들에서, 전자 장치는, 예를 들면, 텔레비전, DVD(digital video disk) 플레이어, 오디오, 냉장고, 에어컨, 청소기, 오븐, 전자레인지, 세탁기, 공기 청정기, 셋톱 박스, 홈 오토매이션 컨트롤 패널, 보안 컨트롤 패널, 미디어 박스(예: 삼성 HomeSyncTM, 애플TVTM, 또는 구글 TVTM), 게임 콘솔(예: XboxTM, PlayStationTM), 전자 사전, 전자 키, 캠코더, 또는 전자 액자 중 적어도 하나를 포함할 수 있다.An electronic device according to various embodiments of the present disclosure may be, for example, a smartphone, a tablet PC, a mobile phone, a video phone, an e-book reader, a desktop PC, a laptop PC, a netbook computer, a workstation, a server, a PDA, a PMP. (portable multimediaplayer), an MP3 player, a medical device, a camera, or a wearable device. Wearable devices may be accessory (e.g. watches, rings, bracelets, anklets, necklaces, eyeglasses, contact lenses, or head-mounted-devices (HMDs), textiles or clothing integral (e.g. electronic clothing), And may include at least one of a body-attachable (eg, skin pad or tattoo), or bio implantable circuit, In certain embodiments, an electronic device may comprise, for example, a television, a digital video disk (DVD) player, Audio, Refrigerator, Air Conditioner, Cleaner, Oven, Microwave, Washing Machine, Air Purifier, Set Top Box, Home Automation Control Panel, Security Control Panel, Media Box (e.g. Samsung HomeSyncTM, Apple TVTM, or Google TVTM), Game Console (Eg, XboxTM, PlayStationTM), an electronic dictionary, an electronic key, a camcorder, or an electronic picture frame.
다른 실시예에서, 전자 장치는, 각종 의료기기(예: 각종 휴대용 의료측정기기(혈당 측정기, 심박 측정기, 혈압 측정기, 또는 체온 측정기 등), MRA(magnetic resonance angiography), MRI(magnetic resonance imaging), CT(computed tomography), 촬영기, 또는 초음파기 등), 네비게이션 장치, 위성 항법 시스템(GNSS(global navigation satellite system)), EDR(event data recorder), FDR(flight data recorder), 자동차 인포테인먼트 장치, 선박용 전자 장비(예: 선박용 항법 장치, 자이로 콤파스 등), 항공 전자기기(avionics), 보안 기기, 차량용 헤드 유닛(head unit), 산업용 또는 가정용 로봇, 드론(drone), 금융 기관의 ATM, 상점의 POS(point of sales), 또는 사물 인터넷 장치 (예: 전구, 각종 센서, 스프링클러 장치, 화재 경보기, 온도조절기, 가로등, 토스터, 운동기구, 온수탱크, 히터, 보일러 등) 중 적어도 하나를 포함할 수 있다. In another embodiment, the electronic device may include a variety of medical devices (e.g., various portable medical measuring devices such as blood glucose meters, heart rate monitors, blood pressure meters, or body temperature meters), magnetic resonance angiography (MRA), magnetic resonance imaging (MRI), Computed tomography (CT), cameras or ultrasounds), navigation devices, global navigation satellite systems (GNSS), event data recorders (EDR), flight data recorders (FDRs), automotive infotainment devices, ship electronic equipment (E.g. ship navigation systems, gyro compasses, etc.), avionics, security devices, vehicle head units, industrial or home robots, drones, ATMs in financial institutions, point of sale (POS) points in stores or Internet of Things devices (eg, light bulbs, various sensors, sprinkler devices, fire alarms, thermostats, street lights, toasters, exercise equipment, hot water tanks, heaters, boilers, etc.). .
본 문서에서, 사용자라는 용어는 전자 장치를 사용하는 사람 또는 전자 장치를 사용하는 장치(예: 인공지능 전자 장치)를 지칭할 수 있다.In this document, the term user may refer to a person who uses an electronic device or a device (eg, an artificial intelligence electronic device) that uses an electronic device.
이하에서는 도면을 참조하여 본 개시에 대해 더욱 상세히 설명하기로 한다.Hereinafter, with reference to the drawings will be described in more detail with respect to the present disclosure.
도 1은 본 개시에 따른 전자 장치의 동작을 간략히 설명하기 위한 예시도이다.1 is an exemplary diagram for briefly describing an operation of an electronic device according to the present disclosure.
전자 장치(100)는 사용자의 어플리케이션 사용, 컨텐츠 사용, 웹 컨텐츠 사용 등을 지식 베이스(460)에 저장하고, 사용자의 질문이 입력되면 지식 베이스(460)을 바탕으로 사용자 질문에 대한 응답을 출력할 수 있다.The electronic device 100 stores a user's application use, content use, web content use, etc. in the knowledge base 460, and when a user's question is input, the electronic device 100 outputs a response to a user question based on the knowledge base 460. Can be.
구체적으로, 전자 장치(100)는 사용자의 어플리케이션 사용, 컨텐츠 사용, 웹 컨텐츠 사용 등을 바탕으로 저장할 데이터의 도메인을 결정하고, 도메인이 결정되면, 결정된 도메인에 사용자의 어플리케이션 사용, 컨텐츠 사용, 웹 컨텐츠 사용에 대한 데이터를 저장할 수 있다.Specifically, the electronic device 100 determines a domain of data to be stored based on the user's application use, content use, web content use, and the like, and when the domain is determined, the user's application use, content use, and web content in the determined domain. You can store data about usage.
예를 들어, 전자 장치(100)는 사용자의 어플리케이션의 조작 순서를 지식 베이스(460)에 저장하고, 사용자가 해당 어플리케이션을 실행시키는 경우, 실행된 어플리케이션과 관련된 도메인을 판단하고, 판단된 도메인에 저장된 데이터를 바탕으로 저장된 어플리케이션의 조작 순서에 따라 어플리케이션을 제어할 수 있다. 또는, 전자 장치(100)는 영화 어플리케이션을 통해 영화가 예매되면, 영화 어플리케이션과 관련된 도메인(예를 들어, 영화 도메인)을 판단하고, 도메인에 저장된 데이터를 바탕으로, 예매 확인 내용을 다른 사용자에게 전송할 것을 추천할 수 있다. 또는, 전자 장치(100)는 컨텐츠를 특정 어플리케이션을 통해 실행하는 사용자의 행동을 지식 베이스(460)에 저장하고, 관련 컨텐츠를 재생하기 위한 사용자 명령이 입력되면, 관련 컨텐츠와 관련된 도메인을 판단하고, 도메인에 저장된 데이터를 바탕으로 관련 컨텐츠를 재생하기 위한 어플리케이션을 획득하고, 획득된 어플리케이션을 통해 관련 컨텐츠를 재생할 수 있다. 또는, 전자 장치(100)는 특정 컨텐츠를 북마크 하기 위한 사용자 명령이 입력되면, 북마크된 컨텐츠와 관련된 도메인을 판단하고, 판단된 도메인에 저장된 데이터를 바탕으로 북마크된 컨텐츠와 관련된 컨텐츠를 북마크 할 수 있다. For example, the electronic device 100 stores the operation order of the user's application in the knowledge base 460, and when the user executes the application, determines the domain associated with the executed application, and stores the stored order in the determined domain. The application may be controlled according to the operation order of the stored application based on the data. Or, if a movie is reserved through a movie application, the electronic device 100 determines a domain (eg, a movie domain) related to the movie application, and transmits a reservation confirmation to another user based on data stored in the domain. I can recommend that. Alternatively, the electronic device 100 may store an action of a user who executes content through a specific application in the knowledge base 460, and when a user command to play related content is input, the electronic device 100 determines a domain related to the related content, An application for reproducing related content may be obtained based on data stored in a domain, and the related content may be reproduced through the obtained application. Alternatively, when a user command for bookmarking specific content is input, the electronic device 100 may determine a domain related to the bookmarked content and bookmark the content related to the bookmarked content based on the data stored in the determined domain. .
즉, 전자 장치(100)는 전자 장치(100)의 다양한 사용 히스토리를 바탕으로 다양한 데이터를 획득하여 지식 베이스(460)에 도메인 별로 저장하고, 사용자 질문이 입력되면, 지식 베이스(460)에 저장된 질문을 바탕으로 답변을 출력할 수 있다.That is, the electronic device 100 obtains various data based on various usage histories of the electronic device 100, stores the data in the knowledge base 460 for each domain, and if a user question is input, the question stored in the knowledge base 460. Based on this, you can print the answer.
한편, 지식 베이스(460)는 주어(subject) 데이터, 목적(object) 데이터, 연관 관계(predicate) 데이터로 이루어진 데이터 세트를 적합한 스키마(Schema)에 따라 저장하는 데이터 베이스를 의미한다. 즉, 지식 베이스(460)는 데이터 및 데이터들간의 연관 관계 유형을 일반화된 형태(예를 들어, 관계형 데이터 베이스의 테이블 형태)로 표현하고, 표현된 데이터 및 데이터들간의 연관 관계 유형 세트를 저장할 수 있다. 주어 데이터는 표현하고자 하는 대상을 나타내는 데이터를 의미하고, 연관 관계 데이터는 주어와 목적과의 관계를 나타내는 데이터를 의미하고, 목적 데이터는 연관 관계에 대한 내용 또는 값을 나타내는 데이터를 의미한다. 그리고, 주어 데이터, 연결 관계 데이터, 목적 데이터로 이루어진 한 세트를 트리플(Triple) 데이터라고 할 수 있다.Meanwhile, the knowledge base 460 refers to a database that stores a data set consisting of subject data, object data, and predicate data according to a suitable schema. That is, the knowledge base 460 may express the association type between the data and the data in a generalized form (for example, in the form of a table of a relational database) and store the set of association types between the expressed data and the data. have. The subject data refers to data representing an object to be expressed, the association data refers to data representing a relationship between the subject and the object, and the object data refers to data representing the content or value of the association relationship. The set of subject data, connection relation data, and target data may be referred to as triple data.
지식 베이스(460)는 전자 장치(100)가 웹 페이지 또는 각종 어플리케이션을 통해 획득한 트리플 데이터를 관계형 데이터베이스의 테이블 형태로 저장하여 구축될 수 있다.The knowledge base 460 may be constructed by storing the triple data acquired by the electronic device 100 through a web page or various applications in a table form of a relational database.
일 실시 예로, 전자 장치(100)는 웹 페이지 상에서 식별된 텍스트를 형태소 분석 및 구문 분석(Parsing)을 수행하여 트리플 데이터를 획득할 수 있다. 예를 들면, 웹 페이지 상에 '서울 인구는 현재 977만명이다'라는 텍스트가 있는 경우, 전자 장치(100)는 상기 텍스트에 대해 형태소 분석 및 구분 분석하여 '서울(주어 데이터), 인구(연관 관계 데이터), 977만(목적 데이터)'으로 이루어진 트리플 데이터를 획득할 수 있다. 그리고, 지식 베이스(460)는 전자 장치(100)가 획득한 트리플 데이터를 표 1과 같이 관계형 데이터 베이스의 테이블 형태로 저장하여 구축될 수 있다.According to an embodiment, the electronic device 100 may obtain triple data by performing morphological analysis and parsing on the text identified on the web page. For example, if the text "Seoul population is currently 97.7 million" is displayed on the web page, the electronic device 100 may stem and analyze the text to search for "Seoul (subject data) and population (association relation)." Data), and 9,770,000 (object data) 'triple data can be obtained. The knowledge base 460 may be constructed by storing triple data acquired by the electronic device 100 in a table form of a relational database as shown in Table 1.
주어 데이터Subject data 연관 관계 데이터Affinity data 목적 데이터Purpose data
서울Seoul 인구population 977만977 million
또 다른 실시 예로, 전자 장치(100)는 어플리케이션의 사용을 바탕으로 '어플리케이션 명칭(주어 데이터), 수행한 기능(연관 관계 데이터), 컨텐츠 명칭(목적 데이터)'으로 이루어진 트리플 데이터를 획득할 수 있다. 예를 들면, 영화 어플리케이션에서 영화 예매를 실행한 경우, 전자 장치(100)는 '영화 어플리케이션 명칭(주어 데이터), 영화 예매(연관 관계 데이터), 영화 제목(목적 데이터)'으로 이루어진 트리플 데이터를 획득할 수 있다. 그리고, 지식 베이스(460)는 전자 장치(100)가 획득한 트리플 데이터를 표 1과 같이 관계형 데이터의 테이블의 형태로 저장하여 구축될 수 있다.According to another embodiment, the electronic device 100 may obtain triple data including an application name (given data), an performed function (association data), and a content name (purpose data) based on the use of the application. . For example, when a movie reservation is executed in a movie application, the electronic device 100 obtains triple data consisting of a movie application name (subject data), a movie reservation (association relation data), and a movie title (purpose data). can do. The knowledge base 460 may be constructed by storing the triple data acquired by the electronic device 100 in the form of a table of relational data as shown in Table 1 below.
주어 데이터Subject data 연관 관계 데이터Affinity data 목적 데이터Purpose data
영화 어플리케이션 명칭Movie Application Name 영화 예매Movie ticket 영화 제목Movie title
한편, 본 개시의 일 실시 예로, 전자 장치(100)는 지식 베이스(460)에 저장된 트리플 데이터를 바탕으로 사용자 음성에 대한 답변을 출력할 수 있다. 구체적으로, 질문이 포함된 사용자 음성이 입력되면, 전자 장치(100)는 사용자 음성을 인식 및 분석하여 질문의 의도를 파악하고, 파악된 질문의 의도가 지식 베이스(460)에 저장된 트리플 데이터 중 어떤 연관 관계 데이터에 대응되는지 여부를 판단할 수 있다. 예를 들어, '토요일 OOO 영화 몇 시가 좋지?”라는 사용자 음성이 입력되면, 전자 장치(100)는 사용자의 의도가 '영화 예매'라는 것을 파악하고, 지식 베이스(460)에 저장된 연결 관계 데이터가 '영화 예매'인 데이터를 식별할 수 있다. 그리고, 전자 장치(100)는 지식 베이스(460)에 저장된 관계형 데이터의 테이블을 이용하여 트리플 데이터 중 '영화 예매'가 연관 관계 데이터인 주어 데이터를 식별할 수 있다. 그리고, 전자 장치(100)는 식별된 주어 데이터 중 사용 빈도가 가장 많은 주어 데이터(영화 어플리케이션)를 식별하고, 식별된 영화 어플리케이션으로 영화 예매를 추천하는 답변을 출력할 수 있다.Meanwhile, as an embodiment of the present disclosure, the electronic device 100 may output an answer to a user's voice based on triple data stored in the knowledge base 460. Specifically, when a user's voice including a question is input, the electronic device 100 recognizes and analyzes the user's voice to determine the intention of the question, and the intention of the identified question is based on any of the triple data stored in the knowledge base 460. It may be determined whether it corresponds to the association data. For example, when a user's voice of 'Saturday OOO movie is good?' Is input, the electronic device 100 determines that the user's intention is 'movie reservation', and the connection relationship data stored in the knowledge base 460 is stored. Identify data that is 'movie booking'. In addition, the electronic device 100 may identify the subject data in which the 'movie booking' of the triple data is association data using the table of relational data stored in the knowledge base 460. The electronic device 100 may identify the subject data (movie application) having the highest frequency of use among the identified subject data, and may output an answer for recommending a movie reservation to the identified movie application.
도 2는 본 개시의 일 실시예에 따른, 전자 장치의 구성을 간략히 도시한 블럭도이다. 도 2에 도시된 바와 같이, 전자 장치(100)는 메모리(110) 및 프로세서(120)를 포함할 수 있다.2 is a block diagram schematically illustrating a configuration of an electronic device according to an embodiment of the present disclosure. As shown in FIG. 2, the electronic device 100 may include a memory 110 and a processor 120.
메모리(110)는 전자 장치(100)의 적어도 하나의 다른 구성요소에 관계된 명령 또는 데이터를 저장할 수 있다. 특히, 메모리(110)는 비휘발성 메모리, 휘발성 메모리, 플래시메모리(flash-memory), 하드디스크 드라이브(HDD) 또는 솔리드 스테이트 드라이브(SSD) 등으로 구현될 수 있다. 메모리(110)는 프로세서(120)에 의해 액세스되며, 프로세서(120)에 의한 데이터의 독취/기록/수정/삭제/갱신 등이 수행될 수 있다. 본 개시에서 메모리라는 용어는 메모리(110), 프로세서(120) 내 롬(미도시), 램(미도시) 또는 전자 장치(100)에 장착되는 메모리 카드(미도시)(예를 들어, micro SD 카드, 메모리 스틱)를 포함할 수 있다. 또한, 메모리(110)에는 디스플레이부(150)의 디스플레이 영역에 표시될 각종 화면을 구성하기 위한 프로그램 및 데이터 등이 저장될 수 있다. The memory 110 may store instructions or data related to at least one other component of the electronic device 100. In particular, the memory 110 may be implemented as a nonvolatile memory, a volatile memory, a flash-memory, a hard disk drive (HDD), or a solid state drive (SSD). The memory 110 is accessed by the processor 120, and may read / write / modify / delete / update data, etc. by the processor 120. In the present disclosure, the term memory refers to a memory 110, a ROM (not shown), a RAM (not shown), or a memory card (not shown) mounted in the electronic device 100 (eg, micro SD). Card, memory stick). In addition, the memory 110 may store programs and data for configuring various screens to be displayed on the display area of the display unit 150.
또한, 메모리(110)는 사용자 입력(특히, 사용자 음성)에 대한 응답을 제공하는 대화 시스템(Dialogue system)을 저장할 수 있다. 이때, 대화 시스템은 도 4에 도시된 바와 같이, 자동 음성 인식부(Automatic Speech Recognition, ASR)(410), 자연어 이해부(Natural Language Understanding, NLU)(420), 대화 매니저(Dialogue Manager, DM)(430), 자연어 생성부(Natural Language Generator, NLG)(440), TTS(Text-to-Speech)(450) 및 지식 베이스(Knowledge Database)(460)를 포함할 수 있다.In addition, the memory 110 may store a dialogue system that provides a response to a user input (especially a user's voice). In this case, as shown in FIG. 4, the dialogue system includes an automatic speech recognition unit (ASR) 410, a natural language understanding unit (NLU) 420, and a dialogue manager (DM). 430, a natural language generator (NLG) 440, a text-to-speech (TTS) 450, and a knowledge database 460.
자동 음성 인식부(410)는 마이크 등을 통해 입력된 사용자 음성에 대한 음성 인식을 수행할 수 있다. 자연어 이해부(420)는 음성 인식 결과를 바탕으로 사용자 음성의 의도(intent)를 파악할 수 있다. 대화 매니저(430)는 자연어 이해 결과 및 지식 베이스(460)에 저장된 데이터를 바탕으로 사용자 음성에 대한 응답에 대한 정보를 획득할 수 있다. 예를 들어, 대화 매니저(430)는 응답을 생성하기 위한 정보를 획득할 수 있으며, 상술한 바와 같이, 획득된 정보는 자연어 이해부(420)을 통해 파악된 사용자 음성의 의도(intent) 와 지식 베이스(460)에 저장된 데이터를 바탕으로 결정될 수 있다. 자연어 생성부(440)는 대화 매니저(430)를 통해 획득된 정보를 바탕으로 사용자 음성에 대한 응답으로서, 자연어를 획득할 수 있다. TTS(450)는 획득된 자연어를 음성으로 변환할 수 있다 이에 의해, 대화 시스템은 사용자 음성에 대한 응답을 음성으로서 제공할 수 있게 되어, 사용자는 전자 장치(100)와 대화를 수행할 수 있게 된다.The automatic voice recognition unit 410 may perform voice recognition on a user voice input through a microphone or the like. The natural language understanding unit 420 may determine the intent of the user's voice based on the speech recognition result. The conversation manager 430 may obtain information about a response to the user's voice based on the natural language understanding result and the data stored in the knowledge base 460. For example, the conversation manager 430 may obtain information for generating a response. As described above, the obtained information may be obtained from the intent and knowledge of the user's voice identified through the natural language understanding unit 420. It may be determined based on the data stored in the base 460. The natural language generator 440 may obtain the natural language as a response to the user's voice based on the information obtained through the conversation manager 430. The TTS 450 may convert the obtained natural language into a voice, thereby enabling the conversation system to provide a response to the user's voice as a voice, thereby allowing the user to communicate with the electronic device 100. .
특히, 본 개시의 일 실시예에 따른 자연어 생성부(440)는 대화 매니저(430) 및 지식 베이스(460)을 통해 획득된 정보를 인공지능 모델의 입력값으로 입력하여 사용자 음성에 대한 응답으로서, 자연어를 획득할 수 있다. In particular, the natural language generator 440 according to an embodiment of the present disclosure inputs the information obtained through the conversation manager 430 and the knowledge base 460 as an input value of the artificial intelligence model, as a response to the user's voice. Natural language can be obtained.
지식 베이스(460)는 개인화된 응답을 위한 데이터를 저장할 수 있다. 이때, 지식 베이스(460)에 저장되는 데이터는 다양할 수 있다. 일 실시예로, 지식 베이스(460)는 전자 장치(100)가 사용하는 어플리케이션의 종류, 어플리케이션과 관련된 컨텐츠 정보 및 어플리케이션을 통해 사용된 기능 중 적어도 하나를 저장할 수 있다. 또 다른 예로, 지식 베이스(460)는 어플리케이션에 포함된 텍스트의 핵심 정보를 저장할 수 있다. 또 다른 예로, 사용 중인 어플리케이션에 대한 기능을 수행하는 사용자 인터랙션이 감지된 경우, 지식 베이스(460)는 수행된 기능 및 사용된 사용자 인터랙션에 대한 정보를 저장할 수 있다. 또 다른 예로, 지식 베이스(460)는 실행중인 어플리케이션에 대한 카테고리 정보 및 실행중인 어플리케이션에 대한 지식 정보를 저장할 수 있다. 또 다른 예로, 지식 베이스(460)는 연속적인 어플리케이션의 사용과 관련된 정보를 저장하거나, 어플리케이션의 조작과 관련된 정보를 저장하거나, 특정 어플리케이션 사용시 동일 유형에 대한 컨텐츠를 사용하는 경우, 특정 어플리케이션에 대한 정보 및 특정 유형의 컨텐츠에 대한 정보를 매칭하여 저장할 수 있다. 이때, 어플리케이션에 대한 정보란 상기 어플리케이션의 종류, 상기 실행중인 어플리케이션과 관련된 컨텐츠 정보 및 상기 어플리케이션을 통해 사용된 기능(결제 기능, 검색 기능, 예매 기능 등) 중 적어도 하나일 수 있다. Knowledge base 460 may store data for personalized responses. In this case, the data stored in the knowledge base 460 may vary. According to an embodiment, the knowledge base 460 may store at least one of a type of an application used by the electronic device 100, content information related to the application, and a function used through the application. As another example, the knowledge base 460 may store key information of text included in an application. As another example, when a user interaction for performing a function on an application being used is detected, the knowledge base 460 may store information about the performed function and the used user interaction. As another example, the knowledge base 460 may store category information about a running application and knowledge information about a running application. As another example, the knowledge base 460 may store information related to continuous use of an application, store information related to operation of an application, or use information about a specific application when using content of the same type when using a specific application. And store information by matching information about a specific type of content. In this case, the information on the application may be at least one of a type of the application, content information related to the running application, and a function (payment function, search function, advance reservation function, etc.) used through the application.
또한, 메모리(110)는 대화 시스템을 동작하기 위한 인공지능 에이전트를 저장할 수 있다. 구체적으로, 전자 장치(100)는 사용자 음성에 대한 응답으로 자연어를 생성하기 위하여 인공지능 에이전트(Artificial intelligence agent)를 이용할 수 있다. 이때, 인공지능 에이전트는 AI(Artificial Intelligence) 기반의 서비스(예를 들어, 음성 인식 서비스, 비서 서비스, 번역 서비스, 검색 서비스 등)를 제공하기 위한 전용 프로그램으로서, 기존의 범용 프로세서(예를 들어, CPU) 또는 별도의 AI 전용 프로세서(예를 들어, GPU 등)에 의해 실행될 수 있다. The memory 110 may also store an artificial intelligence agent for operating the conversation system. In detail, the electronic device 100 may use an artificial intelligence agent to generate natural language in response to a user voice. At this time, the artificial intelligence agent is a dedicated program for providing an AI (Artificial Intelligence) based service (for example, a voice recognition service, a secretary service, a translation service, a search service, etc.), and an existing general purpose processor (for example, CPU) or a separate AI dedicated processor (eg, GPU, etc.).
구체적으로, 사용자 음성이 입력된 경우, 인공지능 에이전트가 동작할 수 있다. 그리고, 인공지능 에이전트는 사용자 질문을 학습된 인공지능 학습 모델에 입력하여 답변을 획득할 수 있다.Specifically, when a user voice is input, the artificial intelligence agent may operate. The AI agent may obtain a response by inputting the user question into the learned AI learning model.
물론, 사용자 음성(특히, 인공지능 기능을 실행하기 위한 트리거 음성)이 입력되거나 기설정된 버튼(예를 들어, 인공지능 비서 기능을 실행하기 위한 버튼)이 선택되면, 인공지능 에이전트가 동작할 수도 있다. 또는, 인공지능 에이전트는 사용자 음성이 입력되거나 기설정된 버튼이 선택되기 이전에 기 실행된 상태일 수 있다. 이 경우, 사용자 음성이 입력되거나 기설정된 버튼이 입력된 이후에 전자 장치(100)의 인공지능 에이전트가 사용자 질문에 대한 답변을 획득할 수 있다. 또한, 인공지능 에이전트는 사용자 음성이 입력되거나 기설정된 버튼이 선택되기 이전에 대기 상태일 수 있다. 여기서, 대기 상태란, 인공지능 에이전트의 동작 시작을 제어하기 위해 미리 정의된 사용자 입력이 수신되는 것을 감지하는 상태이다. 인공지능 에이전트가 대기 상태인 동안 사용자 음성이 입력되거나 기설정된 버튼이 선택되면, 전자 장치(100)는 인공지능 에이전트를 동작시키고, 사용자 음성에 대한 응답으로 자연어를 획득할 수 있다. Of course, the AI agent may operate when a user voice (particularly, a trigger voice for executing an AI function) is input or a predetermined button (for example, a button for executing an AI assistant function) is selected. . Alternatively, the AI agent may be in a previously executed state before a user voice is input or a preset button is selected. In this case, after the user voice is input or a predetermined button is input, the artificial intelligence agent of the electronic device 100 may obtain an answer to the user question. Also, the AI agent may be in a standby state before a user voice is input or a preset button is selected. Here, the standby state is a state in which a predefined user input is received to control the start of the operation of the artificial intelligence agent. When a user voice is input or a preset button is selected while the AI agent is in a standby state, the electronic device 100 may operate the AI agent and acquire natural language in response to the user voice.
또한, 본 개시의 일 실시예에 따라, 메모리(110)는 사용자 질문에 대한 답변을 생성(또는 획득)하도록 학습된 인공지능 모델을 저장할 수 있다. 본 개시에서 학습된 인공지능 모델은 인식 모델의 적용 분야 또는 장치의 컴퓨터 성능 등을 고려하여 구축될 수 있다. 예로, 인공지능 모델은 대화 매니저(430) 및 지식 데이터베이스(460)로부터 획득된 정보를 입력 데이터로 사용하여 자연어를 획득하도록 학습될 수 있다. 자연스러운 자연어를 생성하기 위해, 학습된 인공지능 모델은, 예로, 신경망(Neural Network)을 기반으로 하는 모델일 수 있다. 인공지능 모델은 인간의 뇌 구조를 컴퓨터 상에서 모의하도록 설계될 수 있으며 인간의 신경망의 뉴런(neuron)을 모의하는, 가중치를 가지는 복수의 네트워크 노드들을 포함할 수 있다. 복수의 네트워크 노드들은 뉴런이 시냅스(synapse)를 통하여 신호를 주고 받는 뉴런의 시냅틱(synaptic) 활동을 모의하도록 각각 연결 관계를 형성할 수 있다. 또한, 문서 요약 모델은, 일 예로, 신경망 모델, 또는 신경망 모델에서 발전한 딥 러닝 모델을 포함할 수 있다. 딥 러닝 모델에서 복수의 네트워크 노드들은 서로 다른 깊이(또는, 레이어)에 위치하면서 컨볼루션(convolution) 연결 관계에 따라 데이터를 주고 받을 수 있다. 학습된 인공지능 모델의 예에는 DNN(Deep Neural Network), RNN(Recurrent Neural Network), BRDNN(Bidirectional Recurrent Deep Neural Network) 등이 있을 수 있으나 이에 한정되지 않는다.In addition, according to an embodiment of the present disclosure, the memory 110 may store an AI model trained to generate (or obtain) an answer to a user question. The artificial intelligence model learned in the present disclosure may be constructed in consideration of application fields of the recognition model or computer performance of the device. For example, the artificial intelligence model may be trained to obtain natural language using information obtained from the conversation manager 430 and the knowledge database 460 as input data. In order to generate natural natural language, the learned AI model may be, for example, a model based on a neural network. The AI model can be designed to simulate a human brain structure on a computer and can include a plurality of weighted network nodes that simulate neurons in a human neural network. The plurality of network nodes may form a connection relationship so that neurons simulate the synaptic activity of neurons that send and receive signals through synapses. In addition, the document summary model may include, for example, a neural network model or a deep learning model developed from the neural network model. In the deep learning model, a plurality of network nodes may be located at different depths (or layers) and exchange data according to a convolutional connection relationship. Examples of the learned AI model may include, but are not limited to, a Deep Neural Network (DNN), a Recurrent Neural Network (RNN), and a Bidirectional Recurrent Deep Neural Network (BRDNN).
또한, 상술한 실시예에서는 인공지능 모델이 전자 장치(100)에 저장되는 것으로 설명하였으나, 이는 일 실시예에 불과할 뿐, 인공지능 모델은 다른 전자 장치에 저장될 수 있다. 예를 들어, 인공 지능 모델은 적어도 하나 이상의 외부 서버에 저장될 수 있다. 전자 장치(100)는 사용자 음성을 입력 받아 인공 지능 모델이 저장된 외부 서버로 전송하고, 외부 서버에 저장된 인공 지능 모델이 전자 장치(100)로부터 수신한 사용자 음성을 입력값으로 입력하여 결과를 출력할 수 있음은 물론이다.In addition, in the above-described embodiment, the AI model is described as being stored in the electronic device 100. However, this is only an example, and the AI model may be stored in another electronic device. For example, the artificial intelligence model may be stored on at least one external server. The electronic device 100 receives a user voice and transmits it to an external server storing the artificial intelligence model, and inputs the user voice received from the electronic device 100 as an input value to output the result. Of course it can.
프로세서(120)는 메모리(110)와 전기적으로 연결되어 전자 장치(100)의 전반적인 동작 및 기능을 제어할 수 있다. The processor 120 may be electrically connected to the memory 110 to control overall operations and functions of the electronic device 100.
구체적으로, 프로세서(120)는 메모리(110)에 저장된 어플리케이션을 실행할 수 있다. 어플리케이션이 실행중인 상태에서 사용자 명령이 입력되면, 프로세서(120)는 실행중인 어플리케이션의 종류, 실행중인 어플리케이션과 관련된 컨텐츠 정보 및 어플리케이션을 통해 사용된 기능 중 적어도 하나를 획득하여 메모리(110)에 저장할 수 있다. 구체적으로, 어플리케이션이 실행중인 상태에서 사용자 명령이 입력되면, 프로세서(120)는 실행중인 어플리케이션의 종류, 실행중인 어플리케이션과 관련된 컨텐츠 정보 및 어플리케이션을 통해 사용된 기능 중 적어도 하나를 획득하여 지식 베이스(460)에 저장할 수 있다. 학습된 인공 지능 모델에 어플리케이션과 관련되 사용자 질문이 입력값으로 입력되면, 프로세서(120)는, 지식 베이스(460)에 저장된 실행중인 어플리케이션의 종류, 실행중인 어플리케이션과 관련된 컨텐츠 정보 및 어플리케이션을 통해 사용된 기능 중 적어도 하나를 바탕으로 결정된, 사용자 질문에 대한 답변을 출력할 수 있다.In detail, the processor 120 may execute an application stored in the memory 110. When a user command is input while the application is running, the processor 120 may obtain and store at least one of a type of the application being executed, content information related to the application being executed, and a function used by the application in the memory 110. have. Specifically, when a user command is input while the application is running, the processor 120 acquires at least one of a type of the application being executed, content information related to the application being executed, and a function used through the application and the knowledge base 460. ) Can be stored. When a user question related to an application is input to the learned artificial intelligence model as an input value, the processor 120 uses the type of the running application stored in the knowledge base 460, content information related to the running application, and the application. The user may output an answer to a user question determined based on at least one of the functions.
이때, 프로세서(120)가 출력하는 답변은, 사용자 질문에 대한 검색 결과를 제공하는 답변, 사용자 질문에 대한 액션을 수행하는 답변, 사용자 질문에 대한 어플리케이션의 기능을 수행하는 답변 중 적어도 하나일 수 있다.In this case, the answer output by the processor 120 may be at least one of an answer providing a search result for a user question, an answer for performing an action on the user question, and an answer for performing a function of an application for the user question. .
한편, 사용자 질문이 컨텐츠 검색과 관련된 질문인 경우, 프로세서(120)는 어플리케이션과 관련된 정보를 바탕으로 검색된 컨텐츠를 재생하기 위한 어플리케이션을 추천할 수 있다.Meanwhile, if the user question is a question related to content search, the processor 120 may recommend an application for playing the searched content based on information related to the application.
한편, 프로세서(120)는 상기 저장된 도메인 정보 및 실행중인 어플리케이션의 종류, 실행중인 어플리케이션과 관련된 컨텐츠 정보 및 어플리케이션을 통해 사용된 기능 중 적어도 하나를 바탕으로 상기 사용자 질문에 대한 답변을 획득할 수 있다.Meanwhile, the processor 120 may obtain an answer to the user question based on at least one of the stored domain information and the type of the executed application, content information related to the executed application, and a function used through the application.
한편, 사용자 질문이 입력되면, 프로세서(120)는 사용자 질문을 외부 서버로 전송하고, 외부 서버로부터 입력된 사용자 질문에 대한 답변 후보를 수신할 수 있다. 프로세서(120)는 수신한 답변 후보 및 지식 베이스(460)에 저장된 정보를 바탕으로 사용자 질문에 대한 답변을 출력할 수 있다. 구체적으로, 프로세서(120)는 수신한 답변 후보와 지식 베이스(460)에 저장된 데이터와의 유사도를 인공 지능 모델을 통해 계산하고, 수신한 답변 후보 중 지식 베이스(460)의 데이터 와의 유사도가 가장 높은 답변 후보를 출력할 수 있다.On the other hand, if a user question is input, the processor 120 may transmit the user question to an external server, and receive a candidate to answer the user question input from the external server. The processor 120 may output an answer to a user question based on the received answer candidate and the information stored in the knowledge base 460. Specifically, the processor 120 calculates the similarity between the received answer candidate and the data stored in the knowledge base 460 through an artificial intelligence model, and has the highest similarity with the data of the knowledge base 460 among the received answer candidates. Answer candidates can be output.
본 개시에서의 사용자 질문은 사용자 음성인 경우로 하여 설명하나 이에 한정되는 것은 아니다. 즉, 사용자 질문은 텍스트의 형태로 입력될 수도 있다.The user question in the present disclosure is described as a case of a user voice, but is not limited thereto. That is, the user question may be input in the form of text.
한편, 본 개시에 따른 인공지능과 관련된 기능은 프로세서(120)와 메모리(110)를 통해 동작된다. 프로세서(130)는 하나 또는 복수의 프로세서로 구성될 수 있다. 이때, 하나 또는 복수의 프로세서는 CPU, AP 등과 같은 범용 프로세서, GPU. VPU 등과 같은 그래픽 전용 프로세서 또는 NPU와 같은 인공지능 전용 프로세서일 수 있다.Meanwhile, functions related to artificial intelligence according to the present disclosure are operated through the processor 120 and the memory 110. The processor 130 may be composed of one or a plurality of processors. At this time, one or a plurality of processors are general purpose processors such as CPU, AP, GPU. It may be a graphics dedicated processor such as a VPU or the like, or an AI dedicated processor such as an NPU.
하나 또는 복수의 프로세서는, 메모리(110)에 저장된 기정의된 동작 규칙 또는 인공지능 모델에 따라, 입력 데이터를 처리하도록 제어한다. 기정의된 동작 규칙 또는 인공지능 모델은 학습을 통해 만들어진 것을 특징으로 한다. The one or more processors control to process the input data according to a predefined operating rule or artificial intelligence model stored in the memory 110. The predefined action rule or artificial intelligence model is characterized by being made through learning.
여기서, 학습을 통해 만들어진다는 것은, 다수의 학습 데이터들에 학습 알고리즘을 적용함으로써, 원하는 특성의 기정의된 동작 규칙 또는 인공지능 모델이 만들어짐을 의미한다. 이러한 학습은 본 개시에 따른 인공지능이 수행되는 기기 자체에서 이루어질 수도 있고, 별도의 서버/시스템을 통해 이루어 질 수도 있다. In this case, to be made through learning means that a predetermined operating rule or artificial intelligence model of a desired characteristic is created by applying a learning algorithm to a plurality of learning data. Such learning may be made in the device itself in which the artificial intelligence according to the present disclosure is performed, or may be made through a separate server / system.
인공지능 모델은, 복수의 신경망 레이어들로 구성될 수 있다. 각 레이어는 복수의 가중치(weight values)을 갖고 있으며, 이전(previous) 레이어의 연산 결과와 복수의 가중치의 연산을 통해 레이어의 연산을 수행한다. 신경망의 예로는, CNN (Convolutional Neural Network), DNN (Deep Neural Network), RNN (Recurrent Neural Network), RBM (Restricted Boltzmann Machine), DBN (Deep Belief Network), BRDNN(Bidirectional Recurrent Deep Neural Network) 및 심층 Q-네트워크 (Deep Q-Networks)이 있으며, 본 개시에서의 신경망은 명시한 경우를 제외하고 전술한 예에 한정되지 않는다.The artificial intelligence model may consist of a plurality of neural network layers. Each layer has a plurality of weight values, and the layer is calculated through the calculation result of the previous layer and the calculation of the plurality of weights. Examples of neural networks include Convolutional Neural Network (CNN), Deep Neural Network (DNN), Recurrent Neural Network (RNN), Restricted Boltzmann Machine (RBM), Deep Belief Network (DBN), Bidirectional Recurrent Deep Neural Network (BRDNN), and deep There are Deep Q-Networks, and the neural network in the present disclosure is not limited to the above examples except where specified.
학습 알고리즘은, 다수의 학습 데이터들을 이용하여 소정의 대상 기기(예컨대, 로봇)을 훈련시켜 소정의 대상 기기 스스로 결정을 내리거나 예측을 할 수 있도록 하는 방법이다. 학습 알고리즘의 예로는, 지도형 학습(supervised learning), 비지도형 학습(unsupervised learning), 준지도형 학습(semi-supervised learning) 또는 강화 학습(reinforcement learning)이 있으며, 본 개시에서의 학습 알고리즘은 명시한 경우를 제외하고 전술한 예에 한정되지 않는다.The learning algorithm is a method of training a predetermined target device (eg, a robot) using a plurality of learning data so that the predetermined target device can make a decision or make a prediction by itself. Examples of learning algorithms include supervised learning, unsupervised learning, semi-supervised learning or reinforcement learning, where the learning algorithm in the present disclosure is specified. It is not limited to the above-described example except for.
도 3은 본 개시의 일 실시예에 따른 전자 장치를 상세히 도시한 블록도이다.3 is a block diagram illustrating in detail an electronic device according to an embodiment of the present disclosure.
도 3에 도시된 바와 같이, 전자 장치(100)는 메모리(110) 및 프로세서(120)외에 통신부(130), 입력부(140), 디스플레이(150) 및 오디오 출력부(160)를 더 포함할 수 있다. 그러나 상술한 구성에 한정되는 것은 아니며, 필요에 따라 일부 구성이 추가되거나 생략될 수 있음은 물론이다.As shown in FIG. 3, the electronic device 100 may further include a communication unit 130, an input unit 140, a display 150, and an audio output unit 160 in addition to the memory 110 and the processor 120. have. However, the present invention is not limited to the above-described configuration, and some configurations may be added or omitted as necessary.
통신부(130)는 외부 장치와 통신을 수행하기 위한 구성이다. 일 실시예로, 전자 장치(100)는 통신부(130)를 통해 사용자 음성에 대한 복수의 답변 후보를 외부 서버로부터 수신할 수 있다.The communication unit 130 is a component for performing communication with an external device. In an embodiment, the electronic device 100 may receive a plurality of answer candidates for a user's voice from an external server through the communication unit 130.
한편, 통신부(130)가 외부 장치와 통신 연결되는 것은 제3 기기(예로, 중계기, 허브, 엑세스 포인트, 서버 또는 게이트웨이 등)를 거쳐서 통신하는 것을 포함할 수 있다. 무선 통신은, 예를 들면, LTE, LTE-A(LTE Advance), CDMA(code division multiple access), WCDMA(wideband CDMA), UMTS(universal mobile telecommunications system), WiBro(Wireless Broadband), 또는 GSM(Global System for Mobile Communications) 등 중 적어도 하나를 사용하는 셀룰러 통신을 포함할 수 있다. 일 실시예에 따르면, 무선 통신은, 예를 들면, WiFi(wireless fidelity), 블루투스, 블루투스 저전력(BLE), 지그비(Zigbee), NFC(near field communication), 자력 시큐어 트랜스미션(Magnetic Secure Transmission), 라디오 프리퀀시(RF), 또는 보디 에어리어 네트워크(BAN) 중 적어도 하나를 포함할 수 있다. 유선 통신은, 예를 들면, USB(universal serial bus), HDMI(high definition multimedia interface), RS-232(recommended standard232), 전력선 통신, 또는 POTS(plain old telephone service) 등 중 적어도 하나를 포함할 수 있다. 무선 통신 또는 유선 통신이 수행되는 네트워크는 텔레커뮤니케이션 네트워크, 예를 들면, 컴퓨터 네트워크(예: LAN 또는 WAN), 인터넷, 또는 텔레폰 네트워크 중 적어도 하나를 포함할 수 있다.On the other hand, the communication unit 130 may be connected to the external device to communicate through a third device (for example, a repeater, hub, access point, server or gateway, etc.). The wireless communication may be, for example, LTE, LTE Advance (LTE-A), code division multiple access (CDMA), wideband CDMA (WCDMA), universal mobile telecommunications system (UMTS), wireless broadband (WiBro), or global network (GSM). Cellular communication using at least one of the System for Mobile Communications, and the like. According to an embodiment, the wireless communication may include, for example, wireless fidelity (WiFi), Bluetooth, Bluetooth low power (BLE), Zigbee, near field communication (NFC), magnetic secure transmission, and radio. At least one of a frequency (RF) or a body area network (BAN). Wired communication may include, for example, at least one of a universal serial bus (USB), a high definition multimedia interface (HDMI), a recommended standard232 (RS-232), power line communication, or a plain old telephone service (POTS). have. The network in which wireless or wired communication is performed may include at least one of a telecommunication network, for example, a computer network (eg, LAN or WAN), the Internet, or a telephone network.
입력부(140)는 사용자 명령을 입력받기 위한 구성이다. 이때, 입력부(140)는 카메라(141), 마이크(142) 및 터치 패널(143)을 포함할 수 있다.The input unit 140 is a component for receiving a user command. In this case, the input unit 140 may include a camera 141, a microphone 142, and a touch panel 143.
카메라(141)는 전자 장치(100) 주변의 영상 데이터를 획득하기 위한 구성이다. 카메라(141)는 정지 영상 및 동영상을 촬영할 수 있다. 예로, 카메라(141)는 하나 이상의 이미지 센서(예: 전면 센서 또는 후면 센서), 렌즈, 이미지 시그널 프로세서(ISP), 또는 플래시(예: LED 또는 xenon lamp 등)를 포함할 수 있다. 마이크(142)는 전자 장치(100) 주변의 소리를 획득하기 위한 구성이다. 마이크(142)는 외부의 음향 신호를 입력 받아 전기적인 음성 정보를 생성할 수 있다. 마이크(142)는 외부의 음향 신호를 입력 받는 과정에서 발생되는 잡음(noise)를 제거하기 위한 다양한 잡음 제거 알고리즘을 이용할 수 있다. 카메라(141) 또는 마이크(142)를 통해 입력된 이미지 정보 또는 음성 정보는 인공 지능 모델의 입력값으로 입력될 수 있다.The camera 141 is a component for acquiring image data around the electronic device 100. The camera 141 may capture a still image and a video. For example, the camera 141 may include one or more image sensors (eg, a front sensor or a rear sensor), a lens, an image signal processor (ISP), or a flash (eg, an LED or an xenon lamp, etc.). The microphone 142 is a component for acquiring sound around the electronic device 100. The microphone 142 may receive electrical sound signals to generate electrical voice information. The microphone 142 may use various noise removing algorithms for removing noise generated in the process of receiving an external sound signal. Image information or voice information input through the camera 141 or the microphone 142 may be input as an input value of an artificial intelligence model.
터치 패널(143)은 다양한 사용자 입력을 입력 받을 수 있는 구성이다. 터치 패널(143)는 사용자 조작에 의한 데이터를 입력 받을 수 있다. 터치 패널(143)은 후술하는 디스플레이와 결합하여 구성될 수도 있다. The touch panel 143 is a component that can receive various user inputs. The touch panel 143 may receive data by user manipulation. The touch panel 143 may be configured in combination with a display which will be described later.
입력부(140)는 상술한 카메라(141), 마이크(142), 터치 패널(143) 외에도 다양한 데이터를 입력 받기 위한 다양한 구성일 수 있음은 물론이다.The input unit 140 may have various configurations for receiving various data in addition to the camera 141, the microphone 142, and the touch panel 143 described above.
디스플레이(150)는 다양한 영상을 출력하기 위한 구성이다. 다양한 영상을 제공하기 위한 디스플레이(150)는 다양한 형태의 디스플레이 패널로 구현될 수 있다. 예를 들어, 디스플레이 패널은 LCD(Liquid Crystal Display), OLED(Organic Light Emitting Diodes), AM-OLED(Active-Matrix Organic Light-Emitting Diode), LcoS(Liquid Crystal on Silicon) 또는 DLP(Digital Light Processing) 등과 같은 다양한 디스플레이 기술로 구현될 수 있다. 또한, 디스플레이(150)는 플렉서블 디스플레이(flexible display)의 형태로 전자 장치(100)의 전면 영역 및, 측면 영역 및 후면 영역 중 적어도 하나에 결합될 수도 있다.The display 150 is a component for outputting various images. The display 150 for providing various images may be implemented as various types of display panels. For example, display panels can include Liquid Crystal Display (LCD), Organic Light Emitting Diodes (OLED), Active-Matrix Organic Light-Emitting Diode (AM-OLED), Liquid Crystal on Silicon (LcoS), or Digital Light Processing (DLP). It can be implemented in various display technologies such as. In addition, the display 150 may be coupled to at least one of a front region, a side region, and a rear region of the electronic device 100 in the form of a flexible display.
오디오 출력부(160)는 오디오 처리부에 의해 디코딩이나 증폭, 노이즈 필터링과 같은 다양한 처리 작업이 수행된 각종 오디오 데이터뿐만 아니라 각종 알림 음이나 음성 메시지를 출력하는 구성이다. 오디오 처리부는 오디오 데이터에 대한 처리를 수행하는 구성 요소다. 오디오 처리부에서는 오디오 데이터에 대한 디코딩이나 증폭, 노이즈 필터링 등과 같은 다양한 처리가 수행될 수 있다. 오디오 처리부(150)에서 처리된 오디오 데이터는 오디오 출력부(160)로 출력될 수 있다. 특히, 오디오 출력부는 스피커로 구현될 수 있으나, 이는 일 실시 예에 불과할 뿐, 오디오 데이터를 출력할 수 있는 출력 단자로 구현될 수 있다.The audio output unit 160 is configured to output not only various audio data on which various processing tasks such as decoding, amplification, and noise filtering are performed, but also various notification sounds or voice messages. The audio processor is a component that performs processing on audio data. The audio processor may perform various processing such as decoding, amplification, noise filtering, and the like on the audio data. The audio data processed by the audio processor 150 may be output to the audio output unit 160. In particular, the audio output unit may be implemented as a speaker, but this is only an example, and may be implemented as an output terminal capable of outputting audio data.
프로세서(120)는 상술한 바와 같이, 전자 장치(100)의 전반적인 동작을 제어한다. 프로세서(120)는 RAM(121), ROM(122), 메인 CPU(123), 그래픽 처리부(124), 제1 내지 n 인터페이스(125-1 내지 125-n), 버스(126)를 포함할 수 있다. 이때, RAM(121), ROM(122), 메인 CPU(123), 그래픽 처리부(124) 및 제1 내지 n 인터페이스(125-1 내지 125-n) 등은 버스(126)를 통해 서로 연결될 수 있다. As described above, the processor 120 controls the overall operation of the electronic device 100. The processor 120 may include a RAM 121, a ROM 122, a main CPU 123, a graphics processor 124, first to n interface 125-1 to 125-n, and a bus 126. have. In this case, the RAM 121, the ROM 122, the main CPU 123, the graphics processor 124, and the first through n interfaces 125-1 through 125-n may be connected to each other through the bus 126. .
ROM(122)에는 시스템 부팅을 위한 명령어 세트 등이 저장된다. 턴 온 명령이 입력되어 전원이 공급되면, 메인 CPU(123)는 ROM(122)에 저장된 명령어에 따라 메모리에 저장된 O/S를 RAM(121)에 복사하고, O/S를 실행시켜 시스템을 부팅시킨다. 부팅이 완료되면, 메인 CPU(123)는 메모리에 저장된 각종 어플리케이션 프로그램을 RAM(121)에 복사하고, RAM(121)에 복사된 어플리케이션 프로그램을 실행시켜 각종 동작을 수행한다. The ROM 122 stores a command set for system booting. When the turn on command is input and the power is supplied, the main CPU 123 copies the O / S stored in the memory to the RAM 121 according to the command stored in the ROM 122, and executes the O / S to boot the system. Let's do it. When booting is completed, the main CPU 123 copies various application programs stored in the memory to the RAM 121 and executes the application programs copied to the RAM 121 to perform various operations.
구체적으로, 메인 CPU(123)는 제1 메모리(110) 또는 제2 메모리(120)에 액세스하여, 제1 메모리(110) 또는 제2 메모리(120)에 저장된 O/S를 이용하여 부팅을 수행한다. 그리고 메인 CPU(123)는 제1 메모리(110) 또는 제2 메모리(120)에 저장된 각종 프로그램, 컨텐츠, 데이터 등을 이용하여 다양한 동작을 수행한다. In detail, the main CPU 123 accesses the first memory 110 or the second memory 120 to perform booting using an operating system stored in the first memory 110 or the second memory 120. do. The main CPU 123 performs various operations using various programs, contents, data, etc. stored in the first memory 110 or the second memory 120.
제1 내지 n 인터페이스(125-1 내지 125-n) 는 상술한 각종 구성 요소들과 연결된다. 인터페이스들 중 하나는 네트워크를 통해 외부 장치와 연결되는 네트워크 인터페이스가 될 수도 있다.The first to n interfaces 125-1 to 125-n are connected to the various components described above. One of the interfaces may be a network interface connected to an external device through a network.
이하에서는 도 5a 내지 도 11b을 참조하여, 본 개시에 따른 다양한 실시예를 설명한다.Hereinafter, various embodiments according to the present disclosure will be described with reference to FIGS. 5A through 11B.
도 5a 및 도 5b는 본 개시의 일 실시예에 따른 지식 베이스에 저장되는 데이터를 설명하기 위한 예시도이다.5A and 5B are exemplary diagrams for describing data stored in a knowledge base according to an embodiment of the present disclosure.
구체적으로, 도 5a에 도시된 바와 같이, 기 설정된 사용자 음성이 입력되면, 전자 장치(100)는 기 설정된 사용자 명령이 입력된 시점에서 실행중인 어플리케이션 또는 웹 컨텐츠와 관련된 데이터를 지식 베이스(460)에 저장할 수 있다. 예를 들어, "빅스비! 기억해!"(510)와 같은 사용자 명령이 입력되면, 전자 장치(100)는 기 설정된 사용자 음성이 입력된 시점에서 실행중인 어플리케이션 또는 웹 컨텐츠와 관련된 데이터를 지식 베이스(460)에 저장할 수 있다. 이때, 기 설정된 사용자 음성이 입력된 시점이란, 사용자 음성이 입력된 시점 전후의 기 설정된 시간을 의미할 수 있다.In detail, as illustrated in FIG. 5A, when a preset user voice is input, the electronic device 100 transmits data related to an application or web content that is executed at a time when a preset user command is input to the knowledge base 460. Can be stored. For example, when a user command such as “bixby! Remember!” 510 is input, the electronic device 100 may store data related to an application or web content that is running at a point in time when a preset user voice is input. 460). In this case, the time when the preset user voice is input may mean a preset time before and after the time when the user voice is input.
한편, 도 5b에 도시된 바와 같이, 전자 장치(100)에 구비된 버튼(520)을 푸쉬하는 동작이 감지되면, 전자 장치(100)는 기 설정된 사용자 명령이 입력된 시점에서 실행중인 어플리케이션 또는 웹 컨텐츠와 관련된 데이터를 지식 베이스(460)에 저장할 수 있다. 이때, 전자 장치(100)에 구비된 버튼(520)을 푸쉬하는 방법은 다양할 수 있다. 예를 들어, 버튼(520)을 기 설정된 시간(예를 들어 2초) 푸쉬하는 동작, 버튼(520)을 기 설정된 횟수(예를 들어, 3회)만큼 푸쉬하는 동작에 의해, 전자 장치(100)는 해당 동작이 감지된 시점에서 실행중인 어플리케이션 또는 웹 컨텐츠와 관련된 데이터를 지식 베이스(460)에 저장할 수 있다.Meanwhile, as illustrated in FIG. 5B, when an operation of pushing the button 520 provided in the electronic device 100 is detected, the electronic device 100 may execute an application or web running at a time when a preset user command is input. Data related to the content may be stored in the knowledge base 460. In this case, a method of pushing the button 520 provided in the electronic device 100 may vary. For example, the electronic device 100 may be pushed by pushing the button 520 for a preset time (for example, 2 seconds) and pushing the button 520 for a preset number of times (for example, 3 times). ) May store data related to an application or web content running at the time when the corresponding motion is detected in the knowledge base 460.
다만, 도 5a 및 도 5b의 실시예에 한정되는 것은 아니며, 지식 베이스(460)에 데이터를 저장하기 위한 동작은 다양할 수 있다. 예를 들어, 전자 장치(100)는 실행되는 어플리케이션 또는 웹 컨텐츠 중 특정 조건을 만족하는 경우, 해당 어플리케이션 또는 웹 컨텐츠와 관련된 데이터를 지식 베이스(460)에 저장할 수 있다. 이때, 특정 조건이라, 예를 들어 기 설정된 횟수만큼 어플리케이션 또는 웹 컨텐츠를 사용하는 조건일 수 있다. 또는, 특정 조건이란 기 설정된 시간 동안 어플리케이션 또는 웹 컨텐츠를 사용하는 조건일 수 있다. 또는, 특정 조건이란 전자 장치(100)가 감지하는 모든 어플리케이션 또는 웹 컨텐츠의 사용 조건일 수 있다. 또는, 특정 조건이란, 특정 웹 컨텐츠를 북마크 하는 터치 입력과 관련된 조건일 수 있다.However, the present invention is not limited to the embodiments of FIGS. 5A and 5B, and operations for storing data in the knowledge base 460 may vary. For example, when the electronic device 100 satisfies a specific condition among executed applications or web content, the electronic device 100 may store data related to the corresponding application or web content in the knowledge base 460. In this case, the specific condition may be, for example, a condition of using an application or web content a predetermined number of times. Alternatively, the specific condition may be a condition of using an application or web content for a predetermined time. Alternatively, the specific condition may be a use condition of all applications or web content detected by the electronic device 100. Alternatively, the specific condition may be a condition related to a touch input for bookmarking specific web content.
도 6은 본 개시의 일 실시예에 따른, 지식 베이스에 저장되는 데이터의 도메인(또는 카테고리)를 분류하는 방법을 설명하기 위한 예시도이다.6 is an exemplary diagram for describing a method of classifying domains (or categories) of data stored in a knowledge base according to an embodiment of the present disclosure.
상술한 실시예에 따라, 지식 베이스(460)에 저장하기 위한 어플리케이션 또는 웹 컨텐츠와 관련된 데이터가 결정되면, 전자 장치(100)는 결정된 데이터의 도메인(또는 카테고리)를 판단할 수 있다. According to the above-described embodiment, when data related to an application or web content for storing in the knowledge base 460 is determined, the electronic device 100 may determine a domain (or category) of the determined data.
구체적으로, 전자 장치(100)는 실행중인 어플리케이션 또는 웹 컨텐츠의 내용을 바탕으로 도메인을 결정할 수 있다.In detail, the electronic device 100 may determine a domain based on the content of the running application or the web content.
예를 들어, 도 6에 도시된 바와 같이, 전자 장치(100)가 브라우저 어플리케이션에서 뉴스 기사를 실행하는 경우, 전자 장치(100)는 실행되는 뉴스 기사의 내용을 바탕으로 도메인을 결정할 수 있다. 이때 결정되는 도메인은 예를 들어 IT 도메인일 수 있다. For example, as shown in FIG. 6, when the electronic device 100 executes a news article in a browser application, the electronic device 100 may determine a domain based on the content of the executed news article. The domain determined at this time may be, for example, an IT domain.
또는, 전자 장치(100)가 게임 어플리케이션을 실행하는 경우, 전자 장치(100)는 실행되는 게임 어플리케이션을 바탕으로 도메인을 결정할 수 있다. 이때 결정되는 도메인은 예를 들어 스포츠 도메인일 수 있다.Alternatively, when the electronic device 100 executes a game application, the electronic device 100 may determine a domain based on the game application to be executed. The domain determined at this time may be, for example, a sports domain.
또는, 전자 장치(100)가 결제 내역과 관련된 어플리케이션을 실행하는 경우, 전자 장치(100)는 결제 내역을 바탕으로 도메인을 결정할 수 있다. 예를 들어 결제 내역 중 자주 가는 음식점이 다수 존재하는 경우, 결정되는 도메인은 맛집 도메인일 수 있다.Alternatively, when the electronic device 100 executes an application related to the payment details, the electronic device 100 may determine a domain based on the payment details. For example, if there are many restaurants that go frequently in the payment details, the determined domain may be a restaurant domain.
한편, 도메인은 지식 베이스(460)에 저장될 수 있다. 이때, 새로운 도메인이 추가될 필요가 있는 경우, 전자 장치(100)는 어플리케이션 또는 웹 컨텐츠와 관련된 데이터에 대응되는 새로운 도메인을 추가할 수 있음은 물론이다. 이때, 추가되는 도메인은 외부 서버에 저장된 도메인 중 하나일 수 있다. 도메인은 사용자 명령에 의해 추가되거나 삭제될 수 있음은 물론이다.Meanwhile, the domain may be stored in the knowledge base 460. In this case, when a new domain needs to be added, the electronic device 100 may add a new domain corresponding to data related to an application or web content. In this case, the added domain may be one of domains stored in an external server. Of course, the domain can be added or deleted by user command.
한편, 기 설정된 시간 동안 지식 베이스(460)내의 도메인 중 하나의 도메인에 추가되는 데이터가 없는 경우, 전자 장치(100)는 해당 도메인을 삭제할 수 있다. 즉, 전자 장치(100)는 사용되지 않는 도메인을 삭제하여 메모리를 절약할 수 있다. Meanwhile, when there is no data added to one of the domains in the knowledge base 460 for a preset time, the electronic device 100 may delete the corresponding domain. That is, the electronic device 100 may save the memory by deleting the unused domain.
한편, 전자 장치(100)는, 데이터가 저장된 순서대로 도메인을 편집할 수 있다. 즉, 전자 장치(100)는 각각의 도메인에 저장된 데이터의 크기 또는 수에 따라 도메인의 우선순위를 결정할 수 있다. 예를 들어, 도 6에 도시된 바와 같이, 도메인에 저장된 데이터의 크기 또는 수가 맛집 도메인, 영화 도메인, IT 도메인, 스포츠 도메인 순인 경우, 전자 장치(100)는 맛집 도메인, 영화 도메인, IT 도메인, 스포츠 도메인의 순서로 우선순위를 부여할 수 있다. 전자 장치(100)는 사용자 음성이 입력되면 우선순위에 따라 사용자 음성에 대한 답변을 출력할 수 있다. Meanwhile, the electronic device 100 may edit domains in the order in which data is stored. That is, the electronic device 100 may determine the priority of domains according to the size or number of data stored in each domain. For example, as illustrated in FIG. 6, when the size or number of data stored in the domain is in the order of a restaurant domain, a movie domain, an IT domain, and a sports domain, the electronic device 100 may serve as a restaurant domain, a movie domain, an IT domain, or a sport. Priority can be given in order of domain. When the user's voice is input, the electronic device 100 may output an answer for the user's voice according to the priority.
도 7은 본 개시의 일 실시예에 따른 도메인 관리 방법을 설명하기 위한 예시도이다.7 is an exemplary view for explaining a domain management method according to an embodiment of the present disclosure.
전자 장치(100)는 도 5a 내지 도 6에 따른 다양한 실시예에 따라 지식 베이스(460)에 다양한 데이터를 저장할 수 있다. 이때, 지식 베이스(460)에 저장되는 데이터가 많아진 경우, 전자 장치(100)는 저장된 데이터 중 일부를 제거하여 메모리 공간을 확보할 수 있다. 예를 들어, 전자 장치(100)는 먼저 저장된 데이터를 먼저 삭제할 수 있다. 또는, 전자 장치(100)는 사용 횟수가 적은 데이터를 먼저 삭제할 수 있다. The electronic device 100 may store various data in the knowledge base 460 according to various embodiments of FIGS. 5A through 6. In this case, when the data stored in the knowledge base 460 increases, the electronic device 100 may remove some of the stored data to secure a memory space. For example, the electronic device 100 may first delete the stored data. Alternatively, the electronic device 100 may first delete data having a low number of uses.
한편, 전자 장치(100)는 데이터 중 일부를 제거할 수 있을 뿐만 아니라, 데이터를 외부 서버로 전송할 수도 있다. 즉, 전자 장치(100)는 개인 클라우드 서버와 같은 외부 서버로 오래된 데이터(또는 사용되지 않는 데이터)를 전송하여 전자 장치(100)의 메모리 공간을 확보할 수 있다.Meanwhile, the electronic device 100 may not only remove some of the data but also transmit the data to an external server. That is, the electronic device 100 may secure the memory space of the electronic device 100 by transmitting old data (or unused data) to an external server such as a personal cloud server.
도 8은 본 개시의 일 실시예에 따른, 지식 베이스에 저장되는 데이터를 획득하는 방법을 설명하기 위한 예시도이다. 8 is an exemplary diagram for describing a method of obtaining data stored in a knowledge base according to an embodiment of the present disclosure.
어플리케이션 등이 실행되는 경우, 전자 장치(100)는 실행되는 어플리케이션의 명칭, 어플리케이션에서 실행되는 컨텐츠 명칭 및 어플리케이션에서 실행되는 기능을 획득하여 지식 베이스(460)에 저장할 수 있다.When the application is executed, the electronic device 100 may obtain the name of the application to be executed, the content name to be executed in the application, and the function to be executed in the application to be stored in the knowledge base 460.
구체적으로, 전자 장치(100)는 어플리케이션 또는 웹 컨텐츠에서 식별한 데이터를 텍스트화 하고, 토큰화(Tokenization)할 수 있다. 토큰화란 텍스트를 단어 단위로 분류하는 작업을 의미한다. 토근화가 완료되면, 전자 장치(100)는 POS(Part Of Speech Tagging)을 수행한다. POS란 텍스트 내 단어들의 품사를 식별하여 태그를 붙여주는 작업을 의미한다. 전자 장치(100)는 텍스트를 파싱하고, 기 설정된 제외어(Stop word)를 제거 할 수 있다. 제외어를 제거한 후, 전자 장치(100)는 표제어를 결정(Lemmatisation)할 수 있다. 표제어 결정은 단어의 보조 정리 또는 사전 형식으로 식별되는 단일 항목으로 분석 될 수 있도록 단어의 굴절 형태를 그룹화하는 과정을 의미한다. 상술한 과정을 거쳐, 전자 장치(100)는 어플리케이션 명칭, 컨텐츠 명칭 및 기능 명칭을 획득하고, 지식 베이스(460)에 저장할 수 있다. In detail, the electronic device 100 may textify and tokenize data identified in the application or the web content. Tokenization refers to the task of classifying text into words. When the tokenization is completed, the electronic device 100 performs Part Of Speech Tagging (POS). POS refers to the task of identifying and tagging parts of speech in text. The electronic device 100 may parse the text and remove the preset stop word. After removing the negative word, the electronic device 100 may determine the headword. Heading determination refers to the process of grouping the refraction forms of a word so that it can be analyzed as a single item identified in the auxiliary theorem or dictionary form of the word. Through the above-described process, the electronic device 100 may obtain an application name, a content name, and a function name and store it in the knowledge base 460.
예를 들어, 전자 장치(100)가 웹 페이지에서 뉴스 기사를 실행하고 있는 경우를 가정할 수 있다. 이때, 전자 장치(100)는 해당 뉴스의 원본 문장(예를 들어, Samsung research has AI Center.)을 획득할 수 있다. 전자 장치는 토큰화, POS 등을 통해 원분 문장을 분리할 수 있다. 예를 들어, 원본 문장은 "(Samsung research)-명사구, (has)-동사, (AI Center)-명사구"와 같이 분류될 수 있다. 전자 장치(100)는 분리된 문장으로부터 튜플(Tuple)을 생성하고, 이를 일반화 하여 튜플 구조를 지식 베이스(460)에 저장할 수 있다. 예를 들어 생성되는 튜플이 "Samsung research, AI Center, have"인 경우, 전자 장치(100)는, "Samsung research, AI Center, have", "Samsung research, AI Center, contain", "Samsung research, AI Center, include"와 같은 데이터를 지식 베이스(460)에 저장할 수 있다.For example, it may be assumed that the electronic device 100 is executing a news article on a web page. In this case, the electronic device 100 may obtain an original sentence (eg, Samsung research has AI Center.) Of the news. The electronic device may separate raw sentences through tokenization, POS, and the like. For example, the original sentence may be classified as "(Samsung research) -noun phrase, (has) -verb, (AI Center) -noun phrase". The electronic device 100 may generate a tuple from the separated sentence, generalize it, and store the tuple structure in the knowledge base 460. For example, if the generated tuple is "Samsung research, AI Center, have", the electronic device 100 is "Samsung research, AI Center, have", "Samsung research, AI Center, contain", "Samsung research, Data such as AI Center, include "may be stored in the knowledge base 460.
한편, 상술한 바와 같이 지식 베이스(460)에 저장되는 데이터는 특정 상황에서 생성될 수 있다. 예를 들어, 지식 베이스(460)에 저장되는 데이터는 전자 장치에 사용자 명령이 입력되지 않는 경우, 전자 장치(100)가 충전 중인 경우, 또는 새벽 시간(예를 들어 오전 0시부터 오전 6시 사이)등의 조건 중 어느 하나의 조건을 만족하는 경우 생성될 수 있다. 즉, 지식 베이스(460)에 저장되는 데이터를 사용자가 전자 장치(100)를 사용하지 않는 상황에서 생성하여 전자 장치(100)를 효율적으로 사용할 수 있다.Meanwhile, as described above, data stored in the knowledge base 460 may be generated in a specific situation. For example, the data stored in the knowledge base 460 may be stored when the user command is not input to the electronic device, when the electronic device 100 is being charged, or at dawn (for example, between 0 am and 6 am). It may be generated when any one of the conditions, such as). That is, the data stored in the knowledge base 460 may be generated in a situation where the user does not use the electronic device 100 to efficiently use the electronic device 100.
이하에서는 도 5a 내지 도 8의 실시예에 의해 지식 베이스(460)에 데이터가 저장된 상태에서 사용자 질문이 입력된 경우, 사용자 질문에 대한 응답을 출력하는 방법에 대하여 설명한다.Hereinafter, a method of outputting a response to a user question when a user question is input while data is stored in the knowledge base 460 according to the embodiments of FIGS. 5A to 8 will be described.
사용자 질문이 입력되면, 전자 장치(100)는 사용자 질문의 의도를 파악할 수 있다. 구체적으로, 전자 장치(100)는 자연어 이해부(420)를 통해 사용자 음성에 대한 의도를 파악할 수 있다. 전자 장치(100)는 사용자 음성에 대한 의도와 지식 베이스(460)에 저장된 도메인을 바탕으로 사용자 음성에 대한 의도에 적합한 도메인을 판단할 수 있다. 구체적으로, 전자 장치(100)는 파악된 사용자 의도 및 지식 베이스(460)에 저장된 복수의 도메인의 유사도를 판단하여, 사용자 의도와 가장 유사한 도메인을 판단할 수 있다. 전자 장치(100)는 판단된 도메인에 포함된 데이터와 사용자 음성에 대한 의도를 바탕으로 사용자 의도에 대한 결과값을 출력할 수 있다. 구체적으로, 전자 장치(100)는 파악된 사용자 의도 및 판단된 도메인에 포함된 복수의 데이터의 유사도를 판단하여, 사용자 의도와 가장 유사한 데이터를 판단할 수 있다. 전자 장치(100)는 판단된 데이터를 바탕으로 사용자 질문에 대한 답변을 출력할 수 있다.When the user question is input, the electronic device 100 may determine the intention of the user question. In detail, the electronic device 100 may determine the intention of the user's voice through the natural language understanding unit 420. The electronic device 100 may determine a domain suitable for the intention of the user voice based on the intention of the user voice and the domain stored in the knowledge base 460. In detail, the electronic device 100 may determine the domains most similar to the user intentions by determining similarities between the identified user intentions and the plurality of domains stored in the knowledge base 460. The electronic device 100 may output a result value for the user intention based on the data included in the determined domain and the intention for the user voice. In detail, the electronic device 100 may determine similarity between the identified user intention and the plurality of data included in the determined domain, and may determine the data most similar to the user intention. The electronic device 100 may output an answer to a user question based on the determined data.
도 9 내지 도 11b는 본 개시에 따른 다양한 실시예를 설명하기 위한 예시도이다.9 through 11B are exemplary diagrams for describing various embodiments according to the present disclosure.
도 9는 본 개시의 일 실시예에 따른, 전자 장치가 어플리케이션 조작을 바탕으로 사용자 음성에 대한 질문을 출력하는 방법을 설명하기 위한 예시도이다.9 is an exemplary diagram for describing a method of outputting a question about a user's voice based on an application operation by an electronic device according to an embodiment of the present disclosure.
상술한 바와 같이, 전자 장치(100)는 다양한 어플리케이션 또는 웹 컨텐츠의 사용을 바탕으로 획득된 데이터를 지식 베이스(460)에 저장할 수 있다. 즉, 전자 장치(100)는 어플리케이션 또는 웹 컨텐츠를 바탕으로 도메인 및 지식 베이스(460)에 저장된 데이터를 결정할 수 있다. 예를 들어, 전자 장치(100)가 웹 브라우저의 뉴스 기사를 실행한 경우, 전자 장치(100)는 뉴스 기사를 분석하여 도메인을 IT 도메인으로 결정하고, "삼성 전자, OO원, 영업이익"과 같은 데이터를 획득하여 지식 베이스(460)에 저장할 수 있다. 또 다른 예로, 전자 장치(100)가 영화 예매 어플리케이션을 실행한 경우, 전자 장치(100)는 영화 어플리케이션을 바탕으로 도메인을 영화 도메인으로 결정하고, "영화 이름, 영화 어플리케이션 이름, 예매"와 같은 데이터를 저장할 수 있다. 또는, 전자 장치(100)는 영화 어플리케이션을 바탕으로 "영화관, 영화관 위치, 영화관 이름" 과 같은 데이터를 저장할 수 있다. 또는 전자 장치(100)는 영화 어플리케이션을 바탕으로 "영화 티켓, 영화 티켓의 수량"과 같은 데이터를 저장할 수 있다. 또 다른 예로, 전자 장치(100)가 결제 내역과 관련된 어플리케이션을 실행한 경우, 전자 장치(100)는 결제 내역을 분석하여 "음식점 이름, 가격, 기능(결제, 취소 등)"을 저장할 수 있다. As described above, the electronic device 100 may store data obtained based on the use of various applications or web contents in the knowledge base 460. That is, the electronic device 100 may determine data stored in the domain and the knowledge base 460 based on the application or the web content. For example, when the electronic device 100 executes a news article of a web browser, the electronic device 100 analyzes the news article to determine the domain as the IT domain, and selects "Samsung Electronics, OO Won, Operating Profit". The same data may be obtained and stored in the knowledge base 460. As another example, when the electronic device 100 executes the movie booking application, the electronic device 100 determines the domain as the movie domain based on the movie application, and the data such as "movie name, movie application name, advance reservation". Can be stored. Alternatively, the electronic device 100 may store data such as "a movie theater, a movie theater location, a movie theater name" based on a movie application. Alternatively, the electronic device 100 may store data such as "movie ticket, quantity of movie tickets" based on the movie application. As another example, when the electronic device 100 executes an application related to payment details, the electronic device 100 may analyze the payment details and store "restaurant name, price, function (payment, cancellation, etc.)".
지식 베이스(460)에 데이터가 저장된 상태에서, "토요일 OOO 영화 몇 시가 좋지?"라는 사용자 음성이 입력되면, 전자 장치(100)는 사용자 음성을 바탕으로 적절한 답변을 출력할 수 있다. 예를 들어, 전자 장치(100)는 캘린더 어플리케이션으로부터 획득된 정보를 바탕으로 토요일 오후 2시 이후에 사용자의 일정이 없음을 확인하고, 지식 베이스(460)에 저장된 정보를 바탕으로 사용자는 주로 OOO 어플리케이션으로 영화 예약을 하는 것을 확인하여, "OOO영화관에서 오후 2시 30분이 좋습니다. OOO 어플리케이션으로 2매 예매하시겠습니까?"와 같은 답변을 출력할 수 있다. 이때, 전자 장치(100)는 영화 어플리케이션을 통해 사용자가 선호하는 좌석, 예매하는 영화표의 수량, 영화관의 위치와 관련된 정보를 획득하고, 사용자에게 적절한 위치의 영화관 및 좌석을 예매할 수 있다.When data is stored in the knowledge base 460, when a user voice of "Saturday OOO movie is good?" Is input, the electronic device 100 may output an appropriate answer based on the user voice. For example, the electronic device 100 confirms that the user does not have a schedule after 2 pm on the basis of the information obtained from the calendar application, and based on the information stored in the knowledge base 460, the user mainly uses the OOO application. After confirming that the movie reservation is made, it is possible to print out an answer such as "2:30 pm at the OOO cinema. In this case, the electronic device 100 may obtain information related to a seat preferred by the user, a quantity of movie tickets to be reserved, and a location of a movie theater through a movie application, and reserve a movie theater and a seat of a proper location to the user.
도 10a 및 도 10b는 본 개시의 또 다른 실시예에 따른, 사용자의 어플리케이션 조작을 추천하는 방법을 설명하기 위한 예시도이다.10A and 10B are exemplary diagrams for describing a method of recommending a user's application operation according to another exemplary embodiment of the present disclosure.
도 10a에 도시된 바와 같이, 전자 장치(100)는 영화 어플리케이션을 통해 영화를 예매하고, 영화 예매 내용을 다른 사용자에게 공유하는 일련의 동작을 저장하기 위한 사용자 명령(예를 들어, "빅스비 기억해!")을 입력 받을 수 있다. 구체적으로, 전자 장치(100)는 영화 어플리케이션을 통해 영화 예매 후 예매 화면을 캡쳐하고, 채팅 어플리케이션을 통해 다른 사용자에게 공유하는 일련의 동작을 지식 베이스(460)에 저장할 수 있다. 이후, 도 10b에 도시된 바와 같이, 영화 어플리케이션을 통해 예매 화면이 실행되면, 전자 장치(100)는 채팅 어플리케이션을 통해 다른 사용자에게 해당 예매 화면을 공유할 것을 추천할 수 있다. 즉, 전자 장치(100)는 하나의 어플리케이션 또는 웹 컨텐츠와 관련된 데이터를 지식 베이스(460)에 저장할 수 있을 뿐만 아니라, 복수의 어플리케이션 또는 복수의 웹 컨텐츠와 관련된 하나의 데이터를 지식 베이스(460)에 저장할 수 있다. 즉, 전자 장치(100)는 어플리케이션 또는 웹 컨텐츠 자체에 포함된 데이터를 저장할 수 있을 뿐만 아니라, 어플리케이션 또는 웹 컨텐츠에 입력된 복수의 사용자 명령(예를 들어, 영화 예매, 사진 공유 등)을 지식 베이스(460)에 저장하고, 저장된 복수의 사용자 명령 중 일부가 입력되면, 복수의 사용자 명령 중 입력되지 않은 사용자 명령을 추천해 줄 수 있음은 물론이다.As shown in FIG. 10A, the electronic device 100 reserves a user command (for example, "bixby memorizes") to store a series of operations for booking a movie through a movie application and sharing the movie reservation content to another user. ! ") Can be entered. In detail, the electronic device 100 may capture a reservation screen after booking a movie through a movie application, and store a series of operations shared to other users through the chat application in the knowledge base 460. Thereafter, as illustrated in FIG. 10B, when the booking screen is executed through the movie application, the electronic device 100 may recommend sharing the booking screen to other users through the chat application. That is, the electronic device 100 may not only store data related to one application or web content in the knowledge base 460, but also store one data related to a plurality of applications or web content in the knowledge base 460. Can be stored. That is, the electronic device 100 may not only store data included in the application or the web content itself, but may also store a plurality of user commands (for example, movie reservation, photo sharing, etc.) input to the application or the web content. If some of the plurality of user commands stored in 460 are stored, the user command may be recommended.
도 11a 및 도 11b는 본 개시에 따른 다양한 실시예를 설명하기 위한 예시도이다. 11A and 11B are exemplary views for describing various embodiments according to the present disclosure.
도 11a에 도시된 바와 같이, "OOO 재생해줘"라는 사용자 명령이 입력되면, 전자 장치(100)는 지식 베이스(460)에 OOO 컨텐츠와 관련된 데이터를 검색할 수 있다. 이때, 사용자가 OOO 컨텐츠를 6화까지 시청하고, 특정 어플리케이션을 통해 시청한 기록이 지식 베이스(460)에 저장되어 있는 경우, 전자 장치(100)는 "6화까지 시청하셨습니다. OOO 어플리케이션으로 7화를 재생할까요?"라는 답변을 출력할 수 있다. As illustrated in FIG. 11A, when a user command of “OOO play” is input, the electronic device 100 may search for data related to OOO content in the knowledge base 460. At this time, when the user watches up to 6 episodes of the OOO content and the record viewed through the specific application is stored in the knowledge base 460, the electronic device 100 viewed up to 6 episodes. Do you want to play it? "
한편, 도 11b에 도시된 바와 같이, "딸 사진을 보여줘" 라는 사용자 명령이 입력되면, 전자 장치(100)는 "어제 찍은 사진이 있어요. 와이프님께 OO 어플리케이션을 통해 보낼까요? 와 같은 답변을 출력할 수 있다. 즉, 전자 장치(100)는 사용자의 질문에 대한 답변(딸 사진 검색) 뿐만 아니라 사용자가 지시하지 않은 추가 액션을 추천할 수 있다. 이 경우, 지식 베이스(460)에는 사용자가 딸 사진을 검색한 후 와이프에게 OO 어플리케이션을 통해 전송하는 일련의 동작과 관련된 데이터가 저장되어 있을 수 있다. On the other hand, as shown in Figure 11b, when the user command "show the daughter picture" is input, the electronic device 100 outputs a response such as "I have a picture taken yesterday. Send to the wife through the OO application?" In other words, the electronic device 100 may not only answer the user's question (daughter photo search) but also recommend additional actions not instructed by the user, in this case, the knowledge base 460 may include the user's daughter. There may be data associated with a series of actions that a picture is retrieved and sent to the wipe through an OO application.
한편, 상술한 바와 같이 사용자 음성에 대응되는 사용자의 의도를 파악하고, 사용자 의도에 대한 결과 데이터에 대응되는 자연어를 생성하는 것은 전자 장치(100)에 의해 수행될 수 있으나 이에 한정되는 것은 아니다. 즉, 도 12에 도시된 바와 같이, 사용자 음성에 대응되는 사용자의 의도를 파악하고, 사용자 의도에 대한 결과 데이터에 대응되는 자연어를 생성하는 것은 서버(200)에 의해 수행될 수 있음은 물론이다. 즉, 사용자 음성이 입력되면, 전자 장치(100)는 사용자 음성을 서버(200)로 전송하고, 서버(200)는 수신한 사용자 음성에 대응되는 사용자의 의도를 파악하고, 사용자 의도에 대한 결과 데이터에 대응되는 자연어를 생성하여 전자 장치(100)로 전송할 수 있음은 물론이다.Meanwhile, as described above, the intention of the user corresponding to the user voice and the generation of the natural language corresponding to the result data of the user intention may be performed by the electronic device 100, but is not limited thereto. That is, as shown in FIG. 12, it is a matter of course that the intention of the user corresponding to the user voice and the generation of the natural language corresponding to the result data of the user intention may be performed by the server 200. That is, when a user voice is input, the electronic device 100 transmits the user voice to the server 200, and the server 200 identifies the user's intention corresponding to the received user voice and results data on the user's intention. Of course, the natural language corresponding to the control unit may be generated and transmitted to the electronic device 100.
도 13은 본 개시의 일 실시예에 따른 전자 장치 및 서버의 동작을 설명하기 위한 시스템도이다.13 is a system diagram for describing an operation of an electronic device and a server according to an exemplary embodiment of the present disclosure.
상술한 실시예에서는 전자 장치(100)가 지식 베이스(460)을 바탕으로 답변을 출력하는 방법에 대하여 설명하였으나, 이에 한정되는 것은 아니다. 즉, 전자 장치(100)는 사용자 음성에 대응되는 복수의 답변 후보를 서버(200)로부터 수신하고, 수신된 복수의 답변 후보 및 지식 베이스(460)에 저장된 데이터를 바탕으로 사용자 음성에 대한 답변을 출력할 수 있음은 물론이다.In the above-described embodiment, a method of outputting an answer based on the knowledge base 460 by the electronic device 100 has been described, but is not limited thereto. That is, the electronic device 100 receives a plurality of answer candidates corresponding to the user's voice from the server 200, and responds to the user's voice based on the plurality of answer candidates and the data stored in the knowledge base 460. You can of course output.
먼저, 전자 장치(100)는 사용자 음성을 입력 받을 수 있다(S1410). 사용자 음성을 입력 받은 경우, 전자 장치(100)는 입력된 사용자 음성에 대한 음성 인식을 수행할 수 있다(S1420). 구체적으로, 음성 인식은 자동 음성 인식부(410)를 통해 수행될 수 있다.First, the electronic device 100 may receive a user voice in operation S1410. When the user voice is input, the electronic device 100 may perform voice recognition on the input user voice (S1420). In detail, the voice recognition may be performed through the automatic voice recognition unit 410.
전자 장치(100)는 음성 인식 결과를 바탕으로 사용자 음성의 의도를 파악할 수 있다(S1430). 전자 장치(100)는 파악된 사용자 음성의 의도를 외부 서버(200)로 전송할 수 있다(S1440).The electronic device 100 may determine the intention of the user's voice based on the voice recognition result in operation S1430. The electronic device 100 may transmit the determined intention of the user's voice to the external server 200 (S1440).
서버(200)는 사용자 음성의 의도를 바탕으로 사용자 음성의 의도에 대한 복수의 답변 후보를 획득할 수 있다(S1450). 이때, 서버(200)는, 서버(200)에 포함된 데이터 베이스를 바탕으로 복수의 답변 후보를 획득할 수 있다. 구체적으로, 서버(200)는 사용자 음성의 의도와 데이터 베이스에 포함된 복수의 데이터를 인공 지능 모델에 입력하여, 사용자 음성의 의도와 유사한 데이터를 답변 후보로 획득할 수 있다. 예를 들어, 사용자 음성의 의도가 영화 추천인 경우, 서버(200)는 현재 개봉 중인 영화 순위와 관련된 답변 후보, 장르별 영화 순위와 관련된 답변 후보와 같은 답변 후보를 획득할 수 있다. The server 200 may obtain a plurality of answer candidates for the intention of the user's voice based on the intention of the user's voice (S1450). In this case, the server 200 may obtain a plurality of answer candidates based on a database included in the server 200. In detail, the server 200 may input the intention of the user's voice and a plurality of data included in the database into the artificial intelligence model to obtain data similar to the intention of the user's voice as the answer candidate. For example, if the intention of the user's voice is a movie recommendation, the server 200 may obtain an answer candidate such as an answer candidate related to a movie ranking currently being released and an answer candidate related to a movie ranking by genre.
서버(200)는 획득된 복수의 답변 후보를 전자 장치(100)로 전송할 수 있다(S1460). 전자 장치(100)는 지식 베이스(460)에 저장된 데이터와 수신한 복수의 답변 후보들 간의 유사도를 바탕으로 최종 답변을 결정할 수 있다(S1470). 구체적으로, 전자 장치(100)는 지식 베이스(460)에 저장된 데이터와 수신한 복수의 답변 후보 데이터를 인공 지능 모델에 입력하여 사용자 음성의 의도와 가장 유사한 도메인을 판단하고, 판단된 도메인에 포함된 데이터 중 사용자 음성의 의도와 유사한 데이터를 최종 답변으로 결정할 수 있다. 예를 들어, 전자 장치(100)가 서버로부터 현재 개봉 중인 영화 순위와 관련된 답변 후보 및 장르별 영화 순위와 관련된 답변 후보인 경우, 전자 장치(100)는 수신한 답변 후보로부터 복수의 도메인 중 영화 도메인을 결정하고, 영화 도메인에 포함된 데이터 중, 사용자 질문의 의도와 유사한 영화를 추천할 수 있다. 예를 들어, 지식 베이스(460)의 영화 도메인에 영화 어플리케이션을 통해 영화를 예매하는 정보 및, 액션 영화와 관련된 정보가 포함된 경우, 전자 장치(100)는 현재 개봉 중인 영화 중에서 액션 영화를 예매하기 위한 답변을 출력할 수 있다. 또는, 현재 개봉 중인 영화 중 액션 영화가 없는 경우, 전자 장치(100)는 현재 개봉 중인 영화 중 예매 수가 가장 많은 영화를 예매하기 위한 답변을 출력할 수 있다. 또는, 현재 개봉 중인 영화 중 액션 영화가 없는 경우, 전자 장치(100)는 액션 영화 장르에서 조회수가 가장 높은 영화를 다운받거나, 시청할 것을 추천하는 답변을 출력할 수 있다. 즉, 전자 장치(100)는 판단된 도메인에 포함된 데이터와 복수의 답변 후보간의 유사도에 따라 사용자 질문에 대한 답변을 추천할 수 있다.The server 200 may transmit the obtained plurality of answer candidates to the electronic device 100 (S1460). The electronic device 100 may determine a final answer based on the similarity between the data stored in the knowledge base 460 and the received plurality of answer candidates in operation S1470. Specifically, the electronic device 100 inputs the data stored in the knowledge base 460 and the received plurality of answer candidate data to the artificial intelligence model to determine a domain most similar to the intention of the user's voice, and is included in the determined domain. Of the data, data similar to the intention of the user's voice may be determined as the final answer. For example, when the electronic device 100 is an answer candidate related to a movie ranking currently being released from a server and an answer candidate related to a movie ranking by genre, the electronic device 100 selects a movie domain among a plurality of domains from the received response candidate. Determine and recommend a movie similar to the intention of the user question, among the data contained in the movie domain. For example, when the movie domain of the knowledge base 460 includes information for reserving a movie through a movie application and information related to an action movie, the electronic device 100 may reserve an action movie among the currently open movies. You can print out the answer. Alternatively, when there is no action movie among the currently open movies, the electronic device 100 may output an answer for booking the movie with the highest number of tickets currently being opened. Alternatively, when there is no action movie among the currently open movies, the electronic device 100 may output an answer recommending to download or watch the movie with the highest number of views in the action movie genre. That is, the electronic device 100 may recommend an answer to a user question according to the similarity between the data included in the determined domain and the plurality of answer candidates.
전자 장치(100)는 자연어 생성부(440) 및 TTS(450)을 이용하여 사용자 음성에 대한 자연어 응답을 출력할 수 있다(S1480).The electronic device 100 may output a natural language response to the user's voice using the natural language generator 440 and the TTS 450 (S1480).
한편, 도 13의 실시예에서는 음성 인식을 전자 장치(100)가 수행하는 것으로 설명하였으나, 이에 한정되는 것은 아니다. 예를 들어 전자 장치(100)는 지식 베이스(460) 및 복수의 답변 후보와 지식 베이스(460)의 데이터간의 유사도를 계산하기 위한 인공 지능 모델만을 포함할 수 있다. 이 경우, 전자 장치(100)는 사용자 음성을 서버(200)로 전송하여 서버(200)가 음성 인식, 대화관리, 자연어 생성 등을 처리하고, 전자 장치(100)는 복수의 답변 후부 중 최종 답변 후보만을 결정할 수 있음은 물론이다.Meanwhile, although the electronic device 100 performs voice recognition in the embodiment of FIG. 13, the present invention is not limited thereto. For example, the electronic device 100 may include only an artificial intelligence model for calculating a similarity between the knowledge base 460 and the plurality of answer candidates and the data of the knowledge base 460. In this case, the electronic device 100 transmits a user's voice to the server 200 so that the server 200 processes voice recognition, conversation management, natural language generation, and the like. Of course, only the candidate can be determined.
도 14는 본 개시의 또 다른 실시예에 따른 전자 장치 및 서버의 동작을 설명하기 위한 시스템도이다.14 is a system diagram for describing an operation of an electronic device and a server according to another exemplary embodiment of the present disclosure.
도 14에 도시된 바에 의하면, 서버(200)는 음성 인식 시스템 및 지식 베이스(460)을 모두 포함할 수 있다. 이때, 서버(200)는 일반적인 외부 서버로 구성될 수 있으나 개인 클라우드 서버로 구성될 수 있음은 물론이다.As shown in FIG. 14, the server 200 may include both a speech recognition system and a knowledge base 460. In this case, the server 200 may be configured as a general external server, but may be configured as a personal cloud server.
먼저, 전자 장치(100)는 사용자 음성을 수신할 수 있다(S1510). 전자 장치(100)는 수신한 사용자 음성을 서버(200)로 전송할 수 있다(S1520). 서버(200)는 수신한 사용자 음성에 대한 음성 인식을 수행할 수 있다(S1530). 구체적으로, 음성 인식은 자동 음성 인식부를 통해 수행될 수 있다.First, the electronic device 100 may receive a user voice in operation S1510. The electronic device 100 may transmit the received user voice to the server 200 in operation S1520. The server 200 may perform voice recognition on the received user voice (S1530). In detail, the speech recognition may be performed through the automatic speech recognition unit.
서버(200)는 음성 인식 결과를 바탕으로 사용자 음성의 의도를 파악하고(S1540), 사용자 음성의 의도를 바탕으로 사용자 음성의 의도에 대한 복수의 답변 후보를 획득할 수 있다(S1550). 구체적으로, 서버(200)는, 서버(200)에 포함된 데이터 베이스를 바탕으로 복수의 답변 후보를 획득할 수 있다. 예를 들어, 서버(200)는 사용자 음성의 의도와 데이터 베이스에 포함된 복수의 데이터를 인공 지능 모델에 입력하여, 사용자 음성의 의도와 유사한 데이터를 답변 후보로 획득할 수 있다.The server 200 may determine the intention of the user's voice based on the speech recognition result (S1540), and obtain a plurality of answer candidates for the intention of the user's voice based on the intention of the user's voice (S1550). In detail, the server 200 may obtain a plurality of answer candidates based on a database included in the server 200. For example, the server 200 may input the intention of the user's voice and a plurality of data included in the database into the artificial intelligence model to obtain data similar to the intention of the user's voice as the answer candidate.
서버(200)는 지식 베이스에 저장된 데이터와 수신한 복수의 답변 후보들 간의 유사도를 바탕으로 최종 답변을 결정할 수 있다(S1560). 구체적으로, 서버(200)는 지식 베이스에 저장된 데이터와 수신한 복수의 답변 후보 데이터를 인공 지능 모델에 입력하여 사용자 음성의 의도와 유사한 데이터를 최종 답변으로 결정할 수 있다. The server 200 may determine a final answer based on the similarity between the data stored in the knowledge base and the plurality of answer candidates received (S1560). In detail, the server 200 may input data stored in the knowledge base and received plurality of answer candidate data into an artificial intelligence model to determine data similar to the intention of the user's voice as the final answer.
서버(200)는 자연어 생성부 및 TTS을 이용하여 사용자 음성에 대한 자연어 응답을 획득하고(S1570), 획득된 자연어 응답을 전자 장치(100)로 전송할 수 있다(S1580). 전자 장치(100)는 수신한 자연어 응답을 출력할 수 있다(S1590).The server 200 may obtain a natural language response to the user's voice using the natural language generator and the TTS (S1570), and transmit the obtained natural language response to the electronic device 100 (S1580). The electronic device 100 may output the received natural language response in operation S1590.
한편, 본 개시에서는 사용자 음성이 입력되고, 입력된 사용자 음성에 대한 자연어 응답이 출력되는 것으로 설명하였으나, 이에 한정되는 것은 아니다. 즉, 전자 장치(100)에 입력되는 사용자 질문 및 출력되는 답변은 음성이 아닌 텍스트의 형태일 수 있음은 물론이다.Meanwhile, in the present disclosure, the user voice is input and the natural language response to the input user voice is output, but the present invention is not limited thereto. That is, the user's question inputted to the electronic device 100 and the outputted answer may be in the form of text instead of voice.
도 15은 본 개시의 일 실시예에 따른 전자 장치의 제어 방법을 설명하기 위한 흐름도이다.15 is a flowchart illustrating a control method of an electronic device according to an embodiment of the present disclosure.
전자 장치(100)는 어플리케이션을 실행할 수 있다(S1610). 구체적으로 어플리케이션을 실행하기 위한 사용자 명령이 입력되면, 전자 장치(100)는 사용자 명령에 대응되는 어플리케이션을 실행할 수 있다. 이때, 전자 장치(100)는 어플리케이션 뿐만 아니라 웹 브라우저, 웹 컨텐츠 등을 실행할 수도 있음은 물론이다.The electronic device 100 may execute an application in operation S1610. In more detail, when a user command for executing an application is input, the electronic device 100 may execute an application corresponding to the user command. In this case, the electronic device 100 may execute not only an application but also a web browser and web content.
사용자 명령이 입력되면, 전자 장치(100)는 실행중인 어플리케이션에 대한 정보를 획득하여 메모리에 저장할 수 있다(S1620). 구체적으로, 전자 장치(100)는 실행중인 어플리케이션에 대한 정보를 지식 베이스(460)에 저장할 수 있다. 사용자 명령은 음성 명령(예를 들어, 빅스비 기억해!) 또는 전자 장치(100)에 구비된 버튼을 특정 방법으로 푸쉬하는 명령일 수 있다. 한편, 실행중인 어플리케이션에 대한 정보는, 실행중인 어플리케이션 명칭, 어플리케이션이 재생하는 컨텐츠 명칭, 어플리케이션이 실행하는 기능 명칭 등과 관련된 정보 일 수 있다. 또는, 어플리케이션에 대한 정보는 어플리케이션이 표시하고 있는 컨텐츠(예를 들어 뉴스 기사)와 관련된 정보일 수 있다. 또는, 어플리케이션과 관련된 정보는 어플리케이션의 조작과 관련된 정보일 수 있다.When the user command is input, the electronic device 100 may obtain information about the running application and store it in the memory in operation S1620. In detail, the electronic device 100 may store information about an application being executed in the knowledge base 460. The user command may be a voice command (for example, remember Bixby!) Or a command for pushing a button provided in the electronic device 100 in a specific method. The information on the running application may be information related to a running application name, a content name played by the application, and a function name executed by the application. Alternatively, the information about the application may be information related to the content (for example, news article) displayed by the application. Alternatively, the information related to the application may be information related to the operation of the application.
학습된 인공 지능 모델에 어플리케이션과 관련된 사용자 질문이 입력값으로 입력되면, 전자 장치(100)는 저장된 어플리케이션에 대한 정보를 바탕으로 결정된 사용자 질문에 대한 답변을 출력할 수 있다. 구체적으로, 전자 장치(100)는 사용자 질문과 지식 베이스(460)에 저장된 데이터들의 유사도를 인공 지능 모델을 이용하여 계산하고, 가장 유사도가 높은 데이터와 관련된 답변을 사용자 질문에 대한 답변으로 출력할 수 있다. 한편, 전자 장치(100)는 사용자 음성을 서버(200)로 전송하고, 서버(200)는 사용자 음성에 대한 복수의 답변 후보를 전자 장치(100)로 전송할 수 있음은 물론이다. 이 경우, 전자 장치(100)는 복수의 답변 후보와 지식 베이스(460)에 저장된 데이터들의 유사도를 인공 지능 모델을 이용하여 계산하고, 가장 유사도가 높은 답변 후보를 사용자 질문에 대한 답변으로 출력할 수 있다.When a user question related to an application is input to the learned artificial intelligence model as an input value, the electronic device 100 may output an answer to the user question determined based on information about the stored application. In detail, the electronic device 100 may calculate a similarity between the user question and the data stored in the knowledge base 460 using an artificial intelligence model, and output an answer related to the data having the highest similarity as an answer to the user question. have. Meanwhile, the electronic device 100 may transmit a user voice to the server 200, and the server 200 may transmit a plurality of answer candidates for the user voice to the electronic device 100. In this case, the electronic device 100 may calculate the similarity between the plurality of answer candidates and the data stored in the knowledge base 460 using an artificial intelligence model, and output the answer candidate with the highest similarity as the answer to the user question. have.
한편, 본 개시에서 사용된 용어 "부" 또는 "모듈"은 하드웨어, 소프트웨어 또는 펌웨어로 구성된 유닛을 포함하며, 예를 들면, 로직, 논리 블록, 부품, 또는 회로 등의 용어와 상호 호환적으로 사용될 수 있다. "부" 또는 "모듈"은, 일체로 구성된 부품 또는 하나 또는 그 이상의 기능을 수행하는 최소 단위 또는 그 일부가 될 수 있다. 예를 들면, 모듈은 ASIC(application-specific integrated circuit)으로 구성될 수 있다.On the other hand, the term "part" or "module" as used in the present disclosure includes a unit composed of hardware, software, or firmware, and for example, may be used interchangeably with terms such as logic, logic block, component, or circuit. Can be. The "unit" or "module" may be an integrally formed part or a minimum unit or part of performing one or more functions. For example, the module may be configured as an application-specific integrated circuit (ASIC).
본 개시의 다양한 실시예들은 기기(machine)(예: 컴퓨터)로 읽을 수 있는 저장 매체(machine-readable storage media에 저장된 명령어를 포함하는 소프트웨어로 구현될 수 있다. 기기는, 저장 매체로부터 저장된 명령어를 호출하고, 호출된 명령어에 따라 동작이 가능한 장치로서, 개시된 실시예들에 따른 전자 장치(예: 전자 장치(100))를 포함할 수 있다. 상기 명령이 프로세서에 의해 실행될 경우, 프로세서가 직접, 또는 상기 프로세서의 제어하에 다른 구성요소들을 이용하여 상기 명령에 해당하는 기능을 수행할 수 있다. 명령은 컴파일러 또는 인터프리터에 의해 생성 또는 실행되는 코드를 포함할 수 있다. 기기로 읽을 수 있는 저장매체는, 비일시적(non-transitory) 저장매체의 형태로 제공될 수 있다. 여기서, '비일시적'은 저장매체가 신호(signal)를 포함하지 않으며 실재(tangible)한다는 것을 의미할 뿐 데이터가 저장매체에 반영구적 또는 임시적으로 저장됨을 구분하지 않는다.Various embodiments of the present disclosure may be implemented in software that includes instructions stored in a machine-readable storage media. As a device capable of calling and operating according to the called command, the device may include an electronic device according to the disclosed embodiments (eg, the electronic device 100.) When the command is executed by the processor, the processor directly, Alternatively, other components may be used to perform functions corresponding to the instructions under the control of the processor, and the instructions may include code generated or executed by a compiler or an interpreter. It may be provided in the form of a non-transitory storage medium, where 'non-transitory' means that the storage medium does not contain a signal. Only it means that the material (tangible) data is not case that the permanently or temporarily stored in the storage medium.
일시예에 따르면, 본 문서에 개시된 다양한 실시예들에 따른 방법은 컴퓨터 프로그램 제품(computer program product)에 포함되어 제공될 수 있다. 컴퓨터 프로그램 제품은 상품으로서 판매자 및 구매자 간에 거래될 수 있다. 컴퓨터 프로그램 제품은 기기로 읽을 수 있는 저장 매체(예: compact disc read only memory (CD-ROM))의 형태로, 또는 어플리케이션 스토어(예: 플레이 스토어TM)를 통해 온라인으로 배포될 수 있다. 온라인 배포의 경우에, 컴퓨터 프로그램 제품의 적어도 일부는 제조사의 서버, 어플리케이션 스토어의 서버, 또는 중계 서버의 메모리와 같은 저장 매체에 적어도 일시 저장되거나, 임시적으로 생성될 수 있다.According to one embodiment, a method according to various embodiments disclosed in the present disclosure may be provided included in a computer program product. The computer program product may be traded between the seller and the buyer as a product. The computer program product may be distributed online in the form of a device-readable storage medium (eg compact disc read only memory (CD-ROM)) or through an application store (eg Play StoreTM). In the case of an online distribution, at least a portion of the computer program product may be stored at least temporarily or temporarily created in a storage medium such as a server of a manufacturer, a server of an application store, or a relay server.
다양한 실시예들에 따른 구성 요소(예: 모듈 또는 프로그램) 각각은 단수 또는 복수의 개체로 구성될 수 있으며, 전술한 해당 서브 구성 요소들 중 일부 서브 구성 요소가 생략되거나, 또는 다른 서브 구성 요소가 다양한 실시예에 더 포함될 수 있다. 대체적으로 또는 추가적으로, 일부 구성 요소들(예: 모듈 또는 프로그램)은 하나의 개체로 통합되어, 통합되기 이전의 각각의 해당 구성 요소에 의해 수행되는 기능을 동일 또는 유사하게 수행할 수 있다. 다양한 실시예들에 따른, 모듈, 프로그램 또는 다른 구성 요소에 의해 수행되는 동작들은 순차적, 병렬적, 반복적 또는 휴리스틱하게 실행되거나, 적어도 일부 동작이 다른 순서로 실행되거나, 생략되거나, 또는 다른 동작이 추가될 수 있다.Each component (eg, a module or a program) according to various embodiments may be composed of a singular or plural entity, and some of the above-described subcomponents may be omitted, or other subcomponents may be omitted. It may be further included in various embodiments. Alternatively or additionally, some components (eg, modules or programs) may be integrated into one entity to perform the same or similar functions performed by each corresponding component prior to integration. In accordance with various embodiments, the operations performed by a module, program, or other component may be executed sequentially, in parallel, repeatedly, or heuristically, or at least some of the operations may be executed in a different order, omitted, or other operations may be added. Can be.

Claims (15)

  1. 전자 장치의 제어 방법에 있어서,In the control method of an electronic device,
    어플리케이션이 실행되는 동안 사용자 명령이 입력되면, 상기 어플리케이션의 종류, 상기 실행중인 어플리케이션과 관련된 컨텐츠 정보 및 상기 어플리케이션을 통해 사용된 기능 중 적어도 하나를 획득하여 메모리에 저장하는 단계; 및If a user command is input while the application is running, acquiring and storing at least one of a type of the application, content information related to the running application, and a function used by the application in a memory; And
    상기 어플리케이션과 관련된 사용자 질문이 입력되면, 학습된 인공 지능 모델에 상기 어플리케이션과 관련된 사용자 질문을 입력하여 획득된 상기 사용자 질문에 대한 답변을 출력하는 단계; 를 포함하고,If a user question related to the application is input, outputting an answer to the obtained user question by inputting a user question related to the application to a learned artificial intelligence model; Including,
    상기 사용자 질문에 대한 답변은 상기 어플리케이션의 종류, 상기 실행중인 어플리케이션과 관련된 컨텐츠 정보 및 상기 어플리케이션을 통해 사용된 기능 중 적어도 하나를 바탕으로 결정되는 제어방법.The answer to the user question is determined based on at least one of the type of the application, the content information associated with the running application, and the function used through the application.
  2. 제1항에 있어서,The method of claim 1,
    상기 저장하는 단계는,The storing step,
    상기 실행중인 어플리케이션이 텍스트를 포함하는 경우, 상기 텍스트의 핵심 정보를 추출하여 저장하는 단계; 를 포함하는 제어 방법.If the running application includes text, extracting and storing key information of the text; Control method comprising a.
  3. 제1항에 있어서,The method of claim 1,
    상기 저장하는 단계는,The storing step,
    상기 실행 중인 어플리케이션에 대한 기능을 수행하는 사용자 인터랙션이 감지된 경우, 상기 수행된 기능 및 상기 사용자 인터랙션에 대한 정보를 포함하는 히스토리 정보를 저장하는 단계; 를 포함하는 제어 방법.If user interaction for performing a function on the running application is detected, storing history information including information on the performed function and the user interaction; Control method comprising a.
  4. 제1항에 있어서,The method of claim 1,
    상기 출력하는 단계는, The outputting step,
    상기 사용자 질문에 대한 검색 결과 제공, 상기 사용자 질문에 대한 액션 수행 및 상기 사용자 질문에 대한 어플리케이션 기능 수행 중 적어도 하나를 출력하는 것을 특징으로 하는 제어 방법.And providing at least one of providing a search result for the user question, performing an action on the user question, and performing an application function on the user question.
  5. 제1항에 있어서,The method of claim 1,
    상기 출력하는 단계는,The outputting step,
    상기 사용자 질문이 컨텐츠 검색과 관련된 질문인 경우, 상기 어플리케이션과 관련된 정보를 바탕으로 상기 검색된 컨텐츠를 재생하기 위한 어플리케이션을 추천하는 단계; 를 포함하는 제어 방법.If the user question is a question related to content search, recommending an application for playing the searched content based on information related to the application; Control method comprising a.
  6. 제1항에 있어서,The method of claim 1,
    상기 출력하는 단계는,The outputting step,
    상기 사용자 질문이 입력되면, 상기 사용자 질문을 외부 서버로 전송하는 단계;If the user question is input, transmitting the user question to an external server;
    상기 외부 서버로부터 상기 사용자 질문에 대한 답변 후보를 수신하는 단계; 및Receiving candidates for answering the user question from the external server; And
    상기 수신한 답변 후보 및 상기 메모리에 저장된 정보를 바탕으로 상기 사용자 질문에 대한 답변을 출력하는 단계; 를 포함하는 제어 방법.Outputting an answer to the user question based on the received answer candidate and the information stored in the memory; Control method comprising a.
  7. 제1항에 있어서,The method of claim 1,
    상기 저장하는 단계는,The storing step,
    상기 실행중인 어플리케이션에 대한 도메인 정보 및, 상기 어플리케이션의 종류, 상기 실행중인 어플리케이션과 관련된 컨텐츠 정보 및 상기 어플리케이션을 통해 사용된 기능 중 적어도 하나를 저장하고,Storing at least one of domain information on the running application, a type of the application, content information related to the running application, and a function used through the application;
    상기 인공지능 모델은,The artificial intelligence model,
    상기 저장된 도메인 정보 및 상기 어플리케이션의 종류, 상기 실행중인 어플리케이션과 관련된 컨텐츠 정보 및 상기 어플리케이션을 통해 사용된 기능 중 적어도 하나를 바탕으로 상기 사용자 질문에 대한 답변을 획득하는 것을 특징으로 하는 제어 방법.And obtaining an answer to the user question based on at least one of the stored domain information and the type of the application, content information related to the running application, and a function used through the application.
  8. 제1항에 있어서, The method of claim 1,
    상기 사용자 질문은 사용자 음성 또는 텍스트 중 적어도 하나인 것을 특징으로 하는 제어 방법.And the user question is at least one of user voice or text.
  9. 전자 장치에 있어서,In an electronic device,
    메모리; 및Memory; And
    상기 메모리에 저장된 어플리케이션을 실행시키는 프로세서; 를 포함하고,A processor to execute an application stored in the memory; Including,
    상기 프로세서는,The processor,
    어플리케이션이 실행되는 동안 사용자 명령이 입력되면, 상기 어플리케이션의 종류, 상기 실행중인 어플리케이션과 관련된 컨텐츠 정보 및 상기 어플리케이션을 통해 사용된 기능 중 적어도 하나를 획득하여 상기 메모리에 저장하고, 상기 어플리케이션과 관련된 사용자 질문이 입력되면, 학습된 인공 지능 모델에 상기 어플리케이션과 관련된 사용자 질문을 입력하여 획득된 상기 사용자 질문에 대한 답변을 출력하며, When a user command is input while an application is running, at least one of a type of the application, content information related to the running application, and a function used through the application is acquired and stored in the memory, and a user question related to the application is obtained. If is input, and outputs the answer to the user question obtained by inputting a user question related to the application to the learned artificial intelligence model,
    상기 사용자 질문에 대한 답변은 상기 어플리케이션의 종류, 상기 실행중인 어플리케이션과 관련된 컨텐츠 정보 및 상기 어플리케이션을 통해 사용된 기능 중 적어도 하나를 바탕으로 결정되는 전자 장치.The answer to the user question is determined based on at least one of a type of the application, content information related to the running application, and a function used through the application.
  10. 제9항에 있어서,The method of claim 9,
    상기 프로세서는,The processor,
    상기 실행중인 어플리케이션이 텍스트를 포함하는 경우, 상기 텍스트의 핵심 정보를 추출하여 상기 메모리에 저장하는 전자 장치.And when the running application includes text, extracts key information of the text and stores the essential information in the memory.
  11. 제9항에 있어서,The method of claim 9,
    상기 프로세서는,The processor,
    상기 실행 중인 어플리케이션에 대한 기능을 수행하는 사용자 인터랙션이 감지된 경우, 상기 수행된 기능 및 상기 사용자 인터랙션에 대한 정보를 포함하는 히스토리 정보를 상기 메모리에 저장하는 전자 장치.And when a user interaction for performing a function on the running application is detected, the electronic device stores history information including information on the performed function and the user interaction in the memory.
  12. 제9항에 있어서,The method of claim 9,
    상기 프로세서는, The processor,
    상기 사용자 질문에 대한 검색 결과 제공, 상기 사용자 질문에 대한 액션 수행 및 상기 사용자 질문에 대한 어플리케이션 기능 수행 중 적어도 하나를 출력하는 전자 장치.And outputting at least one of providing a search result for the user question, performing an action on the user question, and performing an application function on the user question.
  13. 제9항에 있어서,The method of claim 9,
    상기 프로세서는,The processor,
    상기 사용자 질문이 컨텐츠 검색과 관련된 질문인 경우, 상기 어플리케이션과 관련된 정보를 바탕으로 상기 검색된 컨텐츠를 재생하기 위한 어플리케이션을 추천하는 전자 장치.And if the user question is a question related to content search, recommending an application for playing the searched content based on the information related to the application.
  14. 제9항에 있어서,The method of claim 9,
    통신부; 를 더 포함하고,Communication unit; More,
    상기 프로세서는,The processor,
    상기 사용자 질문이 입력되면, 상기 사용자 질문을 상기 통신부를 통해 외부 서버로 전송하고, 상기 외부 서버로부터 상기 사용자 질문에 대한 답변 후보를 상기 통신부를 통해 수신하고, 상기 수신한 답변 후보 및 상기 메모리에 저장된 정보를 바탕으로 상기 사용자 질문에 대한 답변을 출력하는 전자 장치.When the user question is input, the user question is transmitted to an external server through the communication unit, a response candidate for the user question is received from the external server through the communication unit, and the received response candidate and stored in the memory An electronic device that outputs an answer to the user question based on the information.
  15. 제9항에 있어서,The method of claim 9,
    상기 프로세서는,The processor,
    상기 실행중인 어플리케이션에 대한 도메인 정보 및, 상기 어플리케이션의 종류, 상기 실행중인 어플리케이션과 관련된 컨텐츠 정보 및 상기 어플리케이션을 통해 사용된 기능 중 적어도 하나를 상기 메모리에 저장하고,Storing at least one of domain information of the running application, the type of the application, content information related to the running application, and a function used through the application in the memory;
    상기 인공지능 모델은,The artificial intelligence model,
    상기 저장된 도메인 정보 및 상기 어플리케이션의 종류, 상기 실행중인 어플리케이션과 관련된 컨텐츠 정보 및 상기 어플리케이션을 통해 사용된 기능 중 적어도 하나를 바탕으로 상기 사용자 질문에 대한 답변을 획득하는 것을 특징으로 하는 전자 장치.And obtaining an answer to the user question based on at least one of the stored domain information and the type of the application, content information related to the running application, and a function used through the application.
PCT/KR2019/009035 2018-07-20 2019-07-22 Electronic device and control method therefor WO2020022723A1 (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
CN201980048144.5A CN112424768A (en) 2018-07-20 2019-07-22 Electronic device and control method thereof
US15/733,975 US20210217409A1 (en) 2018-07-20 2019-07-22 Electronic device and control method therefor
EP19842116.6A EP3786812A4 (en) 2018-07-20 2019-07-22 Electronic device and control method therefor

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
KR10-2018-0084961 2018-07-20
KR20180084961 2018-07-20
KR1020190087731A KR20200010131A (en) 2018-07-20 2019-07-19 Electronic apparatus and control method thereof
KR10-2019-0087731 2019-07-19

Publications (1)

Publication Number Publication Date
WO2020022723A1 true WO2020022723A1 (en) 2020-01-30

Family

ID=69181831

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/KR2019/009035 WO2020022723A1 (en) 2018-07-20 2019-07-22 Electronic device and control method therefor

Country Status (1)

Country Link
WO (1) WO2020022723A1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080201306A1 (en) * 2000-03-06 2008-08-21 Cooper Robert S Personal virtual assistant
US20150186156A1 (en) * 2013-12-31 2015-07-02 Next It Corporation Virtual assistant conversations
US20160103873A1 (en) * 2013-03-15 2016-04-14 International Business Machines Corporation Enhanced Answers in DeepQA System According to User Preferences
KR20170061923A (en) * 2015-11-27 2017-06-07 삼성전자주식회사 Method For Processing of Question and answer and electronic device supporting the same
KR20170103586A (en) * 2016-02-24 2017-09-13 라인 가부시키가이샤 Method and system for artificial intelligence learning using messaging service and method and system for relaying answer using artificial intelligence

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080201306A1 (en) * 2000-03-06 2008-08-21 Cooper Robert S Personal virtual assistant
US20160103873A1 (en) * 2013-03-15 2016-04-14 International Business Machines Corporation Enhanced Answers in DeepQA System According to User Preferences
US20150186156A1 (en) * 2013-12-31 2015-07-02 Next It Corporation Virtual assistant conversations
KR20170061923A (en) * 2015-11-27 2017-06-07 삼성전자주식회사 Method For Processing of Question and answer and electronic device supporting the same
KR20170103586A (en) * 2016-02-24 2017-09-13 라인 가부시키가이샤 Method and system for artificial intelligence learning using messaging service and method and system for relaying answer using artificial intelligence

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP3786812A4 *

Similar Documents

Publication Publication Date Title
WO2020080834A1 (en) Electronic device and method for controlling the electronic device
WO2020067633A1 (en) Electronic device and method of obtaining emotion information
WO2019203488A1 (en) Electronic device and method for controlling the electronic device thereof
WO2019182346A1 (en) Electronic device for modulating user voice using artificial intelligence model and control method thereof
WO2019172656A1 (en) System and method for language model personalization
WO2020091503A1 (en) Electronic apparatus and control method thereof
WO2020080830A1 (en) Electronic device for reconstructing an artificial intelligence model and a control method thereof
WO2020085796A1 (en) Electronic device and method for controlling electronic device thereof
US20210217409A1 (en) Electronic device and control method therefor
WO2018101694A1 (en) Electronic apparatus and method for summarizing content
WO2019083275A1 (en) Electronic apparatus for searching related image and control method therefor
WO2020091350A1 (en) Electronic device and control method thereof
WO2019022472A1 (en) Electronic device and method for controlling the electronic device
WO2021054588A1 (en) Method and apparatus for providing content based on knowledge graph
WO2018174443A1 (en) Electronic apparatus, controlling method of thereof and non-transitory computer readable recording medium
WO2020017898A1 (en) Electronic apparatus and control method thereof
WO2019231130A1 (en) Electronic device and control method therefor
WO2019132410A1 (en) Electronic device and control method thereof
EP3820369A1 (en) Electronic device and method of obtaining emotion information
WO2020071697A1 (en) Electronic device and method for controlling same
WO2019164144A1 (en) Electronic device and natural language generation method thereof
WO2019125054A1 (en) Method for content search and electronic device therefor
WO2019125082A1 (en) Device and method for recommending contact information
WO2020190103A1 (en) Method and system for providing personalized multimodal objects in real time
WO2021020810A1 (en) Learning method of ai model and electronic apparatus

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19842116

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 2019842116

Country of ref document: EP

Effective date: 20201124

NENP Non-entry into the national phase

Ref country code: DE