CONDITION-BASED MAINTENANCE OF MACHINES USING HIDDEN MARKOV MODELS