Multi-modal MRI (Magnetic Resonance Imaging) brain tumor medical image segmentation method based on fractional gradient

By introducing fractional calculus, improving Adagrad and Adam optimizers and integrating historical gradient information, the limitations of traditional integer gradient optimizers in utilizing historical gradient information are solved, achieving more efficient and accurate network training and ensuring model convergence. to the correct extreme point.

CN118762035APending Publication Date: 2024-10-11HUBEI NORMAL UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410888956.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-04
Publication Date
2024-10-11

AI Technical Summary

Technical Problem

Traditional integer-level gradient optimizers have limitations in utilizing historical gradient information, resulting in poor training results and are easily affected by local optimal solutions, making it difficult to achieve rapid convergence and efficient optimization.

Method used

Introducing fractional-order calculus, integrating historical gradient information through fractional-order Adagrad and Adam optimizers, using generalized binomial expansion and truncation strategies to optimize parameter update formulas and enhance network training efficiency and accuracy.

Benefits of technology

It effectively improves the efficiency and accuracy of network training, ensures that the model converges to the correct extreme point, reduces the risk of local optimal solutions, and improves the robustness and flexibility of the optimization process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118762035A_ABST
    Figure CN118762035A_ABST
Patent Text Reader

Abstract

The invention discloses a multi-modal MRI (Magnetic Resonance Imaging) brain tumor medical image segmentation method based on fractional order gradient, and relates to the field of fractional calculus, and the technical scheme of the invention is based on fractional order variants of Adagrad and Adam defined by Grunwald-Letnikov fractional order derivatives, namely fractional order Adagrad (FAdagrad, FAdagrad) and fractional order Adam (FractionalAdam, FAdam). The method is not only based on the current iteration gradient information, but also integrates the historical gradient information, and aims to improve the efficiency and accuracy of network training. Historical gradient information is effectively integrated to enhance network training efficiency and accuracy.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to a multimodal MRI brain tumor medical image segmentation method based on fractional gradient, and mainly relates to the field of fractional calculus. Background Art

[0002] In optimizer design, traditional methods such as Stochastic Gradient Descent (SGD) are slow in convergence and susceptible to local optimal solutions, but they still lay the foundation for subsequent progress. Enhanced versions of SGD, including momentum SGD and Nesterov accelerated gradient, integrate momentum terms to accelerate convergence and minimize the risk of suboptimal solutions. Adaptive optimizers such as Adagrad, Adadelta, RMSpro, and Adam are expected to achieve faster convergence through automatic learning rate adjustment, despite potential stability issues. AdamW, as an improved version of the Adam algorithm, incorporates a weight decay mechanism to avoid overfitting, and combines hybrid weight adjustment with regularization techniques to achieve a more precise and controllable optimization process.

[0003] Although traditional optimizers such as SGD, Adagrad, and Adam are very efficient in utilizing integer-order gradients, they have limitations in fully utilizing historical gradient information to optimize models, because integer-order calculus limits their ability to incorporate past historical gradient information into the optimization process, which may lead to poor training results. Summary of the invention

[0004] In view of the above shortcomings of the prior art, the present invention proposes a multimodal MRI brain tumor medical image segmentation method based on fractional gradient, which effectively integrates historical gradient information to enhance the network training efficiency and accuracy.

[0005] To achieve the above object, the technical solution of the present invention is as follows:

[0006] The fractional-order Adagrad is as follows:

[0007] The Adagrad method parameters are updated as follows:

[0008]

[0009] Where S t The cumulative squared gradient is calculated, and ε is a minimum

[0010] S t The calculation process is changed to the first-order difference form as follows:

[0011]

[0012] The above formula is generalized to fractional order form and C r (q) Substituting for the generalized binomial expansion, we can obtain the following:

[0013]

[0014] Expanding the cumulative formula yields:

[0015]

[0016] Combining the above two formulas, we get the fractional-order update formula of S:

[0017]

[0018] A hyperparameter is introduced to specify the history length used to limit each iteration. The structure of the equation is as follows:

[0019]

[0020] When γ is 1, the iterative formula degenerates to an integer order.

[0021] Preferably, the fractional-order Adam is as follows:

[0022] The update formula is:

[0023]

[0024] Where β1 is the momentum decay rate, β2 is the learning rate decay rate;

[0025] The iterative calculation process in the above formula is degraded to the calculation form in Adagrad, and the iterative process is degraded to the form in the momentum method as follows:

[0026]

