IAES Inter nat iona Journ al  of A r tifici al I nt el li gence  (I J - AI )   Vo l.   8 , No .   2 J un e   201 9 , pp.  107 ~ 119   IS S N: 22 52 - 8938 ,   DOI: 10 .11 591/ijai. v 8 .i 2 .pp 107 - 119          107       Journ al h om e page http: // ia es core .c om/o nline/i nd ex .ph p/I J AI   Adapti ve re al tim e traffi c predict ion  usin g deep n eural  network s       Parinith   R  I ye r 1 Shru th ee sh   R aman I yer 2 ,  Ragha vendra n Rames h 3 , A na la  MR 4 ,  K.N. Subr am anya 5   1,2,3,4 Depa rtment   of  Com pute Sci enc e   and   Engi n e eri ng,   R. V.   Col l ege   of   Eng ine e ri ng,   Indi a   5 Princi pal,  R . V.   Coll ege of   Enginee ring ,   Ind ia       Art ic le  In f o     ABSTR A CT   Art ic le  history:   Re cei ved   Ja n   5 , 201 9   Re vised  Ma r   6 ,  201 9   Accepte Ma 9 , 2 01 9       The   eve r - inc r eas ing  sale   of  vehi cles  and  the   stea d y   inc r ea se  in   popula ti o n   density   in  m et r opoli ta ci t ie have   ra ised  m an y   growing  con ce rns,  m ost   important l y   com m ute   ti m e,   a ir  a nd  noise  poll ut i on  le vel s .   Tra ff i conge st ion  ca be  al l eviated  b y   opt ing  adapt ive   tr aff i li gh s y stems ,   instea of  fixe d - ti m tra ffi signal s.  In  thi paper,  s y stem  is  proposed  which  ca detec t ,   cl assif y   and  cou nt  vehi cles pa ss ing  through  an y   t raf fic   jun ct ion  u sing a   single   ca m era   ( as  opposed  to  m ult i - sensor  appr oa che s).  The   de t e ction  and   cl assifi ca t ion  a re   done  using  SSD  Neura Network  obje ct   det e ction  al gorit hm .   The   count   of  e ac c l ass  (2 - whee le rs,   ca rs,  tru cks,   bu ses  et c. is  used  to  pre dic the   signal   gre en - ti m for  the   ne xt  c y cle.   Th m odel   self - adj usts  eve r y   c y c le   b y   ut il i zi n weight ed  m oving  ave r age s.  Thi s y stem   works   well   bec ause   the   cha nge  i the   density   of  tra ffi on  an y   gi ven  roa is  gra dual,   spann in m ult iple  tr aff i c   stops throu ghou th d a y .   Ke yw or d s :   In te ll igent t ransportat ion  syst e m s   Neural  netw ork   Object  detect io n/cla ssific at ion  and co unt   Traffic  sig nal t i m e   Weig hted  m oving  a ve rag e     Copyright   ©   201 9   Instit ut o f Ad vanc ed   Engi n ee r ing  and  S cienc e   Al l   rights re serv ed .   Corres pond in Aut h or :   Sh r ut heesh Ra m an  Iyer,   Dep a rtm ent o f C om pu te Scie nce a nd  E ng i ne erin g,   R.V.  C ollege  of E ng i neer i ng ,   Be ng al uru,   Ka rn at a ka 560 059,   I nd ia .   Em a il sh ru the esh. ir @ gm ail.co m       1.   INTROD U CTION   The  tra ff ic   c on gestio pr ob le m especial ly   i urban  areas has  been  w orse ning  ov e the   la st  20  ye ars.  Ba sed  on  the  s urvey  by  Eco nom ic  Ti m es  [1 ] ,   it   has  been   obser ve that  as  of   20 16,  the  num ber   of   veh ic le in  Be ng al uru,  In di a (6 6.6 la khs has  rise to 6.7  tim es o what  it  was  in 1 99 (9.93 lak hs),  and   2.4 ti m es t hat o 2006  (28.0 la kh s ).  Sim i la s ta ti sti cs  are  found  i m ulti pl othe surveys   on  India  as   w el [2 - 3].  The   r esult  of   this  ra pid   gro w th  has   m any  adv erse   ef fects,  i nclu ding  deteri or at in healt conditi ons,  a ve rag c omm ute  tim e   of   ov e th ree  hours  day  a nd  poor   ai qual it y.  This  sh a rp   gro wth  a nd   i nadequ at m eans  to  ha nd le   it   have  le ft  m any  ro a ds  in   sta te   of   dis rep ai r T hese   issues   ide ntify  the  s hortcom ing of  tra ff ic   si gn al s   us e on  m os t   ro a ds   t od ay ,   in  handlin tra ff ic M os ci ti es  ha ve  fixe traff ic   li ght  c ontr ol  syst em in  place  w hich  don’ t   accom m od at e the  dynam ic  n at ur e  of tra ff ic   fl ow.   The  fi xed - ti m e   traff ic   sig nals   are  inef fici en t,  as  the  durat ion   of   ti m e   for  w hich  sig nal   is  op en  is   us ua ll insu f fi ci ent  f or   busy  ro a ds,  an e xcessive   f or  le ss  busy  on es   (w it fe wer  veh ic le s) T he   curre nt   syst e m   has  le ft   m uch   to  be  d esi red .   A   va ria nt  of  t he  fixe syst e m   is  us e s om et i m es.  It  involves   assi gn i ng   diff e re nt  green - tim es  through ou the  day  to   accom m od at ru s hours,  but  they   we re  s ti ll   “fixed ”.  viable   so luti on wo uld be to  check  th e change in  tra ff ic  d e ns it y fr e qu e ntly  ( sa y, ever y fe m inu te s),  d et e rm ine  wh ic ro a is  cl ogge a nd  deci de,   i re al - tim e,  the   tim req uire to  cl ear  t he  tra f fic  on  e ver r oa d.   The   pro ble m   this   pap e ai m to  so lve  is  the  e xten ded   wait in tim at   traffi intersect ions,  it   do es  s by   pr op os in a   nov el   al gorithm   to  m ake  t he  al lott e gr ee tim es  adap ti ve   with  t he  tra ff ic   volu m at   that  poin in  ti m e.  The  go al   is  to cr eat e a  syst e m  that i m plem ents the idea s put fo rth  a bo ve.   Evaluation Warning : The document was created with Spire.PDF for Python.
                          IS S N :   2252 - 8938   IJ - AI  V ol.  8 ,  No.  2, June   201 9 :   107     119   108   The  ai m   of   t his  pa per  is  to   present  a   no vel  appr oach  to  t he   dynam ic   traf fic  sig n al   syst em   based   on   intuit ive  ob j ec detect ion   te chn i qu e usi ng  Co nvol utional   Neural  Net works  co uple wit Sin gle   Shot  Detect or a nd  pr ovide  pr edict ive  m od e to  decide  up on  the  green - tim of   the  t raffic   si gn al for  the   resp ect ive  la ne s.   It  can  al so   r ect if it sel qu ic kly  with  the  ongoin tre nd   of  traff ic as  fas as  on cy cl of   the   sign al   ( one  cy cl inv ol ves  al fo ur  r oa ds   ge tt ing   green  ti m on ce ).   T he  de ns it of   tra ff i in  each  la ne  is  us ed   to  con t ro traf f ic   sign al by  predict in the  am ou nt  of   tim e   the  sign al   nee ds   to  ope n.   T hus,  the  durati on  of   "gr ee si gn al "   (signal   is  op e n)   is  dicta te by  the  c ontrib ution  of  the   sa id   la ne  t the  traff ic   bu il up.  T he   m od el  p r opos e d here  can  pote ntial ly  b e d e pl oyed o sm all, por ta ble sys tem  li ke  the  Nvidia  Jetso n Kit .     2.   RELATE D   W ORK   Pr e vious  w ork   in  In te ll igent  Transp or ta ti on   Syst e m (I TS)  hav been   ve ry  prom isi ng   with  few  caveat w hich  can  pote ntial ly   cause  pr ob le m in  the  im ple m entat ion   phas in  certai loc at ion s.  Our  pr e viou s   work  [ 4]  pr e se nts  ve hicle   det ect ion   a n c ou nting   us i ng   im age  pr ocessin te chn iq ues T his  pa per   e xpl or es   the  dee le a rn i ng  te ch niques  to  achie ve  the   sam ta sk Ma j ori ty   of  the  w ork  ta c kling  th is  pro blem   has  bee sens or   ori ente [5 ] T her ha ve  bee pro po sit ion involvi ng   placi ng   se nsors  on   ei th e side   of   the  ro a d,   or  in   oth e places  al m os a the  gr ound  le vel  to  de te rm ine  the  num ber   of   ve hicle m ov in or  to  ge ner al ly   est i m at the  de ns it y   of   veh ic le a nd   he nce  deci de  ho m uch   green - tim to  al locat e.  The  m os prom inent  of   the se  are   the  loop  detect or wh ic are   excell ent  in  cal culat ing   tra ff ic   volum e.  Yet,  they   do  no perform   well   in  est i m ating   the  traff ic   de ns it y.   In   [ 6],  the  use   of   RF ID   se nsors  has  been   pro po se to  de te ct   veh ic le m ov ing   thr ough  so m portio of  the  ro a d.   A ny  ap proac in volvin de p l oying   se ns ors  a ppr ox i m at ely  at   the  gro un le vel  will   be  i nf easi ble  as  not  al places  en able  su c de plo ym ent  of   se nsors T he  de ve lop in c ount ries  ha ve   ro a ds   w hich so m et i m es are indist inguisha ble  f r om  the foo t pa th as sh own  i Fi gure  1.           Figure  1 .  A Fr equ e ntly  co m m uted  ro a in   Be ng al uru       In   [ 7],  the  pro po s ed  syst em   m akes  us of   Ultraso nic  sen so a nd   cl ai m s   to  place  it  "on   top   of  the   ro a d"  but  the  m axi m u m   ran ge   of  the   se ns or   is  just  m et ers,   wh ic is  not  feasible I [ 8] the  syst em   us es  I R   sens or s   an A rduin a nd  pla ns   to   m ou nt  t he  se nsors  on   ei ther  si de  of  the  r oa on  the  po le s.   De pl oying  sens or in  s uc an  en vir on m ent  is  no po ss ible  and   su c appr oach es  ar e   no best  su it ed  to  so lve  the  issue.  Re centl y,  appr oach e ha ve  s hifted  t cam e ra - base so l ution s T hese  m e thods  at te m pt  to  fin the  ve hicle   densi ty   on   eac la ne  a nd  c onseq uen tl deter m ine  the  traf fic  sign al   ti m e.  The  ea rly   ap proach e dealt   w it bl ob   extracti on  m eth ods  su c a in   [ 9].  Alth ough  they   we re  m or ve rsati le   than   the  se nsor   m eth ods,   their   acc ur ac y   le ft  lot  to  be   desire d.   I re cent  tim es,  research   base on   detect ion tra c king  an cl assi ficat ion   of   vehi cl es   from   vid eo  im ages  has  be com feasible.  Thanks  to  br eakth rou gh i n   com pu te vi sion   te ch nolo gy   and   incr em ental   a dv a ncem ents  i com pu te   powe r.   T he  re su lt are  f oun to  be  ver y   prom is ing   as   well Conv olu ti onal   Neural  Netw orks  (CN N pro vid nea hum an  le vel  accur acy   in   the  field   of  obj ect   det ect io n.   In   [ 10] su cc essfu cam era  base co un ti ng   m et ho was  im ple m ented  by  the  m eans  of   m ulti - ob j ect   tr ackin g.   Each  ve hicle   on  the   r oa is  t r acked  un ti it   goes  out  of  fr a m e.  This  he nc give a acc ur at c ount.   H ow e ve r,  this  process  i extrem el c om pu ta ti on al ly   exp e ns ive  si nce  ob j ect   trackin in vo l ve redu nd a ncy.   This  be com es a problem  in  syst e m s that  hav e  con strai ned h a r dware r e source s.   In   [ 11] deep  neural  netw ork  was  us ed  on  vid e os   with  r egr es sio n   ap proach   t colle ct ively   coun t   the  num ber   of  veh ic le t be  counted t hu s   no al lo wi ng  r oo m   for  cl assi ficat ion .   I m ajo rity   of  the   ca m era - base ap proac hes  s uch   a th on e disc us s ed  ab ove,  at te m pts  are  m ade  to  cal culat th red   ti m in  giv e traff ic   ju nctio fo la ne T his  syst e m   is  no feasible  f or   f ew  reas ons.  F r om   the  view  of  the  sign al vehi cl es  Evaluation Warning : The document was created with Spire.PDF for Python.
IJ - AI     IS S N:  22 52 - 8938       Ad ap ti ve re al t ime  traff ic  p r e dicti on   us i ng dee p neural  net works   ( P ar init R  I yer )   109   far   off  i the  r o ad wait in in   the  sign al wil no be  ide ntif ie accuratel y.   As  the  distanc increases,  th siz e   of   th ob j ect captu red   by  th ca m era  is  bo th  sm al and   no e ntirel visi ble  (as  pa rts   m ay   be  cut  off  by   cars  in  fro nt),  this,  the refo re,  exposes   the  c onstrai nts  of  s uc m od el s.  T hus,  this  pap e presents  a in novativ e   appr oach   t hat  has  borro wed   so m el e m ents  from   the  afo r e m entione re search  t cre a te   pr e dicti ve   and  adap ti ve  tra ff i con tr ol  sig nal.  I this  appr oach,  base on  the  nu m ber   of   ve hicle passing  thr o ugh    the  jun ct io n,   t he  gree tim for  the  par ti cu la la ne  is  est im at ed  fo t he  nex cy cl e.  I this  way,  it   is  bo t   sel f - c orrecti ng  and  reali sti c   im ple m entat ion .   The  basic  pri nc iple  in  any  so luti on  for  thi sp eci fic  pro blem   is  c le ar,  the  nu m ber   of  veh ic l es  is   the  m os i m po rtant  pa ram et e one  s hould   obta in  to  proce ed  f ur t her   i any  way   an to   ultim at ely  al l ocate  appr opriat gr een - ti m e.  It  is  cl ear  th at   us i ng  se ns ors  is   no feasi ble,  s m or strai ght - for ward,  hu m an - li ke   countin a ppr oa ches  cam ab ou t.   I [1 2],  de te rm ining   t he   de ns it of  ob je ct in  c row ded  sce ne  us in the  Hydra - CN a nd   t he  Co unti ng - CN is  pr opos e w hic is  revoluti on ary  in  te rm of   m ass  public  place  su r veill ance  sy stem and   j am - pac ke r oa ds .   This  sti ll   fall short  of  gro und  trut nu m ber wh e t he  s cene  i t   evaluates  is   cr owde beyo nd  an  uppe r - t hr e sh ol or  w he the  sce ne  is   ver li ghtl pa cked  bel ow  lowe r   thres ho l d A ddin to  this,  the  m od el   do e no pro vid real - ti m e   cl ass ific at ion   an countin of   diff e ren t   cl asses  of   obj e ct in  the  crow ded   sce ne.   T hi will   be  i m po rtant  w hen   pro cessi ng   li ve  f eed  f ro m   m o un te ca m era  m eant  for  s urveil la nc pur poses  c om es  into  pictu re .   T his  pa per  discusse fe a dd it io nal  f eat ur es   adopted  which   m igh t help  the   ITS  s ect or in  s om e w ay s:   1.   Veh ic le   detect ion an cl assi ficat ion   from  a ca m era' s v ideo f eed.   2.   pro bab il ist ic   syst e m   of   pre dicti ng  the  gre en - ti m based   on  the   obta ine c ount  of  different  cl asse of  veh ic le s.   3.   Con sta ntly   ada pting  the g ree n - li gh ti m based  o t he  c hangin nu m ber s o ve hicle res ulti ng   i opt im al   tim e eff ic ie ncy f or  a  cyc le .       3.   RESEA R CH MET HO   The  entire  pro cedure  is  div i ded   i nto   ste ps T he  pri m a ry  ste is  the  veh ic le   detect i on,  in  w hic cl asses  of   ve hicle are  detect ed  in  vid e f eed.  T his  is  th en  fe to  t he  s econd  ste w hi ch  in vo l ves  c ountin the  veh ic le in   fr am e   and   su bse que ntly   cou ntin the  tota nu m ber   of   ve hicle in  the  vid eo  f eed The  final   ste c om pr ise of   pr e dicti ng the  ‘green  ti m e’  of the  n e xt cy cl e. In short , t he  steps a re list e as:   a.   Veh ic le   detect ion   b.   Counti ng  of   ve hicle s in  a  fra m e and   he nce  f ro m  the v i deo f eed.   c.   Pr e dicti ng  t he “ gr ee n - ti m e” of  the  n e xt cycl e.     3 . 1.    V e hicl e d etectio n   Veh ic le   de te ct ion   is  a insta nc of   obj ect   de te ct ion   in  im ages  an vi deo s Object  detect io ha m ade   gr eat   stri des  in   the  la st  ye ar since  the  a dvent  of  Ale xN et   [13]  for  im age  cl assifi cat ion Im age  cl assifi cat ion   is  the  ta sk   of   assigni ng   or  identify in t he  cl ass  of  a ob j ect   in  a im age.  Deep   le ar ning  ap proac hes ,   par ti cula rly   C onvoluti onal   Neural  Netw orks  ha ve  pro duced  near   hu m an - le vel  accura cy   in  this  fiel d Every   CNN  arc hitec ture  has  f our  par ts    c onvo luti on non - li ne arit y,  su bs am pling   fo ll owe by  cl ass ific at ion .   Object  detect io is  the  pr oce dure  of  cl assify ing   obj ect in  an  i m age  and   lo cal iz ing   the  ex te nt  of   the  obje ct   in  the  im age  by  dr a wing  boun ding  boxes  a r ound  it T he  f irst  m od el Re gion  Ba se d   C onvoluti onal   Neural  Netw orks  (R - CNNs [14]  in tuit ively   beg i with  t he  reg i on  sea rch  an t hen  pe rfo rm   the  cl assifi cat ion.  Since   then  s eve ral  m od el ha ve  bee dev el op e t ha hav e   great ly   i m pr ove perf or m ance  su c as  Fast  R - C N [ 15] Faste R - C NN  [16],  Re gion   Ba sed   F ully   Conv olu ti onal   Neural  Netw orks  (R - FC N)  [17] T hese  m et ho ds   m od el   ob j ect   detect ion   as  a   cl assifi cat ion   prob le m The se  m et ho ds   a r ver acc ur at bu c om at  big   com pu ta ti on al   cost ( l ow fram e - rate) , in ot he w ords ,   th ey  a re  no fit t o be  us e d on em bed ded d e vices.   Re cent  ap proa ches  com bin these  tw ta sk s   into  one  net w ork.   In ste a of   hav i ng   netw ork  pr oduce   reg i on   proposa l,  set   of   pr e - de fine boxes  a r init ia li zed  to  look  f or   ob j ect s.  This  cl ass  of  detect or is   kn own   as  Sin gle  S hot  Detect or s T he  al go rithm   t his  pa pe us es   is  the  Si ng le   Shot  Mult iB o Detect or  ( SSD) ,   by  G oogle  [ 18] SSD   perfor m s   con side rabl bette than  it co m petit or s both  in  te rm of   s pe e as  well   as   accuracy.   The   perf or m ance  in  te rm of   s pe ed  is  m easure on   t he  F ra m es   Per  Sec ond  (FPS)   it   processes .   Fo 300  ×  300  inp ut,  SS ac hieve 74. 3%  m AP   on   the  VO C2 007  datas et   at   59   FPS  on  an  N Vidia   T it an  X.   This  is  in  co m par ison   to  Faste R - CN at   FP with  m A 73.2 a nd   Y O LO  at   45  FP wit h   m AP  6 3.4%  [1 6].   The SSD  Mult iB ox m et ho d ha s 3   aspects:     Sing le   S hot:   The  ta sk of   obje ct   local iz at ion   and   cl assifi cat ion   ar done  i sing le   f orwa rd   pass  of   th e   netw ork     Mult iB ox : T he  techn i qu e  for  boundi ng bo x r egr es sio   Evaluation Warning : The document was created with Spire.PDF for Python.
                          IS S N :   2252 - 8938   IJ - AI  V ol.  8 ,  No.  2, June   201 9 :   107     119   110     Detect or The   netw ork  is a n o bj ect   detect or t hat cla ssifie s t ho s detect ed object s   The  SS arc hi te ct ur this  pa per   em plo ys,  as  sh ow in   Fi gure  2,  is  the  sam e   as  the  on presente by   [1 8],   wh ic ba ses  it sel on  VGG  a rch it ect ure.  T hi pap e us es  a al rea dy  exist ing   m od el   that   su it ed  the   nee ds   a nd  hav util iz ed  the  Ke ras  port  of   Sin gle  Shot   Mult iB ox   Detect or by  Pierl uig Fe rr a ri  [ 19] This  is  buil on    the K e ras fram ewor that  run s Tenso rf l ow in th e  b ac k - en d.           Figure  2 .  Th e   SSD  net work a rch it ect ure  [18]       The  SS ap proach   is  base on   fee d - f orward  co nvol ution al   netw ork  that  produces  fixed - siz e   colle ct ion  of boun ding box e s an sc or e s f or  the p rese nce  of o bject  class i ns ta nces in  th ose  b oxes, foll owed by   non - m axim u m   su ppressi on  ste to  pro du ce  the  final  de te ct ion s.  Eac add e la ye c an  pro duce  set   of  pr e dicti on s Mult iB ox   is  reg res sio te ch nique  that  sta r ts  with  the  pr i or as  pre dicti on a nd  at tempts   to  regress  cl os e to  the  groun truth   bo unding   boxes,   base on   tw loss  f unct ions,  the  co nf i den ce  loss an d   locat ion   lo ss.  Confide nce  lo ss  m easur es  how  c onfide nt  it   is  of   fin ding  an  obj ect   wh il locat io n   loss  determ ines  how  fa a way  it   is  from   the  act ual  box.  Ba se on  this,  non - m axi m u m   su ppressi on   is   use d,   i wh ic th res ho l ding  of co nf i de nce loss i done  a nd  boxes  ar e d isc ar de d.   Fo r   cl assifi cat ion   of  ve hicle on   t he  r oa d,   th arch it ect ure  is  al te red   by  subsam pling   the  neur on i the  netw ork  s uch   that  the  num ber   of   cl as ses  include a nd   trai ned   is   f or   car s,  m oto rcycl es,  truck s ,   bu ses per s on  a nd   bac kgr ound.  E ve r obj ect   detect ed  in   the  fr am belo ngs  to   one  of   t he  cl a sses.  B oundin boxes   are  dr a wn  ar ound  t hem   to  ind ic at t heir  posit ion  as  well T his  ob j ect   detect ion  is  ap plied  to   the   vi deo  of   veh ic le passi ng  thr ough  t he   jun ct io durin the  green - ti m e.  As  lo n a the  sig nal  is   gr ee f or   la ne,   t he   m ov ing   ve hicle are  detect ed   by  the  m od el This  pro vid es  var i ou a dv a nt ages  com par ed   to  detect ing   ve hicle durin red   li gh t,  as  it   no only   i m pr ov e the   accuracy  of  de te ct ion   due  t cl ear  visibil it of   eac veh i cl in    the  fr am e,   bu al so   re du ce c om pu ta ti on   ne eded   since  on l on la ne  nee ds   to  be  obse rved  du rin sin gle  gr ee tim instea of  obser ving  the  la nes  wait in in  t he  re d - sign al .   Sho in  Figure  O utput  of  the  SS Objec t   Detect ion   Al gorithm .           Figure  3 O utput   of t he  S SD  obj ect   detect io al go rithm   [20]       3 . 2.    Cou nt in g v ehic le   I w ou l be  ve ry  be nef ic ia to  co unt  the   nu m ber   of  ve hicle w hile  they   are  passi ng   t hro ug   the  jun ct i on   duri ng   gr ee n - li ght  instea of   c on si der i ng   sing le   im age  durin re d - li ght,  therefo re it   be com es   Evaluation Warning : The document was created with Spire.PDF for Python.
IJ - AI     IS S N:  22 52 - 8938       Ad ap ti ve re al t ime  traff ic  p r e dicti on   us i ng dee p neural  net works   ( P ar init R  I yer )   111   pivotal   to  c ome   up  with  a   w ay   to  co unt  th num ber   of  ve hicle of  eac cl ass  t hat  pa ssed  t hro ugh  a   scen e   wh il m ai ntain ing   real - tim s peeds  of   obj ec detect ion Co un ti ng  the  num ber   of   obj ect in  sti ll  i m a ge  i s   si m ple.  It  is  com m on place  no in  e ver ob je ct   detect ion   a lgorit hm   bu countin f ro m   vid e fee is  tric ky  because   eve ry  fr am is  treat e in dep e ndentl and   m igh cou nt  duplica te s.  In   the  w or st - ca se  scenari o,   it   m igh t   keep  co unti ng  duplica te un ti the  obj ect   is  ou of  the  fr am e.  The  fol lowing  m et ho is  a at te m pt  a t   al le viati ng  this  problem  an d o btainin a a ppr oxim a te  g r ound tr uth  c ount.   The fre quently  u se te rm s ar e :     OP T -   Op ti m al   Pr oc essin Ti m e.     F i     The  i th   f ra m e in the vide o feed .     T i     Tim ta ke n   to  pr ocess  t he  i th  fr am e.     W i     T he  c ontr ibu ti on  of the i th   fr am e.      Veh ic le sCo unte   St ru ct ur ho l ding the  nu m ber  o f ve hicle s of eac cl as s cou nted  i th e lat est  cyc le .     SideBy Side    Stru ct ur desc ribing  t he  num ber   of   ve hic le of  eac cl ass  capa ble  of   sim ultaneou sl cro ssi ng the  int ersecti on side   by side .     Ti m eTaken     Stru ct ur holdi ng the tim e taken for a  ve hicle  of eac cl ass  to cross  the i ntersecti on.     Ti m eGiven     S tructu re  ho l ding the  r at io  of  T i m eTaken   to  Si deBy Side.     Pr e vP re dict    The   green   ti m tha was  al locat ed  f or  t he  pr ese nt  gr e en  cy cl afte r   fee db ac fro m     the pre vious  green cycl e.      Pr ese ntAppr ox    The  ap pro xim a te   t i m e   t hat  had   to  be   giv en  to  the   pr ese nt  cy cle,   con si der i ng     the v e hicle s th at  p asse d.     Nex tP re dict    The pre dicti on  m ade for  t he n ex t g ree cy cl e.     a m in     The  m ini m u m  accel erat i on of a  v e hicle  whil e cr os sin g t he  inte rsecti on.     a m ax     The  m axi m i m   acce le rati on   of a  ve hicle  whil e cr os sin the  interse ct ion.   Con si der i ng  th at   an  obj ect   de te ct ion   al go rithm   isn’t  al wa ys  perfect   a nd   m igh detect   non - existe nt   obj ect i a   sc ene,  an   intuit iv ap proac is  t c onsider   that   an   ob j ect   is  ac tuall pr ese nt  i the   sce ne  only   if  it   per sist thr ough  so m nu m b er  of   f ram es.  Al so   ta king  in to  account  the   un sta ble  nat ure  of   ha r dw a r that  perform s o bj ec t detec ti on , e ve ry f ram e takes a d iffe re nt am o un of  ti m e to  process  depen di ng   on  c onditi ons at   that  instant,  t he   nu m ber   of   obj ect i the  s cene,  et c.  This   m igh le ad  to  cases  w her t he   obj ect   is  pr e sent  in     the  sce ne  for  the  require am ou nt  of   tim e   bu is  pr esent   on ly   in  few   fr am es  becau se  on ly   few   ha ve  be e captu red  an proces sed L ocki ng   t he  f ram rate  w on’t  help  ei the as  pro cessi ng  tim m igh en up  higher   than  th de fin ed  ti m e   interv al   betwee f r a m captur e.   To  s olv t his,   there  had   t be  s om kin of  “con t rib ution   par am et er  or  "weig ht"  to  e ve ry  fr am that  was  processe base on  w hi ch  decisi on  can  be   m ade  wh et he to  ta ke  the  vehi cl es  in  this  fr am seriou sly   or   no t.  Id eal ly fr am is  capt ur e at   interval suc that  no   veh ic le   is  pr esent  in  t wo   c onsecuti ve   fr am es  and   that  al veh ic le passing  thr ough  scene  e xist  in  exactl on fra m e.  This  interval  is  cal le “Op ti m al   Pr ocessing   Tim e”  (O PT,  t he  tim it   ta kes  to  process  a   fr am e and  t he fetch   the  ne xt  on e  fro m  the c a m era).   Ob ta ini ng   OPT   is  it sel matt er  of   co nce r as  it   is  no stric tl def ined  neither  ca it   be  m easur ed  accuratel y.  T hi has   m uch   to   do  with   la r ge - scal data  ac quisi ti on   a nd  da ta   analy sis  pro cedures  t fig ure  ou how  m uch   ve hi cl es  acce le rate  w hile  cr os si ng  ju nctio ns   a nd  if  it   is  relat ed  to   tra ff ic   de ns it it sel f,   how   this   tren cha ng es  acro s dif fer e nt   den sit ie of   traf fic.  The  siz of   the  ju nction  al s com es   into  play   as  t he  OPT   increases  as  th siz do es.  T he   siz of   the  jun ct io can  be   easi ly  cal culated   base on  how  m uc the  ca m era   can  see   in   t he   scene T he  ac cel erati on   of  ve hicle s   is  bo und  to  be  a   dat a - sci ence  pro bl e m   that  need s   huge   a m ou nts  of  obs erv at io ns .  S how  in  Fig ure  I ll us trat ing  t he defi niti on   of OP T.           Figure  4 .  I ll us t rati ng the  de fin it ion  of  OP T   Evaluation Warning : The document was created with Spire.PDF for Python.
                          IS S N :   2252 - 8938   IJ - AI  V ol.  8 ,  No.  2, June   201 9 :   107     119   112   Con si der i ng  duri ng  O PT n   nu m ber   of  fr a m es  wer e   capt ur e a nd  eac fram F i   took   tim T i   to  process .   Ther e f or e,      = = 1   ( 1 )     If   fr am Fi   ta kes  lo ng e t pr ocess,   t he   i m m ediat ne xt  fr am F i+1   mi gh be  m iss ing   ou on  ca pturin g   the  ve hicle   in  the  scene.  So,  to  com pen sat fo t his,  F i   shou l ha ve  hi gh e r   co ntri bu ti on   wh il co ns i der i ng   the  ve hicle in   it Si m il arly i F i   is  pr ocesse to qu i c kly,  there  m igh be   m or occ urre nc es  of  the  veh i cl in  the  scene.  T his   is  co m pen sat e by  giv i ng  lowe co ntribut ion   to  F i It  is  ob s er ved   that  t he  “weig ht”  W i   of   a   fr am F i   is dire ct ly  p rop or ti on al  to  the ti m e T i   ta ken to  proce ss it       (2)     The   i niti al   assum ption   is  t hat  the  ve hicle a pp ea i t he  sc ene  only   once  durin OP T t he n   t he  weig ht  W i   of  a   giv e n fr am is def i ned b y :     =      (3)     This  de rivati on  sh i fts  the  re qu i rem ent  fr om   “A  veh ic le   sh oul be  pr e s ent  in  s pecif ie num ber   of  f ram es  captu red   by  th ca m era”  to  “A  ve hicle   shoul be  pr ese nt  in  the  cam era' view  f or  sp e ci fic  interval  of  tim e”.   This  ti es  the  ca lc ulati on t a real - w orl value  f ree f r om   a m big uity instea of   ty in it   to  the  al ways - c hangi ng   value o f ram e - rate.  The  “ co nt ribu ti on”  of a  fr am e thr ou ghou OPT   ca n b e v is ualiz ed  as   sh ow in   Fi gur e 5 .           Figure  5 .  I ll us t rati ng the c ontr ibu ti on  of each  f ram e in a  s pa n of OP T       This  m eans,  t hat  if   the  ve hi cl did   a ppea in   the   cam e ra' view   f or  as  lo ng  as  O PT   a nd  wa even t ually   captur e in  al the   fr am es  that  wer ta ken   acr oss  the  tim sp an  of   OP T it   w il ult i m at e ly  e nd   up   bein c ounte as  one v e hicle ,   w hich   is  the   de sired   outc o m e.  N ow ,   to  deci d e   whet her  a de te ct ed  ve hicle   that  is   le gitim at on e,  the  veh ic le s   can  be  co unte d   by  c onside ring   t he  total   nu m ber   of   veh ic l es  of   e ach  cl as in  a   fr am and   m ult iply ing   them   by  W i i .e wei ght  of   t he  f ram e This  is  essent ia ll the  con tri bu t io of   al ve hicle in  fr am to  be  acce pted  as  a   le gitim a te   vehi cl as  tim go es  on.  Co ntinui ng   this  unti any  desire tim e,  it   is   po s sible  to   obt ai an   ap pro xi m at cou nt  of  t he  veh ic le s.   F or  ex am ple,  if  Ca rs t ’  is  t he   num ber   of   ca rs  pa ssing   thr ough   the  sce ne  in  ti m t , an d ‘ Ca rs i ’  is t he  num ber   of  ca rs  i fra m F i , and  n   f ram es are cap t ur e i ti m t,       =   (    ) = 1   ( 2 )     Si m il arly it  is  po s sible t o   get  the app roxim ate  co un ts  of e ve ry v e hicle  clas s in  ti m t.   Con si der i ng   t he   act ual  traf fic  jun ct io n,   t his  tim t ,   is  the  tim giv en  f or   t he  veh ic le to   pass  (gree n - tim e).  Applyi ng  the   ab ove  f or m ula  for  th e   tim per io of   t he  al locat e gr ee n - ti m e,  the  tot al   num ber   of  veh ic le of  eac cl ass   that  pa ss  th rou gh  the  j unct io is  obta ined.  A   po i nt  to  kee in  m ind   is  t hat  the   ca m era  m us hav the  j unct io a nd   nothin el se  in  i ts  view.   If   othe r oads,   or   th opposit la ne are  capt ur e by  the   ca m era,   this m i gh t l ea to   discrep a ncies in  ob ta ining  t he  e xa ct  co unt  of the  veh ic le s.     3 . 3.    Predic tin green  time   The dat ob ta i ned can  b e  v is ualiz ed  as  foll ows.   Veh ic le sCo unte {           Ca rs  =  12.78;           2 - w heeler = 19. 54 ;   Evaluation Warning : The document was created with Spire.PDF for Python.
IJ - AI     IS S N:  22 52 - 8938       Ad ap ti ve re al t ime  traff ic  p r e dicti on   us i ng dee p neural  net works   ( P ar init R  I yer )   113           Tr uc ks  =  3. 16 ;           Buses  =  1.6 2;           Bi cy cl e = 5 . 31 ;   }     This  sho ws  the   approxim at nu m ber   of   ve hicle of   eac cl as at   an  assum ed  tim e.  An   a rr a def ini ng  the am ou nt of ti m e that every v ehicl e cla ss  ne eds  to c ross the ju nctio wil l be m a intai ned . T his ag ai de pend s   on   t he  siz of  the  jun c ti on  unde co ns i der a ti on   an the  si ze  of   the  r oad   as  m ulti ple  veh ic le of   t he  s a m or  diff e re nt  cl ass  can  cross  the  jun ct io side  by   side  as  sh own  in  Figure   6 and   the  ave ra ge   acce le rati on   with   wh ic the  v e hi cl es start cr os si ng the  jun ct i on.           Figure  6 .  Top  View o f vehicl es cr os sin a i ntersecti on sim ultaneo us ly       Ob ta ini ng   the  aver a ge  acce le rati on   ca be  thou gh of  as  cl assic   data  s ci ence  pro blem   inv olv i ng   la rg e - scal e   dat a - acq uisit ion   a nd   a naly sis,  an the  rest  of  th par am et ers  will   be  sp eci fi to  ever ju nc ti on It  will   be  one - t i m entry  of  pa ram et ers  and   good  to   go  un l ess  the  ro a w idth  is  c hange or   t he  j unct ion  is   com plete ly   rec on st ru ct e d.   As su m ing   the  road  unde c on si der at io is  wi de  e nough  to  occupy  the   f ol lowi ng   nu m b er  of v e hi cl es o f  the  sam e   cl ass side  b side,     SideBy Side {           Ca rs  =  3;           2 - w heeler = 6 ;           Tr uc ks  =  2 ;           Buses  =  2;           Bi cy cl e = 7;   }     Ma intai nin a no t her   str uctu r (arbit rar val ues  f or   now de fining  ho m uch   ti m s ing le   ve hicle   of   cl ass  ta kes  to  cr os s a em pty juncti on ( i sec onds) ,     Ti m eTaken  {           Ca rs  =  4.67;           2 - w heeler = 3 . 5;           Tr uc ks  =  6. 83 ;           Buses  =  6.2 9;           Bi cy cl e = 5 . 16 ;   }     The  struct ur Ti m eTaken   is  al so   resu lt   of  la rg e - scal e   dat gather i ng   an data  analy s is  pr oce dures O nce  al the  above - m entioned   data  is  avail able,  the  tim e   to  be  give to  each  ve hicle   to  cl ear  the  j unct io n   c an  be   decide d upo n.   The  Tim eGive n   for  eac h veh i cl e cla ss w il l h ave to be:      [  ] =     [  ]    [  ]   (5)     This  is  to  accou nt  f or   reali s ti traff ic   flow  scenario.  In   ro a wide  e nough  to  hold  cars,  car s   can  cr os the  jun ct io in  t he  sam e   tim as  i ta kes  for  si ng le   ca to  cr oss  jun ct io if   they   are  al side  by  side.   S o,   m aki ng   this  twea is  i m po rtant  wh il predict ing   the  gr ee n - tim fo the  ne xt  cy cl e.   Consi der   a     real - li fe  scena r io  wh e re  so m value  of   gr ee n - tim fo the  present  cy cl ( Pr ev Pr e dict is  pr e viously   pr e dicte d .   Now,   duri ng   a   tim interval  of   le ng t Pr e vP r e dict ’,  the  nu m ber   of   ve hi cl es  that  did   c ro ss   the  j unct i on   a re   store in   Ve hi cl esCoun te d ’.   The   pre dicti on   a bout  Pr e vPredict   m igh ha ve  bee wrong,   or  the   traf fi flo w   Evaluation Warning : The document was created with Spire.PDF for Python.
                          IS S N :   2252 - 8938   IJ - AI  V ol.  8 ,  No.  2, June   201 9 :   107     119   114   m igh be  changin g,   ei ther  w ay it ’s  i m po rtant  to  know   how  m uch   tim e   sh o uld   act uall hav bee gi ven   to   the  nu m ber   of  veh ic le t hat  w ere  j ust   co unte in   the   prese nt   cy cl and  sto red  in  Ve hicle sCounted T his   data   will   serv as  the  "gro und - t r uth val ue,   li ke   in  al oth er  sel f - co rr ect in g   syst e m s.  This  can  end   up  bein g   the f ee dback  th at ’s  nee de d.   T he refor e P rese nt Appro is cal c ulate as:        = (       [    ]       [    ]   )      =    (6)     The  val ue  of   P resen t App rox   m igh be  gr eat er  or   le sser  tha Pr e vPredict nonetheless ,   it   is  us ed  as  fee db ac m echan ism   to   i m pr ove  our   pr e dicti on ' accuracy  f or  the  green - ti m to  be  giv e in  the  ne xt  cy cl ( Ne xtPr e dict ).  In t uiti vely Ne xtPr e dict   will   hav e  to  ta ke  t he  foll ow i ng tw o values  into  c on si der at io n:   1.   The pre dicti on  m ade prev i ou sl y for the  prese nt cycl e ( P revP red ic t )   2.   The  tim that  had   t be  giv e to  the  nu m ber   of   ve hicle that  act ually   cro ssed  the  j unct io in  the  pr ese nt   cy cl e ( Pr ese nt Appro x )     Using  Weig hte Mo vi ng Ave rag e Nex tP redi ct   can be cal c ulate as:       =   (    ) + ( ( 1 )   )   (7)     wh e re    is  the   trut value   gi ven  to   our   ob s erv at io ns  duri ng  the   prese nt  cy cl e.  T he  hig he t he  v al ue   of  ,   the  faste the   syst e m   recti fies  it sel but  increasin   al so   dism isses  the  c on t rib ution   of  P revPr edict ,   so   c onve ntio na ll y,  the  val ue  of    is  ta ken  t be  0.5.   A fter   the  value   of  Nex tP re dict   is  cal culat ed,   t he   green - tim e   giv en  in  the  nex cy cl wi ll   be  the  value  of   Ne xtP re dict   and   w he the  nex cy cl sta rts,  the  value  of   Pr e vP re dict   w il be  m ade  e qu al   to  Ne xtP red ic t he nce  m ai ntaining   th con tri bu ti on   of   our  pr e di ct ion thr oughout co nse cutive cy cl es. A s the assu m ption  is that t he  d ensity  o th e tra ff ic  ch a nges g ra du al ly  spann i ng  m ul ti ple  cy cl es   throu ghout  th day,  it   can  be   visu al iz ed  ho this  ap proac w ould  al way pro vid a ppr opriat gr ee n - ti m pr e dicti on s Let consi der  hypotheti cal   tim e - var yi ng   data  si m ula ti ng   the   ri se  in  t raffic   de ns it up un ti l a  r ush   hour a nd the n back  do wn ag a in.           Figure  7 .  V a riat ion   of Pr e vPre dict an P rese nt Appro il lustr at ing  acc ur acy   and self - co rr ec ti ng   natu re       ty pical   rise  and   fall   in  traf fic  den sit dur ing   r ush  hour  would  s pan   a r ound  50  cy cl es,  bu f or   the   sake  of   te sti ng,   hypoth et ic al   le ss  grad ual  c hange  has  bee co ns ide red.  T h e   gr a ph   in  Fig ur s how s   ho the   pr e dicti on   c orr ect it sel ever cy cl bit  by  bit  and   m an ages  to  kee up   with  the  in creasin num ber   of  veh ic le durin r ush  hour.  It  al so   e ven s   out   when  t he  tra ffi den sit sat urat es  an a gai re duces  as  t he   rush   hour  com es  to  an  en d.   H ence ,   this  appro ac of   lo okin at   traf fic  li gh aut om ation   w ould   resu lt   in  eff ic i ently   util iz ing   tim and   c ut  do wn   lot  of   wait in tim at   sign al s.  This  m od el   can  easi ly   be  scal ed  up  to  4 - roa intersect io n,   a nd  e ven  th ough  t his  m od el   tr eat eve ry  r oa at   a interse ct ion   i nd e pe ndently due  t it sel f - correct ing  nat ur e com poun ding  ef fects  of  s uch   syst e m us e at   c onsecuti ve  tra ff i sign al will   al so   be   Evaluation Warning : The document was created with Spire.PDF for Python.
IJ - AI     IS S N:  22 52 - 8938       Ad ap ti ve re al t ime  traff ic  p r e dicti on   us i ng dee p neural  net works   ( P ar init R  I yer )   115   accounte f or   wh il pr e dicti ng   t he  nex cy cl e’s  green - ti m e.  In   t his  wa y,  ch ok i ng   of  traff ic   ac ro s m ul ti ple  traff ic  li ghts ca al s o be all evi at ed.     3 . 4.     Decidi n g Hyper - P aram eter   Va lues   The  SSD  m od el   has  bee tra ined  on  the   M S - COC (Com m on   obj ect s   in  co ntext dataset   [21],  a nd   then  t he  weig ht of  the   ne ur a netw ork  ha ve   bee s ubsam pled  to   fit  the   obj ect   cl asses   (a nd  delet in oth e r   cl asses  in  the  l ast   la ye r)   that  we’re  interest e d   in    Ca r,   t ruck,  per s on,  bicy cl e,  m oto rcycl e,  bus.  T he  va lue  of   OP T ,   wh ic i de pe nd e nt  on  t he  veh ic le acce le rati on  and  velocit pro file at   tra ffi intersect io ns  wa s   decide d   base on  previ ous  re search   in  t his  area  [ 22 - 24] I [ 22] the  a cc el erati on   of  th 1 st   li ne  of  ca rs  was  ob s er ved  ove the  dista nce  of  zeb ra  c rossing,  sta rtin fro m   wh en  the   ve hicle we re  at   rest.  T he  value of   acce le rati on r ecorde acr os s   diff e re nt  m od el of   car al th ough  va ried f ollow e nor m al   distribu ti on  with  m ean  of   arou n 1.8 m s - 2 B ut  this  stud al so   sta te that  the  cars  in  the  3 rd   or   4 th   li ne  had   ne gligibl low  acce le rati on  v a lues in  the o r de of   0.5 m s - wh ic m akes s ense if  one i m a gin es  dr ivi ng  a  car  in su ch  a posit i on   at   traf fic  sig nal.  T he  veloc it of   ve hicle s h oweve r,   is n’t   eve inc reas ing   a nd  sat ura te an s om e wh at   reaches  m axim u m   wh il cr os sin the  i ntersecti on.  I [ 19] it   is  fo un that  the  ave rage  acce le rati on   of   a ny   veh ic le   ste adily   decr eases  wi th  the  increase  in  the  sp eed  of   the  veh ic le   and   assum ing   the  velocit of   ve hicle s   do e sn’t  excee 30   or  40  kph  wh il cr os si ng  an  inter sect io n,   it   can  be  in f err e f ro m   the  researc in  [ 22 - 23]   that t he  a ver a ge  accel erati on  change  w hile c ro ssi ng of  dif fe ren t cl asses  of  veh ic le s a re as   fo ll ows.     Ca 1.85    0. m s - 2     Tru c k, Bus  =  1.0    0.2 9m s - 2     Motorcycl e =  0.94    0.4 7m s - 2   This  acce le rati on   is  no stric t ly   fu nctio of  tim or   dista nce  at   traf fic  intersect ion.  I ns te ad it   dep e nd on   factors  su c a oth e ve hicle on   t he  r oa d,  possible  inte rf e ren ce  from   people  wal king,  bad   dr i vers,   eve anim a ls  on   the   ro a ds   at   tim es.  The  cl os est   one  can  get  to  de fine  the  acce l erati on   pro file   is  by  an  ass umpti on   that  it   is  stric tly  functi on  of  dista nce  or   ti m e.  Her e the  assum ption   is  that  it   is  fun ct ion   of   distan ce  is   const antly   decr easi ng  an ev entuall sat ur a te near   zer o.   This  kind  of  a   functi on   re se m bles  an  exp onentia decay f unct ion, so fit ti ng the   acce le rati on   pa ram et ers  that were  just  decid ed upo n,     ( ) =   max     (8)     Wh e re  (consi de rin X   is t he  leng t h of t he  i ntersecti on un der co ns ide rati on) ,     =  ( m a x m i n )   (9)     This  acce le rat ion   c urve  c orres pondin t this  e quat ion  an 25 - m et er  intersect ion   f or  car  is   sh ow in   Fi gur e   8.           Figure  8 .  A cce le rati on   pro file  of a ca acc ordin to   a( x)       This  m akes  sense  f or  sho rt  distances  s uc as  an  inte rse ct ion   w he re  the  vel ocity   functi on   is  re su lt   of   integrati ng t he a ccel erati on   f unct ion wit h dis ta nce ‘ x     1 2 ( ( ) ) 2 =   ( ) .      (10)   Evaluation Warning : The document was created with Spire.PDF for Python.
                          IS S N :   2252 - 8938   IJ - AI  V ol.  8 ,  No.  2, June   201 9 :   107     119   116     The vel ocity   f unct ion o btaine is:     ( ) = + 2 ma x ( 1  )   (11)     Plott ing   v(x a gainst  x,   Th e   gr a ph  s h own  i Fi gure  9   w ould  m ake  sense  if   one  relat es  sel f - dr i ving  th rou gh  an  inter sect ion  an check i ng   t he  ve locit of   the  c ar  as  one  cr os s es  and   at   th ve ry  en of  it A lt ho ug this graph  doesn’t  ho ld  tru e   for  lo ng  distan ces,  on ly   s hort   distance a re  r el evan to   this   pro blem Ti m e   t,   ca be  obta ined   as  a   f unct ion  of   distance  x   by i nteg rati ng as,     ( ) =   1 ( ) .      (12)     ( ) =    ( 1  + 1 )  ( | 1  1 | ) 2 ma x   +   (13)     as  t(x )   is  zer w he x   is  zero,  de finit equ at i on   for   t(x)   is  obta ined  a nd  by  pa ssing   t he  le ngth  of     the  intersect io X ’  i nto   t( x) the  ti m that  certai ve hic le   ty pe  ta kes  to  cr os t he  int ersecti on  is  ob ta ined  wh ic is  nothi ng   but  the  O P T   that  is  nee de d.   T his  val ue  c an  al so   be  inte rpreted  as  t he  Tim eTaken ’  f or   t hat  sp eci fic cl ass  of  veh ic le from  wh ic h ‘ Tim eGiven ’  ca al so  be deri ved.           Figure  9 .  V el oc it y pr ofi le  of  a car acc ordi ng to v( x)       4.   RESU LT   A N D ANALY SIS   To  a pply   the  find i ngs  f r om   ou r   stu dy  ou tl in ed  a bove t ra ff ic   footage   th at   is  acce ssible   to  t he  public   on  Y ouT ub e   was  us e [25].   The   s pecific  requirem ents  f or  the  c am era’s   posit io n,   a ng le et c.  a re  no t   m e t   perfect ly   in  a ny   publicl avai la ble  vi deo  f oota ge  so  the  vi deo  is  cr oppe an m od ifie to  sim ulate   near ly  feasible  in pu t the  al gorith m The  base  vid eo  [25]  c hose was  s uc tha it   of fer e fron t - to view  t ow a r ds  incom ing   veh i cl es  wh ic yi el ds   the  best  resu lt f or   an   obj ect   detect ion   al gorithm   with  le ast   ov erla ps.   The  f arthe st  po int  in  the  vid e is  too   far   a wa fo r   the  obj ec detect ion   syst e m   to  detect   anyt hin that  s m al as   sh ow in  Fig ure   10,  an the re  is  ano the la ne  of   tra ff ic   in  the  fr am o the  ca m era  wh ic will   produce   inaccu rate res ul ts, the  vid e o w as cr oppe to  a  sp eci fic  pa rt a s sho wn in  Fig ur e   11.       Evaluation Warning : The document was created with Spire.PDF for Python.