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
0
votes
1 answer

WEKA & HMMWeka, train and test models‏

I'm trying to use WEKA in order to make gesture recognition. I'm new in this procedure, so any help would be appreciated. More specific what I have done in steps: install WEKA install HMMWeka library my data contains rotations form sensors, and I…
0
votes
1 answer

Can "__name__ ==" serve as a key to a dict?

Edit: The accompanying code had a few bugs that were otherwise unrelated to the question as titled. The answer is simple enough, so I'm eliminating the irrelevant code so that the question, as asked in the title, and answer are more clearly…
eenblam
  • 438
  • 1
  • 6
  • 20
0
votes
1 answer

Initial Hidden Markov Model for the Baum Welch algorithm

While trying to make a program for hidden markov models, I did the simplest assumption for the initial HMM of the Baum-Welch algorithm : put everything as a uniform distribution. That is, A[i][j] = 1/statenumber; B[i][j] = 1/observationnumber; P[i] …
Slereah
  • 257
  • 2
  • 13
0
votes
1 answer

ArrayOutOfBoundsException -1 while trying to implement BaumWelchLearner from Jahmm library

I am trying to create an HMM to predict chords based on played melodies in Java, using the Jahmm library here. I am following along with the example that they provide on their page, though I made several changes. For my purposes all I need is the…
mike
  • 1,318
  • 3
  • 21
  • 41
0
votes
1 answer

hidden markov models - Implementing parameter tying in C++

Parameter tying in Hidden Markov Models is essentially mapping multiple logical parameters of an HMM to a few physical parameters, in order to decrease computation and enforce constraints. So if the parameters (states, GMMs, mean vectors, covariance…
Bruce
  • 945
  • 3
  • 12
  • 24
0
votes
1 answer

State transition probabilities and emission probabilities in my hmm converge to nan when my emission sequence is too small

I am trying to train a two-state Hidden Markov model with a scaled Baum-Welch, but I noticed when my emission sequence is too small. My probabilities turn to NaN in java. Is this normal? I have posted my code in java below: import…
0
votes
1 answer

Fast DP in Matlab (Viterbi for profile HMMs)

I've got efficiency problems with viterbi logodds computation in Matlab. Basically my problem is that it is mandatory to have nested loops which slows the code down a lot. This is the expensive part: for i=1:input_len for j=1:num_states …
John Smith
  • 704
  • 7
  • 19
0
votes
1 answer

Speech recognition using HMMs

I am using Hmm for speech recognition of separate words. I have trained my Hmms for my database. I calculate and compare likelihood probabilities for an incoming audio signal. The problem I have is different words have different number of optimal…
0
votes
0 answers

Online machine learning algorithm for complex dynamical system

I have a complex dynamical system which takes input as x1, x2, x3 and gives output as y1, y2, y3. I don't have any mathematical model of the system. x(k) is the present input to the system and y(k) is the present output of the system. My Objective…
0
votes
1 answer

Implementing the Viterbi algorithm in a HMM with changing emission matrices across genomics markers

I would like to ask for help in implementing a hidden markov approach to assigning ancestry based on SNP genotype data. Given that I have a transition matrix generated as such: states <- c("A1","A2","A3","A4","A5","A6","A7","A8") # Define the names…
user2895292
  • 63
  • 1
  • 6
0
votes
0 answers

HMM with continuous emissions

I have d observations whose state emission probabilities I want to model using a d-dimensional Gaussian mixture density. Initially, I want to use existing software solutions. What is the Matlab way of training/testing such a continuous Hidden Markov…
Zoran
  • 459
  • 1
  • 6
  • 19
0
votes
2 answers

Is the HMM module in scikit learn reliable?

I read that it had some numerical stability errors and I was wondering if it's ready for prime time.
0
votes
1 answer

ghmm: Number of emission parameters is invalid: State order cannot be determined

I am trying to extend my Hidden-Markov-Model from 4 internal states and 4 observations to 8 states and 8 observations (currently they have pretty much the same meaning, but I might reduce number of internal states). But now I am getting the…
aufziehvogel
  • 7,167
  • 5
  • 34
  • 56
0
votes
1 answer

Hand shape analysis with Hidden Markov Model

I am currently working on a dynamic gesture recognition system. I opted to go for the curvature feature of the hand shape. At the moment I am able to obtain a list of angles of the hand contour curvature. The problem is that I am stuck with what…
0
votes
1 answer

using HMM with Viterbi Algorithm to correct typographical errors

I want to use HMM with Viterbi Algorithm to correct typographical errors, I calculated the required probability but when I apply Viterbi algorithm I got very bad results, I checked the code line by line and I couldn't find the error public…