Method and data processing apparatus for augmenting global features in deep-learning model

The method enhances deep learning models by using graph attention to extract and integrate global features from convolution layers, addressing the limitations of conventional models in capturing distant relationships, thereby improving performance and data understanding.

WO2024225532A1PCT designated stage expired Publication Date: 2024-10-31EWHA UNIV IND COLLABORATION FOUND
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
PCT/KR2023/010489
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-04-25
Filing Date
2023-07-20
Publication Date
2024-10-31

AI Technical Summary

Technical Problem

Conventional convolution layers in deep learning models are limited in extracting global features, as they primarily focus on local features and struggle to capture relationships between distant regions in input data.

Method used

The proposed method involves a data processing device that receives a feature tensor from a previous layer, divides it into patches, constructs a graph with nodes representing patches, and performs graph attention to reflect relative importance, updating the feature tensor to include global features that can be passed to the next layer, enhancing the model's ability to capture long-range relationships.

Benefits of technology

This approach increases the performance of deep learning models by extracting global features that were previously overlooked, making it easier to implement by inserting the method between existing layers, thereby improving the model's ability to process and understand complex data patterns.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure KR2023010489_31102024_PF_FP_ABST
    Figure KR2023010489_31102024_PF_FP_ABST
Patent Text Reader

Abstract

This method for augmenting global features of input data in a deep-learning model comprises steps in which: a data processing apparatus: divides a feature tensor that is input in patch units of a predetermined size into a plurality of patches; constructs a graph in which each of the plurality of patches corresponds to a node; performs graph attention for reflecting relative importance between nodes belonging to the constructed graph; and transfers, to the next layer, the feature tensor including patches updated by performing the graph attention.
Need to check novelty before this filing date? Find Prior Art

Description

Global feature augmentation method and data processing device in deep learning models

[0001] The techniques described below relate to feature extraction techniques for deep learning models. Specifically, they relate to extracting global features from data.

[0002] This application is the result of research conducted with the support of the National IT Industry Promotion Agency (NIPA) funded by the government (Ministry of Science and ICT) (No. RS-2022-00155966) and the National Research Foundation of Korea funded by the government (Ministry of Education) (NRF-2020R1A6A1A03043528).

[0003] Artificial neural networks (ANNs) are a type of machine learning model that has recently been utilized in various fields. The convolutional neural network (CNN), widely used in image processing, is a representative example of an ANN. Furthermore, convolutional layers are also used in various deep learning models.

[0004] Convolutional layers are inherently good at extracting local features. This is because they extract features using windows of constant size. Conversely, convolutional layers struggle to extract relationships (global features) between distant regions of the input data.

[0005] The technique described below aims to augment global features in the feature tensor output from a convolutional layer. The technique described below aims to provide a feature tensor that includes relationships between distant regions that conventional convolutional layers cannot extract.

[0006] A method for global feature augmentation in a deep learning model includes a step in which a data processing device receives a feature tensor output from a previous layer of a deep learning model, a step in which the data processing device divides the feature tensor into a plurality of patches in units of patches of a certain size, a step in which the data processing device constructs a graph in which each of the plurality of patches corresponds to a node, a step in which the data processing device performs graph attention that reflects relative importance between nodes belonging to the constructed graph, and a step in which the data processing device transfers the feature tensor including patches updated by performing the graph attention to a next layer of the previous layer.

[0007] In another aspect, a method for global feature augmentation in a deep learning model includes a step of a data processing device receiving a feature tensor output from a previous layer of a deep learning model, a step of the data processing device generating a plurality of patch sets by dividing the feature tensor into different-sized patch units, a step of the data processing device performing graph attention on each of the plurality of patch sets, a step of the data processing device generating a feature tensor including patches updated by performing the graph attention on each of the plurality of patch sets, averaging and integrating a plurality of feature tensors produced from the plurality of patch sets, and a step of the data processing device transferring the integrated feature tensor to a next layer of the previous layer. The step of performing the graph attention includes a step of constructing a graph in which each of the plurality of patches belonging to the patch set corresponds to a node, and a step of performing graph attention that reflects relative importances between node embeddings belonging to the constructed graph.

[0008] A data processing device using a deep learning model capable of expressing global features includes an interface device for receiving input data, a storage device for storing a deep learning model including at least one global feature augmentation module, and a computational device for producing certain data or information from the input data using the deep learning model. The at least one global feature augmentation module constructs a graph of relationships between a plurality of patches extracted from a feature tensor transmitted from a previous layer of the deep learning model, and performs attention on the graph to transmit the feature tensor including updated patches to a subsequent layer of the previous layer.

[0009] The technique described below enhances the performance of deep learning models by extracting global features not considered due to the limitations of conventional convolutional layers. Furthermore, the technique described below can be easily implemented by inserting it between the layers of various conventional deep learning models.

