Thursday, June 20, 2013

Progress on Thursday

The Visual Studio exception is handled by specifying Regularization Constant to be 1e-5 in fitting options when instantiating BaumWelchLearning delegate. Learned Lambda expression, anonymous methods, delegate and lots of other stuffs that C # is different from C++.

After adding the non-zero regularization constant (though I don't even know what that is), the word "fire" is correctly recognized by agents without speaker attached. Further testing shows "help" is also recognized by non-speaker agents while "Norm" is perceived by "Target" (with the speaker) as sequence "help". This is not surprising because the speaker agent is in the same cell with the sound source, the packets it receives may differ from those received by distant agents. If the speaker agent also has to identify the word, then I will have to delve deeper into the propagation code and find out why it can not do that and possibly come up with a solution. The word "run" fails to be recognized by any agent. I suspect it's because of the likelihood decreasing after receiving some phoneme and that caused the buffer to be reset and the number of phonemes in the buffer is therefore never equal to the number in the word and a word recognition failed to be triggered.

Debug info shows that agents perceived phoneme "r" as quite a few other phonemes that have higher confidence than "r". And the following perceived phonemes become useless since the first phoneme in sequence failed to activate corresponding buffer. Maybe some phonemes degrade more significantly than other phonemes because of their specific time-frequency characteristics? Investigating other efficient, yet more accurate representation of phoneme spectrums may be helpful and that is future plan. Or, as a simple, temporary solution, lower the activation threshold for receiving buffers, thus more agents can start receiving potentially interesting phonemes and will discard unlikely sequences as they receive more phonemes.

Problem: short names tends to be recognized before all the phonemes finish propagating. Eg. propagating phoneme sequence for "Target": {1, 29, 22, 11, 25, 1} from sound source "Norm", "run" sequence buffer {22, 30, 19} and "Amy" sequence buffer {26, 18, 25} are activated by subsequence of "Target"  {22, 11, 25} and are perceived respectively by "Target" and "Amy" as {22, 11, 25} and {26, 11, 25}. So "Target" and "Amy" report hearing "run" and "Amy", which is not the case. Lowering the threshold that buffer is refreshed by decreasing likelihood does not work since the value to be decrease is hard to determine. If the threshold is set too low, the "right" buffer currently activated could be refreshed because of a tiny drop in overall likelihood (possibly caused by a misidentified phoneme), which could be potenitally raised again by subsequently received phoneme(s). If the threshold is set too high, recognition error like described above is likely.

Will look into this issue tomorrow.

No comments:

Post a Comment