{"id":23,"date":"2019-03-03T01:57:06","date_gmt":"2019-03-03T01:57:06","guid":{"rendered":"http:\/\/course.ece.cmu.edu\/~ece500\/projects\/s19-teamca\/?p=23"},"modified":"2019-03-26T10:24:14","modified_gmt":"2019-03-26T10:24:14","slug":"weekly-status-report-3-02-omar","status":"publish","type":"post","link":"https:\/\/course.ece.cmu.edu\/~ece500\/projects\/s19-teamca\/2019\/03\/03\/weekly-status-report-3-02-omar\/","title":{"rendered":"Weekly Status Report 3\/02 &#8211; Omar"},"content":{"rendered":"<ul>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">What did you personally accomplish this week on the project? Give files or photos that demonstrate your progress. Prove to the reader that you put sufficient effort into the project over the course of the week (12+ hours). <\/span><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400\">This week I went over-time in the amount of work I did. I was hoping to put sufficient work to cover not only the expectations this week but also for the next two weeks. My work is summarized below.<\/span><\/p>\n<ul>\n<li style=\"list-style-type: none\">\n<ul>\n<li style=\"list-style-type: none\">\n<ul>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Finished implementation Local PCA. Resulted were poor. This led to the developments in the next points.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Completed implementation of Global PCA. Results were better but not good enough. Used library version of K-means to cluster. Implemented classes to recognize arbitrary image using the clustering. <\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Implemented a script that uses identifies faces in real-time (combines my work related to Global PCA, LDA, Fisherfaces).<\/span><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul>\n<li style=\"list-style-type: none\">\n<ul>\n<li style=\"list-style-type: none\">\n<ul>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Completed LDA and\u00a0\u00a0\u00a0\u00a0Fisherfaces implementation. Our implementation improved our training and testing accuracy by about 10% (to about 45% per class across 3 classes). However, we are still not getting the performance we need. We believe we are not correctly implementing LDA as our clustering is not exhibiting the traits that LDA is characteristic of (see below clustering with 3 classes projected into a C &#8211; 1 = 2-dimensional space).<\/span><\/li>\n<li style=\"font-weight: 400\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-medium wp-image-25\" src=\"http:\/\/course.ece.cmu.edu\/~ece500\/projects\/s19-teamca\/wp-content\/uploads\/sites\/48\/2019\/03\/Annotation-2019-03-02-205127-1-300x229.jpg\" alt=\"\" width=\"300\" height=\"229\" srcset=\"https:\/\/course.ece.cmu.edu\/~ece500\/projects\/s19-teamca\/wp-content\/uploads\/sites\/48\/2019\/03\/Annotation-2019-03-02-205127-1-300x229.jpg 300w, https:\/\/course.ece.cmu.edu\/~ece500\/projects\/s19-teamca\/wp-content\/uploads\/sites\/48\/2019\/03\/Annotation-2019-03-02-205127-1-768x587.jpg 768w, https:\/\/course.ece.cmu.edu\/~ece500\/projects\/s19-teamca\/wp-content\/uploads\/sites\/48\/2019\/03\/Annotation-2019-03-02-205127-1-1024x783.jpg 1024w, https:\/\/course.ece.cmu.edu\/~ece500\/projects\/s19-teamca\/wp-content\/uploads\/sites\/48\/2019\/03\/Annotation-2019-03-02-205127-1.jpg 1035w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<ul>\n<li style=\"list-style-type: none\">\n<ul>\n<li style=\"list-style-type: none\">\n<ul>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Developed algorithms to delineate\u00a0between a stranger and non-stranger. I devised two methods for detecting strangers. <\/span><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<ol>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Use an images E2 K-means distance. This distance is its distance to the nearest centroid. If this distance is larger than some threshold we consider the image as that of a stranger. We decide the threshold value by taking it as the E2 K-means distance of the training data (e.g. 75% of training data images had E2 distance &lt;= 500 so the threshold is 500)<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Similar threshold to before except we use the reconstruction mean-squared error as a metric.<\/span><\/li>\n<\/ol>\n<p><span style=\"font-weight: 400\">This method seemed promising but it did not work out. Below is a chart summarizing the source of inaccuracies we detected in our training and testing. The False Positive part of the stacked bar represent errors where our k-means correctly predicted the identity but because of our thresholding we designated that image as a stranger.<\/span><\/p>\n<p><span style=\"font-weight: 400\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-26\" src=\"http:\/\/course.ece.cmu.edu\/~ece500\/projects\/s19-teamca\/wp-content\/uploads\/sites\/48\/2019\/03\/Annotation-2019-03-02-205418-300x109.jpg\" alt=\"\" width=\"443\" height=\"161\" srcset=\"https:\/\/course.ece.cmu.edu\/~ece500\/projects\/s19-teamca\/wp-content\/uploads\/sites\/48\/2019\/03\/Annotation-2019-03-02-205418-300x109.jpg 300w, https:\/\/course.ece.cmu.edu\/~ece500\/projects\/s19-teamca\/wp-content\/uploads\/sites\/48\/2019\/03\/Annotation-2019-03-02-205418-768x279.jpg 768w, https:\/\/course.ece.cmu.edu\/~ece500\/projects\/s19-teamca\/wp-content\/uploads\/sites\/48\/2019\/03\/Annotation-2019-03-02-205418-1024x372.jpg 1024w, https:\/\/course.ece.cmu.edu\/~ece500\/projects\/s19-teamca\/wp-content\/uploads\/sites\/48\/2019\/03\/Annotation-2019-03-02-205418.jpg 1303w\" sizes=\"(max-width: 443px) 100vw, 443px\" \/><\/span><\/p>\n<p><span style=\"font-weight: 400\"> In order to understand why, I visualized how the E2 and MSE metrics for training data and stranger data compared (below). As you can see, my implicit hypothesis was that stranger images would have larger E2 distances and larger MSE\u2019s than the training data. This was not the case, unfortunately. I am still working on a solution to the problem of detecting strangers.<\/span><\/p>\n<p><span style=\"font-weight: 400\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-27\" src=\"http:\/\/course.ece.cmu.edu\/~ece500\/projects\/s19-teamca\/wp-content\/uploads\/sites\/48\/2019\/03\/Annotation-2019-03-02-205440-300x227.jpg\" alt=\"\" width=\"430\" height=\"325\" srcset=\"https:\/\/course.ece.cmu.edu\/~ece500\/projects\/s19-teamca\/wp-content\/uploads\/sites\/48\/2019\/03\/Annotation-2019-03-02-205440-300x227.jpg 300w, https:\/\/course.ece.cmu.edu\/~ece500\/projects\/s19-teamca\/wp-content\/uploads\/sites\/48\/2019\/03\/Annotation-2019-03-02-205440-768x580.jpg 768w, https:\/\/course.ece.cmu.edu\/~ece500\/projects\/s19-teamca\/wp-content\/uploads\/sites\/48\/2019\/03\/Annotation-2019-03-02-205440.jpg 897w\" sizes=\"(max-width: 430px) 100vw, 430px\" \/><\/span><\/p>\n<ul>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Is your progress on schedule or behind? If you are behind, what actions will be taken to catch up to the project schedule? <\/span>\n<ul>\n<li style=\"list-style-type: none\">\n<ul>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">On schedule. <\/span><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">What deliverables do you hope to complete in the next week?<\/span>\n<ul>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\"> Since I accomplished much more than what I had to this week, I may take it easy for the next two weeks. The work I have been doing has been exciting so I may make progress anyways. <\/span><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>What did you personally accomplish this week on the project? Give files or photos that demonstrate your progress. Prove to the reader that you put sufficient effort into the project over the course of the week (12+ hours). This week I went over-time in the amount of work I did. I was hoping to put &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/course.ece.cmu.edu\/~ece500\/projects\/s19-teamca\/2019\/03\/03\/weekly-status-report-3-02-omar\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Weekly Status Report 3\/02 &#8211; Omar&#8221;<\/span><\/a><\/p>\n","protected":false},"author":146,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/course.ece.cmu.edu\/~ece500\/projects\/s19-teamca\/wp-json\/wp\/v2\/posts\/23"}],"collection":[{"href":"https:\/\/course.ece.cmu.edu\/~ece500\/projects\/s19-teamca\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/course.ece.cmu.edu\/~ece500\/projects\/s19-teamca\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/course.ece.cmu.edu\/~ece500\/projects\/s19-teamca\/wp-json\/wp\/v2\/users\/146"}],"replies":[{"embeddable":true,"href":"https:\/\/course.ece.cmu.edu\/~ece500\/projects\/s19-teamca\/wp-json\/wp\/v2\/comments?post=23"}],"version-history":[{"count":2,"href":"https:\/\/course.ece.cmu.edu\/~ece500\/projects\/s19-teamca\/wp-json\/wp\/v2\/posts\/23\/revisions"}],"predecessor-version":[{"id":74,"href":"https:\/\/course.ece.cmu.edu\/~ece500\/projects\/s19-teamca\/wp-json\/wp\/v2\/posts\/23\/revisions\/74"}],"wp:attachment":[{"href":"https:\/\/course.ece.cmu.edu\/~ece500\/projects\/s19-teamca\/wp-json\/wp\/v2\/media?parent=23"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/course.ece.cmu.edu\/~ece500\/projects\/s19-teamca\/wp-json\/wp\/v2\/categories?post=23"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/course.ece.cmu.edu\/~ece500\/projects\/s19-teamca\/wp-json\/wp\/v2\/tags?post=23"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}