Text this: Intrusion detection method based on hierarchical hidden Markov model and variable-length semantic pattern