Questions tagged [hidden-markov-models]

Hidden Markov Models are a model for understanding and predicting sequential data in statistics and machine learning, commonly used in natural language processing and bioinformatics.

Hidden Markov Models (HMM) are a model for understanding and predicting sequential data in statistics and machine learning, commonly used in natural language processing and bioinformatics. In HMM, the hidden state variable cannot be observed, but usually some output variable that dependent on the hidden state is visible.

520 questions
2
votes
1 answer

Can't set attribute in property class in markov regime switching model

I am trying to set my initial parameters in order to run a markov regime switching model but I always get the following error: AttributeError: can't set attribute My code is the following: from…
2
votes
2 answers

How to use HiddenMarkovModel from tensorflow probability?

I am following this tutorial: https://github.com/tensorflow/probability/blob/master/tensorflow_probability/examples/jupyter_notebooks/Multiple_changepoint_detection_and_Bayesian_model_selection.ipynb in it it has code that references and uses a…
2
votes
0 answers

How can I use (modify) the Forward algorithm to calculate the probability of a subset observation

For usual HMM problems, observations are generated for all time steps. But let's suppose that we only observe a subset of the outputs: $x_{t1},...x_{tk}$ at the time steps $t1,...tk$. How can we modify the forward algorithm to calculate P(X) (ie…
MrT77
  • 811
  • 6
  • 25
2
votes
1 answer

How to extract entire chunks of text from a Profile Hidden Markov .hmm file

I am currently using a Hidden Markov model-based approach to detect viruses in metagenomics data. I use a profile made by the Pasteur institut based on vFAMs by Peter Skewes-Cox et al., 2014. After using the profile with HMMer and providing…
2
votes
1 answer

Sentiment analysis using Hidden Markov Model

I have a list of reviews, each element of the list is a review of IMDB data set in kaggle. there are 25000 reviews in total. I have the label of each review +1 for positive and -1 for negative. I want to train a Hidden Markov Model with these…
leo
  • 802
  • 6
  • 15
2
votes
2 answers

Can Matlab handle continous observation for Hidden Markov Model

I am wondering can matlab hmm toolbox handle continuous observation? Can it handle multiple observations variable(feature for each state) It seems that it can handle single stream of discrete observations. Is that correct or am I missing…
2
votes
1 answer

Hidden Markov Model with Both Continuous and Discrete Emission Probability

Recently I come up with a problem the observe variables contain 4 continuous variables and a discrete variable. I want to model it with HMM, but I don't know implement it. Do you have know any related papers about this?
Wenmin Wu
  • 1,808
  • 12
  • 24
2
votes
1 answer

HMM Package Usage in R

I'm trying to implement the following example of the Hidden Markov Model in R using the HMM package: https://github.com/luisguiserrano/hmm/blob/master/Simple%20HMM.ipynb Here is my R code: states = c("S", "R") symbols = c("H", "G") startProbs =…
Matt
  • 195
  • 3
  • 8
2
votes
1 answer

Can we do supervised learning through HMM?

I believe I understand HMM at its core. Through HMM we solve evaluation (prob of emitted seq), decoding (most probable hidden seq), and learning problem (learning transition and emission prob-matrix from observed set of emission seq). My problem is…
zeal
  • 465
  • 2
  • 11
  • 22
2
votes
1 answer

Assigning states of Hidden Markov Models by idealized values intensity values.

I'm running the pomegranate HMM (http://pomegranate.readthedocs.io/en/latest/HiddenMarkovModel.html) on my data, and I load the results into a Pandas DF, and define the idealized intensity as the median of all the points in that state:…
2
votes
0 answers

hmmlearn decoded hidden states changes

I am using this Python library for Hidden Markov Model. https://github.com/hmmlearn/hmmlearn //use whole sequence for HMM training rescaled_model = GaussianHMM(n_components= 3, covariance_type="full", n_iter=2000).fit(rescaled_A) …
thinkdeep
  • 945
  • 1
  • 14
  • 32
2
votes
0 answers

Implementation of an EM algorithm for POMDP

I implemented the algorithm described in the paper "Learning Partially Observable Markov Decision Model with EM Algorithm". To test it I randomly generated a pomdp with 2 states, 2 actions and 2 observations. Then I simulated an episode and fed the…
Sela Fried
  • 21
  • 4
2
votes
2 answers

HMM vs Deep Learning for Speech Emotion Recognition (SER)

For building Speech Emotion Detection and Recognition system, which approach would be better? Hidden Markov Model or Deep Learning (RNN-LSTM) approach? I have to build a SER system and I am confused between the two. If there are better models than…
2
votes
2 answers

Confusion regarding Hidden Markov Model and Conditional Random Fields

I am a bit confused about Hidden Markov Models and Conditional Random Fields. I wanna know id they are supervised or un-supervised learning methods? Thanks
Hossein
  • 40,161
  • 57
  • 141
  • 175
2
votes
2 answers

How to train HMM model with multiple sequence of observations - symbol pairs

I am trying to train HMM model to find model parameters for Part of Speech tagging problem. I am using PythonHMM package from following resource: https://github.com/jason2506/PythonHMM Original training data could be like this: Sr.No. …