[0027] Where α is the momentum parameter;

[0028] Let α = 1, and the fractional-order generalized calculation process similar to Adagrad can obtain the iterative formula of fractional-order Adam:

[0029]

[0031] The technical principles and beneficial effects of the present invention are as follows:

[0032] This scheme introduces fractional-order Adagrad and Adam optimizers based on fractional-order calculus, which effectively integrates historical gradient information to enhance network training efficiency and accuracy. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only five of the drawings of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0034] Figure 1 To visualize the Γ function for different values ​​of γ;

[0035] Figure 2 Compare the loss curves of the standard optimizer and the fractional optimizer on the CIFAR100 dataset;

[0036] Figure 3 Comparison of different order accuracies on the BraTS2021 dataset;

[0037] Figure 4 Comparison of average gradient norm on the BraTS2021 dataset;

[0038] Figure 5 Comparison of parameter distribution on the BraTS2021 dataset. DETAILED DESCRIPTION

[0039] The technical solutions in the present invention will be described clearly and completely below in conjunction with the accompanying drawings. Obviously, the described embodiments are only preferred embodiments of the present invention, not all embodiments. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0040] Example

[0041] 1 Fractional Calculus

[0042] Fractional calculus is an extension of integer calculus. By introducing non-integer orders as degrees of freedom, a wider range of values ​​can be obtained and the computational flexibility of the same function can be enhanced, thus providing an expanded range of optimization advantages for optimizers based on fractional calculus. There are several different definitions of fractional calculus. The specific formulas of Grünwald-Letnikov and Caputo definitions are given according to the needs of the proofs in the following text.

[0043] Grünwald-Letnikov calculus definition:

[0044]

[0045] Caputo Calculus Definition:

[0046]

[0047] 2 Calculation of fractional difference:

[0048] Assume variable X(t), the difference form of the variable can be expressed as:

[0049] Δ γ X=X(t)-X(t-1)

[0050] Where γ is the difference order of the variable, and when γ = 1, it is a first-order difference operation;

[0051] When γ≠1, the difference operation is converted to fractional order;

[0052] Corresponding to the γ-order Grünwald-Letnikov difference definition, it can be expressed as:

[0053]

[0054] Where T represents the sampling period of the differential variable, which is equivalent to the iteration of the batch in the deep neural network training, so T=1;

[0055] The generalized binomial coefficient is expressed as follows:

[0056]

[0057] Where Γ is the gamma function. When the order γ is fixed, the binomial coefficient can be regarded as a function with q as the independent variable, defined as C r (q);

[0058] like Figure 1 As shown, C r (q) will decrease rapidly as the q value increases and oscillate and converge to 0.

[0059] 3 Fractional Order Optimizer

[0060] 3.1 The fractional-order SGD optimizer is as follows:

[0061] Stochastic gradient descent is the cornerstone of all common deep learning optimizations, and the formula is:

[0062]

[0063] where x t is the weight of the tth iteration, b t is the bias of the tth iteration. L is the loss function, and η is the initial learning rate. Since weights and biases are parameters that need to be learned in deep neural networks and have the same calculation paradigm in the same algorithm, the subsequent calculations and proofs in this chapter are based on weights.

[0064]

[0065] Fractional differentials are non-local operators with long-term memory properties.

[0066] When using fractional differentials to update the gradient, the long-term memory characteristics are eliminated to ensure convergence to the correct extreme point. The fractional differential calculation process is truncated so that it no longer has a fixed lower limit of integration but is only related to the value of the previous iteration.

[0067] Based on Caputo's definition, it can be expressed as:

[0068]

[0069] Fractional SGD can be optimized as:

[0070]

[0071] If the above equation can converge, then the convergence point must be the extreme point. In order to eliminate x1-x t-1 <0, the computational complexity caused by the complex terms, fractional SGD can be optimized as:

[0072]

[0073] When γ = 1, the above equation degenerates into the general form of integer-order SGD. To more clearly understand the concepts discussed, the following pseudo code outlines the implementation of the FSGD algorithm. The parameter update process based on the fractional order method is demonstrated.

[0074] 3.2 Fractional-order Adagrad is as follows:

[0075] The learning rate is one of the important hyperparameters in neural network training, which affects the convergence speed and final accuracy of the model. As the number of iterations increases, the unchanging learning rate obviously cannot meet the optimization requirements. Duchi et al. modified the stochastic gradient algorithm and proposed the Adagrad method for automatically adjusting the learning rate. This method makes large updates to sparse parameters and small updates to frequent parameters. The Adagrad method parameter updates are as follows:

