Hidden Markov models ( HMMs ) were used to predict the likelihood of WMSD in dental students by comparing their neck and upper back movement patterns with WMSD and non-WMSD HMMs learned from previous data .