[0010] Figure 1 is an example of a convolution-based deep learning model capable of global feature extraction.

[0011] Figure 2 is an example explaining the operation of a multi-hop graph attention (MGA) module.

[0012] Figure 3 is an example of a graph with embedded patches as nodes.

[0013] Figure 4 shows various examples in which the MGA module is used.

[0014] Figure 5 is an example of various data types processed by the MGA module.

[0015] Figure 6 is an example explaining the operation of the MGA module that processes multidimensional input data.

[0016] Figure 7 is an example of a deep learning model that predicts brain age from brain MRI.

[0017] Figure 8 is an example of a data processing device that extracts global features using an MGA module.

[0018] The technology described below is susceptible to various modifications and embodiments. Specific embodiments are illustrated and described in detail in the drawings. However, this does not limit the technology described below to specific embodiments, and it should be understood that all modifications, equivalents, and alternatives fall within the spirit and scope of the technology described below.

[0019] Terms such as first, second, A, and B may be used to describe various components, but these components are not limited by these terms and are used solely to distinguish one component from another. For example, without departing from the scope of the technology described below, a first component may be referred to as a second component, and similarly, a second component may also be referred to as a first component. The term "and / or" includes a combination of a plurality of related described items or any of a plurality of related described items.

[0020] As used herein, the singular expressions should be understood to include the plural expressions unless the context clearly dictates otherwise, and the term "comprises" and the like should be understood to mean the presence of a described feature, number, step, operation, component, part, or combination thereof, but not to exclude the presence or addition of one or more other features, numbers, steps, operations, components, parts, or combinations thereof.

[0021] Before going into a detailed description of the drawings, it should be made clear that the division of components in this specification is merely a division based on the main function of each component. In other words, two or more components described below may be combined into a single component, or a single component may be further subdivided into two or more components with more detailed functions. In addition to its own main function, each component described below may additionally perform some or all of the functions of other components, and of course, some of the main functions of each component may be exclusively performed by other components.

[0022] Additionally, in performing a method or method of operation, each process constituting the method may occur in a different order than the stated order, unless the context clearly indicates a specific order. That is, each process may occur in the same order as the stated order, may be performed substantially simultaneously, or may be performed in the opposite order.

[0023]

[0024] The technique described below extracts global features from deep learning models using convolutional layers. Global features include features that indicate relationships between distant regions in the entire input data. Distant regions are regions that do not fall within a single window during the convolution process.

[0025] The following describes how a data processing device processes input data using a deep learning model. The data processing device can be implemented as a PC, a networked server, a smart device, or a chipset embedded with a dedicated program.

[0026] The term "deep learning model" below refers to any of several types of models that include convolutional layers. However, for convenience, the following explanation focuses on CNNs.

[0027] Deep learning models can process a variety of data types. Furthermore, the dimensions of the data they process can vary. However, for convenience, the following description focuses on two-dimensional image data.

[0028] Figure 1 is an example of a deep learning model (100) based on convolution capable of global feature extraction. Figure 1 illustrates CNN as an example.

[0029] CNN receives a two-dimensional image of size H×W as input.

[0030] CNNs typically extract complex and diverse features from input images by repeatedly using multiple convolutional layers. The convolutional layers output a feature tensor of a specific size based on the set parameters (filter size, stride interval, number of channels). Figure 1 shows the size of the tensor output by the ith convolutional layer as W. i , H i and C i It is indicated as C. C represents a channel. Meanwhile, the convolution layer can perform various types of convolution, such as 1D convolution, 2D convolution, and 3D convolution, depending on the direction of the filter progression.

[0031] The first convolutional layer (110) receives an input image and outputs a feature tensor of size H1×W1×C1.

[0032] In Fig. 1, the multi-hop graph attention (MGA, 120) module is located after the first convolutional layer (110). The MGA module (120) receives a feature tensor output from the immediately preceding convolutional layer. The MGA module (120) converts the input feature tensor into graph-structured data and updates the feature tensor through attention to the graph. The MGA module (120) transmits the updated feature tensor to the next layer. The updated feature tensor includes global features. Therefore, the MGA module (120) can also be called a model that augments global features or a global feature augmentation module. The detailed operation of the MGA module will be described later.

[0033] The second convolution layer (130) receives the updated feature tensor from the MGA module (120) and outputs a feature tensor of size H2×W2×C2.

[0034] The nth convolution layer (140) receives a feature tensor from the previous convolution layer and outputs a feature tensor of size H3×W3×C3.

[0035] The fully connected layer (150) receives the output tensor of the nth convolutional layer (140) and outputs certain information. For example, the fully connected layer (150) can output object classification results, image analysis results, etc.