[0076]

[0077] Where S t The cumulative squared gradient is calculated to be a minimum value to prevent the denominator from being zero. There are no other hyperparameters in the Adagrad calculation formula, which makes it unnecessary to add additional restrictions when converting it to fractional form.

[0078] S t The calculation process is changed to the first-order difference form as follows:

[0079]

[0080] The above formula is generalized to fractional order form and C r (q) Substituting for the generalized binomial expansion, we can obtain the following:

[0081]

[0082] Expanding the cumulative formula yields:

[0083]

[0084] Combining the above two formulas, we get the fractional-order update formula of S:

[0085]

[0086] A key factor to consider during the iterative process of updating the variable S is the computational cost and the requirements of the hardware used. To address these issues efficiently, we introduce a hyperparameter ι that specifies the length of history used to limit each iteration. This restriction stems from the realization that as the length of history increases, the impact of past data on the current value of the new dollar will be greatly weakened. The implementation found is effective and provides a balance between flexibility and update efficiency. The structure of the update improvement equation that embodies this strategy is as follows:

[0087]

[0088]

[0089] When γ is 1, the iterative formula degenerates to an integer order.

[0090] RMSProp modifies the Adagrad algorithm to break through the local minimum in the non-convex optimization process. In Adagrad, S shrinks the learning rate according to the entire history of the squared gradient, which may make the learning rate too small before reaching the optimal point. RMSProp uses exponential decay averaging to discard learning rate data from distant history, which is similar to fractional Adagrad with truncation.

[0091] The specific iterative formula of RMSProp is as follows:

[0092]

[0093] Both Fadagrad and RMSProp algorithms selectively incorporate historical gradient information to adjust the learning rate for the current step. However, a notable difference lies in the way Fadagrad inherits this information, which uniquely uses both addition and subtraction, rather than just addition. This strategy enhances the robustness of the optimization process, ensuring stability even in the face of gradients with unusually large or small values ​​through subsequent sign changes. This feature greatly improves the adaptability and effectiveness of the Fadagrad algorithm in the field of optimization. After a theoretical description of fractional Adagrad, we proceed to describe its procedural implementation in pseudocode. This description clarifies the method by which the algorithm iteratively updates the model parameters.

[0094] 3.3 Fractional Adam:

[0095] The Adam algorithm is an effective combination of Adagrad and momentum method. It is widely used in the optimization process of various deep neural networks because it is considered to be quite robust to the selection of hyperparameters. The update formula is:

[0096]

[0097] Where β1 is the momentum decay rate, β 21 is the learning rate decay rate;

[0098] The iterative calculation process in the above formula is degraded to the calculation form in Adagrad, and the iterative process is degraded to the form in the momentum method as follows:

[0099]

[0100] Where α is the momentum parameter;

[0101] Let α = 1, and the fractional-order generalized calculation process similar to Adagrad can obtain the iterative formula of fractional-order Adam:

[0102]

[0103] Typically, above. The fractional-order variant makes slight modifications to the parameter update mechanism compared to the traditional Adam algorithm. These modifications are highlighted in the pseudocode provided below, which shows the key role of fractional-order calculations in this method. Its penalty term is relatively small and does not achieve the desired effect of imposing a larger penalty on larger weights. This is because, in the Adam algorithm, the penalty term is divided by the accumulation of squared gradients. Fractional-order Adam solves this problem by using a gamma function. By incorporating a weight decay term, FAdam aligns its objective with that of AdamW, enabling its application in training networks with attention-based mechanisms similar to those used in BERT.

[0104]

[0105] 3.4 Convergence Proof of Fractional Adaptive Learning Rate Optimization Algorithm

[0106] The biggest problem with using fractional calculus instead of integer-order derivatives in the training process of deep neural networks is that it can neither guarantee the convergence of the model nor guarantee that the convergence point is the optimal point or the better point.

[0107] Take SGD as an example:

[0108] x t =x t-1 -η·Δ γ L(x)

[0109] Δ γ L(x) represents the γ-order derivative of the loss function. Corresponding to the definition of Caputo fractional calculus, this calculation process can be expressed as:

[0110]

[0111] Where n is the largest integer less than γ, and represents the lower and upper bounds of the differential, where

[0112] Usually it is taken as 0, and the definition of Γ(X) function is the same as above. Taylor series expansion of the above equation gives:

