KR20220117802A - Electronic device and method for controlling thereof - Google Patents

Electronic device and method for controlling thereof Download PDF

Info

Publication number
KR20220117802A
KR20220117802A KR1020220006094A KR20220006094A KR20220117802A KR 20220117802 A KR20220117802 A KR 20220117802A KR 1020220006094 A KR1020220006094 A KR 1020220006094A KR 20220006094 A KR20220006094 A KR 20220006094A KR 20220117802 A KR20220117802 A KR 20220117802A
Authority
KR
South Korea
Prior art keywords
text
risk level
model
electronic device
input
Prior art date
Application number
KR1020220006094A
Other languages
Korean (ko)
Inventor
최원종
김수필
박예원
함진아
Original Assignee
삼성전자주식회사
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 삼성전자주식회사 filed Critical 삼성전자주식회사
Priority to PCT/KR2022/002315 priority Critical patent/WO2022177304A1/en
Priority to US17/741,105 priority patent/US20220269866A1/en
Publication of KR20220117802A publication Critical patent/KR20220117802A/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/30Semantic analysis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/20Natural language analysis
    • G06F40/205Parsing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/20Natural language analysis
    • G06F40/237Lexical tools
    • G06F40/247Thesauruses; Synonyms
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/20Natural language analysis
    • G06F40/279Recognition of textual entities
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/04Architecture, e.g. interconnection topology
    • G06N3/045Combinations of networks
    • G06N3/0454
    • 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 TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L15/00Speech recognition
    • G10L15/22Procedures used during a speech recognition process, e.g. man-machine dialogue
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L15/00Speech recognition
    • G10L15/26Speech to text systems

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computational Linguistics (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Artificial Intelligence (AREA)
  • General Health & Medical Sciences (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Acoustics & Sound (AREA)
  • Human Computer Interaction (AREA)
  • Biomedical Technology (AREA)
  • Evolutionary Computation (AREA)
  • Molecular Biology (AREA)
  • Computing Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Biophysics (AREA)
  • Mathematical Physics (AREA)
  • Software Systems (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Machine Translation (AREA)

Abstract

Disclosed are an electronic device and a control method thereof. The electronic device may include: a memory; and a processor, when text is input, inputting information on the text, which is input to a first model trained for determining a semantic role of a sentence component included in the sentence, to determine the semantic role of the sentence component included in the text, inputting a sentence component corresponding to the determined semantic role to a second model trained for outputting a dangerous level of the text based on the semantic role of the sentence component included in the sentence, and performing an operation corresponding to the dangerous level of the acquired text.

Description

전자 장치 및 이의 제어 방법{ELECTRONIC DEVICE AND METHOD FOR CONTROLLING THEREOF}ELECTRONIC DEVICE AND METHOD FOR CONTROLLING THEREOF

본 개시는 전자 장치 및 이의 제어 방법에 관한 것으로서, 더욱 상세하게는 입력된 텍스트의 위험 레벨에 대응되는 동작을 수행하는 전자 장치 및 이의 제어 방법에 관한 것이다.The present disclosure relates to an electronic device and a control method thereof, and more particularly, to an electronic device that performs an operation corresponding to a risk level of an input text, and a control method thereof.

근래에는 인공 지능 시스템이 다양한 분야에서 이용되고 있다. 인공 지능 시스템은 기존의 룰(rule) 기반 스마트 시스템과 달리 기계가 스스로 학습시키고 판단하며 똑똑해지는 시스템이다. 인공 지능 시스템은 사용할수록 인식률이 향상되고 사용자 취향을 보다 정확하게 이해할 수 있게 되어, 기존 룰 기반 스마트 시스템은 점차 딥러닝 기반 인공 지능 시스템으로 대체되고 있다.Recently, artificial intelligence systems have been used in various fields. Unlike the existing rule-based smart system, the artificial intelligence system is a system in which the machine learns, judges, and becomes smarter by itself. The more the artificial intelligence system is used, the better the recognition rate and the more accurate understanding of user preferences, and the existing rule-based smart systems are gradually being replaced by deep learning-based artificial intelligence systems.

최근에는, 딥러닝 기반 인공 지능 시스템을 이용한 챗봇(chatbot)이 개발되어 널리 사용되고 있다. 예를 들어, 장치의 결함 또는 상태 등에 대한 질의가 입력되면, 질의에 대한 응답을 제공하는 고객 센터 챗봇 등이 널리 사용되고 있다.Recently, a chatbot using a deep learning-based artificial intelligence system has been developed and is widely used. For example, a customer center chatbot that provides a response to a query when a query regarding a defect or status of the device is input has been widely used.

기존 기술을 활용한 고객 센터 챗봇은 입력된 질의에 포함된 단어를 인식 또는 감지함으로써 질의에 내포된 상황의 위험 정도를 판단하였다. 한편, 각종 컨텍스트(context)에 따라 질의에 포함된 단어에 내포될 수 있는 위험도의 차이는 상이할 수 있다. 다만, 기존 기술을 활용한 고객 센터 챗봇은 컨텍스트에 따라 단어에 내포될 수 있는 위험도의 차이를 명확히 구분하지 못한다는 한계가 존재하였다.The customer center chatbot using existing technology recognizes or detects the words included in the input query to determine the level of risk of the situation contained in the query. Meanwhile, a difference in the degree of risk that may be included in a word included in a query may be different according to various contexts. However, there was a limitation that the customer center chatbot using the existing technology could not clearly distinguish the difference in risk that could be contained in a word depending on the context.

본 개시는 상술한 문제점을 해결하기 위해 안출된 것으로서, 본 개시의 목적은 텍스트에 포함된 문장 성분의 의미역을 결정하고, 결정된 의미역에 대응되는 문장 성분을 이용하여 텍스트의 위험 레벨을 획득하여 위험레벨에 적합한 목표기기의 제어동작을 수행하는 전자 장치 및 이의 제어 방법을 개시함에 있다.The present disclosure has been devised to solve the above problems, and an object of the present disclosure is to determine the semantic range of a sentence component included in a text, and obtain the risk level of the text by using the sentence component corresponding to the determined semantic domain. Disclosed are an electronic device for performing a control operation of a target device suitable for a risk level and a control method thereof.

본 개시의 일 실시 예에 따른 전자 장치는 메모리, 텍스트가 입력되면, 문장에 포함된 문장 성분의 의미역(semantic role)을 결정하도록 학습된 제1 모델에 상기 입력된 텍스트에 대한 정보를 입력하여 상기 텍스트에 포함된 문장 성분의 의미역을 결정하고, 문장에 포함된 문장 성분의 의미역에 기초하여 위험 레벨을 출력하도록 학습된 제2 모델에 상기 결정된 의미역에 대응되는 문장 성분을 입력하여 상기 텍스트의 위험 레벨을 획득하고, 상기 획득된 텍스트의 위험 레벨에 대응되는 동작을 수행하는 프로세서를 포함할 수 있다.The electronic device according to an embodiment of the present disclosure inputs information about the input text into a first model trained to determine a semantic role of a sentence component included in a sentence when a text is input into a memory. The sentence component corresponding to the determined semantic range is input to the second model trained to determine the semantic range of the sentence component included in the text, and output a risk level based on the semantic domain of the sentence component included in the text. The processor may include a processor that acquires a risk level of the text and performs an operation corresponding to the acquired risk level of the text.

한편, 상기 제1 모델은, 상기 입력된 텍스트의 문장 성분 각각을 주체(agent), 대상(recipient) 및 술어(predicate) 중 하나로 결정하도록 학습된 것을 특징으로 할 수 있다.Meanwhile, the first model may be trained to determine each of the sentence components of the input text as one of an agent, a recipient, and a predicate.

한편, 상기 제2 모델은, 상기 주체 및 대상 중 적어도 하나로 결정된 문장 성분이 사용자 또는 장치를 의미하는 경우, 상기 텍스트의 위험 레벨을 증가하도록 학습된 것을 특징으로 할 수 있다.Meanwhile, the second model may be characterized in that it is learned to increase the risk level of the text when the sentence component determined as at least one of the subject and the target means a user or a device.

한편, 상기 제2 모델은, 상기 주체, 대상 및 술어 중 하나로 결정된 문장 성분과 의미가 유사한 단어를 식별하고, 상기 식별된 단어에 매칭된 가중치를 이용하여 상기 텍스트의 위험 레벨을 출력하도록 학습된 것을 특징으로 할 수 있다.On the other hand, the second model identifies a word having a similar meaning to a sentence component determined as one of the subject, object, and predicate, and is trained to output the risk level of the text using a weight matched to the identified word. can be characterized.

한편, 상기 제2 모델은, 위험 정도에 따라 분류된 복수의 등급 중 하나를 상기 텍스트의 위험 레벨로서 출력하도록 학습된 것을 특징으로 할 수 있다.Meanwhile, the second model may be trained to output one of a plurality of grades classified according to the degree of risk as the risk level of the text.

한편, 상기 제2 모델은, 상기 텍스트의 위험 레벨을 위험 정도를 나타내는 수치로 출력하도록 학습된 것을 특징으로 할 수 있다.Meanwhile, the second model may be trained to output the risk level of the text as a numerical value indicating the degree of risk.

한편, 상기 위험 레벨에 대응되는 동작은, 목표 기기의 전원 종료, 목표 기기의 네트워크 연결 차단, 목표 기기의 재시작, 목표 기기에서 실행 중인 백그라운드 앱(Background App) 종료 중 적어도 하나이고, 상기 목표 기기는 상기 전자 장치 또는 상기 다른 전자 장치 중 적어도 하나일 수 있다.Meanwhile, the operation corresponding to the risk level is at least one of shutting down the power of the target device, blocking the network connection of the target device, restarting the target device, and ending a background app running in the target device, and the target device It may be at least one of the electronic device and the other electronic device.

한편, 회로를 포함하는 통신부를 더 포함하고, 상기 프로세서는, 상기 텍스트의 위험 레벨이 제1 임계 등급 이상이거나 제1 임계값 이상인 경우, 상기 텍스트 및 상기 위험 레벨에 대응되는 동작을 상기 텍스트에 대응되는 장치를 관리하는 서버에 전송하도록 상기 통신부를 제어하거나 상기 텍스트에 대응되는 상황 및 상기 위험 레벨에 대응되는 동작의 알림 메시지를 제공할 수 있다.On the other hand, further comprising a communication unit including a circuit, wherein the processor, when the risk level of the text is equal to or greater than a first threshold grade or greater than the first threshold, the text and an operation corresponding to the risk level correspond to the text It is possible to control the communication unit to transmit to a server that manages a device, or to provide a notification message of a situation corresponding to the text and an operation corresponding to the risk level.

한편, 상기 프로세서는, 상기 텍스트의 위험 레벨이 제2 임계 등급 이상이거나 제2 임계 값 이상인 경우, 상기 목표 기기의 전원 종료 동작을 수행할 수 있다.Meanwhile, the processor may perform a power-off operation of the target device when the risk level of the text is equal to or greater than a second threshold level or greater than or equal to a second threshold value.

한편, 상기 프로세서는, 구문 분석하도록 학습된 구문 분석 모델에 상기 입력된 텍스트를 입력하여 상기 텍스트의 구문 분석 결과가 포함된 상기 텍스트에 대한 정보를 획득할 수 있다.Meanwhile, the processor may input the input text into a syntax analysis model learned to parse, and obtain information about the text including a result of the syntax analysis of the text.

한편, 마이크를 더 포함하고, 상기 프로세서는, 상기 전자 장치 또는 다른 장치의 상태를 문의하는 사용자 음성이 상기 마이크를 통해 입력되면, 상기 입력된 사용자 음성을 ASR(Auto Speech Recognition)모델에 입력하여 상기 사용자 음성에 대응되는 텍스트를 획득할 수 있다.On the other hand, further comprising a microphone, wherein the processor, when a user voice inquiring about the state of the electronic device or another device is inputted through the microphone, the inputted user voice is inputted into an Auto Speech Recognition (ASR) model and the A text corresponding to the user's voice may be obtained.

본 개시의 또 다른 실시 예에 따른 제어 방법은, 텍스트가 입력되면, 문장에 포함된 문장 성분의 의미역(semantic role)을 결정하도록 학습된 제1 모델에 상기 입력된 텍스트에 대한 정보를 입력하여 상기 텍스트에 포함된 문장 성분의 의미역을 결정하는 단계, 문장에 포함된 문장 성분의 의미역에 기초하여 위험 레벨을 출력하도록 학습된 제2 모델에 상기 결정된 의미역에 대응되는 문장 성분을 입력하여 상기 텍스트의 위험 레벨을 획득하는 단계 및 상기 획득된 텍스트의 위험 레벨에 대응되는 동작을 수행하는 단계를 포함할 수 있다.In a control method according to another embodiment of the present disclosure, when text is input, information on the input text is input into a first model trained to determine a semantic role of a sentence component included in a sentence. determining the semantic range of the sentence component included in the text; inputting the sentence component corresponding to the determined semantic domain to the second model trained to output the risk level based on the semantic domain of the sentence component included in the text The method may include obtaining a risk level of the text and performing an operation corresponding to the obtained text risk level.

한편, 상기 제1 모델은, 상기 입력된 텍스트의 문장 성분 각각을 주체(agent), 대상(recipient) 및 술어(predicate) 중 하나로 결정하도록 학습된 것을 특징으로 할 수 있다.Meanwhile, the first model may be trained to determine each of the sentence components of the input text as one of an agent, a recipient, and a predicate.

한편, 상기 제2 모델은, 상기 주체 및 대상 중 적어도 하나로 결정된 문장 성분이 사용자 또는 장치를 의미하는 경우, 상기 텍스트의 위험 레벨을 증가하도록 학습된 것을 특징으로 할 수 있다.Meanwhile, the second model may be characterized in that it is learned to increase the risk level of the text when the sentence component determined as at least one of the subject and the target means a user or a device.

한편, 상기 제2 모델은, 상기 주체, 대상 및 술어 중 하나로 결정된 문장 성분과 의미가 유사한 단어를 식별하고, 상기 식별된 단어에 매칭된 가중치를 이용하여 상기 텍스트의 위험 레벨을 출력하도록 학습된 것을 특징으로 할 수 있다.On the other hand, the second model identifies a word having a similar meaning to a sentence component determined as one of the subject, object, and predicate, and is trained to output the risk level of the text using a weight matched to the identified word. can be characterized.

한편, 상기 제2 모델은, 위험 정도에 따라 분류된 복수의 등급 중 하나를 상기 텍스트의 위험 레벨로서 출력하도록 학습된 것을 특징으로 할 수 있다.Meanwhile, the second model may be trained to output one of a plurality of grades classified according to the degree of risk as the risk level of the text.

한편, 상기 제2 모델은 상기 텍스트의 위험 레벨을 위험 정도를 나타내는 수치로 출력하도록 학습된 것을 특징으로 할 수 있다.On the other hand, the second model may be characterized in that it is learned to output the risk level of the text as a numerical value indicating the degree of risk.

한편, 상기 위험 레벨에 대응되는 동작은, 목표 기기의 전원 종료, 목표 기기의 네트워크 연결 차단, 목표 기기의 재시작, 목표 기기에서 실행 중인 백그라운드 앱(Background App) 종료 중 적어도 하나일 수 있다.Meanwhile, the operation corresponding to the risk level may be at least one of shutting down the power of the target device, blocking the network connection of the target device, restarting the target device, and ending a background app running in the target device.

한편, 상기 수행하는 단계는, 상기 텍스트의 위험 레벨이 제1 임계 등급 이상이거나 제1 임계값 이상인 경우, 상기 텍스트 및 상기 위험 레벨에 대응되는 동작을 상기 텍스트에 대응되는 장치를 관리하는 서버에 전송하거나 상기 텍스트에 대응되는 상황 및 상기 위험 레벨에 대응되는 동작의 알림 메시지를 제공하는 단계를 포함할 수 있다.Meanwhile, in the performing step, when the risk level of the text is equal to or greater than a first threshold grade or greater than or equal to a first threshold, the text and an operation corresponding to the risk level are transmitted to a server managing a device corresponding to the text or providing a notification message of a situation corresponding to the text and an action corresponding to the risk level.

한편, 상기 수행하는 단계는, 상기 텍스트의 위험 레벨이 제2 임계 등급 이상이거나 제2 임계 값 이상인 경우, 상기 목표 기기의 전원 종료 동작을 수행하는 단계를 포함하고, 상기 목표 기기는 상기 전자 장치 또는 상기 다른 전자 장치 중 적어도 하나일 수 있다.Meanwhile, the performing may include performing a power-off operation of the target device when the risk level of the text is greater than or equal to a second threshold level or greater than or equal to a second threshold, wherein the target device is configured to use the electronic device or It may be at least one of the other electronic devices.

한편, 상기 입력받는 단계는, 구문 분석하도록 학습된 구문 분석 모델에 상기 입력된 텍스트를 입력하여 상기 텍스트의 구문 분석 결과가 포함된 상기 텍스트에 대한 정보를 획득하는 단계를 더 포함할 수 있다.Meanwhile, the step of receiving the input may further include inputting the input text into a syntax analysis model trained to analyze the text, and obtaining information about the text including a result of parsing the text.

한편, 상기 전자 장치 또는 다른 장치의 상태를 문의하는 사용자 음성이 상기 마이크를 통해 입력되면, 상기 입력된 사용자 음성을 ASR(Auto Speech Recognition)모델에 입력하여 상기 사용자 음성에 대응되는 텍스트를 획득하는 단계를 더 포함할 수 있다.On the other hand, when a user's voice inquiring about the state of the electronic device or another device is inputted through the microphone, inputting the inputted user's voice into an Auto Speech Recognition (ASR) model to obtain a text corresponding to the user's voice may further include.

상술한 바와 같은 다양한 실시예에 의해, 전자 장치는 입력된 텍스트에 내포된 상황의 위험한 정도를 보다 정확하게 평가하고 신속하게 대응할 수 있다.According to the above-described various embodiments, the electronic device may more accurately evaluate a dangerous level of a situation included in the input text and respond quickly.

도 1은 본 개시의 일 실시예에 따른, 전자 장치의 구성을 간략히 도시한 블록도,
도 2는 본 개시의 일 실시예에 따른, 전자 장치의 제어 방법을 설명하기 위한 순서도,
도 3은 본 개시의 일 실시예에 따른, 전자 장치가 텍스트의 위험 레벨을 출력하는 과정을 설명하기 위한 도면,
도 4는 본 개시의 일 실시예에 따른, 제1 모델의 구성 및 동작을 설명하기 위한 도면,
도 5는 본 개시의 일 실시예에 따른, 제2 모델의 구성 및 동작을 설명하기 위한 도면,
도 6은 본 개시의 일 실시 예에 따른, 목표 기기의 제어 동작을 설명하기 위한 도면이다.
도 7은 본 개시의 일 실시예에 따른, 전자 장치(100)의 구성을 상세히 도시한 블록도이다.
1 is a block diagram schematically illustrating a configuration of an electronic device according to an embodiment of the present disclosure;
2 is a flowchart illustrating a method of controlling an electronic device according to an embodiment of the present disclosure;
3 is a view for explaining a process in which an electronic device outputs a risk level of text according to an embodiment of the present disclosure;
4 is a view for explaining the configuration and operation of the first model, according to an embodiment of the present disclosure;
5 is a view for explaining the configuration and operation of a second model, according to an embodiment of the present disclosure;
6 is a diagram for explaining a control operation of a target device, according to an embodiment of the present disclosure.
7 is a block diagram illustrating in detail the configuration of the electronic device 100 according to an embodiment of the present disclosure.

본 개시에 대하여 구체적으로 설명하기에 앞서, 본 명세서 및 도면의 기재 방법에 대하여 설명한다.Prior to describing the present disclosure in detail, a description will be given of the description of the present specification and drawings.

먼저, 본 명세서 및 청구범위에서 사용되는 용어는 본 개시의 다양한 실시 예들에서의 기능을 고려하여 일반적인 용어들을 선택하였다. 하지만, 이러한 용어들은 당해 기술 분야에 종사하는 기술자의 의도나 법률적 또는 기술적 해석 및 새로운 기술의 출현 등에 따라 달라질 수 있다. 또한, 일부 용어는 출원인이 임의로 선정한 용어도 있다. 이러한 용어에 대해서는 본 명세서에서 정의된 의미로 해석될 수 있으며, 구체적인 용어 정의가 없으면 본 명세서의 전반적인 내용 및 당해 기술 분야의 통상적인 기술 상식을 토대로 해석될 수도 있다. First, terms used in the present specification and claims have been selected in consideration of functions in various embodiments of the present disclosure. However, these terms may vary depending on the intention or legal or technical interpretation of a person skilled in the art, and the emergence of new technology. Also, some terms are arbitrarily selected by the applicant. These terms may be interpreted in the meaning defined in the present specification, and if there is no specific term definition, it may be interpreted based on the general content of the present specification and common technical knowledge in the art.

또한, 본 명세서에 첨부된 각 도면에 기재된 동일한 참조번호 또는 부호는 실질적으로 동일한 기능을 수행하는 부품 또는 구성요소를 나타낸다. 설명 및 이해의 편의를 위해서 서로 다른 실시 예들에서도 동일한 참조번호 또는 부호를 사용하여 설명한다. 즉, 복수의 도면에서 동일한 참조 번호를 가지는 구성요소를 모두 도시되어 있다고 하더라도, 복수의 도면들이 하나의 실시 예를 의미하는 것은 아니다. Also, the same reference numerals or reference numerals in each drawing attached to this specification indicate parts or components that perform substantially the same functions. For convenience of description and understanding, the same reference numerals or reference numerals are used in different embodiments. That is, even though all components having the same reference number are illustrated in a plurality of drawings, the plurality of drawings do not mean one embodiment.

도면에서의 다양한 요소와 영역은 개략적으로 그려진 것이다. 따라서, 본 발명의 기술적 사상은 첨부한 도면에 그려진 상대적인 크기나 간격에 의해 제한되지 않는다.Various elements and regions in the drawings are schematically drawn. Accordingly, the technical spirit of the present invention is not limited by the relative size or spacing drawn in the accompanying drawings.

또한, 본 명세서 및 청구범위에서는 구성요소들 간의 구별을 위하여 "제1", "제2" 등과 같이 서수를 포함하는 용어가 사용될 수 있다. 이러한 서수는 동일 또는 유사한 구성요소들을 서로 구별하기 위하여 사용하는 것이며 이러한 서수 사용으로 인하여 용어의 의미가 한정 해석되어서는 안 된다. 일 예로, 이러한 서수와 결합된 구성요소는 그 숫자에 의해 사용 순서나 배치 순서 등이 제한되어서는 안 된다. 필요에 따라서는, 각 서수들은 서로 교체되어 사용될 수도 있다. In addition, in this specification and claims, terms including an ordinal number, such as "first" and "second", may be used to distinguish between elements. This ordinal number is used to distinguish the same or similar elements from each other, and the meaning of the term should not be construed as limited due to the use of the ordinal number. For example, the components combined with such an ordinal number should not be limited in the order of use or arrangement by the number. If necessary, each ordinal number may be used interchangeably.

본 명세서에서 단수의 표현은 문맥상 명백하게 다르게 뜻하지 않는 한, 복수의 표현을 포함한다. 본 출원에서, "포함하다" 또는 "구성되다" 등의 용어는 명세서상에 기재된 특징, 숫자, 단계, 동작, 구성요소, 부품 또는 이들을 조합한 것이 존재함을 지정하려는 것이지, 하나 또는 그 이상의 다른 특징들이나 숫자, 단계, 동작, 구성요소, 부품 또는 이들을 조합한 것들의 존재 또는 부가 가능성을 미리 배제하지 않는 것으로 이해되어야 한다.In this specification, the singular expression includes the plural expression unless the context clearly dictates otherwise. In the present application, terms such as "comprises" or "consisting of" are intended to designate that the features, numbers, steps, operations, components, parts, or combinations thereof described in the specification exist, and are intended to indicate that one or more other It is to be understood that this does not preclude the possibility of addition or presence of features or numbers, steps, operations, components, parts, or combinations thereof.

본 개시에서 사용된 표현 "~하도록 구성된(또는 설정된)(configured to)"은 상황에 따라, 예를 들면, "~에 적합한(suitable for)," "~하는 능력을 가지는(having the capacity to)," "~하도록 설계된(designed to)," "~하도록 변경된(adapted to)," "~하도록 만들어진(made to)," 또는 "~를 할 수 있는(capable of)"과 바꾸어 사용될 수 있다. 용어 "~하도록 구성된(또는 설정된)"은 하드웨어적으로 "특별히 설계된(specifically designed to)" 것만을 반드시 의미하지 않을 수 있다. The expression "configured to (or configured to)" as used in this disclosure depends on the context, for example, "suitable for," "having the capacity to" ," "designed to," "adapted to," "made to," or "capable of." The term “configured (or configured to)” may not necessarily mean only “specifically designed to” in hardware.

대신, 어떤 상황에서는, "~하도록 구성된 장치"라는 표현은, 그 장치가 다른 장치 또는 부품들과 함께 "~할 수 있는" 것을 의미할 수 있다. 예를 들면, 문구 "A, B, 및 C를 수행하도록 구성된(또는 설정된) 부프로세서"는 해당 동작을 수행하기 위한 전용 프로세서(예: 임베디드 프로세서), 또는 메모리 장치에 저장된 하나 이상의 소프트웨어 프로그램들을 실행함으로써, 해당 동작들을 수행할 수 있는 범용 프로세서(generic-purpose processor)(예: CPU 또는 application processor)를 의미할 수 있다.Instead, in some circumstances, the expression “a device configured to” may mean that the device is “capable of” with other devices or parts. For example, the phrase “a coprocessor configured (or configured to perform) A, B, and C” may refer to a dedicated processor (eg, an embedded processor), or one or more software programs stored in a memory device, to perform the corresponding operations. By doing so, it may mean a generic-purpose processor (eg, a CPU or an application processor) capable of performing corresponding operations.

본 개시의 실시 예에서 "모듈", "유닛", "부(part)" 등과 같은 용어는 적어도 하나의 기능이나 동작을 수행하는 구성요소를 지칭하기 위한 용어이며, 이러한 구성요소는 하드웨어 또는 소프트웨어로 구현되거나 하드웨어 및 소프트웨어의 결합으로 구현될 수 있다. 또한, 복수의 "모듈", "유닛", "부(part)" 등은 각각이 개별적인 특정한 하드웨어로 구현될 필요가 있는 경우를 제외하고는, 적어도 하나의 모듈이나 칩으로 일체화되어 적어도 하나의 프로세서로 구현될 수 있다.In an embodiment of the present disclosure, terms such as “module”, “unit”, “part”, etc. are terms for designating a component that performs at least one function or operation, and such component is hardware or software. It may be implemented or implemented as a combination of hardware and software. In addition, a plurality of "modules", "units", "parts", etc. are integrated into at least one module or chip, except when each needs to be implemented as individual specific hardware, and thus at least one processor. can be implemented as

어떤 구성요소(예: 제1 구성요소)가 다른 구성요소(예: 제2 구성요소)에 "(기능적으로 또는 통신적으로) 연결되어((operatively or communicatively) coupled with/to)" 있다거나 "접속되어(connected to)" 있다고 언급된 때에는, 상기 어떤 구성요소가 상기 다른 구성요소에 직접적으로 연결되거나, 다른 구성요소(예: 제3 구성요소)를 통하여 연결될 수 있다고 이해되어야 할 것이다. 반면에, 어떤 구성요소(예: 제1 구성요소)가 다른 구성요소(예: 제2 구성요소)에 "직접 연결되어" 있다거나 "직접 접속되어" 있다고 언급된 때에는, 상기 어떤 구성요소와 상기 다른 구성요소 사이에 다른 구성요소(예: 제 3 구성요소)가 존재하지 않는 것으로 이해될 수 있다.A component (eg, a first component) is "coupled with/to (operatively or communicatively)" to another component (eg, a second component) When referring to "connected to", it should be understood that the certain element may be directly connected to the other element or may be connected through another element (eg, a third element). On the other hand, when it is said that a component (eg, a first component) is "directly connected" or "directly connected" to another component (eg, a second component), the component and the It may be understood that other components (eg, a third component) do not exist between other components.

한편, 전자 장치(100)는, 예를 들면, 스마트폰, 태블릿 PC, 데스크탑 PC, 랩탑 PC, 넷북 컴퓨터, 워크스테이션, 의료기기, 카메라, 또는 웨어러블 장치 중 적어도 하나를 포함할 수 있다. 다만, 이에 국한되는 것은 아니며, 전자 장치(100)는 디스플레이 장치, 냉장고, 에어컨, 청소기 등 다양한 유형의 장치로 구현될 수 있음은 물론이다.Meanwhile, the electronic device 100 may include, for example, at least one of a smart phone, a tablet PC, a desktop PC, a laptop PC, a netbook computer, a workstation, a medical device, a camera, and a wearable device. However, the present invention is not limited thereto, and the electronic device 100 may be implemented as various types of devices such as a display device, a refrigerator, an air conditioner, and a cleaner.

본 개시에서, 사용자라는 용어는 전자 장치를 사용하는 사람 또는 전자 장치를 사용하는 장치(예: 인공지능 전자 장치)를 지칭할 수 있다.In the present disclosure, the term user may refer to a person who uses an electronic device or a device (eg, an artificial intelligence electronic device) using the electronic device.

이하에서는 도면을 참조하여 본 개시에 대해 구체적으로 설명하도록 한다.Hereinafter, the present disclosure will be described in detail with reference to the drawings.

도 1은 본 개시의 일 실시예에 따른, 전자 장치(100)의 구성을 간략히 도시한 블록도이다. 도 1에 도시된 바와 같이, 전자 장치(100)는 메모리(110) 및 프로세서(120)가 포함될 수 있다. 다만, 도 1에 도시된 구성은 본 개시의 실시 예들을 구현하기 위한 예시도이며, 통상의 기술자에게 자명한 수준의 적절한 하드웨어 및 소프트웨어 구성들이 전자 장치(100)에 추가로 포함될 수 있다.1 is a block diagram schematically illustrating a configuration of an electronic device 100 according to an embodiment of the present disclosure. 1 , the electronic device 100 may include a memory 110 and a processor 120 . However, the configuration shown in FIG. 1 is an exemplary diagram for implementing embodiments of the present disclosure, and appropriate hardware and software configurations at a level obvious to those skilled in the art may be additionally included in the electronic device 100 .

메모리(110)는 전자 장치(100)의 적어도 하나의 다른 구성요소에 관계된 데이터 또는 적어도 하나의 명령어(instruction)를 저장할 수 있다. 명령어는 프로그래밍 작성 언어에서 프로세서(120)가 직접 실행할 수 있는 하나의 동작 문장(action statement)를 의미하며, 프로그램의 실행 또는 동작에 대한 최소 단위이다. 메모리(110)는 프로세서(120)에 의해 액세스되며, 프로세서(120)에 의한 데이터의 독취/기록/수정/삭제/갱신 등이 수행될 수 있다.The memory 110 may store data related to at least one other component of the electronic device 100 or at least one instruction. The command means one action statement that can be directly executed by the processor 120 in a programming language, and is a minimum unit for the execution or operation of a program. The memory 110 is accessed by the processor 120 , and reading/writing/modification/deletion/update of data by the processor 120 may be performed.

본 개시에서 메모리라는 용어는 메모리(110), 프로세서(120) 내 롬(미도시), 램(미도시)으로 구현되거나 프로세서(120)와 별도의 메모리로 구현될 수 있다. 이 경우, 메모리(110)는 데이터 저장 용도에 따라 전자 장치(100)에 임베디드된 메모리 형태로 구현되거나, 전자 장치(100)에 탈부착이 가능한 메모리 형태로 구현될 수도 있다. 예를 들어, 전자 장치(100)의 구동을 위한 데이터의 경우 전자 장치(100)에 임베디드된 메모리에 저장되고, 전자 장치(100)의 확장 기능을 위한 데이터의 경우 전자 장치(100)에 탈부착이 가능한 메모리에 저장될 수 있다.In the present disclosure, the term memory may be implemented as a memory 110 , a ROM (not shown), a RAM (not shown) in the processor 120 , or a memory separate from the processor 120 . In this case, the memory 110 may be implemented in the form of a memory embedded in the electronic device 100 or may be implemented in the form of a memory detachable from the electronic device 100 according to the purpose of data storage. For example, data for driving the electronic device 100 is stored in a memory embedded in the electronic device 100 , and data for an extended function of the electronic device 100 is detachable from the electronic device 100 . It can be stored in any available memory.

메모리(110)에는 제1 모델, 제2 모델, ASR(Auto Speech Recognition) 모델 및 구문 분석 모델 중 적어도 하나가 각종 동작을 수행하기 위해 필요한 데이터가 저장될 수 있다. 각 모델에 대한 설명은 후술하는 부분에서 설명하도록 한다.Data required for at least one of a first model, a second model, an Auto Speech Recognition (ASR) model, and a syntax analysis model to perform various operations may be stored in the memory 110 . A description of each model will be provided in the following section.

프로세서(120)는 메모리(110)와 전기적으로 연결되어 전자 장치(100)의 전반적인 동작 및 기능을 제어할 수 있다. 프로세서(120)는 하나 또는 복수의 프로세서로 구성될 수 있다. 이 때, 하나 또는 복수의 프로세서는 CPU(Central Processing Unit), AP(Application Processor), DSP(Digital Signal Processor) 등과 같은 범용 프로세서, GPU(Graphic Processing Unit), VPU(Vision Processing Unit)와 같은 그래픽 전용 프로세서 또는 NPU(Neural Processing Unit)와 같은 인공지능 전용 프로세서일 수 있다. 하나 또는 복수의 프로세서가 인공지능 전용 프로세서인 경우, 인공지능 전용 프로세서는, 특정 인공지능 모델의 처리에 특화된 하드웨어 구조로 설계될 수 있다.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 include one or a plurality of processors. At this time, one or more processors are general-purpose processors such as CPU (Central Processing Unit), AP (Application Processor), DSP (Digital Signal Processor), etc., and dedicated graphics such as GPU (Graphic Processing Unit) and VPU (Vision Processing Unit). It can be a processor or a processor dedicated to artificial intelligence, such as a Neural Processing Unit (NPU). When one or more processors are AI-only processors, the AI-only processor may be designed with a hardware structure specialized for processing a specific AI model.

또한, 프로세서(120)는 프로세싱 알고리즘이 내장된 SoC(System on Chip), LSI(large scale integration)로 구현될 수도 있고, FPGA(Field Programmable gate array) 형태로 구현될 수도 있다. 또한, 프로세서(120)는 메모리에 저장된 컴퓨터 실행가능 명령어(computer executable instructions)를 실행함으로써 다양한 기능을 수행할 수 있다.In addition, the processor 120 may be implemented as a system on chip (SoC), large scale integration (LSI), or a field programmable gate array (FPGA) having a built-in processing algorithm. In addition, the processor 120 may perform various functions by executing computer executable instructions stored in a memory.

프로세서(120)는 사용자로부터 텍스트를 입력 받을 수 있다. 프로세서(120)가 입력받은 텍스트는 전자 장치(100) 또는 다른 장치의 상태 또는 결함 등을 문의하는 텍스트가 포함될 수 있다. The processor 120 may receive text input from the user. The text input by the processor 120 may include text inquiring about the status or defect of the electronic device 100 or another device.

일 실시예로, 프로세서(120)는 터치 스크린 상에 표시된 가상 키보드 UI 등을 통해 사용자로부터 텍스트를 입력 받을 수 있다.In an embodiment, the processor 120 may receive text input from the user through a virtual keyboard UI displayed on the touch screen.

또 다른 실시예로, 마이크(160)를 통해 전자 장치(100) 또는 다른 장치의 상태 또는 결함 등을 문의하는 음성이 입력되면, 프로세서(120)는 입력된 음성을 ASR 모델에 입력하여 음성에 대응되는 텍스트를 획득할 수 있다. 여기서, ASR 모델(또는, STT(Speech-to-Text) 모델)은 입력된 음성을 인식하고, 인식된 음성에 대응되는 텍스트를 출력하도록 학습된 인공 지능 모델을 의미한다.In another embodiment, when a voice inquiring about the status or defect of the electronic device 100 or another device is input through the microphone 160 , the processor 120 inputs the input voice into the ASR model to respond to the voice. text can be obtained. Here, the ASR model (or STT (Speech-to-Text) model) refers to an artificial intelligence model trained to recognize an input voice and output a text corresponding to the recognized voice.

프로세서(120)는 입력된 텍스트에 대한 정보를 제1 모델에 입력하여 텍스트에 포함된 문장 성분의 의미역을 결정할 수 있다. 텍스트에 대한 정보는 텍스트의 구문 분석(sentence parsing) 결과가 포함될 수 있다. 프로세서(120)는 구문 분석 동작을 수행하도록 학습된 구문 분석 모델에 텍스트를 입력하여 구문 분석 결과를 획득할 수 있다. 여기서, 구문 분석은 일반적인 지식에 기초하여 이루어질 수 있으며, 일반적인 지식은 유의어 사전에 포함된 유의어, 동의어, 하위개념, 상위개념 중 적어도 하나로 이루어질 수 있다. 프로세서(120)는 구문 분석 동작을 수행하도록 학습된 구문 분석 모델에 텍스트와 함께 유의어, 동의어, 하위개념, 상위개념을 입력하여 보다 정확한 구문분석 결과를 획득할 수 있다.The processor 120 may input information about the inputted text into the first model to determine the semantic range of sentence components included in the text. The information on the text may include a result of sentence parsing of the text. The processor 120 may obtain a syntax analysis result by inputting text into a syntax analysis model trained to perform a syntax analysis operation. Here, the syntax analysis may be performed based on general knowledge, and the general knowledge may be formed of at least one of a thesaurus, a synonym, a sub-concept, and a super-concept included in the thesaurus. The processor 120 may obtain a more accurate syntax analysis result by inputting synonyms, synonyms, sub-concepts, and super-concepts together with text into the syntax analysis model trained to perform the syntax analysis operation.

제1 모델은 문장에 포함된 문장 성분의 의미역을 결정하도록 학습된 인공 지능 모델을 의미한다. 의미역은 문장 내에서 서술어에 의해 기술되는 행위나 명사구의 의미적인 역할을 의미하며, 예로, 주체(agent), 대상(recipient) 및 술어(predicate) 등이 포함될 수 있다. 즉, 제1 모델은, 텍스트에 대한 정보가 입력되면, 텍스트의 문장 성분 각각을 주체, 대상 및 술어 중 하나로 결정하도록 학습될 수 있다. 제1 모델의 구성 및 동작은 도 3 및 도 4를 참조하여 구체적으로 설명하도록 한다.The first model refers to an artificial intelligence model trained to determine the semantic domain of a sentence component included in a sentence. The semantic domain refers to the semantic role of an action or a noun phrase described by a predicate in a sentence, and may include, for example, an agent, a recipient, and a predicate. That is, when information on text is input, the first model may be trained to determine each sentence component of the text as one of a subject, an object, and a predicate. The configuration and operation of the first model will be described in detail with reference to FIGS. 3 and 4 .

프로세서(120)는 제1 모델에 의해 결정된 의미역에 대응되는 문장 성분을 제2 모델에 입력하여 텍스트의 위험 레벨을 획득할 수 있다. 여기서, 제2 모델은 문장에 포함된 문장 성분의 의미역에 기초하여 위험 레벨을 출력하도록 학습된 인공 지능 모델을 의미한다. The processor 120 may acquire the risk level of the text by inputting a sentence component corresponding to the semantic domain determined by the first model into the second model. Here, the second model refers to an artificial intelligence model trained to output a risk level based on the semantic domain of a sentence component included in the sentence.

텍스트의 위험 레벨은 텍스트가 의미하는 상황에 내포된 위험한 정도 또는 긴급한 정도를 나타내는 수치 또는 등급을 의미한다. 텍스트의 위험 레벨에 대응되는 수치가 높거나 텍스트의 위험 레벨에 대응되는 등급이 높다는 것은 텍스트가 의미하는 상황에 내포된 위험한 정도 또는 긴급한 정도가 크다는 것을 의미할 수 있다.The risk level of the text refers to a numerical value or grade indicating the degree of danger or urgency implied in the situation that the text means. A high numerical value corresponding to the risk level of the text or a high grade corresponding to the risk level of the text may mean that the degree of danger or urgency implied in the situation in the text is large.

즉, 제2 모델은 위험 정도 또는 긴급한 정도에 따라 분류된 복수의 위험 등급 중 하나를 텍스트의 위험 레벨로서 결정하도록 학습될 수 있다. 또 다른 예로, 제2 모델은 위험 정도를 나타내는 수치로 텍스트의 위험 레벨을 출력하도록 학습될 수 있다. That is, the second model may be trained to determine, as the risk level of the text, one of a plurality of risk classes classified according to the degree of risk or the degree of urgency. As another example, the second model may be trained to output the risk level of the text as a numerical value representing the degree of risk.

일 실시예로, 전자 장치(100) 또는 다른 장치의 상태 또는 결함을 문의하는 텍스트에 사용자(user)(또는, 사람) 또는 특정 장치를 의미하는 문장 성분이 포함되어 있는 경우, 해당 텍스트에 내포되어 있는 상황의 위험도 또는 긴급도가 높을 가능성이 높다. 이에 따라, 주체 및 대상 중 적어도 하나로 결정된 문장 성분이 사용자 또는 특정 장치를 의미하는 경우, 제2 모델은 텍스트의 위험 레벨을 기 설정된 값만큼 증가시키거나 기 설정된 등급만큼 높일 수 있다.As an embodiment, when the text inquiring about the state or defect of the electronic device 100 or other device includes a sentence component indicating a user (or, a person) or a specific device, it is embedded in the text. There is a high possibility that the risk or urgency of the situation is high. Accordingly, when the sentence component determined as at least one of the subject and the target means a user or a specific device, the second model may increase the risk level of the text by a preset value or by a preset grade.

또 다른 실시예로, 제2 모델은, 주체, 대상 및 술어 중 하나로 결정된 문장 성분과 의미가 유사한 단어를 식별하고, 식별된 단어에 매칭된 가중치를 이용하여 텍스트의 위험 레벨을 출력하도록 학습될 수 있다. 구체적으로, 제2 모델은 학습 단계에서 사전(dictionary)(예로, 시소러스(thesaurus)) 등과 같은 언어 데이터 베이스를 이용하여 문장 성분과 유사한 단어를 식별하도록 학습될 수 있다. In another embodiment, the second model may be trained to identify a word having a similar meaning to a sentence component determined as one of a subject, an object, and a predicate, and output the risk level of the text using a weight matched to the identified word. have. Specifically, the second model may be trained to identify words similar to sentence components using a language database such as a dictionary (eg, thesaurus) in the learning step.

예를 들어, 전자 장치(100)에 입력된 텍스트에 제2 모델이 학습하지 않은 특정 단어가 포함된 경우를 가정한다. 제2 모델은 특정 단어와 의미가 유사한 단어를 식별하고, 식별된 단어에 매칭된 가중치를 이용하여 텍스트의 위험 레벨을 출력할 수 있다. 즉, 제2 모델은 일부 단어를 학습하지 않더라도 기 학습된 언어 데이터 베이스를 이용하여 학습되지 않은 단어의 의미를 유추할 수 있다.For example, it is assumed that a specific word not learned by the second model is included in the text input to the electronic device 100 . The second model may identify a word having a similar meaning to a specific word, and output a risk level of the text using a weight matched to the identified word. That is, the second model may infer the meaning of the unlearned word by using the pre-learned language database even if some words are not learned.

한편, 프로세서(120)는 텍스트의 위험 레벨이 임계 등급 이상이거나 임계값 이상인지 여부를 식별할 수 있다. 텍스트의 위험 레벨이 임계 등급 이상이거나 임계값 이상이라는 것은 텍스트가 의미하는 상황의 위험도 또는 긴급도가 매우 높다는 것을 의미할 수 있다.Meanwhile, the processor 120 may identify whether the risk level of the text is greater than or equal to a threshold grade or greater than a threshold. If the risk level of the text is greater than or equal to the threshold grade or greater than the threshold, it may mean that the risk or urgency of the situation in the text is very high.

임계 등급은 위험 정도에 따라 분류된 복수의 위험 등급 중 사용자에 의해 설정된 등급을 의미하며, 변경될 수 있음은 물론이다. 예로, 복수의 위험 등급이 위험한 정도 순으로 Extreme, High, Mid, Low, None으로 분류된 경우를 가정한다. 이 때, 임계 등급은 사용자에 의해 High 등급으로 결정될 수 있으나, Extreme 또는 Mid로 변경될 수 있음은 물론이다.The critical grade means a grade set by a user among a plurality of risk grades classified according to the degree of risk, and may of course be changed. For example, it is assumed that multiple risk classes are classified into Extreme, High, Mid, Low, and None in the order of the degree of danger. At this time, the critical grade may be determined as a high grade by the user, but of course it may be changed to Extreme or Mid.

임계값은 실험 또는 연구 등에 의해 기설정된 값을 의미하나, 사용자에 의해 변경될 수 있음은 물론이다.The threshold value means a value preset by an experiment or research, of course, but may be changed by a user.

프로세서(120)는 텍스트의 위험 레벨에 대응되는 동작을 수행할 수 있다. 위험 레벨에 대응되는 동작은 목표 기기의 전원 종료, 목표 기기의 네트워크 연결 차단, 목표 기기의 재시작, 목표 기기에서 실행 중인 백그라운드 앱(Background App) 종료 중 적어도 하나일 수 있다. 여기서 목표 기기는 전자 장치(100) 또는 다른 전자 장치 중 적어도 하나일 수 있다.The processor 120 may perform an operation corresponding to the risk level of the text. The action corresponding to the risk level may be at least one of shutting down the power of the target device, blocking the network connection of the target device, restarting the target device, and terminating a background app running in the target device. Here, the target device may be at least one of the electronic device 100 or another electronic device.

텍스트의 위험 레벨이 제1 임계 등급 이상이거나 제1 임계값 이상이라고 식별되면, 프로세서(120)는 텍스트 및 위험 레벨에 대응되는 동작을 텍스트에 대응되는 장치를 관리하는 서버에 전송하도록 통신부(130)를 제어하거나 텍스트에 대응되는 상황 및 위험 레벨에 대응되는 동작의 알림 메시지를 제공할 수 있다. 여기서 텍스트의 위험 레벨이 제1 임계 등급 미만이거나 제1 임계값 미만인 것으로 식별되면, 프로세서(120)는 별도의 추가적인 제어 동작을 수행하지 않고 사용자에게 위험 상황에 대한 알림만을 제공할 수 있다.If the risk level of the text is greater than or equal to the first threshold grade or is identified as greater than or equal to the first threshold, the processor 120 transmits an operation corresponding to the text and the risk level to a server managing a device corresponding to the text. control or provide a notification message of an action corresponding to a situation and a risk level corresponding to the text. Here, if the risk level of the text is less than the first threshold grade or is identified as less than the first threshold value, the processor 120 may provide only a notification of a dangerous situation to the user without performing a separate additional control operation.

프로세서(120)는 위험 레벨의 등급이 높을수록, 값이 클수록 목표 기기가 최소한의 기능만 수행하도록 제어할 수 있다. 구체적으로 프로세서(120)는 목표 기기의 전원을 종료하거나 재시작하는 등 전체 시스템 복구를 위한 동작을 수행할 수 있다. 예를 들면, 프로세서(120)는 텍스트의 위험 레벨이 제1 임계 등급보다 높은 등급인 제2 임계 등급 이상이거나 제1 임계 값 보다 큰 값인 제2 임계 값 이상인 경우, 목표 기기의 전원 종료 동작을 수행할 수 있다. The processor 120 may control the target device to perform only a minimum function as the level of the risk level increases and the value increases. Specifically, the processor 120 may perform an operation for overall system recovery, such as shutting down or restarting the power of the target device. For example, the processor 120 performs a power-off operation of the target device when the risk level of the text is equal to or greater than a second threshold level, which is a level higher than the first threshold level, or is equal to or greater than a second threshold value, which is a value greater than the first threshold level. can do.

본 발명의 또 다른 실시 예로, 사용자 질의의 위험 상황에 대한 정보를 식별하여, 위험 상황에 대응되는 목표 기기 제어동작을 수행할 수 있다. As another embodiment of the present invention, information on a dangerous situation from a user's query may be identified, and a target device control operation corresponding to the dangerous situation may be performed.

구체적으로, 목표 기기의 내부 온도가 제1 임계 온도 이상인 경우, 프로세서(120)는 목표 기기의 백그라운드 앱을 모두 종료시킬 수 있다. 목표 기기의 내부 온도가 제1 임계 온도보다 높은 제2 임계 온도 이상인 경우, 프로세서(120)는 목표 기기를 재시작하도록 목표 기기를 제어할 수 있다. 목표 기기의 내부 온도가 제2 임계 온도보다 높은 제3 임계 온도 이상인 경우 프로세서(120)는 목표 기기의 전원을 종료할 수 있다.Specifically, when the internal temperature of the target device is equal to or greater than the first threshold temperature, the processor 120 may terminate all background apps of the target device. When the internal temperature of the target device is equal to or greater than the second threshold temperature higher than the first threshold temperature, the processor 120 may control the target device to restart the target device. When the internal temperature of the target device is equal to or greater than the third threshold temperature higher than the second threshold temperature, the processor 120 may turn off the power of the target device.

또한 목표 기기의 부피가 기 설정된 부피 이상 팽창하는 것으로 식별되면, 프로세서(120)는 목표 기기의 전원을 종료할 수 있다.Also, if it is identified that the volume of the target device expands by more than a preset volume, the processor 120 may shut off the power of the target device.

여기서, 텍스트에 대응되는 장치는 주체 또는 대상으로 결정된 문장 성분이 나타내는 장치를 의미할 수 있다. 즉, 프로세서(120)는, 텍스트의 위험 레벨이 임계 등급 또는 임계값 이상이라고 식별되면, 텍스트가 의미하는 위험한 상황 또는 긴급한 상황에 대응되는 동작을 수행할 수 있다.Here, the device corresponding to the text may mean a device indicated by a sentence component determined as a subject or an object. That is, when it is identified that the risk level of the text is greater than or equal to the threshold grade or the threshold, the processor 120 may perform an operation corresponding to a dangerous or urgent situation meaning the text.

예를 들어, 프로세서(120)는 스마트 폰의 배터리가 부풀고 있다는 의미가 포함된 텍스트를 입력 받았으며, 텍스트의 위험 레벨이 임계 등급 이상이라고 판단한 경우를 가정한다. 프로세서(120)는 스마트 폰을 관리하는 서버에 텍스트를 전송하도록 통신부(130)를 제어할 수 있다. 이에 따라, 서버 관리자는 스마트 폰에 발생한 상황에 긴급하게 대처할 수 있게 할 수 있다.For example, it is assumed that the processor 120 receives a text indicating that the battery of the smart phone is inflated and determines that the risk level of the text is greater than or equal to a threshold grade. The processor 120 may control the communication unit 130 to transmit text to a server managing the smart phone. Accordingly, the server administrator can make it possible to urgently respond to a situation occurring in the smart phone.

그리고, 프로세서(120)는 텍스트에 대응되는 상황의 알림 메시지를 제공할 수 있다. 예를 들어, 프로세서(120)는 스마트 폰의 배터리와 관련된 기 저장된 매뉴얼 정보 또는 대처 방식이 포함된 UI를 표시하도록 디스플레이(140)를 제어할 수 있다. 또 다른 예로, 프로세서(120)는 스마트 폰을 관리하는 서버로부터 제공받은 정보(예로, 배터리가 부풀고 있을 때 행동 요령 등)를 표시하도록 디스플레이(140)를 제어할 수 있다. In addition, the processor 120 may provide a notification message of a situation corresponding to the text. For example, the processor 120 may control the display 140 to display a UI including pre-stored manual information related to the battery of the smart phone or a coping method. As another example, the processor 120 may control the display 140 to display information (eg, how to behave when the battery is inflated) provided from the server managing the smart phone.

또 다른 예로, 프로세서(120)는 텍스트에 대응되는 상황이 긴급 상황임을 알리는 긴급 알림음 또는 메시지를 출력하도록 스피커(150)를 제어할 수 있다. 또 다른 예로, 프로세서(120)는 스마트 폰을 관리하는 서버로부터 제공받은 정보를 음성 형태로 출력하도록 스피커(150)를 제어할 수 있다. 또 다른 예로, 프로세서(120)는 기등록된 스마트 폰을 관리하는 서버의 관리자의 번호로 통화 연결할 수 있다. 이에 국한되는 것은 아니며, 텍스트의 위험 레벨에 대응되는 동작은 다양하게 구현될 수 있다.As another example, the processor 120 may control the speaker 150 to output an emergency notification sound or message indicating that the situation corresponding to the text is an emergency situation. As another example, the processor 120 may control the speaker 150 to output information received from the server managing the smart phone in the form of voice. As another example, the processor 120 may make a call to the number of a manager of a server that manages a pre-registered smart phone. The present invention is not limited thereto, and an operation corresponding to the risk level of the text may be implemented in various ways.

상술된 실시예를 통해, 전자 장치(100)는 입력된 텍스트의 위험 레벨을 획득함으로써 각종 장치의 위급한 상황을 빠르게 대응할 수 있으며, 사용자는 위급한 상황에 대처할 수 있는 정보를 제공받을 수 있다.Through the above-described embodiment, the electronic device 100 may quickly respond to an emergency situation of various devices by acquiring the risk level of the input text, and the user may be provided with information to cope with the emergency situation.

한편, 텍스트의 위험 레벨이 임계 등급 또는 임계값 미만이라고 식별되면, 프로세서(120)는 텍스트가 입력되었다는 로그(log) 파일을 메모리(110)에 저장할 수 있다.Meanwhile, if it is identified that the risk level of the text is less than the threshold grade or the threshold, the processor 120 may store a log file indicating that the text is input in the memory 110 .

한편, 본 개시에 따른 인공지능과 관련된 기능은 프로세서(120)와 메모리(110)를 통해 동작된다. 하나 또는 복수의 프로세서(120)는, 메모리(110)에 저장된 기 정의된 동작 규칙 또는 인공지능 모델에 따라, 입력 데이터를 처리하도록 제어한다.Meanwhile, the function related to artificial intelligence according to the present disclosure is operated through the processor 120 and the memory 110 . One or more processors 120 control to process input data according to a predefined operation rule or artificial intelligence model stored in the memory 110 .

기 정의된 동작 규칙 또는 인공지능 모델은 학습을 통해 만들어진 것을 특징으로 한다. 여기서, 학습을 통해 만들어진다는 것은, 기본 인공지능 모델이 학습 알고리즘에 의하여 다수의 학습 데이터들을 이용하여 학습됨으로써, 원하는 특성(또는, 목적)을 수행하도록 설정된 기 정의된 동작 규칙 또는 인공지능 모델이 만들어짐을 의미한다. 이러한 학습은 본 개시에 따른 인공지능이 수행되는 기기 자체에서 이루어질 수도 있고, 별도의 서버 및/또는 시스템을 통해 이루어 질 수도 있다. The predefined action rule or artificial intelligence model is characterized in that it is created through learning. Here, being made through learning means that a basic artificial intelligence model is learned using a plurality of learning data by a learning algorithm, so that a predefined action rule or artificial intelligence model set to perform a desired characteristic (or purpose) is created means burden. Such learning may be performed in the device itself on which artificial intelligence according to the present disclosure is performed, or may be performed through a separate server and/or system.

학습 알고리즘의 예로는, 지도형 학습(supervised learning), 비지도형 학습(unsupervised learning), 준지도형 학습(semi-supervised learning) 또는 강화 학습(reinforcement learning)이 있으나, 전술한 예에 한정되지 않는다.Examples of the learning algorithm include, but are not limited to, supervised learning, unsupervised learning, semi-supervised learning, or reinforcement learning.

인공지능 모델은 복수의 인공 신경망을 포함하며, 인공 신경망은 복수의 레이어들로 구성될 수 있다. 복수의 신경망 레이어들 각각은 복수의 가중치들(weight values)을 갖고 있으며, 이전(previous) 레이어의 연산 결과와 복수의 가중치들 간의 연산을 통해 신경망 연산을 수행한다. 복수의 신경망 레이어들이 갖고 있는 복수의 가중치들은 인공지능 모델의 학습 결과에 의해 최적화될 수 있다. 예를 들어, 학습 과정 동안 인공지능 모델에서 획득한 로스(loss) 값 또는 코스트(cost) 값이 감소 또는 최소화되도록 복수의 가중치들이 갱신될 수 있다.The artificial intelligence model includes a plurality of artificial neural networks, and the artificial neural network may be composed of a plurality of layers. Each of the plurality of neural network layers has a plurality of weight values, and a neural network operation is performed through an operation between an operation result of a previous layer and a plurality of weights. The plurality of weights of the plurality of neural network layers may be optimized by the learning result of the artificial intelligence model. For example, a plurality of weights may be updated so that a loss value or a cost value obtained from the artificial intelligence model during the learning process is reduced or minimized.

인공 신경망은 심층 신경망(DNN:Deep Neural Network)를 포함할 수 있으며, 예를 들어, 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 neural network may include a deep neural network (DNN), for example, a Convolutional Neural Network (CNN), a Deep Neural Network (DNN), a Recurrent Neural Network (RNN), a Restricted Boltzmann Machine (RBM), There may be a Deep Belief Network (DBN), a Bidirectional Recurrent Deep Neural Network (BRDNN), or a Deep Q-Networks, but is not limited to the above-described example.

도 2는 본 개시의 일 실시예에 따른, 전자 장치(100)의 제어 방법을 설명하기 위한 순서도이다.2 is a flowchart illustrating a method of controlling the electronic device 100 according to an embodiment of the present disclosure.

전자 장치(100)는 텍스트를 입력받을 수 있다(S210). 일 실시예로, 전자 장치(100)는 사용자로부터 전자 장치(100) 또는 다른 장치의 상태 또는 결함을 문의하는 내용이 포함된 텍스트를 입력받을 수 있다.The electronic device 100 may receive a text input (S210). As an embodiment, the electronic device 100 may receive a text including a content to inquire about a state or a defect of the electronic device 100 or another device from a user.

또 다른 실시예로, 전자 장치(100)는 전자 장치(100)는 또는 다른 장치의 상태 또는 결함 등을 문의하는 사용자 음성을 입력받을 수 있다. 전자 장치(100)는 입력된 사용자 음성을 ASR 모델에 입력하여 사용자 음성에 대응되는 텍스트를 획득할 수 있다.As another embodiment, the electronic device 100 may receive a user voice inquiring about the state or defect of the electronic device 100 or another device. The electronic device 100 may obtain a text corresponding to the user's voice by inputting the inputted user's voice into the ASR model.

전자 장치(100)는 입력된 텍스트에 대한 정보를 제1 모델에 입력하여 텍스트에 포함된 문장 성분의 의미역을 결정할 수 있다(S520). 제1 모델은 문장에 포함된 문장 성분의 의미역을 결정하도록 학습된 인공 지능 모델을 의미할 수 있다.The electronic device 100 may input information about the input text into the first model to determine the semantic range of a sentence component included in the text ( S520 ). The first model may mean an artificial intelligence model trained to determine the semantic domain of a sentence component included in a sentence.

구체적으로, 전자 장치(100)는 입력된 텍스트를 구문 분석 모델에 입력하여 구문 분석 결과가 포함된 텍스트에 대한 정보를 획득할 수 있다. 전자 장치(100)는 텍스트에 대한 정보를 제1 모델에 입력하여 텍스트에 포함된 문장 성분 각각을 주체, 대상 및 술어 중 하나로 결정할 수 있다.Specifically, the electronic device 100 may obtain information about the text including the syntax analysis result by inputting the input text into the syntax analysis model. The electronic device 100 may input information about the text into the first model and determine each of the sentence components included in the text as one of a subject, an object, and a predicate.

전자 장치(100)는 결정된 의미역에 대응되는 문장 성분을 제2 모델에 입력하여 텍스트의 위험 레벨을 획득할 수 있다(S230). The electronic device 100 may obtain the risk level of the text by inputting the sentence component corresponding to the determined semantic domain into the second model ( S230 ).

제2 모델은 문장에 포함된 문장 성분의 의미역에 기초하여 위험 레벨을 출력하도록 학습된 인공 지능 모델을 의미한다. 제2 모델은 위험 정도에 따라 분류된 복수의 위험 등급 중 하나를 텍스트의 위험 레벨로서 출력할 수 있다. 또 다른 예로, 제2 모델은 텍스트의 위험 레벨을 위험 정도를 나타내는 수치로서 출력하도록 학습될 수 있다.The second model refers to an artificial intelligence model trained to output a risk level based on a semantic domain of a sentence component included in a sentence. The second model may output one of a plurality of risk classes classified according to the degree of risk as the risk level of the text. As another example, the second model may be trained to output the risk level of the text as a numerical value indicating the degree of risk.

전자 장치(100)는 획득된 텍스트의 위험 레벨에 대응되는 동작을 수행할 수 있다(S240). 여기서, 위험 레벨에 대응되는 동작은, 목표 기기의 전원 종료, 목표 기기의 네트워크 연결 차단, 목표 기기의 재시작, 목표 기기에서 실행 중인 백그라운드 앱 종료 중 적어도 하나일 수 있다. 여기서 목표 기기는 목표 기기는 전자 장치(100) 또는 다른 전자 장치 중 적어도 하나일 수 있다.The electronic device 100 may perform an operation corresponding to the risk level of the acquired text (S240). Here, the operation corresponding to the risk level may be at least one of shutting down the power of the target device, blocking the network connection of the target device, restarting the target device, and terminating a background app running in the target device. Here, the target device may be at least one of the electronic device 100 or another electronic device.

구체적으로, 전자 장치(100)는 획득된 텍스트의 위험 레벨이 제1 임계 등급 이상이거나 제2 임계값 이상인지 식별할 수 있다. 텍스트의 위험 레벨이 임계 등급 또는 임계값 이상이라고 식별되면, 전자 장치(100)는 텍스트에 대응되는 장치를 관리하는 서버에 텍스트 및 위험 레벨에 대응되는 동작을 전송하거나 텍스트에 대응되는 상황 및 위험 레벨에 대응되는 동작의 알림 메시지를 제공할 수 있다. 전자 장치(100)는 텍스트의 위험 레벨이 제2 임계 등급 이상이거나 제2 임계 값 이상인 경우, 목표 기기의 전원 종료 동작을 수행할 수 있다.Specifically, the electronic device 100 may identify whether the risk level of the acquired text is greater than or equal to a first threshold level or greater than or equal to a second threshold. When it is identified that the risk level of the text is greater than or equal to the threshold grade or the threshold, the electronic device 100 transmits an action corresponding to the text and the risk level to a server managing the device corresponding to the text, or a situation and risk level corresponding to the text It is possible to provide a notification message of an operation corresponding to . When the danger level of the text is equal to or greater than the second threshold level or equal to or greater than the second threshold value, the electronic device 100 may perform a power-off operation of the target device.

이 때, 텍스트에 대응되는 장치는 주체 또는 대상으로 결정된 텍스트의 일 문장 성분이 의미하는 장치를 의미할 수 있다. 그리고, 텍스트에 대응되는 상황의 알림 메시지는 전자 장치(100)이 기 저장된 텍스트에 대응되는 상황을 대처할 수 있는 메시지 또는 텍스트에 대응되는 상황을 알릴 수 있는 알림음 등이 포함될 수 있다. 또 다른 예로, 텍스트에 대응되는 상황의 알림 메시지는 텍스트에 대응되는 장치를 관리하는 서버로부터 수신된 정보가 포함될 수 있다.In this case, the device corresponding to the text may mean a device in which one sentence component of the text determined as a subject or an object means. In addition, the notification message of the situation corresponding to the text may include a message in which the electronic device 100 can cope with the situation corresponding to the pre-stored text or a notification sound for notifying the situation corresponding to the text. As another example, the notification message of a situation corresponding to the text may include information received from a server managing a device corresponding to the text.

한편, 텍스트의 위험 레벨이 임계 등급 또는 임계값 미만이라고 식별되면, 전자 장치(100)는 텍스트가 입력되었다는 로그(log) 파일을 저장할 수 있다.Meanwhile, when it is identified that the risk level of the text is less than the threshold level or the threshold value, the electronic device 100 may store a log file indicating that the text has been input.

도 3은 본 개시의 일 실시예에 따른, 전자 장치(100)가 각 모델을 이용하여 텍스트의 위험 레벨을 획득하는 과정을 설명하기 위한 도면이다. 도 3에 도시된 바와 같이, 각 모델(20,40,60)은 파이프 라인(pipeline) 구조로 연결될 수 있다. 3 is a diagram for describing a process in which the electronic device 100 acquires a risk level of a text using each model, according to an embodiment of the present disclosure. As shown in FIG. 3 , each model 20 , 40 , and 60 may be connected in a pipeline structure.

다만, 이는 일 실시예에 불과하며, 각 모델(20,40,60)은 하나의 인공 지능 모델인 위험 레벨 판단 모델의 구성 요소로 구현될 수 있다. 이 때, 위험 레벨 판단 모델은 입력된 텍스트(10)를 이용하여 텍스트의 위험 레벨(70)을 출력하도록 학습된 모델이며, end-to-end 구조로 구현될 수 있다.However, this is only an embodiment, and each model 20 , 40 , and 60 may be implemented as a component of a risk level determination model that is one artificial intelligence model. In this case, the risk level determination model is a model trained to output the risk level 70 of the text using the input text 10 , and may be implemented in an end-to-end structure.

그리고, 각 모델(20,40,60)은 전자 장치(100)에 내장되어 있을 수 있으나, 각 모델(20,40,60) 중 적어도 하나는 서버에 포함되어 있을 수 있다.Also, each model 20 , 40 , and 60 may be embedded in the electronic device 100 , but at least one of the models 20 , 40 , and 60 may be included in the server.

전자 장치(100)는 텍스트(10)를 구분 분석 모델(20)에 입력하여 구문 분석 결과(30)가 포함된 텍스트(10)에 대한 정보를 획득할 수 있다. 예로, 텍스트(X Charger inflated my phone battery)(10)는 X사의 charger가 battery를 부풀게 하는 상황을 문의하는 텍스트 인 경우를 가정한다. 구문 분석 결과는 하기 표 1과 같이 출력될 수 있다.The electronic device 100 may obtain information about the text 10 including the syntax analysis result 30 by inputting the text 10 into the classification analysis model 20 . For example, it is assumed that the text (X Charger inflated my phone battery) 10 is a text inquiring about a situation in which the X charger inflates the battery. The syntax analysis result may be output as shown in Table 1 below.

ROOT
(S
(NP (NNP X) (NNP Charger))
(VP (VBD inflated)
(NP (PRP$ my) (NN phone) (NN battery)))
(. .)))
ROOT
(S
(NP (NNP X) (NNP Charger))
(VP (VBD inflated)
(NP (PRP$ my) (NN phone) (NN battery)))
(..))))

