Training the neural network model
By iteratively adjusting the regularization parameters of the neural network model, using the difference in loss function of training data and test data, the problem of overfitting deep learning neural networks during training is solved, and more accurate model training and loss function are achieved. reduce.
Patent Information
- Application Number
- CN201880088144.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2017-12-01
- Filing Date
- 2018-11-30
- Publication Date
- 2024-11-05
- Estimated Expiration
- 2038-11-30
AI Technical Summary
Deep learning neural networks are prone to overfitting during training, resulting in the model's overreacting fluctuations in training data and inaccurate output. An effective method is needed to reduce the possibility of overfitting.
By iteratively adjusting the regularization parameters in the neural network model, using the loss function differences between the training data and the test data to determine whether overfitting has occurred, and adding or reducing regularization parameters according to the differences, ensuring that the model avoids overfitting during training. Combination and underfitting.
Through this method, more accurate neural network models can be generated, effectively reducing loss functions, ensuring that the model is optimized on available data, and avoiding the problems of overfitting and underfitting.
Smart Images

Figure CN111656373B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to training neural network models, and in particular to using regularization techniques to train neural network models. Background Art
[0002] Artificial neural networks (referred to herein as "neural networks") are known for their use in modeling analytical problems, such as image analysis problems. A deep learning architecture or deep neural network is a specific type of neural network capable of modeling more complex analytical problems.
[0003] A neural network architecture includes a plurality of units arranged in layers, referred to as artificial neurons or simply neurons, which are configured to simulate neurons of the brain. Each layer in a neural network model can perform different transformations on its input. Neurons in a neural network are connected to one or more other neurons through one or more connections or edges. Each neuron or edge can have an associated weight (which can be referred to as a bias) that is applied to the output from the neuron or to the connection from one neuron to the connected neuron. The weights can be updated using training of the neural network (e.g., using training data). A signal (e.g., data) travels from the first input layer of the neural network to the last output layer of the network and may pass through one or more intermediate "hidden" layers. Using training, the weights are updated so that the output of the neural network becomes closer to the expected output.
[0004] The complexity and large number of parameters involved in neural network models (and deep learning neural networks in particular) increase the likelihood that "overfitting" will occur. Overfitting occurs when a complex model overreacts to small fluctuations in the data used to train the model. The output of a model in which overfitting has occurred may be of little or no use, and may result in the need to retrain the model.
[0005] Therefore, there is a need for improved ways of training neural network models that reduce the likelihood that overfitting will occur. Summary of the invention
[0006] According to a first aspect, a system configured for training a neural network model is proposed, comprising: a memory including instruction data representing an instruction set; and a processor configured to communicate with the memory and execute the instruction set. When executed by the processor, the instruction set causes the processor to receive training data including a first set of annotated images; receive test data including a second set of annotated images; use the training data to train the neural network model based on an initial regularization parameter; iteratively perform the following steps: use the test data to test the trained neural network model to determine the loss function of the trained neural network model for the test data; adjust the initial regularization parameter based on the loss function of the neural network model for the training data and the loss function of the neural network model; use the training data to retrain the neural network model based on the adjusted regularization parameter, wherein the iterative steps are performed until it is determined that the loss function for the training data and the loss function for the test data have converged to a stable state.
[0007] By adjusting the regularization parameter based on the loss function for the training data and the test data, an evaluation can be made as to whether the trained neural network is suffering from overfitting, thereby enabling targeted adjustments to the regularization parameter to be made. This thereby enables a more accurate neural network to be generated and the loss function of the neural network to be more effectively reduced.
[0008] Adjustment of the regularization parameter is iteratively repeated until the loss function for both the test data and the training data has converged (eg, has been minimized). This convergence indicates that no further training is required, i.e., the neural network has been optimized based on the available data.
[0009] The training data and test data are distinct and separate from each other, but may be formed from different parts of a larger annotated image dataset.
[0010] In some embodiments, the regularization parameter may include at least one of a dropout parameter associated with neurons in the neural network model or a dropconnect parameter associated with connections between neurons in the neural network model.
[0011] Adjustment of the regularization parameter may be based on changes in the loss function between iterations. In some embodiments, the regularization parameter adjustment may be based on convergence of the loss function between iterations.
[0012] The adjustment of the regularization parameter can be based on or determined using the difference between the loss function of the neural network model for the training data and the loss function of the neural network model for the test data. In other words, a comparison can be made between the loss function of the neural network model for the training data and the loss function of the neural network model for the test data to determine how to modify the regularization parameter. The present invention has realized that such a comparison can enable an accurate determination of whether the neural network is overfitting and / or underfitting, and can thereby be used to guide the modification of the regularization parameter.
[0013] By comparing the loss function for the test data with the loss function for the training data, the method can ensure that a poor loss function for the test data is due to overfitting rather than an incorrectly trained neural network, thereby more accurately establishing whether overfitting has occurred and thus how the regularization parameters should be changed.
[0014] Causing the processor to adjust the regularization parameter may include, when determining that the loss function of the model is higher for the test data than for the training data, causing the processor to increase the regularization parameter. Thus, an embodiment may test for overfitting by comparing test data to training data and (in response to the loss function for the test data being higher than the loss function for the training data) modifying the neural network to account for overfitting by increasing the regularization parameter.
[0015] In some preferred embodiments, causing the processor to adjust may include causing the processor to increase the regularization parameter when it is determined that the loss function of the model is higher for the test data than for the training data and the loss function has been minimized for the training data. This effectively checks whether the neural network has been fully trained using the training data, but is overfitting to the training data. In this way, a more accurate determination of whether overfitting is occurring can be performed.
[0016] In some embodiments, causing the processor to adjust the regularization parameter may include causing the processor to decrease the regularization parameter when it is determined that the loss function of the neural network model is higher for the training data than for the test data.
[0017] In some embodiments, causing the processor to adjust the regularization parameter includes causing the processor to reduce the regularization parameter when it is determined that the loss function of the neural network for the training data is similar to the loss function for the test data (e.g., within a predetermined range of each other, such as ±1% or ±5%). Specifically, it can be determined whether the loss function for the test data is within a predetermined range (e.g., ±1% or ±5%) of the loss function for the training data, and it is determined to reduce the regularization parameter in response to a positive determination. Therefore, an evaluation can be made as to whether the neural network has been trained without overfitting, thereby enabling the processor to reduce the regularization parameter to enable further training of the neural network. If the loss function for the test data is less than the loss function for the training data, the regularization parameter can also be reduced (because this will indicate that underfitting is occurring).
[0018] In a further embodiment, the step of instructing the processor to increase the regularization parameter when it is determined that the loss function of the model is higher for the test data than for the training data is modified so that the step of increasing the regularization parameter occurs only when the loss function of the model for the test data is above an upper limit of a predetermined range for determining the similarity of the loss function for the training data (e.g., more than 105% of the value of the loss function for the training data or more than 101% of the value of the loss function for the training data).
[0019] Training the neural network model may include iteratively training the neural network model using the training data until the loss function of the neural network model for the training data converges to a stable state. Therefore, in an embodiment, the regularization parameter can be modified only when the neural network has been trained to convergence. This improves the accuracy of the neural network.
[0020] In some embodiments, causing the processor to retrain the neural network model may include causing the processor to set weights of the neurons based on weights of neurons in one or more layers of the model during a previous iteration.
[0021] When executed by the processor, the set of instructions may further cause the processor to end training of the neural network model upon determining that the loss function is minimized for the training data and the test data.
[0022] In some embodiments, the loss function of the model may be considered to have converged to a stable state when the loss function changes by less than a defined amount between subsequent iterations.
[0023] In some embodiments, the training data and the test data may include images annotated with at least one of: an indication of the presence of an object in the image; and an indication of the location of an object in the image. In some embodiments, the training data and the test data may include medical images.
[0024] The regularization parameter may define the proportion of neurons or connections between neurons to be temporarily excluded from a specific layer of the neural network model during training.
[0025] According to a second aspect, a method for training a neural network model includes receiving training data including a first set of annotated images; using the training data to train the neural network model based on an initial regularization parameter; and iteratively performing the following steps: using the test data to test the trained neural network model to determine the loss function of the trained neural network model for the test data; adjusting the initial regularization parameter based on the loss function of the neural network model for the training data and the loss function of the neural network model; using the training data to retrain the neural network model based on the adjusted regularization parameter, wherein the iterative steps are performed until it is determined that the loss function for the training data and the loss function for the test data have converged to a stable state.
[0026] According to a third aspect, a computer program product comprises a non-transitory computer readable medium having computer readable code embodied therein, the computer readable code being configured such that, when executed by a suitable computer or processor, the computer or processor is caused to perform the method disclosed herein.
[0027] These and other aspects of the invention will be apparent from and elucidated with reference to the embodiments described hereinafter. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] For a better understanding of the invention and in order to more clearly show how it may be implemented, reference will now be made, by way of example only, to the accompanying drawings in which:
[0029] Figure 1A is a simplified schematic diagram of an example of a neural network;
[0030] Figure 1B This is when the dropout parameter is applied Figure 1A A simplified diagram of a neural network.
[0031] Figure 2A is a simplified schematic diagram of an example of a neural network;
[0032] Figure 2BThis is when the dropconnect parameter is applied Figure 2A A simplified diagram of a neural network.
[0033] Figure 3 is a simplified schematic diagram of a system paradigm for training a neural network model;
[0034] Figure 4 is an example of a medical image including a stent;
[0035] Figure 5 is a flowchart of an example method of training a neural network model; and
[0036] Figure 6 is a simplified schematic diagram of an example of a computer-readable medium and a processor. DETAILED DESCRIPTION
[0037] Artificial neural networks, or neural networks for short, will be familiar to those skilled in the art, but in short, a neural network is a type of model that can be used to classify data (e.g., classify or identify the content of image data). The structure of a neural network is inspired by the human brain. A neural network includes multiple layers, each layer including multiple neurons. Each neuron includes a mathematical operation. In the process of classifying a portion of the data, the mathematical operation of each neuron is performed on the portion of the data to produce a numerical output, and the output of each layer in the neural network is then fed into the next layer. Generally, the mathematical operation associated with each neuron includes one or more weights that are tuned during the training process (e.g., the value of the weight is updated during the training process to tune the model to produce a more accurate classification).
[0038] For example, in a neural network model for classifying the content of an image, each neuron in the neural network may include a mathematical operation including a weighted linear sum of pixel (or voxel in three dimensions) values in the image followed by a nonlinear transformation. Examples of nonlinear transformations used in neural networks include sigmoid functions, hyperbolic tangent functions, and linear correction functions. Neurons in each layer of the neural network generally include different weighted combinations of a single type of transformation (e.g., the same type of transformation, sigmoid, etc., but with different weights). As will be familiar to those skilled in the art, in some layers, the same weights may be applied by each neuron in linear and in; this is applied, for example, in the case of convolutional layers. The weights associated with each neuron may make specific features more prominent (or conversely less prominent) than other features during the classification process, and thus adjusting the weights of neurons during training trains the neural network to place increased prominence on specific features when classifying images. In general, a neural network may have weights associated with neurons and / or weights between neurons (e.g., it modifies the data values passing between neurons).
[0039] As briefly mentioned above, in some neural networks (such as convolutional neural networks), lower layers (i.e., layers toward the beginning of the series of layers in the neural network), such as input or hidden layers in the neural network, are activated by small features or patterns in the portion of the data being classified (i.e., their output depends on small features or patterns in the portion of the data being classified), while higher layers (i.e., layers toward the end of the series of layers in the neural network) are activated by increasingly larger features in the portion of the data being classified. As an example, where the data includes images, lower layers in the neural network are activated by small features (e.g., edge patterns in the image), mid-level layers are activated by features in the image (e.g., larger shapes and forms), and layers closest to the output (e.g., higher layers) are activated by entire objects in the image.
[0040] In general, the weights of the neurons in the final layer (referred to as the output layer) of a neural network model depend most strongly on the specific classification problem being solved by the neural network. For example, the weights of the outer layers can be highly dependent on whether the classification problem is a localization problem or a detection problem. The weights of lower layers (e.g., input and / or hidden layers) tend to depend on the content (e.g., features) of the data being classified, and therefore it has been recognized herein that the weights in the input and hidden layers of a neural network processing the same type of data can converge toward the same values over time with sufficient training, even if the outer layers of the model are tuned to solve different classification problems.
[0041] As mentioned above, a problem that can affect neural networks is overfitting. A technique that can be used to reduce overfitting in a neural network model is to apply regularization techniques, such as "dropout" or "dropconnect". Dropout refers to a regularization technique in which some neurons or units of a neural network model are ignored or excluded for a portion of the training of the model using the training data. Dropconnect refers to a regularization technique in which some connections between neurons in a neural network model are ignored or excluded for a portion of the training of the model using the training data. Ignoring neurons or some of the connections between neurons forces the neural network to learn multiple independent representations of the same data. Dropout and / or dropconnect help the neural network generalize better and help avoid the model developing a dependency on a (possibly dominant) single neuron or connection (i.e., edge) in the neural network.
[0042] In some examples, a neuron or edge can be ignored by temporarily setting the neuron's or edge's associated weight to zero.
[0043] In some cases, regularization (e.g., dropout or dropconnect) may involve ignoring or excluding neurons from a single layer in a neural network model (or ignoring or excluding connections between neurons in two adjacent layers), while in other cases, neurons from multiple layers (or connections between multiple adjacent layers) may be excluded. Not all neurons or connections in a specific layer need to be excluded during the training of the model (e.g., during each step of the training process, each step may include a random batch of the total set of training data). The proportion of neurons or connections in a specific layer that are temporarily ignored (i.e., omitted or "abandoned" during the training step) can be defined by a regularization parameter, which can range from 0 to 1, where 0 represents the case where none of the neurons or connections are excluded, and 1 represents the case where all neurons or connections in the layer are excluded. For example, a regularization parameter of 0.5 represents the case where half of the neurons or connections in a specific layer are temporarily excluded. Therefore, the regularization parameter defines the proportion of neurons or connections between neurons to be temporarily excluded from a specific layer of a neural network model during training. In some cases, a unique regularization parameter may be applied to each individual neuron or connection. In some cases, a single regularization parameter may be applied to a small group or subset of neurons or connections. In some cases, a single regularization parameter can be applied to all neurons in a particular layer or to all connections between two adjacent layers. In some cases, a single regularization parameter can be applied to all neurons or connections in a neural network.
[0044] The neurons or connections excluded from the layer may be selected randomly, or may be predefined. When the dropout regularization technique is applied, the regularization parameter may be referred to as the dropout parameter, and when the dropconnect regularization technique is applied, the regularization parameter may be referred to as the dropconnect parameter.
[0045] Other regularization parameters will be appreciated by those skilled in the art, such as learning rate, number of activation layers, etc. In some examples, the regularization parameter may define an optimizer of the neural network (i.e., an optimizer used to modify the neural network during the training process).
[0046] The quality of performance of a neural network can be defined by a loss function (also referred to as a cost function). A loss function is a measure of how far a specific solution (e.g., a model with a specific combination of neuron weights) is from the optimal solution to the problem being solved. The loss function (or loss function value) for a neural network model can be said to be minimized when the model returns an optimal solution. In some examples, a minimized loss function can have a value of zero. When a neural network is trained using training data, the weights of the neurons and / or the edges connecting the neurons are adjusted in an attempt to converge the loss function to an optimal value (i.e., a value corresponding to the optimal solution).
[0047] The inventors have found that regularization techniques can be improved by adjusting the regularization parameter on the bias loss function (i.e., the way in which the proportion of ignored neurons or connections is changed during the training of the neural network model). More specifically, it has been found that the accuracy of the neural network model can be improved by changing the regularization parameter based on the loss function for the training data and the loss function for the test data (which is not used to train the neural network, but to test its effectiveness).
[0048] Therefore, a concept for training a neural network model is proposed. The concept includes receiving training data and test data, each of which includes a set of annotated images. The neural network model is trained using the training data with an initial regularization parameter. The loss function of the neural network for both the training data and the test data is used to modify the regularization parameter, and the neural network model is retrained using the modified regularization parameter. The process is iteratively repeated until the loss function converges. Systems, methods, and computer program products employing the concept are disclosed.
[0049] Examples of the use of dropout and dropconnect as regularization techniques are shown in Figures 1 and 2, respectively.
[0050] FIG. 1 is a simplified schematic diagram of two examples of neural networks 100 , 100 ′. Figure 1Ashows a neural network 100 without dropout (i.e., none of the neurons are ignored), and Figure 1B A neural network 100' is shown with dropout parameters for individual layers between 0.4 and 0.6. Figure 1A , the neural network 100 includes a plurality of neurons 102 arranged in layers. The neurons 102 in the input layer 104 are connected to the neurons 102 in the first intermediate layer 108 via the first connection 106. The neurons 102 in the first intermediate layer 108 are connected to the neurons 102 in the second intermediate layer 112 via the second connection 110. The neurons 102 in the second intermediate layer 112 are connected to the neurons in the output layer 116 via the third connection 114. Figure 1A The neural network represented in can be considered to have a dropout parameter of zero, so that none of the neurons are ignored or excluded.
[0051] exist Figure 1B In the neural network 100', various neurons 118 are excluded or ignored. In the example shown, a dropout parameter of 0.4 has been applied to the input layer 104, thereby causing two randomly selected neurons 118 to be temporarily ignored during training (indicated by the cross in the neuron). In the first intermediate layer 108, a dropout parameter of 0.6 has been applied, thereby causing three randomly selected neurons 118 to be temporarily ignored during training. In the second intermediate layer 112, a dropout parameter of 0.4 has been applied, thereby causing two randomly selected neurons 118 to be temporarily ignored during training. Because the dropout parameters have been applied, fewer neurons 102 are activated, resulting in fewer activations (i.e., outputs from neurons) during training.
[0052] Figure 1 illustrates dropout (i.e., temporarily dropping neurons from a neural network during training), while Figure 2 illustrates dropconnect, where neurons remain used but some interconnections between neurons in adjacent layers are temporarily dropped and ignored during training.
[0053] FIG. 2 is a simplified schematic diagram of two examples of neural networks 200 , 200 ′. Figure 2A shows a neural network 200 that is identical to neural network 100, wherein none of the connections are neglected, and Figure 2B The neural network 200' is shown with some of the second connections 110 between the first intermediate layer 108 and the second intermediate layer 112 ignored. Figure 2B The ignored connections are not shown in FIG. In this example, none of the first connections 106 between the input layer 104 and the first intermediate layer 108 are ignored. Figure 2BIn the example of , the first connection 106 between the input layer 104 and the first intermediate layer 108 can be considered to have a dropconnect parameter of zero, while the second connection 110 between the first intermediate layer 108 and the second intermediate layer 112 can be considered to have a dropconnect parameter of 0.64, so that the sixteen randomly selected connections are temporarily ignored during training. Because the dropconnect parameter has been applied, fewer second connections 110 are activated, resulting in fewer activations (ie, outputs) of neurons in the second intermediate layer 112 during training.
[0054] As mentioned above, the regularization parameter can be applied on a layer-by-layer basis, such that each layer (or the connections between specific pairs of adjacent layers) can have a different regularization parameter, or on a network-wide basis, such that a single regularization parameter is applied to the entire neural network, and the neurons and / or connections / edges to be temporarily ignored are randomly selected from any (one or more) layers in the network.
[0055] Reference now Figure 3 , which shows a block diagram of a system 300 that can be used to train a neural network model according to an embodiment. Figure 3 , the system 300 includes a processor 302 that controls the operation of the system 300 and is capable of implementing the methods described herein.
[0056] System 300 also includes memory 306, memory 306 includes instruction data representing an instruction set. Memory 306 can be configured to store instruction data in the form of program code that can be executed by processor 302 to perform the methods described herein. In some embodiments, the instruction data can include multiple software and / or hardware modules that are all configured to perform or are used to perform individual or multiple steps of the methods described herein. In some embodiments, memory 306 can be part of a device that also includes one or more other components of system 300 (e.g., processor 302 and / or one or more other components of system 300). In alternative embodiments, memory 306 can be part of a separate device to other components of system 300.
[0057] In some embodiments, the memory 306 may include multiple sub-memories, each of which can store an instruction data. In some embodiments in which the memory 306 includes multiple sub-memories, the instruction data representing the instruction set may be stored at a single sub-memories. In other embodiments in which the memory 306 includes multiple sub-memories, the instruction data representing the instruction set may be stored at multiple sub-memories. For example, at least one sub-memories may store instruction data representing at least one instruction of the instruction set, and at least one other sub-memories may store instruction data representing at least one other instruction of the instruction set. Therefore, according to some embodiments, instruction data representing different instructions may be stored at one or more different locations in the system 300. In some embodiments, the memory 306 may be used to store information, data (e.g., images), signals, and measurements collected or generated by the processor 302 of the system 300 or from any other component of the system 300.
[0058] The processor 302 of the system 300 can be configured to communicate with the memory 306 to execute the instruction set. When executed by the processor 302, the instruction set can cause the processor 302 to perform the method described herein. The processor 302 can include one or more processors, processing units, multi-core processors and / or modules configured or programmed to control the system 300 in the manner described herein. In some embodiments, for example, the processor 302 may include multiple (e.g., interoperable) processors, processing units, multi-core processors and / or modules configured for distributed processing. Those skilled in the art will appreciate that such processors, processing units, multi-core processors and / or modules can be located in different locations and can perform different steps of the method described herein and / or different parts of a single step.
[0059] Return to Figure 3 In some embodiments, system 300 may include at least one user interface 304. In some embodiments, user interface 304 may be part of a device that also includes one or more other components of system 300 (e.g., processor 302, memory 306, and / or one or more other components of system 300). In alternative embodiments, user interface 304 may be part of a separate device to the other components of system 300.
[0060] The user interface 304 can be used in providing information generated by the method according to the embodiments herein to a user of the system 300 (e.g., a researcher such as a medical researcher, a medical professional, or any other user of a neural network model). When executed by the processor 302, the instruction set can cause the processor 302 to control one or more user interfaces 304 to provide information generated by the method according to the embodiments herein. Alternatively or additionally, the user interface 304 can be configured to receive user input. In other words, the user interface 304 can allow a user of the system 300 to manually enter instructions, data, or information. When executed by the processor 302, the instruction set can cause the processor 302 to collect user input from one or more user interfaces 304.
[0061] The user interface 304 may be any user interface that enables information, data, or signals to be drawn (or output or displayed) to a user of the system 300. Alternatively or additionally, the user interface 304 may be any user interface that enables a user of the system 300 to provide user input, interact with the system 300, and / or control the system 300. For example, the user interface 304 may include one or more switches, one or more buttons, a keypad, a keyboard, a mouse, a mouse wheel, a touch screen (e.g., on a tablet or smartphone) or an application, a display screen, a graphical user interface (GUI) or other visual rendering component, one or more speakers, one or more microphones or any other audio component, one or more lights, a component for providing tactile feedback (e.g., a vibration function), or any other user interface, or combination of user interfaces.
[0062] In some embodiments, Figure 3 , system 300 may also include a communication interface (or circuit) 308 for enabling system 300 to communicate with interfaces, memories, and / or devices that are part of system 300. Communication interface 308 may communicate with any interface, memory, and device wirelessly or via a wired connection.
[0063] It should be realized that Figure 3 Only components necessary to illustrate this aspect of the disclosure are shown, and in actual implementations, system 300 may include components other than those shown. For example, system 300 may include a battery or other power source for providing power to system 300, or a device for connecting system 300 to a mains power source.
[0064] The system 300 is for training a neural network model and utilizing a regularization parameter to reduce the likelihood and / or effect of overfitting through the model. In brief, the system 300 is configured for training a neural network model and includes a memory 306 including instruction data representing an instruction set; and a processor 302 configured to communicate with the memory 306 and execute the instruction set. When executed by the processor 302, the instruction set causes the processor 302 to receive training data including a first set of annotated images, receive test data including a second set of annotated images, train the neural network model based on an initial regularization parameter using the training data, and iteratively perform a modification process. The modification process includes testing the trained neural network model using the test data to determine a loss function of the trained neural network model for the test data; adjusting the initial regularization parameter based on the loss function of the neural network model for the training data and the loss function of the neural network model; and retraining the neural network model based on the adjusted regularization parameter using the training data. The modification process is performed until it is determined that the loss function for the training data and the loss function for the test data have converged to a stable state.
[0065] Such a system is based on the recognition that adjusting the regularization parameter based on a comparison between the loss functions of the training data and the test data enables a determination to be performed whether overfitting has occurred. Thus, modification of the regularization parameter can be made dependent on a determination of whether the neural network is overfitting or underfitting.
[0066] Generally, the neural network model may include a feedforward model (such as a convolutional neural network, an autoencoder neural network model, a probabilistic neural network model, and a time-delay neural network model), a radial basis function network model, a recursive neural network model (such as a fully recursive model, a Hopfield model, or a Boltzmann machine model), or any other type of neural network model including weights.
[0067] The model can be used to classify data. The data can be any type of data, such as data including images (e.g., image data), data including text (such as files or records), audio data, or any other type of data that can be classified by a neural network model. In some embodiments, the data includes medical data, such as medical images (e.g., X-ray images, ultrasound images, etc.) or medical records.
[0068] In some embodiments, the model can be trained to generate one or more classifications (eg, labels) for the data. In some embodiments, the model can be used to classify medical imaging data of a specific anatomical structure, such as the vascular system, the heart, or any other anatomical structure.
[0069] In some embodiments, the model can be used to detect the presence of an object in an image. In other embodiments, the model can be used to identify the location of an object in an image. Figure 4 An example image including a stent is shown in FIG. 4 , which shows a stent 400 with each end of the stent marked by two balloon markers 402 and 404. In some embodiments, the model can be trained to process images such as Figure 4 ), and generates an output indicating whether a stent is present in the medical image (e.g., a stent detection model). In this embodiment, the output layer of the model may have two neurons suitable for binary output, for example, the first model may output that a stent is present in the image or that a stent is not present in the image.
[0070] In other embodiments, the model can be trained to process data (such as Figure 4 Instead of detecting the presence of a scaffold, the model can be trained to produce a different output. Figure 4 Also shown in the figure is a bounding box 406 indicating the range of the stent 400. In some embodiments, the output layer of the model may include four neurons, the first pair corresponding to the xy coordinates of the center of the bounding box 406 surrounding the stent, and the second pair corresponding to the width and height of the bounding box. In this way, the position of the stent 400 can be output for each medical image. It should be appreciated that, however, these are merely examples, and the output layer of the model may include other numbers of neurons that produce different outputs. For example, instead of generating the coordinates and size of a bounding box (e.g., box 406), the model may be trained to output the x, y coordinates of one or both ends of the stent (e.g., balloon markers 402, 404) in the image.
[0071] Reference again Figure 3 As mentioned above, when executed by the processor 302, the instruction set causes the processor to receive training data including a first set of annotated images. The training data may, for example, include a plurality of images (such as medical images) with annotations (e.g., markings) that are marked on the images or otherwise included in image data associated with the plurality of images. As in the examples given above, the annotations may include an indication of the presence (or absence) of an object (e.g., a stent) in the image, or the location (x, y coordinates and / or dimensions of a bounding box) of an object in the image. The annotations included in the images of the training data may, for example, be created or provided by a medical professional who has examined the images and indicates the presence and / or location of a specific object in the images.
[0072] As will be apparent to those familiar with neural networks, the weights of neurons in one or more layers of the neural network can be adjusted based on the training data. In order to reduce the effects of overfitting, an initial regularization parameter can be applied to the neural network model. As mentioned above, the regularization parameter can include at least one of a dropout parameter associated with neurons in the neural network model or a dropconnect parameter associated with connections between neurons in the neural network model. In some embodiments, the regularization parameter can include a combination of dropout and dropconnect parameters such that some neurons are ignored and some connections between neurons are ignored during training.
[0073] The initial regularization parameter can be selected arbitrarily. In some embodiments, the initial regularization parameter can be a given predetermined value, such as 0.5. The value of 0.5 causes 50% of the neurons or connections to be temporarily ignored. By "temporarily", it is meant that the proportion of ignored neurons or connections will change when the regularization parameter is changed to different values. If the regularization value is set to 0, then no neurons or connections will be ignored. In some embodiments, the regularization parameter can be changed after one generation (i.e., after all training data have been fed into the neural network once). In other embodiments, the regularization parameter can be changed when a batch of total training data (e.g., a subset of 16, 32, 64, 128 or 256 items) has been fed into the neural network (i.e., when the training step has been completed).
[0074] As mentioned above, training a neural network model involves updating the weights of neurons in the model as training data is presented to the model and as the model "learns" from the training data. Thus, in some embodiments, causing processor 302 to retrain a neural network model may include causing the processor to set the weights of neurons in one or more layers of the model based on the weights of the neurons during a previous iteration.
[0075] After a certain amount of training (e.g., after a certain amount of training data has been presented to the model, such as after multiple generations or after the loss function converges to a stable state), the regularization parameter is adjusted and the neural network model is retrained or further trained using the adjusted regularization parameter (i.e., using a different proportion of ignored neurons or connections in the model). This cycle of adjusting the regularization parameter and retraining the model can be repeated, and in this way, the adjustment of the regularization parameter is said to be iterative. Retraining the neural network model can involve presenting the model with training data that has been used to train the model. However, with different regularization parameters, different combinations of neurons and / or connections are activated in the model, and therefore, the training of the model can be improved even when the same set of training data is presented. Retraining of the neural network model using an adjusted dropout parameter can be considered a fine-tuning process, whereby normal training of the model (e.g., by updating the weights of the model) is improved due to the changed regularization parameter.
[0076] As training progresses and the weights of the neurons in the neural network are updated, the loss function (also known as the cost function) of the model can decrease. The loss function of the model quantifies how accurately the model performs. For example, in a neural network model used for object localization (e.g., a model used to determine the position of an object in a medical image), when the model is in the early stages of training, the loss function may initially be relatively high (e.g., the position of the object may be accurate to within about 20 pixels). As the training of the model proceeds, the loss function may improve (i.e., decrease) because the position of the object is more accurately determined by the model (e.g., accurate to within about 5 pixels). The accuracy of the model may reach a maximum value, at which point further training of the model is unlikely to further improve the accuracy of the model, and the loss function cannot be further reduced. At this stage, the loss function is deemed to have converged or minimized. It should be appreciated that the maximum accuracy of the model cannot constitute 100% accuracy, but may constitute an accuracy that is the best achievable accuracy considering the parameters of the neural network model and the available training data.
[0077] As mentioned above, when executed by processor 302, the instruction set also causes the processor to receive test data including a second set of images; and to test the neural network model using the test data. The test data may, for example, include a second set of images that are different from the first set of images in the training data. The loss function associated with the test data (which may also be referred to as the hold-out data) and the loss function associated with the training data are used together to determine how to change the parameters (such as the regularization parameter) of the neural network model. For example, when the trained neural network is tested using the test data (i.e., when the second set of images is presented to the neural network model in the testing phase), a line search technique may be used to identify the regularization parameter that results in the minimum loss function of the model (i.e., the regularization parameter that minimizes the loss function). In some examples, the amount of increasing or decreasing the regularization parameter may be determined based on a heuristic. As explained below, changes to the regularization parameter may be implemented by multiplying the parameter by some constant (i.e., greater than 1 to increase the parameter, and less than 1 to decrease the parameter). Therefore, adjustments to the regularization parameter may be based on changes in the loss function between iterations of testing the neural network.
[0078] The choice of how to change the regularization parameter between iterations of retraining the neural network model can be based on how the loss function of the model (for training data and test data) changes. In some embodiments, causing the processor 302 to adjust the regularization parameter may include causing the processor to increase the regularization parameter when it is determined that the loss function of the model is higher for the test data than for the training data and the loss function has been minimized or converged for the training data. If the loss function of the model for the training data has been minimized (i.e., converged to an optimal value) but the loss function for the test data is relatively higher, then this can be a sign of overfitting. Therefore, increasing the regularization parameter in this case can help prevent the model from overfitting the data. The amount by which the regularization parameter is increased can be based on the results seen from presenting the test data to the neural network model. In some embodiments, the regularization parameter can be increased by a factor α (i.e., α multiplied by the current regularization parameter), where α>1 (but not so large that the regularization parameter is greater than 1). Of course, this adjustment will cause the increased number of neurons or connections to be temporarily ignored in the next iteration of the training model. The neural network model is then retrained using the increased regularization parameter.
[0079] In some embodiments, causing the processor 302 to adjust the regularization parameter may include causing the processor to decrease the regularization parameter when the loss function for the training data is greater than or equal to the loss function for the test data. This may indicate that the neural network is underfitting.
[0080] In some embodiments, causing the processor to adjust the regularization parameter may include causing the processor to reduce the regularization parameter when it is determined that the loss function of the model has converged to a stable state for the training data and the test data. It will be apparent to those skilled in the art that the loss function for the training data and the test data does not have to converge to the same value. In this case, because the loss function of the model for both the training data and the test data has converged (whether it has converged to a relatively high value or a value near or at an optimal value), it can be determined that the neural network model is "learning" well from the training data. Therefore, the learned weights of the neurons are used as initial weights for a new training process (e.g., using new training data), and the regularization parameter is reduced. The regularization parameter can, for example, be reduced by a factor β (i.e., β (multiplied by the current regularization parameter), where. 0<β<1. Of course, this adjustment will result in fewer neurons or connections being temporarily ignored in the next iteration of the training model. As above, the amount by which the regularization parameter is reduced can be based on the results seen from presenting the test data to the neural network model. The neural network model can then be retrained using the reduced regularization parameter and updated neuron weights.
[0081] It has been found that by applying the techniques described above, training of the neural network model can be achieved quickly and efficiently. In some embodiments, when executed by the processor 302, the instruction set can further cause the processor to end the training of the neural network model when it is determined that the loss function is minimized (or converged) for the training data and the test data. Therefore, once the loss function of the model is considered to converge, and the value at which the loss function converges is its optimal value (i.e., as small as possible), the loss function can be considered to have been minimized, so that no further training of the model is required. The training of the neural network model is therefore terminated at this stage.
[0082] The adjustment of the regularization parameter is thus based on the convergence of the loss function of the model. That is, when the loss function changes with the training process, the regularization parameter is adjusted accordingly with the intention of making the loss function converge faster and converge to a smaller (i.e., better) value. In general, the regularization parameter is adjusted as the neural network model is trained until the loss function converges to a stable state. In this context, a stable state is considered to be a state in which the loss function changes by less than a defined amount or changes within a defined threshold. In a stable state, the loss function can be approximately constant. In some embodiments, when the loss function changes by less than a defined amount between subsequent iterations, the loss function of the model can be considered to have converged to a stable state.
[0083] As mentioned above, neural network models can be used to classify or annotate images, for example, annotating images with indications or locations of objects in the images. Thus, in some embodiments, the training data can include images annotated with at least one of: an indication of the presence of an object in the image; and an indication of the location of an object in the image. In some embodiments, the training data can include medical images. However, it will be appreciated by those skilled in the art that the systems and methods described herein can be used in conjunction with neural network models trained on other types of data.
[0084] Yet another aspect of the present invention relates to a method for training a neural network model. Figure 5 A computer-implemented method 500 for training a neural network model according to an embodiment is illustrated. The illustrated method 500 can generally be performed by or under the control of the processor 302 of the system 300. According to some embodiments, the method 500 can be partially or fully automated.
[0085] Method 500 includes, at step 502, receiving training data including a first set of annotated images. As mentioned above, the images may include medical images, and the annotations in the images may include indications of the presence of an object (e.g., a stent), and / or indications of the location of the object.
[0086] At step 503 , method 500 includes receiving test data including a second set of annotated images.
[0087] At step 504, method 500 includes training the neural network model based on an initial regularization parameter using the training data. The initial regularization parameter may be selected arbitrarily or randomly and represents the proportion of neurons or connections between neurons that are temporarily ignored or omitted during training.
[0088] Method 500 includes, at step 506, iteratively performing the following steps: using the test data to test 506A the trained neural network model to determine the loss function of the trained neural network model for the test data; adjusting 506B the initial regularization parameter based on the loss function of the neural network model for the training data and the loss function of the neural network model; using the training data to retrain 506C the neural network model based on the adjusted regularization parameter, wherein the iterative steps are performed until it is determined that the loss function for the training data and the loss function for the test data have converged to a stable state.
[0089] The iterative adjustment of the regularization parameter is indicated by arrow 508 .
[0090] According to yet another aspect, a computer program product is provided. Figure 6A computer readable medium 602 and a computer 604 are schematically shown. According to an embodiment, a computer program product comprises a computer readable medium 602 having a computer readable code implemented therein, the computer readable code being configured such that, when executed by a suitable computer 604 or processor 302, the computer or processor is caused to perform one or more methods described herein. It will therefore be appreciated that the present disclosure also applies to computer programs, in particular computer programs on or in a carrier suitable for putting the embodiments into practice. The program may be in the form of source code, object code, a code intermediate source and object code such as in a partially compiled form, or in any other form suitable for implementing the methods according to the embodiments described herein.
[0091] The computer 604 or processor 302 can include one or more processors, processing units, multi-core processors, or modules configured or programmed to control the system 300 in the manner described herein. In particular embodiments, the computer 604 or processor 302 can include a plurality of software and / or hardware modules each configured or operable to perform individual or multiple steps of the methods described herein.
[0092] The term "module" as used herein is intended to include a hardware component such as a processor or a component of a processor configured to perform a specific function or a software component such as an instruction set data having a specific function when executed by a processor.
[0093] It will be appreciated that embodiments of the present invention also apply to computer programs, particularly computer programs on or in a carrier, which are suitable for putting the present invention into practice. The program may be in the form of source code, object code, code intermediate source and object code such as in partially compiled form, or in any other form suitable for implementing the method according to an embodiment of the present invention. It should also be appreciated that such a program may have many different architectural designs. For example, the program code implementing the functions of the method or system according to the present invention may be subdivided into one or more subroutines. Many different ways of distributing functions between these subroutines will be apparent to those skilled in the art. The subroutines may be stored together in an executable file to form a self-contained program. Such an executable file may include computer executable instructions, such as processor instructions and / or interpreter instructions (e.g., Java interpreter instructions). Alternatively, one or more or all subroutines may be stored in at least one external library file and linked to a main program statically or dynamically (e.g., at runtime). The main program includes at least one call to at least one subroutine. The subroutines may also include function calls to each other. An embodiment relating to a computer program product includes computer executable instructions corresponding to each processing stage of at least one method proposed herein. These instructions may be subdivided into subroutines and / or stored in one or more files that may be linked statically or dynamically. Another embodiment relating to a computer program product includes computer executable instructions corresponding to each unit of at least one of the systems and / or products presented herein. These instructions may be subdivided into subroutines and / or stored in one or more files that may be linked statically or dynamically.
[0094] The carrier of a computer program may be any entity or device capable of carrying the program. For example, the carrier may include a storage device, such as a ROM (e.g., a CD ROM or a semiconductor ROM), or a magnetic recording medium (e.g., a hard disk). In addition, the carrier may be a transmissible carrier such as an electrical or optical signal, which may be communicated via an electrical or optical cable or by radio or other means. When the program is embodied in such a signal, the carrier may be composed of such a cable or other device or unit. Alternatively, the carrier may be an integrated circuit in which the program is embodied, the integrated circuit being suitable for executing the relevant method, or for the execution of the relevant method.
[0095] By studying the drawings, the specification and the claims, those skilled in the art can understand and implement other variations of the disclosed embodiments when practicing the claimed invention. In the claims, the word "comprising" does not exclude other elements or steps, and the words "one" or "an" do not exclude multiple. A single processor or other unit can implement the functions of several items recorded in the claims. Although certain measures are recorded in mutually different dependent claims, this does not indicate that a combination of these measures cannot be used to advantage. The computer program can be stored / distributed on a suitable medium, such as an optical storage medium or solid-state medium supplied together with other hardware or as part of other hardware, but can also be distributed in other forms, such as via the Internet or other wired or wireless telecommunication systems. Any figure mark in the claims should not be interpreted as limiting the scope.
Claims
1. A system (300) configured for training a neural network model, the system (300) comprising: a memory (306) comprising instruction data representing an instruction set; as well as A processor (302) configured to communicate with the memory (306) and execute the set of instructions, wherein when executed by the processor, the set of instructions causes the processor to: receiving training data comprising a first set of annotated images; receiving test data comprising a second set of annotated images; Using the training data to train the neural network model based on an initial regularization parameter to determine a loss function of the neural network model for the training data; and Perform the following steps iteratively: Using the test data to test the trained neural network model to determine a loss function of the neural network model for the test data; adjusting the initial regularization parameter based on the loss function of the neural network model for the training data and the loss function of the neural network model for the test data; and retraining the neural network model based on the adjusted initial regularization parameter using the training data; The iterative step is performed until it is determined that the loss function for the training data and the loss function for the test data have converged to a stable state.
2. The system (300) according to claim 1, wherein: The initial regularization parameter includes at least one of the following: a dropout parameter associated with a neuron in the neural network model or a dropconnect parameter associated with a connection between neurons in the neural network model.
3. The system (300) according to claim 1 or 2, wherein: The adjustment of the initial regularization parameter is based on a difference between the loss function of the neural network model for the training data and the loss function of the neural network model for the test data.
4. The system (300) according to claim 1 or 2, wherein: Causing the processor (302) to adjust the initial regularization parameter includes, when it is determined that the loss function of the neural network model is higher for the test data than for the training data and the loss function has been minimized for the training data, causing the processor to increase the initial regularization parameter.
5. The system (300) according to claim 1 or 2, wherein: Causing the processor (302) to adjust the initial regularization parameter includes, when determining that the loss function of the neural network model is higher for the training data than for the test data, causing the processor to decrease the initial regularization parameter.
6. The system (300) according to claim 1 or 2, wherein: Causing the processor (302) to train the neural network model or retrain the neural network model includes iteratively training the neural network model using the training data until a loss function of the neural network model for the training data converges to a stable state.
7. The system (300) of claim 6, wherein: Causing the processor (302) to retrain the neural network model includes causing the processor to set weights of the neurons based on weights of neurons in one or more layers of the neural network model during a previous iteration.
8. The system (300) of claim 6, wherein: When the loss function of the neural network model changes by less than a defined amount between subsequent iterations, the loss function of the neural network model for the training data is considered to have converged to a stable state.
9. The system (300) according to claim 1 or 2, wherein: The training data and the test data both include images annotated with at least one of: an indication of the presence of an object in the image; and an indication of the location of an object in the image.
10. The system (300) of claim 9, wherein: Both the training data and the testing data include medical images.
11. The system (300) according to claim 1 or 2, wherein: The initial regularization parameter defines the proportion of neurons or connections between neurons to be temporarily excluded from a specific layer of the neural network model during training.
12. A method (500) for training a neural network model, the method comprising: receiving training data comprising a first set of annotated images; receiving test data comprising a second set of annotated images; Using the training data to train the neural network model based on an initial regularization parameter to determine a loss function of the neural network model for the training data; and Perform the following steps iteratively: Using the test data to test the trained neural network model to determine a loss function of the neural network model for the test data; adjusting the initial regularization parameter based on the loss function of the neural network model for the training data and the loss function of the neural network model for the test data; retraining the neural network model based on the adjusted initial regularization parameter using the training data; The iterative step is performed until it is determined that the loss function for the training data and the loss function for the test data have converged to a stable state.
13. A computer program product comprising a non-transitory computer readable medium having computer readable code embodied therein, the computer readable code being configured to, when executed by a suitable computer (604) or processor (302), cause the computer or processor to perform the method according to claim 12.
