KR20230040541A - Out-of-distribution object detection method and system - Google Patents

Out-of-distribution object detection method and system Download PDF

Info

Publication number
KR20230040541A
KR20230040541A KR1020210123805A KR20210123805A KR20230040541A KR 20230040541 A KR20230040541 A KR 20230040541A KR 1020210123805 A KR1020210123805 A KR 1020210123805A KR 20210123805 A KR20210123805 A KR 20210123805A KR 20230040541 A KR20230040541 A KR 20230040541A
Authority
KR
South Korea
Prior art keywords
machine learning
learning model
ood
image
object detection
Prior art date
Application number
KR1020210123805A
Other languages
Korean (ko)
Other versions
KR102567558B1 (en
Inventor
이규빈
김종원
신성호
유연국
이주순
노상준
Original Assignee
광주과학기술원
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 광주과학기술원 filed Critical 광주과학기술원
Priority to KR1020210123805A priority Critical patent/KR102567558B1/en
Publication of KR20230040541A publication Critical patent/KR20230040541A/en
Application granted granted Critical
Publication of KR102567558B1 publication Critical patent/KR102567558B1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V20/00Scenes; Scene-specific elements
    • G06V20/40Scenes; Scene-specific elements in video content
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N20/00Machine learning
    • 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
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/187Segmentation; Edge detection involving region growing; involving region merging; involving connected component labelling
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V20/00Scenes; Scene-specific elements
    • G06V20/40Scenes; Scene-specific elements in video content
    • G06V20/44Event detection
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20081Training; Learning

Abstract

The present invention relates to a method for detecting an OOD object. The method for detecting the OOD object comprises: a step of learning a teacher machine learning model to perform a classification for each image included in a learning image set using the learning image set; a step of learning the teacher machine learning model to perform an OOD object detection for a different image when an image other than the image included in the learning image set is inputted during learning of the teacher machine learning model; and a step of learning a student machine learning model to perform classification and OOD object detection for the image based on the teacher machine learning model learned using knowledge distillation. Therefore, the present invention is capable of effectively improving a detection performance.

Description

OOD 객체 탐지 방법 및 시스템{OUT-OF-DISTRIBUTION OBJECT DETECTION METHOD AND SYSTEM}OOD object detection method and system {OUT-OF-DISTRIBUTION OBJECT DETECTION METHOD AND SYSTEM}

본 발명은 OOD 객체 탐지 방법 및 시스템에 관한 것으로, 구체적으로, 복수의 기계학습 모델을 이용하여 OOD 객체를 탐지하는 방법 및 시스템에 관한 것이다.The present invention relates to a method and system for detecting an OOD object, and more particularly, to a method and system for detecting an OOD object using a plurality of machine learning models.

OOD(out-of-distribution) 객체 탐지는 주어진 입력이 훈련된 클래스(class) 중 어느 하나에 속하는지 여부를 구별하는 것일 수 있다. 예를 들어, 딥러닝 모델 등이 자신의 출력을 과신(over confident)하는 경우, 훈련된 클래스 중 어디에도 속하지 않는 OOD 객체가, 특정 클래스인 것으로 잘못 분류될 수 있다. 즉, 딥러닝 모델 등의 성능 향상을 위해 OOD 객체 탐지 성능을 향상시키는 것은 중요하다.Out-of-distribution (OOD) object detection may be to distinguish whether a given input belongs to any one of the trained classes. For example, when a deep learning model or the like is over confident in its own output, an OOD object that does not belong to any of the trained classes may be incorrectly classified as being of a specific class. That is, it is important to improve OOD object detection performance to improve the performance of deep learning models.

본 발명은 상기와 같은 문제점을 해결하기 위한 OOD 객체 탐지 방법, 컴퓨터 판독 매체에 저장된 컴퓨터 프로그램 및 장치(시스템)를 제공한다.The present invention provides an OOD object detection method, a computer program stored in a computer readable medium, and an apparatus (system) for solving the above problems.

본 발명은 방법, 장치(시스템), 컴퓨터 판독 가능 저장 매체에 저장된 컴퓨터 프로그램 또는 컴퓨터 프로그램이 저장된 컴퓨터 판독 가능 저장 매체를 포함한 다양한 방식으로 구현될 수 있다.The present invention can be implemented in a variety of ways, including a method, an apparatus (system), a computer program stored in a computer readable storage medium or a computer readable storage medium in which a computer program is stored.

본 발명의 일 실시예에 따르면, 적어도 하나의 프로세서에 의해 수행되는 OOD 객체 탐지 방법은, 학습 이미지 세트를 이용하여 학습 이미지 세트에 포함된 각각의 이미지에 대한 분류를 수행하도록 교사 기계학습 모델을 학습시키는 단계, 교사 기계학습 모델의 학습 시 학습 이미지 세트에 포함된 이미지 외의 다른 이미지가 입력되는 경우, 다른 이미지에 대한 OOD 객체 탐지를 수행하도록 교사 기계학습 모델을 학습시키는 단계 및 지식 증류를 이용하여 학습된 교사 기계학습 모델을 기초로, 이미지에 대한 분류 및 OOD 객체 탐지를 수행하도록 학생 기계학습 모델을 학습시키는 단계를 포함한다.According to an embodiment of the present invention, an OOD object detection method performed by at least one processor learns a teacher machine learning model to perform classification for each image included in a training image set using a training image set. Step of training the teacher machine learning model to perform OOD object detection for other images when an image other than the image included in the training image set is input during training of the teacher machine learning model and learning using knowledge distillation Based on the trained teacher machine learning model, training a student machine learning model to perform image classification and OOD object detection.

본 발명의 일 실시예에 따르면, 임의의 이미지가 입력되는 경우, 학습된 학생 기계학습 모델을 이용하여 OOD 탐지를 수행하는 단계를 더 포함한다.According to an embodiment of the present invention, when an arbitrary image is input, the step of performing OOD detection using the trained student machine learning model is further included.

본 발명의 일 실시예에 따르면, 학습된 학생 기계학습 모델을 이용하여 OOD 탐지를 수행하는 단계는,

Figure pat00001
에 의해 산출된 값이 사전 결정된 임계값 이하인 경우, 임의의 이미지를 OOD 객체로 탐지하는 단계를 포함한다. 여기서,
Figure pat00002
는 소프트맥스 레이어의 출력값을 나타내고, x는 임의의 이미지를 나타내고, y는 임의의 이미지와 연관된 레이블을 나타내고, k는 임의의 이미지와 연관된 클래스를 나타내고,
Figure pat00003
은 클래스 n에 대한 학생 기계학습 모델의 특징 출력 레이어의 출력값을 나타낸다.According to an embodiment of the present invention, the step of performing OOD detection using the learned student machine learning model,
Figure pat00001
and detecting an arbitrary image as an OOD object when the value calculated by is less than or equal to a predetermined threshold. here,
Figure pat00002
denotes the output value of the softmax layer, x denotes an arbitrary image, y denotes a label associated with an arbitrary image, k denotes a class associated with an arbitrary image,
Figure pat00003
represents the output value of the feature output layer of the student machine learning model for class n.

본 발명의 일 실시예에 따르면, 학생 기계학습 모델을 학습시키는 단계는, 학생 기계학습 모델을 교사 기계학습 모델과 유사하게 변경하기 위한 지식 증류 손실 함수 및 크로스 엔트로피 손실 함수를 이용하여 학생 기계학습 모델을 학습시키는 단계를 포함한다.According to an embodiment of the present invention, the step of learning the student machine learning model may include using a knowledge distillation loss function and a cross entropy loss function to change the student machine learning model to be similar to the teacher machine learning model. It includes the step of learning.

본 발명의 일 실시예에 따르면, 학생 기계학습 모델을 학습시키는 단계는, 교사 기계학습 모델의 특징 출력 레이어의 제1 특징 벡터 값을 추출하는 단계, 학생 기계학습 모델의 특징 출력 레이어의 제2 특징 벡터 값 추출하는 단계 및 제2 특징 벡터값을 프로젝션 레이어에 제공하여, 제1 특징 벡터값의 크기와 제2 특징 벡터값의 크기를 매칭시키는 단계를 포함한다.According to an embodiment of the present invention, the step of training the student machine learning model includes extracting a first feature vector value of a feature output layer of the teacher machine learning model, and a second feature of the feature output layer of the student machine learning model. A step of extracting a vector value and providing a second feature vector value to the projection layer to match the size of the first feature vector value with the size of the second feature vector value.

본 발명의 일 실시예에 따르면, 프로젝션 레이어는 완전 연결 레이어를 포함한다.According to one embodiment of the present invention, the projection layer includes a fully connected layer.

본 발명의 일 실시예에 따른 방법을 컴퓨터에서 실행하기 위해 컴퓨터 판독 가능한 기록 매체에 저장된 컴퓨터 프로그램이 제공된다.A computer program stored in a computer readable recording medium is provided to execute the method according to an embodiment of the present invention on a computer.

본 발명의 다양한 실시예에서 컴퓨팅 장치는 학생 기계학습 모델의 OOD 탐지 성능을 향상시키기 위해 별도의 추가적인 파라미터를 이용하지 않는 경우에도, 속도 저하 없이 향상된 정확도로 학생 기계학습 모델을 이용하여 OOD 탐지를 수행할 수 있다.In various embodiments of the present invention, the computing device performs OOD detection using the student machine learning model with improved accuracy without slowing down even when a separate additional parameter is not used to improve the OOD detection performance of the student machine learning model. can do.

본 발명의 다양한 실시예에서 컴퓨팅 장치는 기존의 하이퍼 파라미터의 튜닝을 위해 미학습 객체가 포함된 데이터 세트를 필요로 하는 ODIN 등의 방법과 달리, 학생 기계학습 모델을 학습시키기 위한 추가적인 학습 데이터 세트 없이도 OOD 객체를 포함하는 이미지에 대한 탐지 성능을 효과적으로 향상시킬 수 있다.In various embodiments of the present invention, unlike methods such as ODIN that require a data set including an unlearned object for tuning of existing hyperparameters, the computing device can perform training without an additional training data set for training a student machine learning model. Detection performance for an image including an OOD object can be effectively improved.

본 발명의 효과는 이상에서 언급한 효과로 제한되지 않으며, 언급되지 않은 다른 효과들은 청구범위의 기재로부터 본 발명이 속하는 기술분야에서 통상의 지식을 가진 자("통상의 기술자"라 함)에게 명확하게 이해될 수 있을 것이다.The effects of the present invention are not limited to the effects mentioned above, and other effects not mentioned are clear to those skilled in the art (referred to as "ordinary technicians") from the description of the claims. will be understandable.

본 발명의 실시예들은, 이하 설명하는 첨부 도면들을 참조하여 설명될 것이며, 여기서 유사한 참조 번호는 유사한 요소들을 나타내지만, 이에 한정되지는 않는다.
도 1은 본 발명의 일 실시예에 따른 컴퓨팅 장치가 이미지를 제공받아 OOD 탐지 결과를 생성하는 예시를 나타내는 도면이다.
도 2는 본 발명의 일 실시예에 따른 컴퓨팅 장치의 내부 구성을 나타내는 기능적인 블록도이다.
도 3은 본 발명의 일 실시예에 따른 학생 기계학습 모델이 학습되는 예시를 나타내는 도면이다.
도 4는 본 발명의 일 실시예에 따른 기계학습 모델의 예시를 나타내는 도면이다.
도 5는 본 발명의 일 실시예에 따른 OOD 객체 탐지 방법의 예시를 나타내는 흐름도이다.
도 6은 본 발명의 일 실시예에 따른 지식 증류 수행 방법의 예시를 나타내는 흐름도이다.
도 7은 본 발명의 일 실시예에 따른 컴퓨팅 장치의 내부 구성을 나타내는 블록도이다.
BRIEF DESCRIPTION OF THE DRAWINGS Embodiments of the present invention will be described with reference to the accompanying drawings described below, wherein like reference numbers indicate like elements, but are not limited thereto.
1 is a diagram illustrating an example in which a computing device receives an image and generates an OOD detection result according to an embodiment of the present invention.
2 is a functional block diagram showing the internal configuration of a computing device according to an embodiment of the present invention.
3 is a diagram illustrating an example of learning a student machine learning model according to an embodiment of the present invention.
4 is a diagram showing an example of a machine learning model according to an embodiment of the present invention.
5 is a flowchart illustrating an example of an OOD object detection method according to an embodiment of the present invention.
6 is a flowchart illustrating an example of a method for performing knowledge distillation according to an embodiment of the present invention.
7 is a block diagram showing an internal configuration of a computing device according to an embodiment of the present invention.

이하, 본 발명의 실시를 위한 구체적인 내용을 첨부된 도면을 참조하여 상세히 설명한다. 다만, 이하의 설명에서는 본 발명의 요지를 불필요하게 흐릴 우려가 있는 경우, 널리 알려진 기능이나 구성에 관한 구체적 설명은 생략하기로 한다.Hereinafter, specific details for the implementation of the present invention will be described in detail with reference to the accompanying drawings. However, in the following description, if there is a risk of unnecessarily obscuring the gist of the present invention, detailed descriptions of well-known functions or configurations will be omitted.

첨부된 도면에서, 동일하거나 대응하는 구성요소에는 동일한 참조부호가 부여되어 있다. 또한, 이하의 실시예들의 설명에 있어서, 동일하거나 대응되는 구성요소를 중복하여 기술하는 것이 생략될 수 있다. 그러나, 구성요소에 관한 기술이 생략되어도, 그러한 구성요소가 어떤 실시예에 포함되지 않는 것으로 의도되지는 않는다.In the accompanying drawings, identical or corresponding elements are given the same reference numerals. In addition, in the description of the following embodiments, overlapping descriptions of the same or corresponding components may be omitted. However, omission of a description of a component does not intend that such a component is not included in an embodiment.

개시된 실시예의 이점 및 특징, 그리고 그것들을 달성하는 방법은 첨부되는 도면과 함께 후술되어 있는 실시예들을 참조하면 명확해질 것이다. 그러나, 본 발명은 이하에서 개시되는 실시예들에 한정되는 것이 아니라 서로 다른 다양한 형태로 구현될 수 있으며, 단지 본 실시예들은 본 발명이 완전하도록 하고, 본 발명이 통상의 기술자에게 발명의 범주를 완전하게 알려주기 위해 제공되는 것일 뿐이다.Advantages and features of the disclosed embodiments, and methods of achieving them, will become apparent with reference to the following embodiments in conjunction with the accompanying drawings. However, the present invention is not limited to the embodiments disclosed below and can be implemented in various different forms, only these embodiments make the present invention complete and the scope of the invention to those skilled in the art. It is provided only for complete information.

본 명세서에서 사용되는 용어에 대해 간략히 설명하고, 개시된 실시예에 대해 구체적으로 설명하기로 한다. 본 명세서에서 사용되는 용어는 본 발명에서의 기능을 고려하면서 가능한 현재 널리 사용되는 일반적인 용어들을 선택하였으나, 이는 관련 분야에 종사하는 기술자의 의도 또는 판례, 새로운 기술의 출현 등에 따라 달라질 수 있다. 또한, 특정한 경우는 출원인이 임의로 선정한 용어도 있으며, 이 경우 해당되는 발명의 설명 부분에서 상세히 그 의미를 기재할 것이다. 따라서, 본 발명에서 사용되는 용어는 단순한 용어의 명칭이 아닌, 그 용어가 가지는 의미와 본 발명의 전반에 걸친 내용을 토대로 정의되어야 한다.Terms used in this specification will be briefly described, and the disclosed embodiments will be described in detail. The terms used in this specification have been selected from general terms that are currently widely used as much as possible while considering the functions in the present invention, but these may vary depending on the intention or precedent of a person skilled in the related field, the emergence of new technologies, and the like. In addition, in a specific case, there is also a term arbitrarily selected by the applicant, and in this case, the meaning will be described in detail in the description of the invention. Therefore, the term used in the present invention should be defined based on the meaning of the term and the overall content of the present invention, not simply the name of the term.

본 명세서에서의 단수의 표현은 문맥상 명백하게 단수인 것으로 특정하지 않는 한, 복수의 표현을 포함한다. 또한, 복수의 표현은 문맥상 명백하게 복수인 것으로 특정하지 않는 한, 단수의 표현을 포함한다. 명세서 전체에서 어떤 부분이 어떤 구성요소를 포함한다고 할 때, 이는 특별히 반대되는 기재가 없는 한 다른 구성요소를 제외하는 것이 아니라 다른 구성요소를 더 포함할 수 있음을 의미한다.Expressions in the singular number in this specification include plural expressions unless the context clearly dictates that they are singular. Also, plural expressions include singular expressions unless the context clearly specifies that they are plural. When it is said that a certain part includes a certain component in the entire specification, this means that it may further include other components without excluding other components unless otherwise stated.

본 발명에서, "포함하다", "포함하는" 등의 용어는 특징들, 단계들, 동작들, 요소들 및/또는 구성 요소들이 존재하는 것을 나타낼 수 있으나, 이러한 용어가 하나 이상의 다른 기능들, 단계들, 동작들, 요소들, 구성 요소들 및/또는 이들의 조합이 추가되는 것을 배제하지는 않는다.In the present invention, the terms "comprise", "comprising" and the like may indicate that features, steps, operations, elements and/or components are present, but may be used when such terms include one or more other functions, It is not excluded that steps, actions, elements, components, and/or combinations thereof may be added.

본 발명에서, 특정 구성 요소가 임의의 다른 구성 요소에 "결합", "조합", "연결" 되거나, "반응" 하는 것으로 언급된 경우, 특정 구성 요소는 다른 구성 요소에 직접 결합, 조합 및/또는 연결되거나, 반응할 수 있으나, 이에 한정되지 않는다. 예를 들어, 특정 구성 요소와 다른 구성 요소 사이에 하나 이상의 중간 구성 요소가 존재할 수 있다. 또한, 본 발명에서 "및/또는"은 열거된 하나 이상의 항목의 각각 또는 하나 이상의 항목의 적어도 일부의 조합을 포함할 수 있다.In the present invention, when a specific element is referred to as being “coupled”, “combined”, “connected”, or “reactive” to any other element, the specific element is directly bonded to, combined with, and/or other elements. or may be linked or reacted, but is not limited thereto. For example, one or more intermediate components may exist between certain components and other components. Also, in the present invention, “and/or” may include each of one or more items listed or a combination of at least a part of one or more items.

본 발명에서, "제1", "제2" 등의 용어는 특정 구성 요소를 다른 구성 요소와 구별하기 위해 사용되는 것으로, 이러한 용어에 의해 상술된 구성 요소가 제한되진 않는다. 예를 들어, "제1" 구성 요소는 "제2" 구성 요소와 동일하거나 유사한 형태의 요소일 수 있다.In the present invention, terms such as "first" and "second" are used to distinguish a specific component from other components, and the aforementioned components are not limited by these terms. For example, the “first” element may have the same or similar shape as the “second” element.

본 발명에서, '지식 증류(knowledge distillation)'는 학습된 거대한 모델의 지식을 작은 모델로 전달하여 작은 모델의 성능을 향상시키는 기법 등을 지칭할 수 있다. 예를 들어, 지식 증류는 손실 함수 등을 이용하여 수행될 수 있다.In the present invention, 'knowledge distillation' may refer to a technique of improving the performance of a small model by transferring the learned knowledge of a large model to a small model. For example, knowledge distillation may be performed using a loss function or the like.

본 발명에서, '손실' 및/또는 '손실 함수(loss function)'는 기계학습 모델 등에서 대상의 오차를 측정하기 위한 척도, 함수 등을 지칭할 수 있다. 손실 함수에 의해 생성되는 오차를 감소시키도록 기계학습 모델 등이 학습될 수 있다. 예를 들어, 손실 함수는 지식 증류 손실 함수, 크로스 엔트로피 손실 함수 등을 포함할 수 있다.In the present invention, 'loss' and/or 'loss function' may refer to a scale, function, etc. for measuring an error of an object in a machine learning model or the like. A machine learning model or the like may be trained to reduce the error produced by the loss function. For example, the loss function may include a knowledge distillation loss function, a cross entropy loss function, and the like.

도 1은 본 발명의 일 실시예에 따른 컴퓨팅 장치(100)가 이미지(110)를 제공받아 OOD 탐지 결과(120)를 생성하는 예시를 나타내는 도면이다. 일 실시예에 따르면, 컴퓨팅 장치(100)는 이미지(110)를 특정 카테고리(category), 특정 클래스(class) 등으로 분류하거나, OOD(out-of-distribution) 탐지를 수행하도록 구성된 장치로서, 하나 이상의 기계학습 모델과 연관될 수 있다. 여기서, OOD 객체는 특정 기계학습 모델에서 학습되지 않은 미학습 객체로서, 의미론적 시프트 OOD(S-OOD: semantic shifted OOD), 비-의미론적 시프트 OOD(NS-OOD: non-semantic shifted OOD), 의미론적 시프트 및 비-의미론적 시프트 OOD(SNS-OOD: semantic shifted + non-semantic shifted OOD) 등을 포함할 수 있다. 예를 들어, 학습된 기계학습 모델이 자신의 출력을 과신하는 경우, 학습되지 않은 객체에 대한 OOD 탐지가 효과적으로 수행되기 어려울 수 있다.1 is a diagram illustrating an example of generating an OOD detection result 120 by receiving an image 110 by a computing device 100 according to an embodiment of the present invention. According to one embodiment, the computing device 100 is a device configured to classify the image 110 into a specific category, a specific class, or perform out-of-distribution (OOD) detection, and one It can be associated with the above machine learning models. Here, the OOD object is an unlearned object that has not been learned in a specific machine learning model, such as semantic shifted OOD (S-OOD), non-semantic shifted OOD (NS-OOD), It may include semantic shift and non-semantic shift OOD (SNS-OOD: semantic shifted + non-semantic shifted OOD). For example, if a trained machine learning model overconfident its own output, it may be difficult to effectively perform OOD detection on unlearned objects.

일 실시예에 따르면, 컴퓨팅 장치(100)는 복수의 기계학습 모델을 이용하여 OOD 탐지 성능을 향상시킬 수 있다. 즉, 컴퓨팅 장치(100)는 고성능의 교사 기계학습 모델의 학습 결과를 이용하여 지식 증류(knowledge distillation)를 수행함으로써, 학생 기계학습 모델의 OOD 객체 탐지 정확도를 크게 향상시킬 수 있다. 여기서, 지식 증류는 학습된 거대한 모델의 지식을 작은 모델로 전달하여 작은 모델의 성능을 향상시키는 기법 등을 지칭할 수 있다.According to an embodiment, the computing device 100 may improve OOD detection performance by using a plurality of machine learning models. That is, the computing device 100 can greatly improve the OOD object detection accuracy of the student machine learning model by performing knowledge distillation using the learning result of the high-performance teacher machine learning model. Here, knowledge distillation may refer to a technique of improving the performance of a small model by transferring the learned knowledge of a large model to a small model.

일 실시예에 따르면, 컴퓨팅 장치(100)는 학습 이미지 세트를 이용하여 학습 이미지 세트에 포함된 각각의 이미지에 대한 분류를 수행하도록 교사 기계학습 모델을 학습시킬 수 있다. 또한, 컴퓨팅 장치(100)는 교사 기계학습 모델의 학습 시 학습 이미지 세트에 포함된 이미지 외의 다른 이미지가 입력되는 경우, 다른 이미지에 대한 OOD 객체 탐지를 수행하도록 교사 기계학습 모델을 학습시킬 수 있다. 여기서, 교사 기계학습 모델은 데이터를 구별하는데 사용되는 구별 모델(discriminative model)일 수 있으나, 이에 한정되지 않는다. 예를 들어, 컴퓨팅 장치(100)는 A 객체(예: 강아지)가 포함된 학습 이미지 세트 및 B 객체(예: 고양이)가 포함된 학습 이미지 세트를 이용하여, 특정 이미지가 입력되는 경우, 해당 이미지에 포함된 객체가 A 객체인지 B 객체인지 여부를 구별하는 교사 기계학습 모델을 학습시킬 수 있다. 이 경우, 학습된 교사 기계학습 모델에 A 객체 및 B 객체가 모두 포함되지 않은 이미지가 입력되는 경우, 교사 기계학습 모델은 해당 이미지 및/또는 해당 이미지에 포함된 객체를 OOD 객체로서 판별할 수 있다.According to an embodiment, the computing device 100 may train a teacher machine learning model to perform classification on each image included in the training image set using the training image set. In addition, the computing device 100 may train the teacher machine learning model to perform OOD object detection for another image when an image other than an image included in the training image set is input during learning of the teacher machine learning model. Here, the teacher machine learning model may be a discriminative model used to discriminate data, but is not limited thereto. For example, the computing device 100 uses a training image set including object A (eg, dog) and a training image set including object B (eg, cat) when a specific image is input, the corresponding image A teacher machine learning model that distinguishes whether an object included in is an A object or a B object can be trained. In this case, if an image that does not contain both object A and object B is input to the trained teacher machine learning model, the teacher machine learning model may determine the image and/or an object included in the image as an OOD object. .

교사 기계학습 모델을 학습시킨 후, 컴퓨팅 장치(100)는 지식 증류를 이용하여 학습된 교사 기계학습 모델을 기초로, 이미지에 대한 분류 및 OOD 객체 탐지를 수행하도록 학생(student) 기계학습 모델을 학습시킬 수 있다. 여기서, 학생 기계학습 모델은 교사 기계학습 모델보다 더 적은 파라미터(parameter) 등을 갖는 작은 모델로서, 예를 들어, 저해상도의 이미지를 제공받아, 객체를 분류하는 모델일 수 있다. 또한, 학생 기계학습 모델은 데이터를 구별하는데 사용되는 구별 모델일 수 있으나, 이에 한정되지 않는다. 즉, 컴퓨팅 장치(100)는 지식 증류를 통해 교사 기계학습 모델의 출력을 모방하도록 학생 기계학습 모델을 학습시킬 수 있다.After training the teacher machine learning model, the computing device 100 learns a student machine learning model to perform image classification and OOD object detection based on the trained teacher machine learning model using knowledge distillation. can make it Here, the student machine learning model is a small model having fewer parameters than the teacher machine learning model, and may be, for example, a model that receives a low-resolution image and classifies an object. Also, the student machine learning model may be a discrimination model used to discriminate data, but is not limited thereto. That is, the computing device 100 may train the student machine learning model to mimic the output of the teacher machine learning model through knowledge distillation.

그리고 나서, 컴퓨팅 장치(100)는 임의의 이미지(110)가 입력되는 경우, 학습된 학생 기계학습 모델을 이용하여 OOD 탐지를 수행하여 OOD 탐지 결과(120)를 출력할 수 있다. 이와 같은 구성에 의해, 컴퓨팅 장치(100)는 학생 기계학습 모델의 OOD 탐지 성능을 향상시키기 위해 별도의 추가적인 파라미터를 이용하지 않는 경우에도, 속도 저하 없이 향상된 정확도로 학생 기계학습 모델을 이용하여 OOD 탐지를 수행할 수 있다.Then, when an arbitrary image 110 is input, the computing device 100 may perform OOD detection using the learned student machine learning model and output an OOD detection result 120 . With this configuration, the computing device 100 detects OOD using the student machine learning model with improved accuracy without slowing down even when a separate additional parameter is not used to improve the OOD detection performance of the student machine learning model. can be performed.

도 2는 본 발명의 일 실시예에 따른 컴퓨팅 장치(100)의 내부 구성을 나타내는 기능적인 블록도이다. 도시된 바와 같이, 컴퓨팅 장치(100)는 기계학습 모델 학습부(210), 지식 증류 수행부(220), OOD 탐지부(230) 등을 포함할 수 있으나, 이에 한정되지 않는다. 컴퓨팅 장치(100)는 외부 장치, 시스템 등과 통신하며, OOD 탐지 등에 필요한 데이터 및/또는 정보를 주고받을 수 있다.2 is a functional block diagram showing the internal configuration of the computing device 100 according to an embodiment of the present invention. As shown, the computing device 100 may include a machine learning model learning unit 210, a knowledge distillation performing unit 220, an OOD detection unit 230, and the like, but is not limited thereto. The computing device 100 communicates with external devices, systems, etc., and may exchange data and/or information necessary for OOD detection and the like.

상술한 바와 같이, 기계학습 모델 학습부(210)는 학습 이미지 세트를 이용하여 학습 이미지 세트에 포함된 각각의 이미지에 대한 분류를 수행하도록 교사 기계학습 모델을 학습시킬 수 있다. 또한, 기계학습 모델 학습부(210)는 교사 기계학습 모델의 학습 시 학습 이미지 세트에 포함된 이미지 외의 다른 이미지가 입력되는 경우, 다른 이미지에 대한 OOD 객체 탐지를 수행하도록 교사 기계학습 모델을 학습시킬 수 있다. 예를 들어, 기계학습 모델 학습부(210)는 K 개의 클래스를 분류하도록 교사 기계학습 모델을 학습시킬 수 있다. 이 경우, 학습된 기계학습 모델은 임의의 이미지를 제공받는 경우, 해당 이미지가 K 클래스 중 어느 하나의 클래스에 속하는지 여부, K 클래스에 포함된 모든 클래스에 속하지 않는지 여부 등을 판정할 수 있다.As described above, the machine learning model learning unit 210 may train a teacher machine learning model to classify each image included in the training image set using the training image set. In addition, the machine learning model learning unit 210 trains the teacher machine learning model to perform OOD object detection for other images when an image other than the image included in the training image set is input during learning of the teacher machine learning model. can For example, the machine learning model learning unit 210 may train a teacher machine learning model to classify K classes. In this case, when a given image is provided, the trained machine learning model may determine whether the corresponding image belongs to any one of K classes or not to all classes included in K classes.

일 실시예에 따르면, 기계학습 모델 학습부(210)는 MSP(maximum Softmax Probability)를 이용하여 OOD 객체 탐지를 수행하도록 교사 기계학습 모델을 학습시킬 수 있다. 여기서, MSP는 주어진 이미지가 각 클래스에 속할 확률을 산출하고, 산출된 확률 중 가장 큰 값이 사전 결정된 수치 미만인 경우, 해당 이미지를 미학습 객체로 판단하는 OOD 탐지 방법일 수 있다. 추가적으로 또는 대안적으로, 기계학습 모델 학습부(210)는 ODIN(Out-of-Distribution detector for Neural networks)를 이용하여 OOD 객체 탐지를 수행하도록 교사 기계학습 모델을 학습시킬 수 있다. 예를 들어, ODIN은 주어진 이미지가 각 클래스에 속할 확률을 나타내는 출력 분포를 스무딩(smoothing)한 후, 스무딩된 값 중 가장 큰 값이 사전 결정된 수치 미만인 경우, 해당 이미지를 미학습 객체로 판단하는 OOD 탐지 방법일 수 있다. 추가적으로 또는 대안적으로, 기계학습 모델 학습부(210)는 MAHA(Mahalanobis distance based OOD detector)를 이용하여 OOD 객체 탐지를 수행하도록 교사 기계학습 모델을 학습시킬 수 있다. 여기서, MAHA는 학습한 클래스 별 모델의 특징(feature) 분포를 미리 계산한 후, 이미지가 입력된 경우, 특징 분포와의 마할라노비스 거리(mahalanobis distance)가 사전 결정된 값보다 크면, 해당 이미지를 미학습 객체로 판단하는 OOD 탐지 방법일 수 있다.According to an embodiment, the machine learning model learning unit 210 may train a teacher machine learning model to perform OOD object detection using maximum softmax probability (MSP). Here, MSP may be an OOD detection method that calculates the probability that a given image belongs to each class and determines the image as an unlearned object when the largest value of the calculated probability is less than a predetermined value. Additionally or alternatively, the machine learning model learning unit 210 may train a teacher machine learning model to perform OOD object detection using an out-of-distribution detector for neural networks (ODIN). For example, ODIN smooths the output distribution representing the probability that a given image belongs to each class, and if the largest value among the smoothed values is less than a predetermined value, OOD determines the image as an unlearned object. It can be a detection method. Additionally or alternatively, the machine learning model learning unit 210 may train a teacher machine learning model to perform OOD object detection using a Mahalanobis distance based OOD detector (MAHA). Here, the MAHA pre-calculates the feature distribution of the model for each learned class, and when an image is input, if the mahalanobis distance to the feature distribution is greater than a predetermined value, the corresponding image is automatically displayed. It may be an OOD detection method that determines a learning object.

지식 증류 수행부(220)는 지식 증류를 이용하여 학습된 교사 기계학습 모델을 기초로, 이미지에 대한 분류 및 OOD 객체 탐지를 수행하도록 학생 기계학습 모델을 학습시킬 수 있다. 예를 들어, 지식 증류 수행부(220)는 교사 기계학습 모델의 특징 출력 레이어(penultimate layer)(예: 힌트 레이어(hint layer))의 제1 특징 벡터값을 추출하고, 학생 기계학습 모델의 특징 출력 레이어(예: 가이드 레이어(guided layer))의 제2 특징 벡터값을 추출한 후, 제2 특징 벡터값이 제1 특징 벡터값을 모방하도록 지식 증류를 수행할 수 있다.The knowledge distillation performer 220 may train a student machine learning model to perform image classification and OOD object detection based on the teacher machine learning model learned using knowledge distillation. For example, the knowledge distillation unit 220 extracts a first feature vector value of a penultimate layer (eg, a hint layer) of a teacher machine learning model and features of a student machine learning model. After extracting the second feature vector value of the output layer (eg, a guided layer), knowledge distillation may be performed so that the second feature vector value mimics the first feature vector value.

일 실시예에 따르면, 제1 특징 벡터값과 제2 특징 벡터값의 크기(size)는 상이할 수 있다. 이 경우, 지식 증류 수행부(220)는 제2 특징 벡터값을 프로젝션 레이어(projection layer)에 제공하여, 제1 특징 벡터값의 크기와 제2 특징 벡터값의 크기를 매칭시키고, 제2 특징 벡터값이 제1 특징 벡터값을 모방하도록 지식 증류를 수행할 수 있다. 여기서, 프로젝션 레이어는 완전 연결 레이어(fully connected layer)를 포함할 수 있다.According to an embodiment, the size of the first feature vector value and the second feature vector value may be different. In this case, the knowledge distillation unit 220 provides the second feature vector value to the projection layer, matches the size of the first feature vector value with the size of the second feature vector value, and matches the size of the second feature vector value. Knowledge distillation can be performed so that the values mimic the first feature vector values. Here, the projection layer may include a fully connected layer.

일 실시예에 따르면, 지식 증류 수행부(220)는 2개의 손실 함수(loss function)를 이용하여 지식 증류를 수행할 수 있다. 예를 들어, 지식 증류 수행부(220)는 학생 기계학습 모델을 교사 기계학습 모델과 유사하게 변경하기 위한 지식 증류 손실 함수(KD loss: knowledge distillation loss function) 및 공통 손실인 크로스 엔트로피 손실 함수(CE loss: cross entropy loss function)를 이용하여 학생 기계학습 모델을 학습시킬 수 있다. 이와 같은 두 가지 손실 함수를 이용하여 최종 손실은 다음의 수학식 1과 같이 산출될 수 있다.According to an embodiment, the knowledge distillation unit 220 may perform knowledge distillation using two loss functions. For example, the knowledge distillation unit 220 may include a knowledge distillation loss function (KD loss) for changing a student machine learning model to be similar to a teacher machine learning model and a cross entropy loss function (CE) as a common loss. loss: cross entropy loss function) to train a student machine learning model. Using these two loss functions, the final loss can be calculated as in Equation 1 below.