전자 장치(100)는 구문 분석 결과(30)가 포함된 텍스트에 대한 정보를 제1 모델(40)에 입력하여 텍스트에 포함된 문장 성분의 의미역을 결정(50)할 수 있다. 예를 들어, X Charger는 주체로 결정되고, inflate는 술어로 결정되고, my phone battery는 대상으로 결정될 수 있다.전자 장치(100)는 결정된 의미역에 대응되는 문장 성분(50)을 제2 모델(60)에 입력하여 텍스트의 위험 레벨(70)을 출력할 수 있다. 제2 모델(60)은, 주체인 'X charger'가 대상인 'my phone battery'에게 'inflate'라는 동작을 수행하는 것이 위험 또는 긴급한 상황인지 여부를 나타내는 위험 레벨(70)을 출력할 수 있다.텍스트(10)에 포함된 단어('X charger', 'my phone battery' 및 'inflate' )각각의 개별적인 의미에는 위험 또는 긴급한 상황이라는 의미가 내포되지 않을 수 있다. 다만, 각 단어를 결합할 경우, 충전기가 배터리를 부풀어오르게 하는 상황이라는 의미가 도출된다. 의미가 도출된 상황은 위험 또는 긴급한 상황일 가능성이 높다. 단어 별로 위험도를 감지함으로써 텍스트(10)의 위험도를 판단할 경우, 텍스트에 포함된 상황은 위험하지 않다고 오인할 가능성이 높다.The electronic device 100 may input information about the text including the syntax analysis result 30 into the first model 40 to determine the semantic range of the sentence component included in the text ( 50 ). For example, X Charger may be determined as a subject, inflate may be determined as a predicate, and my phone battery may be determined as a target. Input to (60) can output a risk level (70) of the text. The second model 60 may output a risk level 70 indicating whether it is dangerous or urgent for the subject 'X charger' to perform the operation 'inflate' on the target 'my phone battery'. Each individual meaning of the words 'X charger', 'my phone battery', and 'inflate' included in the text 10 may not have a meaning of a dangerous or urgent situation. However, when each word is combined, the meaning of a situation in which the charger swells the battery is derived. Situations from which meaning is derived are likely to be dangerous or urgent. When the risk level of the text 10 is determined by detecting the degree of risk for each word, there is a high possibility that a situation included in the text is misunderstood as not dangerous.

