| A hidden Markov model is a mixture model that is based on some parametric familysuch that its mixing process {st} is a K-state Markov chain. Under the case of yt|{st=k}-N(αk+βkxt,σk2), the problem can be solved from Chopin(2007). But we hote that the mean in the normal distribution is a linear function. This paper solved the problem that the mean is an unknown non-linear function. Firstly, we should fit the unknown non-linear function by spline function; secondly, we need to write the likelihood function of the first t observations y1,...,yt;thirdly, we are interestedin the coefficients of the spline function, that isαk(s)j,which satisfies the constraint of (?)|αk(s)j|≤t;at last, we can obtain the maximum likelihood estimation of the coefficients by using Kuhn-Tuckerconditions. |