An appraisal of human motions and particular motion phases is essential for a good interaction between a human and a humanoid robot. We present a new method for the analysis of human motions and the classification of motion phases. The method allows an automatic composition of a motion model for a complex motion from several elementary models. The elementary models can be retrieved from a motion catalogue according to the requirements of a current motion processing task. The method is based on the analysis of the hidden states in a complex HMM and considers the context of all elementary phases in an entire motion sequence. The analysis of motion phases with the new model is computationally more efficient and yields better recognition rates than conventional motion analysis with HMMs and winner-takes-all strategy.