따라서, 제2 모델은 결정된 의미역에 대응되는 텍스트의 문장 성분을 이용하여 텍스트의 위험 레벨을 출력함으로써, 텍스트가 의미하는 상황에 내포되어 있는 위험한 정도 또는 긴급한 정도를 보다 정확하게 나타낼 수 있다.Accordingly, the second model outputs the risk level of the text by using the sentence component of the text corresponding to the determined semantic range, thereby more accurately representing the degree of danger or the degree of urgency contained in the context in which the text is meant.

한편, 제2 모델은, 주체 또는 대상이 사용자 또는 장치를 의미하는 경우, 텍스트의 위험 레벨을 증가시킬 수 있다. 예로, 주체 및 대상으로 결정된 문장 성분인 'X charger' 및 'My phone battery”은 특정 장치를 지칭하고 있는 바, 제2 모델은 텍스트의 위험 레벨을 기 설정된 등급 또는 수치만큼 증가시킬 수 있다.On the other hand, the second model may increase the risk level of the text when the subject or object means a user or a device. For example, 'X charger' and 'My phone battery', which are sentence components determined as subject and subject, refer to a specific device, and the second model may increase the risk level of the text by a preset grade or numerical value.

전자 장치(100)는 텍스트의 위험 레벨(70)에 대응되는 동작을 수행할 수 있다. 위험 레벨에 대응되는 동작은 전술하였으므로 중복되는 설명은 생략하도록 한다.The electronic device 100 may perform an operation corresponding to the risk level 70 of the text. Since the operation corresponding to the risk level has been described above, the overlapping description will be omitted.