Figure pat00004
Figure pat00004

여기서,

Figure pat00005
은 최종 손실이며,
Figure pat00006
는 지식 증류 손실이고,
Figure pat00007
는 크로스 엔트로피 손실일 수 있다. 또한,
Figure pat00008
Figure pat00009
는 각각 지식 증류 손실 함수와 크로스 엔트로피 손실 함수의 가중치일 수 있다. 또한, 지식 증류 손실과 크로스 엔트로피 손실은 다음의 수학식 2 및 3과 같이 산출될 수 있다.here,
Figure pat00005
is the final loss,
Figure pat00006
is the knowledge distillation loss,
Figure pat00007
may be the cross entropy loss. also,
Figure pat00008
and
Figure pat00009
may be weights of the knowledge distillation loss function and the cross entropy loss function, respectively. In addition, knowledge distillation loss and cross entropy loss can be calculated as in Equations 2 and 3 below.

Figure pat00010
Figure pat00010

여기서,

Figure pat00011
는 교사 기계학습 모델의 특징 출력 레이어의 평균 풀링 출력(average pooled output)과 학생 기계학습 모델의 특징 출력 레이어의 투사된 평균 풀링 출력(projected average pooled output) 사이의 L2 거리(L2 distance)를 나타낼 수 있다.here,
Figure pat00011
can represent the L2 distance between the average pooled output of the feature output layer of the teacher machine learning model and the projected average pooled output of the feature output layer of the student machine learning model. there is.

