CN101837164A - Double source feature fusion ant colony tuning method for PID (Proportion Integration Differention) parameter in functional electro-stimulation - Google Patents

Double source feature fusion ant colony tuning method for PID (Proportion Integration Differention) parameter in functional electro-stimulation Download PDF

Info

Publication number
CN101837164A
CN101837164A CN 201010184209 CN201010184209A CN101837164A CN 101837164 A CN101837164 A CN 101837164A CN 201010184209 CN201010184209 CN 201010184209 CN 201010184209 A CN201010184209 A CN 201010184209A CN 101837164 A CN101837164 A CN 101837164A
Authority
CN
China
Prior art keywords
hrv
pid
parameter
variable
composition
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN 201010184209
Other languages
Chinese (zh)
Other versions
CN101837164B (en
Inventor
明东
张广举
刘秀云
朱韦西
邱爽
万柏坤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
DATIAN MEDICAL SCIENCE ENGINEERING (TIANJIN) Co.,Ltd.
Original Assignee
Tianjin University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tianjin University filed Critical Tianjin University
Priority to CN201010184209XA priority Critical patent/CN101837164B/en
Publication of CN101837164A publication Critical patent/CN101837164A/en
Application granted granted Critical
Publication of CN101837164B publication Critical patent/CN101837164B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention relates to the instrument field for limbs rehabilitation by electronic impulse stimulation. The invention adopts the following technical scheme to control the current strength of an FES (Functional Electro-Simulation) system in real time accurately and stably so as to improve the accuracy and the stability of the FES system. A double source feature fusion ant colony tuning method for PID (Proportion Integration Differention) parameter in functional electro-stimulation comprises steps as follow: first, forecasting knee joint angle by a muscle model HRV in the processes of assisted walking; then, tuning the PID parameter through an ant colony optimization and adjusting current strength of the FES system in real time; controlling the PID parameter through ant colony optimization and keeping the optimization process till anticipatory goal is achieved; calculating system output and difference between the muscle model HRV with new PID parameter and then entering the step of self-learning of the ant colony optimization and self-regulating of weighting coefficient; repeating the former step for self-adapting on-line tuning of PID control parameter and using the tuned PID control parameter in the FES system. This invention is mainly applied for tuning PID parameter.

Description

The double source feature fusion ant colony setting method of pid parameter in the functional electric stimulation
Technical field
The present invention relates to carry out the instrument field of limb rehabilitating, especially the double source feature fusion ant colony setting method of pid parameter in the functional electric stimulation with electric pulse stimulation.
Background technology
(Functional Electrical Stimulation is to stimulate limb motion muscle group and peripheral nervous thereof by current pulse sequence FES) to functional electric stimulation, recovers or rebuild the technology of the componental movement function of paralytic patient effectively.According to statistics, because the spinal cord regeneration ability is faint, at the spinal cord injury paralysed patient, the effective treatment method that can directly repair damage is not arranged as yet at present, implementing function rehabilitation training is effective measures.Spinal cord injury paralysed patient number increases year by year, and function rehabilitation training is a technology of demanding demand urgently.The sixties in 20th century, Liberson successfully utilizes the electricity irritation peroneal nerve to correct the gait of hemiplegic patient's drop foot first, has started the new way that functional electric stimulation is used to move and Sensory rehabilitation is treated.At present, FES has become the componental movement function of recovering or rebuilding paralytic patient, is important rehabilitation means.Yet how accurate triggering sequential and the pulse current intensity of controlling FES can accurately be finished the key problem in technology that the intended function action is still FES with assurance electricity irritation action effect.According to statistics, the mode of the triggering of FES control is at present studied still few, and according to action effect and predetermined action deviation, automatically adjust FES stimulus intensity and time sequence parameter with closed loop control, thereby improved the accuracy and the stability of FES system greatly, but now effective control method is still among exploring.
Handle retroaction vector (handle reactions vector, HRV) be according in the process of standing and walking under the walker help, in fact the effectiveness that walker offers the patient can be divided into clear and definite independently 3 parts: sagittal trying hard to recommend into, about to dynamic balance and the power support of upward and downward, this also can be regarded as the patient in fact and keeps the new ideas that the required to external world additional mechanics demand of self normal stand walking proposes, promptly be that the patient is reduced to concentrfated load to the effect of walker is synthetic in the walking process of standing, represent with two mechanics vectors at handle mid point cross section centre of form place respectively, as shown in Figure 1, vector is at x, y, durection component on z axle size with joint efforts can characterize the patient respectively by trying hard to recommend into that walker obtained, dynamic balance and power support level.Wherein, the x axle forward that sets of definition coordinate system is patient's dextrad, and y axle forward be patient's a forward direction, z axle forward be the patient on to.Like this, the defined formula of HRV also can be written as:
[HRV]=[HRV 1,HRV r] T=[F lx,F ly,F lz,F rx,F ry,F rz] T (1)
At present, the situation when HRV is widely used in supervision patient walks in the electricity irritation process prevents that then patient from falling down, and causes the secondary injury.This patent proposes to utilize this parameter prediction knee joint angle, the accurate then levels of current intensity of controlling the FES system, and assurance electricity irritation action effect can accurately be finished the intended function action, and prevents muscle fatigue.
Ratio calculus (proportional-integral-differential, PID) be a kind of very practical feedback regulation algorithm, it detects according to system or the operation deviation, proportion of utilization, integration, the required regulated quantity of acquisition of differentiating are widely used in engineering practice so that system is carried out feedback control because of it is easy to operate.Especially indeterminate or when being difficult to timely on-line determination, safe closed loop control can be adopted the PID setting algorithm when the controlled system characterisitic parameter.In the face of the complexity and the time variation operating environment of muscle, because good stability, the reliable operation of PID have still obtained in the functional electric stimulation field using widely at present.The PID core technology is accurate determine wherein ratio, integration, differential coefficient, especially in the FES field, system stability is required very strictness, so select particularly important to pid parameter.PID control will obtain controls effect preferably, must adjust ratio, integration and three kinds of control actions of differential, forms in the controlled quentity controlled variable not only to cooperatively interact but also the relation of mutual restriction.
Summary of the invention
For overcoming the deficiencies in the prior art, the double source feature fusion ant colony setting method of pid parameter in a kind of functional electric stimulation is provided, can accurately stablize and control systematically current intensity of FES in real time, improve FES system accuracy and stability effectively, and obtain considerable social benefit and economic benefit.For achieving the above object, the technical solution used in the present invention is: the double source feature fusion ant colony setting method of pid parameter in the functional electric stimulation comprises the following steps:
At first, utilize the muscle model HRV forecasting knee joint angle of walk help process;
Secondly, utilize the ant group algorithm pid parameter of adjusting, real-time monitoring FES levels of current intensity, its flow process of adjusting is: head
Elder generation is according to three decision variable K of PID p, K iAnd K dThe bound of span, determine to comprise the parameter of ant group population size, search volume dimension, and it is encoded, utilize then by actual joint angles and export the fitness value of the corresponding relation of joint angles as appropriate evaluation function calculating with muscle model HRV; Adopt ant group algorithm that pid parameter is controlled, promptly determine the parameter setting of ant group algorithm, utilize the Formica fusca random search to make its variable optimize the K of PID p, K iAnd K dThree coefficients utilize fitness function to regulate at every turn explore path and judge whether to reach goal-selling of Formica fusca, as reach goal-selling, calculate the K that final best position promptly gets PID p, K iAnd K dThree coefficients, as do not reach re-set target continuation optimizing, up to reaching goal-selling; Computing system output yout under the new PID coefficient and with the deviation of muscle model HRV after enter next step ant group algorithm again self study and weight coefficient self-adjusting;
Previous step finally realizes the self adaptation on-line tuning of pid control parameter repeatedly, and is used for the FES system.
The corresponding relation of described actual joint angles and muscle model HRV output joint angles is:
L=M×HRV -1 (3)
M represents knee joint angle, and HRV represents that user is applied to the handle retroaction vector of power on the walker, and L represents the relation between HRV and the M, adopts the method for PLS to find the solution L:
Be provided with m HRV variable HRV1 ..., HRVm, p M variable, M1 ..., Mp, i (i=1 altogether,, the n) data set of individual observation, T, U are respectively the composition that extracts from HRV variable and M variable, concentrate the linear combination of extracting first couple of composition T1, U1 to be from original variable:
T 1=ω 11HRV 1+…+ω 1mHRV m=ω 1′HRV (4)
U 1=v 11M 1+…+v 1pM p=v 1′M (5)
ω wherein 1=(ω 11..., ω 1m) ' be model effect weight, v 1=v 11..., v 1p) ' be M variable weight is converted into the requirement of said extracted first composition and asks constrained extremal problem:
Figure GDA0000021781210000021
Wherein t1, u1 are the score vector of first pair of composition of being tried to achieve by sample, and HRV0, M0 are initializaing variable, utilize method of Lagrange multipliers, and the problems referred to above are converted into asks unit vector ω 1And v 1, make θ 11' HRV 0' M 0v 1Maximum is promptly asked matrix H RV 0' M 0M 0' HRV 0Eigenvalue and characteristic vector, its eigenvalue of maximum is θ 1 2, corresponding unit character vector is exactly the ω that separates that is asked 1, and v 1By formula
Figure GDA0000021781210000031
Obtain;
Next sets up the equation of initializaing variable to T1
HRV 0 = t 1 α 1 ′ + E 1 M 0 = t 1 β 1 ′ + F 1 - - - ( 7 )
Wherein the t1 meaning is the same, α 1'=(α 11..., α 1m), β 1'=β 11..., β 1p) be the parameter vector when only a M measures t1, E1, F1 are respectively n * m and n * p residual error battle array, can try to achieve coefficient vector α according to common method of least square 1And β 1, α wherein 1Become model effect load capacity;
Can not reach the precision of regression model as first composition that extracts, utilization residual error battle array E1, F1 replace X0, Y0, repeat to extract composition, and the like, supposing finally to have extracted r composition, HRV0, M0 to the regression equation of r composition are:
HRV 0 = t 1 α 1 ′ + . . . + t r α r ′ + E r M 0 = t 1 β 1 ′ + . . . + t r β r ′ + F r - - - ( 8 )
The first step analyze extract in the gained HRV amount composition Tk (k=1 ..., r) regression equation that the M amount is set up r composition, i.e. t are brought in linear combination into rK1HRV 1+ ... + ω KmHRV mSubstitution M j=t 1β 1j+ ... + t rβ Rj(j=1 ..., p), promptly get the regression equation M of standardized variable jJ1HRV 1+ ... + α JmHRV m
According to formula (3), can obtain L at last.
The described coding is that according to knee joint angle and current-mode, and three parameters of actual error situation setting PID are 5 position effective digitals, wherein K pPreceding 2 of arithmetic point, behind the arithmetic point 3; K iAnd K dPreceding 1 of arithmetic point, behind the arithmetic point 4, specific coding such as following formula:
K p=y 1,j×10 1+y 2,j×10 0+y 3,j×10 -1+y 4,j×10 -2+y 5,j×10 -3
K i=y 6,j×10 0+y 7,j×10 -1+y 8,j×10 -2+y 9,j×10 -3+y 10,j×10 -4
K d=y 6,j×10 0+y 7,j×10 -1+y 8,j×10 -2+y 9,j×10 -3+y 10,j×10 -4
And the concrete function of overshoot equal error design adaptation function according to output is:
fit=α1×σ+β1×t+c×error (9)
Wherein, σ is an overshoot, and t is the rise time, and error is the relative error of output joint angles and default joint angles, α 1=0.1, β 1=0.8, c=2;
The concrete workflow of ant group algorithm Tuning PID Controller device parameter is:
Step1: parameter initialization makes time t=0 and cycle-index N Max=0, maximum cycle N is set Cmax, m Formica fusca placed starting point;
Step2: Formica fusca number and cycle-index are set;
Step3: Formica fusca random search, after the end of once creeping, determine the actual input variable of the selected conduct of which characteristic variable, revise the taboo list index, after promptly choosing Formica fusca is moved to new element, and this element is moved in the taboo table of this Formica fusca individuality;
Step4: calculate the probability that the Formica fusca individuality calculates according to the state transition probability formula, select element according to this probability;
Step5:, change Step3, otherwise be Step6 if the Formica fusca element has not traveled through;
Step6: the pheromone concentration that the plain concentration of lastest imformation is divided the high characteristic variable of accuracy is enhanced, and next time can be selected with bigger probability when searching for;
Step7: satisfy and finish to regulate the end of adjusting.
Characteristics of the present invention are: utilize the HRV variation prediction knee joint angle of walking aid to change, pass through proportionality coefficient, differential coefficient and the integral coefficient of ant group group algorithm optimization PID then, then control the current impulse intensity of FES system, improved FES system accuracy and stability effectively.
Description of drawings
Fig. 1 handle retroaction vector (HRV) definition sketch map.
Fig. 2 is based on the FES system architecture diagram of HRV.
Fig. 3 ant group group algorithm structured flowchart of pid parameter control method of adjusting.
Anthropometric dummy in Fig. 4 walk-aiding functional electric stimulation.
Fig. 5 ant group algorithm pid parameter coding sketch map of adjusting.
Fig. 6 experiment scene.
The result is followed the trail of in the PID control that Fig. 7 ant group group algorithm is adjusted.
The specific embodiment
Purport of the present invention is the precision control method that proposes a kind of new FES, utilize the error of knee joint angle and the joint angles of actual knee joint angle prediction of the HRV parameter prediction of walker, by proportionality coefficient, integral coefficient and the differential coefficient of ant group algorithm optimization PID, the accurately stable then systematically current intensity of FES of controlling in real time.This invention can improve FES system accuracy and stability effectively, and obtains considerable social benefit and economic benefit.
Based on the structure of the precision in the functional electric stimulation walk help of HRV control The application of new technique as shown in Figure 2, its workflow is: at first, utilize the HRV forecasting knee joint angle of walk help process, secondly, utilize the ant group algorithm pid parameter of adjusting, real-time monitoring FES levels of current intensity.It adjusts structural representation as shown in Figure 3, for: at first according to three decision variable K of PID p, K iAnd K dThe bound of span, determine parameters such as ant group population size, search volume dimension, and it is encoded, utilize the fitness value that calculates as appropriate evaluation function by the corresponding relation of actual joint angles and muscle model output joint angles then, and the parameter setting of definite ant group algorithm, utilize Formica fusca to receive rope at random and make its variable optimize the K of PID p, K iAnd K dThree coefficients utilize fitness function to regulate at every turn explore path and judge whether to reach goal-selling of Formica fusca.As reach goal-selling, calculate the K that final best position promptly gets PID p, K iAnd K dThree coefficients, as do not reach re-set target continuation optimizing, up to reaching goal-selling.Computing system output yout under the new PID coefficient and with the deviation of muscle model after enter next step ant group algorithm again self study and weight coefficient self-adjusting.This process finally realizes the self adaptation on-line tuning of pid control parameter repeatedly, and is used for the FES system.
1HRV forecasting knee joint angle model
In the walk help process, when user under the functional electric stimulation effect, when lifting lower limb and taking a step, in order to support body steadiness, user applied force on walker is then different, because varying in size of joint can make the gravity center of human body be in diverse location, it is also different then to overcome the gravity applied force, the residing plan-position of human body also changes to some extent simultaneously, applied force also changes to some extent for the position is tumbled then in the plane, therefore, joint angles and user have certain relation to the walker applied force, as shown in Figure 4.
M=L·HRV+wPW (1)
Wherein, M represents knee joint angle, and HRV represents that user is applied to the handle retroaction vector of power on the walker, and L represents the relation between HRV and the M, and w represents coefficient, and W represents the center of gravity of upper arm, trunk and lower limb, and P represents the relation between three centers of gravity and the M.
In the reality, because the effect of walker, the gravity center of human body moves less, and knee joint angle then can be expressed as
M=L·HRV (2)
Wherein, M represents knee joint angle, and HRV represents that user is applied to the handle retroaction vector of power on the walker, and L represents the relation between HRV and the M.Shown in formula 2, determine that L just can utilize HRV to take out the knee joint angle in the corresponding moment.
L=M×HRV -1 (3)
When the present invention finds the solution L, adopted the method for PLS.
Be provided with m HRV variable HRV1 ..., HRVm, p M variable, M1 ..., Mp, common i (i=1 ..., the n) data set of individual observation.T, U are respectively the composition that extracts from HRV variable and M variable, the composition of Ti Quing is commonly referred to the offset minimum binary factor here.
Concentrate the linear combination of extracting first couple of composition T1, U1 to be from original variable:
T 1=ω 11HRV 1+…+ω 1mHRV m=ω 1′HRV (4)
U 1=v 11M 1+…+v 1pM p=v 1′M (5)
ω wherein 1=(ω 11..., ω 1m) ' be model effect weight, v 1(v 11..., v 1p) ' be M variable weight.For guaranteeing that T1, U1 extract the variation information of place set of variables separately as much as possible, guarantee that simultaneously degree of correlation between the two reaches maximum, according to the character that the covariance of composition can be calculated by the inner product of the score vector of corresponding composition, the requirement of said extracted first composition is converted into asks constrained extremal problem.
Figure GDA0000021781210000051
Wherein t1, u1 are the score vector of first pair of composition of being tried to achieve by sample, and HRV0, M0 are initializaing variable.Utilize method of Lagrange multipliers, the problems referred to above are converted into asks unit vector ω 1And v 1, make θ 11' HRV 0' M 0v 1Maximum is promptly asked matrix H RV 0' M 0M 0' HRV 0Eigenvalue and characteristic vector, its eigenvalue of maximum is θ 1 2, corresponding unit character vector is exactly the ω that separates that is asked 1, and v 1By formula
Figure GDA0000021781210000061
Obtain.
Next sets up the equation of initializaing variable to T1
HRV 0 = t 1 α 1 ′ + E 1 M 0 = t 1 β 1 ′ + F 1 - - - ( 7 )
Wherein the t1 meaning is the same, α 1'=(α 11..., α 1m), β 1'=β 11..., β 1p) be the parameter vector when only a M measures t1, E1, F1 are respectively n * m and n * p residual error battle array.Can try to achieve coefficient vector α according to common method of least square 1And β 1, α wherein 1Become model effect load capacity.
Can not reach the precision of regression model as first composition that extracts, utilization residual error battle array E1, F1 replace X0, Y0, repeat to extract composition, and the like.Suppose finally to have extracted r composition, HRV0, M0 to the regression equation of r composition are:
HRV 0 = t 1 α 1 ′ + . . . + t r α r ′ + E r M 0 = t 1 β 1 ′ + . . . + t r β r ′ + F r - - - ( 8 )
The first step analyze extract in the gained HRV amount composition Tk (k=1 ..., r) regression equation that the M amount is set up r composition, i.e. t are brought in linear combination into rK1HRV 1+ ... + ω KmHRV mSubstitution M j=t 1β 1j+ ... + t rβ Rj(j=1 ..., p), promptly get the regression equation M of standardized variable jJ1HRV 1+ ... + α JmHRV m
According to formula 3, can obtain L at last.
Ant group algorithm is at first encoded to three parameters of PID to the control of pid parameter, and according to knee joint angle and current-mode, and three parameters that situation such as actual error is set PID are 5 position effective digitals, wherein K pPreceding 2 of arithmetic point, behind the arithmetic point 3; K iAnd K dPreceding 1 of arithmetic point, behind the arithmetic point 4.Its specific coding sketch map as shown in Figure 5.
As following formula
K p=y 1,j×10 1+y 2,j×10 0+y 3,j×10 -1+y 4,j×10 -2+y 5,j×10 -3
K i=y 6,j×10 0+y 7,j×10 -1+y 8,j×10 -2+y 9,j×10 -3+y 10,j×10 -4
K d=y 6,j×10 0+y 7,j×10 -1+y 8,j×10 -2+y 9,j×10 -3+y 10,j×10 -4
And the concrete function of overshoot equal error design adaptation function according to output is:
fit=α1×σ+β1×t+c×error (9)
Wherein, σ is an overshoot, and t is the rise time, and error is the relative error of output joint angles and default joint angles, α 1=0.1, β 1=0.8, c=2.
The concrete workflow of ant group algorithm Tuning PID Controller device parameter is:
Step1: parameter initialization.Make time t=0 and cycle-index N Max=0, maximum cycle N is set Cmax, m Formica fusca placed starting point.
Step2: Formica fusca number and cycle-index are set
Step3: the Formica fusca random search, after the end of once creeping, determine the actual input variable of the selected conduct of which characteristic variable, revise the taboo list index, after promptly choosing Formica fusca is moved to new element, and this element is moved in the taboo table of this Formica fusca individuality
Step4: calculate the probability that the Formica fusca individuality calculates according to the state transition probability formula, select element according to this probability
Step5:, change Step3, otherwise be Step6 if the Formica fusca element has not traveled through
Step6: the pheromone concentration that the plain concentration of lastest imformation is divided the high characteristic variable of accuracy is enhanced, and next time can be selected with bigger probability when searching for
Step7: satisfy and finish to regulate the end of adjusting.
The control that 2 ant group group algorithms are adjusted pid parameter
PID is made up of ratio unit P, integral unit I and differentiation element D three parts, according to the error of system, by the K that sets p, K iAnd K dThree parameters are controlled system.
yout ( t ) = K p error ( t ) + K i Σ j = 0 t error ( j ) + K d [ error ( t ) - error ( t - 1 ) ] - - - ( 9 )
K wherein pBe proportionality coefficient, K iBe integral coefficient, K dBe differential coefficient, error is the deviation of default output with actual output, and u (t) is the output of PID, is again the input of controlled system simultaneously.
Can obtain by PID output formula (1)
u ( t - 1 ) = K p error ( t - 1 ) + K i Σ j = 0 t - 1 error ( j ) + K d [ error ( t - 1 ) - error ( t - 2 ) ] - - - ( 10 )
According to:
Δu(t)=u(t)-u(t-1)
=K p(error(t)-error(t-1))+K ierror(t)+K d(error(t)-2error(t-1)+error(t-2))
……………………………………………………………(11)
Have:
u(t)=Δu(t)+u(t-1)=
u(t-1)+K p(error(t)-error(t-1))+K ierror(t)+K d(error(t)-2error(t-1)+error(t-2))
………………(12)
The present invention adopts ant group algorithm to carry out the adaptive optimization of pid control parameter, as a combination, utilizes three parameters of PID the ant group algorithm optimizing to solve this combinatorial problem.Ant group algorithm is a kind of novel bionic Algorithm that comes from the Nature biological world, when finding the solution optimization problem with ant group algorithm, at first optimization problem is transformed in order to find the solution shortest route problem.Every Formica fusca is from initial contact N 00, N 01... N 0nSet out, N in proper order passes by 1, N 2..., a wherein child node, up to destination node N K0, N K1... N KnForm path (N 0tN 1t... N Kt), t ∈ [0,1,2 ... 9].A binary feasible solution can be represented in its path.Following feature is arranged during each Formica fusca visit city:
The state transformation rule: the state transformation rule that ant group algorithm uses is the rule of ratio at random that proposes based on the TSP problem, and it provides the probability that the Formica fusca k that is positioned at city i selects to move to city j,
Figure GDA0000021781210000081
τ wherein Ij(i j) is (i, fitness j), η Ij(i, j)=(10-|y (i)-y (i) *|)/10, during y (i) ant group hunting in the value at i place, y (i) *When searching for for last time in the value at i place.α is the relative significance level of residual risk, the relative significance level that β is expected value.
In ant group algorithm, selection mode is
Figure GDA0000021781210000082
Wherein, q is for being evenly distributed on a random number on [0,1], q 0Be the parameter on [0,1].
Overall situation update rule: ant algorithm has different update algorithm, the overall situation that ant group system adopts is upgraded principle, only allowing the Formica fusca release pheromone of globally optimal solution, is the neighborhood that mainly concentrates on the best path of being found out till the current circulation for the search that makes Formica fusca like this.
τ ij(i,j)←(1-ρ)□τ ij(i,j)+ρ·Δτ ij(i,j) (14)
Figure GDA0000021781210000083
Wherein ρ is that information is counted volatility coefficient, L GbBe the global optimum path of finding so far
Local updating information: every Formica fusca is set up the renewal that the plain mark of the information of carrying out number is also arranged in the process of separating
τ ij(i,j)←(1-γ)□τ ij(i,j)+γ·Δτ ij(i,j) (16)
γ ∈ [0,1] wherein.
Ant group algorithm is at first encoded to three parameters of PID to the control of pid parameter, and according to knee joint angle and current-mode, and three parameters that situation such as actual error is set PID are 5 position effective digitals, wherein K pPreceding 2 of arithmetic point, behind the arithmetic point 3; K iAnd K dPreceding 1 of arithmetic point, behind the arithmetic point 4.Its specific coding sketch map as shown in Figure 5.
As following formula
K p=y 1,j×10 1+y 2,j×10 0+y 3,j×10 -1+y 4,j×10 -2+y 5,j×10 -3
K i=y 6,j×10 0+y 7,j×10 -1+y 8,j×10 -2+y 9,j×10 -3+y 10,j×10 -4
K d=y 6,j?×10 0+y 7,j×10 -1+y 8,j?×10 -2+y 9,j?×10 -3+y 10,j×10 -4
The concrete workflow of ant group algorithm Tuning PID Controller device parameter is:
Step1: parameter initialization.Make time t=0 and cycle-index N Max=0, maximum cycle N is set Cmax, m Formica fusca placed starting point.
Step2: Formica fusca number and cycle-index are set
Step3: the Formica fusca random search, after the end of once creeping, determine the actual input variable of the selected conduct of which characteristic variable, revise the taboo list index, after promptly choosing Formica fusca is moved to new element, and this element is moved in the taboo table of this Formica fusca individuality
Step4: calculate the probability that the Formica fusca individuality calculates according to the state transition probability formula, select element according to this probability
Step5:, change Step3, otherwise be Step6 if the Formica fusca element has not traveled through
Step6: the pheromone concentration that the plain concentration of lastest imformation is divided the high characteristic variable of accuracy is enhanced, and next time can be selected with bigger probability when searching for
Step7: satisfy and finish to regulate the end of adjusting.
3 experimental programs
Experimental provision adopts the walker system of wireless transmission and the Parastep functional electric stimulation system that U.S. SIGMEDICS company produces, and this system comprises microprocessor and boost pulse generation circuit, contains six stimulation channels, battery powered.Experiment content is: utilize the FES system that the relevant muscle group of lower limb is stimulated, make the experimenter according to predetermined actions, record is applied to HRV on the walker at first by being installed in voltage signal and the knee joint angle movement locus that foil gauge (BX350-6AA) network of electrical bridge changes into that lead of 12 on the walker simultaneously.Require the experimenter healthy, no lower limb muscles, skeleton illness, impassivity illness and severe cardiac pulmonary disease.Before the experimenter sits on walker during experiment,
Stimulating electrode is fixed in corresponding position, and when not applying electricity irritation, it is light that the experimenter keeps.The FES experiment scene as shown in Figure 5.The electric stimulation pulse sequence adopts classical Lilly waveform, and pulse frequency is 25Hz, pulsewidth 150 μ s, and pulse current is adjustable in 0~120m scope.In the experiment, write down in real time HRV with
And can adjust stimulus intensity to change the knee joint angle that produces by stimulating by changing the pulse current size.Before the experiment, set the knee joint angle movement locus of expectation, utilize the angular surveying meter to detect the knee joint subtended angle in real time in the experiment and change.The experimental data sample rate is 128Hz, and the data record duration is 60s.
Beneficial effect
The adjust new algorithm of pid parameter of ant group algorithm is calculated the FES pulse current amplitude and is adjusted, the knee joint angle that the FES effect is produced move the movement locus of expection.Fig. 7 follows the trail of the result for the PID control that ant group algorithm is adjusted.Red line represents that desired movement track, blue line are actual output joint angles among the figure.X-axis is the time, and Y-axis is the motion of knee joint angle.For more clearly observing the departure that ant group algorithm is adjusted PID, shown in the relative error of default input knee joint angle and actual knee joint angle under the ant group algorithm Tuning PID Controller, then error can reach accurate control all within 5% as can be seen.
Purport of the present invention is the precision control method that proposes a kind of new FES, utilize the error of knee joint angle and the joint angles of actual knee joint angle prediction of the HRV parameter prediction of walker, by proportionality coefficient, integral coefficient and the differential coefficient of ant group algorithm optimization PID, the accurately stable then systematically current intensity of FES of controlling in real time.This invention can improve FES system accuracy and stability effectively, and obtains considerable social benefit and economic benefit.Optimum implementation intends adopting patent transfer, technological cooperation or product development.