[0113]

[0114] Combining the above formulas, we get the SGD algorithm that directly uses fractional-order derivatives instead of integer-order derivatives:

[0115]

[0116] If the above formula can converge to the extreme point, then when x approaches infinity, t -x t-1 =0, that is:

[0117]

[0118] This is obviously not only related to x, but also to the differential lower limit and the differential order γ. Therefore, it cannot guarantee convergence. However, the fractional order generalization of the differential form does not have this problem. Taking fractional order Adagrad as an example, if it can converge to the extreme point, then when it approaches infinity, we have:

[0119]

[0120] This has nothing to do with the optimization process of S. It is the same as the integer-order gradient descent algorithm, and it can obviously converge to the extreme point. Fractional-order Adam also has the same property.

[0121] 3.5 Experiments

[0122] 3.5.1 Dataset

[0123] This example uses two datasets: BraTS2021, a 3D MRI brain tumor segmentation dataset, and CIFAR-100, a public image classification task dataset. CIFAR-100 includes 100 categories of images, each with 600 32×32 pixel color images. These categories cover different themes such as animals, plants, vehicles, and food, and are diverse.

[0124] 3.5.2 Evaluation Metrics and Validation Network

[0125] To evaluate the improvements achieved by the three fractional-order optimizers, we used the Dice coefficient on the BraTS2021 dataset, and accuracy (Acc) and F1 scores (F1) on the CIFAR-100 dataset as evaluation metrics. Accuracy measures the ratio of correct predictions to the total number of observations, thus providing a direct measure of performance. The F1 score, which balances precision and recall, is particularly important for models with uneven class distribution because it takes into account both false positives and false negatives. In addition, segmentation tasks are performed on multiple brain tumor image segmentation networks. For example, UNETR, Swim UNETR, and UXNET, this scheme also introduces fractional-order Adagrad and Adam optimizers based on fractional calculus, which effectively integrates historical gradient information to enhance network training efficiency and accuracy.

[0126] Use ShuffleNetV2, Mobilenetv3, MobileViT and other networks to perform classification tasks on the CIFAR-100 dataset.

[0127] 3.5.3 Experimental implementation details

[0128] Our fractional-order optimizer is implemented based on the PyTorch framework and trained on a 3090Ti GPU. The batch size of the BraTS2021 dataset is set to 1, while the batch size of the CIFAR100 dataset is set to 100. To prevent overfitting, we use a series of data augmentation techniques: random cropping, horizontal flipping, and rotation.

[0129] For the adjustment of learning rate, we adopt warm-up and cosine annealing strategies. Under both datasets, the maximum learning rate is set to 4e-4 and the weight decay is 0.05. The maximum learning rates of standard optimizers SGD, Adam and Adagrad are 0.1, 0.001 and 0.0001 respectively. At the same time, the maximum learning rates of our proposed optimizers FSGD, FAdam and FAdagrad are set to 0.1, 0.0001 and 0.0001 respectively.

[0130] 3.5.4 Comparison with the Standard Optimizer

[0131] The experimental results in the following table show the performance differences of different deep learning models in the brain tumor segmentation task when using traditional and improved optimizers during training. By comparing the prediction results of the standard optimizers (SGD, Adam, Adagrad) and the fractional-order optimizers (FSGD, FAdam, FAdagrad) proposed in this chapter in enhancing the tumor area, it can be found that the fractional-order optimizer can improve the Dice coefficient of the model in most cases. When using the FAdam optimizer, Swim UNETR achieved the highest Dice coefficient of 0.891, and on the UNETR model, the application of the FAdam optimizer achieved the greatest performance improvement.

[0132] Experimental results of standard optimizer and fractional-order optimizer in BraTS2021

[0133]

[0134] In the table below, the CIFAR-100 dataset is used to test the performance on a variety of mainstream image classification networks. The experimental results reveal a clear trend that the models of fractional-order optimizers FSGD and FAdam show consistent superiority in terms of Acc and F1 scores compared to models using traditional optimizers. This trend is particularly evident in complex models, such as REGNETX, which shows significant performance improvements when using fractional-order optimization. These enhancements are consistent with our previous experimental findings, further confirming the significant advantages of fractional-order optimizers over traditional integer-order methods.

[0135] Experimental results of standard optimizer and fractional-order optimizer on CIFAR100

[0136]

[0137] 3.5.5 Ablation Experiment