Figure pat00012
Figure pat00012

여기서,

Figure pat00013
는 정답(ground truth) t와
Figure pat00014
의 확률 분포 사이의 크로스 엔트로피 손실일 수 있다.here,
Figure pat00013
is the ground truth t and
Figure pat00014
It may be a cross entropy loss between probability distributions of .

OOD 탐지부(230)는 이와 같이 지식 증류를 이용하여 학습된 학생 기계학습 모델을 이용하여 OOD 탐지를 수행할 수 있다. 예를 들어, OOD 탐지부(230) 및/또는 학생 기계학습 모델은 다음의 수학식 4에 의해 OOD 탐지를 수행할 수 있다.The OOD detection unit 230 may perform OOD detection using the student machine learning model learned through knowledge distillation. For example, the OOD detection unit 230 and/or the student machine learning model may perform OOD detection by Equation 4 below.

Figure pat00015
Figure pat00015

즉, OOD 탐지부(230)는 수학식 4에 의해 산출된 값이 사전 결정된 임계값(threshold value) 이하인 경우, 입력된 임의의 이미지를 OOD 객체로 탐지할 수 있다. 여기서,

Figure pat00016
는 소프트맥스 레이어(softmax layer)의 출력값을 나타내고, x는 임의의 이미지를 나타내고, y는 임의의 이미지와 연관된 레이블(label)을 나타내고, k는 임의의 이미지와 연관된 클래스(class)를 나타내고,
Figure pat00017
은 클래스 n에 대한 학생 기계학습 모델의 특징 출력 레이어(예: 마지막에서 두번째 레이어)의 출력값을 나타낼 수 있다.That is, the OOD detection unit 230 may detect an input image as an OOD object when the value calculated by Equation 4 is less than or equal to a predetermined threshold value. here,
Figure pat00016
Represents the output value of the softmax layer, x represents an arbitrary image, y represents a label associated with an arbitrary image, k represents a class associated with an arbitrary image,
Figure pat00017
may represent the output value of the feature output layer (eg, the second to last layer) of the student machine learning model for class n.