Claims (4)

1. the double source feature fusion ant colony setting method of pid parameter in the functional electric stimulation is characterized in that, comprises the following steps:
At first, utilize the muscle model HRV forecasting knee joint angle of walk help process;
Secondly, utilize the ant group algorithm pid parameter of adjusting, real-time monitoring FES levels of current intensity, its flow process of adjusting is: at first according to three decision variable K of PID p, K iAnd K dThe bound of span, determine to comprise the parameter of ant group population size, search volume dimension, and it is encoded, utilize then by actual joint angles and export the fitness value of the corresponding relation of joint angles as appropriate evaluation function calculating with muscle model HRV; Adopt ant group algorithm that pid parameter is controlled, promptly determine the parameter setting of ant group algorithm, utilize the Formica fusca random search to make its variable optimize the K of PID p, K iAnd K dThree coefficients utilize fitness function to regulate at every turn explore path and judge whether to reach goal-selling of Formica fusca, as reach goal-selling, calculate the K that final best position promptly gets PID p, K iAnd K dThree coefficients, as do not reach re-set target continuation optimizing, up to reaching goal-selling; Computing system output yout under the new PID coefficient and with the deviation of muscle model HRV after enter next step ant group algorithm again self study and weight coefficient self-adjusting;
Previous step finally realizes the self adaptation on-line tuning of pid control parameter repeatedly, and is used for the FES system.
2. the double source feature fusion ant colony setting method of pid parameter is characterized in that in a kind of functional electric stimulation according to claim 1, and the corresponding relation of actual joint angles and muscle model HRV output joint angles is:
L=M×HRV -1 (3)
M represents knee joint angle, and HRV represents that user is applied to the handle retroaction vector of power on the walker, and L represents the relation between HRV and the M, adopts the method for PLS to find the solution L:
Be provided with m HRV variable HRV1 ..., HRVm, p M variable, M1 ..., Mp, i (i=1 altogether,, the n) data set of individual observation, T, U are respectively the composition that extracts from HRV variable and M variable, concentrate the linear combination of extracting first couple of composition T1, U1 to be from original variable:
T 1=ω 11HRV 1+…+ω 1mHRV m=ω′ 1HRV (4)
U 1=v 11M 1+…+v 1pM p=v′ 1M (5)
ω wherein 1=(ω 11..., ω 1m) ' be model effect weight, v 1=(v 11..., v 1p) ' be M variable weight is converted into the requirement of said extracted first composition and asks constrained extremal problem:
Figure FDA0000021781200000011
Wherein t1, u1 are the score vector of first pair of composition of being tried to achieve by sample, and HRVO, MO are initializaing variable, utilize method of Lagrange multipliers, and the problems referred to above are converted into asks unit vector ω 1And v 1, make θ 1=ω ' 1HRV ' 0M 0v 1Maximum is promptly asked matrix H RV ' 0M 0M ' 0HRV 0Eigenvalue and characteristic vector, its eigenvalue of maximum is θ 1 2, corresponding unit character vector is exactly the ω that separates that is asked 1, and v 1By formula Obtain;
Next sets up the equation of initializaing variable to T1
HRV 0 = t 1 α 1 ′ + E 1 M 0 = t 1 β 1 ′ + F 1 - - - ( 7 )
Wherein the t1 meaning is the same, α ' 1=(α 11..., α 1m), β ' 1=(β 11..., β 1p) be the parameter vector when only a M measures t1, E1, F1 are respectively n * m and n * p residual error battle array, can try to achieve coefficient vector α according to common method of least square 1And β 1, α wherein 1Become model effect load capacity;
Can not reach the precision of regression model as first composition that extracts, utilization residual error battle array E1, F1 replace XO, YO, repeat to extract composition, and the like, supposing finally to have extracted r composition, HRVO, MO to the regression equation of r composition are:
HRV 0 = t 1 α 1 ′ + . . . + t r α r ′ + E r M 0 = t 1 β 1 ′ + . . . + t r β r ′ + F r - - - ( 8 )
The first step analyze extract in the gained HRV amount composition Tk (k=1 ..., r) regression equation that the M amount is set up r composition, i.e. t are brought in linear combination into rK1HRV 1+ ... + ω KmHRV mSubstitution M j=t 1β 1j+ ... + t rβ Rj(j=1 ..., p), promptly get the regression equation M of standardized variable jJ1HRV 1+ ... + α JmHRV m
According to formula (3), can obtain L at last.
3. the double source feature fusion ant colony setting method of pid parameter in a kind of functional electric stimulation according to claim 1, it is characterized in that described the coding is, according to knee joint angle and current-mode, and three parameters of actual error situation setting PID are 5 position effective digitals, wherein K pPreceding 2 of arithmetic point, behind the arithmetic point 3; K iAnd K dPreceding 1 of arithmetic point, behind the arithmetic point 4, specific coding such as following formula:
K i=y 6,j×10 0+y 7,j×10 -1+y 8,j×10 -2+y 9,j×10 -3+y 10,j×10 -4
K p=y 1,j×10 1+y 2,j×10 0+y 3,j×10 -1+y 4,j×10 -2+y 5,j×10 -3
K d=y 6,j×10 0+y 7,j×10 -1+y 8,j×10 -2+y 9,j×10 -3+y 10,j×10 -4
And the concrete function of overshoot equal error design adaptation function according to output is:
fit=α1×σ+β1×t+c×error (9)
Wherein, σ is an overshoot, and t is the rise time, and error is the relative error of output joint angles and default joint angles, α 1=0.1, β 1=0.8, c=2.
4. the double source feature fusion ant colony setting method of pid parameter is characterized in that in a kind of functional electric stimulation according to claim 1, and the concrete workflow of ant group algorithm Tuning PID Controller device parameter is:
Step1: parameter initialization makes time t=0 and cycle-index N Max=0, maximum cycle N is set Cmax, m Formica fusca placed starting point;
Step2: Formica fusca number and cycle-index are set;
Step3: Formica fusca random search, after the end of once creeping, determine the actual input variable of the selected conduct of which characteristic variable, revise the taboo list index, after promptly choosing Formica fusca is moved to new element, and this element is moved in the taboo table of this Formica fusca individuality;
Step4: calculate the probability that the Formica fusca individuality calculates according to the state transition probability formula, select element according to this probability;
Step5:, change Step3, otherwise be Step6 if the Formica fusca element has not traveled through;
Step6: the pheromone concentration that the plain concentration of lastest imformation is divided the high characteristic variable of accuracy is enhanced, and next time can be selected with bigger probability when searching for;
Step7: satisfy and finish to regulate the end of adjusting.
CN201010184209XA 2010-05-27 2010-05-27 Double source feature fusion ant colony tuning method for PID (Proportion Integration Differention) parameter in functional electro-stimulation Active CN101837164B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201010184209XA CN101837164B (en) 2010-05-27 2010-05-27 Double source feature fusion ant colony tuning method for PID (Proportion Integration Differention) parameter in functional electro-stimulation

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201010184209XA CN101837164B (en) 2010-05-27 2010-05-27 Double source feature fusion ant colony tuning method for PID (Proportion Integration Differention) parameter in functional electro-stimulation