도 4는 본 개시의 일 실시예에 따른, 제1 모델의 구성 및 동작을 설명하기 위한 도면이다. 4 is a view for explaining the configuration and operation of the first model according to an embodiment of the present disclosure.

도 4에 도시된 바와 같이, 제1 모델에는 인코더 레이어(410) 및 디코더 레이어가(430)를 포함할 수 있다. 인코더 레이어(410)는 구문 분석 결과(입력 데이터)에서 텍스트에 포함된 문장 성분의 의미역을 결정하기 위해 필요한 데이터를 추출하여 코드 정보(출력 데이터)(420)를 출력할 수 있다. 즉, 코드 정보(420)는 텍스트에 포함된 문장 성분의 의미역을 결정하기 위한 정보가 압축된 정보를 의미할 수 있다.As shown in FIG. 4 , the first model may include an encoder layer 410 and a decoder layer 430 . The encoder layer 410 may output code information (output data) 420 by extracting data necessary to determine a semantic range of a sentence component included in text from a result of the syntax analysis (input data). That is, the code information 420 may mean information in which information for determining a semantic range of a sentence component included in a text is compressed.

디코더 레이어(430)는 코드 정보(420)를 이용하여 텍스트에 포함된 문장 성분의 의미역을 결정할 수 있는 데이터(출력 데이터)를 출력할 수 있다. The decoder layer 430 may use the code information 420 to output data (output data) for determining a semantic range of a sentence component included in the text.

