{"id":52,"date":"2020-01-20T17:12:14","date_gmt":"2020-01-20T22:12:14","guid":{"rendered":"http:\/\/mrsdprojects.ri.cmu.edu\/2020teamh\/?page_id=52"},"modified":"2020-12-18T20:12:47","modified_gmt":"2020-12-19T01:12:47","slug":"system-performance","status":"publish","type":"page","link":"https:\/\/mrsdprojects.ri.cmu.edu\/2020teamh\/system-performance\/","title":{"rendered":"System Performance"},"content":{"rendered":"<hr>\n<p>The performance of each subsystem as a combination of the Spring and Fall Validation demonstration is discussed as follows:<\/p>\n<h1>Data Capture<\/h1>\n<p>We captured videos with varied traffic densities, duration, traffic behaviors and at different intersections within CARLA. Our pipeline allows us to have explicit control over all of these parameters. We simultaneously recorded the ground truth states within the simulator, which were used for evaluation of Data Preprocessing subsystem.<\/p>\n<p>We also captured real-world video at a traffic intersection. This data was also used in subsequent steps to extract behavioral parameters.<\/p>\n<p>Simultaneous data capture from opposite sides enable 100% view of the intersection. Both CARLA camera and GoPro allow us to adjust frames per second to very high values. In our work we captured data at 30 and 60 fps respectively, hence we fulfill our mandatory requirements.<\/p>\n<h1>Data Preprocessing<\/h1>\n<h3>Detection<\/h3>\n<p>Faster RCNN Model (pre-trained on COCO and finetuned on custom dataset)<\/p>\n<p><!--td {border: 1px solid #ccc;}br {mso-data-placement:same-cell;}--><\/p>\n<table class=\"center\" dir=\"ltr\" style=\"height: 352px\" border=\"1\" width=\"328\" cellspacing=\"0\" cellpadding=\"0\">\n<colgroup>\n<col width=\"136\">\n<col width=\"122\">\n<col width=\"100\"><\/colgroup>\n<tbody>\n<tr>\n<th><strong>ConfThreshold<\/strong><br><strong>@0.5IoU<\/strong><\/th>\n<th><strong>Precision<\/strong><\/th>\n<th><strong>Recall<\/strong><\/th>\n<\/tr>\n<tr>\n<td>10.01%<\/td>\n<td>72.26%<\/td>\n<td>95.80%<\/td>\n<\/tr>\n<tr>\n<td>20.00%<\/td>\n<td>81.71%<\/td>\n<td>95.24%<\/td>\n<\/tr>\n<tr>\n<td>30.04%<\/td>\n<td>86.38%<\/td>\n<td>94.55%<\/td>\n<\/tr>\n<tr>\n<td>40.06%<\/td>\n<td>89.92%<\/td>\n<td>94.06%<\/td>\n<\/tr>\n<tr>\n<td>50.13%<\/td>\n<td>92.74%<\/td>\n<td>93.34%<\/td>\n<\/tr>\n<tr>\n<td>60.02%<\/td>\n<td>94.38%<\/td>\n<td>92.65%<\/td>\n<\/tr>\n<tr>\n<td>70.00%<\/td>\n<td>95.98%<\/td>\n<td>91.66%<\/td>\n<\/tr>\n<tr>\n<td><strong>80.08%<\/strong><\/td>\n<td><strong>97.54%<\/strong><\/td>\n<td><strong>90.32%<\/strong><\/td>\n<\/tr>\n<tr>\n<td>90.06%<\/td>\n<td>98.70%<\/td>\n<td>88.18%<\/td>\n<\/tr>\n<tr>\n<td>95.05%<\/td>\n<td>99.25%<\/td>\n<td>85.50%<\/td>\n<\/tr>\n<tr>\n<td>98.01%<\/td>\n<td>99.59%<\/td>\n<td>81.21%<\/td>\n<\/tr>\n<tr>\n<td>99.00%<\/td>\n<td>99.88%<\/td>\n<td>76.09%<\/td>\n<\/tr>\n<tr>\n<td>99.90%<\/td>\n<td>100.00%<\/td>\n<td>37.74%<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>At 80% confidence threshold, we achieve both our mandatory and desired performance (Precision and Recall) for the detection model.<\/p>\n<h3>Tracking<\/h3>\n<p>MOT metrics for tracking(combined result of Image and Birds Eye View tracking) calculated in the Birds Eye View space.<\/p>\n<p><!--td {border: 1px solid #ccc;}br {mso-data-placement:same-cell;}--><\/p>\n<table class=\"center\" dir=\"ltr\" border=\"1\" cellspacing=\"0\" cellpadding=\"0\">\n<colgroup>\n<col width=\"136\">\n<col width=\"122\">\n<col width=\"100\">\n<col width=\"100\"><\/colgroup>\n<tbody>\n<tr>\n<th>Traffic Light ID<\/th>\n<th>MOTA<\/th>\n<th>MOTP<\/th>\n<th>Traffic Density<\/th>\n<\/tr>\n<tr>\n<td>54<\/td>\n<td>75.59<\/td>\n<td>73.32<\/td>\n<td>Low<\/td>\n<\/tr>\n<tr>\n<td>55<\/td>\n<td>86.43<\/td>\n<td>54.11<\/td>\n<td>Low<\/td>\n<\/tr>\n<tr>\n<td>61<\/td>\n<td>98.17<\/td>\n<td>80.38<\/td>\n<td>Low<\/td>\n<\/tr>\n<tr>\n<td>62<\/td>\n<td>98.44<\/td>\n<td>62.41<\/td>\n<td>Low<\/td>\n<\/tr>\n<tr>\n<td>65<\/td>\n<td>72.79<\/td>\n<td>60.26<\/td>\n<td>Low<\/td>\n<\/tr>\n<tr>\n<td>65<\/td>\n<td>52.7<\/td>\n<td>51.08<\/td>\n<td>Moderate<\/td>\n<\/tr>\n<tr>\n<td>62<\/td>\n<td>89.02<\/td>\n<td>61.19<\/td>\n<td>Moderate<\/td>\n<\/tr>\n<tr>\n<td>61<\/td>\n<td>94.38<\/td>\n<td>76.05<\/td>\n<td>Moderate<\/td>\n<\/tr>\n<tr>\n<td>55<\/td>\n<td>78.85<\/td>\n<td>76.05<\/td>\n<td>Moderate<\/td>\n<\/tr>\n<tr>\n<td>54<\/td>\n<td>60.94<\/td>\n<td>72.59<\/td>\n<td>Moderate<\/td>\n<\/tr>\n<tr>\n<td>65<\/td>\n<td>65.78<\/td>\n<td>61.66<\/td>\n<td>Dense<\/td>\n<\/tr>\n<tr>\n<td>55<\/td>\n<td>91.19<\/td>\n<td>80.69<\/td>\n<td>Dense<\/td>\n<\/tr>\n<tr>\n<td>Average<\/td>\n<td>80.36<\/td>\n<td>67.48<\/td>\n<td>&nbsp;<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>Parameter Extraction<\/h3>\n<table>\n<thead>\n<tr>\n<th rowspan=\"2\">Intersection<\/th>\n<th rowspan=\"2\">Time(s)<\/th>\n<th rowspan=\"2\">No. of Vehicles<\/th>\n<th colspan=\"2\">Ground Truth(Simulation State)<\/th>\n<th colspan=\"4\">Extracted Params(Perception)<\/th>\n<\/tr>\n<tr>\n<td>Traffic Light Breaking Percentage<\/td>\n<td>Min. Lead Vehicle Distance (m)<\/td>\n<td colspan=\"2\">Traffic Light Breaking Percentage<\/td>\n<td colspan=\"2\">Min. Lead Vehicle Distance<\/td>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td> <\/td>\n<td> <\/td>\n<td> <\/td>\n<td> <\/td>\n<td> <\/td>\n<td>Predicted<\/td>\n<td>% Error<\/td>\n<td>Predicted<\/td>\n<td>% Error<\/td>\n<\/tr>\n<tr>\n<td>1<\/td>\n<td>30<\/td>\n<td>125<\/td>\n<td>90.91%<\/td>\n<td>8.8<\/td>\n<td>72.99%<\/td>\n<td>19.7%<\/td>\n<td>10.05<\/td>\n<td>14.2%<\/td>\n<\/tr>\n<tr>\n<td>1<\/td>\n<td>300<\/td>\n<td>75<\/td>\n<td>42.86%<\/td>\n<td>7.0<\/td>\n<td>37.5%<\/td>\n<td>12.5%<\/td>\n<td>5.78<\/td>\n<td>17.42%<\/td>\n<\/tr>\n<tr>\n<td>2<\/td>\n<td>30<\/td>\n<td>100<\/td>\n<td>100%<\/td>\n<td>14.19<\/td>\n<td>85.7%<\/td>\n<td>14.3%<\/td>\n<td>14.54<\/td>\n<td>2.4%<\/td>\n<\/tr>\n<tr>\n<td>2<\/td>\n<td>300<\/td>\n<td>75<\/td>\n<td>69.81%<\/td>\n<td>8.7<\/td>\n<td>67.5%<\/td>\n<td>3.3%<\/td>\n<td>8.32<\/td>\n<td>4.3%<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h1>&nbsp;<\/h1>\n<h1>Modeling<\/h1>\n<h3>Rule-based Modeling<\/h3>\n<p>For evaluating the performance of our rule-based modeling, we tested a wide variety of scenarios. The evaluator was allowed to choose the value of the tunable parameters to observe certain traffic scenario, which was then verified for its accuracy by observing the ground truth states from the simulation. Following were the results of the two runs during the Fall Validation Demonstration from which we can see that our percentage change from the configured values is always below 20%. Hence we meet our requirement M.P.7.<\/p>\n<table style=\"height: 114px\" width=\"255\">\n<thead>\n<tr>\n<th style=\"text-align: center\" colspan=\"3\">Aggressive Town<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>&nbsp;<\/td>\n<td>Traffic Light Violation(TLV) (%)<\/td>\n<td>Min. Lead Vehicle Distance(LVD) (m)<\/td>\n<\/tr>\n<tr>\n<td>Chosen Parameters in range<\/td>\n<td>90<\/td>\n<td>5<\/td>\n<\/tr>\n<tr>\n<td>Observed Parameters<\/td>\n<td>87<\/td>\n<td>4.3<\/td>\n<\/tr>\n<tr>\n<td>Percentage Change<\/td>\n<td>3.3<\/td>\n<td>14<\/td>\n<\/tr>\n<tr>\n<td>Allowed Tolerance<\/td>\n<td>20%<\/td>\n<td>20%<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">*Number of Vehicles: 70, *Number of Pedestrians: 20<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<table>\n<thead>\n<tr>\n<th style=\"text-align: center\" colspan=\"3\">Moderate Town*<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>&nbsp;<\/td>\n<td>Traffic Light Violation(TLV) (%)<\/td>\n<td>Min. Lead Vehicle Distance(LVD) (m)<\/td>\n<\/tr>\n<tr>\n<td>Chosen Parameters in range<\/td>\n<td>60<\/td>\n<td>5<\/td>\n<\/tr>\n<tr>\n<td>Observed Parameters<\/td>\n<td>48.42<\/td>\n<td>6.5<\/td>\n<\/tr>\n<tr>\n<td>Percentage Change<\/td>\n<td>19.3<\/td>\n<td>0**<\/td>\n<\/tr>\n<tr>\n<td>Allowed Tolerance<\/td>\n<td>20%<\/td>\n<td>20%<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">*Number of Vehicles: 70, *Number of Pedestrians: 20<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>A visualization tool was created to verify the observed parameters in real-time, it showcases the frames per second, number of vehicles, and the values of the observed parameters. The vehicles jumping traffic lights are highlighted with a red box and whenever a new leader-follower pair with minimum distance is observed it is marked with a blue arrow as shown below.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-668 aligncenter\" src=\"http:\/\/mrsdprojects.ri.cmu.edu\/2020teamh\/wp-content\/uploads\/sites\/47\/2020\/12\/rule_based_modelling_vis-1-300x186.png\" alt=\"\" width=\"510\" height=\"316\" srcset=\"https:\/\/mrsdprojects.ri.cmu.edu\/2020teamh\/wp-content\/uploads\/sites\/47\/2020\/12\/rule_based_modelling_vis-1-300x186.png 300w, https:\/\/mrsdprojects.ri.cmu.edu\/2020teamh\/wp-content\/uploads\/sites\/47\/2020\/12\/rule_based_modelling_vis-1-1024x636.png 1024w, https:\/\/mrsdprojects.ri.cmu.edu\/2020teamh\/wp-content\/uploads\/sites\/47\/2020\/12\/rule_based_modelling_vis-1-768x477.png 768w, https:\/\/mrsdprojects.ri.cmu.edu\/2020teamh\/wp-content\/uploads\/sites\/47\/2020\/12\/rule_based_modelling_vis-1.png 1085w\" sizes=\"auto, (max-width: 510px) 100vw, 510px\" \/><\/p>\n<h3>Learning-based Modelling<\/h3>\n<p>For evaluating the improvements to the model&#8217;s efficiency, we benchmarked its size and inference speed against the previous version.<br>We moved from a DeepLabV3 with Resnet model to a DeepLabV3+ with Mobilenet model. This reduced the model size from ~470MB to ~60MB. This allows us to essentially spawn around <strong>130<\/strong> agents on an 8GB GPU. Also the inference speed on our hardware went from around 500ms to around 20ms.<br>We also tested the maximum concurrency in our simulation environment and the compared it with the previous version. You can find more details on this in the next section.<\/p>\n<h1>Traffic Simulation<\/h1>\n<p><!--td {border: 1px solid #ccc;}br {mso-data-placement:same-cell;}--><\/p>\n<h3><strong>Rule-Based Modelling<\/strong><\/h3>\n<p>For the rule-based modeling, we evaluated our performance using the traffic manager module of CARLA. We were able to achieve around 20 FPS with 100 simultaneous agents.<\/p>\n<h3>Learning-Based Modelling<\/h3>\n<p>We have evaluated the performance of the Traffic Simulationsub-system with learning-based models by running multiple agents concurrently. We can see the table below which shows the number of customs agents vs the FPS performance of the system. As we can see that we are satisfying the mandatory performance requirement: M.P.6 (Have a simulation speed of minimum 10 FPS supporting at least 3 simultaneous agents).<\/p>\n<table>\n<thead>\n<tr>\n<th>Number Of Vehicles<\/th>\n<th>Server FPS<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>1<\/td>\n<td>40.0<\/td>\n<\/tr>\n<tr>\n<td>2<\/td>\n<td>18.61<\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-size: 18px\"><strong>3<\/strong><\/span><\/td>\n<td><span style=\"font-size: 18px\"><strong>13.97<\/strong><\/span><\/td>\n<\/tr>\n<tr>\n<td>4<\/td>\n<td>12.14<\/td>\n<\/tr>\n<tr>\n<td>5<\/td>\n<td>9.93<\/td>\n<\/tr>\n<tr>\n<td>6<\/td>\n<td>8.21<\/td>\n<\/tr>\n<tr>\n<td>7<\/td>\n<td>5.68<\/td>\n<\/tr>\n<tr>\n<td>8<\/td>\n<td>5.5<\/td>\n<\/tr>\n<tr>\n<td>9<\/td>\n<td>5.21<\/td>\n<\/tr>\n<tr>\n<td>10<\/td>\n<td>5.04<\/td>\n<\/tr>\n<tr>\n<td>15<\/td>\n<td>3.6<\/td>\n<\/tr>\n<tr>\n<td>20<\/td>\n<td>2.73<\/td>\n<\/tr>\n<tr>\n<td>30<\/td>\n<td>1.82<\/td>\n<\/tr>\n<tr>\n<td>50<\/td>\n<td>1.14<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-682 aligncenter\" src=\"http:\/\/mrsdprojects.ri.cmu.edu\/2020teamh\/wp-content\/uploads\/sites\/47\/2020\/12\/fpsvagents.png\" alt=\"\" width=\"687\" height=\"425\" srcset=\"https:\/\/mrsdprojects.ri.cmu.edu\/2020teamh\/wp-content\/uploads\/sites\/47\/2020\/12\/fpsvagents.png 871w, https:\/\/mrsdprojects.ri.cmu.edu\/2020teamh\/wp-content\/uploads\/sites\/47\/2020\/12\/fpsvagents-300x186.png 300w, https:\/\/mrsdprojects.ri.cmu.edu\/2020teamh\/wp-content\/uploads\/sites\/47\/2020\/12\/fpsvagents-768x475.png 768w\" sizes=\"auto, (max-width: 687px) 100vw, 687px\" \/><\/p>\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The performance of each subsystem as a combination of the Spring and Fall Validation demonstration is discussed as follows: Data Capture We captured videos with varied traffic densities, duration, traffic behaviors and at different intersections within CARLA. Our pipeline allows us to have explicit control over all of these parameters. We simultaneously recorded the ground<br \/><a class=\"moretag\" href=\"https:\/\/mrsdprojects.ri.cmu.edu\/2020teamh\/system-performance\/\">+ Read More<\/a><\/p>\n","protected":false},"author":215,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-52","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/mrsdprojects.ri.cmu.edu\/2020teamh\/wp-json\/wp\/v2\/pages\/52","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mrsdprojects.ri.cmu.edu\/2020teamh\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/mrsdprojects.ri.cmu.edu\/2020teamh\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/mrsdprojects.ri.cmu.edu\/2020teamh\/wp-json\/wp\/v2\/users\/215"}],"replies":[{"embeddable":true,"href":"https:\/\/mrsdprojects.ri.cmu.edu\/2020teamh\/wp-json\/wp\/v2\/comments?post=52"}],"version-history":[{"count":34,"href":"https:\/\/mrsdprojects.ri.cmu.edu\/2020teamh\/wp-json\/wp\/v2\/pages\/52\/revisions"}],"predecessor-version":[{"id":758,"href":"https:\/\/mrsdprojects.ri.cmu.edu\/2020teamh\/wp-json\/wp\/v2\/pages\/52\/revisions\/758"}],"wp:attachment":[{"href":"https:\/\/mrsdprojects.ri.cmu.edu\/2020teamh\/wp-json\/wp\/v2\/media?parent=52"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}