Publications (2)

Publication Number Publication Date
CN101837164A true CN101837164A (en) 2010-09-22
CN101837164B CN101837164B (en) 2012-11-28

Family

ID=42740989

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201010184209XA Active CN101837164B (en) 2010-05-27 2010-05-27 Double source feature fusion ant colony tuning method for PID (Proportion Integration Differention) parameter in functional electro-stimulation

Country Status (1)

Country Link
CN (1) CN101837164B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102662317A (en) * 2012-03-27 2012-09-12 中国人民解放军国防科学技术大学 PID controller based on prokaryotic bionic array
CN106527491A (en) * 2016-11-21 2017-03-22 南京航空航天大学 Control system for fixed-wing unmanned aerial vehicle and horizontal and lateral flight track control method
CN112286044A (en) * 2020-10-14 2021-01-29 珠海格力电器股份有限公司 PID parameter optimization method and device and related equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6171239B1 (en) * 1998-08-17 2001-01-09 Emory University Systems, methods, and devices for controlling external devices by signals derived directly from the nervous system
CN101118421A (en) * 2007-09-13 2008-02-06 北京航空航天大学 Intelligent non-linearity PID controlling parameter tuning based on self-adapting ant colony
CN101596338A (en) * 2009-04-29 2009-12-09 天津大学 Functional electric stimulation precision control method based on BP neural network tuned proportion integration differentiation PID

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6171239B1 (en) * 1998-08-17 2001-01-09 Emory University Systems, methods, and devices for controlling external devices by signals derived directly from the nervous system
CN101118421A (en) * 2007-09-13 2008-02-06 北京航空航天大学 Intelligent non-linearity PID controlling parameter tuning based on self-adapting ant colony
CN101596338A (en) * 2009-04-29 2009-12-09 天津大学 Functional electric stimulation precision control method based on BP neural network tuned proportion integration differentiation PID

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
《31st Annual International Conference of the IEEE EMBS Minneapolis》 20090906 Longlong Cheng et al Radial Basis Function Neural Network-based PID Model for functional Electrical Stimulation System Control 3481-3484 1-4 , 2 *
《弹箭与制导学报》 20090228 舒涛等 基于遗传蚁群混合策略的PID控制器参数整定 73-76,80 1-4 第29卷, 第1期 2 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102662317A (en) * 2012-03-27 2012-09-12 中国人民解放军国防科学技术大学 PID controller based on prokaryotic bionic array
CN102662317B (en) * 2012-03-27 2014-05-21 中国人民解放军国防科学技术大学 PID controller based on prokaryotic bionic array
CN106527491A (en) * 2016-11-21 2017-03-22 南京航空航天大学 Control system for fixed-wing unmanned aerial vehicle and horizontal and lateral flight track control method
CN106527491B (en) * 2016-11-21 2019-12-03 南京航空航天大学 A kind of fixed-wing unmanned aerial vehicle control system and horizontal crabbing method for controlling trajectory
CN112286044A (en) * 2020-10-14 2021-01-29 珠海格力电器股份有限公司 PID parameter optimization method and device and related equipment

