A novel seizure detection algorithm informed by hidden Markov model event states