도 4에 도시된 바와 같이, 디코더 레이어(430)에서 출력된 문장 성분의 의미역을 결정할 수 있는 데이터와 구문 분석 결과는 일대일 매칭 관계일 수 있다. 예를 들어, 구분 분석 결과의 세 번째 줄((NP (NNP X) (NNP Charger)))과 문장 성분의 의미역을 결정할 수 있는 출력 데이터의 세 번째 성분(Device_Agent)과 일대일 매칭 관계일 수 있다. 따라서, 텍스트의 문장 성분 중 X Charger는 의미역 중 주체로 결정될 수 있다.As shown in FIG. 4 , the data for determining the semantic range of the sentence component output from the decoder layer 430 and the result of parsing may have a one-to-one matching relationship. For example, there may be a one-to-one matching relationship between the third line ((NP (NNP X) (NNP Charger))) of the classification analysis result and the third component (Device_Agent) of the output data that can determine the semantic domain of the sentence component. . Accordingly, the X Charger among the sentence components of the text may be determined as the subject in the semantic domain.

도 5는 본 개시의 일 실시예에 따른, 제2 모델의 구성 및 동작을 설명하기 위한 도면이다.5 is a diagram for explaining the configuration and operation of a second model according to an embodiment of the present disclosure.

일 실시예로, 제1 모델에 의해 결정된 의미역에 대응되는 문장 성분이 입력되면, 제2 모델은 텍스트의 위험 레벨을 출력할 수 있다. 예를 들어, 결정된 의미역에 대응되는 문장 성분(Agent: X Charger, Predicate: Inflate, Recipient: My phone battery)이 입력되면, 제2 모델은 텍스트의 위험 레벨을 출력할 수 있다. As an embodiment, when a sentence component corresponding to the semantic domain determined by the first model is input, the second model may output a risk level of the text. For example, when sentence components (Agent: X Charger, Predicate: Inflate, Recipient: My phone battery) corresponding to the determined semantic domain are input, the second model may output a risk level of the text.