도 2에서는 컴퓨팅 장치(100)에 포함된 각각의 기능적인 구성이 구분되어 상술되었으나, 이는 발명의 이해를 돕기 위한 것일 뿐이며, 하나의 연산 장치에서 둘 이상의 기능을 수행할 수도 있다. 이와 같은 구성에 의해, 컴퓨팅 장치(100)는 기존의 하이퍼 파라미터의 튜닝을 위해 미학습 객체가 포함된 데이터 세트를 필요로 하는 ODIN 등의 방법과 달리, 학생 기계학습 모델을 학습시키기 위한 추가적인 학습 데이터 세트 없이도 OOD 객체를 포함하는 이미지에 대한 탐지 성능을 효과적으로 향상시킬 수 있다.In FIG. 2 , each functional configuration included in the computing device 100 has been separately described, but this is only to aid understanding of the present invention, and one computing device may perform two or more functions. With this configuration, the computing device 100 provides additional learning data for training the student machine learning model, unlike conventional methods such as ODIN that require a data set including unlearned objects for hyperparameter tuning. Even without a set, detection performance for images containing OOD objects can be effectively improved.

도 3은 본 발명의 일 실시예에 따른 학생 기계학습 모델(340)이 학습되는 예시를 나타내는 도면이다. 일 실시예에 따르면, 교사 기계학습 모델(320) 및 학생 기계학습 모델(340)은 복수의 컨볼루션 블록(convolution block)을 포함할 수 있다. 예를 들어, 교사 기계학습 모델(320) 및 학생 기계학습 모델(340)은 이미지 세트(310)를 수신하고, 이미지 세트(310)에 포함된 각 이미지의 클래스(class)를 분류하도록 학습될 수 있다. 도시된 예에서, 교사 기계학습 모델(320) 및 학생 기계학습 모델(340)은 동일한 이미지 세트(310)를 기초로 학습되는 것으로 도시되었으나, 이에 한정되지 않으며, 상이한 이미지 세트를 이용하여 학습될 수도 있다.3 is a diagram showing an example of learning a student machine learning model 340 according to an embodiment of the present invention. According to an embodiment, the teacher machine learning model 320 and the student machine learning model 340 may include a plurality of convolution blocks. For example, the teacher machine learning model 320 and the student machine learning model 340 may receive an image set 310 and be trained to classify each image included in the image set 310 into a class. there is. In the illustrated example, the teacher machine learning model 320 and the student machine learning model 340 are shown to be trained based on the same image set 310, but are not limited thereto, and may be trained using different image sets. there is.