[0138] This experiment aims to explore the effect of different truncation strategies on the performance of brain tumor segmentation task when the network proposed in Chapter 4 is trained using fractional-order optimizers FSGD, FAdam, and FAdagrad. Three different truncation strategies are used for each optimizer. In the application of FSGD optimizer, when truncation ι=5, the model achieves the highest average Dice coefficient of 0.887, indicating that this truncation strategy works best under FSGD optimizer. For FAdam optimizer, the performance is the best when truncation ι=10, with an average Dice coefficient of 0.870. The FAdagrad optimizer shows a slight improvement when truncation ι=15, with an average Dice coefficient of 0.869. These results show the significant impact of different truncation strategies on the performance of various optimizers in brain tumor segmentation tasks, and also point to the performance differences between optimizers, that is, the length of retained historical gradient information is not the longer the better. This provides a feasible truncation length selection to find a balance between flexibility and update efficiency.

[0139] Experimental results of hyperparameters in BraTS2021

[0140]

[0141] 3.5.5 Visualization Analysis

[0142] like Figure 2 As shown in the figure, by comparing on the CIFAR100 dataset, using traditional optimization algorithms and their fractional-order improvements, the effects of different algorithms can be clearly seen. Compared with SGD, FSGD not only shows a smoother loss decline trajectory at the beginning of training, but also achieves lower loss values, especially in the initial stage of training. When comparing Adam and FAdam, FAdam is able to quickly reduce losses at the beginning of training, showing an obvious initial acceleration effect. However, as the training process progresses, the loss curves of Adam and FAdam begin to converge. For the comparison between Adagrad and FAdagrad, FAdagrad shows lower losses throughout the training process, which proves the continued robustness of fractional-order methods in maintaining optimization efficiency.

[0143] Figure 3 The effect of different orders on the accuracy of fractional-order optimizers is intuitively demonstrated. For FSGD, the highest performance is observed when the fractional order is set to 0.75, and the Dice coefficient reaches 0.865. The Fadam optimizer performs best when the fractional order is 0.8, and its Dice coefficient is 0.84. For FAdagrad, the performance is excellent when the fractional order is 0.75, and the Dice coefficient is 0.86. As the fractional order increases, the performance of the three optimizers shows a trend of first increasing and then decreasing, which may indicate that there is an optimal range of fractional orders.

[0144] Figure 4 A comparison of the average gradient norm of different optimizers over 100 training cycles is shown on the BraTS2021 dataset. As can be seen from the top graph, FSGD continues to show lower average gradient norm than SGD throughout the training process. The middle graph reveals that FAdam performs better in terms of gradient norm stability. The bottom graph shows that FAdagrad is able to maintain a lower gradient norm than Adagrad in the later stages of training.

[0145] On the BraTS2021 dataset, Figure 5 A comparison of parameter distributions of different optimization algorithms is provided. The histograms of Adam and Adagrad show significant overlap in weight distributions, mostly concentrated around zero, while the weight distribution of FSGD shows a wider spread, which may reflect the complex variations inherent in medical image features. The sharp central peaks of the weight distributions of Adam and Adagrad indicate convergence to values ​​that are consistent with the underlying patterns of the dataset, while the tighter gradient concentration of FAdam may indicate a more delicate adaptation to the details of the lesion region.

[0146] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. Multimodal MRI brain tumor medical image segmentation method based on fractional gradient, It is characterized in that These include: The fractional-order Adagrad is as follows: The Adagrad method parameters are updated as follows: Where S t The cumulative squared gradient is calculated, and ε is a minimum S t The calculation process is changed to the first-order difference form as follows: The above formula is generalized to fractional order form and C r (q) Substituting for the generalized binomial expansion, we can obtain the following: Expanding the cumulative formula yields: Combining the above two formulas, we get the fractional-order update formula of S: A hyperparameter is introduced to specify the history length used to limit each iteration. The structure of the equation is as follows: When γ is 1, the iterative formula degenerates to an integer order.

2. The multimodal MRI brain tumor medical image segmentation method based on fractional gradient according to claim 1, Features: The fractional order Adam is as follows: The update formula is: where β 1 is the momentum decay rate, β 2 is the learning rate decay rate; The iterative calculation process in the above formula is degraded to the calculation form in Adagrad, and the iterative process is degraded to the form in the momentum method as follows: Where α is the momentum parameter; Let α = 1, and the fractional-order generalized calculation process similar to Adagrad can obtain the iterative formula of fractional-order Adam: