Algorithms, Dynamic Programming, Machine Learning, Artificial Intelligence, Markov Models.
wave is broken up into small chunks and the frequencies extracted to form an observation. For information, see The Application of Hidden Markov Modelsin Speech Recognition by Gales and Young. In face detection, looking at a rectangular region of pixels and directly using those intensities makes the