일 실시예에 따르면, 학생 기계학습 모델(340)의 출력값(예: 특징 벡터값)은 교사 기계학습 모델(320)의 출력값과 유사해지도록 학습될 수 있다. 이 경우, 학생 기계학습 모델(340)의 특징 출력 레이어(예: 마지막에서 두번째 레이어)의 출력값과 교사 기계학습 모델(320)의 특징 출력 레이어의 출력값이 사용될 수 있다. 예를 들어, 학생 기계학습 모델(340)의 특징 출력 레이어의 출력값은 프로젝션 레이어(350)에 제공되어 교사 기계학습 모델(320)의 특징 출력 레이어의 출력값과 동일한 크기를 갖도록 변경될 수 있다. 그리고 나서, 학생 기계학습 모델(340)의 출력값은 교사 기계학습 모델(320)의 출력값과 유사해지도록 KD 손실 함수(330)에 의해 학습될 수 있다. 이와 같이, KD 손실 함수(330)에 의해 지식 증류가 수행되는 경우, 각도 차이(angle margin)를 넓어지게 하여 크로스 엔트로피 손실 함수의 성능이 향상될 수 있다.According to an embodiment, an output value (eg, a feature vector value) of the student machine learning model 340 may be trained to be similar to an output value of the teacher machine learning model 320 . In this case, the output value of the feature output layer (eg, the second to last layer) of the student machine learning model 340 and the output value of the feature output layer of the teacher machine learning model 320 may be used. For example, the output value of the feature output layer of the student machine learning model 340 may be provided to the projection layer 350 and changed to have the same size as the output value of the feature output layer of the teacher machine learning model 320 . Then, the output of the student machine learning model 340 can be trained by the KD loss function 330 to be similar to the output of the teacher machine learning model 320. In this way, when knowledge distillation is performed by the KD loss function 330, the performance of the cross entropy loss function can be improved by widening the angle margin.

일 실시예에 따르면, 학생 기계학습 모델(340)의 출력값은 분류 레이어(360)를 통해 크로스 엔트로피 손실 함수(380)로 제공될 수 있다. 이 경우, 학생 기계학습 모델(340)의 출력값은 이미지 세트(310)에 포함된 각 이미지와 대응되는 레이블(370)이 결정되도록 크로스 엔트로피 손실 함수(380)에 의해 학습될 수 있다.According to an embodiment, an output value of the student machine learning model 340 may be provided as a cross entropy loss function 380 through a classification layer 360. In this case, the output value of the student machine learning model 340 may be learned by the cross entropy loss function 380 so that a label 370 corresponding to each image included in the image set 310 is determined.

도 4는 본 발명의 일 실시예에 따른 기계학습 모델(400)의 예시를 나타내는 도면이다. 상술한 바와 같이, 기계학습 모델(400)은 교사 기계학습 모델 및/또는 학생 기계학습 모델을 포함할 수 있다. 예를 들어, 기계학습 모델(400)은 데이터를 구별하는데 사용되는 구별 모델(discriminative model)일 수 있으나, 이에 한정되지 않는다.4 is a diagram showing an example of a machine learning model 400 according to an embodiment of the present invention. As noted above, the machine learning model 400 may include a teacher machine learning model and/or a student machine learning model. For example, the machine learning model 400 may be a discriminative model used to discriminate data, but is not limited thereto.

도시된 예에서, 제1 이미지(410)는 학습 이미지 세트에 포함된 A 객체(예: 강아지)와 연관된 이미지일 수 있으며, 제2 이미지(420)는 학습 이미지 세트에 포함되지 않은 C 객체와 연관된 이미지일 수 있다. 일 실시예에 따르면, 제1 이미지(410)가 입력된 경우, 기계학습 모델(400)은 제1 이미지(410)를 A 객체로 분류하는 제1 분류 결과(412)를 출력할 수 있다. 추가적으로, 제2 이미지(420)가 입력된 경우, 기계학습 모델(400)은 제2 이미지(420)를 미학습 객체(OOD 객체)로 분류하는 제2 분류 결과(422)를 출력할 수 있다.In the illustrated example, the first image 410 may be an image associated with object A (eg, a dog) included in the training image set, and the second image 420 may be associated with object C not included in the training image set. It can be an image. According to an embodiment, when the first image 410 is input, the machine learning model 400 may output a first classification result 412 for classifying the first image 410 as object A. Additionally, when the second image 420 is input, the machine learning model 400 may output a second classification result 422 classifying the second image 420 as an unlearned object (OOD object).

일 실시예에 따르면, 기계학습 모델(400)은 각 이미지(410, 420)가 입력되는 경우, 각 이미지(410, 420)가 학습된 각 객체에 대응할 확률 값을 산출할 수 있다. 이 경우, 기계학습 모델(400)은 산출된 값이 가장 높은 클래스로 해당 이미지를 분류할 수 있다. 추가적으로, 기계학습 모델(400)은 산출된 값 중 가장 높은 값이 사전 결정된 임계값 이하인 경우, 임의의 이미지를 OOD 객체로 탐지할 수 있다.According to an embodiment, when each of the images 410 and 420 is input, the machine learning model 400 may calculate a probability value corresponding to each object from which the images 410 and 420 are learned. In this case, the machine learning model 400 may classify the corresponding image into a class having the highest calculated value. Additionally, the machine learning model 400 may detect an arbitrary image as an OOD object when the highest value among the calculated values is less than or equal to a predetermined threshold value.

도 5는 본 발명의 일 실시예에 따른 OOD 객체 탐지 방법(500)의 예시를 나타내는 흐름도이다. OOD 객체 탐지 방법(500)은 프로세서(예를 들어, 컴퓨팅 장치의 적어도 하나의 프로세서)에 의해 수행될 수 있다. 도시된 바와 같이, OOD 객체 탐지 방법(500)은 프로세서가 학습 이미지 세트를 이용하여 학습 이미지 세트에 포함된 각각의 이미지에 대한 분류를 수행하도록 교사 기계학습 모델을 학습시킴으로써 개시될 수 있다(S510).5 is a flowchart illustrating an example of an OOD object detection method 500 according to an embodiment of the present invention. The OOD object detection method 500 may be performed by a processor (eg, at least one processor of a computing device). As shown, the OOD object detection method 500 may be initiated by a processor training a teacher machine learning model to perform classification on each image included in the training image set using the training image set (S510). .

프로세서는 교사 기계학습 모델의 학습 시 학습 이미지 세트에 포함된 이미지 외의 다른 이미지가 입력되는 경우, 다른 이미지에 대한 OOD 객체 탐지를 수행하도록 교사 기계학습 모델을 학습시킬 수 있다(S520). 또한, 프로세서는 지식 증류를 이용하여 학습된 교사 기계학습 모델을 기초로, 이미지에 대한 분류 및 OOD 객체 탐지를 수행하도록 학생 기계학습 모델을 학습시킬 수 있다(S530). 이 경우, 프로세서는 학생 기계학습 모델을 교사 기계학습 모델과 유사하게 변경하기 위한 지식 증류 손실 함수 및 크로스 엔트로피 손실 함수를 이용하여 학생 기계학습 모델을 학습시킬 수 있다. 그리고 나서, 프로세서는 임의의 이미지가 입력되는 경우, 학습된 학생 기계학습 모델을 이용하여 OOD 탐지를 수행할 수 있다.The processor may train the teacher machine learning model to perform OOD object detection for another image when an image other than the image included in the training image set is input during training of the teacher machine learning model (S520). In addition, the processor may train the student machine learning model to perform image classification and OOD object detection based on the teacher machine learning model learned using knowledge distillation (S530). In this case, the processor may train the student machine learning model using a knowledge distillation loss function and a cross entropy loss function for changing the student machine learning model to be similar to the teacher machine learning model. Then, when an arbitrary image is input, the processor may perform OOD detection using the trained student machine learning model.

도 6은 본 발명의 일 실시예에 따른 지식 증류 수행 방법(600)의 예시를 나타내는 흐름도이다. 지식 증류 수행 방법(600)은 프로세서(예를 들어, 컴퓨팅 장치의 적어도 하나의 프로세서)에 의해 수행될 수 있다. 도시된 바와 같이, 지식 증류 수행 방법(600)은 프로세서가 교사 기계학습 모델의 특징 출력 레이어의 제1 특징 벡터값을 추출함으로써 개시될 수 있다(S610).6 is a flow diagram illustrating an example of a method 600 for performing knowledge distillation according to one embodiment of the present invention. Method 600 for performing knowledge distillation may be performed by a processor (eg, at least one processor of a computing device). As shown, the knowledge distillation method 600 may be initiated by a processor extracting a first feature vector value of a feature output layer of a teacher machine learning model (S610).

