CN105931271A - Behavior locus identification method based on variation BP-HMM - Google Patents
Behavior locus identification method based on variation BP-HMM Download PDFInfo
- Publication number
- CN105931271A CN105931271A CN201610292431.9A CN201610292431A CN105931271A CN 105931271 A CN105931271 A CN 105931271A CN 201610292431 A CN201610292431 A CN 201610292431A CN 105931271 A CN105931271 A CN 105931271A
- Authority
- CN
- China
- Prior art keywords
- hmm
- parameter
- variation
- action trail
- model
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 115
- 230000008569 process Effects 0.000 claims abstract description 84
- 239000011159 matrix material Substances 0.000 claims abstract description 46
- 238000007476 Maximum Likelihood Methods 0.000 claims abstract description 13
- 238000012549 training Methods 0.000 claims abstract description 10
- 230000009471 action Effects 0.000 claims description 52
- 238000009826 distribution Methods 0.000 claims description 26
- 238000012546 transfer Methods 0.000 claims description 17
- 230000008859 change Effects 0.000 claims description 11
- 238000002372 labelling Methods 0.000 claims description 5
- 238000012545 processing Methods 0.000 claims description 3
- 230000001186 cumulative effect Effects 0.000 claims description 2
- 238000005457 optimization Methods 0.000 claims description 2
- 235000012364 Peperomia pellucida Nutrition 0.000 claims 1
- 240000007711 Peperomia pellucida Species 0.000 claims 1
- 238000009795 derivation Methods 0.000 abstract description 2
- 230000006399 behavior Effects 0.000 description 15
- 230000000694 effects Effects 0.000 description 8
- 238000005070 sampling Methods 0.000 description 6
- 238000005516 engineering process Methods 0.000 description 4
- 241000208340 Araliaceae Species 0.000 description 3
- 235000005035 Panax pseudoginseng ssp. pseudoginseng Nutrition 0.000 description 3
- 235000003140 Panax quinquefolius Nutrition 0.000 description 3
- 235000008434 ginseng Nutrition 0.000 description 3
- 238000012360 testing method Methods 0.000 description 3
- 235000021170 buffet Nutrition 0.000 description 2
- 238000010276 construction Methods 0.000 description 2
- 230000007423 decrease Effects 0.000 description 2
- 238000002474 experimental method Methods 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 230000001932 seasonal effect Effects 0.000 description 2
- 241001269238 Data Species 0.000 description 1
- 238000004458 analytical method Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000008901 benefit Effects 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 238000009472 formulation Methods 0.000 description 1
- 238000005304 joining Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 239000000203 mixture Substances 0.000 description 1
- 238000005192 partition Methods 0.000 description 1
- 238000005309 stochastic process Methods 0.000 description 1
- 230000004083 survival effect Effects 0.000 description 1
- 230000003313 weakening effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/20—Special algorithmic details
- G06T2207/20081—Training; Learning
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/30—Subject of image; Context of image processing
- G06T2207/30196—Human being; Person
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/30—Subject of image; Context of image processing
- G06T2207/30232—Surveillance
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/30—Subject of image; Context of image processing
- G06T2207/30241—Trajectory
Landscapes
- Complex Calculations (AREA)
- Image Analysis (AREA)
Abstract
The invention discloses a behavior locus identification method based on a variation BP-HMM. The method comprises the following steps: extracting features of a behavior sample, and establishing a behavior locus and a data set; determining a model used for simulating the behavior locus, wherein the model employs the variation BP-HMM; initializing prior super parameters of a Beta process; obtaining a trained variation BP-HMM by training the model by use of the prior super parameters; and based on the trained variation BP-HMM, identifying the behavior locus of people by use of a maximum likelihood method. According to the invention, the variation BP-HMM which can be used for identifying the behavior locus of the people is created and used. The variation BP-HMM constructs a feature selection matrix and can automatically lean the feature selection matrix. The self-learning updating process of the variation BP-HMM is derived at the same time, a detailed derivation algorithm is given, and the identification method is given in an instructive manner.
Description
Technical field
The present invention relates to field of computer technology, relate to the Activity recognition technology of people, particularly to a kind of based on variation BP-HMM
The action trail recognition methods of people.
Background technology
The invention mainly relates to four bulk background technologies: beta process, HMM, the BP-HMM of sampling, variation
Reasoning.
1) beta process (Beta Process)
Beta process is suggested in survival analysis for the first time.Beta process is applied to hidden factor model as without ginseng priori.
This is a kind of important application of beta process.Beta process is also used for choosing the hidden state set of HMM as without ginseng priori.
Beta process at the beginning is defined as at arithmetic number (R+), it was extended to space (e.g., R more widely later+)。
Beta process B~BP (α, B0) it is a positive L é vy process.Wherein α is concentration parameter, and B0It is that on Ω fixes
Estimate.Make γ=B0(Ω), then beta process can be written as follows form,
Here set { ω } is the atom collection in B.If B0Be continuous print, then the L é vy process of BP can be represented as,
ν (d ω, d π)=α (ω) π-1(1-π)c(ω)-1dπB0(dω). (0.2)
If B0It is discrete, and hasSuch structure, then B and B0In atom have identical subscript.
It can represent by following form,
As K → ∞, HkDuring → ∞, B is a beta process.In order to preferably introduce beta process, the present invention is inevitable
Bernoulli process be will now be described.Bernoulli process with beta process as parameter can be denoted as F~BeP (B).It can
Using by as a L é vy process, the L é vy of this L é vy process estimates is
μ (d π, d ω)=δ1(dπ)B(dω). (0.3)
If B is continuous print here, then F is the Poisson process with B as intensity.It can be by tableWherein
N~Poisson (B).If B is discrete, andHere bkBe one with πkFor probability
Independent Bernoulli Jacob's variable.If B is a beta process, then
B~BP (α, B0), (0.4)
F~BeP (B),
This is referred to as beta-Bernoulli process (Beta-Bernoulli process).In Di, Cray process is a kind of important can joining as nothing
The stochastic process of priori, it has two kinds of generating modes: (1) Chinese-style restaurant process;(2) folding rod process.With Cray process (Dirichlet in Di
Process) similar, beta process also has two kinds of main modes of production, (1) Indian Restaurant process;(2) folding rod process.Wherein
India's buffet process is that (the most hidden factor model can be understood as observation and is subject to without ginseng priori for a kind of hidden factor model important
The model of a series of hidden features impact).If didactic consideration, India's cafeteria process is a kind of Gu as its name
Visitor selects the process of service plate.Beta-the Bernoulli process generated by India's cafeteria process is then considered following one
Individual process,
(1) first client comes into restaurant, have chosenPart plate;
(2) i-th client comes into restaurant, and this client hasProbability choose the plate being selected, (wherein mkIt is
Choose the number of kth plate).Simultaneously, i-th client also hasProbability choosing
Take new plate.
Definetti mixed distribution can be counted as using India's cafeteria process as the beta-Bernoulli process of the process of generation.
Beta process B~BP (α, B0) folding rod process formulation form be
From the equations above it is recognised that take turns (here takes turns an iteration indexed by i referred to), C eachiIndividual atom quilt
Pick out (wherein CiObey Poisson (γ)), their weight then obeys the folding rod process of i time, each folding rod
The rod length being selected obeys Beta (1, α).
2) HMM
HMM is a state-space model.It can carry out modelling sequence number with the Markov Chain of discrete variable
Can be using a state as condition according to, the most each observation, and each state can a corresponding discrete hidden variable.The brightest
Aobvious this is one and is adapted to modelling seasonal effect in time series probabilistic model, and particularly the association of itself is not between those sequence datas
It is but that the most obvious each data can be relevant to a phrase or special state, also deposits between these special states simultaneously
At transformational relation, and this conversion and time correlation.HMM is proved to the Activity recognition people, indoor positioning and voice
In some row real world applications such as identification the most effective.
Assume that observation sequence is X={x1,…,xNIt is N × d matrix and Z={z1,…,zNBe a N-dimensional hidden variable to
Amount, and the value space Ω that these hidden variables have a size to be K1.The Joint Distribution of X and Z can be expressed as following form,
Wherein θ={ π, A, φ }, and A is a K × K matrix.Element inside AWherein
T={1 ..., N-1}, i, j ∈ Ω1Simultaneouslyπ is the vector of K dimension, πk=p (z1=k), k ∈ Ω1Simultaneously
∑kπk=1.Further, matrix A is expressed as A=Dir (π), wherein π={ π with Cray distribution in Dii,i∈Ω_1}。
The probability graph model present invention of HMM is given in figure one.
If xi, i={1 ..., N} is discrete, and to have size be that D value collects Ω2.φ is the matrix of a K × D, in φ
The element in face isi∈Ω1,j∈Ω2.A and φ is known respectively as transfer matrix and emission matrix.As
Really xi, i ∈ 1 ..., N} is continuous print, then emission matrix should replace with a transmitting distribution.φ can also replace with distribution,
Such as Gauss distribution p (xt|zt=k)~N (xt|μk,Σk),k∈Ω1.Generally, μk,ΣkTable can be carried out with stochastic variable
Showing, these stochastic variables can obey Normal Inverse Wishart distribution or the Gauss distribution of band Gamma distribution.
Likelihood is used to evaluate the most important standard of the degree of a HMM matching current data.Two of HMM most important
Learning algorithm be (1) Viterbi algorithm, (2) Baum-Welch algorithm.In given transfer matrix and the situation of emission matrix
Under, in the present invention, use Viterbi algorithm can extrapolate, by maximizing likelihood, the hidden shape that current time sequence pair is answered
State sequence.Baum-Welch algorithm can be understood as the HMM version of EM in fact, and he is by forward backward algorithm and EM
In conjunction with being derived by transfer and emission matrix.
HMM can identify that the time series of that length also can divide that short time series.For short time series, classification
Can consider into is hidden state, then obtains classification results by Viterbi algorithm.For long time series, can pass through
Maximum likelihood obtains classification results.Such as, for the set λ, λ of HMMi, i={1 ..., M} is used for training time sequence
Xi, wherein θiIt is λiParameter.For a new time series to be test for, its classification can obtain in the following way,
K=argmaxip(Xi|θi), (0.7)
Class=yk,
Wherein, y={y1,y2,…,yi,…,yk,…,yN-1,yN, yiIt is i-th seasonal effect in time series classification, p (Xi|θi) can with to
Front backward algorithm is calculated.
In Baum-Welch algorithm, derivation needs to the suitable initial value of the parameter of HMM, because this is an office
The algorithm that portion is optimum, the quality of result can be had by initial value the most directly to be affected.It is true that shift-matrix A and initial vector π are
As long as reasonable through being proved to specified value, the change of value is the most little on the impact of result.It is crucial that the initial value of emission matrix.Nothing
Opinion is that the experiment in the achievement of substantial amounts of forefathers or the present invention all shows, for Baum-Welch algorithm, launches
The variable of the initial value of matrix, can have a great impact result.
3) BP-HMM sampled
In order to simultaneously to multiple behavior modelings, and it can be found that can be present in the behavior that needs distinguish in the Activity recognition of people
The total quantity of action, and find the public action between different behavior, BP-HMM is proposed out.
First, present invention assumes that X={X1,X2,…,Xi,…XN, N ∈ N+, wherein XiIt it is i-th track.Each track
Carrying out modelling with a HMM, these HMM share a infinitely-great overall situation hidden state set Ω.Hidden condition selecting matrix F is
The matrix of one N × ∞, the element inside itRepresent equal to 1 and there is the hidden state of kth in i-th track.
The transfer matrix of i-th HMM is
Its initial vector is
The emission matrix of i-th HMM is
(Ak,Σk)~NIW (u0,λ0,Φ0,υ0).
Inside BP-HMM, present invention F represents the hidden state set that the inside sequence has.Here, F is constructed by BP-BeP.
B~BP (α, B0), (0.11)
fi| B~BeP (B).
Because India's cafeteria process is the most easily sampled, so BP herein uses India's buffet procedure construction.From above
Formula can be seen that, wants so that hidden condition selecting matrix F is more sparse, and it is bigger that concentration parameter α will be arranged.And want
Want that it is bigger that γ will be set so that more hidden state is chosen.
In many is tested, the hidden number of states of each track can be obtained, moreover, between different tracks by study automatically
Public hidden state also can be found.Different tracks direct public hidden state is all clearly presented in laboratory report
Out.This makes the track collection for there is public hidden state set between those tracks, and BP HMM is combining the multiple tracks of modeling
Time ratio HMM more flexibly and performance is more preferable.
4) variation reasoning
The present invention usesN1∈N+Carry out all of hidden variable in labelling Bayesian model of the present invention, useN2∈N+The all of observational variable of labelling, finally usesN3∈N+。
The log edge likelihood of probabilistic model of the present invention can be decomposed in the following form,
Wherein,
KL (q | | p) is the Kullback-Leibler divergence between q (Z) and Posterior distrbutionp p (Z | X, θ) and KL (q | | p) >=0, and and if only if
The when of q (Z)=p (Z | X, θ), equal sign is set up.ThereforeIt it is the lower bound of lnp (X | θ).Inside variation reasoning,Claimed
For variation lower bound.So q (Z) can approximate obtain p (Z | X, θ) by maximizing the variation next time.
The element of Z is divided into the set Z of not UNICOM by the present inventioni, i={1 here ..., M}, M ∈ N+.Then present invention assumes that
Variation distribution q (Z) can be according to these set-partitions, i.e.
One solves qi(Zi) the general formulae of optimal solution as follows,
This variation reasoning algorithm that q (Z) factorization approximates Posterior distrbutionp is referred to as variation mean field.
Having some needs to be noted, variation reasoning when, the priori of all of parameter is all assigned.Although in theory
On, the present invention is not to independent factor qi(Zi) functional form do any appointment, but in actual application, the present invention can thing
First one posterior form of relatively simple variation of appointment.Therefore, to factor set qi(Zi) make and suitably initializing after,
The present invention just can update variation distribution according to (0.15).
Summary of the invention
The present invention proposes the action trail recognition methods of a kind of people based on variation BP-HMM, comprises the steps:
Step one: extract the feature of behavior sample, set up action trail and data set thereof;
Step 2: determine the model for simulating action trail, described model uses variation BP-HMM model;
Step 3: initialize the priori hyper parameter of beta process;
Step 4: utilize described priori hyper parameter to train described model, the variation BP-HMM model after being trained;
Step 5: based on the variation BP-HMM model after described training, utilize the action trail of method of maximum likelihood identification people.
In the described action trail recognition methods that the present invention proposes, described variation BP-HMM model represents with equation below:
Tk~Gamma (dk-1,α),
fi| B~BeP (B),
(Ak,Σk)~NIW (u0,λ0,Φ0,υ0).
Wherein, B is beta process, and the atom of B is ωk, atom weight isV is the vector of a 1* ∞,
Its each element and one are with beta distribution independent same distribution that (1, α) is parameter;And TkExpression formula beTkObedience parameter is dkThe Gamma distribution of-1 and α;dkIt is that an indicator is for marking
Note kth atom occurs in dkIn wheel;Here, α can be constant can also be variable, it is beta process
Concentration parameter;B0It is that on the space Ω of beta process B place is fixing to estimate;And γ=B0(Ω);Represent
Time series is at the hidden state value of the HMM corresponding to t;FiIt is feature selection vector, which determines i-th track
All of hidden state;It is the vector of a two-value simultaneously, and it obeys the Bernoulli process with B as parameter;π(i)It is
The transfer matrix of HMM, its first row is the priori vector of hidden state;π(i)Obey with [r, r ..., r+ κ, r ...] and fiOne
Cray in Di that vector is parameter obtained that is multiplied of one is distributed;AndObey with [r, r ..., r, r ...] and fiOne to one
Be multiplied Cray distribution in Di that vector is parameter obtained;Here X is observation track data,Obey one withVector be average andMatrix is the Multi-dimensional Gaussian distribution of covariance;And (Ak,Σk) combine obedience one with
u0,λ0,Φ0,υ0Normal Inverse Wishart for parameter is distributed, u0It is vector, λ0And v0It is scalar, Φ0It is
Matrix.
In the described action trail recognition methods that the present invention proposes, the priori hyper parameter initializing beta process comprises the steps:
Step a1: determine behavior kind to be identified in the data set of described action trail;
Step a2: determine the average length of all action trail;
Step a3: determine the dimension of described action trail;
Step a4: determine the hyper parameter of beta process in BP-HMM according to form;
Step a5: all action trail are concentrically formed the action trail after set;
Step a6: utilize K-means algorithm that the action trail after described set is carried out clustering processing, obtains cluster knot
Really;
Step a7: utilize described cluster result statistics to obtain the hyper parameter of HMM in BP-HMM model.
In the described action trail recognition methods that the present invention proposes, described model is trained to comprise the steps:
Step b1: set maximum number of run and variation lower bound change threshold;
Step b2: when variation lower bound changing value is less than or equal to variation lower bound change threshold, or number of run is less than or equal to
During big number of run;
Step b21: keep current variation lower bound;
Step b22: for each action trail;
I) transfer and emission matrix are calculated according to the HMM parameter of current track;
Ii) result of current track forward backward algorithm part is calculated;
Iii) parameter of the transfer matrix of HMM is calculated according to result the most backward;
Step b23: update the parameter representing behavior atom;
Step b24: update the parameter of beta process;
Step b25: recalculate variation lower bound and preserve;
Step b26: cumulative number of run, returns step b2.
In the described action trail recognition methods that the present invention proposes, before updating the parameter of beta process, parameter is updated.
In the described action trail recognition methods that the present invention proposes, the parameter updating beta process comprises the steps:
Step b241: use gradient ascent algorithm optimization variation lower bound, solve and renewal combines beta process and HMM
In conjunction with the parameter of selection matrix;
Step b242: use gradient ascent algorithm to solve optimized variation lower bound to solve undated parameter V;
Step b243: use gradient ascent algorithm to solve optimized variation lower bound to solve undated parameter T;
Step b244: utilize factorization variation reasoning to solve parameter alpha;
Step b245: utilize factorization variation reasoning to solve parameter γ.
In the described action trail recognition methods that the present invention proposes, utilize method of maximum likelihood identification based on described variation BP-HMM model
The action trail of people comprises the steps:
Step c1: input the parameter of the variation BP-HMM model after described training;
Step c2: extract the feature of behavior to be tested, obtains action trail to be measured and data set thereof;
Step c3: for described action trail and data set thereof, successively by the variation BP-HMM model after described training
Parameter as likelihood condition, be calculated likelihood value;
Step c4: choose the behavior of the likelihood value of maximum, identify the action trail of behavior to be measured.
The beneficial effects of the present invention is: the learning algorithm of variation BP-HMM is derived by the present invention.The present invention is directed to study
The behavior that the method identification of the variation BP-HMM maximum likelihood arrived is new.
Accompanying drawing explanation
Fig. 1 is the flow chart of the action trail recognition methods of people based on variation BP-HMM.
Fig. 2 is the probability graph model of variation BP-HMM model.
Detailed description of the invention
In conjunction with implementing in detail below and accompanying drawing, the present invention is described in further detail.Implement the process of the present invention, condition,
Experimental techniques etc., outside the lower content mentioned specially, are universal knowledege and the common knowledge of this area, and the present invention does not has
Limit content especially.
As it is shown in figure 1, the action trail recognition methods of present invention people based on variation BP-HMM, comprise the steps:
Step one: extract the feature of behavior sample, set up action trail and data set thereof;
Step 2: determine the model for simulating action trail, described model uses variation BP-HMM model;
Step 3: initialize the priori hyper parameter of beta process;
Step 4: utilize described priori hyper parameter to train described model, the variation BP-HMM model after being trained;
Step 5: based on the variation BP-HMM model after described training, utilize the action trail of method of maximum likelihood identification people.
Need the hidden state set specifying each HMM in advance different from conventional HMM, the variation BP-HMM model Beta of the present invention
The procedure construction selection matrix of one hidden state, selectes the hidden state set of each HMM by each vector of matrix, and hidden
Condition selecting matrix is then to obtain during the model learning of variation reasoning.In variation BP-HMM, all of HMM shares one
Individual big hidden state set, then selects the hidden state set of oneself by hidden condition selecting matrix.This is that variation BP-HMM is with existing
The difference that HMM model is maximum.Because constructed the Feature Choice Matrix of HMM by Beta process, so being total between different tracks
Enjoying action can be learnt out, this contributes to distinguishing different tracks, and this is that HMM cannot accomplish.Secondly, the BP-HMM of variation
Oneself can learn to obtain this point of hidden state set and also more conform to current demand.Because in not all reality,
The hidden state set that track is corresponding can be determined in advance, and if it will be apparent that the setting of hidden state set correctly will be to HMM's
Identification ability causes weakening greatly.So variation BP-HMM is more flexible than HMM.
The following is the specific algorithm of model learning.
In fig. 2, first will initialize the hyper parameter of all of BP-HMM, the variation then updating the HMM in Fig. 2 is joined
Number, then update the parameter of beta process.
Specific algorithm is as follows:
1, first according to input data initialization all of BP hyper parameter;
2, initialize all of HMM hyper parameter with K-means;
3, set maximum number of run, and variation lower bound change threshold;
4, While (variation lower bound changing value≤variation lower bound change threshold | | number of run≤maximum number of run)
B21: keep current variation lower bound;
The each track of b22:Foreach;
I. transfer and emission matrix are calculated according to the HMM parameter of current track;
Ii. the result of current track forward backward algorithm part is calculated;
Iii. the parameter of the transfer matrix of HMM is calculated according to result the most backward;
B23: update the parameter representing behavior atom;
B24: update the parameter of beta process;
B25: recalculate variation lower bound and preserve;
B26: number of run ++;
By the learning process of above variation BP-HMM it is recognised that the model learning of variation BP-HMM is an iteration
Process, the end condition of iteration is exactly that number of run exceeds standard or variation lower bound is the most constant.Model is during study
First having to update the parameter of HMM, the parameter being the most so because HMM updates the most relevant with track data, by
Parameter in each HMM is different, so to update the parameter of all HMM one by one respectively, the most right
The parameter of Beta process updates.During updating, Beta process can update slower about V, the parameter of T, F.Why
So being because renewal process and employ gradient decline, but solution should increase overall iterations reduce V, T, F
Parameter update required precision.The reason selecting such solution is at V, and when T, F update, other parameters are not correct
Value, even if it is the best result that study does not the most represent to the highest precision.Variation BP-HMM is at the such track of 50*100
Substantially the effect of 50 iteration convergences can be reached in data.Pace of learning is far faster than sampling BP-HM, in precision because structure side
Formula is different with sampling BP-HMM so precision has also promoted than sampling BP-HMM.So variation BP-HMM is a kind of
The comparatively faster model of pace of learning, is a kind of reasonably track identification model.
Update in order to the parameter of the beta process in model of the present invention is done, the present invention coupleIt is made in 1
The Taylor expansion at place.Δ the most of the present inventionkM () carrys out the item in labelling Taylor expansion,
Due to character Γ (x+1)=x Γ (x) of Gamma function, the present invention can obtain
Variation reasoning algorithm in the present invention can use Δ when updating the parameter of beta distributionk(m) aboutu′kWith u 'k, this
A little local derviations will make introductions all round.In order to that states becomes apparent from, the present invention defines With
RightRenewal:
Because πjWithIn Di, Cray distribution can not be associated link address can resolve directly, so present invention gradient ascent algorithm updates
I ∈ 1 ..., C}.Here C is the classification number of track.AboutLocal derviation be
To q (dk) renewal:
This joint listsAt given r=1 ..., the more new formula of R.If r=1, then
It is when r=1 when, TkDo not exist.If r > 2, then
Here ρ (r)=(r-1) (Ψ (k1)-lnk2)-lnΓ(r-1)+(r-2)(Ψ(u'k)-lnv'k), andThe present invention from formula it can be seen thatNot only it is subject to and kth hidden state phase
The parameter closed affects also by dk', the impact of k ' ≠ k.α and γ is the biggest,Decline the fastest.
To q (Vk) renewal:
By the present invention in that and carry out associated update with gradient ascent algorithmHere gradient be variation lower bound about
Gradient.In order to allow more new formula seem more clear, the present invention has done some and has set, and allows
WithTwo local derviations are respectively
Because Ψ (x) can be represented asAnd its derivative isSo
With
To q (Tk) renewal:
By the present invention in that and carry out associated update (u ' with gradient ascent algorithmk, v 'k), gradient here is that variation lower bound is about (u 'k, v 'k)
Gradient.The two local derviation is respectively
Here,
Renewal to q (α):
(k1, k2) more new formula be
Can be seen that from formulaRenewal to α is useless.
Renewal to q (γ):
AboutMore new formula be
τ1=K+b1,
From formula, the present invention can be seen that τ1Will not change during iteration updates, but τ2Can the most more
Newly, and update depend on
To q (Ak,∑k) renewal:
To q (Ak,Σk) the renewal of variational parameter be analysable and more new formula is
To q (πj) renewal:
In order to update the π of the track of classification in i-thj, wherein the difference for j value is divided into two kinds.Both of which is
Analysable.For j > 0, πjLog series model can be updated by equation below,
Wherein,
And
Here Cray distribution q (π in B is Dij) norming constant.The present invention can obtain
So Cray distribution q (π in Dij) parameter rj, can be updated according to below equation,
As j=0, πjIt it is the probability of hidden state.The present invention can obtain
R is the balance factor of the impact effect determining the impact effect of Baum-Welch arithmetic result and υ, and r is the biggest,Shadow
Ring effect the biggest.
Renewal to q (Z):
For every kind of track,
Wherein p is observational variable XtDimension.
From above formula it can be seen that the present invention needs q (Zt=j) and q (Zt=j1,Zt+1=j2).The two item detailed
Next calculating process will be given, and they are to be calculated by forward backward algorithm.Forward algorithm is
Back pass is
βi(t)=P (Xt+1=xt+2,Xt+2=xt+2,…,XT=xT|Zt=i, W),
βi(T)=1,
Like this, Posterior distrbutionp just can be expressed as
According to the above formula, the variational parameter iteration in BP-HMM just can be have updated by the present invention.The present invention is under change
In the case of boundary stops change or is basically unchanged, stop iteration renewal process.Concrete update algorithm is given in algorithm one.
Concrete recognition function:
Wherein y is classification.
Variation BP-HMM model in the present invention can not only be used in the Activity recognition of people being applied to many
The field of track identification, the process identifying behavior of variation BP-HMM needs first to use variation BP-HMM to track
Data modeling, and with a HMM, the track of one kind is modeled.In the transfer matrix arrived to study and transmitting
The parameter { { a of matrix*}i, u, λ, υ, Φ } after, one needs to be test for track and can be identified by the way of following,
Wherein { a*}iIt is referred to as the transfer matrix of i-th track.Learning after all parameters of model, in (0.18)
Likelihood p (Xi|{a*}i, u, λ, υ, Φ) can be calculated by the forward backward algorithm of HMM.
This classification mechanism is more more reasonable than sample, and transfer matrix here learns to obtain from model, and not
It is as existing sampling BP-HMM, track one HMM model of study, then owning a classification
Transfer matrix takes average, obtains the transfer matrix of this classification.
Comprising the following steps that of sorting algorithm,
(1) for data to be identified, extract characteristic processing and become rational track.
(2) assume that maximum likelihood value is 0.
(3) HMM model that all study of Foreach is arrived
I () calculates likelihood p (Xi|{a*}i, u, λ, υ, Φ),
(ii) size is compared with maximum likelihood value.If bigger than maximum likelihood, updating maximum likelihood is current likelihood value,
And record current HMM for optimum HMM.
(4) the most current track classification testing data of current optimum track classification corresponding for HMM.
This categorizing process is the process that maximum likelihood selects in fact, and likelihood is the standard of a kind of energy good descriptive model matching quality,
The current HMM matching track of the biggest expression of likelihood is the best, and that just represents track classification that this HMM represents and more conforms to
Current track.
The present embodiment experimental data is the parking data collected from video.Wherein there are six kinds of behaviors, the behavior class of training set
Distinguishing label is obtained by artificial labelling.Six kinds are respectively: 1, receive (PTSS) through south;2, through east street
Road (PTES);3, return (GA);4, it is horizontally through parking lot (CPH);5, before being parked in building (WFB), 6,
(WTS) is walked in uppermost street.
The predicted classification of table 1 and classification accuracy thereof
Table 1 above is the confusion matrix of the classification accuracy of this data set.The accuracy of identification of model of the present invention has reached 95%.
Exceed well over the 91% of sampling model.
The protection content of the present invention is not limited to above example.Under the spirit and scope without departing substantially from inventive concept, this area skill
Art personnel it is conceivable that change and advantage be all included in the present invention, and with appending claims as protection domain.
Claims (7)
1. the action trail recognition methods of a people based on variation BP-HMM, it is characterised in that comprise the steps:
Step one: extract the feature of behavior sample, set up action trail and data set thereof;
Step 2: determine the model for simulating action trail, described model uses variation BP-HMM model;
Step 3: initialize the priori hyper parameter of beta process;
Step 4: utilize described priori hyper parameter to train described model, the variation BP-HMM model after being trained;
Step 5: based on the variation BP-HMM model after described training, utilize the action trail of method of maximum likelihood identification people.
2. action trail recognition methods as claimed in claim 1, it is characterised in that described variation BP-HMM model is with following public
Formula represents:
Tk~Gamma (dk-1,α),
fi| B~BeP (B),
(Ak,Σk)~NIW (u0,λ0,Φ0,υ0).
Wherein, B is beta process, ωkIt is the atom of B,Being atom weight, V is the vector of a 1* ∞, it
Each element and one are with beta distribution independent same distribution that (1, α) is parameter;TkExpression formula be
TkObedience parameter is dkThe Gamma distribution of-1 and α;dkIt is that an indicator occurs in d for labelling kth atomkIn wheel;
α is constant or variable, for representing the concentration parameter of beta process;B0It is that on the space Ω of beta process B place is fixing to survey
Degree;γ=B0(Ω);The time series represented is at the hidden state value of the HMM corresponding to t;FiIt is feature selection vector,
For determining all of hidden state of i-th track, also it is the vector of a two-value simultaneously, obeys the Bai Nu with B as parameter
Profit process;π(i)Being the transfer matrix of HMM, its first row is the priori vector of hidden state, π(i)Obey with [r, r ..., r+ κ, r ...]
With fiCray distribution in man-to-man Di that vector is parameter obtained that is multiplied;Obey with [r, r ..., r, r ...] and fiPhase one to one
Multiplied to Di that vector is parameter in Cray distribution;X is observation track data,Obey one withVector is equal
Value andMatrix is the Multi-dimensional Gaussian distribution of covariance;(Ak,Σk) combine obedience one with u0,λ0,Φ0,υ0Normal for parameter
Inverse Wishart is distributed, u0It is vector, λ0And v0It is scalar, Φ0It it is matrix.
3. action trail recognition methods as claimed in claim 1, it is characterised in that initialize the priori hyper parameter of beta process
Comprise the steps:
Step a1: determine behavior kind to be identified in the data set of described action trail;
Step a2: determine the average length of all action trail;
Step a3: determine the dimension of described action trail;
Step a4: determine the hyper parameter of beta process in BP-HMM according to form;
Step a5: all action trail are concentrically formed the action trail after set;
Step a6: utilize K-means algorithm that the action trail after described set is carried out clustering processing, obtain cluster result;
Step a7: utilize described cluster result statistics to obtain the hyper parameter of HMM in BP-HMM model.
4. action trail recognition methods as claimed in claim 1, it is characterised in that train described model to comprise the steps:
Step b1: set maximum number of run and variation lower bound change threshold;
Step b2: when variation lower bound changing value is less than or equal to variation lower bound change threshold, or number of run runs less than or equal to maximum
During number of times;
Step b21: keep current variation lower bound;
Step b22: for each action trail;
I) transfer and emission matrix are calculated according to the HMM parameter of current track;
Ii) result of current track forward backward algorithm part is calculated;
Iii) parameter of the transfer matrix of HMM is calculated according to result the most backward;
Step b23: update the parameter representing behavior atom;
Step b24: update the parameter of beta process;
Step b25: recalculate variation lower bound and preserve;
Step b26: cumulative number of run, returns step b2.
5. action trail recognition methods as claimed in claim 3, it is characterised in that before updating the parameter of beta process, parameter is carried out
Update.
6. action trail recognition methods as claimed in claim 3, it is characterised in that the parameter updating beta process includes walking as follows
Rapid:
Step b241: use gradient ascent algorithm optimization variation lower bound, solves and updates and combine what beta process and HMM combined
The parameter of selection matrix;
Step b242: use gradient ascent algorithm to solve optimized variation lower bound to solve undated parameter V;
Step b243: use gradient ascent algorithm to solve optimized variation lower bound to solve undated parameter T;
Step b244: utilize factorization variation reasoning to solve parameter alpha;
Step b245: utilize factorization variation reasoning to solve parameter γ.
7. action trail recognition methods as claimed in claim 3, it is characterised in that utilize based on described variation BP-HMM model
The action trail of maximum-likelihood method identification people comprises the steps:
Step c1: input the parameter of the variation BP-HMM model after described training;
Step c2: extract the feature of behavior to be tested, obtains action trail to be measured and data set thereof;
Step c3: for described action trail and data set thereof, successively by the parameter of the variation BP-HMM model after described training
As likelihood condition, it is calculated likelihood value;
Step c4: choose the behavior of the likelihood value of maximum, identify the action trail of behavior to be measured.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610292431.9A CN105931271B (en) | 2016-05-05 | 2016-05-05 | A kind of action trail recognition methods of the people based on variation BP-HMM |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610292431.9A CN105931271B (en) | 2016-05-05 | 2016-05-05 | A kind of action trail recognition methods of the people based on variation BP-HMM |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105931271A true CN105931271A (en) | 2016-09-07 |
CN105931271B CN105931271B (en) | 2019-01-18 |
Family
ID=56835062
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610292431.9A Expired - Fee Related CN105931271B (en) | 2016-05-05 | 2016-05-05 | A kind of action trail recognition methods of the people based on variation BP-HMM |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105931271B (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107273356A (en) * | 2017-06-14 | 2017-10-20 | 北京百度网讯科技有限公司 | Segmenting method, device, server and storage medium based on artificial intelligence |
CN108171630A (en) * | 2017-12-29 | 2018-06-15 | 三盟科技股份有限公司 | Discovery method and system based on campus big data environment Students ' action trail |
CN108549856A (en) * | 2018-04-02 | 2018-09-18 | 上海理工大学 | A kind of human action and road conditions recognition methods |
CN109508698A (en) * | 2018-12-19 | 2019-03-22 | 中山大学 | A kind of Human bodys' response method based on binary tree |
CN110097193A (en) * | 2019-04-28 | 2019-08-06 | 第四范式(北京)技术有限公司 | The method and system of training pattern and the method and system of forecasting sequence data |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110289925B (en) * | 2019-06-05 | 2021-06-11 | 宁波大学 | Method for deducing and estimating duty ratio of main user through variation after judgment |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103530603A (en) * | 2013-09-24 | 2014-01-22 | 杭州电子科技大学 | Video abnormality detection method based on causal loop diagram model |
-
2016
- 2016-05-05 CN CN201610292431.9A patent/CN105931271B/en not_active Expired - Fee Related
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103530603A (en) * | 2013-09-24 | 2014-01-22 | 杭州电子科技大学 | Video abnormality detection method based on causal loop diagram model |
Non-Patent Citations (3)
Title |
---|
EMILY B.FOX ET AL: "Joint modeling of multiple time series via the beta process with application to motion capture segmentation", 《THE ANNALS OF APPLIED STATISTICS》 * |
JOHN PAISLEY ET AL: "Variational Inference for Stick-Breaking Beta Process Priors", 《PROCEEDINGS OF THE 28TH INTERNATIONAL CONFERENCE ON MACHINE LEARNING》 * |
SHILIANG SUN ET AL: "Modeling and recognizing human trajectories with beta process hidden Markov models", 《PATTERN RECOGNITION》 * |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107273356A (en) * | 2017-06-14 | 2017-10-20 | 北京百度网讯科技有限公司 | Segmenting method, device, server and storage medium based on artificial intelligence |
US10650096B2 (en) | 2017-06-14 | 2020-05-12 | Beijing Baidu Netcom Science And Techonlogy Co., Ltd. | Word segmentation method based on artificial intelligence, server and storage medium |
CN107273356B (en) * | 2017-06-14 | 2020-08-11 | 北京百度网讯科技有限公司 | Artificial intelligence based word segmentation method, device, server and storage medium |
CN108171630A (en) * | 2017-12-29 | 2018-06-15 | 三盟科技股份有限公司 | Discovery method and system based on campus big data environment Students ' action trail |
CN108549856A (en) * | 2018-04-02 | 2018-09-18 | 上海理工大学 | A kind of human action and road conditions recognition methods |
CN108549856B (en) * | 2018-04-02 | 2021-04-30 | 上海理工大学 | Human body action and road condition identification method |
CN109508698A (en) * | 2018-12-19 | 2019-03-22 | 中山大学 | A kind of Human bodys' response method based on binary tree |
CN109508698B (en) * | 2018-12-19 | 2023-01-10 | 中山大学 | Human behavior recognition method based on binary tree |
CN110097193A (en) * | 2019-04-28 | 2019-08-06 | 第四范式(北京)技术有限公司 | The method and system of training pattern and the method and system of forecasting sequence data |
CN110097193B (en) * | 2019-04-28 | 2021-03-19 | 第四范式(北京)技术有限公司 | Method and system for training model and method and system for predicting sequence data |
Also Published As
Publication number | Publication date |
---|---|
CN105931271B (en) | 2019-01-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105931271A (en) | Behavior locus identification method based on variation BP-HMM | |
CN106777274B (en) | A kind of Chinese tour field knowledge mapping construction method and system | |
CN107145977B (en) | Method for carrying out structured attribute inference on online social network user | |
CN104166706B (en) | Multi-tag grader construction method based on cost-sensitive Active Learning | |
CN106503255A (en) | Based on the method and system that description text automatically generates article | |
CN107168945A (en) | A kind of bidirectional circulating neutral net fine granularity opinion mining method for merging multiple features | |
JP6865364B2 (en) | A learning method and learning device for improving segmentation performance used in detecting events including pedestrian events, automobile events, falling events, and fallen events using edge loss, and a test method and test device using the learning method and learning device. | |
CN106095872A (en) | Answer sort method and device for Intelligent Answer System | |
CN110377902B (en) | Training method and device for descriptive text generation model | |
CN105808762B (en) | Resource ordering method and device | |
Mi et al. | Probabilistic graphical models for boosting cardinal and ordinal peer grading in MOOCs | |
CN106485227A (en) | A kind of Evaluation of Customer Satisfaction Degree method that is expressed one's feelings based on video face | |
CN107545146A (en) | A kind of Psychological Evaluation method that can adaptively set a question | |
CN104966105A (en) | Robust machine error retrieving method and system | |
CN107247972A (en) | One kind is based on mass-rent technology classification model training method | |
CN103824115A (en) | Open-network-knowledge-base-oriented between-entity relationship deduction method and system | |
CN106991127A (en) | A kind of knowledget opic short text hierarchy classification method extended based on topological characteristic | |
CN108182260A (en) | A kind of Multivariate Time Series sorting technique based on semantic selection | |
CN109255002A (en) | A method of it is excavated using relation path and solves knowledge mapping alignment task | |
CN104699797A (en) | Webpage data structured analytic method and device | |
CN108062366A (en) | Public culture information recommendation system | |
CN109948242A (en) | Network representation learning method based on feature Hash | |
CN109145083A (en) | A kind of candidate answers choosing method based on deep learning | |
CN109670644A (en) | Forecasting system and method neural network based | |
CN110196995A (en) | It is a kind of based on biasing random walk Complex Networks Feature extracting method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CP02 | Change in the address of a patent holder |
Address after: 200241 No. 500, Dongchuan Road, Shanghai, Minhang District Patentee after: EAST CHINA NORMAL University Address before: 200062 No. 3663, Putuo District, Shanghai, Zhongshan North Road Patentee before: EAST CHINA NORMAL University |
|
CP02 | Change in the address of a patent holder | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20190118 |
|
CF01 | Termination of patent right due to non-payment of annual fee |