A method for optimizing traction force control of spinal traction device
By combining the improved stadium audience meta-heuristic algorithm with positional PID control, the traction control of the spinal tractor is optimized, solving the problems of inaccurate and overshooting traction control in the existing technology, and achieving more efficient and stable traction management. , adapting to the needs of users of different weights.
Patent Information
- Application Number
- CN202411230234.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-04
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2044-09-04
AI Technical Summary
Existing spinal tractors have problems such as low accuracy in traction control, difficulty in adjusting PID parameters, and frequent overshooting. In particular, they cannot adapt quickly when weight changes, which affects the user experience and safety.
Combining the improved stadium audience meta-heuristic algorithm (QSSO) with the positional PID control algorithm, by establishing mathematical models and dynamic models, using cloning mutation strategies and improved sports intensity factors to optimize the stadium audience meta-heuristic algorithm to find the optimal PID control parameters to form a QSSO-PID controller to achieve precise control of traction force.
It improves the accuracy and stability of traction control, reduces overshoot, adapts to the needs of users of different weights, and improves user experience and safety.
Smart Images

Figure CN118747411B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the field of traction force PID control, and in particular to a traction force control optimization method for a spinal traction device. Background Art
[0002] A portable spinal traction device is a traction device with a simple design and easy to use. Users can perform spinal traction at home. In actual applications, a common problem with existing spinal traction devices is that the control of traction force is inaccurate, resulting in inflexible and inaccurate adjustment of the traction angle and direction. Spinal traction devices mainly optimize the accuracy of traction control through a PID control algorithm. In actual applications, there are still some problems in the control of traction force of spinal traction devices, including: the adjustment of PID parameters requires multiple adjustments to achieve a better control effect, and there is a problem of improper parameter adjustment affecting the traction effect; secondly, when the user is heavy, the PID control algorithm cannot adapt to these changes quickly, resulting in inaccurate traction force; thirdly, the PID control algorithm will experience overshoot during the adjustment process, that is, the traction force exceeds the target setting value and then returns, which will result in a poor user experience and a risk of secondary injury.
[0003] The Stadium Spectator-Suggested Algorithm (SSO) is a meta-heuristic algorithm inspired by the influence of spectators in a stadium on the behavior of players during a match. The algorithm does not require any additional parameter settings and has the characteristics of full parameter optimization. In the SSO algorithm, the behavior of the spectators is regarded as a search agent, and the behavior of these agents will affect the quality of the candidate solutions. The SSO algorithm does not require additional parameter settings, which simplifies the optimization process and avoids the problem of affecting the optimization effect due to improper parameter selection. However, there are certain difficulties in balancing the two stages of global search and local convergence, which is reflected in the fact that the performance of the SSO algorithm is reduced when dealing with high-dimensional optimization problems. In the traction force PID control of the spinal traction device, the optimization efficiency of the traction force PID controller of the traction device is reduced. Summary of the invention
[0004] The purpose of the present invention is to address the problem of inaccurate traction force control during the use of a spinal traction device and the shortcomings of the prior art. The present invention proposes a spinal traction device traction force control optimization method, combines an improved stadium spectator metaheuristic algorithm (QSSO) with a PID control algorithm, establishes a QSSO-PID controller for spinal traction device traction force control, and achieves optimization of traction force control.
[0005] In order to achieve the above-mentioned purpose, the present invention adopts the following technical scheme: a spinal traction device traction force control optimization method, including: improving the stadium audience metaheuristic algorithm (QSSO) and the position PID control algorithm, the specific steps include:
[0006] S1. Establishing a mathematical model for controlling the traction force of a spinal traction device, wherein the mathematical model includes an objective function model and a control model;
[0007] S2. Using clonal mutation strategy and improving exercise intensity factor Improvements to the stadium audience metaheuristic algorithm include:
[0008] S21, using the change in the minimum fitness value And the exercise intensity weight β improves the exercise intensity factor to obtain the improved exercise intensity factor , using the improved motion intensity factor to improve the stadium audience meta-heuristic algorithm position update mathematical model; wherein the motion intensity weight β includes the weighted performance change and the standard deviation of the weighted performance ;
[0009] S22, using a cloning mutation strategy to improve the global optimization mechanism of the stadium audience metaheuristic algorithm; the cloning mutation strategy generates new individual audience positions by mutating and cloning some individual audience positions of the stadium audience metaheuristic algorithm. , adding the new individual spectator positions to the stadium spectator metaheuristic algorithm population;
[0010] S3. Utilize the QSSO algorithm to adjust the PID control algorithm parameters. S4. Utilize the QSSO-PID controller to locally adjust the traction force of the spinal traction device, calculate the deviation e(t) based on the real-time feedback traction force value, and input the deviation into the QSSO-PID controller. By adjusting the traction force control value u(t), precise control of the traction force of the spinal traction device is achieved.
[0011] Specifically, the objective function model is used to guide the QSSO algorithm to perform global optimization on the parameters of the PID control algorithm. The objective function model requires that the QSSO-PID controller minimize the overshoot and response time of the traction force adjustment of the spinal traction device. The number of individual audience members is calculated through the objective function model for global optimization. By simulating the behavior of individual audience members looking for seats, the optimal PID control parameter combination is searched in the parameter space [lb, ub] to establish the QSSO-PID controller.
[0012] Position fitness value. The smaller the fitness value, the smaller the overshoot and response time. The objective function model J is:
[0013] (1);
[0014] In formula (1), T is the final running time, is the traction force value of the spinal traction device at the tth second, is the target value of the traction force of the spinal traction device, is the indicator function, when The value is 1 when , otherwise it is 0. is the tolerance range of steady-state error.
[0015] Specifically, the control model includes an improved stadium audience meta-heuristic algorithm model, a position PID controller model and a traction force dynamic model of a spinal traction device.
[0016] Specifically, the dynamic model describes the relationship between the power motor and the traction arm of the spinal traction device, wherein the dynamic model is represented by a rigid body dynamics equation, specifically the Lagrangian dynamics equation, and the dynamic model is:
[0017] (2);
[0018] In formula (2), is the torque of the power motor, F is the moment of inertia, b is the damping coefficient, k is the elastic coefficient, is the traction arm angle, is the angular velocity of the traction arm, is the angular acceleration of the traction arm;
[0019] Furthermore, the dynamic equation is Laplace transformed to obtain the complex frequency domain form of formula (3);
[0020] (3);
[0021] In formula (3), is the Laplace transform of the torque, which is the external force acting on the traction arm. is the complex frequency variable in the Laplace transform, and Θ(s) is the Laplace transform of the traction arm angle.
[0022] Specifically, the position PID controller model uses a position PID controller to realize the control of the power motor of the spinal traction device. The position PID controller model is:
[0023] (4);
[0024] In formula (4), u(t) is the traction control value at the tth second, e(t) is the deviation, that is, the error between the target traction value and the real-time traction value, Kp, Ki, Kd are the proportional coefficient, integral coefficient and differential coefficient respectively, and h is the integral parameter; the position PID controller model is Laplace transformed, the initial condition of the traction system is zero, and the Laplace transform form is:
[0025] (5);
[0026] In formula (5), U(s) is the Laplace transform of the traction control value, and E(s) is the Laplace transform of the deviation.
[0027] Specifically, step S4 realizes precise control of the traction force of the spinal traction device. The traction force in the spinal traction device is generated by a brushless DC motor. The traction control system of the spinal traction device generates a certain pulling force on the spine by controlling the motor output. Specifically, the error between the target traction force value and the real-time traction force value is calculated. ; Further, a PID controller optimized by an improved stadium audience metaheuristic algorithm is used to calculate the traction control amount, and the traction control amount controls the torque of the power motor. The torque of the power motor is converted into the actual response of the traction arm of the spinal traction device through a dynamic model, and the QSSO-PID controller and the traction sensor are combined to form a closed-loop system, wherein in the closed-loop system, the traction sensor collects the traction force at the current moment in real time.
[0028] Specifically, an improved stadium spectator metaheuristic algorithm is introduced into the position update mathematical model of the stadium spectator metaheuristic algorithm. ;
[0029] (6);
[0030] In formula (6), iter is the current number of iterations, Max_iter is the maximum number of iterations, is the change in the minimum fitness value for three consecutive iterations, is the global minimum fitness value, used for normalization , β is the exercise intensity weight, where β changes with the number of iterations, and the mathematical model is:
[0031] (7);
[0032] In formula (7), is the motion intensity weight value of the iter-th iteration, is the initial value of the exercise intensity weight, is the weighted performance change, that is, the entropy of the fitness values of the N individual audience positions in the current iteration, is the standard deviation of the weighted performance, that is, the standard deviation of the individual position fitness values of N viewers in the current iteration, is a numerical stability value, and α is a threshold parameter.
[0033] Specifically, improving the exercise intensity factor As the number of iterations changes, the nonlinear adaptive decreases, and the improved motion intensity factor In the global optimization process of the algorithm, Reflects the improvement of algorithm performance. When it is larger, it means that the optimization performance of the metaheuristic algorithm is improving rapidly. , so that the improved SSO algorithm position update mathematical model improves the performance of the global search stage. Specifically, in the early stage of the SSO algorithm iteration, the motion intensity factor is improved The value of is relatively high, ensuring that the metaheuristic algorithm maintains sufficient search ability. As the number of iterations increases, The value of gradually decreases, speeding up the convergence of the SSO algorithm, and appropriately increasing the motion intensity weight β The value of prevents the SSO algorithm from converging to the local optimum too early.
[0034] Specifically, the clonal mutation strategy is an optimization strategy designed for the stadium audience metaheuristic algorithm (SSO). The clonal mutation strategy improves the SSO algorithm to jump out of the local optimal limitation range by mutating some audience individuals. Specifically, it includes: using formula (1) to calculate the fitness value of each audience individual in the current population, and calculating the fitness variance through the population fitness value. If the fitness variance is less than 0.01, the previous one with the smallest fitness value is selected. The audience meta-heuristic algorithm of the stadium audience forms an immune individual set I(iter), clones and mutates the immune audience individuals, and generates new clones , the new clone is the new audience individual position, wherein the cloned and mutated audience individuals are added to the algorithm population, and the first N audience individuals with the smallest fitness value are selected as the next generation population; wherein, the new clone is generated The mathematical model is:
[0035] (8);
[0036] In formula (8), is the position of the yth immune individual in the iterth iteration, C is subject to a mean of 0 and a variance of σ 2 A normally distributed random vector of is the position of the rth clone of the yth immune individual at the iterth iteration, is the mutation rate of the iter-th iteration, and the mathematical model is:
[0037] (9);
[0038] In formula (9), is the initial value of the mutation rate, is the termination value of the mutation rate, and Max_iter is the maximum number of iterations.
[0039] Specifically, if the fitness variance is less than the preset threshold, it indicates that the diversity of the population is insufficient and there is a risk of falling into a local optimum. Several audience individuals with the smallest fitness values are selected to form an immune individual set. These audience individuals have low fitness values, which means that their positions in the current solution space are not ideal, and they need to be cloned and mutated to explore new solution spaces. The selected immune individuals are cloned and mutated. The cloning operation generates multiple similar audience individuals, while the mutation operation makes small random changes to these clones to increase the diversity of the population. The generated new clones will be added to the population of the algorithm. Specifically, by cloning and mutating audience individuals with lower fitness values, the diversity of the population is increased, which helps to escape from the local optimal solution. At the same time, the mutation operation and mutation rate are dynamically adjusted with the number of iterations, so that the population can explore new solution spaces and improve the global search ability of the algorithm, allowing the algorithm to explore more in the early stage and gradually focus on fine search in the later stage. Finally, the first N audience individuals are retained from the new population according to the fitness value as the next generation population, ensuring that the meta-heuristic algorithm can be continuously optimized, obtaining more accurate PID control parameters, and improving the accuracy of traction control of the spinal traction device.
[0040] Specifically, the optimal PID control parameter combination in step S3 includes the optimal proportional coefficient Kpbest, the integral coefficient Kibest and the differential coefficient Kdbest, wherein the optimal proportional coefficient Kpbest, the integral coefficient Kibest and the differential coefficient Kdbest are the individual positions of the spectators in the improved stadium spectator metaheuristic algorithm corresponding to the minimum fitness value. Specifically, the Kp, Ki and Kd parameters of the position PID for the traction force control of the spinal traction device are encoded as N max Three-dimensional vectors constitute a parameter space [lb, ub], wherein each three-dimensional vector establishes a three-dimensional mapping with the individual position of the audience, and the Kp, Ki, and Kd parameter values are updated by updating the individual position of the audience.
[0041] Specifically, in step S3, by simulating the behavior of individual audience members looking for seats, the optimal PID control parameter combination of the spinal traction control system is searched in the parameter space. The specific steps are:
[0042] S31. Set the population size N of the improved stadium audience metaheuristic algorithm max , the maximum number of iterations Max_iter, the problem dimension D, the initial value of the motion intensity weight β 0 , improve the initial value of the exercise intensity factor and the parameter space [lb,ub];
[0043] S32, using the coverage optimization strategy to initialize the individual positions of the audience in the improved stadium audience meta-heuristic algorithm population, generating the initial positions of the individual audience in the population; calculating and storing the objective function value of the initial position of the individual audience;
[0044] S33, judging whether the current number of iterations iter satisfies iter greater than Max_iter, if so, outputting the individual position of the audience corresponding to the current minimum fitness value, the individual position of the audience being resolved into the optimal proportional coefficient Kpbest, integral coefficient Kibest and differential coefficient Kdbest, otherwise, executing step S34;
[0045] S34, generating an RND vector using a random selection mechanism according to formula (10) for controlling the movement of individual spectators in the global search and local development phases of the improved stadium spectator metaheuristic algorithm;
[0046] (10);
[0047] In formula (10), is the direction and step length of the movement of the i-th individual, is the optimal position of the ith audience individual, is the position of a random R1 audience member, is the position of a random R2 audience individual, HR is a random number between 0 and 1, and R is a vector of uniformly distributed random numbers between 0 and 1;
[0048] S35. According to formula (11), introduce the improved exercise intensity factor , updating the individual position of the audience according to the distance between the current individual position of the audience and two randomly selected individual positions of the audience;
[0049] (11);
[0050] In formula (11), is the position of the ith audience individual in the iter+1th iteration, is the position of the i-th audience individual in the iter-th iteration, that is, the current audience individual position, To improve the exercise intensity factor, and and is a random number with normal distribution;
[0051] S36, using formula (1) to calculate the fitness value of the individual position of the audience at the iter-th iteration, comparing the minimum fitness value at the iter-th iteration with the fitness value at the iter-1-th iteration, and taking the smaller fitness value as the current optimal fitness value;
[0052] S37. Execute iter=iter+1 for the current iteration number iter, and return to step S33 to continue optimizing.
[0053] Specifically, the coverage optimization strategy initializes the individual positions of the spectators in the population of the improved stadium spectator metaheuristic algorithm. The coverage optimization strategy uses a uniform design method to generate a matrix that is uniformly distributed in each problem dimension. max and problem dimension D, design uniform matrix , the elements in the matrix are uniformly distributed in the interval (0, 1), and the individual positions of the audience in the population are further initialized, and each element of the uniform design matrix U is scaled to the actual range [lb, ub] of the algorithm search space. The mathematical model of the initialization solution for the i-th audience individual position is:
[0054] (12);
[0055] In formula (12), is the initial position value of the jth dimension of the ith audience individual, is the maximum initial position value of the j-th dimension of the ith audience individual, is the minimum initial position value of the jth dimension of the ith audience individual, is the value of the jth dimension of the i-th viewer in the uniform matrix, where i=1,2,3,...,N max ; j=1,2,3,...,D.
[0056] The beneficial effects of the present invention are as follows: the global search capability of the QSSO algorithm enables the PID control algorithm to jump out of the local optimal solution and find the global optimal or better control parameters; at the same time, the local adjustment capability of the PID control algorithm can ensure that after finding the optimal parameters, the system can run stably and accurately; secondly, by optimizing the PID parameters through the QSSO algorithm, the traction control accuracy and stability of the spinal traction device are further improved, the user experience and comfort are improved, and the probability of secondary injury is reduced; finally, the combination of the QSSO algorithm and the PID control algorithm is better adapted to users of different weights. BRIEF DESCRIPTION OF THE DRAWINGS
[0057] Figure 1 A diagram of the steps for optimizing traction force control of a spinal traction device.
[0058] Figure 2 A step diagram for searching the optimal PID control parameter combination for the spinal traction force control system in the parameter space.
[0059] Figure 3 Comparison of fitness value changes for optimizing the traction PID controller using the improved stadium spectator metaheuristic algorithm and the standard stadium spectator metaheuristic algorithm.
[0060] Figure 4Results of tuning the Kp, Ki, and Kd parameters of the traction PID controller using the meta-heuristic algorithm to improve the stadium audience.
[0061] Figure 5 This is a comparison chart of the effects of the spinal traction force control system in QSSO-PID, SSO-PID and standard PID control. DETAILED DESCRIPTION
[0062] The technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments; based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0063] The present invention provides a technical solution: a spinal traction device traction force control optimization method, including: improving the stadium audience meta-heuristic algorithm (QSSO) and the position PID control algorithm, such as Figure 1 As shown, the specific steps include step S1 to step S4.
[0064] Furthermore, S1, a mathematical model for controlling the traction force of the spinal traction device is established, wherein the mathematical model includes an objective function model and a control model.
[0065] Furthermore, the objective function model is used to guide the QSSO algorithm to globally optimize the parameters of the PID control algorithm. The fitness value of the individual position of the audience is calculated through the objective function model, and the individual position of the audience corresponding to the minimum fitness value is found. The objective function model J is:
[0066] (1);
[0067] In formula (1), T is the final running time, is the traction force value of the spinal traction device at the tth second, is the target value of the traction force of the spinal traction device, is the indicator function, when The value is 1 when , otherwise it is 0. is the tolerance range of steady-state error.
[0068] Furthermore, a dynamic model of the traction control system of the spinal traction device is established. The dynamic model is represented by a rigid body dynamics equation, specifically the Lagrangian dynamics equation, and the dynamic model is:
[0069] (2);
[0070] In formula (2), is the torque of the power motor, F is the moment of inertia, b is the damping coefficient, k is the elastic coefficient, is the traction arm angle, is the angular velocity of the traction arm, is the angular acceleration of the traction arm.
[0071] Furthermore, the dynamic equation is Laplace transformed to obtain the complex frequency domain form of formula (3);
[0072] (3);
[0073] In formula (3), is the Laplace transform of the torque, which is the external force acting on the traction arm. is the complex frequency variable in the Laplace transform, and Θ(s) is the Laplace transform of the traction arm angle.
[0074] Furthermore, a position PID controller is used to control the power motor of the spinal traction device. The position PID controller model is:
[0075] (4);
[0076] In formula (4), u(t) is the traction control value at the tth second, e(t) is the deviation, that is, the error between the target traction value and the real-time traction value, Kp, Ki, Kd are the proportional coefficient, integral coefficient and differential coefficient respectively, and h is the integral parameter; the position PID controller model is Laplace transformed, the initial condition of the traction system is zero, and the Laplace transform form is:
[0077] (5);
[0078] In formula (5), U(s) is the Laplace transform of the traction control value, and E(s) is the Laplace transform of the deviation.
[0079] Furthermore, S2 uses clonal mutation strategy and improved exercise intensity factor Improvements to the metaheuristic algorithm for stadium spectators.
[0080] Furthermore, S21, using the change in the minimum fitness value And the exercise intensity weight β improves the exercise intensity factor to obtain the improved exercise intensity factor , using the improved motion intensity factor to improve the stadium audience meta-heuristic algorithm position update mathematical model; wherein the motion intensity weight β includes the weighted performance change and the standard deviation of the weighted performance .
[0081] Furthermore, an improved motion intensity factor is introduced into the mathematical model of the stadium spectator metaheuristic algorithm position update ;
[0082] (6);
[0083] In formula (6), iter is the current number of iterations, Max_iter is the maximum number of iterations, is the change in the minimum fitness value for three consecutive iterations, is the global minimum fitness value, used for normalization , β is the exercise intensity weight, where β changes with the number of iterations, and the mathematical model is:
[0084] (7);
[0085] In formula (7), is the motion intensity weight value of the iter-th iteration, is the initial value of the exercise intensity weight, is the weighted performance change, that is, the entropy of the fitness values of the N individual audience positions in the current iteration, is the standard deviation of the weighted performance, that is, the standard deviation of the individual position fitness values of N viewers in the current iteration, is a numerical stability value, and α is a threshold parameter.
[0086] Further, S22, the global optimization mechanism of the stadium audience metaheuristic algorithm is improved by using a cloning mutation strategy; the cloning mutation strategy generates new individual audience positions by mutating and cloning some individual audience positions of the stadium audience metaheuristic algorithm. , adding new individual spectator positions to the stadium spectator metaheuristic algorithm population.
[0087] Furthermore, the clonal mutation strategy is an optimization strategy designed for the stadium audience metaheuristic algorithm (SSO). The clonal mutation strategy improves the SSO algorithm to jump out of the local optimal limitation range by mutating some audience individuals. Specifically, it includes: using formula (1) to calculate the fitness value of each audience individual in the current population, and calculating the fitness variance through the population fitness value. If the fitness variance is less than 0.01, the previous fitness value with the smallest The stadium audience meta-heuristic algorithm individuals form an immune audience individual set I(iter), clone and mutate the immune audience individuals to generate new clones , the new clone is the new audience individual position, wherein the cloned and mutated audience individuals are added to the algorithm population, and the first N audience individuals with the smallest fitness value are selected as the next generation population; wherein, the new clone is generated The mathematical model is:
[0088] (8);
[0089] In formula (8), is the position of the yth immune individual in the iterth iteration, C is subject to a mean of 0 and a variance of σ 2 A normally distributed random vector of is the position of the rth clone of the yth immune individual at the iterth iteration, is the mutation rate of the iter-th iteration, and the mathematical model is:
[0090] (9);
[0091] In formula (9), is the initial value of the mutation rate, is the termination value of the mutation rate, and Max_iter is the maximum number of iterations.
[0092] Furthermore, S3 uses the QSSO algorithm to globally optimize the parameters of the PID control algorithm. By simulating the behavior of individual audience members looking for seats, the optimal PID control parameter combination is searched in the parameter space [lb, ub] to establish a QSSO-PID controller.
[0093] Furthermore, the optimal PID control parameter combination includes the optimal proportional coefficient Kpbest, the integral coefficient Kibest and the differential coefficient Kdbest, wherein the optimal proportional coefficient Kpbest, the integral coefficient Kibest and the differential coefficient Kdbest are the individual positions of the spectators in the improved stadium spectator metaheuristic algorithm corresponding to the minimum fitness value. Specifically, the Kp, Ki and Kd parameters of the position PID for the traction force control of the spinal traction device are encoded as N max Three-dimensional vectors constitute a parameter space [lb, ub], wherein each three-dimensional vector establishes a three-dimensional mapping with the individual position of the audience, and the Kp, Ki, and Kd parameter values are updated by updating the individual position of the audience.
[0094] Furthermore, if Figure 2 As shown in the figure, by simulating the behavior of individual audience members looking for seats, the optimal PID control parameter combination of the spinal traction control system is searched in the parameter space. The specific steps are:
[0095] S31. Set the population size N of the improved stadium audience metaheuristic algorithm max , the maximum number of iterations Max_iter, the problem dimension D, the initial value of the motion intensity weight β 0 , improve the initial value of the exercise intensity factor and the parameter space [lb,ub];
[0096] S32, using the coverage optimization strategy to initialize the individual positions of the audience in the improved stadium audience meta-heuristic algorithm population, generating the initial positions of the individual audience in the population; calculating and storing the objective function value of the initial position of the individual audience;
[0097] S33, judging whether the current number of iterations iter satisfies iter greater than Max_iter, if so, outputting the individual position of the audience corresponding to the current minimum fitness value, the individual position of the audience being resolved into the optimal proportional coefficient Kpbest, integral coefficient Kibest and differential coefficient Kdbest, otherwise, executing step S34;
[0098] S34, generating an RND vector using a random selection mechanism according to formula (10) for controlling the movement of individual spectators in the global search and local development phases of the improved stadium spectator metaheuristic algorithm;
[0099] (10);
[0100] In formula (10), is the direction and step length of the movement of the i-th individual, is the optimal position of the ith audience individual, is the position of a random R1 audience member, is the position of a random R2 audience individual, HR is a random number between 0 and 1, and R is a vector of uniformly distributed random numbers between 0 and 1;
[0101] S35. According to formula (11), introduce the improved exercise intensity factor , updating the individual position of the audience according to the distance between the current individual position of the audience and two randomly selected individual positions of the audience;
[0102] (11);
[0103] In formula (11), is the position of the ith audience individual in the iter+1th iteration, is the position of the i-th audience individual in the iter-th iteration, that is, the current audience individual position, To improve the exercise intensity factor, and and is a random number with normal distribution;
[0104] S36, using formula (1) to calculate the fitness value of the individual position of the audience at the iter-th iteration, comparing the minimum fitness value at the iter-th iteration with the fitness value at the iter-1-th iteration, and taking the smaller fitness value as the current optimal fitness value;
[0105] S37. Execute iter=iter+1 for the current iteration number iter, and return to step S33 to continue optimizing.
[0106] Furthermore, the coverage optimization strategy initializes the individual positions of the spectators in the population of the improved stadium spectator metaheuristic algorithm. The coverage optimization strategy uses a uniform design method to generate a matrix that is uniformly distributed in each problem dimension according to the population size N. max and problem dimension D, design uniform matrix , the elements in the matrix are uniformly distributed in the interval (0, 1), and the individual positions of the audience in the population are further initialized, and each element of the uniform design matrix U is scaled to the actual range [lb, ub] of the algorithm search space. The mathematical model of the initialization solution for the i-th audience individual position is:
[0107] (12);
[0108] In formula (12), is the initial position value of the jth dimension of the ith audience individual, is the maximum initial position value of the j-th dimension of the ith audience individual, is the maximum initial position value of the j-th dimension of the ith audience individual, is the minimum initial position value of the jth dimension of the ith audience individual, is the value of the jth dimension of the i-th viewer in the uniform matrix, where i=1,2,3,...,N max ; j=1,2,3,...,D.
[0109] Furthermore, S4, the traction force of the spinal traction device is locally adjusted using the QSSO-PID controller, and the deviation e(t) is calculated according to the real-time feedback traction force value, and the deviation is input into the QSSO-PID controller, and the traction force of the spinal traction device is precisely controlled by adjusting the traction force control amount u(t).
[0110] Furthermore, the traction force in the spinal traction device is generated by a brushless DC motor. The traction control system of the spinal traction device generates a certain pulling force on the spine by controlling the motor output. Specifically, the error between the target traction force value and the real-time traction force value is calculated. ; Further, a PID controller optimized by an improved stadium audience metaheuristic algorithm is used to calculate the traction control amount, and the traction control amount controls the torque of the power motor. The torque of the power motor is converted into the actual response of the traction arm of the spinal traction device through a dynamic model, and the QSSO-PID controller and the traction sensor are combined to form a closed-loop system, wherein in the closed-loop system, the traction sensor collects the traction force at the current moment in real time.
[0111] Furthermore, Matlab and Simulink were used to simulate the traction control system in the spinal traction device, and a system simulation model was built through Simulink, including a position PID controller model, a dynamic model, and an objective function model; the Kp, Ki, and Kd parameters in the position PID controller model are the optimal control parameter values, and the dynamic model adopts the Laplace transform form, and the formula is: The program of the meta-heuristic algorithm of the stadium audience before and after improvement is designed in Matlab, including the initialization stage, the position update stage and the position boundary restriction stage. First, the population size N of the meta-heuristic algorithm of the stadium audience before and after improvement is set. max is 80, the maximum number of iterations Max_iter is 50, the problem dimension D is 3, and the initial value of the motion intensity weight is β 0 The improved motion intensity factor is 1, the initial value is 2, and the parameter space is [ub, lb], where ub = [200, 200, 200], lb = [0, 0, 0], and the Mtalab program is run to obtain the fitness value change comparison chart of the traction force PID controller optimized by the improved stadium audience metaheuristic algorithm and the standard stadium audience metaheuristic algorithm, that is, Figure 3 As shown in the figure, the ordinate is the algorithm optimization fitness value; in the first 10 iterations, the fitness value of the improved stadium audience metaheuristic algorithm (QSSO) decreases rapidly, and the rate of decrease is faster than that of the stadium audience metaheuristic algorithm (SSO). After about the 10th iteration, the fitness value of QSSO tends to be stable and is lower than that of SSO, and the final fitness value tends to be around 2; after about the 10th iteration, the fitness value of SSO tends to be stable and maintains at about 5. The smaller the fitness value, the better the solution found by the algorithm. By comparison, it can be obtained that the improved stadium audience metaheuristic algorithm (QSSO) is significantly better than the standard stadium audience metaheuristic algorithm (SSO) in optimization performance.
[0112] Furthermore, the result diagram of the improved stadium audience meta-heuristic algorithm for the Kp, Ki, and Kd parameters of the traction PID controller is shown as follows: Figure 4As shown, the ordinate is the PID parameter value of the traction control system. The improved stadium audience metaheuristic algorithm (QSSO) proposed in the present invention is combined with the PID control algorithm to obtain the best position PID algorithm of Kp=51.008, Ki=4.315, Kd=19.975; the best control parameters are input into the position PID controller model of the traction control system in the spinal traction device. In order to further prove the excellent effect of the patented method, the standard PID is introduced to control the system for comparison, as shown in FIG. Figure 5 As shown in the figure, the ordinate is the output response of the traction system with the optimal PID parameters. The target traction control amount is set to 3. Although the standard PID has a fast initial response speed, it has a large overshoot and obvious oscillations, and the system stability is relatively poor. The SSO-PID method performs better than the standard PID in reducing overshoot and oscillation, and the system tends to stabilize faster, reaching the target traction control amount within the error range of about 4.5 seconds. The QSSO-PID method combines the balance of response speed and overshoot, showing smaller overshoot and less oscillation, the best system stability, and a faster time to reach the traction control amount with higher accuracy. Therefore, it can be concluded that the traction control system in the spinal traction device under QSSO-PID control has the best performance.
Claims
1. A method for optimizing traction force control of a spinal traction device, comprising: Improve the stadium audience metaheuristic algorithm (QSSO) and position PID control algorithm. The specific steps include: S1. Establishing a mathematical model for controlling the traction force of a spinal traction device, wherein the mathematical model includes an objective function model and a control model; S2. Using clonal mutation strategy and improving exercise intensity factor Improvements to the stadium audience metaheuristic algorithm include: S21, using the change in the minimum fitness value And the exercise intensity weight β improves the exercise intensity factor to obtain the improved exercise intensity factor , using the improved motion intensity factor to improve the stadium audience meta-heuristic algorithm position update mathematical model; wherein the motion intensity weight β includes the weighted performance change and the standard deviation of the weighted performance ; S22, using a cloning mutation strategy to improve the global optimization mechanism of the stadium audience metaheuristic algorithm; the cloning mutation strategy generates new individual audience positions by mutating and cloning some individual audience positions of the stadium audience metaheuristic algorithm. , adding the new individual spectator positions to the stadium spectator metaheuristic algorithm population; S3, using the QSSO algorithm to globally optimize the parameters of the PID control algorithm, by simulating the behavior of individual audience members looking for seats, searching for the optimal PID control parameter combination in the parameter space [lb, ub], and establishing a QSSO-PID controller; S4. The traction force of the spinal traction device is locally adjusted using the QSSO-PID controller. The deviation e(t) is calculated based on the real-time feedback of the traction force value. The deviation is input into the QSSO-PID controller. The traction force of the spinal traction device is precisely controlled by adjusting the traction force control value u(t).
2. The method for optimizing the traction force control of a spinal traction device according to claim 1, characterized in that: The objective function model is used to guide the QSSO algorithm to perform global optimization on the parameters of the PID control algorithm. The objective function model requires that the QSSO-PID controller has the smallest overshoot and the smallest response time for the traction force adjustment of the spinal traction device. The individual position fitness value of the audience is calculated through the objective function model. The smaller the fitness value, the smaller the overshoot and the response time. The objective function model J is: (1); In formula (1), T is the final running time, is the traction force value of the spinal traction device at the tth second, is the target value of the traction force of the spinal traction device, is the indicator function, when The value is 1 when , otherwise it is 0. is the tolerance range of steady-state error.
3. The method for optimizing the traction force control of a spinal traction device according to claim 2, characterized in that: The improved stadium spectator meta-heuristic algorithm includes introducing an improved motion intensity factor into the stadium spectator meta-heuristic algorithm position update mathematical model ; (6); In formula (6), iter is the current iteration number, Max_iter is the maximum iteration number, △f is the change of the minimum fitness value for three consecutive iterations, is the global minimum fitness value, which is used to normalize △f, and β is the motion intensity weight, where β changes with the number of iterations. The mathematical model is: (7); In formula (7), is the motion intensity weight value of the iter-th iteration, is the initial value of the exercise intensity weight, is the weighted performance change, that is, the entropy of the N individual position fitness values in the current iteration, is the standard deviation of the weighted performance, that is, the standard deviation of the N individual position fitness values in the current iteration, is a numerical stability value, and α is a threshold parameter.
4. The method for optimizing the traction force control of a spinal traction device according to claim 3, characterized in that: The clonal mutation strategy is to mutate some audience individuals, specifically including: using formula (1) to calculate the fitness value of each individual in the current population, and calculating the fitness variance through the fitness value of the population. If the fitness variance is less than 0.01, the previous individual with the smallest fitness value is selected. The audience meta-heuristic algorithm of the stadium audience forms an immune individual set I(iter), and clones and mutates each individual in the immune individual set to generate a new clone , the new clone is the new audience individual position, wherein the cloned and mutated audience individuals are added to the algorithm population, and the first N audience individuals with the smallest fitness value are selected as the next generation population; wherein, the new clone is generated The mathematical model is: (8); In formula (8), is the position of the yth immune individual in the iterth iteration, C is 0 and has a variance of σ 2 A normally distributed random vector of is the position of the rth clone of the yth immune individual at the iterth iteration, is the mutation rate of the iter-th iteration, and the mathematical model is: (9); In formula (9), is the initial value of the mutation rate, is the termination value of the mutation rate, and Max_iter is the maximum number of iterations.
5. The method for optimizing the traction force control of a spinal traction device according to claim 4, characterized in that: The optimal PID control parameter combination in S3 includes the optimal proportional coefficient Kpbest, the integral coefficient Kibest and the differential coefficient Kdbest, wherein the optimal proportional coefficient Kpbest, the integral coefficient Kibest and the differential coefficient Kdbest are the individual positions of the spectators in the improved stadium audience metaheuristic algorithm corresponding to the minimum fitness value. Specifically, the Kp, Ki and Kd parameters of the position PID for the traction force control of the spinal traction device are encoded as N max The three-dimensional vectors constitute a parameter space [lb, ub], wherein each three-dimensional vector establishes a three-dimensional mapping with the individual position of the audience, and the Kp, Ki, and Kd parameter values are updated by updating the individual position of the audience.
6. A spinal traction device traction force control optimization method according to claim 5, characterized in that: In S3, the optimal PID control parameter combination is searched in the parameter space by simulating the behavior of the audience looking for seats. The specific steps are: S31. Set the population size N of the improved stadium audience metaheuristic algorithm max , the maximum number of iterations Max_iter, the problem dimension D, the initial value of the motion intensity weight β0, the initial value of the improved motion intensity factor and the parameter space [lb,ub]; S32, using the coverage optimization strategy to initialize the individual positions of the audience in the improved stadium audience meta-heuristic algorithm population, generating the initial positions of the individual audience in the population; calculating and storing the objective function value of the initial position of the individual audience; S33, judging whether the current number of iterations iter satisfies iter greater than Max_iter, if so, outputting the individual position of the audience corresponding to the current minimum fitness value, the individual position of the audience being resolved into the optimal proportional coefficient Kpbest, integral coefficient Kibest and differential coefficient Kdbest, otherwise, executing step S34; S34, generating an RND vector using a random selection mechanism according to formula (10) for controlling the movement of individual spectators in the global search and local development phases of the improved stadium spectator metaheuristic algorithm; (10); In formula (10), is the direction and step length of the movement of the i-th individual, is the optimal position of the ith audience individual, is the position of a random R1 audience member, is the position of a random R2 audience individual, HR is a random number between 0 and 1, and R is a vector of uniformly distributed random numbers between 0 and 1; S35. According to formula (11), introduce the improved exercise intensity factor , updating the individual position of the audience according to the distance between the current individual position of the audience and two randomly selected individual positions of the audience; (11); In formula (11), is the position of the ith audience individual in the iter+1th iteration, is the position of the i-th audience individual in the iter-th iteration, that is, the current audience individual position, To improve the exercise intensity factor, and and is a random number with normal distribution; S36, using formula (1) to calculate the fitness value of the individual position of the audience at the iter-th iteration, comparing the minimum fitness value at the iter-th iteration with the fitness value at the iter-1-th iteration, and taking the smaller fitness value as the current optimal fitness value; S37. Execute iter=iter+1 for the current iteration number iter, and return to step S33 to continue optimizing.
7. A spinal traction device traction force control optimization method according to claim 6, characterized in that: The coverage optimization strategy initializes the individual positions of the spectators in the improved stadium spectator metaheuristic algorithm population. The coverage optimization strategy uses a uniform design method to generate a matrix that is uniformly distributed in each problem dimension. max and problem dimension D, design uniform matrix , the elements in the matrix are uniformly distributed in the interval [0, 1), and the individual positions of the audience in the population are further initialized, and each element of the uniform design matrix U is scaled to the actual range [lb, ub] of the algorithm search space. The mathematical model of the initialization solution for the i-th audience individual position is: (12); In formula (12), is the initial position value of the jth dimension of the ith audience individual, is the maximum initial position value of the j-th dimension of the ith audience individual, is the minimum initial position value of the jth dimension of the ith audience individual, is the value of the jth dimension of the i-th viewer in the uniform matrix, where i=1,2,3,...,N max ; j=1,2,3,...,D.
8. The method for optimizing the traction force control of a spinal traction device according to claim 1, characterized in that: The traction force of the spinal traction device is precisely controlled. The traction force in the spinal traction device is generated by a brushless DC motor. The traction control system of the spinal traction device generates a certain pulling force on the spine by controlling the motor output. Specifically, the deviation between the target traction force value and the real-time traction force value is calculated. ; The traction control amount is calculated using the PID controller optimized by the improved stadium audience metaheuristic algorithm, and the traction control amount controls the torque of the power motor. The torque of the power motor is converted into the actual response of the traction arm of the spinal traction device through the dynamic model. The QSSO-PID controller and the traction sensor are combined to form a closed-loop system, wherein the traction sensor collects the traction force at the current moment in real time in the closed-loop system; wherein, is the traction force value of the spinal traction device at the tth second, is the target value of the traction force of the spinal traction device.
Citation Information
Patent Citations
A methodfor fractional order controller in delta domain for electrochemical process
AU2020104117A4
Self-adaptive traction force control method of knee joint tractor
CN118092146A