Also Published As

Publication number Publication date
CN101837164B (en) 2012-11-28

Similar Documents

Publication Publication Date Title
CN101816822B (en) Setting method of functional electrical stimulation PID (Proportion Integration Differentiation) parameter double source characteristic fusion particle swarm
De Groote et al. Perspective on musculoskeletal modelling and predictive simulations of human movement to assess the neuromechanics of gait
CN101794114B (en) Method for tuning control parameter in walk-aiding functional electric stimulation system by utilizing genetic algorithm
CN101596338A (en) Functional electric stimulation precision control method based on BP neural network tuned proportion integration differentiation PID
CN102274581B (en) Precise control method for functional electric stimulation
CN101816821B (en) Walking aid functional electrical stimulation precision control method based on ant colony fuzzy controller
He et al. Learning from biological systems: Modeling neural control
CN101837164B (en) Double source feature fusion ant colony tuning method for PID (Proportion Integration Differention) parameter in functional electro-stimulation
CN101837165B (en) Walking aid electrostimulation fine control method based on genetic-ant colony fusion fuzzy controller
CN101846977B (en) Genetic fuzzy control method of joint angles by functional electrical stimulation
CN102488964A (en) Functional electro stimulation closed loop fuzzy proportional integral derivative (PID) control method
Zheng et al. A computational model for ratbot locomotion based on cyborg intelligence
Luu et al. Subject-specific lower limb waveforms planning via artificial neural network
Jia et al. Individualized gait trajectory prediction based on fusion LSTM networks for robotic rehabilitation training
Girard et al. Robust discrete-time linear control of heart rate during treadmill exercise
CN102521508B (en) Adaptive neural fuzzy muscle modeling method under functional electrical stimulation
Luu et al. Subject-specific gait parameters prediction for robotic gait rehabilitation via generalized regression neural network
Barbosa et al. Control techniques for neuromuscular electrical stimulation: A brief survey
Wannawas et al. Towards ai-controlled fes-restoration of arm movements: Controlling for progressive muscular fatigue with gaussian state-space models
Feng et al. Reinforcement learning for energy optimization under human fatigue constraints of power-assisted wheelchairs
Arcolezi A novel robust and intelligent control based approach for human lower limb rehabilitation via neuromuscular electrical stimulation
CN104992059A (en) Intrinsic motivation based self-cognition system for motion balance robot and control method
Ibrahim et al. An Approach for Dynamic Characterisation of Passive Viscoelasticity and Estimation of Anthropometric Inertia Parameters of Paraplegic’s Knee Joint
Abram Mechanisms of energy optimization in human walking
Pons Vilà Predicting Human Motion Assisted by Wearable Hybrid Devices That Combine Robotics and Neuroprostheses

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20210301

Address after: Room 101, building C22, entrepreneurship headquarters base, North Fuyuan Road, Wuqing Development Zone, Wuqing District, Tianjin

Patentee after: DATIAN MEDICAL SCIENCE ENGINEERING (TIANJIN) Co.,Ltd.

Address before: 300072 Tianjin City, Nankai District Wei Jin Road No. 92

Patentee before: Tianjin University