[0036] Figure 2 illustrates the operation (200) of a multi-hop graph attention module (MGA). The MGA module is a software module. Therefore, an actual physical data processing device performs the module's operations. However, the process illustrated in Figure 2 below is described as being performed by the MGA module.

[0037] The MGA module performs two main tasks: converting the feature tensor into a graph data structure and restructuring (updating) the feature tensor by updating the node values ​​of the graph through graph attention.

[0038] The MGA module receives a feature tensor as input (210). The feature tensor has the size H×W×C.

[0039] An MGA module can include multiple attention branches. Figure 2 illustrates an example of n attention branches. Processes 220 to 250 described below can be performed on each branch. The following description focuses on one branch.

[0040] The MGA module divides the feature tensor into patches of equal size (patch embedding, 220). The size of a single patch p can be defined as shown in Equation 1 below.

[0041]

[0042] Γ is a hyperparameter that sets the size of a patch. If Γ is large, the size of a single patch decreases, and the total number of generated patches increases.

[0043] A feature tensor can be partitioned into patches of fixed size. A patch set can be composed of patches that divide a feature tensor into patches of fixed size. A patch set P = {p1, p2,..., p Np} and N p is the number of patches. Below N p It is explained based on the feature tensor divided into patches.

[0044] MGA module is N p Reduce and integrate the dimension of the feature tensor divided into patches (patch aggregation, 230).

[0045] In some cases, dimensionality reduction and integration of patches in the MGA module may be optional configurations. If dimensionality reduction of patches is not performed, the MGA module can build a graph based on the patches split in step 220 (240).

[0046] The process of integrating the feature tensors divided at the bottom of Fig. 2 is illustrated. The MGA module includes a global average pooling layer and a global max pooling layer. Each pooling layer performs pooling on each of the input patches. The MGA module performs global average pooling (GAP) on each of the patches to generate pooled first reduced patches (231). In addition, the MGA module uses global max pooling (GMP) on each of the patches to generate pooled second reduced patches (232). The MGA module sums or concatenates the first reduced patches and the second reduced tensors to generate final reduced patches (233). The final reduced patch h i is as shown in the mathematical expression 2 below. i represents the index among the patch sets.

[0047]

[0048] The MGA module performs a merge process on the entire patch set to produce a reduced patch set H = {H1, H2,..., H Np} is created.

[0049] The MGA module builds a graph in which each of the final reduced patches is treated as a node (240).

[0050] The graph construction process is described. The graph is defined as G = (N, E). N is a set of nodes, and E is a set of edges. The set of nodes corresponds to a reduced patch set H, which is calculated according to Equation 2. Meanwhile, the size of the patch corresponding to each node is determined by the hyperparameter Γ. The larger Γ is, the more local patches are embedded into a larger number of nodes.

[0051] Edges represent connectivity between nodes. The value of an edge can be defined as the Euclidean distance similarity score between two node embeddings. The similarity score of the same node is 1. The MGA module uses the Euclidean distance similarity to compute the relationship between node embedding values ​​and generate the initial edge matrix. For two nodes h i Wow h j Edge between e ij can be defined by the mathematical formula 3 below.

[0052] Meanwhile, the relationship between node embedding values ​​may be measured using a distance other than the Euclidean distance.

[0053]

[0054] h i is the i-th node, and h j is the jth node. One node corresponds to a feature vector. V represents a matrix for node embedding (a learnable matrix) and is a parameter determined by learning.

