Esophageal squamous cell carcinoma patient survival risk prediction method based on improved dragonfly algorithm

By improving the Dragonfly Algorithm and combining it with KM survival analysis and the KM-HSIDA-BP neural network model, the accuracy and speed issues of the Dragonfly Algorithm in predicting the survival risk of patients with esophageal squamous cell carcinoma were resolved, achieving a more efficient assessment of survival risk.

CN116646086BActive Publication Date: 2026-11-24ZHENGZHOU UNIVERSITY OF LIGHT INDUSTRY
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202310656399.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-06-05
Publication Date
2026-11-24
Estimated Expiration
2043-06-05

AI Technical Summary

Technical Problem

The existing Dragonfly algorithm suffers from low accuracy, slow convergence speed, and poor correlation between model input and output variables in predicting the survival risk of patients with esophageal squamous cell carcinoma, resulting in low prediction accuracy.

Method used

An improved Dragonfly algorithm combined with KM survival analysis was used to screen characteristic variables of clinical data, and a KM-HSIDA-BP neural network model was constructed. The population was initialized through Tent chaotic mapping, and the weights and thresholds of the BP neural network were optimized by adaptively switching the learning strategy and Sigmoid weight factor to avoid local optima and improve the model's prediction accuracy.

Benefits of technology

It improves the accuracy and efficiency of survival risk prediction for patients with esophageal squamous cell carcinoma, simplifies the network structure, reduces the cost of risk prediction, and has good convergence speed and accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116646086B_ABST
    Figure CN116646086B_ABST
Patent Text Reader

Abstract

This invention proposes a survival risk prediction method for esophageal squamous cell carcinoma patients based on an improved Dragonfly Algorithm, addressing the problem of insufficient search capability in the Dragonfly Algorithm. The steps are as follows: First, clinical data of esophageal squamous cell carcinoma patients are acquired, and Kaplan-Müller survival analysis is used to screen the clinical data, obtaining important feature variables significantly related to patient survival risk. Second, the weights and thresholds of the BP neural network are optimized using the improved Dragonfly Algorithm, resulting in a survival prediction model based on the optimized BP neural network. Then, the selected important feature variables are used as input variables, and survival status is used as the output variable to train the survival prediction model based on the optimized BP neural network. Finally, the test sample data is input into the trained survival prediction model based on the optimized BP neural network to complete the survival risk prediction. The model proposed in this invention can more accurately determine the postoperative survival status of esophageal squamous cell carcinoma patients, improving the performance of risk prediction.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of esophageal squamous cell carcinoma risk prediction technology, and in particular to a method for predicting the survival risk of esophageal squamous cell carcinoma patients based on an improved Dragonfly algorithm. Background Technology

[0002] Esophageal squamous cell carcinoma (ESCC) is one of the most common malignant tumors of the digestive system worldwide. Due to its high incidence and mortality rates, it seriously threatens human life and health. ESCC pathology is complex, requiring comprehensive consideration of multiple indicators such as the patient's blood parameters, surgical approach, and final differentiation degree. Furthermore, cancer cells can proliferate indefinitely, transform, and easily metastasize, capable of destroying normal cell tissues, making it complex and variable. In actual clinical practice, there are many surgical methods and therapeutic drugs to choose from. It is difficult to select the optimal treatment plan based solely on clinical diagnostic experience. Rapid and effective analysis and prediction of the survival level of esophageal squamous cell carcinoma patients helps physicians choose appropriate treatment methods and improve patients' quality of life. Therefore, combining predictive methods based on machine learning has become a current research hotspot.

[0003] To address the issue of low accuracy in predicting cancer patient survival rates, recent research has shown the emergence of neural network models based on algorithm optimization. Biomimetic algorithms for optimizing neural networks can be broadly categorized into two types: evolutionary algorithms and swarm intelligence algorithms. The Dragonfly Algorithm, proposed by Seyedali Miralili in 2015, is a novel swarm intelligence optimization algorithm. Like most swarm intelligence algorithms, the Dragonfly Algorithm is a novel intelligent swarm optimization algorithm. Its basic principle involves simulating the social behavior of individual dragonflies, mapping the location of food sources to solutions in a function optimization process, and maneuvering by finding food sources and avoiding predators. Compared to other algorithms, the Dragonfly Algorithm has the advantages of simple structure, few parameters, and ease of implementation.

[0004] While the Dragonfly Optimization algorithm excels in solving most optimization problems, it still suffers from drawbacks such as low accuracy and slow convergence. Furthermore, due to the poor correlation between the model's input and output variables, and the high degree of redundancy and coupling among the variables, the model's poor prediction accuracy has not been adequately addressed. Summary of the Invention

[0005] To address the shortcomings of the Dragonfly Algorithm, such as insufficient search capability, susceptibility to local optima, slow convergence speed, and low solution accuracy, this invention proposes a survival risk prediction method for esophageal squamous cell carcinoma patients based on an improved Dragonfly Algorithm. By constructing a KM-HSIDA-BP neural network model and using HSIDA as the optimizer for BP, the prediction accuracy of the model is improved.

[0006] The technical solution of this invention is implemented as follows:

[0007] A method for predicting survival risk in esophageal squamous cell carcinoma patients based on an improved dragonfly algorithm, the steps of which are as follows:

[0008] Step 1: Obtain clinical data of patients with esophageal squamous cell carcinoma, use KM survival analysis to screen clinical data, and obtain important characteristic variables that are significantly related to the patient's survival risk;

[0009] Step 2: The weights and thresholds of the BP neural network are optimized using the improved Dragonfly algorithm to obtain a survival prediction model based on the optimized BP neural network;

[0010] The improved dragonfly algorithm includes the following steps:

[0011] S1: Initialize the objective function and its parameters, including the maximum number of iterations t. max Population size N max The current iteration number t and the number of times the optimal solution has not been updated M are used to initialize the dragonfly population using the Tent chaotic map;

[0012] S2: Calculate the objective function value based on the objective function, and update the positions of food sources and predators;

[0013] S3: Update parameters s, a, c, f, e, w, and calculate S, A, C, F, E, while updating the search radius r of individual dragonflies; where s is the separation weight, a is the grouping weight, c is the aggregation weight, f is the food influence factor, e is the predator influence factor, and w represents the inertia weight.

[0014] S4. Determine whether the distance from the dragonfly to the food source is greater than its search radius. If yes, proceed to step S5. If not, add a Sigmoid weight factor to update the position.

[0015] S5. Determine whether individual dragonflies are adjacent. If they are, use an adaptive switching learning strategy to update their positions. If not, use a Levy flight strategy to update their positions. The criterion for determining whether individual dragonflies are adjacent is: take the individual dragonfly as the center and check if there are other individual dragonflies within its search radius. All individual dragonflies within the circle are considered to be adjacent.

[0016] S6. Determine whether the current solution is better than the previous solution. If it is, keep the current solution as the optimal solution and set the number of times the optimal solution has not been updated to 0. If not, proceed to step S7.

[0017] S7. Record the number of times the optimal solution has not been updated: M = M + 1;

[0018] S8. Determine whether the number of times the optimal solution has not been updated has reached the threshold. If it has, use Cauchy mutation to generate a new position and set the number of times the optimal solution has not been updated to 0. If not, proceed to step S9.

[0019] S9. If the current iteration count is less than the maximum iteration count, increment the current iteration count by 1 and return to step S3; otherwise, output the optimal solution and the algorithm iteration ends.

[0020] Step 3: Using the key feature variables selected in Step 1 as input variables and survival status as output variables, complete the training of the survival prediction model based on the optimized BP neural network.

[0021] Step 4: Input the test sample data into the trained survival prediction model based on the optimized BP neural network to complete the survival risk prediction.

[0022] The clinical data of the esophageal squamous cell carcinoma patients included white blood cell count (WBCC), total lymphocyte count (TLC), monocyte count (Mono), neutrophil count (Seg), eosinophil count (EC), basophil count (BC), red blood cell count (RBC), hemoglobin concentration (HGB), platelet count (PLT), total protein (TP), albumin (ALB), globulin (GLB), prothrombin time (PT), international normalized ratio (INR), activated partial thromboplastin time (APTT), and thrombin time (Thrombin time). The indicators include time (TT), fibrinogen (FIB), neutrophil-lymphocyte ratio (NLR), lymphocyte-monocyte ratio (LMR), platelet-lymphocyte ratio (PLR), and prognostic nutritional index (PNI).

[0023] The key characteristic variables include WBCC, TLC, Seg, EC, BC, RBC, HGB, PLT, PT, INR, APTT, TT, FIB, PNI, LMR, NLR, and PLR.

[0024] The survival status is classified as follows: esophageal squamous cell carcinoma patients with a survival time of more than 5 years are classified as low-risk patients, and esophageal squamous cell carcinoma patients with a survival time of less than 5 years are classified as high-risk patients.

[0025] The expression for the Tent chaotic mapping is:

[0026]

[0027] In the formula: This is the original location of the dragonfly. To generate new dragonfly positions using chaotic mapping.

[0028] The objective function is the sum of errors of all neurons in the BP neural network:

[0029]

[0030] In the formula: Q is the number of training samples, For the expected output of training sample I, Let I be the output of the k-th output node under the influence of training sample I, and n represent the number of nodes in the input layer.

[0031] In step S3, the calculation methods for S, A, C, F, E, and the search radius r are as follows:

[0032]

[0033]

[0034] In the formula: ub is the upper limit of the search range, lb is the lower limit of the search range; X represents the current individual position, N represents the number of adjacent individuals, X j V represents the position of the j-th neighboring individual, N0 represents the number of neighboring individuals, and V represents the position of the j-th neighboring individual. j Let X represent the velocity of the j-th adjacent individual. + Indicates the location of the food source, X - Indicates the location of the natural enemy; S j A represents the separation degree of the j-th dragonfly individual. j C represents the alignment degree of the j-th dragonfly individual. j F represents the cohesion of the j-th dragonfly individual. j E represents the food attractiveness of the j-th dragonfly individual. jThis represents the predator repulsion force of the j-th dragonfly individual.

[0035] In step S4, the method for adding the Sigmoid type weight factor update position is as follows:

[0036] △X t+1 =(sS) i +aA i +cC i +fF i +eE i )+w△X t ;

[0037]

[0038] X t+1 =h×X t +△X t+1 ;

[0039] In the formula: h represents the Sigmoid type weighting factor, X t Indicates the current position of the individual dragonfly, △X t This indicates the stride length of an individual dragonfly.

[0040] The Levy flight strategy update formula is:

[0041] X t+1 =X t +Levy(d)×X t ;

[0042]

[0043] In the formula, d represents the dimension of the current position, r1 and r2 are d-dimensional random numbers in the [0,1] region, β represents the control factor of Levy's flight, σ is the control parameter of Levy's flight, and Γ(X) = (X-1)!.

[0044] The adaptive switching learning strategy update formula is:

[0045] p=|p0×(1-t / t max )|;

[0046]

[0047] In the formula, p controls the switching of learning modes, p0 is a random value in [-1,1], and X rand Let Z represent a random dragonfly individual, Z = (0.01 * tan(π(l - 0.5))) represent the individual's learning ability, and S = tan(vπ / 2) represent the self-reinforcing ability. Both v and l represent random numbers in the range [0, 1].

[0048] The Cauchy variation formula is:

[0049] X new =X t +X t ×Cauchy(0,1);

[0050] In the formula, Cauchy(0,1) is the standard Cauchy distribution, and X new This indicates the location of the individual dragonfly after the Cauchy mutation.

[0051] Compared with the prior art, the beneficial effects of the present invention are as follows:

[0052] 1) First, the population is initialized through Tent mapping to increase the coverage space of the initial solution and accelerate the convergence speed of the population; during the exploration phase, an adaptive switching learning strategy is proposed to strengthen the communication between individuals in the population and improve the global optimization capability of the algorithm; during the development phase, a Sigmoid type weight factor is added to improve the optimization accuracy of the algorithm; in order to avoid the algorithm getting trapped in local optima, a stagnation mutation strategy is adopted for individuals to increase the search vitality of the algorithm.

[0053] 2) KM analysis was used to screen blood factors that are highly correlated with patient survival, simplifying the network structure.

[0054] 3) The improved Dragonfly algorithm was used as the optimizer for backpropagation and compared with other swarm intelligence algorithms. Under the premise of ensuring stability, it has better convergence speed and convergence accuracy, and has certain competitive advantages.

[0055] 4) A KM-HSIDA-BP survival prediction model was constructed, which can more accurately determine the postoperative survival risk of patients with esophageal squamous cell carcinoma, improve the performance of risk prediction, and reduce the cost of risk prediction. Attached Figure Description

[0056] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0057] Figure 1 This is a flowchart of the improved dragonfly algorithm proposed in this invention.

[0058] Figure 2 The improved Dragonfly algorithm provided in this embodiment of the invention and other swarm intelligence algorithms show the convergence curves of the CEC2021 function with added rotation.

[0059] Figure 3This is a graph showing the convergence curves of the improved Dragonfly algorithm and other swarm intelligence algorithms provided in this invention, with the addition of bias and rotation to the CEC2021 function.

[0060] Figure 4 This is a comparison chart of the evaluation indicators of the six models provided in the embodiments of the present invention.

[0061] Figure 5 This is a comparison diagram of the confusion matrices of the six models provided in the embodiments of the present invention. Detailed Implementation

[0062] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0063] This invention provides a method for predicting the survival risk of esophageal squamous cell carcinoma patients based on an improved dragonfly algorithm, the steps of which are as follows:

[0064] Step 1: Obtain clinical data from patients with esophageal squamous cell carcinoma. Kaplan-Müller survival analysis was used to screen the clinical data and identify key characteristic variables significantly associated with patient survival risk. The clinical data for these patients included white blood cell count (WBCC), total lymphocyte count (TLC), monocyte count (Mono), neutrophil count (Seg), eosinophil count (EC), basophil count (BC), red blood cell count (RBC), hemoglobin concentration (HGB), platelet count (PLT), total protein (TP), albumin (ALB), globulin (GLB), prothrombin time (PT), international normalized ratio (INR), and activated partial thromboplastin time (APT). The following parameters were measured: APTT (Acute Apnea-Trial Time), Thrombin Time (TT), Fibrinogen (FIB), Neutrophil-Lymphocyte Ratio (NLR), Lymphocyte-Monocyte Ratio (LMR), Platelet-Lymphocyte Ratio (PLR), and Prognostic Nutritional Index (PNI).

[0065] Kaplan-Meier (KM) survival analysis is a commonly used method in the medical field for studying survival time in cancer and other diseases. To analyze the influencing factors on survival time in ESCC patients, blood parameters were used as inputs, and survival time was used as the output. SPSS 20.0 statistical software was used for KM survival analysis. The accuracy of variable selection depended on the magnitude of the correlation; a significance level of less than 0.005 was used as the criterion for selecting important characteristic variables. Variables such as WBCC, TLC, Seg, EC, BC, RBC, HGB, PLT, PT, INR, APTT, TT, FIB, PNI, LMR, NLR, and PLR were selected.

[0066] All patients were categorized by survival status: those surviving more than 5 years were classified as low-risk, and those surviving less than 5 years were classified as high-risk. Using variables selected through Kernel-Mutter survival analysis as input and high / low risk as output, a survival prediction model based on a backpropagation neural network was established.

[0067] Step 2: The weights and thresholds of the BP neural network are optimized using the improved Dragonfly algorithm to obtain a survival prediction model based on the optimized BP neural network.

[0068] An excellent swarm intelligence algorithm needs strong global search capabilities during the exploration phase, enabling it to quickly locate the range of globally optimal solutions in the search space. It also needs sufficient mining capabilities during the development phase to improve the algorithm's optimization accuracy. This embodiment proposes an improved Dragonfly algorithm. It initializes the population using a Tent chaotic mapping to increase the coverage space of initial solutions; during the exploration phase, it proposes an adaptive switching learning strategy to enhance communication among individuals in the population, improving the algorithm's global search capability; during the development phase, it adds a Sigmoid-type weight factor to improve the algorithm's optimization accuracy; and finally, it uses a stagnation mutation strategy to avoid the algorithm getting trapped in local optima.

[0069] The improved dragonfly algorithm includes the following steps:

[0070] S1: Initialize the objective function and its parameters, including the maximum number of iterations t. max Set the population size to 500, and the population size N. max Let M be 30, the current iteration number t is 0, the number of times the optimal solution has not been updated is set to 0, and the maximum is 5.

[0071] The Tent chaotic map is used to initialize the dragonfly population. The Tent chaotic map, through a piecewise mapping function, makes the distribution of individual dragonfly positions more uniform, improves the coverage space of the initial solution, and accelerates the convergence speed of the population, thus facilitating better search within the space in the early stages of the algorithm. The Tent mapping formula is shown below:

[0072]

[0073] In the formula: This is the original location of the dragonfly. To generate new dragonfly positions using chaotic mapping.

[0074] S2: Calculate the objective function value based on the objective function and update the positions of food sources and predators; use the sum of errors of each neuron node in the BP neural network as the fitness function to measure the quality of an individual's position in the improved dragonfly algorithm, and determine the position with the current best fitness value. Select the position with the best fitness value as the food source position and the position with the worst fitness value as the predator position.

[0075]

[0076] In the formula: Q is the number of training samples, For the expected output of training sample I, Let I be the output of the k-th output node under the influence of training sample I, and n represent the number of nodes in the input layer.

[0077] S3: Update parameters s, a, c, f, e, w, and calculate S, A, C, F, E, while updating the search radius r of individual dragonflies; where s is the separation weight, a is the grouping weight, c is the aggregation weight, f is the food influence factor, e is the predator influence factor, and w represents the inertia weight.

[0078] The search radius increases with the number of iterations; the larger the number of iterations, the larger the search radius. The specific formula is shown below:

[0079]

[0080]

[0081] In the formula: ub is the upper limit of the search range, lb is the lower limit of the search range; X represents the current individual position, N represents the number of adjacent individuals, X j V represents the position of the j-th neighboring individual, N0 represents the number of neighboring individuals, and V represents the position of the j-th neighboring individual. j Let X represent the velocity of the j-th adjacent individual. + Indicates the location of the food source, X - Indicates the location of the natural enemy; S j A represents the separation degree of the j-th dragonfly individual. j C represents the alignment degree of the j-th dragonfly individual. j F represents the cohesion of the j-th dragonfly individual. j E represents the food attractiveness of the j-th dragonfly individual. j This represents the predator repulsion force of the j-th dragonfly individual.

[0082] S4. Determine whether the distance from the dragonfly to the food source is greater than its search radius. If yes, proceed to step S5. If not, add a Sigmoid weight factor to update the position.

[0083] In the development phase of the basic dragonfly algorithm, the search radius of an individual dragonfly is greater than the distance from the dragonfly to the food source. All dragonflies clustering together allows for rapid location of the food source. A sigmoid weight factor is added to enhance the algorithm's performance; the specific formula is shown below:

[0084] △X t+1 =(sS) i +aA i +cC i +fFi +eE i )+w△X t (4)

[0085]

[0086] X t+1 =h×X t +△X t+1 (6)

[0087] In the formula: h represents the Sigmoid type weighting factor, X t Indicates the current position of the individual dragonfly, △X t This indicates the stride length of an individual dragonfly.

[0088] S5. Determine whether individual dragonflies are adjacent. If they are, use an adaptive switching learning strategy to update their positions; otherwise, use a Levy flight strategy to update their positions. The criterion for determining whether individual dragonflies are adjacent is: take an individual dragonfly as the center and check if there are other individual dragonflies within its search radius. All individual dragonflies within the circle are considered to be adjacent.

[0089] The Levy flight strategy update formula is:

[0090] X t+1 =X t +Levy(d)×X t (7)

[0091]

[0092] In the formula, d represents the dimension of the current position, r1 and r2 are d-dimensional random numbers in the [0,1] dimension, β represents the control factor of Levi's flight, σ is the control parameter of Levi's flight, and Γ(X)=(X-1)! .

[0093] Adaptive switching of learning strategies:

[0094] In the exploration phase of the basic dragonfly algorithm, although individual dragonflies form small groups and fly back and forth within a small area to explore, the dependence of the search individual's position update on its own position remains constant, resulting in a weak global search capability. Furthermore, the algorithm population is heavily influenced by the current optimal solution throughout the iteration process, potentially leading to premature convergence. Therefore, to improve the algorithm's global optimization capability, an adaptive switching learning strategy is adopted in this phase to enhance information exchange among dragonflies and improve the algorithm's global search capability. The adaptive switching learning strategy introduces a switching probability factor p to transform the learning method of individual dragonflies, as shown in the following formula:

[0095] p=|p0×(1-t / t max (9)

[0096] where p0 is a random value within [-1,1]. It can be seen from the formula that p decreases as the number of iterations increases. In the early stage of iteration, the position update of the search individual should rely on its own position information, so as to search a larger space and improve the global search ability of the algorithm. Therefore, when p > rand, the dragonfly individual will carry out self-reinforcement learning to enhance the optimization ability of the algorithm. In the later stage of iteration, it is necessary to rely highly on its own position information and the position information of other individuals to improve the global convergence accuracy of the algorithm. Therefore, when p < rand, the dragonfly individual optimizes its own position by learning from other individuals in the population. Therefore, the position update method of the dragonfly individual is:

[0097]

[0098] where both v and l represent random numbers within [0,1], X rand represents a random dragonfly individual. Z=(0.01*tan(π(l-0.5))) and S=tan(vπ / 2) represent the individual learning ability and self-reinforcement ability, which reflect the difference in the learning ability of each individual.

[0099] S6: Determine whether the current solution is better than the solution of the previous generation. If yes, retain the current solution as the optimal solution, and set the number of times the optimal solution has not been updated to 0; if not, proceed to step S7;

[0100] S7: Record the number of times the optimal solution has not been updated M=M+1;

[0101] S8: Determine whether the number of times the optimal solution has not been updated reaches the threshold. If yes, use Cauchy mutation to generate a new position, and set the number of times the optimal solution has not been updated to 0; if not, proceed to step S9. When the number of times the optimal solution has not been updated reaches the maximum value of 5, Cauchy mutation will be used to generate a new position, and the number of times the optimal solution has not been updated will be reset to 0.

[0102] During the optimization process of the basic dragonfly algorithm, the search radius increases with the number of iterations, and the area of the neighborhood also increases. Dragonflies tend to see more dragonflies, adjust their own flight behavior, and finally gather together to converge to the global optimal position, which makes the population distribution shrink and the diversity gradually decrease, leading the algorithm to easily fall into local optimum. Inspired by the artificial bee colony algorithm, the idea of the Limit threshold is introduced to solve the problem that the algorithm easily falls into local optimum. When the historical optimal fitness value searched by all individuals in the population does not change for 5 consecutive iterations, it is considered to be stagnant. At this time, Cauchy mutation is used to update the positions of the search individuals in the population, improve the population diversity, and make the algorithm jump out of the local optimum. The specific formula is as follows:

[0103] X new =X t +X t×Cauchy(0,1) (11)

[0104] In the formula, Cauchy(0,1) is the standard Cauchy distribution, X new This indicates the location of the individual dragonfly after the Cauchy mutation.

[0105] S9. If the current iteration count is less than the maximum iteration count, increment the current iteration count by 1 and return to step S3; otherwise, output the optimal solution and the algorithm iteration ends.

[0106] Step 3: Using the key feature variables selected in Step 1 as input variables and survival status as output variables, complete the training of the survival prediction model based on the optimized BP neural network.

[0107] Step 4: Input the test sample data into the trained survival prediction model based on the optimized BP neural network to complete the survival risk prediction.

[0108] Simulation experiment analysis:

[0109] (1) Experimental setup

[0110] To further verify the optimization performance of the HSIDA algorithm, the Dragonfly Optimization (DA), Moth to a Flame (MFO), Sine and Cosine Optimization (SCA), ISSA proposed by Tubishat M, Idris N, Shuib L, et al., IALO proposed by Dong H, Xu Y, Li X, et al., and EDDA proposed by Li Y, Wang S, Chen Q, et al. were compared and tested on the CEC2021 test function. The CEC2021 test function is shown in Table 1, which provides information on the test function, including the category and the optimal value.

[0111] Table 1 CEC2021 Test Functions

[0112]

[0113] The CEC2021 test functions are 10 complex test functions that can be extended to 10 and 20 dimensions. Three different transformation operations can be applied: bias, shift, and rotation. For each operation, there are two options: adding or not adding, resulting in 8 different combinations. Two combinations (rotation, bias, and rotation) were selected for testing the 20-dimensional functions. To avoid experimental randomness, each algorithm was run independently 30 times. Since the theoretical optimal values ​​of the 10 CEC2021 functions are different for each other, the difference between the optimization result of each algorithm and the theoretical optimal value was calculated, and a difference of 0 was taken as the optimal value of each function for easy comparison and analysis.

[0114] (2) Experimental Results and Analysis

[0115] Figure 2 , Figure 3 Convergence curves of seven algorithms on the CEC2021 function with added rotation, added bias, and rotation are presented, allowing for a visual comparison of each algorithm. Figure 2 In the test functions with added rotation operations, HSIDA achieved better results than other algorithms. Furthermore, on the test functions CEC02, CEC03, CEC04, CEC06, and CEC08, HSIDA could quickly locate the optimal solution within 50 iterations. According to... Figure 3 The convergence curves in the test function with added bias and rotation operations show that HSIDA's best results are also better than those of other algorithms. Furthermore, HSIDA can find the optimal solution faster than other algorithms, which proves that its convergence speed and convergence accuracy are significantly better than other algorithms.

[0116] Tables 2 and 3 present a comparison of the test results for each algorithm in 20 dimensions, including the best value, mean, and standard deviation. The mean and standard deviation represent the algorithm's optimization accuracy and stability, respectively. The test results in Table 2 show that for the test functions with added rotation operations, the DA algorithm yields a larger mean, indicating insufficient optimization performance and a weak ability to escape local optima. The HSIDA algorithm, on the other hand, finds the theoretical optimal value in functions CEC02, CEC03, CEC04, CEC06, and CEC08, with both the mean and standard deviation reaching their maximum values. For the remaining test functions, the optimal results found by the HSIDA algorithm are 2.33E-172, 9.06E-178, 1.12E-186, 1.37E-187, and 1.11E-186, respectively, representing an improvement of hundreds of units of accuracy compared to the DA algorithm. Compared to other improved algorithms, the HSIDA algorithm also achieves the minimum values ​​in the three metrics of optimal value, average value, and standard deviation. As shown in Table 3, the DA algorithm also performs poorly for test functions with added bias and rotation operations. Although the ISSA algorithm finds the theoretical optimal value in all 10 test functions, its average value and standard deviation do not reach the optimal values ​​in CEC06, CEC07, and CEC10, indicating that its stability is inferior to the HSIDA algorithm. The HSIDA algorithm not only performs best among the five algorithms in terms of optimal value, average value, and standard deviation, but also achieves the theoretical optimal value for all functions, demonstrating higher convergence accuracy and stronger optimization stability.

[0117] Table 2 Comparison of CEC2021 Test Function Optimization Results (rotation)

[0118]

[0119]

[0120] Table 3 Comparison of CEC2021 test function optimization results (bias and rotation)

[0121]

[0122] Since the weights and thresholds of a BP neural network are randomly generated, they have a significant impact on the prediction and classification results, leading to poor performance.

[0123] This invention uses the HSIDA algorithm as an optimizer for a BP neural network to find the optimal weights and thresholds, and compares the algorithm with neural networks optimized by DA, ISSA, IALO, and EDDA, ​​as well as traditional BP neural networks, to verify the effectiveness of the algorithm.

[0124] a) A method for predicting survival risk in esophageal squamous cell carcinoma patients based on backpropagation neural networks

[0125] Kassym-Joint Murphy (KM) survival analysis was used to screen for influencing factors of mortality in esophageal squamous cell carcinoma (ESCC) patients. These selected factors were used as input variables, and survival time was used as the output to establish a backpropagation (BP) neural network-based survival prediction model. 400 ESCC patients were selected and classified into survival risk groups, with 320 used for training and 80 for validation. Among all patients, 213 patients survived for more than 5 years and were considered low-risk; 187 patients survived for less than 5 years and were considered high-risk. KM survival analysis was used to analyze indicators in these ESCC patients. WBCC, TLC, Seg, EC, BC, RBC, HGB, PLT, PT, INR, APTT, TT, FIB, PNI, LMR, NLR, and PLR were selected as inputs, and high / low risk were used as outputs to construct the BP neural network survival model.

[0126] b) Evaluation Indicators

[0127] Accuracy in predicting patient survival risk is a critical issue in medical research. To evaluate the performance of the HSIDA-BP model, computational accuracy (Acc), sensitivity, specificity, and the overall performance index (F1) were used for comparative analysis with BP, DA-BP, EDDA-BP, IALO-BP, and ISSA-BP. Accuracy is the ratio of correctly predicted samples to the total sample, representing the model's overall predictive ability. Sensitivity and specificity represent the model's ability to accurately predict low-risk and high-risk populations, respectively. The overall performance index F1 is a weighted average of accuracy and sensitivity. A higher F1 value indicates better model performance, with an output of 1 indicating the best performance and 0 indicating the worst performance.

[0128] Figure 4 Table 4 shows a comparison of the evaluation indicators of the six models provided in this embodiment of the invention. As can be seen from Table 4, the Acc values ​​of BP, DA-BP, IALO-BP, ISSA-BP, EDDA-BP, and HSIDA-BP are 72.50%, 78.75%, 81.25%, 83.75%, 83.75%, and 88.75%, respectively; the sensitivities of BP, DA-BP, IALO-BP, ISSA-BP, EDDA-BP, and HSIDA-BP are 72.92%, 77.50%, 84.62%, 84.09%, 85.37%, and 87.80%, respectively; and the specificities of BP, DA-BP, IALO-BP, ISSA-BP, EDDA-BP, and HSIDA-BP are 7... The percentages of high-risk individuals were 1.88%, 80.00%, 78.05%, 83.33%, 82.05%, and 89.74%; the comprehensive evaluation indices for BP, DA-BP, IALO-BP, ISSA-BP, EDDA-BP, and HSIDA-BP were 76.09%, 78.48%, 81.48%, 86.05%, 84.34%, and 88.90%, respectively. The high sensitivity and specificity indicate that the model can more accurately identify high-risk and low-risk individuals, reducing misdiagnosis. Furthermore, the HSIDA-BP model achieved the best results among all indices, demonstrating its good predictive accuracy and ability to more accurately predict the prognostic survival risk of ESCC patients.

[0129] Table 4 Model Evaluation Indicators

[0130]

[0131] c) Confusion matrix

[0132] Each column of the confusion matrix represents the predicted class, and the total number in each column indicates the number of data points predicted as belonging to that class. Each row represents the true class of the data, and the total number of data points in each row indicates the number of data instances belonging to that class. The confusion matrix can be used to calculate the prediction accuracy, sensitivity, specificity, false positive rate, and F1 score for each model. The two matrices on the main diagonal represent TP and TN, respectively. The two matrices on the second diagonal represent FP and FN, respectively. The larger the sum of the numbers of the matrices on the main diagonal, the higher the prediction accuracy of the model. Figure 5 The prediction results of the six models are presented in the form of confusion matrices. It can also be seen that the HSIDA-BP model has good predictive ability, and the HSIDA algorithm has stronger optimization ability compared with other algorithms.

[0133] The convergence speed and accuracy of the HSIDA algorithm proposed in this invention were analyzed through two sets of simulation experiments: 1) comparison with different swarm intelligence algorithms and their improved versions; 2) optimization of the esophageal squamous cell carcinoma survival prediction model. The first set of experiments was conducted on the CEC2021 function with added rotation, added bias, and rotation. Analysis of convergence curves, average values, optimal values, and standard deviations showed that the HSIDA algorithm, compared with different swarm intelligence algorithms and their improved versions, has better convergence speed and accuracy while maintaining stability, exhibiting a certain competitive advantage. The second set of experiments optimized the esophageal squamous cell carcinoma survival prediction model and compared it with five other models. Evaluation metrics such as computational accuracy (Acc), sensitivity (Sensibility), specificity, false positive rate (FPR), and overall evaluation index (F1), as well as the confusion matrix, were used to analyze all models. The results demonstrate the effectiveness of the optimized performance of the HSIDA algorithm.

[0134] 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 principles of the present invention should be included within the protection scope of the present invention.

Claims

1. A method for predicting the survival risk of esophageal squamous cell carcinoma patients based on an improved dragonfly algorithm, characterized in that, The steps are as follows: Step 1: Obtain clinical data of patients with esophageal squamous cell carcinoma, use KM survival analysis to screen clinical data, and obtain important characteristic variables that are significantly related to the patient's survival risk; Step 2: The weights and thresholds of the BP neural network are optimized using the improved Dragonfly algorithm to obtain a survival prediction model based on the optimized BP neural network; The improved dragonfly algorithm includes the following steps: S1: Initialize the objective function and its parameters, including the maximum number of iterations. Population size Current iteration number Number of times the optimal solution has not been updated The dragonfly population is initialized using a Tent chaotic map; the expression for the Tent chaotic map is: ; In the formula: This is the original location of the dragonfly. To generate new dragonfly positions using chaotic mapping; S2: Calculate the objective function value based on the objective function, and update the positions of food sources and predators; the objective function is the sum of errors of each neuron node in the BP neural network: ; In the formula: Q is the number of training samples, For the expected output of training sample I, Let I be the output of the kth output node under the influence of training sample I, and n represent the number of nodes in the input layer. S3: Update parameters , , , , , and calculate , , , , At the same time, update the search radius of individual dragonflies. ;in, To separate the weights, For team weighting, To aggregate weights, As a food-related influencing factor, As a natural enemy influencing factor, Indicates inertia weight; the , , , , and search radius The calculation methods are as follows: ; ; In the formula: This is the upper limit of the search range. This is the lower limit of the search range; This represents the current individual's position, and N represents the number of neighboring individuals. Indicates the first The positions of adjacent individuals Indicates the first The speed of adjacent individuals Indicates the location of the food source. Indicates the location of natural enemies; Indicates the first The degree of separation of individual dragonflies Indicates the first Alignment of individual dragonflies Indicates the first The cohesion of individual dragonflies Indicates the first The food attraction of an individual dragonfly Indicates the first The repulsive force of natural enemies on an individual dragonfly; S4: Determine if the distance from the individual dragonfly to the food source is greater than its search radius. If yes, proceed to step S5; otherwise, add a Sigmoid weight factor to update the position. The method for adding a Sigmoid weight factor to update the position is as follows: ; ; ; In the formula: Indicates a Sigmoid type weight factor. Indicates the current position of the individual dragonfly. Indicates the stride length of an individual dragonfly; This indicates the updated position of the individual dragonfly. This indicates the step size of the updated dragonfly individual; S5: Determine whether individual dragonflies are adjacent. If they are, use an adaptive switching learning strategy to update their positions; otherwise, use a Levy flight strategy to update their positions. The criterion for determining whether individual dragonflies are adjacent is: with the individual dragonfly as the center, check if there are other individual dragonflies within its search radius. All individual dragonflies within the circle are considered adjacent. The Levy flight strategy update formula is: ; ; In the formula, Indicates the dimension of the current position. , for Random numbers of dimension [0,1] This represents the control factor for Levi's flight. For Levi's flight control parameters, ; The adaptive switching learning strategy update formula is: ; ; In the formula, p controls the switching of learning modes. For a random value in the range [-1, 1] This represents a random individual dragonfly. Indicates an individual's learning ability. This indicates the ability to reinforce oneself. and Both represent random numbers in the range [0,1]. S6: Determine whether the current solution is better than the previous solution. If it is, keep the current solution as the optimal solution and set the number of times the optimal solution has not been updated to 0. If not, proceed to step S7. S7: Record the number of times the optimal solution has not been updated, M = M + 1; S8: Determine whether the number of times the optimal solution has not been updated has reached the threshold. If it has, use Cauchy mutation to generate a new position and set the number of times the optimal solution has not been updated to 0. If not, proceed to step S9. The Cauchy variation formula is: ; In the formula, Cauchy(0,1) is the standard Cauchy distribution. Indicates the location of individual dragonflies after Cauchy mutation; S9: If the current iteration count is less than the maximum iteration count, increment the current iteration count by 1 and return to step S3; otherwise, output the optimal solution and the algorithm iteration ends. Step 3: Using the key feature variables selected in Step 1 as input variables and survival status as output variables, complete the training of the survival prediction model based on the optimized BP neural network. Step 4: Input the test sample data into the trained survival prediction model based on the optimized BP neural network to complete the survival risk prediction.

2. The method for predicting the survival risk of esophageal squamous cell carcinoma patients based on the improved dragonfly algorithm according to claim 1, characterized in that, The clinical data of the esophageal squamous cell carcinoma patients included white blood cell count (WBCC), total lymphocyte count (TLC), monocyte count (Mono), neutrophil count (Seg), eosinophil count (EC), basophil count (BC), red blood cell count (RBC), hemoglobin concentration (HGB), platelet count (PLT), total protein (TP), albumin (ALB), globulin (GLB), prothrombin time (PT), international normalized ratio (INR), activated partial thromboplastin time (APTT), thrombin time (TT), and fibrinogen (PLT). The prognostic nutritional index (PNI) includes FIB (fibrillary intracellular protein), neutrophil-lymphocyte ratio (NLR), lymphocyte-monocyte ratio (LMR), platelet-lymphocyte ratio (PLR), and prognostic nutritional index (PNI).

3. The method for predicting the survival risk of esophageal squamous cell carcinoma patients based on the improved dragonfly algorithm according to claim 2, characterized in that, The key characteristic variables include WBCC, TLC, Seg, EC, BC, RBC, HGB, PLT, PT, INR, APTT, TT, FIB, PNI, LMR, NLR, and PLR.

4. The method for predicting the survival risk of esophageal squamous cell carcinoma patients based on the improved dragonfly algorithm according to claim 1, characterized in that, The survival status is classified as follows: esophageal squamous cell carcinoma patients with a survival time of more than 5 years are classified as low-risk patients, and esophageal squamous cell carcinoma patients with a survival time of less than 5 years are classified as high-risk patients.

Citation Information

Patent Citations

  • Storage battery parameter recognition method based on improved dragonfly algorithm

    CN110929464A