또 다른 실시예로, 제1 모델의 의해 결정된 의미역에 대응되는 문장 성분 및 구문 분석 결과가 결합된 데이터(510)가 입력되면, 제2 모델은 텍스트의 위험 레벨을 출력할 수 있다. 즉, 전자 장치(100)는, 도 3에 도시된 구문 분석 결과(30) 및 결정된 의미역에 대응되는 문장 성분(50)을 결합하고, 결합된 데이터(510)를 제2 모델에 입력하여 텍스트의 위험 레벨을 획득할 수 있다. 결합된 데이터(510)는 하기 표 2와 같이 구현될 수 있다.As another embodiment, when the data 510 in which the sentence component corresponding to the semantic range determined by the first model and the syntax analysis result are combined is input, the second model may output the risk level of the text. That is, the electronic device 100 combines the syntax analysis result 30 shown in FIG. 3 and the sentence component 50 corresponding to the determined semantic domain, and inputs the combined data 510 into the second model to provide text of risk level can be obtained. The combined data 510 may be implemented as shown in Table 2 below.

ROOT / - /None
S / - / None
NP / X Charger / Device_Agent
VP / Inflate / Predicate
NP / My phone battery / Device_Recipient
. / - / None
ROOT / - /None
S / - / None
NP / X Charger / Device_Agent
VP / Inflate / Predicate
NP / My phone battery / Device_Recipient
. / - / None

한편, 제2 모델은 주체, 대상 및 술어 중 하나로 결정된 문장 성분과 의미가 유사한 단어를 식별하고, 식별된 단어에 매칭된 가중치를 이용하여 텍스트의 위험 레벨을 출력하도록 학습될 수 있다. 구체적으로, 제2 모델은 유의어 등이 포함된 사전(예로, 시소러스(thesaurus))등으로 구성된 언어 데이터 베이스(540)를 이용하여 문장 성분과 유사한 단어를 식별하도록 학습될 수 있다.예를 들어, 제2 모델이 'inflate'라는 단어가 포함된 학습 데이터를 이용하여 학습되지 않은 경우를 가정한다. 제2 모델은 언어 데이터 베이스(540)를 이용하여 술어로 결정된 문장 성분인 'inflate'와 의미가 유사한 단어(예로, blow up)를 식별할 수 있다. 제2 모델은 식별된 'blow up'에 매칭된 가중치를 이용하여 텍스트의 위험 레벨을 출력할 수 있다. 즉, 제2 모델은 주체 및 대상으로 결정된 문장 성분에 대응되는 가중치 및 'blow up'에 매칭된 가중치를 이용하여 텍스트의 위험 레벨을 출력할 수 있다.상술된 실시예에 따라, 제2 모델은 학습 단계에서 학습되지 않은 단어의 의미를 사전 등 유의어 등이 포함된 데이터 베이스를 이용하여 식별할 수 있다. 이에 따라, 제2 모델을 학습시키기 위한 데이터의 양, 학습 시간 및 비용을 감소시킬 수 있다.Meanwhile, the second model may be trained to identify a word having a similar meaning to a sentence component determined as one of a subject, an object, and a predicate, and output a risk level of the text using a weight matched to the identified word. Specifically, the second model may be trained to identify words similar to sentence components using a language database 540 composed of a dictionary (eg, thesaurus) including synonyms. For example, It is assumed that the second model is not trained using training data including the word 'inflate'. The second model may identify a word (eg, blow up) having a similar meaning to 'inflate', which is a sentence component determined as a predicate using the language database 540 . The second model may output the risk level of the text using a weight matched to the identified 'blow up'. That is, the second model may output the risk level of the text by using the weight corresponding to the sentence component determined as the subject and the target and the weight matched to 'blow up'. According to the above-described embodiment, the second model is In the learning stage, the meaning of the unlearned word can be identified using a database including synonyms such as a dictionary. Accordingly, it is possible to reduce the amount of data, training time, and cost for training the second model.

한편, 일 실시예로, 제2 모델은, 분류(classification) 방식을 이용하여, 텍스트의 위험 레벨을 복수의 위험 등급 중 하나로 분류(또는, 결정)할 수 있다. 제2 모델의 출력 레이어(output layer)에는 소프트 맥스(softmax) 레이어가 포함될 수 있다. 소프트 맥스 레이어는, 입력된 데이터의 예측 값으로 가능한 모든 결과에 대해 정답일 확률의 합이 1이 되도록 하는 소프트 맥스 함수 기능을 수행하는 레이어를 의미한다.Meanwhile, as an embodiment, the second model may classify (or determine) the risk level of the text into one of a plurality of risk classes using a classification method. An output layer of the second model may include a softmax layer. The soft max layer refers to a layer that performs a soft max function so that the sum of probabilities of correct answers becomes 1 for all possible results as predicted values of input data.

예를 들어, 위험 정도에 따라 5개의 위험 등급(Extreme, High, Mid, Low, None)으로 분류된 경우를 가정한다. 결합된 데이터(510)가 입력되면, 제2 모델은 5개의 위험 등급 각각이 텍스트의 위험 레벨에 대응되는 등급일 확률(520)을 소프트 맥스 레이어를 이용하여 출력할 수 있다. 텍스트의 위험 레벨이 복수의 위험 등급 중 Extreme일 확률이 90%로서 가장 높은 바, 전자 장치(100)는 텍스트의 위험 레벨을 Extreme으로 식별할 수 있다.For example, suppose a case is classified into 5 risk classes (Extreme, High, Mid, Low, None) according to the degree of risk. When the combined data 510 is input, the second model may output a probability 520 that each of the five risk grades is a grade corresponding to the risk level of the text using the soft max layer. Since the probability that the risk level of the text is Extreme among the plurality of risk grades is the highest as 90%, the electronic device 100 may identify the risk level of the text as Extreme.

본 개시의 또 다른 실시예로, 제2 모델은, 회귀(regression) 방식을 이용하여, 텍스트의 위험 레벨을 위험 정도로 나타내는 수치(530)로서 출력할 수 있다. 위험 정도를 나타내는 수치가 높을수록, 텍스트에 내포되어 있는 상황의 위험도 또는 긴급도가 높다는 것을 의미할 수 있다.As another embodiment of the present disclosure, the second model may output the risk level of the text as a numerical value 530 indicating the degree of risk by using a regression method. The higher the numerical value indicating the degree of risk, the higher the degree of risk or urgency of the situation contained in the text.

전자 장치(100)는 제2 모델에서 출력된 텍스트의 위험 레벨이 임계 등급 또는 임계값 이상인지 여부를 식별함으로써 텍스트에 내포되어 있는 상황의 위험도 또는 긴급도를 식별할 수 있다. 텍스트의 위험 레벨이 임계 등급 또는 임계값 이상인 경우, 전자 장치(100)는 텍스트를 텍스트에 대응되는 장치를 관리하는 서버에 전송하거나 텍스트에 대응되는 상황의 알림 메시지를 제공할 수 있다. The electronic device 100 may identify the degree of risk or urgency of a situation contained in the text by identifying whether the risk level of the text output from the second model is equal to or greater than a threshold grade or a threshold value. When the risk level of the text is a threshold grade or a threshold value or more, the electronic device 100 may transmit the text to a server managing a device corresponding to the text or provide a notification message of a situation corresponding to the text.

도 6은 본 개시의 일 실시 예에 따른, 목표 기기의 제어 동작을 설명하기 위한 도면이다. 사용자 질의(610)(예: 스마트폰에서 발열이 심해요.)가 음성 또는 텍스트 형식으로 입력되면, 프로세서(120)는 사용자 질의(610)의 위험 레벨에 대한 정보(620)를 획득할 수 있다. 획득된 위험 레벨이 제1 임계등급 또는 제1 임계 값 이상인 경우, 프로세서(120)는 위험 레벨에 대응되는 목표 기기의 제어 동작을 수행할 수 있다. 또한, 획득된 위험 레벨이 제1 임계등급보다 높은 등급인 제2 임계등급이거나 획득된 위험 레벨이 제1 임계 값보다 큰 값인 제2 임계 값인 경우, 사용자에게 위험 상황(예: 휴대폰 발열)과 위험 레벨에 대응되는 동작(예: 전원 차단 동작)을 수행하기 위한 UI(630)를 제공할 수 있다.6 is a diagram for explaining a control operation of a target device, according to an embodiment of the present disclosure. When a user query 610 (eg, the smartphone generates a lot of heat) is input in a voice or text format, the processor 120 may obtain information 620 about the risk level of the user query 610 . When the acquired risk level is the first threshold grade or the first threshold value or more, the processor 120 may perform a control operation of the target device corresponding to the risk level. In addition, if the acquired risk level is a second threshold grade, which is a grade higher than the first threshold grade, or if the acquired risk level is a second threshold value that is a value greater than the first threshold value, a dangerous situation (eg, mobile phone fever) and danger to the user A UI 630 for performing an operation corresponding to the level (eg, a power-off operation) may be provided.

도 7은 본 개시의 일 실시예에 따른, 전자 장치(100)의 구성을 상세히 도시한 블록도이다. 도 7에 도시된 바와 같이, 전자 장치(100)는 메모리(110), 프로세서(120), 통신부(130), 디스플레이(140), 스피커(150), 마이크(160), 입력부(170) 및 센서(180)가 포함될 수 있다. 메모리(110) 및 프로세서(120)는 도 1을 참조하여 구체적으로 설명하였으므로 중복되는 설명은 생략하도록 한다.7 is a block diagram illustrating in detail the configuration of the electronic device 100 according to an embodiment of the present disclosure. 7 , the electronic device 100 includes a memory 110 , a processor 120 , a communication unit 130 , a display 140 , a speaker 150 , a microphone 160 , an input unit 170 , and a sensor. (180) may be included. Since the memory 110 and the processor 120 have been described in detail with reference to FIG. 1 , redundant descriptions will be omitted.

통신부(130)는 외부 장치와 통신을 수행할 수 있다. 이때, 통신부(130)가 외부 장치와 통신 연결되는 것은 제3 기기(예로, 중계기, 허브, 엑세스 포인트, 서버 또는 게이트웨이 등)를 거쳐서 통신하는 것을 포함할 수 있다.The communication unit 130 may communicate with an external device. In this case, the communication connection of the communication unit 130 with the external device may include communication through a third device (eg, a repeater, a hub, an access point, a server, or a gateway).

통신부(130)는 전자 장치(100)와 무선으로 연결된 마이크(160)를 통해 입력된 사용자 음성을 수신할 수 있다. 통신부(130)는 전자 장치(100)에 입력된 텍스트에 대응되는 장치를 관리하는 서버(또는, 서버 관리자의 기기)에 텍스트를 전송할 수 있다. 통신부(130)는 서버로부터 텍스트에 대응되는 상황을 대처하기 위한 정보를 수신할 수 있다.The communication unit 130 may receive a user voice input through the microphone 160 wirelessly connected to the electronic device 100 . The communication unit 130 may transmit the text to a server (or a server manager's device) that manages a device corresponding to the text input to the electronic device 100 . The communication unit 130 may receive information for coping with a situation corresponding to the text from the server.

한편, 통신부(130)는 외부 장치와 통신을 수행하기 위해 다양한 통신 모듈을 포함할 수 있다. 일 예로, 통신부(130)는 무선 통신 모듈을 포함할 수 있으며, 예를 들면, 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), 5G(5th generation) 등 중 적어도 하나를 사용하는 셀룰러 통신 모듈을 포함할 수 있다. Meanwhile, the communication unit 130 may include various communication modules to communicate with an external device. For example, the communication unit 130 may include a wireless communication module, for example, LTE, LTE Advance (LTE-A), CDMA (code division multiple access), WCDMA (wideband CDMA), UMTS (universal mobile telecommunications) system), a cellular communication module using at least one of Wireless Broadband (WiBro), Global System for Mobile Communications (GSM), 5th generation (5G), and the like.

또 다른 예로, 무선 통신 모듈은, 예를 들면, WiFi(wireless fidelity), 블루투스, 블루투스 저전력(BLE), 지그비(Zigbee) 중 적어도 하나를 포함할 수 있다.As another example, the wireless communication module may include, for example, at least one of wireless fidelity (WiFi), Bluetooth, Bluetooth low energy (BLE), and Zigbee.

디스플레이(140)는 프로세서(120)의 제어에 따라 다양한 정보를 표시할 수 있다. 특히, 디스플레이(140)는 사용자로부터 입력된 텍스트(또는, 사용자 음성에 대응되는 텍스트)를 표시할 수 있다. 디스플레이(140)는 텍스트에 대응되는 상황을 대처하기 위한 정보가 포함된 UI를 표시할 수 있다. 또 다른 예로, 디스플레이(140)는 텍스트에 대응되는 상황이 위험 또는 긴급하다는 인디케이터 또는 메시지를 표시할 수 있다.The display 140 may display various information under the control of the processor 120 . In particular, the display 140 may display text input by the user (or text corresponding to the user's voice). The display 140 may display a UI including information for coping with a situation corresponding to the text. As another example, the display 140 may display an indicator or message indicating that the situation corresponding to the text is dangerous or urgent.

디스플레이(140)는 터치 패널과 함께 터치 스크린으로 구현될 수 있으며, 플렉서블 디스플레이(flexible display)로 구현될 수도 있다.The display 140 may be implemented as a touch screen together with a touch panel, or may be implemented as a flexible display.

스피커(150)는 오디오 처리부에 의해 디코딩이나 증폭, 노이즈 필터링과 같은 다양한 처리 작업이 수행된 각종 오디오 데이터뿐만 아니라 각종 알림 음이나 음성 메시지를 출력하는 구성이다. 스피커(150)는 텍스트에 대응되는 상황을 대처하기 위한 정보 등을 음성 형태로 출력할 수 있다. 또 다른 예로, 스피커(150)는 텍스트에 대응되는 상황이 위험 또는 긴급하다는 알림음을 출력할 수 있다.The speaker 150 is configured to output various types of audio data on which various processing tasks such as decoding, amplification, and noise filtering have been performed by the audio processing unit, as well as various notification sounds or voice messages. The speaker 150 may output information for coping with a situation corresponding to the text in the form of a voice. As another example, the speaker 150 may output a notification sound indicating that the situation corresponding to the text is dangerous or urgent.

한편, 오디오를 출력하기 위한 구성은 스피커로 구현될 수 있으나, 이는 일 실시 예에 불과할 뿐, 오디오 데이터를 출력할 수 있는 출력 단자로 구현될 수 있다.Meanwhile, a configuration for outputting audio may be implemented as a speaker, but this is only an exemplary embodiment and may be implemented as an output terminal capable of outputting audio data.

마이크(160)는 사용자 음성을 입력받을 수 있다. 이때, 마이크(110)는 ASR 모델의 인식 개시를 요구하는 트리거 음성(또는 웨이크업 음성)을 수신할 수 있으며, 특정 정보(예로, 전자 장치(100) 또는 다른 장치의 상태에 대한 정보 등)를 요청하는 사용자 질의를 수신할 수 있다. 특히, 마이크(160)는 전자 장치(100) 내부에 구비될 수 있으나, 외부에 구비되어 전자 장치(100)와 전기적으로 연결될 수 있다. 또 다른 예로, 마이크(160)는 전자 장치(100) 외부에 구비되어 무선 통신을 통해 전자 장치(100)와 연결될 수 있다.The microphone 160 may receive a user's voice. In this case, the microphone 110 may receive a trigger voice (or wake-up voice) requesting the start of recognition of the ASR model, and receive specific information (eg, information about the state of the electronic device 100 or other devices, etc.) It may receive a requesting user query. In particular, the microphone 160 may be provided inside the electronic device 100 , but may be provided outside and electrically connected to the electronic device 100 . As another example, the microphone 160 may be provided outside the electronic device 100 to be connected to the electronic device 100 through wireless communication.

입력부(170)는 전자 장치(100)를 제어하기 위한 사용자 입력을 수신할 수 있다. 입력부(170)는 사용자로부터 입력된 텍스트를 수신할 수 있다. 또 다른 예로, 입력부(170)는 복수의 위험 등급 중 임계 등급을 결정하기 위한 사용자 명령을 입력받을 수 있다. 또 다른 예로, 입력부(170)는 임계값을 변경하기 위한 사용자 명령을 입력받을 수 있다.The input unit 170 may receive a user input for controlling the electronic device 100 . The input unit 170 may receive text input by the user. As another example, the input unit 170 may receive a user command for determining a critical level among a plurality of risk levels. As another example, the input unit 170 may receive a user command for changing the threshold value.

특히, 입력부(170)는 사용자 손 또는 스타일러스 펜 등을 이용한 사용자 터치를 입력받기 위한 터치 패널, 사용자 조작을 입력받기 위한 버튼 등이 포함될 수 있다. 그 밖에, 입력부(170)는 다른 입력 장치(예로, 키보드, 마우스, 모션 입력부 등)로 구현될 수 있다. In particular, the input unit 170 may include a touch panel for receiving a user touch input using a user's hand or a stylus pen, a button for receiving a user manipulation, and the like. In addition, the input unit 170 may be implemented as another input device (eg, a keyboard, a mouse, a motion input unit, etc.).

센서(180)는 전자 장치(100)의 다양한 상태 정보를 감지할 수 있다. 예로, 센서(180)는 전자 장치(100)의 움직임 정보를 감지할 수 있는 움직임 센서(예로, 자이로 센서, 가속도 센서 등)를 포함할 수 있으며, 위치 정보를 감지할 수 있는 센서(예로, GPS(Global Positioning System) 센서), 사용자의 존재를 감지할 수 있는 센서(예로, 카메라, UWB 센서, IR 센서, 근접 센서, 광센서 등) 등을 포함할 수 있다. 그 밖에, 센서(180)는 전자 장치(100)의 외부를 촬영하기 위한 이미지 센서 등을 더 포함할 수 있다.The sensor 180 may detect various state information of the electronic device 100 . For example, the sensor 180 may include a motion sensor (eg, a gyro sensor, an acceleration sensor, etc.) capable of detecting motion information of the electronic device 100, and a sensor (eg, GPS) capable of detecting location information. (Global Positioning System) sensor), and a sensor capable of detecting the user's presence (eg, a camera, a UWB sensor, an IR sensor, a proximity sensor, an optical sensor, etc.) and the like. In addition, the sensor 180 may further include an image sensor for photographing the outside of the electronic device 100 .

