Background technique
With the rapid development of economy, continuous improvement of people's living standards and computer science, control engineering, rehabilitation doctor
Technology is constantly brought forth new ideas, and disabled person gradually recognizes to make up " incomplete " animation by artificial limb no longer remote.And
The psychological need for how making the response disabled person that artificial limb is more practical, sees, has become the scientific research cause to promote the well-being of mankind.Intelligence is imitative
Thus raw artificial limb comes into being, it can more simulate normal human body posture compared with general artificial limb, to the physiology and the heart of disabled person
Reason has incomparable positive influence.
Although muscle signal also has its disadvantage, more other control signals more being capable of connection freely and control deformed limb and vacation
Limb.So researcher is acquired it and identifies often using muscle signal as the external voltage input of artificial limb.Believed according to muscle
Number acquisition mode can be classified as pin electrode acquisition and surface electrode acquisition.Wherein, although pin electrode to the acquisition of signal more
To be accurate, but due to its by needle electrode to signal acquisition while to body have compared with macrolesion and to picker require compared with
It is more, so researcher generallys use not damaged, the convenient surface electrode of acquisition and is acquired to muscle signal.
In recent years, it was developed to improve muscle signal detection and many relevant technologies of recognition capability, it is main to study
In terms of direction concentrates on following three:More movements are identified using less acquisition channel;It is special to extract more useful signals
Sign;Select more effective classifier identification signal.
However in the prior art, it need to be improved in the information analysis ability for issuing muscle signal, for muscle signal
Data-handling capacity it is also lower, can not accurately and effectively identify movement representated by muscle signal.
Summary of the invention
In order to solve the above technical problems, a kind of human action identification side based on muscle signal is claimed in the present invention
Method.
A kind of human motion recognition method based on muscle signal, it is characterised in that:
Step 1, based on the corresponding depth image data of depth signal stream acquisition muscle signal, in obtained depth image data
Each pixel information include three-dimensional space depth information, the white point in data reprocessed, and then identify
The action message of each neuromuscular junction point in three dimensions in human body;
Step 2, is normalized muscle and dimension-reduction treatment, and the movement coordinate of each neuromuscular junction is subtracted connection muscle
Act coordinate, i.e.,:What is respectively indicated is first neuromuscular junction to N
The action message of a neuromuscular junction;
Step 3, the action message based on neuromuscular junction optimize human muscle's joint signal, and filtering does not produce Human bodys' response
It is raw to influence or influence lesser neuromuscular junction signal or redundant muscular joint signal;
Step 4 clusters as K posture using by Feature Descriptor, the posture after quantization is established model with discrete Markov
And classify;
Step 5 indicates the vision word in bag of words using the action message of neuromuscular junction point, there is shown each word
All it is expressed as the human action for having stronger identification, the word represented further according to these movement examples goes out in dictionary
Existing frequency obtains a histogram about vision, finally as the input of classifier, identification maneuver;
Step 6, constructs human body behavior conditional random field models, and training sample obtains Human bodys' response model and based on the mould
Type predicts the subsequent action of human body.
The present invention selects it using improved flock of sheep optimization algorithm, and improved flock of sheep optimization algorithm is not relative to
Improved method, improved method are to have used the method initialization population of point set, avoid algorithm and fall into local optimum, with having
The method of sequence subset and the method for looking around for introducing flock of sheep accelerate convergence speed of the algorithm, while also improving video human behavior
Recognition effect.
Specific embodiment
Advantages of the present invention, feature and reach the method for the purpose will be bright by attached drawing and subsequent detailed description
Really.
A kind of work flow diagram for human motion recognition method based on muscle signal that attached drawing 1 is protected for the present invention.
A kind of human motion recognition method based on muscle signal, it is characterised in that:
Step 1, based on the corresponding depth image data of depth signal stream acquisition muscle signal, in obtained depth image data
Each pixel information include three-dimensional space depth information, the white point in data reprocessed, and then identify
The action message of each neuromuscular junction point in three dimensions in human body;
Step 2, is normalized muscle and dimension-reduction treatment, and the movement coordinate of each neuromuscular junction is subtracted connection muscle
Act coordinate, i.e.,:What is respectively indicated is action message of first neuromuscular junction to the N neuromuscular junction;
Step 3, the action message based on neuromuscular junction optimize human muscle's joint signal, and filtering does not produce Human bodys' response
It is raw to influence or influence lesser neuromuscular junction signal or redundant muscular joint signal;
Step 4 clusters as K posture using by Feature Descriptor, the posture after quantization is established model with discrete Markov
And classify;
Step 5 indicates the vision word in bag of words using the action message of neuromuscular junction point, there is shown each word
All it is expressed as the human action for having stronger identification, the word represented further according to these movement examples goes out in dictionary
Existing frequency obtains a histogram about vision, finally as the input of classifier, identification maneuver;
Step 6, constructs human body behavior conditional random field models, and training sample obtains Human bodys' response model and based on the mould
Type predicts the subsequent action of human body.
Specifically, muscle is normalized in the step 2 and dimension-reduction treatment, the movement of each neuromuscular junction is sat
Mark subtracts the movement coordinate of connection muscle, i.e.,:What is respectively indicated is
One neuromuscular junction to the N neuromuscular junction action message, including:
Selecting a human body 3D joint coordinates is master pattern;
B) it keeps each sample limb segment direction vector constant, each vector is zoomed into master pattern length
It is in the action definition of t frame, limbs i:, wherein i{ 1 ..., N }, N
What is indicated is the number of artis, directly using the joint action information with time change as the Expressive Features of behavior.
Specifically, the step 3, the action message based on neuromuscular junction optimize human muscle's joint signal, filter to people
Body Activity recognition does not have an impact or influences lesser neuromuscular junction signal or redundant muscular joint signal further includes:
Screening and filtering optimization processing is carried out to neuromuscular junction signal based on flock of sheep algorithm,
Step 3.1 initializes the group containing N sheep, the initial population being evenly distributed with good point set.Setting maximum changes
Generation number, wherein defining flock of sheep in the minimum identification space of D dimension space search food is [0,0 ... 0], maximum identification space
For [1,1 ... 1];
Step 3.2, the fitness value for assessing initial population, are set as 0 for the algebra of population;
Step 3.3 judges whether the algebra of population is greater than maximum the number of iterations, if it is greater, then stopping calculating, output phase is answered
Maximum adaptation angle value (accuracy of identification), otherwise turn to the 4th step;
Step 3.4 judges that can the number of iterations of population divide exactly G(What G was indicated is the algebra that a flock of sheep keep relationship, experiment
According to experiment experience be taken as 10)If divided exactly, the 3.5th step is turned to, otherwise turns to the 3.6th step;
Step 3.5 sorts according to obtained fitness value, and establishes a hierarchy, obtains an order subset.By one
Flock of sheep are divided into several groups and determine the relationship of lamb and sheep mother;
Step 3.6, the movement more new formula that ram is obtained according to formula 4.1 are substituted according to OS method with formula 4.6
The action message of action message in formula 4.1, calculating fitness value, lamb and ewe is constant.If obtained fitness value
Bigger than instead not preceding fitness value, then substituted 4.1, otherwise do not substitute.Wherein, the value of b is taken as 0.25.According to formula
4.3 and 4.5 respectively obtain the movement more new formula of ewe and lamb, and the movement with ram updates processing unanimously;Wherein, b
Value be taken as 0.2 and 0.1 (by the experience value of experiment) respectively.Turn to the 3.7th step;
Step 3.7 updates the current optimal movement of individual in flock of sheep and the optimal movement of overall situation individual of flock of sheep, and the number of iterations adds 1, and
Turn to the 3rd step;
The current optimal movement of individual and the optimal movement of overall situation individual of flock of sheep are to influence the action recognition in step 3.8, flock of sheep
Maximum neuromuscular junction signal and whole neuromuscular junction ensemble.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all in essence of the invention
Within mind and principle, any modification, equivalent substitution, improvement and etc. done be should be included within the scope of the present invention.