Two effective models,Hidden Markov Model and Input/Output Hidden Markov Model,used in the field of protein secondary structure prediction are introduced in this paper.Their principles,algorithms and applications are also presented.When applied them to the problem of protein structure prediction with few training samples, the result shows that HMM and I/O HMM are of higher performance than others presented in references.