한편, 본 개시의 다양한 실시 예들은 기기(machine)(예: 컴퓨터)로 읽을 수 있는 저장 매체(machine-readable storage media에 저장된 명령어를 포함하는 소프트웨어로 구현될 수 있다. 기기는, 저장 매체로부터 저장된 명령어를 호출하고, 호출된 명령어에 따라 동작이 가능한 장치로서, 개시된 실시 예들에 따른 서버 클라우드를 포함할 수 있다. 상기 명령이 프로세서에 의해 실행될 경우, 프로세서가 직접, 또는 상기 프로세서의 제어 하에 다른 구성요소들을 이용하여 상기 명령에 해당하는 기능을 수행할 수 있다. Meanwhile, various embodiments of the present disclosure may be implemented as software including instructions stored in a machine-readable storage medium readable by a machine (eg, a computer). A device that calls an instruction and can operate according to the called instruction, and may include the server cloud according to the disclosed embodiments.When the instruction is executed by a processor, the processor directly or other configuration under the control of the processor A function corresponding to the command can be performed using the elements.

명령은 컴파일러 또는 인터프리터에 의해 생성 또는 실행되는 코드를 포함할 수 있다. 기기로 읽을 수 있는 저장매체는, 비일시적(non-transitory) 저장매체의 형태로 제공될 수 있다. 여기서, '비일시적은 저장매체'는 신호(signal)를 포함하지 않으며 실재(tangible)한다는 것을 의미할 뿐 데이터가 저장매체에 반영구적 또는 임시적으로 저장됨을 구분하지 않는다. 예로, '비일시적 저장매체'는 데이터가 임시적으로 저장되는 버퍼를 포함할 수 있다.Instructions may include code generated or executed by a compiler or interpreter. The device-readable storage medium may be provided in the form of a non-transitory storage medium. Here, 'non-transitory storage medium' does not include a signal and only means that it is tangible and does not distinguish that data is semi-permanently or temporarily stored in the storage medium. For example, the 'non-transitory storage medium' may include a buffer in which data is temporarily stored.

일 실시 예에 따르면, 본 개시에 개시된 다양한 실시 예들에 따른 방법은 컴퓨터 프로그램 제품(computer program product)에 포함되어 제공될 수 있다. 컴퓨터 프로그램 제품은 상품으로서 판매자 및 구매자 간에 거래될 수 있다. 컴퓨터 프로그램 제품은 기기로 읽을 수 있는 저장 매체(예: compact disc read only memory (CD-ROM))의 형태로, 또는 어플리케이션 스토어(예: 플레이 스토어TM)를 통해 온라인으로 배포될 수 있다. 온라인 배포의 경우에, 컴퓨터 프로그램 제품(예로, 다운로더블 앱(downloadable app))의 적어도 일부는 제조사의 서버, 어플리케이션 스토어의 서버, 또는 중계 서버의 메모리와 같은 저장 매체에 적어도 일시 저장되거나, 임시적으로 생성될 수 있다.According to an embodiment, the method according to various embodiments disclosed in the present disclosure may be provided by being included in a computer program product. Computer program products may be traded between sellers and buyers as commodities. The computer program product may be distributed in the form of a machine-readable storage medium (eg, compact disc read only memory (CD-ROM)) or online through an application store (eg, Play Store™). In the case of online distribution, at least a portion of the computer program product (eg, a downloadable app) is at least temporarily stored in a storage medium such as a memory of a server of a manufacturer, a server of an application store, or a relay server, or temporarily can be created with

다양한 실시 예들에 따른 구성 요소(예: 모듈 또는 프로그램) 각각은 단수 또는 복수의 개체로 구성될 수 있으며, 전술한 해당 서브 구성 요소들 중 일부 서브 구성 요소가 생략되거나, 또는 다른 서브 구성 요소가 다양한 실시 예에 더 포함될 수 있다. 대체적으로 또는 추가적으로, 일부 구성 요소들(예: 모듈 또는 프로그램)은 하나의 개체로 통합되어, 통합되기 이전의 각각의 해당 구성 요소에 의해 수행되는 기능을 동일 또는 유사하게 수행할 수 있다. 다양한 실시 예들에 따른, 모듈, 프로그램 또는 다른 구성 요소에 의해 수행되는 동작들은 순차적, 병렬적, 반복적 또는 휴리스틱하게 실행되거나, 적어도 일부 동작이 다른 순서로 실행되거나, 생략되거나, 또는 다른 동작이 추가될 수 있다.Each of the components (eg, a module or a program) according to various embodiments may be composed of a singular or a plurality of entities, and some sub-components of the aforementioned sub-components may be omitted, or other sub-components may be various. It may be further included in the embodiment. Alternatively or additionally, some components (eg, a module or a program) may be integrated into a single entity to perform the same or similar functions performed by each corresponding component prior to integration. According to various embodiments, operations performed by a module, program, or other component may be sequentially, parallel, repetitively or heuristically executed, or at least some operations may be executed in a different order, omitted, or other operations may be added. can

110: 메모리 120: 프로세서110: memory 120: processor

Claims (22)

전자 장치에 있어서,
메모리;
텍스트가 입력되면, 문장에 포함된 문장 성분의 의미역(semantic role)을 결정하도록 학습된 제1 모델에 상기 입력된 텍스트에 대한 정보를 입력하여 상기 텍스트에 포함된 문장 성분의 의미역을 결정하고,
문장에 포함된 문장 성분의 의미역에 기초하여 위험 레벨을 출력하도록 학습된 제2 모델에 상기 결정된 의미역에 대응되는 문장 성분을 입력하여 상기 텍스트의 위험 레벨을 획득하고,
상기 획득된 텍스트의 위험 레벨에 대응되는 동작을 수행하는 프로세서;를 포함하는 전자 장치.
In an electronic device,
Memory;
When text is input, information on the input text is input into the first model trained to determine the semantic role of the sentence component included in the sentence, and the semantic role of the sentence component included in the text is determined, and ,
obtaining the risk level of the text by inputting the sentence component corresponding to the determined semantic range into the second model trained to output the risk level based on the semantic range of the sentence component included in the sentence;
and a processor configured to perform an operation corresponding to the risk level of the acquired text.
제1항에 있어서,
상기 제1 모델은,
상기 입력된 텍스트의 문장 성분 각각을 주체(agent), 대상(recipient) 및 술어(predicate) 중 하나로 결정하도록 학습된 것을 특징으로 하는 전자 장치.
According to claim 1,
The first model is
The electronic device, characterized in that it has been learned to determine each of the sentence components of the input text as one of an agent, a recipient, and a predicate.
제2항에 있어서,
상기 제2 모델은,
상기 주체 및 대상 중 적어도 하나로 결정된 문장 성분이 사용자 또는 장치를 의미하는 경우, 상기 텍스트의 위험 레벨을 증가하도록 학습된 것을 특징으로 하는 전자 장치.
3. The method of claim 2,
The second model is
The electronic device according to claim 1 , wherein when the sentence component determined as at least one of the subject and the target means a user or a device, it is learned to increase the risk level of the text.
제2항에 있어서,
상기 제2 모델은,
상기 주체, 대상 및 술어 중 하나로 결정된 문장 성분과 의미가 유사한 단어를 식별하고, 상기 식별된 단어에 매칭된 가중치를 이용하여 상기 텍스트의 위험 레벨을 출력하도록 학습된 것을 특징으로 하는 전자 장치.
3. The method of claim 2,
The second model is
The electronic device is characterized in that it is learned to identify a word having a similar meaning to a sentence component determined as one of the subject, object, and predicate, and output the risk level of the text using a weight matched to the identified word.
제1항에 있어서,
상기 제2 모델은,
위험 정도에 따라 분류된 복수의 등급 중 하나를 상기 텍스트의 위험 레벨로서 출력하도록 학습된 것을 특징으로 하는 전자 장치.
According to claim 1,
The second model is
An electronic device, characterized in that it is learned to output one of a plurality of grades classified according to the degree of risk as the risk level of the text.
제1항에 있어서,
상기 제2 모델은,
상기 텍스트의 위험 레벨을 위험 정도를 나타내는 수치로 출력하도록 학습된 것을 특징으로 하는 전자 장치.
According to claim 1,
The second model is
The electronic device, characterized in that it is learned to output the risk level of the text as a numerical value indicating the degree of risk.
제1항에 있어서,
상기 위험 레벨에 대응되는 동작은,
목표 기기의 전원 종료, 목표 기기의 네트워크 연결 차단, 목표 기기의 재시작, 목표 기기에서 실행 중인 백그라운드 앱(Background App) 종료 중 적어도 하나이고,
상기 목표 기기는 상기 전자 장치 또는 상기 다른 전자 장치 중 적어도 하나인, 전자 장치.
According to claim 1,
The operation corresponding to the risk level is,
At least one of shutting down the power of the target device, blocking the network connection of the target device, restarting the target device, and closing a background app running on the target device;
The target device is at least one of the electronic device and the other electronic device.
제7항에 있어서,
회로를 포함하는 통신부;를 더 포함하고,
상기 프로세서는,
상기 텍스트의 위험 레벨이 제1 임계 등급 이상이거나 제1 임계값 이상인 경우, 상기 텍스트 및 상기 위험 레벨에 대응되는 동작을 상기 텍스트에 대응되는 장치를 관리하는 서버에 전송하도록 상기 통신부를 제어하거나 상기 텍스트에 대응되는 상황 및 상기 위험 레벨에 대응되는 동작의 알림 메시지를 제공하는 전자 장치.
8. The method of claim 7,
A communication unit including a circuit; further comprising,
The processor is
When the risk level of the text is equal to or greater than the first threshold grade or greater than or equal to the first threshold, the communication unit is controlled to transmit the text and an operation corresponding to the risk level to a server managing a device corresponding to the text or the text An electronic device that provides a notification message of a situation corresponding to , and an operation corresponding to the risk level.
제7항에 있어서,
상기 프로세서는,
상기 텍스트의 위험 레벨이 제2 임계 등급 이상이거나 제2 임계 값 이상인 경우, 상기 목표 기기의 전원 종료 동작을 수행하는, 전자 장치.
8. The method of claim 7,
The processor is
and when the danger level of the text is equal to or greater than a second threshold level or greater than or equal to a second threshold value, performing an operation of shutting down the power of the target device.
제1항에 있어서,
상기 프로세서는,
구문 분석하도록 학습된 구문 분석 모델에 상기 입력된 텍스트를 입력하여 상기 텍스트의 구문 분석 결과가 포함된 상기 텍스트에 대한 정보를 획득하는 전자 장치.
According to claim 1,
The processor is
An electronic device for obtaining information about the text including a result of parsing the text by inputting the input text into a syntax analysis model trained to parse the text.
제1항에 있어서,
마이크;를 더 포함하고,
상기 프로세서는,
상기 전자 장치 또는 다른 장치의 상태를 문의하는 사용자 음성이 상기 마이크를 통해 입력되면, 상기 입력된 사용자 음성을 ASR(Auto Speech Recognition)모델에 입력하여 상기 사용자 음성에 대응되는 텍스트를 획득하는 전자 장치.
According to claim 1,
a microphone; further comprising:
The processor is
When a user's voice inquiring about the state of the electronic device or another device is inputted through the microphone, the inputted user's voice is input to an Auto Speech Recognition (ASR) model to obtain a text corresponding to the user's voice.
전자 장치의 제어 방법에 있어서,
텍스트가 입력되면, 문장에 포함된 문장 성분의 의미역(semantic role)을 결정하도록 학습된 제1 모델에 상기 입력된 텍스트에 대한 정보를 입력하여 상기 텍스트에 포함된 문장 성분의 의미역을 결정하는 단계;
문장에 포함된 문장 성분의 의미역에 기초하여 위험 레벨을 출력하도록 학습된 제2 모델에 상기 결정된 의미역에 대응되는 문장 성분을 입력하여 상기 텍스트의 위험 레벨을 획득하는 단계; 및
상기 획득된 텍스트의 위험 레벨에 대응되는 동작을 수행하는 단계;를 포함하는 제어 방법.
A method for controlling an electronic device, comprising:
When text is input, information on the input text is input to the first model trained to determine the semantic role of the sentence component included in the sentence to determine the semantic role of the sentence component included in the text step;
obtaining a risk level of the text by inputting a sentence component corresponding to the determined semantic range into a second model trained to output a risk level based on the semantic range of the sentence component included in the sentence; and
A control method comprising a; performing an operation corresponding to the risk level of the acquired text.
제12항에 있어서,
상기 제1 모델은,
상기 입력된 텍스트의 문장 성분 각각을 주체(agent), 대상(recipient) 및 술어(predicate) 중 하나로 결정하도록 학습된 것을 특징으로 하는 제어 방법.
13. The method of claim 12,
The first model is
A control method, characterized in that it has been learned to determine each of the sentence components of the input text as one of an agent, a recipient, and a predicate.
제13항에 있어서,
상기 제2 모델은,
상기 주체 및 대상 중 적어도 하나로 결정된 문장 성분이 사용자 또는 장치를 의미하는 경우, 상기 텍스트의 위험 레벨을 증가하도록 학습된 것을 특징으로 하는 제어 방법.
14. The method of claim 13,
The second model is
When the sentence component determined as at least one of the subject and the target means a user or a device, the control method is characterized in that it is learned to increase the risk level of the text.
제13항에 있어서,
상기 제2 모델은,
상기 주체, 대상 및 술어 중 하나로 결정된 문장 성분과 의미가 유사한 단어를 식별하고, 상기 식별된 단어에 매칭된 가중치를 이용하여 상기 텍스트의 위험 레벨을 출력하도록 학습된 것을 특징으로 하는 제어 방법.
14. The method of claim 13,
The second model is
A control method, characterized in that it is learned to identify a word having a similar meaning to a sentence component determined as one of the subject, object, and predicate, and output the risk level of the text using a weight matched to the identified word.
제12항에 있어서,
상기 제2 모델은,
위험 정도에 따라 분류된 복수의 등급 중 하나를 상기 텍스트의 위험 레벨로서 출력하도록 학습된 것을 특징으로 하는 제어 방법.
13. The method of claim 12,
The second model is
A control method, characterized in that it is learned to output one of a plurality of grades classified according to the degree of risk as the risk level of the text.
제12항에 있어서,
상기 제2 모델은,
상기 텍스트의 위험 레벨을 위험 정도를 나타내는 수치로 출력하도록 학습된 것을 특징으로 하는 제어 방법.
13. The method of claim 12,
The second model is
A control method, characterized in that it is learned to output the risk level of the text as a numerical value indicating the degree of risk.
제12항에 있어서,
상기 위험 레벨에 대응되는 동작은,
목표 기기의 전원 종료, 목표 기기의 네트워크 연결 차단, 목표 기기의 재시작, 목표 기기에서 실행 중인 백그라운드 앱(Background App) 종료 중 적어도 하나이고,
상기 목표 기기는 상기 전자 장치 또는 상기 다른 전자 장치 중 적어도 하나인, 제어 방법.
13. The method of claim 12,
The operation corresponding to the risk level is
At least one of shutting down the power of the target device, blocking the network connection of the target device, restarting the target device, and closing a background app running on the target device;
The target device is at least one of the electronic device and the other electronic device.
제18항에 있어서,
상기 수행하는 단계는,
상기 텍스트의 위험 레벨이 제1 임계 등급 이상이거나 제1 임계값 이상인 경우, 상기 텍스트 및 상기 위험 레벨에 대응되는 동작을 상기 텍스트에 대응되는 장치를 관리하는 서버에 전송하거나 상기 텍스트에 대응되는 상황 및 상기 위험 레벨에 대응되는 동작의 알림 메시지를 제공하는 단계;를 포함하는 제어 방법.
19. The method of claim 18,
The performing step is,
When the risk level of the text is greater than or equal to the first threshold grade or greater than the first threshold, the text and an operation corresponding to the risk level are transmitted to a server managing a device corresponding to the text or a situation corresponding to the text; and providing a notification message of an operation corresponding to the risk level.
제18항에 있어서,
상기 수행하는 단계는,
상기 텍스트의 위험 레벨이 제2 임계 등급 이상이거나 제2 임계 값 이상인 경우, 상기 목표 기기의 전원 종료 동작을 수행하는 단계;를 포함하는, 제어 방법.
19. The method of claim 18,
The performing step is,
and performing a power-off operation of the target device when the risk level of the text is greater than or equal to a second threshold level or greater than or equal to a second threshold.
제12항에 있어서,
상기 입력받는 단계는,
구문 분석하도록 학습된 구문 분석 모델에 상기 입력된 텍스트를 입력하여 상기 텍스트의 구문 분석 결과가 포함된 상기 텍스트에 대한 정보를 획득하는 단계;를 더 포함하는 제어 방법.
13. The method of claim 12,
The step of receiving the input is
The method further comprising: inputting the input text into a syntax analysis model trained to parse the text to obtain information about the text including a result of the analysis of the text.
제12항에 있어서,
상기 전자 장치 또는 다른 장치의 상태를 문의하는 사용자 음성이 상기 마이크를 통해 입력되면, 상기 입력된 사용자 음성을 ASR(Auto Speech Recognition)모델에 입력하여 상기 사용자 음성에 대응되는 텍스트를 획득하는 단계;를 더 포함하는 제어 방법.
13. The method of claim 12,
When a user's voice inquiring about the status of the electronic device or other device is input through the microphone, inputting the inputted user's voice into an Auto Speech Recognition (ASR) model to obtain a text corresponding to the user's voice; control method further comprising.
KR1020220006094A 2021-02-17 2022-01-14 Electronic device and method for controlling thereof KR20220117802A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/KR2022/002315 WO2022177304A1 (en) 2021-02-17 2022-02-17 Electronic device and method for controlling same
US17/741,105 US20220269866A1 (en) 2021-02-17 2022-05-10 Electronic device and method for controlling thereof

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
KR1020210021116 2021-02-17
KR20210021116 2021-02-17

Publications (1)

Publication Number Publication Date
KR20220117802A true KR20220117802A (en) 2022-08-24

Family

ID=83111640

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020220006094A KR20220117802A (en) 2021-02-17 2022-01-14 Electronic device and method for controlling thereof

Country Status (1)

Country Link
KR (1) KR20220117802A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117150025A (en) * 2023-10-31 2023-12-01 湖南锦鳞智能科技有限公司 Intelligent data service identification system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117150025A (en) * 2023-10-31 2023-12-01 湖南锦鳞智能科技有限公司 Intelligent data service identification system
CN117150025B (en) * 2023-10-31 2024-01-26 湖南锦鳞智能科技有限公司 Intelligent data service identification system

Similar Documents

Publication Publication Date Title
US11580964B2 (en) Electronic apparatus and control method thereof
US20220035999A1 (en) Electronic apparatus for recommending words corresponding to user interaction and controlling method thereof
US11367434B2 (en) Electronic device, method for determining utterance intention of user thereof, and non-transitory computer-readable recording medium
US20220013111A1 (en) Artificial intelligence-based wakeup word detection method and apparatus, device, and medium
US11842735B2 (en) Electronic apparatus and control method thereof
US11367441B2 (en) Electronic apparatus and control method thereof
US20180315427A1 (en) Electronic apparatus for processing user utterance and controlling method thereof
US11631400B2 (en) Electronic apparatus and controlling method thereof
US20210366474A1 (en) Artificial intelligence device and method of operating artificial intelligence device
EP3610479B1 (en) Electronic apparatus for processing user utterance
US11468892B2 (en) Electronic apparatus and method for controlling electronic apparatus
KR20190109916A (en) A electronic apparatus and a server for processing received data from the apparatus
US11763690B2 (en) Electronic apparatus and controlling method thereof
KR102469712B1 (en) Electronic device and Method for generating Natural Language thereof
KR20220117802A (en) Electronic device and method for controlling thereof
US11705110B2 (en) Electronic device and controlling the electronic device
US11436215B2 (en) Server and control method thereof
US20210241771A1 (en) Electronic device and method for controlling the electronic device thereof
US20220269866A1 (en) Electronic device and method for controlling thereof
US20220318512A1 (en) Electronic device and control method thereof
WO2022177304A1 (en) Electronic device and method for controlling same
KR20210148877A (en) Electronic device and method for controlling the electronic deivce
KR20210033837A (en) Electronic device and method for controlling the electronic device thereof
US20220261554A1 (en) Electronic device and controlling method of electronic device
US20220237215A1 (en) Electronic device and controlling method of electronic device