-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
13e41db
commit 994cc28
Showing
21 changed files
with
69 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file not shown.
69 changes: 69 additions & 0 deletions
69
OMSCS/Courses/AI/Module_08/Module 8 - Pattern Recognition through Time.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
--- | ||
tags: | ||
- OMSCS | ||
- AI | ||
--- | ||
# Module 8 - Pattern Recognition through Time | ||
|
||
This module follows chapter 14 from AIMA: [[AIMA - Chapter 14 - Probabilistic Reasoning over Time]] | ||
|
||
This module also talks through how Thad Starner applied HMMs to his research into gesture recognition. It's incredibly interesting, but I don't really know how to generalize the information, so I'm not sure how to notate it. For more info, check out Thad's PhD thesis: [[32601581-MIT.pdf]] | ||
|
||
## Warping | ||
- For detecting patterns which might have different y-intercepts, encode the changes in the signal's values, rather than the signal's raw values | ||
- For detecting patterns which might stretch and compress, do some time warping | ||
|
||
![[Pasted image 20240325101744.png]] | ||
|
||
![[Pasted image 20240325101813.png]] | ||
|
||
![[Pasted image 20240325101847.png]] | ||
|
||
## Dynamic Time Warp | ||
|
||
![[Pasted image 20240325101959.png]] | ||
|
||
Try to match values between sequences, but try to keep to the diagonal when possible. | ||
|
||
Distance in this example is $\sqrt{34}$, much lower compared to the euclidean distance of $\sqrt{170}$. | ||
|
||
## Sakoe Chiba Bounds | ||
![[Pasted image 20240325102302.png]] | ||
|
||
Similar to the previous algorithm, but we don't allow the dynamic warping to deviate from some bounds around the diagonal. | ||
|
||
## Hidden Markov Models | ||
- module focuses on 1st order HMMs | ||
|
||
![[Pasted image 20240325121112.png]] | ||
|
||
### HMMs: I vs We | ||
![[Pasted image 20240325121514.png]] | ||
|
||
![[Pasted image 20240325121551.png]] | ||
|
||
### Viterbi Trellis | ||
![[Pasted image 20240325122002.png]] | ||
|
||
![[Pasted image 20240325122317.png]] | ||
|
||
![[Pasted image 20240325122630.png]] | ||
|
||
- This is the part from the textbook chapter | ||
|
||
### New Observation for "I" | ||
![[Pasted image 20240325130548.png]] | ||
|
||
## New Observation for "We" | ||
![[Pasted image 20240325130609.png]] | ||
|
||
## Stochastic Beam Search | ||
![[Pasted image 20240330140601.png]] | ||
|
||
Randomly keep paths through the lattice based on the probability of those paths. The red paths are high probability paths, while the blue paths are low probability paths. | ||
|
||
## Using HMMs to Generate Data | ||
![[Pasted image 20240330141418.png]] | ||
|
||
> not a great idea in practice | ||
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.