[0055] The MGA module generates an initial edge matrix E by computing the Euclidean distance similarity scores of all possible node pairs. Since the order of the two nodes involved in edge calculation does not matter (i.e. e ij =e ji Therefore, E is a symmetric matrix.

[0056] The MGA module updates E by probabilistically modeling it under the assumption that it has Markov properties. Using this probabilistic model, the MGA module considers direct connectivity (connectivity with directly connected nodes) and indirect connectivity (connectivity with nodes connected via other nodes, i.e., multi-hop connectivity).

[0057] Figure 3 is an example of a graph with embedded patches as nodes. Figure 3 shows a state space Ω = {H1, H2,..., H Np} represents the connectivity from one node to another. The similarity score is given by state h j from h i The conditional probability of state transition P(X(t)= h i | X(t-1) = h j ) can be modeled as X(t). X(t) represents the result of the tth state transition. t ∈ T={0, 1, 2,…, m}. A state transition can simply occur between two nodes, or it can occur between three or more consecutive nodes.

[0058] In order to make the sum of all edges entering a specific node equal to 1, the edge matrix is can be normalized as follows. D is the diagonal element d ii = ∑ j e ij is a diagonal matrix with a normalized edge matrix. is for all i and j = {1, 2, ...,N p} corresponds to a probability matrix that satisfies the condition of mathematical expression 4 below.

[0059]

[0060] As will be described later, the existing graph attention is updated by learning only the relationship between a node and its directly connected adjacent nodes in the graph structure. In order to increase the expressive power of the graph network, researchers have developed an m-order (mth The edge matrix was transformed to take into account neighbor information.

[0061] m-hop state transition probability is the current state h j After m(≥1) state transitions, state h j corresponds to the process of becoming. The m-hop state transition probability corresponds to the multi-hop connectivity between nodes in the graph. It is assumed that the state transition satisfies the Markov property. can be expressed as the Chapman-Kolmogorov equation as shown in mathematical equation 5 below.

[0062]

[0063] is early is set to . Equation 5 means that the probability of an m-hop state transition is recursively equal to the sum of the products of all intermediate state transitions. Equation 6 below is a matrix representation of Equation 5.

[0064]

[0065] Considering the state transition up to m-hop, the m-th edge matrix can be expressed as in Equation 7 below in the form of an additional hyperparameter β. β is a hyperparameter that assigns different weights to the edge matrix depending on the number of hops of the node connection. β has a value between 0 and 1. Equation 7 below adds up the edge matrix converted into multi-hop state transition probabilities by assigning weights according to the number of multi-hops from 1 to n.

[0066]

[0067] is not a symmetric matrix. That is, does not satisfy the requirements of an undirected graph. Therefore, the final multi-hop edge matrix is ​​as shown in Equation 8 below. and By defining it by adding up, it is made symmetrical.

[0068]

[0069] A larger value of m allows for more global (long-distance) relationships to be evaluated within the node set H. However, if the MGA module considers long-distance global relationships, the local features extracted by the convolutional layer may be reduced. Therefore, depending on the type of input data or application, the data processing unit must use an appropriate value of m.

[0070] The MGA module performs attention on the constructed graph (250). Graph attention is an algorithm that uses edge information to calculate the relative importance of nodes and update them.

[0071] h in the graph i Wow h j are the i-th and j-th nodes, respectively. At this time, the graph attention coefficient α ij It means the importance of the jth node with respect to the ith node and is expressed as in mathematical expression 9 below.

[0072]

[0073] In Equation 9, ∥ is a concatenation operation. W and V are weight matrices determined by learning. In Equation 9, N i is node h i In a typical graph attention network, h is a set of neighboring nodes that are referenced to update i It consists of nodes directly connected to each other. In contrast, as mentioned above, the MGA module uses an edge matrix that has been transformed to consider multi-hop connections, so it performs attention by considering even indirectly connected nodes.

[0074] In a typical graph, edges are defined as binary values. That is, directly connected edges are defined as 1, and non-directly connected edges are defined as 0. However, in graphs with the aforementioned patch embeddings as nodes, edges have arbitrary real values ​​based on Euclidean distance similarity. Therefore, for graph attention, edges in the graph must be binarized based on a certain threshold θ, as shown in Equation 10 below.

[0075]

[0076] θ can be the average value of the edges of the entire graph, or θ can be determined experimentally.

[0077] The MGA module computes the graph attention coefficient and updates the nodes using the following mathematical expression 11. The MGA module is N i Patch p belonging to j Perform a weighted linear transformation on the output patch p' i Creates.

[0078]

[0079] The MGA module performs graph attention on each patch belonging to the entire input patch set P and updates it to the output patch set P'. The output patch set P' constitutes a feature tensor with augmented global features.

[0080] Unlike Fig. 2, the MGA module may be configured with a single attention branch (e.g., one of the attention branches in Fig. 2). In this case, the MGA module may divide the feature tensor into patches of a certain size, perform graph attention, and output the resulting feature tensor of size H×W×C to the next layer.

[0081] Additionally, as shown in Fig. 2, the MGA module can be composed of multiple attention branches. In this case, the MGA module splits the same feature tensor into patches of different sizes for each attention branch. That is, the MGA module splits the feature tensor by applying Γ with different values ​​to each attention branch.

[0082] The MGA module can partition the same feature tensor into the first patch unit, the second patch unit, ..., n-th patch units. At this time, the patch sizes are assumed to be 1st patch > 2nd patch > ... > n-th patch. Each patch corresponds to a node in the graph. Therefore, the MGA module can extract the relationship between regions at different distances from the input data as features.

[0083] For example, in Fig. 2, the first attention branch (attention branch 1) is a path that processes a feature tensor divided into four patches {p1, p2, p3, p4}. The second attention branch (attention branch 2) is a path that processes a feature tensor divided into 16 patches.

[0084] The MGA module performs the same process in each attention branch. However, because the number of patches processed in each attention branch varies, the Euclidean distance similarity score and attention coefficient calculated by the MGA module in each attention branch have different values.

[0085] In the case of multiple attention branches, the MGA module integrates all output patch sets produced from each attention branch (attention branches 1 to n) to produce a feature tensor of size H×W×C (260). For example, the MGA module can produce a final feature tensor by averaging the output patch sets produced from all attention branches.

[0086] Figure 4 shows various examples of how the MGA module is used. Figure 4 shows an example where the input data is a two-dimensional image.

[0087] Figure 4(A) shows an example of using one MGA module. The convolutional layer (Conv) extracts a feature tensor from the input image. The MGA module receives the feature tensor as input and updates the feature tensor using the graph attention described in the process of Figure 2. The MGA module passes the updated feature tensor to the fully connected layer (FC). At this time, the deep learning model can also combine the initial feature tensor output by the convolutional layer and the updated feature tensor output by the MGA module through a skip connection and pass it to the next layer.

[0088] Figure 4(B) is an example in which multiple MGA modules are used. The first convolutional layer (Conv 1) extracts a first feature tensor from an input image. The first MGA module receives the first feature tensor as input and outputs a first updated feature tensor through graph attention. The second convolutional layer (Conv 2) extracts a second feature tensor from the first updated feature tensor. The second MGA module receives the second feature tensor as input and outputs a second updated feature tensor through graph attention. The second MGA module passes the second updated feature tensor to a fully connected layer (FC). Figure 4(B) illustrates two MGA modules as an example, but more MGA modules may be used depending on the structure and implementation of the deep learning model.

[0089] Fig. 4(C) is an example of a mixed use of an MGA module and other modules. In Fig. 4(C), the other module is illustrated as an SE (Squeeze and Excitation) block. The first convolutional layer (Conv 1) extracts a first feature tensor from an input image. The first MGA mixing module is composed of an SE block that inputs and processes the first feature tensor and an MGA module that inputs the output of the SE block and outputs a first updated feature tensor through graph attention. The second convolutional layer (Conv 2) extracts a second feature tensor from the first updated feature tensor. The second MGA mixing module is composed of an SE block that inputs and processes the second feature tensor and an MGA module that inputs the second feature tensor and performs graph attention in parallel. The second MGA mixing module combines the feature tensor output by the SE block and the feature tensor output by the MGA module to output a second updated feature tensor. The second MGA mixing module passes the second updated feature tensor to the fully connected layer (FC). Figure 4(C) illustrates the SE block as a module that can be used in combination with the MGA module, but the MGA module can be utilized with various modules that output feature tensors of the same size.

[0090] In the above description, the input data was assumed to be a two-dimensional image. However, deep learning models can process various types of data depending on the application. The MGA module can also be integrated into deep learning models that process various types of data.

[0091] Figure 5 is an example of various data types processed by the MGA module.

[0092] Figure 5(A) illustrates an example of receiving a matrix composed of one-hot vectors. One-hot encoding vectorizes source data consisting of text, numbers, etc. The convolutional layer receives a one-hot encoded matrix as input. The MGA module updates the feature tensor output by the convolutional layer through graph attention.

[0093] Figure 5(B) illustrates an example of receiving a 3D image as input. The convolutional layer receives a 3D image as input. The convolutional layer can be any of a variety of structures capable of processing 3D images. The MGA module updates the feature tensor output by the convolutional layer through graph attention.

[0094] Figure 5(C) is an example of inputting sequential data. Time series data can be a three-dimensional form with a time axis t in addition to the X-axis and Y-axis. Time series data is collected continuously or at regular intervals along the time axis. Time series data can be any of various types of data. For example, time series data can be continuous 2D images (video), continuous spectrograms (audio signals), sensor data measured at regular intervals, etc. The convolution layer inputs time series data. The MGA module updates the feature tensor output by the convolution layer through graph attention.

[0095] Fig. 6 is an example explaining the operation (300) of the MGA module that processes multidimensional input data. Fig. 6 corresponds to the operation of one attention branch in Fig. 2. Therefore, the MGA module can be composed of multiple attention branches that perform the operation as in Fig. 6. Each process in Fig. 6 is identical or similar to the corresponding process in Fig. 2. Therefore, the parts of the operation in Fig. 6 that are identical to the operation in Fig. 2 will be briefly described. Fig. 6 is an example of dividing a multidimensional feature tensor into patches based on the axis of each dimension.

[0096] The MGA module receives a feature tensor for multidimensional data (310). The feature tensor has dimensions a, b, and c. The feature tensor has the size a×b×c. a, b, and c each have multiple values.

[0097] The MGA module divides the feature tensor into patches of equal size (320). Fig. 6 is an example where Γ = 2 is set. Unlike Fig. 2, the MGA module divides the input feature tensor into patches of equal size along the axis of each dimension. In Fig. 6, the patch set P = {p1, p2, ..., p7, p8}. The MGA module reduces and integrates the dimensions of each patch to generate a reduced patch set H = {H1, H2, ..., H8} (330).

[0098] The MGA module builds a graph that embeds each final reduced patch and treats it as a single node (340). The MGA module then performs attention on the constructed graph (350). Through this process, the MGA module produces an updated feature tensor.

[0099] The researchers applied the MGA module to a previously studied deep learning application and verified its performance. The previous deep learning application was a technique for predicting brain age by interpreting brain MRI. Using public datasets (e.g., the OpenNeuro dataset and the COBRE dataset), the researchers collected 3D T1-weighted MR images of 2,788 healthy individuals. The researchers performed N4 bias field correction and normalization on the collected images. The researchers used 70% of the collected dataset as training data, 15% as validation data, and the remaining 15% as test data.

[0100] The researcher built a model (hereinafter referred to as MGA-sSE-ResNet18) with an MGA added to a model (hereinafter referred to as sSE-ResNet18) that added a spatial SE (spatial squeeze-and-excitation) module to ResNet18 as a backbone. Figure 7 is an example of a deep learning model that predicts brain age from brain MRI. Figure 7 is the model built by the researcher. The deep learning model has a structure in which the blocks indicated by dotted lines are repeated eight times between the first convolutional layer and the fully connected layer. The blocks indicated by dotted lines include two consecutive convolutional layers and an MGA blend module. The MGA blend module is a form in which the sSE module and the MGA module are arranged in parallel.

[0101] The researchers compared the performance of the constructed MGA-sSE-ResNet18 with other models. These other models are CNN-based models that do not use the MGA module. These models consist of five representative CNN models (ResNet18, sSE-ResNet18, DenseNet121, and MobileNetV2) and one brain age prediction model (SFCN). SFCN (simple-fully-convolutional-network) has been studied for brain age prediction.

[0102] Other models were also trained to predict brain age using the same dataset and environment as MGA-sSE-ResNet18. Table 1 below compares the performance of MGA-sSE-ResNet18 with other models. Performance metrics used were mean absolute error (MAE), root mean squared error (RMSE), and Pearson correlation coefficient (PCC). The performance evaluation results showed that MGA-sSE-ResNet18 had the lowest error among the models used for validation.

[0103]

[0104] Figure 8 illustrates an example of a data processing device (500) that extracts global features using an MGA module. The data processing device (500) is a device that processes input data using a deep learning model including an MGA module. The data processing device (500) may be a device that provides a certain service using the deep learning model. The data processing device (500) may be physically implemented in various forms. For example, the data processing device (500) may take the form of a computer device such as a PC, a network server, a data processing-dedicated chipset, etc.

[0105] The data processing device (500) may include a storage device (510), a memory (520), a computing device (530), an interface device (540), a communication device (550), and an output device (560).

[0106] The storage device (510) can store an MGA module.

[0107] The storage device (510) can store a trained deep learning model including an MGA module.

[0108] The storage device (510) can store a code or program that controls the process of extracting global features through the MGA module.

[0109] The memory (520) can store tensors, data, and information generated during the process of the data processing device (500) extracting global features through the MGA module and the process of the deep learning model operating.

[0110] The interface device (540) is a device that receives certain commands and data from the outside.

[0111] The interface device (540) can receive input data from a physically connected input device or an external storage device.

[0112] The interface device (540) can receive hyperparameters for the MGA module from a physically connected input device or external storage device.

[0113] The interface device (540) can transmit the feature tensor updated by the MGA module to the next layer of the deep learning model.

[0114] The interface device (540) can also transmit the results output by the deep learning model that interprets input data to an external object.

[0115] A communication device (550) refers to a configuration that receives and transmits certain information through a wired or wireless network.

[0116] The communication device (550) can receive input data from an external object.

[0117] The communication device (550) can receive hyperparameters for the MGA module from an external object.

[0118] The communication device (550) can transmit the results output by the deep learning model that interprets input data to an external object.

[0119] The interface device (540) may be a device that transmits data and information received through a communication device (550) into the data processing device (500).

[0120] The output device (560) is a device that outputs certain information. The output device (560) can output interfaces required for data processing, analysis results of deep learning models, etc.

[0121] The computational device (530) can preprocess input data in a certain manner. For example, the input data can be vectorized or normalized.

[0122] The computational unit (530) may generate a feature tensor by passing input data to the convolutional layer of the deep learning model. Alternatively, the computational unit (530) may generate another feature tensor by passing a feature tensor output from a previous convolutional layer of the deep learning model to the next convolutional layer. Alternatively, the computational unit (530) may update the feature tensor by passing a feature tensor output from another module (e.g., an SE module) of the deep learning model to the convolutional layer.

[0123] The computational unit (530) can control the operation of the MGA module that receives and processes a certain feature tensor.

[0124] The computational unit (530) can divide the input feature tensor into patches of a certain size (patch embedding). The computational unit (530) can divide a single feature tensor into multiple patches (patch set P). Furthermore, the computational unit (530) can divide the same feature tensor into patches of different numbers (different sizes) depending on a hyperparameter that determines the patch size.

[0125] The computational unit (530) can reduce the dimensionality of a single partitioned patch. For example, the computational unit (530) can perform global average pooling (GAP) on the patch. The computational unit (530) can perform global maximum pooling (GMP) on the patch. Furthermore, the computational unit (530) can concatenate patches whose dimensions have been reduced using different pooling techniques. The computational unit (530) can perform dimensionality reduction and concatenation on each patch belonging to the patch set. Through this process, the computational unit (530) can generate a patch set H with a reduced dimensionality for the feature tensor.

[0126] The computational unit (530) can construct a graph using patches belonging to the patch set H. The computational unit (530) sets each patch belonging to the patch set H as a node and determines the connectivity of edges between the nodes.

[0127] The computing device (530) determines the Euclidean distance similarity score between two nodes as an edge value between the corresponding nodes. The computing device (530) constructs an initial edge matrix by computing the Euclidean distance similarity score between all possible node pairs.

[0128] The computational unit (530) updates the initial edge matrix using a statistical model to identify relationships between nodes at multi-hop distances, assuming that the edge matrix has Markov properties. This process is as described in Equations 5 through 8 above. The computational unit (530) generates a multi-hop edge matrix as shown in Equation 8.

[0129] The computational unit (530) performs attention on a graph defined by a multi-hop edge matrix. The computational unit (530) computes attention coefficients as in Equation 9 and performs graph attention using the computed attention coefficients. Through this, the computational unit (530) can produce an updated feature tensor (patch set) that reflects relationships (global features) between distant nodes.

[0130] If the MGA module has multiple attention branches, the computational unit (530) performs the same operation on each attention branch to produce an updated feature tensor. In this case, the computational unit (530) can average the feature tensors produced across all attention branches to produce a final feature tensor.

[0131] The computational unit (530) can combine the final feature tensor and the feature tensor output by the previous convolutional layer.

[0132] Additionally, the computational unit (530) may combine the final feature tensor produced by the operation of the MGA module with the feature tensor output by a module that performs a different function (e.g., an SE module).

[0133] The computing device (530) may be a device such as a processor, AP, or chip embedded with a program that processes data and performs certain operations.

[0134] In addition, the operating method of the MGA module, the method for extracting global features from input data, the operating method of the deep learning model, etc., as described above, may be implemented as a program (or application) including an executable algorithm that can be executed on a computer. The program may be provided by being stored on a temporary or non-transitory computer-readable medium.

[0135] A non-transitory readable medium refers to a medium that stores data semi-permanently and can be read by a device, rather than a medium that stores data for a short period of time, such as a register, cache, or memory. Specifically, the various applications or programs described above may be stored and provided on a non-transitory readable medium, such as a CD, DVD, hard disk, Blu-ray disk, USB, memory card, ROM (read-only memory), PROM (programmable read only memory), EPROM (Erasable PROM, EPROM), EEPROM (Electrically EPROM), or flash memory.

[0136] Temporarily readable media refers to various types of RAM, such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDR SDRAM), Enhanced SDRAM (ESDRAM), Synchronous DRAM (Synclink DRAM, SLDRAM), and Direct Rambus RAM (DRRAM).

[0137] The present embodiment and the drawings attached to the present specification only clearly illustrate a part of the technical idea included in the above-described technology, and it is obvious that all modified examples and specific embodiments that can be easily inferred by a person skilled in the art within the scope of the technical idea included in the specification and drawings of the above-described technology are included in the scope of the rights of the above-described technology.

Claims

1. A step in which a data processing device receives a feature tensor output from the previous layer of a deep learning model; A step in which the data processing device divides the feature tensor into a plurality of patches in units of patches of a certain size; A step in which the data processing device constructs a graph in which each of the plurality of patches corresponds to a node; A step in which the data processing device performs graph attention that reflects the relative importance between nodes belonging to the constructed graph; and A method for global feature augmentation in a deep learning model, comprising a step of transmitting the feature tensor including the patches updated by performing the graph attention to the next layer of the previous layer, wherein the data processing device is configured to perform the graph attention.

2. In paragraph 1, The data processing device further includes a step of reducing the dimension by performing pooling on each of the plurality of patches, The above graph includes a plurality of patches with reduced dimension as a set of nodes. A global feature augmentation method in deep learning models.

3. In paragraph 1, A step in which the data processing device performs global average pooling on each of the plurality of patches to generate first reduced patches; The step of the data processing device performing global maximum pooling on each of the plurality of patches to generate second reduced patches; and The data processing device further comprises a step of combining the first reduction patches and the second reduction patches to generate final reduction patches, The above graph includes the final reduced patches as a set of nodes, A global feature augmentation method in deep learning models.

4. In paragraph 1, The steps to build the above graph are A step in which the data processing device sets the plurality of patches as nodes; A step in which the data processing device embeds the nodes using a learnable matrix; A step in which the data processing device constructs an edge matrix by calculating a distance similarity score between all pairs of nodes among the embedded nodes; and The data processing device comprises a step of updating the edge matrix using a probabilistic model to express multi-hop connectivity, The above graph is defined by the updated edge matrix, A global feature augmentation method in deep learning models.

5. In paragraph 4, The step of updating the above edge matrix is A step of normalizing the edge matrix so that the sum of all edges entering a specific node becomes 1 using a diagonal matrix of the data processing device; A step in which the data processing device converts the values ​​of the normalized edge matrix into multi-hop state transition probabilities using the Chapman-Kolmogorov equation; A step in which the data processing device weights and adds the edge matrix converted into the transition probability by the number of multi-hops from 1 to n; and A method for global feature augmentation in a deep learning model, wherein the data processing device comprises a step of converting the weighted sum edge matrix into a symmetric matrix.

6. A step in which the data processing device receives a feature tensor output from the previous layer of the deep learning model; A step in which the data processing device generates a plurality of patch sets by dividing the feature tensor into patch units of different sizes; A step in which the data processing device performs graph attention for each of the plurality of patch sets; A step in which the data processing device generates a feature tensor including patches updated by performing the graph attention for each of the plurality of patch sets, and integrates the feature tensors produced from the plurality of patch sets by averaging them; and The data processing device comprises a step of transmitting the integrated feature tensor to the next layer of the previous layer, A method for global feature augmentation in a deep learning model, wherein the step of performing the above graph attention includes the step of constructing a graph in which each of a plurality of patches belonging to the patch set corresponds to a node, and the step of performing graph attention that reflects the relative importance between node embeddings belonging to the constructed graph.

7. In paragraph 6, A method for global feature augmentation in a deep learning model, wherein the step of performing the above graph attention further includes a step of the data processing device performing pooling on each of the plurality of patches to reduce the dimension, and the graph is constructed using the plurality of patches whose dimensions are reduced.

8. In paragraph 6, The steps to build the above graph are A step in which the data processing device sets the plurality of patches as nodes; A step in which the data processing device embeds the nodes using a learnable matrix; A step in which the data processing device constructs an edge matrix by calculating a distance similarity score between all pairs of nodes among the embedded nodes; and The data processing device comprises a step of updating the edge matrix using a probabilistic model to express multi-hop connectivity, The above graph is defined by the updated edge matrix, A global feature augmentation method in deep learning models.

9. In paragraph 8, The step of updating the above edge matrix is A step of normalizing the edge matrix so that the sum of all edges entering a specific node becomes 1 using the diagonal matrix of the data processing device; A step in which the data processing device converts the values ​​of the normalized edge matrix into multi-hop state transition probabilities using the Chapman-Kolmogorov equation; A step in which the data processing device weights and adds the edge matrix converted into the transition probability by the number of multi-hops from 1 to n; and A method for global feature augmentation in a deep learning model, wherein the data processing device comprises a step of converting the weighted sum edge matrix into a symmetric matrix.

10. Interface device for receiving input data; A storage device storing a deep learning model including at least one global feature augmentation module; and Including a calculation device that produces certain data or information from the input data using the above deep learning model, A data processing device using a deep learning model capable of expressing global features, wherein the at least one global feature augmentation module constructs a graph of relationships between a plurality of patches extracted from a feature tensor transmitted from a previous layer of the deep learning model, performs attention on the graph, and transmits the feature tensor including the updated patches to the next layer of the previous layer.

11. In paragraph 10, The at least one global feature augmentation module includes a global average pooling layer that receives the plurality of patches as input; and a global max pooling layer that receives the plurality of patches as input, The above graph is a data processing device using a deep learning model capable of expressing global features, which is constructed based on final reduced patches generated by combining patches output from each of the global average pooling layer and the global max pooling layer.

12. In paragraph 10, The above graph is a data processing device that uses a deep learning model capable of expressing global features, in which each of a plurality of patches corresponds to a node, and an edge value is calculated as a distance similarity score between nodes embedded using a learnable matrix.

13. In paragraph 12, A data processing device using a deep learning model capable of expressing global features, wherein the edge value is a value updated using a probabilistic model to express multi-hop connectivity by using a distance similarity score between all pairs of nodes among the embedded nodes.

Citation Information

Patent Citations

  • Image classification method based on linear self-attention Transform

    CN114818889A

  • An electrode assembly

    KR102886514B1

  • Multi-slice magnetic resonance imaging method and device based on long-distance attention model reconstruction

    US20230097417A1