Automatically learning structural units in educational videos with the hierarchical hidden markov models