Patch feature learning method for anomaly detection, and system therefor
The patch feature learning method for anomaly detection improves the efficiency and accuracy of identifying abnormal patterns in images by reducing variance and increasing differences between patch features, addressing the limitations of existing methods in high-dimensional image data.
Patent Information
- Application Number
- PCT/KR2024/003119
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-03-09
- Filing Date
- 2024-03-11
- Publication Date
- 2024-09-12
AI Technical Summary
Anomaly detection in high-dimensional image data is cost-ineffective and has low discrimination power for local patterns, especially when labeled data is limited or rare, making it challenging to achieve accurate and efficient outlier detection.
A patch feature learning method and system that performs patch feature-based learning for a pretrained model, reducing variance among similar patch features and increasing differences between heterogeneous ones, using a computing system with a memory and processor to acquire feature maps, extract patch features, perform feature representation learning, and reconstruct patch features for anomaly detection.
This approach enhances the accuracy and efficiency of anomaly detection, improving task processing performance even in limited learning environments by effectively identifying abnormal patterns in images.
Smart Images

Figure KR2024003119_12092024_PF_FP_ABST
Abstract
Description
Patch feature learning method and system for anomaly detection
[0001] The present invention relates to a method and system for learning patch features for anomaly detection. More specifically, the present invention relates to a method and system for performing patch feature-based learning on a pretrained model based on an image data set for anomaly detection targets.
[0002] Anomaly detection can refer to the process of identifying abnormal patterns, outliers, and / or exceptions from given data.
[0003] That is, anomaly detection can be a process of detecting components that deviate from the properties of normal data.
[0004] Systems that implement such anomaly detection are actively used in various application fields where the identification of abnormal patterns is important, such as process monitoring, security intrusion detection, fraud identification, and / or medical diagnosis.
[0005] However, in cases where the data required for model learning for outlier detection is relatively rare or diverse and insufficient, such as when it is difficult to collect abnormal data containing a certain defect, when labeled data is limited, or when additional training is desired on a large amount of data without labels, there is a problem that there is a limit to the performance of task processing for anomaly detection based on this.
[0006] In addition, in the past, anomaly detection based on specific images was actively performed, especially in the field of vision inspection. However, in the case of such images, since they belong to high-dimensional data, there is a problem that data processing and computation costs are not efficient when all data for the entire image is used at once to detect outliers.
[0007] In addition, in most cases, outliers are observed as abnormal patterns that appear in various sizes and shapes in a small part of the image, and the conventional method has a problem in that the discrimination ability for such local patterns on the entire image is very low.
[0008] Therefore, there is a need to develop new technologies that can further improve the accuracy and efficiency of anomaly detection, even under limited environmental conditions, while also improving task processing performance accordingly.
[0009] One embodiment of the present invention provides a patch feature learning method and system for anomaly detection, which performs patch feature-based learning for a predetermined pretrained model based on an image data set for an anomaly detection target.
[0010] At this time, one embodiment of the present invention is to provide a patch feature learning method and system for anomaly detection that performs patch feature-based learning to reduce the dispersion of mutually similar patch features and increase the difference between mutually heterogeneous patch features.
[0011] However, the technical problems to be solved by the present invention and embodiments of the present invention are not limited to the technical problems described above, and other technical problems may exist.
[0012] As a technical means for achieving the above-described technical task, a patch feature learning method for anomaly detection according to an embodiment of the present invention is a method for a computing system including a memory and a processor to perform patch feature learning for anomaly detection, the method comprising: obtaining a feature map according to a first image data set; obtaining a plurality of patch features based on local data within a predetermined image based on the obtained feature map; performing feature representation learning based on the obtained plurality of patch features; obtaining a reconpatch feature according to the performed feature representation learning; and performing anomaly detection based on the obtained reconpatch feature, wherein the reconpatch feature is data obtained by reconstructing a feature representation according to the plurality of patch features based on a similarity calculated based on the plurality of patch features.
[0013] In another aspect, the patch feature is a feature extracted from a patch that specifies at least a portion of an area within a given image.
[0014] In another aspect, the step of obtaining the plurality of patch features includes one of the steps of obtaining a plurality of patches according to a predetermined patch size based on a first image included in the first image data set and extracting a feature for each of the obtained plurality of patches, and the step of extracting a feature for the entire first image included in the first image data set and dividing the entire extracted feature into a predetermined patch size.
[0015] In another aspect, the step of performing feature representation learning based on the above plurality of patch features includes a step of performing semi-supervised concept learning.
[0016] In another aspect, the step of performing feature representation learning based on the plurality of patch features includes the step of performing the learning based on a first network, which is a neural network that calculates similarity between predetermined features, and a second network, which is a neural network that implements the feature representation learning.
[0017] In another aspect, the first network and the second network each include a feature representation layer, which is a layer that reconstructs a feature representation according to a given feature, and a space projection layer, which is a layer that projects a feature representation according to a given feature into a feature representation space.
[0018] In another aspect, the step of performing feature representation learning based on the plurality of patch features further includes the step of gradually distilling data according to parameters of the second network into data according to parameters of the first network based on an exponential moving average algorithm.
[0019] In another aspect, the step of performing feature representation learning based on the plurality of patch features further includes the step of projecting a first patch feature pair including a predetermined first patch feature and a predetermined second patch feature into the feature representation space, and the step of calculating pairwise similarity, which is data measuring similarity between the first patch feature and the second patch feature, based on the first patch feature pair projected into the feature representation space.
[0020] In another aspect, the step of performing feature representation learning based on the plurality of patch features further includes the step of calculating contextual similarity, which is data measuring bidirectional similarity between the K nearest neighbors for the first patch feature and the K nearest neighbors for the second patch feature, based on the first patch feature pair projected into the feature representation space.
[0021] In another aspect, the step of performing feature representation learning based on the plurality of patch features further includes the step of calculating integrated similarity, which is data obtained by linearly combining the calculated pairwise similarity and the context similarity.
[0022] In another aspect, the step of performing feature representation learning based on the plurality of patch features further includes the step of training the second network based on the calculated integrated similarity.
[0023] In another aspect, the step of training the second network based on the integrated similarity includes the step of training the second feature representation layer to map the first patch feature and the second patch feature to be mutually distant or close to each other on the feature representation space according to the integrated similarity.
[0024] In another aspect, the step of performing the anomaly detection includes the steps of obtaining a first test sample image, obtaining the reconpatch feature according to the obtained first test sample image, and performing the anomaly detection based on the reconpatch feature according to the feature representation learning and the reconpatch feature according to the first test sample image.
[0025] In another aspect, the step of performing the anomaly detection further includes the step of generating an anomaly score map based on the similarity between the reconpatch feature according to the feature representation learning and the reconpatch feature according to the first test sample image, and the step of performing the anomaly detection based on the generated anomaly score map.
[0026] In another aspect, a patch feature learning method for anomaly detection according to an embodiment of the present invention further includes a step of coreset sampling a reconpatch feature according to the feature representation learning, and a step of performing the anomaly detection based on the coreset sampled reconpatch feature.
[0027] Meanwhile, a patch feature learning system for anomaly detection according to an embodiment of the present invention comprises: at least one memory; and at least one processor for performing patch feature learning for anomaly detection by reading out at least one application stored in the memory; wherein the processor obtains a feature map according to a first image data set, obtains a plurality of patch features based on local data within a predetermined image based on the obtained feature map, performs feature representation learning based on the obtained plurality of patch features, obtains a reconstructed feature representation according to the plurality of patch features, which is data obtained by reconstructing feature representations according to the plurality of patch features based on similarities calculated based on the plurality of patch features, based on the performed feature representation learning, and performs anomaly detection based on the obtained reconpatch features.
[0028] On the other hand, a computing device according to an embodiment of the present invention includes at least one memory; and at least one processor that reads out at least one application stored in the memory and performs patch feature learning for anomaly detection; wherein instructions of the processor include instructions for performing the steps of: obtaining a feature map according to a first image data set; obtaining a plurality of patch features based on local data in a predetermined image based on the obtained feature map; performing feature representation learning based on the obtained plurality of patch features; obtaining a ReConPatch Feature, which is data obtained by reconstructing feature representations according to the plurality of patch features based on similarities calculated based on the plurality of patch features, according to the performed feature representation learning; and performing anomaly detection based on the obtained ReConPatch Feature.
[0029] A method and system for learning patch features for anomaly detection according to one embodiment of the present invention performs patch feature-based learning for a predetermined pretrained model based on an image data set for an anomaly detection target, thereby performing more efficient data processing and providing an anomaly detection model that further improves task processing performance and quality for anomaly detection.
[0030] In addition, the patch feature learning method and system for anomaly detection according to one embodiment of the present invention performs patch feature-based learning that reduces the variance of mutually similar patch features and increases the difference between mutually heterogeneous patch features, thereby improving the accuracy and efficiency of anomaly detection even in a limited learning environment, and at the same time, enhancing task processing performance accordingly.
[0031] However, the effects that can be obtained from the present invention are not limited to the effects mentioned above, and other effects that are not mentioned can be clearly understood from the description below.
[0032] FIG. 1 illustrates an example block diagram of a computing system implementing a patch feature training service for anomaly detection according to one embodiment of the present invention.
[0033] FIG. 2 illustrates an example block diagram of a computing device implementing a patch feature training service for anomaly detection according to one embodiment of the present invention.
[0034] FIG. 3 illustrates an example block diagram from another aspect for a computing device implementing a patch feature training service for anomaly detection according to one embodiment of the present invention.
[0035] FIG. 4 is an example of a block flow diagram for explaining an outlier detection model according to one embodiment of the present invention.
[0036] FIG. 5 is a flowchart illustrating a patch feature learning method for anomaly detection according to one embodiment of the present invention.
[0037] FIG. 6 is a flowchart illustrating a feature representation learning method based on patch features according to one embodiment of the present invention.
[0038] FIG. 7 is an example of a drawing showing an example of measuring similarity between patch features according to one embodiment of the present invention.
[0039] FIG. 8 is an example of a drawing showing an application example of a ReConPatch Process according to one embodiment of the present invention.
[0040] The present invention is capable of various modifications and embodiments. Therefore, specific embodiments are illustrated in the drawings and described in detail in the detailed description. The effects and features of the present invention, as well as the methods for achieving them, will become clear with reference to the embodiments described in detail below together with the drawings. However, the present invention is not limited to the embodiments disclosed below and can be implemented in various forms. In the following embodiments, the terms "first," "second," etc. are not used in a limiting sense but are used for the purpose of distinguishing one component from another. Furthermore, the singular expression includes the plural expression unless the context clearly indicates otherwise. Furthermore, terms such as "include" or "have" indicate the presence of a feature or component described in the specification, and do not preemptively exclude the possibility that one or more other features or components may be added. Furthermore, in the drawings, the sizes of components may be exaggerated or reduced for convenience of explanation. For example, the size and thickness of each component shown in the drawings are arbitrarily shown for convenience of explanation, and thus the present invention is not necessarily limited to what is shown.
[0041] Hereinafter, embodiments of the present invention will be described in detail with reference to the attached drawings. When describing with reference to the drawings, identical or corresponding components are given the same reference numerals and redundant descriptions thereof will be omitted.
[0042]
[0043] [An exemplary system providing a patch feature training service for anomaly detection]
[0044] Hereinafter, an exemplary system for implementing a patch feature training service for anomaly detection, which performs patch feature-based learning for a pretrained model based on an image data set for anomaly detection targets, is described in detail with reference to the attached drawings.
[0045] FIG. 1 illustrates an example block diagram of a computing system implementing a patch feature training service for anomaly detection according to one embodiment of the present invention.
[0046] Referring to FIG. 1, a computing system (1000) implementing a patch feature training service for anomaly detection of the present invention includes a user computing device (110), a server computing system (130), and a training computing system (150), and the devices are capable of communicating via a network (170).
[0047] The patch feature learning method for anomaly detection according to an embodiment of the present invention may 1) be implemented and provided locally by a user computing device (110), 2) be implemented and provided in the form of a web service by a server computing system (130) communicating with the user computing device (110), or 3) be implemented and provided by the user computing device (110) and the server computing system (130) in connection with each other.
[0048] At this time, in the embodiment, the user computing device (110) and / or the server computing system (130) can train the machine learning model (120 and / or 140) through interaction with a training computing system (150) communicatively connected via a network (170). The training computing system (150) may be separate from the server computing system (130) or may be part of the server computing system (130).
[0049] And at this time, the artificial intelligence model (in the embodiment, an outlier detection model, etc.) can be 1) trained directly locally by the user computing device (110), 2) trained by the server computing system (130) and the user computing device (110) interacting with each other through a network (170), and 3) trained by a separate training computing system (150) using various training techniques and learning techniques. And the artificial intelligence model trained by the training computing system (150) can be implemented in a manner of being provided / updated by transmitting it to the user computing device (110) and / or the server computing system (130) through the network (170).
[0050] In some embodiments, the training computing system (150) may be part of a server computing system (130) or part of a user computing device (110).
[0051] The user computing device (110) may include any type of computing device, such as a smart phone, a mobile phone, a digital broadcasting device, a personal digital assistant (PDA), a portable multimedia player (PMP), a desktop, a wearable device, an embedded computing device, and / or a tablet PC.
[0052] Such a user computing device (110) includes at least one processor (111) and memory (112). Here, the processor (111) may be composed of at least one or a plurality of electrically connected processors among a central processing unit (CPU), a graphics processing unit (GPU), application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, micro-controllers, microprocessors, and / or other electrical units for performing functions.
[0053] The memory (112) may include one or more non-transitory / transitory computer-readable storage media, such as RAM, ROM, EEPROM, EPROM, flash memory devices, magnetic disks, and combinations thereof, and may include web storage of a server that performs a memory storage function on the Internet. The memory (112) may store data (113) and commands (114) necessary for the at least one processor (111) to perform functional operations, such as training an artificial intelligence model or executing anomaly detection using an artificial intelligence model.
[0054] In one embodiment, the user computing device (110) may store at least one machine learning model (120).
[0055] In detail, the machine learning model (120) may be various machine learning models such as multiple neural networks (e.g., deep neural networks) or other types of machine learning models including nonlinear models and / or linear models, and may be composed of a combination thereof.
[0056] At this time, the neural network may include at least one of feed-forward neural networks, recurrent neural networks (e.g., long short-term memory recurrent neural networks), convolutional neural networks, and / or other types of neural networks.
[0057] In one embodiment, the user computing device (110) may receive at least one machine learning model (120) from a server computing system (130) via a network (170), store the model in a memory (112), and then execute the stored machine learning model (120) by a processor (111) to perform outlier detection, etc.
[0058] In another embodiment, the server computing system (130) may include at least one machine learning model (140), perform operations through the machine learning model (140), and communicate data related thereto with the user computing device (110) to provide a patch feature training service for anomaly detection to the user.
[0059] For example, a user computing device (110) can perform a patch feature training service for anomaly detection by having a server computing system (130) provide output for a user's input using a machine learning model (140) via the web.
[0060] Additionally, the artificial intelligence model may be implemented in such a way that at least some of the machine learning models (120 and / or 140) are executed on a user computing device (110) and the rest are executed on a server computing system (130).
[0061] In addition, the user computing device (110) may include at least one input component (121) that detects a user's input. For example, the user input component (121) may include a touch sensor (e.g., a touch screen and / or a touch pad, etc.) that detects a touch of a user's input medium (e.g., a finger or a stylus), an image sensor that detects a user's motion input, a microphone, a button, a mouse, and / or a keyboard that detects a user's voice input, etc. In addition, the user input component (121) may include an interface and an external controller when receiving an input to an external controller (e.g., a mouse and / or a keyboard, etc.) through an interface.
[0062] The server computing system (130) includes at least one processor (131) and memory (132). Here, the processor (131) may be composed of at least one or a plurality of electrically connected processors among a central processing unit (CPU), a graphics processing unit (GPU), application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, micro-controllers, microprocessors, and / or other electrical units for performing functions.
[0063] And the memory (132) may include one or more non-transitory / transitory computer-readable storage media such as RAM, ROM, EEPROM, EPROM, flash memory devices, magnetic disks, etc., and combinations thereof. This memory (132) may store data (133) and instructions (134) necessary for the processor (131) to perform functional operations such as training an artificial intelligence model or executing outlier detection using an artificial intelligence model.
[0064] In one embodiment, the server computing system (130) may be implemented to include at least one computing device. For example, the server computing system (130) may be implemented to operate multiple computing devices according to a sequential computing architecture, a parallel computing architecture, or a combination thereof. Additionally, the server computing system (130) may include multiple computing devices connected via a network (170).
[0065] Additionally, the server computing system (130) may store at least one machine learning model (140). For example, the server computing system (130) may include a neural network and / or other multi-layer nonlinear model as the machine learning model (140). Exemplary neural networks may include feedforward neural networks, deep neural networks, recurrent neural networks, and convolutional neural networks.
[0066] The training computing system (150) includes at least one processor (151) and memory (152). Here, the processor (151) may be composed of at least one or a plurality of electrically connected processors among a central processing unit (CPU), a graphics processing unit (GPU), application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, micro-controllers, microprocessors, and / or other electrical units for performing functions.
[0067] And the memory (152) may include one or more non-transitory / transitory computer-readable storage media such as RAM, ROM, EEPROM, EPROM, flash memory devices, magnetic disks, etc., and combinations thereof. This memory (152) may store data (153) and instructions (154) necessary for the processor (151) to perform learning of an artificial intelligence model, etc.
[0068] For example, the training computing system (150) may include a model trainer (160) that trains a machine learning model (120 and / or 140) stored in the user computing device (110) and / or server computing system (130) using various training or learning techniques, such as backpropagation of errors (according to the framework illustrated in FIG. 3).
[0069] For example, such a model trainer (160) may perform updates to one or more parameters of a machine learning model (120 and / or 140) in a backpropagation manner based on a defined loss function.
[0070] In some implementations, performing backward propagation of errors may include performing truncated backpropagation through time. The model trainer (160) may perform a number of generalization techniques (e.g., weight reduction, dropout, and / or knowledge distillation) to improve the generalization ability of the trained machine learning model (120 and / or 140).
[0071] In particular, the model trainer (160) can train the machine learning model (120 and / or 140) based on a series of training data (161). Here, the training data (161) can include data in different formats, such as, for example, images, audio samples, and / or text. Examples of image types that can be used can include video frames, LiDAR point clouds, X-ray images, computed tomography scans, hyperspectral images, and / or various other forms of images.
[0072] Such training data (161) may be provided by a user computing device (110) and / or a server computing system (130). When the training computing device trains a machine learning model (120 and / or 140) on specific data of the user computing device (110), the machine learning model (120 and / or 140) may be characterized as a personalized model.
[0073] And the model trainer (160) includes computer logic utilized to provide the desired function.
[0074] Additionally, the model trainer (160) may be implemented as hardware, firmware, and / or software that controls a general-purpose processor. In one implementation, the model trainer (160) includes a program file stored in a storage device, which may be loaded into a memory (152) and executed by one or more processors (151). In another implementation, the model trainer (160) includes one or more sets of computer-executable data (153) and instructions (154) stored in a tangible computer-readable storage medium, such as a RAM hard disk or an optical or magnetic medium.
[0075] The network (170) includes, but is not limited to, a 3rd Generation Partnership Project (3GPP) network, a Long Term Evolution (LTE) network, a World Interoperability for Microwave Access (WIMAX) network, the Internet, a Local Area Network (LAN), a Wireless Local Area Network (Wireless LAN), a Wide Area Network (WAN), a Personal Area Network (PAN), a Bluetooth network, a satellite broadcasting network, an analog broadcasting network, and / or a Digital Multimedia Broadcasting (DMB) network.
[0076] In general, communication over a network (170) may be performed using any type of wired and / or wireless connection, using various communication protocols (e.g., TCP / IP, HTTP, SMTP, and / or FTP), encodings or formats (e.g., HTML and / or XML), and / or protection schemes (e.g., VPN, Secure HTTP, and / or SSL).
[0077] FIG. 2 illustrates an example block diagram of a computing device implementing a patch feature training service for anomaly detection according to one embodiment of the present invention.
[0078] As shown in FIG. 2, the computing device (100) included in the user computing device (110), the server computing system (130), and the training computing system (150) includes a plurality of applications (e.g., Application 1 to Application N). Each application may include a machine learning library and one or more machine learning models. For example, the applications may include an image processing (e.g., Detection, Classification, and / or Segmentation, etc.) application, a text messaging application, an email application, a dictation application, a virtual keyboard application, a browser application, and / or a chat-bot application.
[0079] In an embodiment, the computing device (100) may include a model trainer (160) for training an artificial intelligence model, and may store and operate the trained artificial intelligence model to provide output data according to predetermined input data (e.g., image data, etc.).
[0080] Each application of the computing device (100) may communicate with a number of other components of the computing device (100), such as, for example, one or more sensors, a context manager, a device state component, and / or additional components. In one embodiment, each application may communicate with each device component using an API (e.g., a public API). In one embodiment, the API used by each application may be specific to that application.
[0081] FIG. 3 illustrates an example block diagram of another aspect of a computing device (100) implementing a patch feature training service for anomaly detection according to one embodiment of the present invention.
[0082] Referring to FIG. 3, a computing device (300) includes a plurality of applications (e.g., Application 1 to Application N). Each application may communicate with a central intelligence layer. For example, the applications may include an image processing application, a text messaging application, an email application, a dictation application, a virtual keyboard application, and / or a browser application. In one embodiment, each application may communicate with the central intelligence layer (and models stored therein) using an API (e.g., a common API across all applications).
[0083] The central intelligence layer may include multiple machine learning models. For example, as illustrated in FIG. 3, at least some of the machine learning models may be provided to each application and managed by the central intelligence layer. In other implementations, two or more applications may share a single machine learning model. For example, in some implementations, the central intelligence layer may provide a single model to all applications. In some implementations, the central intelligence layer may be included within the operating system of the computing device (300) or implemented differently.
[0084] The central intelligence layer may communicate with a central device data layer. The central device data layer may be a centralized data repository for the computing device (300). As illustrated in FIG. 3, the central device data layer may communicate with a number of other components of the computing device (300), such as, for example, one or more sensors, a context manager, a device state component, and / or additional components. In some implementations, the central device data layer may communicate with each device component using an API (e.g., a private API).
[0085] The techniques described herein may refer to servers, databases, software applications, and other computer-based systems, as well as actions taken and information transmitted to or from such systems. It will be appreciated that the inherent flexibility of computer-based systems allows for a wide range of possible configurations, combinations, and division of labor and functionality between and among components. For example, the processes described herein may be implemented using a single device or component, or multiple devices or components operating in combination. Databases and applications may be implemented on a single system or in a distributed system across multiple systems. Distributed components may operate sequentially or in parallel.
[0086]
[0087] [Outlier Detection Model (ODM)]
[0088] FIG. 4 is an example of a block flow diagram for explaining an outlier detection model (ODM) according to one embodiment of the present invention.
[0089] Referring to FIG. 4, an outlier detection model (ODM) according to an embodiment of the present invention may mean an image deep learning model that performs anomaly detection based on a given input image and classifies and / or recognizes the image based on the anomaly detection.
[0090] Here, for reference, anomaly detection may refer to a process of identifying abnormal patterns, outliers, and / or exceptions from specific data.
[0091] That is, anomaly detection can be a process of detecting components that deviate from the properties of normal data.
[0092] As an example, anomaly detection can be implemented based on a method such as grouping certain data into clusters and considering points that deviate from the clusters as outliers.
[0093] Therefore, in an embodiment, an outlier detection model (ODM) can determine whether a given input image contains a specific abnormal attribute, and classify and / or recognize the image based on the determination result.
[0094] In detail, in an embodiment, the outlier detection model (ODM) may include a first network (TN: Teacher Network) and a second network (SN: Student Network).
[0095] In more detail, the first network (TN) according to the embodiment may mean a neural network that calculates similarity between predetermined features (in the embodiment, patch features).
[0096] In an embodiment, such a first network (TN) comprises a first feature representation layer ( ) and the first spatial projection layer ( ) may be included.
[0097] Here, the feature representation layer according to the embodiment may mean a layer that reconstructs (adjusts) the feature in a direction to improve the performance of the feature representation according to a given feature (in the embodiment, a patch feature).
[0098] To this end, the feature representation layer can be trained to extract meaningful features from a given feature (in the example, a patch feature) with higher accuracy and reconstruct (adjust) the feature based on the extracted meaningful features.
[0099] In addition, the spatial projection layer according to the embodiment may mean a layer that projects a feature expression according to a given feature (in the embodiment, a patch feature) into a given feature expression space.
[0100] In embodiments, such spatial projection layers can be trained to project feature representations according to given features (in embodiments, patch features) into a feature representation space that can more effectively apply the goals of model learning.
[0101] Meanwhile, the second network (SN) according to the embodiment may mean a neural network that implements feature representation learning.
[0102] For reference, feature representation learning can refer to the process by which a deep learning model automatically detects and learns useful features from given data.
[0103] Through feature representation learning, deep learning models can effectively encode useful information contained in data to generate meaningful features that can be used in various deep learning tasks, and can understand the complex structure and patterns of data and make more accurate predictions based on this.
[0104] In the embodiment, the second network (SN) implementing the above feature representation learning includes a second feature representation layer ( ) and the second spatial projection layer ( ) may be included.
[0105] At this time, the first feature expression layer according to the embodiment ( ) and the second feature representation layer ( ) and the first spatial projection layer ( ) and the second spatial projection layer ( ) is intended to distinguish and explain the feature representation layer and spatial projection layer included in the first network (TN) from the feature representation layer and spatial projection layer included in the second network (SN), so the description of the feature representation layer and spatial projection layer of the second network (SN) applies to the description of the feature representation layer and spatial projection layer of the first network (TN) described above.
[0106] In addition, a more detailed description of the first network (TN) and the second network (SN) according to the embodiment will be described in the patch feature learning method for anomaly detection described later.
[0107] On the other hand, in the embodiment, the outlier detection model (ODM) can perform various functional operations required for a patch feature training service for anomaly detection in conjunction with a pre-trained model (hereinafter, “pre-trained model”) that performs concept learning.
[0108] Here, the pre-trained model according to the embodiment may be an image deep-learning model pre-trained to perform concept learning based on a predetermined training data set (e.g., a predetermined natural image data set and / or a predetermined normal image data set, etc.).
[0109] For reference, concept learning can mean the process of inferring general rules, concepts, or patterns from given data and classifying them.
[0110] That is, in the embodiment, the pre-trained model may be an image deep learning model that takes a predetermined image as input data, learns common features of objects or patterns in the input image, groups image components with similar features based on the common features, and supports classifying or recognizing a specific image based on the common features.
[0111] Specifically, the pre-trained model can: 1) extract a feature map for a given input image.
[0112] In detail, the pre-trained model can automatically extract feature maps based on the raw pixel data of the input image using a given image deep learning neural network (e.g., a convolutional neural network (CNN)).
[0113] These feature maps can represent various visual properties of the image, such as edges, colors, and / or textures.
[0114] Additionally, the pre-trained model can perform clustering based on 2) feature space.
[0115] In detail, the pre-trained model can classify input images and / or objects within the input images into groups with similar features based on the feature maps extracted as above.
[0116] As an example, the pre-trained model can classify the extracted feature maps according to the feature space using a predetermined clustering algorithm (e.g., K-means, DBSCAN, and / or a hierarchical clustering algorithm, etc.) or dimensionality reduction algorithm (e.g., t-SNE and / or UMAP, etc.).
[0117] Additionally, the pre-trained model can 3) assign a label to each cluster.
[0118] In other words, the pre-trained model can define a concept (hypothesis) representing each cluster and set it as a label for that cluster.
[0119] At this time, the pre-trained model can learn the features of images belonging to a specific concept or category by manually or semi-automatically assigning labels to each cluster.
[0120] Additionally, the pre-trained model can 4) verify and adjust the assigned hypothesis.
[0121] In detail, the pre-trained model can validate the initially defined concepts (clustered feature groups) as described above and adjust the corresponding hypotheses if necessary.
[0122] At this time, the pre-trained model can perform a process of detecting and improving incorrectly clustered data using new image data.
[0123] Additionally, the pre-trained model can repeat the process described above 5).
[0124] That is, the pre-trained model can be trained to continuously improve its clustered feature association concepts through new image data and additional feedback, and to classify or recognize images more accurately.
[0125] In this embodiment, the pre-trained model may be directly included in the outlier detection model (ODM), or may be implemented as a separate device and / or server from the outlier detection model (ODM).
[0126] In the following description, the pre-trained model is described as being implemented as an outlier detection model (ODM), but is not limited thereto.
[0127] In addition, in FIG. 4, the outlier detection model (ODM) is described as including the components described above to prevent blurring of features according to an embodiment of the present invention, but it is obvious to those skilled in the art that, depending on the embodiment, other general components may be further included in addition to the components illustrated in FIG. 4 or some of the components illustrated in FIG. 4 may be omitted.
[0128]
[0129] [Patch Feature Learning Method for Anomaly Detection]
[0130] Hereinafter, a method for implementing a patch feature training service for anomaly detection, in which a computing system (1000) according to an embodiment of the present invention performs patch feature-based learning for a predetermined pretrained model based on an image data set for an anomaly detection target, will be described in detail.
[0131] A patch feature learning method for anomaly detection of a computing system (1000) according to an embodiment of the present invention can improve the performance and quality of various anomaly detection-based services by using an outlier detection model (ODM) learned according to an embodiment of the present invention.
[0132] At this time, the patch feature learning method for anomaly detection of a computing system (1000) according to an embodiment of the present invention can effectively provide an outlier detection model (ODM) with improved performance by performing patch feature-based learning that reduces the variance of mutually similar patch features and increases the difference between mutually heterogeneous patch features.
[0133] Hereinafter, a patch feature learning method for anomaly detection according to an embodiment of the present invention will be described in more detail with reference to the attached drawings.
[0134] FIG. 5 is a flowchart illustrating a patch feature learning method for anomaly detection according to one embodiment of the present invention.
[0135] Referring to FIGS. 4 and 5, a patch feature learning method for anomaly detection according to an embodiment of the present invention comprises the steps of: (S101) obtaining a feature map based on a pretrained model; (S103) extracting a plurality of patch features based on the obtained feature map; (S105) performing feature representation learning based on the extracted plurality of patch features; (S107) obtaining a reconpatch feature according to the performed feature representation learning; (S109) performing coreset sampling based on the obtained reconpatch feature; (S111) obtaining a test sample image; (S113) obtaining a reconpatch feature according to the obtained test sample image; and (S114) performing outlier detection based on the obtained reconpatch feature. It may include step (S115).
[0136] Specifically, the computing system (1000) according to an embodiment of the present invention can obtain a feature map based on a pretrained model. (S101)
[0137] In detail, in an embodiment, a computing system (1000) can obtain a feature map according to an image data set (hereinafter, target image data set) for a predetermined outlier detection target through a model (i.e., a pre-trained model) pre-trained to perform concept learning.
[0138] Here, in other words, the pre-trained model according to the embodiment may be an image deep-learning model that is pre-trained to perform concept learning based on a predetermined training data set (e.g., a predetermined natural image data set and / or a predetermined normal image data set, etc.).
[0139] In other words, in the embodiment, the computing system (1000) can obtain a feature map based on a predetermined target image data set (i.e., an image data set including multiple images for a predetermined outlier detection target) in conjunction with a pre-trained model as described above.
[0140] In detail, in an embodiment, the computing system (1000) can input a target image data set (e.g., an image data set including multiple images of a given electronic circuit element, etc.) into a pre-training model.
[0141] In this way, the above pre-trained model can output a feature map according to the input target image data set and provide it to the computing system (1000).
[0142] Thus, the computing system (1000) can obtain a feature map according to the target image data set.
[0143] Additionally, in the embodiment, the computing system (1000) can extract multiple patch features based on the acquired feature map. (S103)
[0144] Here, a patch feature according to an embodiment may mean a feature extracted from a patch representing a small portion of a given image.
[0145] Specifically, the above patch may be a rectangular area representing a specific portion within a given image. Such a patch may be viewed as a subset containing a portion of the information of the entire image, and may primarily include local information or texture information.
[0146] Additionally, the above features are feature information extracted from a given image or patch, and can summarize or express important properties of the image (e.g., pattern, texture, color, and / or shape, etc.).
[0147] Therefore, the above patch feature may be data representing local properties within a given image in a patch unit.
[0148] In detail, in an embodiment, the computing system (1000) can extract multiple patch features based on the feature map obtained as above.
[0149] In more detail, as an embodiment, the computing system (1000) may divide a target training image (hereinafter, a target training image) included in a target image data set into units of a predetermined patch size before inputting the target training image into the above-described pre-training model.
[0150] And the computing system (1000) can input each segmented patch into a pre-training model to obtain a corresponding feature map for each patch.
[0151] In other words, the computing system (1000) can obtain a feature map for each patch by dividing the target training image into predetermined patch size units and then inputting the divided target training image into a pre-training model.
[0152] At this time, according to the embodiment, the computing system (1000) can perform coreset sampling on the acquired patch-specific feature map.
[0153] Here, for reference, core set sampling is one of the methods for efficiently processing large data sets, and can mean the process of extracting a set of representative samples that preserve the statistical characteristics or structure of the original data set as much as possible while reducing the size of the data set.
[0154] As an example, the computing system (1000) can perform core set sampling using an approximate algorithm method that selects some samples that can represent the entire data set while maintaining the characteristics of the original data set within a predetermined error range by considering the distribution of the given data.
[0155] Alternatively, the computing system (1000) may perform coreset sampling using an importance sampling method that assigns a sampling probability based on the importance of each given data point and preferentially selects data points with high importance.
[0156] Thus, the computing system (1000) can obtain a plurality of patch features for which coreset sampling has been performed.
[0157] Meanwhile, in another embodiment, the computing system (1000) can obtain a feature map for the entire area of the target training image (hereinafter, the entire feature map).
[0158] And the computing system (1000) can divide the entire acquired feature map into units of a predetermined patch size.
[0159] Thus, the computing system (1000) can extract multiple patch features from the target training image.
[0160] In this way, in the embodiment, the computing system (1000) can extract multiple patch features according to the target training image in at least one of the above-described methods.
[0161] At this time, according to an embodiment, the computing system (1000) can extract each patch feature by aggregating surrounding feature vectors within a specific patch size.
[0162] Alternatively, depending on the embodiment, the computing system (1000) may use the pixel values themselves within each patch as features.
[0163] Alternatively, depending on the embodiment, the computing system (1000) may use a statistical summary (e.g., mean, variance, and / or histogram, etc.) of pixel values within each patch as a feature.
[0164] Alternatively, according to an embodiment, the computing system (1000) may analyze texture patterns within each patch and use them as features. For example, the computing system (1000) may extract texture-based patch features using a Gabor filter, Local Binary Patterns (LBP), and / or Histogram of Oriented Gradients (HOG) technique.
[0165] Alternatively, according to an embodiment, the computing system (1000) may automatically learn and extract high-dimensional features within each patch using a deep learning algorithm such as a convolutional neural network (CNN) and use them as features.
[0166] In this way, the computing system (1000) in the embodiment can extract features at the patch level and support outlier detection using the same, thereby increasing processing efficiency in the data learning and analysis process and detecting abnormal local patterns that mainly appear in small parts within an image in more detail.
[0167] Additionally, in the embodiment, the computing system (1000) can perform feature representation learning based on a plurality of extracted patch features. (S105)
[0168] Here, again, feature representation learning can mean a process in which a deep learning model (in this example, an outlier detection model (ODM)) automatically detects and learns useful features from given data.
[0169] In detail, in an embodiment, the computing system (1000) can learn a feature representation for a plurality of patch features extracted as described above based on an outlier detection model (ODM) according to an embodiment of the present invention.
[0170] That is, the computing system (1000) can perform feature representation learning for an outlier detection model (ODM) that performs anomaly detection based on the extracted plurality of patch features.
[0171] Here, anomaly detection can mean a process of identifying abnormal patterns, outliers, and / or exceptions from specific data, i.e., a process of detecting components that deviate from the properties of normal data.
[0172] Accordingly, in an embodiment, the computing system (1000) can determine whether a given input image includes a specific abnormal property, and perform feature representation learning (e.g., concept learning, etc.) to classify and / or recognize the image based on the determination result based on the plurality of patch features described above.
[0173] At this time, in the embodiment, the computing system (1000) can perform the feature representation learning described above based on a semi-supervised learning method.
[0174] In other words, the computing system (1000) can build an outlier detection model (ODM) that implements semi-supervised anomaly detection based on semi-supervised learning.
[0175] Here, for reference, semi-supervised learning can mean a deep learning method that trains a model using not only data with labels (i.e., supervised data) but also data without labels (i.e., unsupervised data).
[0176] In general, when collecting basic data for building an anomaly detection system, it is difficult to obtain a sufficient amount of abnormal data (e.g., image data capturing the abnormal state of the target of anomaly detection) for smooth learning, and thus, there may be limitations in anomaly detection learning that aims to recognize abnormal states (outliers) of various shapes with high accuracy.
[0177] Therefore, in an embodiment of the present invention, a semi-supervised learning-based anomaly detection is implemented by constructing a pre-trained model (i.e., a pre-trained model) mainly using normal data (e.g., image data capturing the normal state of an anomaly detection target, etc.), and performing anomaly detection based on pseudo labels using the pre-trained model.
[0178] Here, for reference, the pseudo-label may refer to the label predicted by a model trained on unlabeled data.
[0179] These pseudo-labels can be used primarily when model training requires limited labeled data or additionally leverages large amounts of unlabeled data.
[0180] Through this, the computing system (1000) in the embodiment can easily achieve model learning and performance improvement for building an outlier detection process even when labeled data is relatively rare or diverse and thus limited.
[0181] In more detail, in an embodiment, the computing system (1000) can perform feature representation learning according to multiple patch features based on a first network (TN) and a second network (SN) of an outlier detection model (ODM).
[0182] FIG. 6 is a flowchart illustrating a feature representation learning method based on patch features according to one embodiment of the present invention.
[0183] Specifically, referring to FIG. 6, in the embodiment, the computing system (1000) can project any patch feature pair into a predetermined feature representation space. (S201)
[0184] In detail, in an embodiment, the computing system (1000) may include any first patch feature ( ) and the second patch feature ( ) can be projected into a feature representation space a patch feature pair (hereinafter, a first patch feature pair).
[0185] In an embodiment, a computing system (1000) projects a first patch feature ( ) is expressed as in [(a) of Mathematical Formula 1], and the second patch feature (projected into the feature representation space) is ) can be expressed as in [(b) of Mathematical Formula 1].
[0186] [Equation 1 - (a)]
[0187]
[0188] [Equation 1 - (b)]
[0189]
[0190] Additionally, in the embodiment, the computing system (1000) can calculate pairwise similarity based on patch feature pairs projected into a feature representation space. (S203)
[0191] Here, the pairwise similarity according to the embodiment means that the first patch feature ( ) and the second patch feature ( ) can mean data that measures the similarity between two groups.
[0192] That is, in the embodiment, the computing system (1000) includes a first patch feature ( ) and the second patch feature ( ) can be used to measure pairwise similarity, which indicates the similarity between them.
[0193] At this time, the computing system (1000) as an example can calculate the pairwise similarity described above according to [Mathematical Formula 2] below.
[0194] [Equation 2]
[0195]
[0196] FIG. 7 is an example of a drawing showing an example of measuring similarity between patch features according to one embodiment of the present invention.
[0197] However, referring to FIG. 7, the first patch feature ( included in any patch feature pair) ) and the second patch feature ( ) When measuring similarity only for the relationship, the pairwise similarity is the same, but the discrimination accuracy may be reduced in cases where the first feature and the second feature should be classified with different labels as in (a) of Fig. 7 (i.e., the more distant they are from each other, the closer they are to the correct label), and in cases where the first feature and the second feature should be classified with the same label as in (b) of Fig. 7 (i.e., the closer they are to each other, the closer they are to the correct label).
[0198] In other words, if we only measure pairwise similarity, the first patch feature ( ) for K nearest neighbors and the second patch feature ( ) for K nearest neighbors Label prediction may be performed without considering the mutual similarity in the group relationship including , which may result in poor accuracy.
[0199] Thus, in the embodiment, the computing system (1000) can calculate contextual similarity based on patch feature pairs projected into the feature representation space. (S205)
[0200] Here, the context similarity according to the embodiment means the first patch feature (included by any patch feature pair) ) for K nearest neighbors and the second patch feature ( ) for K nearest neighbors This may refer to data that measures the bidirectional similarity between two sides.
[0201] At this time, in the embodiment, the bidirectional similarity is the first patch feature ( ) for K nearest neighbors Features and 2nd Patch Features ( ) for K nearest neighbors It can be calculated based on the average similarity between features.
[0202] In detail, in an embodiment, the computing system (1000) can calculate the context similarity described above according to the K-Nearest Neighbors (K-NN) algorithm that performs prediction based on the distance between data points as in [Mathematical Formula 3] below and [Mathematical Formula 4].
[0203] [Equation 3]
[0204]
[0205] [Equation 4]
[0206]
[0207]
[0208] That is, in the embodiment, the computing system (1000) includes a first patch feature ( ) and the second patch feature ( ) can be used to calculate contextual similarity, which considers the more common nearest neighbors they share, the higher the contextual similarity.
[0209] In this way, the computing system (1000) has the first patch feature ( ) and the second patch feature ( ) can be learned and reflected in the pseudo-label prediction process.
[0210] That is, the computing system (1000) has the first patch feature ( ) and the second patch feature ( ) by extracting the closest K feature samples, calculating the context similarity that measures how many samples intersect, and using this together with the pairwise similarity to train an outlier detection model (ODM), the trained outlier detection model (ODM) can be made to extract better quality features.
[0211] Thus, the computing system (1000) can more accurately determine whether the pairwise similarity between the first feature and the second feature is the same but the first feature and the second feature should be classified into different labels (i.e., the more apart they are from each other, the closer they are to the correct label) or whether the first feature and the second feature should be classified into the same label (i.e., the closer they are to each other, the closer they are to the correct label), and reflect this in predicting the pseudo label. Accordingly, the computing system (1000) can directly improve the task processing quality and performance of an outlier detection model (ODM) that performs semi-supervised learning-based anomaly detection.
[0212] Returning again, in the embodiment, the computing system (1000) can also calculate integrated similarity based on the pairwise similarity and contextual similarity calculated as above. (S207)
[0213] Here, the integrated similarity according to the embodiment means the first patch feature ( ) and the second patch feature ( ) can mean data that combines pairwise similarity and contextual similarity.
[0214] In detail, in the embodiment, the computing system (1000) includes a first patch feature (included in the first patch feature pair) according to [Mathematical Formula 5] as follows: ) and the second patch feature ( ) can linearly combine pairwise similarity and contextual similarity.
[0215] [Equation 5]
[0216]
[0217]
[0218] At this time, the integrated similarity according to the embodiment is ' ' can be defined as a linear combination of two similarities satisfying .
[0219] Additionally, in the embodiment, the computing system (1000) can train a second network (SN) of an outlier detection model (ODM) based on the calculated integrated similarity. (S209)
[0220] That is, in the embodiment, the computing system (1000) can perform second network (SN) learning that implements feature representation learning using integrated similarity.
[0221] In detail, in the embodiment, the computing system (1000) calculates the integrated similarity for the first patch feature pair against the loss of the relaxation ( ) can be applied to train the second network (SN).
[0222] Here, the loss of relaxation according to the embodiment ( ) is as shown in [Mathematical Formula 6] below.
[0223] [Equation 6]
[0224]
[0225] Here, 'z' in [Equation 6] is ' ' is the embedding vector inferred by , 'N' is the number of mini-batch, i.e. patch instances, 'm' is the repelling margin, and ' ' may be a parameter that determines the weights of the attraction and repulsion loss terms.
[0226] FIG. 8 is an example of a drawing showing an application example of a ReConPatch Process according to one embodiment of the present invention.
[0227] At this time, referring to FIG. 8, in the embodiment, the computing system (1000) uses the integrated similarity to determine the first patch feature ( ) and the second patch feature ( ) is judged to be a patch feature pair (hereinafter, a positive feature pair) that should be classified with different labels, the first patch feature ( ) and the second patch feature ( ) in the feature representation space and map them to each other in the feature representation space. , embedding function) can be learned.
[0228] In contrast, in the embodiment, the computing system (1000) uses the integrated similarity to identify the first patch feature ( ) and the second patch feature ( ) are judged to be a patch feature pair (hereinafter, a voice feature pair) that should be classified with the same label, the first patch feature ( ) and the second patch feature ( ) to mutually access and map the second feature representation layer (() of the second network (SN) in the feature representation space. ), embedding function) can be learned.
[0229] In this way, in the embodiment, the computing system (1000) reduces the variance of similar patch features and increases the difference between heterogeneous patch features by using a second feature representation layer ( ) can be taught.
[0230] That is, the computing system (1000) has a second feature representation layer ( ) can be trained to extract arbitrary patch features in a form closer to the correct pseudo-label.
[0231] In this way, in the embodiment, the computing system (1000) includes a second feature representation layer ( ) can directly improve the feature representation performance of the outlier detection model (ODM) itself by learning to more accurately extract meaningful features from arbitrary patch features, and at the same time, improve the processing quality of various tasks (such as anomaly detection in the example) based on it.
[0232] In addition, in an embodiment, a computing system (1000) that trains a second network (SN) based on integrated similarity can train a first network (TN) of 6) an outlier detection model (ODM).
[0233] In detail, in the embodiment, the computing system (1000) calculates the parameters of the second network (SN) according to [Mathematical Formula 7] using the exponential moving average (EMA) method. ) according to the parameters of the first network (TN) ) can be gradually distilled into data.
[0234] [Equation 7]
[0235]
[0236] That is, in the embodiment, the computing system (1000) can perform learning of the first network (TN) of the outlier detection model (ODM) by gradually distilling information learned in the second network (SN) into the first network (TN) according to the above-described [Mathematical Formula 7].
[0237] At this time, in the embodiment, the computing system (1000) can perform the first network (TN) learning described above by further applying an update speed control variable, which is a variable that controls the speed of information distillation.
[0238] Thus, in the embodiment, the computing system (1000) can implement feature representation learning based on multiple patch features based on the first network (TN) and the second network (SN) of the outlier detection model (ODM).
[0239] In this way, in the embodiment, the computing system (1000) can perform a process (in the embodiment, a ReConPatch Process) of building a discriminant feature for outlier detection by distilling the main features of the data set for the outlier detection target into a pre-trained model based on semi-supervised learning as described above.
[0240] Thus, the computing system (1000) can build a high-performance outlier detection model (ODM) that is trained to classify features corresponding to a given patch level into correct pseudo-labels more accurately.
[0241] Accordingly, the computing system (1000) can directly and effectively improve the processing performance and quality of various tasks (anomaly detection, etc. in the embodiment) using the above-described outlier detection model (ODM).
[0242] Returning to Figure 5, in the embodiment, the computing system (1000) can also obtain a reconpatch feature based on the performed feature representation learning. (S107)
[0243] Here, the reconpatch feature according to the embodiment may mean a patch feature output through a feature representation layer (hereinafter, reconpatch layer) in which the above-described feature representation learning is performed.
[0244] That is, in the embodiment, the reconpatch feature is the second feature representation layer of the second network (SN) on which feature representation learning is performed. ) may be a patch feature output based on.
[0245] In detail, in an embodiment, the computing system (1000) can obtain reconpatch features for each target training image included in the aforementioned target image data set in conjunction with the reconpatch layer.
[0246] In other words, in the embodiment, the computing system (1000) can obtain a reconpatch feature data set (hereinafter, reconpatch learning data set) in a form that reduces the variance of similar patch features and increases the difference of heterogeneous patch features for a plurality of patch features extracted from each target training image.
[0247] Additionally, in the embodiment, the computing system (1000) can perform coreset sampling based on the acquired reconpatch features. (S109)
[0248] Here, in other words, core set sampling according to the embodiment can mean a process of extracting a set of representative samples that preserve the statistical characteristics or structure of the original data set as much as possible while reducing the size of the data set, as one of the methods for efficiently processing a large data set.
[0249] In detail, as an embodiment, the computing system (1000) can perform core set sampling using an approximate algorithm method that selects some samples that can represent the entire reconpatch learning data set while maintaining the characteristics of the original reconpatch learning data set within a predetermined error range by considering the distribution of the acquired reconpatch learning data set.
[0250] In another embodiment, the computing system (1000) may perform coreset sampling using an importance sampling method that assigns a sampling probability based on the importance of each piece of acquired reconpatch feature data and preferentially selects data points with high importance.
[0251] Thus, the computing system (1000) can obtain a reconpatch learning data set (hereinafter, reconpatch sampling data set) on which coreset sampling has been performed.
[0252] Additionally, in the embodiment, the computing system (1000) can store and manage the acquired reconpatch sampling data set on a predetermined database.
[0253] Through this, the computing system (1000) can detect outliers with high accuracy while reducing data processing costs.
[0254] Additionally, in the embodiment, the computing system (1000) can obtain a test sample image. (S111)
[0255] Here, the test sample image according to the embodiment may mean an image for which the presence or absence of an outlier is to be detected, i.e., image data that captures the target of outlier detection.
[0256] In detail, in an embodiment, the computing system (1000) may obtain a test sample image as described above based on a predetermined user input and / or connection with an external server.
[0257] Additionally, in the embodiment, the computing system (1000) can obtain a reconpatch feature according to the acquired test sample image. (S113)
[0258] In the following, any content that overlaps with the above description may be summarized or omitted.
[0259] In detail, in an embodiment, the computing system (1000) can input the acquired test sample images into a pre-trained model.
[0260] Additionally, in the embodiment, the computing system (1000) can obtain a feature map for a test sample image from a pre-trained model that has received the test sample image as input. A detailed description thereof follows the description of step S101 described above.
[0261] Additionally, in the embodiment, the computing system (1000) can extract multiple patch features based on the acquired feature map. A detailed description thereof follows the description of step S103 described above.
[0262] Additionally, in the embodiment, the computing system (1000) can input the extracted plurality of patch features into the reconpatch layer described above.
[0263] In this way, the reconpatch layer can output multiple reconpatch features according to multiple input patch features.
[0264] Thus, in the embodiment, the computing system (1000) can obtain a reconpatch feature data set (hereinafter, reconpatch target data set) in a form that reduces the dispersion of similar patch features and increases the difference of heterogeneous patch features for a plurality of input patch features.
[0265] Additionally, in the embodiment, the computing system (1000) can perform outlier detection based on the acquired reconpatch features. (S115)
[0266] That is, in the embodiment, the computing system (1000) can perform outlier detection for a test sample image based on a reconpatch sampling data set obtained based on each training image used for learning and a reconpatch target data set obtained based on a test sample image.
[0267] In other words, in the embodiment, the computing system (1000) can perform anomaly detection on a test sample image based on a reconpatch sampling data set and a reconpatch target data set.
[0268] In detail, in an embodiment, the computing system (1000) can calculate the similarity (hereinafter, outlier detection similarity) between at least a portion of the reconpatch sampling data set stored in the database and the reconpatch target data set.
[0269] Additionally, in the embodiment, the computing system (1000) can generate an anomaly score map based on the calculated outlier detection similarity.
[0270] Here, for reference, the anomaly score map may mean an indicator that indicates how much the state deviates from a given normal state based on the value (score) assigned by the model.
[0271] Additionally, in the embodiment, the computing system (1000) can determine that the higher the score according to the generated anomaly score map, the closer the test sample image is to an abnormal state, and the lower the score according to the anomaly score map, the closer the test sample image is to a normal state.
[0272] Thus, in the embodiment, the computing system (1000) can perform outlier detection on a test sample image.
[0273] As described above, in the embodiment of the present invention, the computing system (1000) performs a process (in the embodiment, a ReConPatch Process) of building a discriminant feature for outlier detection by distilling the main features of the data set for the outlier detection target into a pre-trained model based on semi-supervised learning as described above, and can perform anomaly detection using the outlier detection model (ODM) learned through this.
[0274] Thus, in the embodiment, the computing system (1000) can directly and significantly improve the outlier detection performance and quality based on the outlier detection model (ODM) according to the embodiment of the present invention.
[0275] Above, the patch feature learning method and system for anomaly detection according to one embodiment of the present invention performs patch feature-based learning for a predetermined pretrained model based on an image data set for an anomaly detection target, thereby performing more efficient data processing and providing an anomaly detection model (ODM) that further improves task processing performance and quality for anomaly detection.
[0276] In addition, the patch feature learning method and system for anomaly detection according to one embodiment of the present invention performs patch feature-based learning that reduces the variance of mutually similar patch features and increases the difference between mutually heterogeneous patch features, thereby improving the accuracy and efficiency of anomaly detection even in a limited learning environment, and at the same time, enhancing task processing performance accordingly.
[0277] Meanwhile, the embodiments of the present invention described above may be implemented in the form of program commands that can be executed through various computer components and recorded on a computer-readable recording medium. The computer-readable recording medium may include program commands, data files, data structures, etc., either singly or in combination. The program commands recorded on the computer-readable recording medium may be specially designed and configured for the present invention or may be known and available to those skilled in the art of computer software. Examples of computer-readable recording media include magnetic media such as hard disks, floppy disks, and magnetic tapes, optical recording media such as CD-ROMs and DVDs, magneto-optical media such as floptical disks, and hardware devices specifically configured to store and execute program commands, such as ROMs, RAMs, and flash memories. Examples of program commands include not only machine language codes generated by a compiler, but also high-level language codes that can be executed by a computer using an interpreter, etc. Hardware devices may be changed into one or more software modules to perform processing according to the present invention, and vice versa.
[0278] The specific implementations described in the present invention are exemplary embodiments and do not limit the scope of the present invention in any way. For the sake of brevity, descriptions of conventional electronic components, control systems, software, and other functional aspects of the systems may be omitted. In addition, the lines connecting or connecting members between components illustrated in the drawings are merely representative of functional connections and / or physical or circuit connections, and may be replaced or represented as various additional functional connections, physical connections, or circuit connections in an actual device. In addition, unless specifically mentioned as “essential,” “important,” etc., a component may not be absolutely necessary for the application of the present invention.
[0279] Although the detailed description of the present invention has been described with reference to preferred embodiments of the present invention, it will be understood by those skilled in the art or having ordinary knowledge in the art that various modifications and changes can be made to the present invention without departing from the spirit and technical scope of the present invention as set forth in the claims below. Accordingly, the technical scope of the present invention should not be limited to the contents described in the detailed description of the specification, but should be defined by the claims.
[0280] The form for carrying out the invention is the same as the best form for carrying out the invention described above.
[0281] The present invention relates to a patch feature learning method and system for anomaly detection, and is applicable to the artificial intelligence industry, and thus has industrial applicability.
Claims
1. A method for performing patch feature learning for anomaly detection in a computing system including memory and a processor, A step of obtaining a feature map according to a first image data set; A step of obtaining a plurality of patch features based on local data within a predetermined image based on the above-obtained feature map; A step of performing feature representation learning based on the acquired plurality of patch features; A step of obtaining a ReConPatch Feature according to the above-described feature representation learning; and A step of performing anomaly detection based on the above-obtained reconpatch feature is included, The above reconpatch feature is, Data that reconstructs feature expressions according to the plurality of patch features based on the similarity calculated based on the plurality of patch features. A patch feature learning method for anomaly detection.
2. In paragraph 1, The above patch features are: A feature extracted from a patch that specifies at least some area within a given image. A patch feature learning method for anomaly detection.
3. In paragraph 2, The step of obtaining the above multiple patch features is: A step of obtaining a plurality of patches according to a predetermined patch size based on the first image included in the first image data set and extracting features for each of the obtained plurality of patches; A step of extracting features for the entire first image included in the first image data set and dividing the entire extracted features into a predetermined patch size, comprising any one of the steps A patch feature learning method for anomaly detection.
4. In paragraph 1, The step of performing feature representation learning based on the above multiple patch features is: It includes a step of performing semi-supervised concept learning. A patch feature learning method for anomaly detection.
5. In paragraph 4, The step of performing feature representation learning based on the above multiple patch features is: A step of performing the learning based on a first network, which is a neural network that calculates similarity between predetermined features, and a second network, which is a neural network that implements the feature representation learning. A patch feature learning method for anomaly detection.
6. In paragraph 5, The first network and the second network, A feature expression layer, which is a layer that reconstructs feature expressions according to a given feature, and Each layer includes a space projection layer, which is a layer that projects feature expressions according to a given feature into a feature expression space. A patch feature learning method for anomaly detection.
7. In paragraph 6, The step of performing feature representation learning based on the above multiple patch features is: A step of gradually distilling data according to parameters of the second network into data according to parameters of the first network based on an exponential moving average algorithm is further included. A patch feature learning method for anomaly detection.
8. In paragraph 7, The step of performing feature representation learning based on the above multiple patch features is: A step of projecting a first patch feature pair including a predetermined first patch feature and a second patch feature into the feature representation space, It further includes a step of calculating pairwise similarity, which is data measuring the similarity between the first patch feature and the second patch feature based on the first patch feature pair projected into the above feature expression space. A patch feature learning method for anomaly detection.
9. In paragraph 8, The step of performing feature representation learning based on the above multiple patch features is: A step of calculating contextual similarity, which is data measuring bidirectional similarity between K nearest neighbors for the first patch feature and K nearest neighbors for the second patch feature, based on the first patch feature pair projected into the feature representation space, is further included. A patch feature learning method for anomaly detection.
10. In paragraph 9, The step of performing feature representation learning based on the above multiple patch features is: It further includes a step of calculating an integrated similarity, which is data obtained by linearly combining the above-described pairwise similarity and the above-described contextual similarity. A patch feature learning method for anomaly detection.
11. In paragraph 10, The step of performing feature representation learning based on the above multiple patch features is: Further comprising a step of training the second network based on the calculated integrated similarity. A patch feature learning method for anomaly detection.
12. In paragraph 11, The step of training the second network based on the above integrated similarity is: A step of training the second feature representation layer to map the first patch feature and the second patch feature to be mutually distant or close to each other on the feature representation space according to the integrated similarity. A patch feature learning method for anomaly detection.
13. In paragraph 1, The steps for performing the above anomaly detection are: Step of acquiring the first test sample image, A step of obtaining the reconpatch feature according to the first test sample image obtained above, A step of performing the anomaly detection based on the reconpatch feature according to the above feature representation learning and the reconpatch feature according to the first test sample image. A patch feature learning method for anomaly detection.
14. In paragraph 13, The steps for performing the above anomaly detection are: A step of generating an anomaly score map based on the similarity between the reconpatch feature according to the above feature representation learning and the reconpatch feature according to the first test sample image, Further comprising a step of performing the anomaly detection based on the generated anomaly score map. A patch feature learning method for anomaly detection.
15. In paragraph 13, A step of coreset sampling the reconpatch features according to the above feature representation learning, Further comprising a step of performing the anomaly detection based on the core set sampled reconpatch feature. A patch feature learning method for anomaly detection.
16. At least one memory; and At least one processor configured to perform patch feature learning for anomaly detection by reading at least one application stored in the memory; The above processor, Obtain a feature map according to the first image data set, Based on the feature map obtained above, a plurality of patch features based on local data within a given image are obtained, Feature representation learning is performed based on the multiple patch features obtained above, ReConPatch Feature, which is data that reconstructs feature expressions according to the plurality of patch features based on the similarity calculated based on the plurality of patch features, is obtained according to the performed feature expression learning. Anomaly detection is performed based on the reconpatch features obtained above. A patch feature learning system for anomaly detection.
17. At least one memory; and At least one processor configured to perform patch feature learning for anomaly detection by reading at least one application stored in the memory; The instructions of the above processor are: A step of obtaining a feature map according to the first image data set, A step of obtaining multiple patch features based on local data within a given image based on the feature map obtained above, A step of performing feature representation learning based on the above-obtained multiple patch features, A step of obtaining a ReConPatch Feature, which is data that reconstructs a feature expression according to the plurality of patch features based on the similarity calculated based on the plurality of patch features, according to the performed feature expression learning; Includes a command for performing a step of performing anomaly detection based on the above-obtained reconpatch feature. Computing device.
Citation Information
Patent Citations
Few-shot learning based image recognition of whole slide image at tissue level
CN111316317A
Abnormal area detection method and system
JP2023030355A
Cited By
Semi-supervised anomaly detection method based on memory enhancement and pseudo marking
CN119831972A
A Semi-Supervised Anomaly Detection Method Based on Memory Enhancement and Pseudo-Labeling
CN119831972B