프로세서는 학생 기계학습 모델의 특징 출력 레이어의 제2 특징 벡터값을 추출할 수 있다(S620). 또한, 프로세서는 제2 특징 벡터값을 프로젝션 레이어에 제공하여, 제1 특징 벡터값의 크기와 제2 특징 벡터값의 크기를 매칭시킬 수 있다. 여기서, 프로젝션 레이어는 완전 연결 레이어를 포함할 수 있다. 그리고 나서, 프로세서는 지식 증류 손실 함수 및 크로스 엔트로피 손실 함수를 이용하여 학생 기계학습 모델을 학습시킬 수 있다.The processor may extract the second feature vector value of the feature output layer of the student machine learning model (S620). In addition, the processor may provide the second feature vector value to the projection layer to match the size of the first feature vector value with the size of the second feature vector value. Here, the projection layer may include a fully connected layer. Then, the processor can train the student machine learning model using the knowledge distillation loss function and the cross entropy loss function.

도 7은 본 발명의 일 실시예에 따른 컴퓨팅 장치(700)의 내부 구성을 나타내는 블록도이다. 컴퓨팅 장치(700)는 메모리(710), 프로세서(720), 통신 모듈(730) 및 입출력 인터페이스(740)를 포함할 수 있다. 도 7에 도시된 바와 같이, 컴퓨팅 장치(700)는 통신 모듈(730)을 이용하여 네트워크를 통해 정보 및/또는 데이터를 통신할 수 있도록 구성될 수 있다.7 is a block diagram showing an internal configuration of a computing device 700 according to an embodiment of the present invention. The computing device 700 may include a memory 710 , a processor 720 , a communication module 730 and an input/output interface 740 . As shown in FIG. 7 , the computing device 700 may be configured to communicate information and/or data over a network using a communication module 730 .

메모리(710)는 비-일시적인 임의의 컴퓨터 판독 가능한 기록매체를 포함할 수 있다. 일 실시예에 따르면, 메모리(710)는 RAM(random access memory), ROM(read only memory), 디스크 드라이브, SSD(solid state drive), 플래시 메모리(flash memory) 등과 같은 비소멸성 대용량 저장 장치(permanent mass storage device)를 포함할 수 있다. 다른 예로서, ROM, SSD, 플래시 메모리, 디스크 드라이브 등과 같은 비소멸성 대용량 저장 장치는 메모리와는 구분되는 별도의 영구 저장 장치로서 컴퓨팅 장치(700)에 포함될 수 있다. 또한, 메모리(710)에는 운영체제와 적어도 하나의 프로그램 코드가 저장될 수 있다.Memory 710 may include any non-transitory computer readable storage medium. According to one embodiment, the memory 710 is a non-perishable mass storage device (permanent mass storage device) such as random access memory (RAM), read only memory (ROM), disk drive, solid state drive (SSD), flash memory, and the like. mass storage device). As another example, a non-perishable mass storage device such as a ROM, SSD, flash memory, or disk drive may be included in the computing device 700 as a separate permanent storage device separate from memory. Also, an operating system and at least one program code may be stored in the memory 710 .

이러한 소프트웨어 구성요소들은 메모리(710)와는 별도의 컴퓨터에서 판독 가능한 기록매체로부터 로딩될 수 있다. 이러한 별도의 컴퓨터에서 판독 가능한 기록매체는 이러한 컴퓨팅 장치(700)에 직접 연결가능한 기록 매체를 포함할 수 있는데, 예를 들어, 플로피 드라이브, 디스크, 테이프, DVD/CD-ROM 드라이브, 메모리 카드 등의 컴퓨터에서 판독 가능한 기록매체를 포함할 수 있다. 다른 예로서, 소프트웨어 구성요소들은 컴퓨터에서 판독 가능한 기록매체가 아닌 통신 모듈(730)을 통해 메모리(710)에 로딩될 수도 있다. 예를 들어, 적어도 하나의 프로그램은 개발자들 또는 어플리케이션의 설치 파일을 배포하는 파일 배포 시스템이 통신 모듈(730)을 통해 제공하는 파일들에 의해 설치되는 컴퓨터 프로그램에 기반하여 메모리(710)에 로딩될 수 있다.These software components may be loaded from a computer-readable recording medium separate from the memory 710 . A recording medium readable by such a separate computer may include a recording medium directly connectable to the computing device 700, for example, a floppy drive, a disk, a tape, a DVD/CD-ROM drive, a memory card, and the like. It may include a computer-readable recording medium. As another example, software components may be loaded into the memory 710 through the communication module 730 rather than a computer-readable recording medium. For example, at least one program may be loaded into the memory 710 based on a computer program installed by files provided by developers or a file distribution system that distributes application installation files through the communication module 730. can

프로세서(720)는 기본적인 산술, 로직 및 입출력 연산을 수행함으로써, 컴퓨터 프로그램의 명령을 처리하도록 구성될 수 있다. 명령은 메모리(710) 또는 통신 모듈(730)에 의해 사용자 단말(미도시) 또는 다른 외부 시스템으로 제공될 수 있다.The processor 720 may be configured to process commands of a computer program by performing basic arithmetic, logic, and input/output operations. Commands may be provided to a user terminal (not shown) or other external system by the memory 710 or the communication module 730 .

통신 모듈(730)은 네트워크를 통해 사용자 단말(미도시)과 컴퓨팅 장치(700)가 서로 통신하기 위한 구성 또는 기능을 제공할 수 있으며, 컴퓨팅 장치(700)가 외부 시스템(일례로 별도의 클라우드 시스템 등)과 통신하기 위한 구성 또는 기능을 제공할 수 있다. 일례로, 컴퓨팅 장치(700)의 프로세서(720)의 제어에 따라 제공되는 제어 신호, 명령, 데이터 등이 통신 모듈(730)과 네트워크를 거쳐 사용자 단말 및/또는 외부 시스템의 통신 모듈을 통해 사용자 단말 및/또는 외부 시스템으로 전송될 수 있다.The communication module 730 may provide a configuration or function for a user terminal (not shown) and the computing device 700 to communicate with each other through a network, and the computing device 700 may provide an external system (for example, a separate cloud system). etc.) may provide a configuration or function to communicate with. For example, control signals, commands, data, etc. provided under the control of the processor 720 of the computing device 700 are transmitted through the communication module 730 and the network to the user terminal and/or to the user terminal through the communication module of the external system. and/or transmitted to an external system.

또한, 컴퓨팅 장치(700)의 입출력 인터페이스(740)는 컴퓨팅 장치(700)와 연결되거나 컴퓨팅 장치(700)가 포함할 수 있는 입력 또는 출력을 위한 장치(미도시)와의 인터페이스를 위한 수단일 수 있다. 도 7에서는 입출력 인터페이스(740)가 프로세서(720)와 별도로 구성된 요소로서 도시되었으나, 이에 한정되지 않으며, 입출력 인터페이스(740)가 프로세서(720)에 포함되도록 구성될 수 있다. 컴퓨팅 장치(700)는 도 7의 구성요소들보다 더 많은 구성요소들을 포함할 수 있다. 그러나, 대부분의 종래기술적 구성요소들을 명확하게 도시할 필요성은 없다.Also, the input/output interface 740 of the computing device 700 may be connected to the computing device 700 or may be a means for interface with a device (not shown) for input or output that may be included in the computing device 700. . In FIG. 7 , the input/output interface 740 is illustrated as an element separately configured from the processor 720 , but is not limited thereto, and the input/output interface 740 may be included in the processor 720 . Computing device 700 may include many more components than those of FIG. 7 . However, there is no need to clearly show most of the prior art components.

컴퓨팅 장치(700)의 프로세서(720)는 복수의 사용자 단말 및/또는 복수의 외부 시스템으로부터 수신된 정보 및/또는 데이터를 관리, 처리 및/또는 저장하도록 구성될 수 있다.The processor 720 of the computing device 700 may be configured to manage, process, and/or store information and/or data received from a plurality of user terminals and/or a plurality of external systems.

상술된 방법 및/또는 다양한 실시예들은, 디지털 전자 회로, 컴퓨터 하드웨어, 펌웨어, 소프트웨어 및/또는 이들의 조합으로 실현될 수 있다. 본 발명의 다양한 실시예들은 데이터 처리 장치, 예를 들어, 프로그래밍 가능한 하나 이상의 프로세서 및/또는 하나 이상의 컴퓨팅 장치에 의해 실행되거나, 컴퓨터 판독 가능한 기록 매체 및/또는 컴퓨터 판독 가능한 기록 매체에 저장된 컴퓨터 프로그램으로 구현될 수 있다. 상술된 컴퓨터 프로그램은 컴파일된 언어 또는 해석된 언어를 포함하여 임의의 형태의 프로그래밍 언어로 작성될 수 있으며, 독립 실행형 프로그램, 모듈, 서브 루틴 등의 임의의 형태로 배포될 수 있다. 컴퓨터 프로그램은 하나의 컴퓨팅 장치, 동일한 네트워크를 통해 연결된 복수의 컴퓨팅 장치 및/또는 복수의 상이한 네트워크를 통해 연결되도록 분산된 복수의 컴퓨팅 장치를 통해 배포될 수 있다.The above-described methods and/or various embodiments may be realized with digital electronic circuits, computer hardware, firmware, software, and/or combinations thereof. Various embodiments of the present invention may be performed by a data processing device, eg, one or more programmable processors and/or one or more computing devices, or as a computer readable recording medium and/or a computer program stored on a computer readable recording medium. can be implemented The above-described computer programs may be written in any form of programming language, including compiled or interpreted languages, and may be distributed in any form, such as a stand-alone program, module, or subroutine. A computer program may be distributed over one computing device, multiple computing devices connected through the same network, and/or distributed over multiple computing devices connected through multiple different networks.

