Method, program and device for learning and inference of deep learning model based on medical data
By aligning neural network blocks and fine-tuning models with loss functions, the method addresses the challenge of limited data in the medical field, enhancing deep learning model performance for health condition estimation.
Patent Information
- Application Number
- JP2024516570
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2022-09-08
- Filing Date
- 2022-09-15
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2042-09-15
AI Technical Summary
Deep learning models require large amounts of data for generalization, which is expensive and limited in domains like the medical field, and existing methods like DeiT struggle to transfer inductive bias effectively with small datasets in medical data.
A method for training a deep learning model using a first neural network model to impart inductive bias to a second neural network model through loss function-based matching and fine-tuning, even with small datasets, by aligning input and dimension differences between neural network blocks.
Enables effective utilization of deep learning models in the medical field with small datasets, ensuring generalization performance and improved accuracy in tasks like arrhythmia prediction and patient health monitoring.
Smart Images

Figure 2024537971000001_ABST
Abstract
Description
[Technical field]
[0001] The present disclosure relates to deep learning technology in the medical field, and more particularly to a method for training a deep learning model using inductive bias transfer and utilizing the trained deep learning model in the medical field.
[0002] [Background technology]
[0003] The generalization of deep learning models requires the use of large amounts of data. For example, one conventional transformer model uses 300 million additional data points to achieve higher performance than other convolution-based approaches on the ImageNet benchmark. However, it is not easy to secure big data in all domains. Therefore, the use of deep learning models in domains such as the medical field where it is expensive to obtain large amounts of data remains limited.
[0004] Many researchers have proposed solutions to alleviate the problem of generalizing deep learning models without relying on huge amounts of data. One of these solutions is Data Efficient Image Transformer (DeiT) based on knowledge distillation. DeiT uses a convolutional neural network as a teacher for a transformer and adopts a method of distilling the knowledge of the convolutional neural network, which plays an important role in generalization performance, into the transformer via additional tokens. DeiT assumes that this distillation method can improve performance by encoding the inductive bias of the convolutional neural network into the transformer.
[0005] Nevertheless, DeiT also requires a certain amount of data to be secured in order to perform knowledge distillation. Therefore, DeiT has a problem that it is difficult to use in the medical field where the number of data classes for knowledge distillation has not been sufficiently accumulated. For example, when evaluating the performance of DieT, the image net previously used is composed of a thousand classes, while medical data such as electrocardiogram data and electronic health records (EHR) data contain only a few dozen classes. Considering that successful knowledge transfer depends on the quality of the teacher signal, where diverse signals are important, it seems clear that when using DieT, the inductive bias of the teacher model is successfully transferred to the image net but not to the medical data.
[0006] Summary of the Invention [Problem to be solved by the invention]
[0007] The present disclosure has been devised in response to the above-mentioned background technology, and aims to provide a method for training a deep learning model by efficiently transmitting inductive bias even in a small data set in the medical field, and a method for estimating various health conditions using a deep learning model trained by such a training method.
[0008] However, the problems to be solved by the present disclosure are not limited to those mentioned above, and other problems not mentioned will be clearly understood from the description below.
[0009] [Means for solving the problem]
[0010] In order to achieve the above object, an embodiment of the present disclosure discloses a method for training a deep learning model based on medical data, which is executed by a computing device. The training method includes the steps of training a first neural network model based on medical data, and training the second neural network model based on the trained first neural network model by matching a first operation function indicating a neural network block included in the trained first neural network model with a second operation function indicating a neural network block included in the second neural network model.
[0011] Alternatively, the step of training the second neural network model based on the trained first neural network model by matching a first operational function indicating a neural network block included in the trained first neural network model with a second operational function indicating a neural network block included in the second neural network model may include training the second neural network model based on the trained first neural network model using a loss function for matching at least one of an input or a dimension between the first operational function and the second operational function.
[0012] Alternatively, the loss function may include a first sub-loss function having an output of a first arithmetic function corresponding to the n-1th (n is a natural number) neural network block included in the first neural network model as an input variable, and a second sub-loss function having an output of a second arithmetic function corresponding to the n-1th neural network block included in the second neural network model as an input variable. Here, each of the first sub-loss function and the second sub-loss function may be a function for calculating a difference between an output of a first arithmetic function corresponding to the nth neural network block included in the first neural network model and an output of a second arithmetic function corresponding to the nth neural network block included in the second neural network model.
[0013] Alternatively, each of the first sub-loss function and the second sub-loss function may include a conversion function for matching a dimension of the first operational function corresponding to the n-th neural network block with a dimension of the second operational function corresponding to the n-th neural network block.
[0014] Alternatively, the transformation function may include a first sub-transformation function for linearly transforming the input variables of the transformation function in the temporal direction and a second sub-transformation function for linearly transforming the input variables of the transformation function in a feature dimension.
[0015] Alternatively, the conversion function included in the first sub-loss function may be a function for matching the dimension of the output of the first operation function corresponding to the (n-1)th neural network block with the dimension of the input of the second operation function corresponding to the nth neural network block, and for matching the dimension of the output of the second operation function corresponding to the nth neural network block with the dimension of the output of the first operation function corresponding to the nth neural network block.
[0016] Alternatively, the conversion function included in the second sub-loss function may be a function for matching the dimension of the output of the second operation function corresponding to the (n-1)th neural network block with the dimension of the input of the first operation function corresponding to the nth neural network block, and for matching the dimension of the output of the first operation function corresponding to the nth neural network block with the dimension of the output of the second operation function corresponding to the nth neural network block.
[0017] Alternatively, the loss function may further include a third sub-loss function for calculating a difference between an output of the first neural network model receiving the medical data and an output of the second neural network model receiving the medical data.
[0018] Alternatively, the third sub-loss function may include a transformation function for matching a dimension of an output of the first neural network model receiving the medical data with a dimension of an output of the second neural network model receiving the medical data.
[0019] Alternatively, the learning method may further include performing fine tuning on the second neural network model based on medical data, where the fine tuning may include training the second neural network model while maintaining weights of the second neural network model close to weights in a state where training based on the trained first neural network model is completed.
[0020] Alternatively, the first neural network model may include at least one of a convolutional neural network or a recurrent neural network, and the second neural network model may include a self-attention based neural network.
[0021] Alternatively, the medical data may include at least one of electrocardiogram data or electronic health records (EHR) data.
[0022] Meanwhile, according to an embodiment of the present disclosure for achieving the above-mentioned object, a method for inferring a deep learning model based on medical data, which is executed by a computing device, is disclosed. The inference method may include acquiring medical data including at least one of electrocardiogram data or electronic health record data, and estimating a human health condition based on the medical data using a second neural network model. Here, the second neural network model may be trained by a matching operation between a first operational function corresponding to a neural network block included in the trained first neural network model and a second operational function corresponding to a neural network block included in the second neural network model, based on a first neural network model trained in advance.
[0023] In order to achieve the above object, an embodiment of the present disclosure discloses a computer program stored in a computer-readable storage medium. When the computer program is executed by one or more processors, the computer program executes operations for training a deep learning model based on medical data. Here, the operations may include: training a first neural network model based on medical data; and training the second neural network model based on the trained first neural network model by matching a first operation function indicating a neural network block included in the trained first neural network model with a second operation function indicating a neural network block included in the second neural network model.
[0024] In order to achieve the above object, an embodiment of the present disclosure discloses a computing device for training a deep learning model based on medical data. The device may include a processor including at least one core, a memory including a program code executable by the processor, and a network unit for acquiring medical data. Here, the processor can train a first neural network model based on medical data, and train the second neural network model based on the trained first neural network model by matching a first operational function indicating a neural network block included in the trained first neural network model with a second operational function indicating a neural network block included in a second neural network model.
[0025] Effect of the Invention
[0026] The present disclosure provides a deep learning model training method that can appropriately utilize the strong inductive bias of a teacher model to generalize a student model even with a small amount of data, and a method for effectively utilizing a deep learning model trained by such a training method in the medical field.
[0027] [Brief description of the drawings]
[0028] [Figure 1] FIG. 1 is a block diagram of a computing device according to one embodiment of the present disclosure.
[0029] [Diagram 2] FIG. 2 is a block diagram illustrating a process of training a deep learning model according to one embodiment of the present disclosure.
[0030] [Diagram 3] FIG. 1 is a conceptual diagram illustrating a calculation process of a loss function according to an embodiment of the present disclosure.
[0031] [Figure 4] 1 is a graph showing the results of a comparative evaluation of the performance of a deep learning model trained according to an embodiment of the present disclosure and a conventional solution.
[0032] [Diagram 5] 1 is a flowchart illustrating a method for training a deep learning model according to an embodiment of the present disclosure.
[0033] [Figure 6] 1 is a flowchart illustrating an inference method for a deep learning model according to an embodiment of the present disclosure.
[0034] DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0035] Hereinafter, the embodiments of the present disclosure will be described in detail with reference to the accompanying drawings so that a person having ordinary skill in the art can easily carry out the present disclosure. The embodiments presented in the present disclosure are provided to enable a person skilled in the art to use or practice the contents of the present disclosure. Thus, various modifications to the embodiments of the present disclosure will be apparent to a person skilled in the art. That is, the present disclosure may be embodied in various different forms and is not limited to the following embodiments.
[0036] Throughout the specification of the present disclosure, the same or similar reference numerals refer to the same or similar components. In addition, in order to clearly describe the present disclosure, reference numerals of parts that are not related to the description of the present disclosure may be omitted from the drawings.
[0037] The term "or" as used in this disclosure is intended to mean an inclusive "or" rather than an exclusive "or." That is, unless otherwise specified in this disclosure or unless otherwise clear from the context, "X uses A or B" should be understood to mean one of the natural inclusive permutations. For example, unless otherwise specified in this disclosure or unless otherwise clear from the context, "X uses A or B" can be interpreted as either X uses A, X uses B, or X uses both A and B.
[0038] The term "and / or" as used in this disclosure must be understood to indicate and include all possible combinations of one or more of the associated listed concepts.
[0039] The terms "comprise" and / or "comprising" as used in this disclosure should be understood to mean the presence of the specified features and / or components. However, the terms "comprise" and / or "comprising" should be understood not to exclude the presence or addition of one or more other features, other components and / or combinations thereof.
[0040] In this disclosure, unless otherwise specified or clear from the context as indicating the singular form, the singular should generally be construed as including "one or more."
[0041] The term "Nth (N is a natural number)" used in this disclosure can be understood as an expression used to distinguish components of the present disclosure from each other based on a certain criterion such as a functional viewpoint, a structural viewpoint, or convenience of explanation. For example, in this disclosure, components performing different functional roles can be distinguished as a first component or a second component. However, components that are substantially the same within the technical idea of the present disclosure but must be distinguished for convenience of explanation can also be distinguished as a first component or a second component.
[0042] The term "acquire" as used in this disclosure may be understood to mean not only receiving data via a wired or wireless communication network for an external device or system, but also generating data in an on-device form.
[0043] Meanwhile, the term "module" or "unit" used in the present disclosure may be understood as a term indicating an independent functional unit that processes computing resources, such as a computer-related entity, firmware, software or a part thereof, hardware or a part thereof, or a combination of software and hardware. Here, a "module" or "unit" may be a unit composed of a single element, or a unit expressed as a combination or set of multiple elements. For example, as a concept of agreement, a "module" or "unit" may indicate a hardware element or a set of hardware elements of a computing device, an application program that performs a specific function of software, a process implemented by the execution of software, or a set of commands for the execution of a program. In addition, as a broad concept, a "module" or "unit" may indicate a computing device itself that constitutes a system, or an application executed by a computing device. However, the above concept is merely an example, and the concept of a "module" or "unit" may be variously defined within a scope that can be understood by a person skilled in the art based on the contents of the present disclosure.
[0044] The term "model" as used in this disclosure may be understood as a system implemented using mathematical concepts and language to solve a particular problem, a set of software units for solving a particular problem, or an abstract model of a process for solving a particular problem. For example, a neural network "model" may refer to a system implemented as a neural network having a problem-solving ability through learning. Here, a neural network may have a problem-solving ability by optimizing parameters connecting nodes or neurons through learning. A neural network "model" may include a single neural network, or may include a neural network set in which multiple neural networks are combined.
[0045] "Data" as used in this disclosure may include "image", signals, etc. The term "image" as used in this disclosure may refer to multi-dimensional data made up of discrete image elements. In other words, "image" may be understood as a term that refers to a digital representation of an object that can be viewed by the human eye. For example, "image" may refer to multi-dimensional data made up of elements that correspond to pixels in a two-dimensional image. "Image" may refer to multi-dimensional data made up of elements that correspond to voxels in a three-dimensional image.
[0046] The term "inductive bias" used in this disclosure can be understood as a set of assumptions that enable inductive inference of a deep learning model. In order to resolve the error of generalization in which a deep learning model performs adequately only for given training data, it is necessary for the deep learning model to infer data other than the given training data so as to be close to the correct output. Thus, "inductive bias" can be understood as a set of preconditions that a deep learning model has in the process of learning in order to predict the output of an input that is not given.
[0047] The term "block" used in this disclosure may be understood as a collection of configurations classified according to various criteria such as type, function, etc. Thus, the configurations classified into one "block" may vary depending on the criteria. For example, a neural network "block" may be understood as a collection of neural networks including at least one neural network. Here, it may be assumed that the neural networks included in a neural network "block" perform a particular operation equally.
[0048] The term "operation function" as used in this disclosure can be understood as a mathematical expression for a unit that performs a specific function or processes an operation. For example, the "operation function" of a neural network block can be understood as a mathematical expression that indicates the neural network block that processes a specific operation. Thus, the relationship between the input and output of the neural network block can be expressed in a mathematical formula through the "operation function" of the neural network block.
[0049] The above explanations of the terms are intended to facilitate understanding of the present disclosure. Therefore, unless the above terms are explicitly described as matters limiting the contents of the present disclosure, care should be taken to ensure that they are not used to limit the technical ideas of the contents of the present disclosure.
[0050] FIG. 1 is a block diagram of a computing device according to one embodiment of the present disclosure.
[0051] The computing device 100 according to an embodiment of the present disclosure may be a hardware device or a part of a hardware device that performs comprehensive data processing and calculations, or may be a software-based computing environment connected via a communication network. For example, the computing device 100 may be a server that performs intensive data processing functions and shares resources, or a client that shares resources by interacting with the server. The computing device 100 may also be a cloud system in which multiple servers and clients interact with each other to comprehensively process data. The above description is merely an example related to the type of the computing device 100, and the type of the computing device 100 may be variously configured within a scope that can be understood by a person skilled in the art based on the contents of the present disclosure.
[0052] Referring to Fig. 1, a computing device 100 according to an embodiment of the present disclosure may include a processor 110, a memory 120, and a network unit 130. However, Fig. 1 is merely an example, and the computing device 100 may include other components for implementing a computer environment. Also, only some of the disclosed components may be included in the computing device 100.
[0053] The processor 110 according to an embodiment of the present disclosure may be understood as a component including hardware and / or software for performing computing operations. For example, the processor 110 may read a computer program to perform data processing for machine learning. The processor 110 may process operations such as input data processing for machine learning, feature extraction for machine learning, and error calculation based on backpropagation. The processor 110 for performing such data processing may include a central processing unit (CPU), a general purpose graphics processing unit (GPGPU), a tensor processing unit (TPU), an application specific integrated circuit (ASIC), or a field programmable gate array (FPGA). The above-mentioned types of the processor 110 are merely examples, and the types of the processor 110 may be variously configured within a scope that can be understood by a person skilled in the art based on the contents of the present disclosure.
[0054] The processor 110 can train a neural network model for estimating a human health condition based on knowledge distillation that transfers knowledge of a teacher model to a student model. For example, the processor 110 can train a teacher model so that the teacher model estimates a human health condition based on medical data. The processor 110 can train a student model based on an inductive bias generated in the process of the teacher model learning. The processor 110 can match each of the computation functions representing a plurality of neural network blocks included in the teacher model with each of the computation functions representing a plurality of neural network blocks included in the student model in order to transfer the inductive bias of the teacher model to the student model in the process of the student model learning. Here, the matching of computation functions can be understood as an operation in which the student model learns the inductive bias of the teacher model by minimizing the difference between the features interpreted by each of the neural network blocks of the teacher model and the features interpreted by each of the neural network blocks of the student model. By matching such computation functions, the processor 110 can effectively transfer the inductive bias of the teacher model to the student model even with a small amount of medical data. That is, by learning by matching arithmetic functions, the processor 110 can efficiently train a student model based on the knowledge of the teacher model even in a state where a sufficient amount of data is not available. Also, by learning by matching arithmetic functions, the processor 110 can guarantee the generalization performance of the student model.
[0055] The processor 110 can estimate a human health condition based on medical data using the neural network model generated by the above-mentioned learning process. The processor 110 can generate inference data indicating the result of estimating a human health condition by inputting medical data to the neural network model trained by the above-mentioned process. For example, the processor 110 can input electrocardiogram data to the student model that has completed learning to predict the occurrence or non-occurrence of a late-onset disease such as arrhythmia, and the degree of progression of the late-onset disease. The processor 110 can input electronic health records (EHR) data to the student model that has completed learning to generate data related to information required for patient management such as changes in the patient's heart rate. In addition to the above examples, the type of medical data and the output of the neural network model can be variously configured within the scope of what can be understood by a person skilled in the art based on the contents of the present disclosure.
[0056] The memory 120 according to an embodiment of the present disclosure may be understood as a component including hardware and / or software for storing and managing data processed by the computing device 100. That is, the memory 120 may store any type of data generated or determined by the processor 110 and any type of data received by the network unit 130. For example, the memory 120 may include at least one type of storage medium among a flash memory type, a hard disk type, a multimedia card micro type, a card type memory, a random access memory (RAM), a static random access memory (SRAM), a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), a programmable read-only memory (PROM), a magnetic memory, a magnetic disk, and an optical disk. The memory 120 may also include a database system that controls and manages data in a predetermined system. The above-mentioned types of the memory 120 are merely examples, and the types of the memory 120 may be variously configured within a range that can be understood by a person skilled in the art based on the contents of the present disclosure.
[0057] The memory 120 may structure and organize and manage data, a combination of data, and program code executable by the processor 110, which are necessary for the processor 110 to perform calculations. For example, the memory 120 may store medical data received via the network unit 130, which will be described later. The memory 120 may store program code for operating a neural network model to receive medical data and perform learning, program code for operating the neural network model to receive medical data and perform inference according to the purpose of use of the computing device 100, and processed data generated by executing the program code.
[0058] The network unit 130 according to an embodiment of the present disclosure may be understood as a component that transmits and receives data via any type of known wired or wireless communication system. For example, the network unit 130 may transmit and receive data using wired or wireless communication systems such as a local area network (LAN), wideband code division multiple access (WCDMA), long term evolution (LTE), wireless broadband internet (WiBro), 5G, ultrawide-band, ZigBee, radio frequency (RF) communication, wireless LAN, wireless fidelity, near field communication (NFC), or Bluetooth. The above-mentioned communication systems are merely examples, and wired or wireless communication systems for transmitting and receiving data by the network unit 130 may be applied in various ways other than the above examples.
[0059] The network unit 130 may receive data necessary for the processor 110 to perform the calculation through wired or wireless communication with any system or any client. The network unit 130 may also transmit data generated by the calculation of the processor 110 through wired or wireless communication with any system or any client. For example, the network unit 130 may receive medical data through communication with a database in a hospital environment, a cloud server performing work such as standardization of medical data, or a computing device. The network unit 130 may transmit output data of the neural network model, and intermediate data and processed data derived in the calculation process of the processor 110 through communication with the above-mentioned database, server, computing device, etc.
[0060] FIG. 2 is a block diagram illustrating a process of training a deep learning model according to one embodiment of the present disclosure.
[0061] Referring to FIG. 2, the processor 110 according to an embodiment of the present disclosure may execute a three-step learning process to train a neural network model for estimating a human health condition based on medical data. The processor 110 may execute a step A to train the first neural network model 200 to have an inductive bias for estimating a human health condition based on medical data. The processor 110 may execute a step B to transfer the inductive bias of the first neural network model 200 strengthened in the step A to the second neural network model 300. The processor 110 may execute a step C to fine-tune the second neural network model 300 trained in the step B according to the purpose of use. However, the step C is not necessarily executed, and may be executed or not executed according to the purpose of use of the second neural network model 300.
[0062] Specifically, the processor 110 can train the first neural network model 200 to generate an inductive bias to be transferred to the second neural network model 300. The processor 110 can input the medical data 11 to the first neural network model 200 to generate an output for estimating a human health condition. The processor 110 can reconstruct parameters such as the weights of the neural network by comparing the output of the first neural network model 200 with a ground truth (GT) using a loss function. The processor 110 can train the first neural network model 200 based on the medical data 11 by repeatedly performing such an operation until the loss function converges. If the first neural network model 200 includes a convolutional neural network, the first neural network model 200 can strengthen the inductive bias of locality and translation invariance for the medical data 11 in the A stage. If the first neural network model 200 includes a recurrent neural network, the first neural network model 200 can enhance the inductive bias of temporal invariance to the medical data 11 in the A stage.
[0063] The processor 110 can match the plurality of neural network blocks 210 included in the first neural network model 200 with the plurality of neural network blocks 220 included in the second neural network model 300 so that the second neural network model 300 can learn the inductive bias of the first neural network model 200 reinforced in the A stage. The processor 110 can input medical data 15 to the first neural network model 200 and the second neural network model 300, respectively. Here, the medical data 15 in the B stage may be the same as or different from the medical data 11 in the A stage. In the process in which each model 200, 300 processes the medical data 15, the processor 110 can calculate the difference between each output of the plurality of neural network blocks 210 included in the first neural network model 200 and each output of the plurality of neural network blocks 220 included in the second neural network model 300 using a loss function. That is, the processor 110 can configure a plurality of neural network blocks 210 included in the first neural network model 200 and a plurality of neural network blocks 220 included in the second neural network model 300 as pairs to calculate the loss.
[0064] However, due to the types of neural networks included in the first neural network model 200 and the second neural network model 300 and the dependency between the neural networks, a difference in input and / or dimension may occur between the neural network blocks 210 and 220 to be matched. When the first neural network model 200 includes at least one of a convolutional neural network or a recurrent neural network and the second neural network model 300 includes a neural network based on self-attention, it is difficult to calculate the loss due to the difference in input and dimension between the neural network block 210 of the first neural network model 200 and the neural network block 220 of the second neural network model 300. Therefore, the processor 110 may perform an operation for matching the input and / or dimension between the neural network blocks 210 and 220 in the process of calculating the difference using the loss function. For example, the processor 110 can execute a calculation to alternately input the intermediate output of the first neural network model 200 and the intermediate output of the second neural network model 300 to each of the blocks 210 and 220 and match the input / output dimensions of each of the blocks 210 and 220. By matching the inputs and dimensions in this way, the processor 110 can effectively match the neural network blocks 210 and 220 even if the first neural network model 200 and the second neural network model 300 include different types of neural networks.
[0065] Then, the processor 110 can use the loss function to calculate the difference between the final output of the first neural network model 200 and the final output of the second neural network model 300. The processor 110 can transmit the inductive bias of the first neural network model 200 to the second neural network model 300 by repeatedly executing the above-mentioned matching between neural network blocks and matching between the final outputs until the loss function converges. In other words, the processor 110 can train the second neural network model 300 based on the first neural network model 200 trained in the A stage by the neural network block matching in the B stage.
[0066] When the above-mentioned step B is completed, the processor 110 can perform fine tuning of the second neural network model 300 having learned the inductive bias of the first neural network model 200. Here, the fine tuning can be understood as a learning process of optimizing the second neural network model 300 for a specific task according to the utilization purpose of the second neural network model 300. The processor 110 can input the medical data 19 to the second neural network model 300 trained in step B to generate an output for estimating a human health condition. Here, the medical data 19 can be electrocardiogram data or electronic health record data according to the utilization purpose of the second neural network model 300. And, the second neural network model 300 can estimate late-onset diseases such as arrhythmia by receiving the electrocardiogram data, and can estimate a change in the condition of a seriously ill patient by receiving the electronic health record data. However, the input and output of the second neural network model 300 is merely an example, and is not limited to the above-mentioned example. The processor 110 can compare the output of the second neural network model 300 with the ground truth (GT) using the loss function to reconstruct parameters such as the weights of the neural network. The processor 110 can retrain the second neural network model 300 based on the medical data 19 by repeatedly performing such calculations until the loss function converges.
[0067] 3 is a conceptual diagram showing a process of calculating a loss function according to an embodiment of the present disclosure. In the following description of FIG. 3, the first neural network model 200 is assumed to be a convolutional neural network model or a recurrent neural network model, and the second neural network model 300 is assumed to be a transformer model based on self-attention.
[0068] Referring to FIG. 3, the first neural network model 200 and the second neural network model 300 can be interpreted as a combination of operational functions representing neural network blocks, such as the following Equation 1.
[0069]
number
[0070] where f is the first neural network model 200, f n is the nth (n is a natural number) neural network block of the first neural network model 200, g is the second neural network model 300, and g n denotes the n-th neural network block of the second neural network model 300. And, f is the classifier of the first neural network model 200, l g shows the classifier of the second neural network model 300.
[0071] In order to transmit the inductive bias of the first neural network model 200, which is a convolutional neural network model or a recurrent neural network model, to the second neural network model 300, which is a transformer model, the processor 110 according to an embodiment of the present disclosure calculates f n and g n The matching operation can be broadly divided into input matching and dimension matching.
[0072] Due to the difference in the types of neural networks between the first neural network model 200 and the second neural network model 300, the input of the second function g2 of the second neural network model 300 is g1(x), and the input of the second function f2 of the first neural network model 200 is f1(x). If the input matching is not performed, the matching between the two functions is performed by an operation that minimizes ||g2(g1(x))-f2(f1(x))||. However, due to the dependency of the previous neural network blocks, such a matching operation cannot guarantee that g2 is close to f2. Therefore, the processor 110 transmits a signal to both the operation flows of the first neural network model 200 and the second neural network model 300 to alleviate the above-mentioned problem. That is, in the present disclosure, matching between both functions can be performed by minimizing ||g2(f1(x))-f2(f1(x))||+||g2(g1(x))-f2(g1(x))||.
[0073] In addition, in function matching between neural network blocks, a problem of dimensional difference due to the function through which the input passes may occur. n In the case of (·), pooling and convolution with stride change the dimension in the time direction, and convolution operation change also expands the dimension of the feature. To deal with such problems, the processor 110 can use a transformation function h(·) that transforms each dimension equally.
[0074]
number
[0075] In Equation 2, I(·) represents a linear transformation in the temporal direction, and W represents a linear transformation in the feature dimension. In other words, the transformation function h(·) can be expressed as the product of a function for linear transformation of the input variable in the temporal direction and a function for linear transformation of the feature dimension of the input variable.
[0076] The above-mentioned input matching and dimension matching can be summarized as two loss functions as shown in the following Equation 3.
[0077]
number
[0078] Here, L 1 n corresponds to (a) in Figure 3, and L 2 n may correspond to (b) in FIG.
[0079] Referring to FIG. 3(c), the calculation function g corresponding to the neural network block of the second neural network model 300 is n In addition, in order for all g in the second neural network model 300 to operate in the same manner under the induction bias of the first neural network model 200, a loss function L as shown in the following mathematical formula 4 is used. 3 n can be additionally calculated.
[0080]
number
[0081] The overall loss function L for learning the inductive bias of the first neural network model 200, which is a convolutional neural network model or a recurrent neural network model, in the second neural network model 300, which is a transformer model, can be expressed as the following Mathematical Formula 5 by integrating the above Mathematical Formula 3 and Mathematical Formula 4.
[0082]
number
[0083] Meanwhile, according to an embodiment of the present disclosure, after the second neural network model 300 has completed learning based on the loss function described above, the weight value Φ in the learning completed state can be used as an initial weight value for learning using a randomly initialized classifier. The processor 110 can fine-tune the second neural network model 300 trained by minimizing the loss in the same manner as the first neural network model 200 having an inductive bias. During the fine-tuning of the second neural network model 300, the processor 110 adjusts the weight value Φ g The initial weight value Φ f→g , and the second neural network model 300 can be normalized so that the second neural network model 300 does not forget the inductive bias transferred from the first neural network model 200. Such normalization can be expressed as the following Equation 6.
[0084]
number
[0085] 2 and the loss function calculation in Fig. 3, the inductive bias of the first neural network model 200 can be efficiently transferred to the second neural network model 300 to perform learning, and the second neural network model 300 can be effectively optimized according to the purpose of use in the medical field. In addition, the second neural network model 300 can be trained to ensure generalization performance even with a small amount of data in the medical field where sufficient data has not been accumulated, and can be easily used for various tasks in the medical field.
[0086] FIG. 4 is a graph showing the results of a comparative evaluation of the performance of a deep learning model trained according to an embodiment of the present disclosure and a conventional solution.
[0087] FIG. 4(a) shows the results of comparing the performance of the convolutional neural network 41, DieT45, and the neural network 49 of the present disclosure, which is trained by receiving an inductive bias from the convolutional neural network 41, based on electrocardiogram data. F1 indicates the f-1 score, and P-21 indicates the physionet21 score. In the case of electrocardiogram data, it can be seen that the performance of the neural network 49 of the present disclosure is superior to the convolutional neural network 41 that transmits the inductive bias. It can also be seen that the performance of the neural network 49 of the present disclosure is several times superior to DieT45 based on knowledge distillation. In particular, it can be seen that in the electrocardiogram case, DieT45 is rather inferior in performance to the convolutional neural network 41.
[0088] FIG. 4B shows the results of comparing the performance of the convolutional neural network 51, DieT55, and the neural network 59 of the present disclosure, which is trained by receiving an inductive bias from the convolutional neural network 51, based on electronic medical record data. P-19 indicates the physionet19 score. In the case of electronic medical record data, it can be seen that the performance of the neural network 59 of the present disclosure is superior to the convolutional neural network 51 that transmits the inductive bias. It can also be seen that the performance of the neural network 49 of the present disclosure is several times superior to DieT45 based on knowledge distillation, based on P-19.
[0089] Considering the above results, it can be seen that the neural network trained by the training method of the present disclosure is more suitable for the medical field where there is not enough accumulated data for training compared to DieT. It can also be seen that the neural network trained by the training method of the present disclosure successfully encodes the inductive bias of the previous model and shows better performance than the previous model.
[0090] FIG. 5 is a flowchart illustrating a method for training a deep learning model according to one embodiment of the present disclosure.
[0091] Referring to FIG. 5, the computing device 100 according to an embodiment of the present disclosure can train a first neural network model based on medical data (S110). The computing device 100 can train the first neural network model so that the first neural network model estimates a human health condition based on the medical data. For example, when the computing device 100 is a server or a client of a cloud system, the computing device 100 can receive at least one of electrocardiogram data or electronic health record data as training data through communication with a database in a hospital environment. When the computing device 100 is a database in a hospital environment, the computing device 100 can generate at least one of electrocardiogram data or electronic health record data as training data through communication with an electrocardiogram measuring device, etc. in the hospital environment. The computing device 100 can train the first neural network model so that the first neural network model can estimate the occurrence, change, transition, risk level, etc. of a human disease, based on at least one of electrocardiogram data or electronic health record data acquired by the first neural network model.
[0092] The computing device 100 can train the second neural network model by matching an arithmetic function indicating a neural network block between the first neural network model and the second neural network model (S120). The computing device 100 can match a first arithmetic function indicating a neural network block included in the first neural network model trained in step S110 with a second arithmetic function indicating a neural network block included in the second neural network model. Specifically, the computing device 100 can train the second neural network model based on the first neural network model trained in step S110 using a loss function for matching at least one of an input or a dimension between the first arithmetic function and the second arithmetic function.
[0093] According to an embodiment of the present disclosure, the loss function for matching the first and second operation functions in step S120 may include a first sub-loss function having an output of the first operation function corresponding to the n-1th neural network block included in the first neural network model as an input variable, and a second sub-loss function having an output of the second operation function corresponding to the n-1th neural network block included in the second neural network model as an input variable. Each of the first sub-loss function and the second sub-loss function may be a function for calculating a difference between an output of the first operation function corresponding to the nth neural network block included in the first neural network model and an output of the second operation function corresponding to the nth neural network block included in the second neural network model. That is, the first sub-loss function may be understood as a function for calculating a difference between outputs generated by inputting an output of the previous first operation function into each of the current first operation function and the current second operation function. And, the second sub-loss function may be understood as a function for calculating a difference between outputs generated by inputting an output of the previous second operation function into each of the current first operation function and the current second operation function.
[0094] When the first neural network model and the second neural network model include the same convolutional neural network block, a data dimensionality problem does not occur during the process of each calculation function. However, when different types of neural network blocks are included, such as when the first neural network model includes a convolutional neural network block and the second neural network model includes a self-attention based neural network block, a data dimensionality problem may occur during the process of each calculation function. Therefore, each of the first sub-loss function and the second sub-loss function may include a transformation function for matching the dimension of the first calculation function corresponding to the n-th neural network block with the dimension of the second calculation function corresponding to the n-th neural network block. Here, the transformation function may include a first sub-transformation function for linearly transforming the input variable of the transformation function in the time direction, and a second sub-transformation function for linearly transforming the input variable of the transformation function in the feature dimension. It can be understood that the transformation function corresponds to h(·) in Mathematical Formula 2, the first sub-transformation function corresponds to I(·) in Mathematical Formula 2, and the second sub-transformation function corresponds to W in Mathematical Formula 2.
[0095] The conversion function included in the first sub-loss function may be a function for matching the dimension of the output of the first operation function corresponding to the n-1th neural network block with the dimension of the input of the second operation function corresponding to the nth neural network block, and for matching the dimension of the output of the second operation function corresponding to the nth neural network block with the dimension of the output of the first operation function corresponding to the nth neural network block. For example, referring to (a) of FIG. 3, the conversion function included in the first sub-loss function may be For example, JPEG2024537971000012.jpg914 can be used for converting the output dimension of the first operation function corresponding to the n-1th neural network block according to the input dimension of the second operation function corresponding to the nth neural network block. And, the conversion function included in the first sub-loss function is JPEG2024537971000013.jpg914, for example, can be used for an operation of converting the dimension of the output of the second operation function corresponding to the n-th neural network block according to the dimension of the output of the first operation function corresponding to the n-th neural network block.
[0096] The conversion function included in the second sub-loss function may be a function for matching the dimension of the output of the second operation function corresponding to the n-1th neural network block with the dimension of the input of the first operation function corresponding to the nth neural network block, and for matching the dimension of the output of the first operation function corresponding to the nth neural network block with the dimension of the output of the second operation function corresponding to the nth neural network block. For example, referring to (b) of FIG. 3, the conversion function included in the second sub-loss function may be For example, JPEG2024537971000014.jpg914 can be used for converting the output dimension of the second operation function corresponding to the n-1th neural network block according to the input dimension of the first operation function corresponding to the nth neural network block. And, the conversion function included in the second sub-loss function is JPEG2024537971000015.jpg914, for example, can be used for an operation of converting the dimension of the output of a first operation function corresponding to an n-th neural network block according to the dimension of the output of a second operation function corresponding to an n-th neural network block.
[0097] To summarize the above explanation, the first sub-loss function is L in Equation 3. 1 n The second sub-loss function corresponds to L in Equation 3. 2 n That is, the calculation process of the first sub-loss function corresponds to (a) in Fig. 3, and the calculation process of the second sub-loss function corresponds to (b) in Fig. 3.
[0098] Meanwhile, in step S120, the loss function for matching the first and second computation functions may further include a third sub-loss function for computing a difference between an output of the first neural network model receiving the medical data and an output of the second neural network model receiving the medical data. If the first sub-loss function and the second sub-loss function are functions for finely matching neural network blocks included in each of the neural network models, the third sub-loss function may be understood as a function for matching the neural network models in terms of the overall model.
[0099] The third sub-loss function may include a conversion function for matching the dimension of the output of the first neural network model that receives the medical data with the dimension of the output of the second neural network model that receives the medical data. As with the first sub-loss function and the second sub-loss function, if there is a difference in the type of neural network between the first neural network model and the second neural network model, there will inevitably be a difference in dimension between the data derived in each calculation process. Therefore, in order to solve the problem of the difference in dimension, the third sub-loss function may include a conversion function. For example, referring to (c) of FIG. 3, the conversion function included in the third sub-loss function is JPEG2024537971000016.jpg914, for an operation of converting the dimension of the output of a first calculation function corresponding to the final neural network block according to the dimension of the output of a second calculation function corresponding to the final neural network block.
[0100] To summarize the above explanation, the third sub-loss function is L in Equation 4. 3 n 3, and the calculation process of the third sub-loss function corresponds to (c) of FIG. 3. In step S120, the loss function for matching the first and second calculation functions can be expressed as a combination of the first sub-loss function, the second sub-loss function, and the third loss function. Although Equation 5 is expressed as a simple sum of three sub-loss functions, the sub-loss functions can be combined by various calculations such as a weighted sum, a product, etc., in addition to the simple sum.
[0101] The computing device 100 may perform fine tuning of the second neural network model that has learned the induction bias of the first neural network model in step S120 based on the medical data (S130). Here, the fine tuning may be understood as a process of training the second neural network model while maintaining the weights of the second neural network model close to the weights in a state where the training based on the first neural network model (step S120) is completed. For example, in order to optimize the second neural network model according to the task of arrhythmia prediction among late-onset diseases, the computing device 100 may input electrocardiogram data related to arrhythmia prediction to the second neural network model in which step S120 has been completed to fine-tune the second neural network model. In addition, in order to optimize the second neural network model according to the task of monitoring heart rate changes of patients admitted to an intensive care unit, the computing device 100 may input electronic health record data of seriously ill patients to the second neural network model in which step S120 has been completed to fine-tune the second neural network model. The fine adjustment of the present disclosure is not limited to the above examples, and can be performed in various ways within the scope of what can be understood by a person skilled in the art based on the contents of the present disclosure.
[0102] FIG. 6 is a flowchart illustrating an inference method for a deep learning model according to one embodiment of the present disclosure.
[0103] 6, a computing device 100 according to an embodiment of the present disclosure may acquire medical data including at least one of electrocardiogram data or electronic health record data (S210). For example, when the computing device 100 is a server or a client of a cloud system, the computing device 100 may receive at least one of electrocardiogram data or electronic health record data to be inferred through communication with a database in a hospital environment. When the computing device 100 is a database in a hospital environment, the computing device 100 may generate at least one of electrocardiogram data or electronic health record data to be inferred through communication with an electrocardiogram measuring device or the like in the hospital environment.
[0104] The computing device 100 can estimate the health condition of a person based on the medical data by using the pre-trained second neural network model (S220). The computing device 100 can predict the occurrence, change, and risk level of a human disease by inputting at least one of the electrocardiogram data or the electronic health record data acquired in step S210 to the pre-trained second neural network model. Here, the second neural network model may be trained by a calculation that matches a first operational function corresponding to a neural network block included in the first neural network model with a second operational function corresponding to a neural network block included in the second neural network model based on the pre-trained first neural network model. The pre-training of the second neural network model corresponds to the description of FIG. 6 above, and therefore a detailed description thereof will be omitted below.
[0105] The various embodiments of the present disclosure described above can be combined with additional embodiments and can be modified within the scope that a person skilled in the art can understand from the above detailed description. The embodiments of the present disclosure are illustrative in all respects and should be understood as not being limiting. For example, each component described as a single type can be implemented in a distributed form, and similarly, components described as distributed can be implemented in a combined form. Therefore, all modifications or variations derived from the meaning, scope, and equivalent concept of the claims of the present disclosure should be interpreted as being included in the scope of the present disclosure. [Explanation of symbols]
[0106] 11: Medical data 15: Medical data 19: Medical data 41: Convolutional Neural Networks 49:Neural Networks 51: Convolutional Neural Networks 59:Neural Networks 100: Computing equipment 110: Processor 120: Memory 130: Network Department 200: First neural network model 210: Neural Network Blocks 220: Neural Network Blocks 300: Second neural network model
Claims
1. 1. A method for training a deep learning model based on medical data, the method being performed by a computing device including at least one processor, the method comprising: training a first neural network model based on medical data; training the second neural network model based on the trained first neural network model by matching a first operation function indicating a neural network block included in the trained first neural network model with a second operation function indicating a neural network block included in a second neural network model; A method comprising:
2. a step of training the second neural network model based on the trained first neural network model by matching a first operational function indicating a neural network block included in the trained first neural network model with a second operational function indicating a neural network block included in a second neural network model, training the second neural network model based on the trained first neural network model using a loss function for matching at least one of inputs or dimensions between the first and second operational functions; The method of claim 1 , comprising:
3. The loss function is A first sub-loss function having an output of a first arithmetic function corresponding to an n-1th (n is a natural number) neural network block included in the first neural network model as an input variable; A second sub-loss function having an output of a second operation function corresponding to the (n-1)th neural network block included in the second neural network model as an input variable; Including, 3. The method according to claim 2, wherein each of the first sub-loss function and the second sub-loss function is a function for calculating a difference between an output of a first operational function corresponding to an n-th neural network block included in the first neural network model and an output of a second operational function corresponding to an n-th neural network block included in the second neural network model.
4. 4. The method of claim 3, wherein each of the first sub-loss function and the second sub-loss function includes a transformation function for matching a dimension of a first operational function corresponding to the n-th neural network block with a dimension of a second operational function corresponding to the n-th neural network block.
5. The transformation function is a first sub-transformation function for linearly transforming input variables of the transformation function in a temporal direction; a second sub-transformation function for linearly transforming the input variables of the transformation function in a feature dimension; The method of claim 4 , comprising:
6. The conversion function included in the first sub-loss function is Matching the output dimension of a first computation function corresponding to the (n-1)-th neural network block with the input dimension of a second computation function corresponding to the n-th neural network block; 5. The method of claim 4, wherein the nth neural network block corresponds to a function for matching a dimension of an output of a second operational function corresponding to the nth neural network block with a dimension of an output of a first operational function corresponding to the nth neural network block.
7. The transformation function included in the second sub-loss function is matching an output dimension of a second operation function corresponding to the (n-1)-th neural network block with an input dimension of a first operation function corresponding to the n-th neural network block; 5. The method of claim 4, wherein the function is for matching a dimension of an output of a first operational function corresponding to the nth neural network block with a dimension of an output of a second operational function corresponding to the nth neural network block.
8. 3. The method of claim 2, wherein the loss function further comprises a third sub-loss function for calculating a difference between an output of the first neural network model receiving the medical data and an output of the second neural network model receiving the medical data.
9. 9. The method of claim 8, wherein the third sub-loss function includes a transformation function for matching a dimension of an output of the first neural network model receiving the medical data with a dimension of an output of the second neural network model receiving the medical data.
10. performing fine tuning on the second neural network model based on medical data; Further comprising:
2. The method of claim 1, wherein the fine-tuning comprises training the second neural network model while maintaining weight values of the second neural network model close to weight values in a state where training based on the trained first neural network model is completed.
11. the first neural network model includes at least one of a convolutional neural network or a recurrent neural network; The method of claim 1 , wherein the second neural network model comprises a self-attention based neural network.
12. The method of claim 1 , wherein the medical data includes at least one of electrocardiogram data or electronic health records (EHR) data.
13. 1. A method for inference of a deep learning model based on medical data, the method being performed by a computing device including at least one processor, the method comprising: acquiring medical data including at least one of electrocardiogram data or electronic health records (EHR); using a second neural network model to predict a health state of the person based on the medical data; and Including, The second neural network model is trained based on a previously trained first neural network model by an operation of matching a first operational function corresponding to a neural network block included in the trained first neural network model with a second operational function corresponding to a neural network block included in the second neural network model.
14. A computer program stored on a computer-readable storage medium, comprising: The computer program, when executed by one or more processors, performs operations for training a deep learning model based on medical data; The operation includes: training a first neural network model based on medical data; training the second neural network model based on the trained first neural network model by matching a first operation function indicating a neural network block included in the trained first neural network model with a second operation function indicating a neural network block included in a second neural network model; A computer program comprising:
15. A computing device for training a deep learning model based on medical data, comprising: A processor including at least one core; a memory containing program code executable by the processor; A network unit for acquiring medical data; Including, The processor, training a first neural network model based on medical data; An apparatus for training a second neural network model based on the trained first neural network model by matching a first operation function indicating a neural network block included in the trained first neural network model with a second operation function indicating a neural network block included in a second neural network model.
Citation Information
Patent Citations
Model training method, data recognition method and data recognition device
JP2020071883A
ECG-based cardiac ejection fraction screening
JP2020536629A
Learning device, learning method and program
JP2021026291A
State estimation device and state estimation program
JP2021043631A
Machine learning device and method
WO2019167883A1
Cited By
Treatment plan, treatment evaluation, and treatment instruction creation assistance system
WO2026230424A1
