ece4580:module_surveillance:m2w2
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
ece4580:module_surveillance:m2w2 [2017/04/03 10:10] – created pvela | ece4580:module_surveillance:m2w2 [2024/08/20 21:38] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 6: | Line 6: | ||
Once we know the mixture models are proper, then the next step is to actually use the models as a means to test proximity of one model to another. | Once we know the mixture models are proper, then the next step is to actually use the models as a means to test proximity of one model to another. | ||
+ | |||
+ | === Matching Data to Model: Theory === | ||
To start simply, let's first consider the case of checking the data from the model for consistency. Imagine that there are 10 people who has walked in, each with their own Gaussian mixture model as the signature, and that they have subsequently left the scene. One of those 10 returns. Which of them is it? ... Well, we have a new set of image data from the binary masked image portion of the recently entered person. Our question get converted to the question: Which of the existing models is the new data a good fit for? That naturally begets the question: How can we create a scoring mechanism for testing fitness of data to existing models? | To start simply, let's first consider the case of checking the data from the model for consistency. Imagine that there are 10 people who has walked in, each with their own Gaussian mixture model as the signature, and that they have subsequently left the scene. One of those 10 returns. Which of them is it? ... Well, we have a new set of image data from the binary masked image portion of the recently entered person. Our question get converted to the question: Which of the existing models is the new data a good fit for? That naturally begets the question: How can we create a scoring mechanism for testing fitness of data to existing models? | ||
Line 11: | Line 13: | ||
We have been doing this in the course homework using a scoring energy principally based on squared distance. For Gaussian models, the squared distance is not so appropriate since there is a known covariance matrix which describes how the space should be warped to respect the spread of the data. Such a warped squared distance is known as the [[https:// | We have been doing this in the course homework using a scoring energy principally based on squared distance. For Gaussian models, the squared distance is not so appropriate since there is a known covariance matrix which describes how the space should be warped to respect the spread of the data. Such a warped squared distance is known as the [[https:// | ||
- | $$ Testing | + | $$E(T ; M) = \int_{\mathcal{D}} \min_{i} (T(x) - \mu_i)^T \Sigma_i (T(x) - \mu_i) dt |
+ | | ||
+ | |||
+ | where $T$ is the template image data extracted from the image of the just entered or newly detected target/ | ||
+ | |||
+ | Recall that we treat an image as a 2D function $I: | ||
+ | |||
+ | Of course, that gives the energy for one single model. For multiple stored target models, the matching model for the test template would be the one with the smallest score. | ||
+ | |||
+ | $$ r^* = \arg \min_{r} E(T; M_r). $$ | ||
+ | |||
+ | === Matching Data to Model: Practice === | ||
+ | |||
+ | Based on the earlier [[ECE4580: | ||
+ | |||
+ | === Implementation === | ||
+ | |||
+ | - Create a function that takes in a model and the (sequential) template data matrix, and returns the score. Call it '' | ||
+ | - Create a second function that takes in the template matrix data, plus the set of models, and returns both the index into the best scoring model (first argument) and its associated score (second argument). Call it '' | ||
+ | - Test out the '' | ||
+ | - Test out the '' | ||
+ | - Download someone else's data from the google drive location (hopefully there is more than one set of data there), and apply the same procedure to it. What this means is, use the first set of the data to train a set of Gaussian mixture models, then use the second set to test with. Report the accuracy, and answer the same questions as the previous step. | ||
-------------------------- | -------------------------- |
ece4580/module_surveillance/m2w2.1491228614.txt.gz · Last modified: 2024/08/20 21:38 (external edit)