상술된 방법 및/또는 다양한 실시예들은, 입력 데이터를 기초로 동작하거나 출력 데이터를 생성함으로써, 임의의 기능, 함수 등을 처리, 저장 및/또는 관리하는 하나 이상의 컴퓨터 프로그램을 실행하도록 구성된 하나 이상의 프로세서에 의해 수행될 수 있다. 예를 들어, 본 발명의 방법 및/또는 다양한 실시예는 FPGA(Field Programmable Gate Array) 또는 ASIC(Application Specific Integrated Circuit)과 같은 특수 목적 논리 회로에 의해 수행될 수 있으며, 본 발명의 방법 및/또는 실시예들을 수행하기 위한 장치 및/또는 시스템은 FPGA 또는 ASIC와 같은 특수 목적 논리 회로로서 구현될 수 있다.The methods and/or various embodiments described above may be performed by one or more processors configured to execute one or more computer programs that process, store, and/or manage any function, function, or the like, by operating on input data or generating output data. can be performed by For example, the method and/or various embodiments of the present invention may be performed by a special purpose logic circuit such as a Field Programmable Gate Array (FPGA) or an Application Specific Integrated Circuit (ASIC), and the method and/or various embodiments of the present invention may be performed. Apparatus and/or systems for performing the embodiments may be implemented as special purpose logic circuits such as FPGAs or ASICs.

컴퓨터 프로그램을 실행하는 하나 이상의 프로세서는, 범용 목적 또는 특수 목적의 마이크로 프로세서 및/또는 임의의 종류의 디지털 컴퓨팅 장치의 하나 이상의 프로세서를 포함할 수 있다. 프로세서는 읽기 전용 메모리, 랜덤 액세스 메모리의 각각으로부터 명령 및/또는 데이터를 수신하거나, 읽기 전용 메모리와 랜덤 액세스 메모리로부터 명령 및/또는 데이터를 수신할 수 있다. 본 발명에서, 방법 및/또는 실시예들을 수행하는 컴퓨팅 장치의 구성 요소들은 명령어들을 실행하기 위한 하나 이상의 프로세서, 명령어들 및/또는 데이터를 저장하기 위한 하나 이상의 메모리 디바이스를 포함할 수 있다.The one or more processors executing the computer program may include a general purpose or special purpose microprocessor and/or one or more processors of any kind of digital computing device. The processor may receive instructions and/or data from each of the read-only memory and the random access memory, or receive instructions and/or data from the read-only memory and the random access memory. In the present invention, components of a computing device performing methods and/or embodiments may include one or more processors for executing instructions, and one or more memory devices for storing instructions and/or data.

일 실시예에 따르면, 컴퓨팅 장치는 데이터를 저장하기 위한 하나 이상의 대용량 저장 장치와 데이터를 주고받을 수 있다. 예를 들어, 컴퓨팅 장치는 자기 디스크(magnetic disc) 또는 광 디스크(optical disc)로부터 데이터를 수신하거나/수신하고, 자기 디스크 또는 광 디스크로 데이터를 전송할 수 있다. 컴퓨터 프로그램과 연관된 명령어들 및/또는 데이터를 저장하기에 적합한 컴퓨터 판독 가능한 저장 매체는, EPROM(Erasable Programmable Read-Only Memory), EEPROM(Electrically Erasable PROM), 플래시 메모리 장치 등의 반도체 메모리 장치를 포함하는 임의의 형태의 비 휘발성 메모리를 포함할 수 있으나, 이에 한정되지 않는다. 예를 들어, 컴퓨터 판독 가능한 저장 매체는 내부 하드 디스크 또는 이동식 디스크와 같은 자기 디스크, 광 자기 디스크, CD-ROM 및 DVD-ROM 디스크를 포함할 수 있다.According to one embodiment, a computing device may exchange data with one or more mass storage devices for storing data. For example, a computing device may receive/receive data from and transfer data to a magnetic or optical disc. A computer-readable storage medium suitable for storing instructions and/or data associated with a computer program includes semiconductor memory devices such as Erasable Programmable Read-Only Memory (EPROM), Electrically Erasable PROM (EEPROM), and flash memory devices. Any type of non-volatile memory may be included, but is not limited thereto. For example, computer readable storage media may include magnetic disks such as internal hard disks or removable disks, magneto-optical disks, CD-ROM and DVD-ROM disks.

사용자와의 상호 작용을 제공하기 위해, 컴퓨팅 장치는 정보를 사용자에게 제공하거나 디스플레이하기 위한 디스플레이 장치(예를 들어, CRT (Cathode Ray Tube), LCD(Liquid Crystal Display) 등) 및 사용자가 컴퓨팅 장치 상에 입력 및/또는 명령 등을 제공할 수 있는 포인팅 장치(예를 들어, 키보드, 마우스, 트랙볼 등)를 포함할 수 있으나, 이에 한정되지 않는다. 즉, 컴퓨팅 장치는 사용자와의 상호 작용을 제공하기 위한 임의의 다른 종류의 장치들을 더 포함할 수 있다. 예를 들어, 컴퓨팅 장치는 사용자와의 상호 작용을 위해, 시각적 피드백, 청각 피드백 및/또는 촉각 피드백 등을 포함하는 임의의 형태의 감각 피드백을 사용자에게 제공할 수 있다. 이에 대해, 사용자는 시각, 음성, 동작 등의 다양한 제스처를 통해 컴퓨팅 장치로 입력을 제공할 수 있다.To provide interaction with a user, a computing device includes a display device (eg, a cathode ray tube (CRT), a liquid crystal display (LCD), etc.) It may include a pointing device (eg, a keyboard, mouse, trackball, etc.) capable of providing input and/or commands to, but is not limited thereto. That is, the computing device may further include any other type of device for providing interaction with a user. For example, a computing device may provide any form of sensory feedback to a user for interaction with the user, including visual feedback, auditory feedback, and/or tactile feedback. In this regard, the user may provide input to the computing device through various gestures such as visual, voice, and motion.

본 발명에서, 다양한 실시예들은 백엔드 구성 요소(예: 데이터 서버), 미들웨어 구성 요소(예: 애플리케이션 서버) 및/또는 프론트 엔드 구성 요소를 포함하는 컴퓨팅 시스템에서 구현될 수 있다. 이 경우, 구성 요소들은 통신 네트워크와 같은 디지털 데이터 통신의 임의의 형태 또는 매체에 의해 상호 연결될 수 있다. 예를 들어, 통신 네트워크는 LAN(Local Area Network), WAN(Wide Area Network) 등을 포함할 수 있다.In the present invention, various embodiments may be implemented in a computing system including a back-end component (eg, a data server), a middleware component (eg, an application server), and/or a front-end component. In this case, the components may be interconnected by any form or medium of digital data communication, such as a communication network. For example, the communication network may include a local area network (LAN), a wide area network (WAN), and the like.

본 명세서에서 기술된 예시적인 실시예들에 기반한 컴퓨팅 장치는, 사용자 디바이스, 사용자 인터페이스(UI) 디바이스, 사용자 단말 또는 클라이언트 디바이스를 포함하여 사용자와 상호 작용하도록 구성된 하드웨어 및/또는 소프트웨어를 사용하여 구현될 수 있다. 예를 들어, 컴퓨팅 장치는 랩톱(laptop) 컴퓨터와 같은 휴대용 컴퓨팅 장치를 포함할 수 있다. 추가적으로 또는 대안적으로, 컴퓨팅 장치는, PDA(Personal Digital Assistants), 태블릿 PC, 게임 콘솔(game console), 웨어러블 디바이스(wearable device), IoT(internet of things) 디바이스, VR(virtual reality) 디바이스, AR(augmented reality) 디바이스 등을 포함할 수 있으나, 이에 한정되지 않는다. 컴퓨팅 장치는 사용자와 상호 작용하도록 구성된 다른 유형의 장치를 더 포함할 수 있다. 또한, 컴퓨팅 장치는 이동 통신 네트워크 등의 네트워크를 통한 무선 통신에 적합한 휴대용 통신 디바이스(예를 들어, 이동 전화, 스마트 전화, 무선 셀룰러 전화 등) 등을 포함할 수 있다. 컴퓨팅 장치는, 무선 주파수(RF; Radio Frequency), 마이크로파 주파수(MWF; Microwave Frequency) 및/또는 적외선 주파수(IRF; Infrared Ray Frequency)와 같은 무선 통신 기술들 및/또는 프로토콜들을 사용하여 네트워크 서버와 무선으로 통신하도록 구성될 수 있다.A computing device based on the example embodiments described herein may be implemented using hardware and/or software configured to interact with a user, including a user device, user interface (UI) device, user terminal, or client device. can For example, the computing device may include a portable computing device such as a laptop computer. Additionally or alternatively, the computing device may include personal digital assistants (PDAs), tablet PCs, game consoles, wearable devices, internet of things (IoT) devices, virtual reality (VR) devices, AR (augmented reality) device, etc. may be included, but is not limited thereto. A computing device may further include other types of devices configured to interact with a user. Further, the computing device may include a portable communication device (eg, a mobile phone, smart phone, wireless cellular phone, etc.) suitable for wireless communication over a network, such as a mobile communication network. A computing device communicates wirelessly with a network server using wireless communication technologies and/or protocols such as radio frequency (RF), microwave frequency (MWF) and/or infrared ray frequency (IRF). It can be configured to communicate with.

본 발명에서 특정 구조적 및 기능적 세부 사항을 포함하는 다양한 실시예들은 예시적인 것이다. 따라서, 본 발명의 실시예들은 상술된 것으로 한정되지 않으며, 여러 가지 다른 형태로 구현될 수 있다. 또한, 본 발명에서 사용된 용어는 일부 실시예를 설명하기 위한 것이며 실시예를 제한하는 것으로 해석되지 않는다. 예를 들어, 단수형 단어 및 상기는 문맥상 달리 명확하게 나타내지 않는 한 복수형도 포함하는 것으로 해석될 수 있다.The various embodiments herein, including specific structural and functional details, are exemplary. Accordingly, embodiments of the present invention are not limited to those described above and may be implemented in various other forms. In addition, terms used in the present invention are for describing some embodiments and are not construed as limiting the embodiments. For example, the singular and the above may be construed to include the plural as well, unless the context clearly dictates otherwise.

