Skip to content

Commit

Permalink
AI Module 8
Browse files Browse the repository at this point in the history
  • Loading branch information
AustinTSchaffer committed Mar 30, 2024
1 parent 13e41db commit 994cc28
Show file tree
Hide file tree
Showing 21 changed files with 69 additions and 0 deletions.
Binary file added OMSCS/Courses/AI/Module_08/32601581-MIT.pdf
Binary file not shown.
Binary file added OMSCS/Courses/AI/Module_08/41539.pdf
Binary file not shown.
Binary file added OMSCS/Courses/AI/Module_08/HTS-Introduction.pdf
Binary file not shown.
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 added OMSCS/Courses/AI/Module_08/chapter4.1-HMM.pdf
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 added OMSCS/Courses/AI/Module_08/rabiner.pdf
Binary file not shown.

0 comments on commit 994cc28

Please sign in to comment.