{"id":227,"date":"2024-12-07T21:51:32","date_gmt":"2024-12-07T21:51:32","guid":{"rendered":"http:\/\/course.ece.cmu.edu\/~ece500\/projects\/f24-teamc4\/?p=227"},"modified":"2024-12-07T21:51:48","modified_gmt":"2024-12-07T21:51:48","slug":"team-status-report-for-11-07","status":"publish","type":"post","link":"https:\/\/course.ece.cmu.edu\/~ece500\/projects\/f24-teamc4\/2024\/12\/07\/team-status-report-for-11-07\/","title":{"rendered":"Team Status Report for 12\/07"},"content":{"rendered":"<p><b>General updates:<\/b><\/p>\n<ul>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">At the beginning of the week, the team prepared for the final presentation by finalizing slides and doing some practice runs.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Jessie and Shaye worked together to adjust the live feedback code so the tension for 2 hands could be identified. Previously, our tension detection algorithm only worked for 1 hand. For more information, see Shaye\u2019s status report.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Jessie continued to work on testing the post-processing and average FPS of various piano-playing videos. For more information view her status report.\u00a0<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Danny continued working on improving the web application and displaying the videos on the website. For more information view his status report.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">At the end of the week, the team also discussed the content we want to present on our poster.\u00a0<\/span><\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400\">Unit testing:<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400\">UI\/UX (Clarity of instructions, stand setup\/take down)<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">We tasked one of our pianists to run through the instructions on the web application. This involved setting up the stand, placing the stand behind the piano bench and adjusting the camera, navigating to the calibration and recording page for a mock recording session, and then taking down the entire system.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">We timed how long it took for the pianist to complete each of the steps and they were within most of our time limits. One step we underestimated was how long it takes to set up the stand so we will be working on that.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">We received feedback afterwards that our instructions were not the clearest so the pianist was not sure what they had to do at each step. They also commented that providing pictures of each component would help clear up the instructions as well.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">As the pianist was able to complete most of the tasks within time, we are not too worried about making big changes to our system. We have made our instructions more clear and are going to add pictures to our instructions to help our users. Additionally, we are not currently planning on changing anything related to our stand or how setup\/takedown is done as changing the instructions is easier and was our main complaint.<\/span><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400\">Hardware (latency, frame rate)<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">We created a small data set of videos with varying types of pieces and of varying lengths. We used this data set to test both the average frame rate and post-processing time.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Frame rate<\/span>\n<ul>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">To find the average frame rate for each video, we have an array of the captured frame rate and then average this at the end of the video. The base code already included the code to find the frame rate. It uses a ticker to track time and after 10 frames, will find the frame rate by dividing 10 frames by the time that has passed. We collect and average these values.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">We found that our average frame rate was about 21-22 fps, which is within the targeted range. Therefore, we made no changes to our design due to the frame rate.<\/span><\/li>\n<\/ul>\n<\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Post-processing time<\/span>\n<ul>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">To find the post-processing time of each of the videos we create a time-stamp before the frames of the video are written into a video and afterwards.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">We found that the post-processing time was way below our targeted processing rate of \u00bd (processing time is half of the video length). The rate that we achieved is around \u2159. However, we plan to test this more extensively with longer video lengths. It\u2019s possible that our code will change if these longer videos fail, which could slow down our processing rate. However, since the rate is so far below our target, we are not concerned.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">No major design decisions were made based on our findings. However, changes were made to our code based on the fact that the post-processing did not work for longer videos. Instead of storing the frames of the video in an array, the frames were stored in a file. This likely slowed down the frame rate and post-processing time due to the extra time to read and write to files; however, with this change, we are still within the target range.<\/span><\/li>\n<\/ul>\n<\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Live feedback latency<\/span>\n<ul>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">To test the live feedback latency of our system, we inputted clearly tense and not tense movements into our system by waving and abruptly stopping. Our tension algorithm detects tension by horizontal degree deviation, therefore the waving is extremely non-tense and the abrupt stop followed by a pause is extremely tense. We had multiple iterations of waving and stopping and recorded when the waving stopped and when the audio feedback was produced. The difference between these 2 timestamps was effectively our system\u2019s latency.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">We found that the system had a latency of around 500ms, which is way below our target of 1 second. These results are from only testing tension in one hand as we are still finishing our tension detection algorithm; however, we expect the latency will go up with 2 hands as with 2 hands in the frame the frame rate drops. We don\u2019t think this drop in frame rate will cause us to go over our target though since the drop is not very big (28 fps to 21 fps). Because we are meeting our target, no changes were made based on these results.<\/span><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p><span style=\"font-weight: 400\">Model (accuracy of angles)<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Compared Mediapipe to hand measurements &amp; Mediapipe to Blaze.\u00a0<\/span><\/li>\n<\/ul>\n<ul>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Was fine, no changes\u00a0<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Graphs of angles &amp; summary of percent match between every output<\/span><\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400\">Tension detection algorithm (comparison to ground truth)<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Run detection pipeline on clips. Compare to ground truth results\u00a0<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Compiled two datasets the our tension form that we sent out\u2014one where at least 4\/6 respondents agree, and one where 5\/6 respondents agreed<\/span>\n<ul>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">We sent out 21 video clips to be labelled<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">The 5\/6 dataset contained 7 videos\u00a0<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">The 4\/6 dataset contained 15 videos<\/span><\/li>\n<\/ul>\n<\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Overall, the datasets are very iffy &amp; tension detection is inconclusive. However, because of the mixed ground truth and feedback for a better angle, that could\u2019ve been an approach if we had more time for this project.<\/span><\/li>\n<\/ul>\n<ul>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Preliminary results are as summarized:\u00a0<\/span><\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400\">Integrated tests:<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400\">Tension on RPI:\u00a0<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">To test whether the tension detection algorithm maintains a high accuracy when run on the RPi, we plan to use the same as tension detection testing from earlier (but on the RPI w\/ full system instead). We plan to run this soon and currently have no results for this test.<\/span><\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400\">Overall workflow UI\/UX testing:\u00a0<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Because we are not quite finished integrating our system, we plan to do this in the near future and have yet to collect results. However, to test our full system, we plan to first have Shaye, our local pianist, run through the workflow to see if there are any major integration issues. Once this works, we will ask a pianist who is unfamiliar with our system to try and go through the workflow to see if the UI is clear.<\/span><\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>General updates: At the beginning of the week, the team prepared for the final presentation by finalizing slides and doing some practice runs. Jessie and Shaye worked together to adjust the live feedback code so the tension for 2 hands could be identified. Previously, our tension detection algorithm only worked for 1 hand. For more &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/course.ece.cmu.edu\/~ece500\/projects\/f24-teamc4\/2024\/12\/07\/team-status-report-for-11-07\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Team Status Report for 12\/07&#8221;<\/span><\/a><\/p>\n","protected":false},"author":933,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[13],"tags":[9,7],"_links":{"self":[{"href":"https:\/\/course.ece.cmu.edu\/~ece500\/projects\/f24-teamc4\/wp-json\/wp\/v2\/posts\/227"}],"collection":[{"href":"https:\/\/course.ece.cmu.edu\/~ece500\/projects\/f24-teamc4\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/course.ece.cmu.edu\/~ece500\/projects\/f24-teamc4\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/course.ece.cmu.edu\/~ece500\/projects\/f24-teamc4\/wp-json\/wp\/v2\/users\/933"}],"replies":[{"embeddable":true,"href":"https:\/\/course.ece.cmu.edu\/~ece500\/projects\/f24-teamc4\/wp-json\/wp\/v2\/comments?post=227"}],"version-history":[{"count":2,"href":"https:\/\/course.ece.cmu.edu\/~ece500\/projects\/f24-teamc4\/wp-json\/wp\/v2\/posts\/227\/revisions"}],"predecessor-version":[{"id":229,"href":"https:\/\/course.ece.cmu.edu\/~ece500\/projects\/f24-teamc4\/wp-json\/wp\/v2\/posts\/227\/revisions\/229"}],"wp:attachment":[{"href":"https:\/\/course.ece.cmu.edu\/~ece500\/projects\/f24-teamc4\/wp-json\/wp\/v2\/media?parent=227"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/course.ece.cmu.edu\/~ece500\/projects\/f24-teamc4\/wp-json\/wp\/v2\/categories?post=227"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/course.ece.cmu.edu\/~ece500\/projects\/f24-teamc4\/wp-json\/wp\/v2\/tags?post=227"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}