본 발명에서, 달리 정의되지 않는 한, 기술적이거나 과학적인 용어를 포함하여 본 명세서에서 사용되는 모든 용어는 이러한 개념이 속하는 기술 분야에서 통상의 지식을 가진 자에 의해 일반적으로 이해되는 것과 동일한 의미를 갖는다. 또한, 사전에 정의된 용어와 같이 일반적으로 사용되는 용어들은 관련 기술의 맥락에서의 의미와 일치하는 의미를 갖는 것으로 해석되어야 한다.In the present invention, unless defined otherwise, all terms used in this specification, including technical or scientific terms, have the same meaning as commonly understood by a person of ordinary skill in the art to which such concept belongs. . In addition, terms commonly used, such as terms defined in a dictionary, should be interpreted as having a meaning consistent with the meaning in the context of the related art.

본 명세서에서는 본 발명이 일부 실시예들과 관련하여 설명되었지만, 본 발명의 발명이 속하는 기술분야의 통상의 기술자가 이해할 수 있는 본 발명의 범위를 벗어나지 않는 범위에서 다양한 변형 및 변경이 이루어질 수 있다. 또한, 그러한 변형 및 변경은 본 명세서에 첨부된 특허청구의 범위 내에 속하는 것으로 생각되어야 한다.Although the present invention has been described in relation to some embodiments in this specification, various modifications and changes can be made without departing from the scope of the present invention that can be understood by those skilled in the art. Moreover, such modifications and variations are intended to fall within the scope of the claims appended hereto.

100: 컴퓨팅 장치
110: 이미지
120: OOD 탐지 결과
100: computing device
110: image
120: OOD detection result

Claims (7)

적어도 하나의 프로세서에 의해 수행되는 OOD(out of distribution) 객체 탐지 방법으로서,
학습 이미지 세트를 이용하여 상기 학습 이미지 세트에 포함된 각각의 이미지에 대한 분류를 수행하도록 교사(teacher) 기계학습 모델을 학습시키는 단계;
상기 교사 기계학습 모델의 학습 시 상기 학습 이미지 세트에 포함된 이미지 외의 다른 이미지가 입력되는 경우, 상기 다른 이미지에 대한 OOD 객체 탐지를 수행하도록 상기 교사 기계학습 모델을 학습시키는 단계; 및
지식 증류(knowledge distillation)를 이용하여 상기 학습된 교사 기계학습 모델을 기초로, 이미지에 대한 분류 및 OOD 객체 탐지를 수행하도록 학생(student) 기계학습 모델을 학습시키는 단계;
를 포함하는, OOD 객체 탐지 방법.
As an out of distribution (OOD) object detection method performed by at least one processor,
training a teacher machine learning model to perform classification for each image included in the training image set using a training image set;
training the teacher machine learning model to perform OOD object detection for the other image when an image other than the image included in the training image set is input during learning of the teacher machine learning model; and
training a student machine learning model to perform image classification and OOD object detection based on the trained teacher machine learning model using knowledge distillation;
Including, OOD object detection method.
제1항에 있어서,
임의의 이미지가 입력되는 경우, 상기 학습된 학생 기계학습 모델을 이용하여 OOD 탐지를 수행하는 단계;
를 더 포함하는, OOD 객체 탐지 방법.
According to claim 1,
If an arbitrary image is input, performing OOD detection using the learned student machine learning model;
Further comprising, OOD object detection method.
제2항에 있어서,
상기 학습된 학생 기계학습 모델을 이용하여 OOD 탐지를 수행하는 단계는,
Figure pat00018
에 의해 산출된 값이 사전 결정된 임계값(threshold value) 이하인 경우, 상기 임의의 이미지를 OOD 객체로 탐지하는 단계를 포함하고,
여기서,
Figure pat00019
는 소프트맥스 레이어(softmax layer)의 출력값을 나타내고, x는 상기 임의의 이미지를 나타내고, y는 상기 임의의 이미지와 연관된 레이블(label)을 나타내고, k는 상기 임의의 이미지와 연관된 클래스(class)를 나타내고,
Figure pat00020
은 클래스 n에 대한 상기 학생 기계학습 모델의 특징 출력 레이어(penultimate layer)의 출력값을 나타내는, OOD 객체 탐지 방법.
According to claim 2,
The step of performing OOD detection using the learned student machine learning model,
Figure pat00018
When the value calculated by is less than a predetermined threshold value, detecting the arbitrary image as an OOD object,
here,
Figure pat00019
represents the output value of the softmax layer, x represents the arbitrary image, y represents a label associated with the arbitrary image, and k represents a class associated with the arbitrary image indicate,
Figure pat00020
Represents an output value of a penultimate layer of the student machine learning model for class n, OOD object detection method.
제1항에 있어서,
상기 학생 기계학습 모델을 학습시키는 단계는,
상기 학생 기계학습 모델을 상기 교사 기계학습 모델과 유사하게 변경하기 위한 지식 증류 손실 함수(knowledge distillation loss function) 및 크로스 엔트로피 손실 함수(cross entropy loss function)를 이용하여 상기 학생 기계학습 모델을 학습시키는 단계;
를 포함하는, OOD 객체 탐지 방법.
According to claim 1,
The step of learning the student machine learning model,
Training the student machine learning model using a knowledge distillation loss function and a cross entropy loss function for changing the student machine learning model to be similar to the teacher machine learning model. ;
Including, OOD object detection method.
제1항에 있어서,
상기 학생 기계학습 모델을 학습시키는 단계는,
상기 교사 기계학습 모델의 특징 출력 레이어(penultimate layer)의 제1 특징 벡터값을 추출하는 단계;
상기 학생 기계학습 모델의 특징 출력 레이어의 제2 특징 벡터값을 추출하는 단계; 및
상기 제2 특징 벡터값을 프로젝션 레이어(projection layer)에 제공하여, 상기 제1 특징 벡터값의 크기와 상기 제2 특징 벡터값의 크기를 매칭시키는 단계;
를 포함하는, OOD 객체 탐지 방법.
According to claim 1,
The step of learning the student machine learning model,
extracting a first feature vector value of a penultimate layer of the teacher machine learning model;
extracting a second feature vector value of a feature output layer of the student machine learning model; and
providing the second feature vector value to a projection layer to match the size of the first feature vector value with the size of the second feature vector value;
Including, OOD object detection method.
제5항에 있어서,
상기 프로젝션 레이어는 완전 연결 레이어(fully connected layer)를 포함하는, OOD 객체 탐지 방법.
According to claim 5,
The projection layer includes a fully connected layer, OOD object detection method.
제1항 내지 제6항 중 어느 한 항에 따른 방법을 컴퓨터에서 실행하기 위해 컴퓨터 판독 가능한 기록 매체에 저장된 컴퓨터 프로그램.A computer program stored in a computer-readable recording medium to execute the method according to any one of claims 1 to 6 on a computer.
KR1020210123805A 2021-09-16 2021-09-16 Out-of-distribution object detection method and system KR102567558B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020210123805A KR102567558B1 (en) 2021-09-16 2021-09-16 Out-of-distribution object detection method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020210123805A KR102567558B1 (en) 2021-09-16 2021-09-16 Out-of-distribution object detection method and system

Publications (2)

Publication Number Publication Date
KR20230040541A true KR20230040541A (en) 2023-03-23
KR102567558B1 KR102567558B1 (en) 2023-08-16

Family

ID=85799084

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020210123805A KR102567558B1 (en) 2021-09-16 2021-09-16 Out-of-distribution object detection method and system

Country Status (1)

Country Link
KR (1) KR102567558B1 (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021165053A1 (en) * 2020-02-21 2021-08-26 Koninklijke Philips N.V. Out-of-distribution detection of input instances to a model
US20210365771A1 (en) * 2020-05-21 2021-11-25 International Business Machines Corporation Out-of-distribution (ood) detection by perturbation

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021165053A1 (en) * 2020-02-21 2021-08-26 Koninklijke Philips N.V. Out-of-distribution detection of input instances to a model
US20210365771A1 (en) * 2020-05-21 2021-11-25 International Business Machines Corporation Out-of-distribution (ood) detection by perturbation

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
G. Hinton et al., ‘Distilling the Knowledge in a Neural Network,’ arXiv:1503.02353v1 (2015.03.09.) 1부.* *

Also Published As

Publication number Publication date
KR102567558B1 (en) 2023-08-16

Similar Documents

Publication Publication Date Title
US20230016365A1 (en) Method and apparatus for training text classification model
CN106649542B (en) System and method for visual question answering
Cyganek One-class support vector ensembles for image segmentation and classification
US10275719B2 (en) Hyper-parameter selection for deep convolutional networks
US11640518B2 (en) Method and apparatus for training a neural network using modality signals of different domains
US9613298B2 (en) Tracking using sensor data
US9519868B2 (en) Semi-supervised random decision forests for machine learning using mahalanobis distance to identify geodesic paths
US11651214B2 (en) Multimodal data learning method and device
EP3136295A1 (en) Method and device for processing an image of pixels, corresponding computer program product and computer-readable medium
US11308367B2 (en) Learning apparatus, system for generating captured image classification apparatus, apparatus for generating captured image classification apparatus, learning method, and program
US11238631B2 (en) Align-to-ground, weakly supervised phrase grounding guided by image-caption alignment
US11915500B2 (en) Neural network based scene text recognition
US10372743B2 (en) Systems and methods for homogeneous entity grouping
CN113298152B (en) Model training method, device, terminal equipment and computer readable storage medium
US20210027020A1 (en) System and method for explaining and compressing deep learning natural language understanding (nlu) models
US20220335209A1 (en) Systems, apparatus, articles of manufacture, and methods to generate digitized handwriting with user style adaptations
CN112036457A (en) Method and device for training target detection model and target detection method and device
EP4060526A1 (en) Text processing method and device
WO2023232031A1 (en) Neural network model training method and apparatus, electronic device and medium
KR102567558B1 (en) Out-of-distribution object detection method and system
US11586902B1 (en) Training network to minimize worst case surprise
US11854528B2 (en) Method and system for detecting unsupported utterances in natural language understanding
KR102662978B1 (en) Real-world object recognition method and device
KR102533512B1 (en) Personal information object detection method and device
CN112052724A (en) Finger tip positioning method and device based on deep convolutional neural network

Legal Events

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