Int ern at i onal  Journ al of Ele ctrical  an d  Co mput er  En gin eeri ng   (IJ E C E)   Vo l.   9 , No .   5 Octo ber   201 9 , pp.  3495 ~3 503   IS S N: 20 88 - 8708 DOI: 10 .11 591/ ijece . v9 i 5 . pp3495 - 35 03          3495       Journ a l h om e page http: // ia es core .c om/ journa ls /i ndex. ph p/IJECE   Qualit y gradin g of soybe an seeds u sing image anal ysis       Sutasinee  Jit anan 1 P awat C himl ek 2   1 Depa rtment of  Com pute Scie n ce   and  Inform a tion T e chnol og y ,   Facul t y   of  Sci en ce ,   Nare suan   Un ive rsit y ,   Th ailan d   2 Depa rtment of  Com pute Scie n ce   and  Inform a tion T e chnol og y ,   Facul t y   of  Sci en ce   and Technolo g y   Pibulsongkram Raj abh at   Univ er sit y ,   Tha i la nd       Art ic le  In f o     ABSTR A CT    Art ic le  history:   Re cei ved   Sep   5 , 2 01 8   Re vised  A pr   7 ,  201 9   Accepte Apr   20 , 201 9       I m age   proc essing  and  m ac hine   le arn ing  te chn iq ue  are   m odifi ed   t use  the  qual ity   gr adi ng  of  so y be an  see d s .   Due  to  q ualit gra ding  is  v er y   importan t   proc ess  for  the   so y bea industr y   and  so y b ea f armers.   The r ar stil som e   cri tica proble m s   tha nee to  be  over come .   Th er efo re,   t h ke y   c ontri buti ons   of  thi pap er  ar e   first ,   m et ho to  e li m ina t shadow  noise  f or  segm ent  so y bea se eds  of  high  qual ity .   Second,   nove l   appr oac for  c olor  fea tur e   which  robust  for   il lumina ti on  changes t red u ce proble m   of  col o r   diffe r enc e .   Thi rd,   an  appr o a ch  to  discov er  a   set  of   fe at ure   a n to  form   cl assif ie m odel   to   strengt hen  the   d iscri m ina ti o n   po wer  for  so y b ea n   cl assifi ca t ion.   T his  stu d y   used  bac kgroun subtrac ti on   to   red uce   shadow   appe ari n in  t he  ca ptur ed  image   and  p ropo sed  m et hod  to  ext ra ct   col or  f eat ure   base on   rob ustness  f or   il lumination  changes  which  w as   components  i HS m odel .   We  pro posed   cl assifi er  m odel   using  combinat i on  of  the  col or   histogra m   of  components  in  HS m odel   and   GLCM  stat isti cs  to  rep rese nt  t he  col or  and  te xt ure   fea tur es  to  strengt hen  th e   discri m ina ti on  p owe of  soy b ea n   gra ding  and  to  solve  shap e   var ia n ce   in  eac so y bea se ed cl ass .   SV cl assifie rs  ar ge ner ated  to  ide nti f y   norm al   see ds,  purpl se eds,   gre en  see ds ,   wrinkl ed  see ds ,   and  o the r   see t y pes.   W e   conduc t ed   exp eri m ent on  dat ase compos ed  of  1, 320  s o y bea n   see ds   a nd  6, 600  se ed  i m age with  var i es  in  br ight ness   le v el s .   The  expe riment al   r e sults  ac hi eve d   a cc ura cies  of  99. 2%,   97. 9 % ,   10 0 %,   100 % ,   98. 1 %,   and  100 for  ov era l se eds,   norm al  see d s,  purple  see ds ,   gre en  se eds ,   wrinkle se eds,   and  oth er  se eds,   resp ec t ive l y .   Ke yw or d s :   Im age classi ficat ion     So ybea cl assi ficat ion     S oybea n see d   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 :   Su ta sinee  Jit an an,     Dep a rtm ent o f C om pu te Scie nce a nd Info rm a ti on  Tec hnol ogy,   Faculty  of S ci e nce,   Nar es ua n Un i ve rsity ,   Ph it san ulok  65 000 Thail an d .   Em a il : sutasi neec@nu.ac .th       1.   INTROD U CTION     So ybea ns   a re  an  im po rtant  agr ic ultur al   cr op  that  is  widel con s um ed  becau se  it   is  an  excep ti ona l   so urce  of  nutri ents,  with  h i gh   protei an ver high  oil  con te nt  [1 ] S oybean   qu al it aff ect the  pr ic in an qu al it of  gr ai for  c rop ping   an c onsu m ption .   S oybea diseases   grea tl red uce   the   eco nom ic   val ue  of   so ybea pro du ct and   res ult  i eco no m ic   los ses  for  the  so y bean   in dustry  and   fa rm ers.   Thu s the  de velo pm ent  of   ra pid   an reli able  m et h od   of   detect in the  ap pear a nc qu al it of   so ybea ns   is  of   gr eat   sig nifica nce  to  so ybea far m ers  a nd  the   s oybe an  i ndus try   [ 2] Var i ous  s oy bean  diseases  aff ect   t he  see ds  ap pea ran ce   in  te rm s   of   siz e,  s ha pe,  and   c olor.  Di sease  aff ect e so ybea ns   ca be  pur ple  seed s,  gr e en  see ds ,   wr in kled  see ds,  a nd   sm a ll /spli t   seeds.   F or  the  m os par t,  the  pro du ct ivit of  soy bean depen ds  on   t he  qual it of   grai ns,  an that  is  wh qual it y gra ding is a  v e ry  i m po rtant  pr oc ess for  the  so y bean in dustry a nd so y bea fa r m ers.   gradi ng  m ac hin e is use to  cl assify  so ybea ns  acco rd i ng to  their q ualit y. This m achine can  sep a rate  on ly   f orei gn  m at erial   and   s eeds  with  non - sta ndar siz es H ow e ve r,   th e   m achine  cannot  cl assify   lo w - grade   Evaluation Warning : The document was created with Spire.PDF for Python.
                          IS S N :   2088 - 8708   In t J  Elec  &  C om En g,   V ol.  9 , N o.   5 Oct ober  20 19  :   3495   -   3503   3496   seeds  s uch   as  dr ie seeds gr een  seed s,  pu r ple  seeds an con ta m inants  with  the  sam siz as  regular  so ybea seeds.   T her e fore,  sk il le w orker are  need e to  carry  out  the  qual it gr ad ing   of  so ybea gr ai n.   Howe ve r,   this   appr oach re qu i res  m any w or ke rs,  i a dd it io n t o bein ti m e - consum ing , a nd  pro ne  to  hum an  e rror.   Anothe qu al it gr a ding  ap proac c on sist s   of   us in im a ge  pr ocessin te chn i qu es  a nd   m achin e   le arn in al gori thm to  evalua te   the  qual it of   a gri cultu ral  pro du ct a nd  f ood.  I recent  ye ars,   s uc m e tho ds   hav bec om wides pr ea [ 3 - 8 ] Me batsio et   al hav cl assifi ed  cereal   gr ai ns nam ely bar le y,  oat,  r ye   and  wh eat   us in m orp ho l og ic al   a nd   R GB  c olo r   featur e   with  a identific at io accuracy  of   99 .6 [ 9 ] Olgu et   al.   hav e   de vel op e a a uto m at e syst em   fo r   w heat  grai cl as sific at ion   t hat  can  ac hieve   an   accu racy  of  88. 33%   us in t he  dens scal e - in var ia nt  feat ur e   tra nsfo rm   (S IF T featur e w hich   is  eval uated   by  s upport   vecto r   m achine  ( SVM cl assifi er  [ 10 ] A no t her  pro po se a ppr oach  f or  so y be an  disease  re cognit ion   of  s oybea le aves   is  base on  the  im age  local   descr i ptors  an Ba of   Visu al   Wo r ds w hich  ar m et ho ds   rob us t occlusi on   [ 11 ] .  Tan  et al . [ 12 ]  h a ve  pr opos e d a m et ho usi ng  back   pro pa ga ti on  ( B P)  a rtific ia l neural  n et works  to  rec ognize   s oybea see di sea ses  su c a so y bean  f r ogey e,  m il dew ed   s oybea ns ,   w or m - eat en  s oybeans,   and  dam aged  so ybea ns ,   with   an  acc uracy   of  90%  f or   he te rogen e ous  s oy be an  seeds   w it seve ral  diseases.   The  syst em ’s  perform ance  w as  lim i te by  c olor  di ff e ren ce   an sh a dow   noise   un der   t he  co ndit ion  of  na tural  li gh t. T heref ore, this  pro pose d req uires  the l igh t s ource t ha t distri bute d t he  li gh t e ve nly .   In   recent  st udy,  W ei - Zh en  et   al [13]  de ve lop e m od e to  est i m at t he  pe rce nt  de f oliat ion   of   so ybea le ave from   RGB  i m ages  us in t he  le af  a re a nd   e dge  pi xel  nu m ber M om in  et   al [1 4]   hav e   dev el op e m achine  visi on   s yst e m   us ing   al co m po ne nts  of   the  HS c ol or   feat ur es  fro m   fr on a nd   ba ck  lit   i m ages  to  dete ct   m at erial ot her   t han   grai (MO Gs),  suc as  sp li bea ns con ta m inate beans,  def ect iv bea ns   and  ste m /po m at erial s,  in  soy bean   harvesti ng.  T heir  m et ho achie ved   a c cur aci es  of  96 %,  75% an 98%  f or   def ect ive   bea ns  an ste m s/po ds res pecti vel y   and   pe rfor m ance  dep e nds  on  bac a nd  f r on li ght  c on tr olli ng   of  web cam era that aff ect   with il lum in at ion  c ha ng e of   HSI c ol or  c om po ne nt s.     Althou gh   so m existi ng   im age  pr ocessin and   m achine  l earn i ng   te c hn i qu a re  m od ifi ed  to  us the  qu al it gr a di ng  of   s oybea seeds T her e   are  sti ll   so m crit ic al   pro blem that  need   to  be  ove rco m e.   First,  sha do no ise   ca occur  w he cha nging   cam era  an gl and   the  co ndit ion   of   natu r al   li gh t.  This  c onditi on  can  re du ce  acc ur acy   of  im ag segm entat ion   and   it   has  a eff ect   on  detec ti on   of  the  bo unda ries  f or   s oy bea seed.  Seco nd,  colo dif fere nc can  de grade   cl assifi cat ion   powe of  the  qu al it gr a ding  of  s oybea seeds .   Current  res ear ch  of  col or   fe at ur e xtracti on  are  no rob ust   fo c ha ng i ng  of  il lum inatio beca us th li gh t   so urce  was  des ign e f or   each  dataset The refor e colo feat ur s hould   be  extracte f r om  the  color   m odel   and   com po ne nts  th at   are  no se nsi ti ve  to  il lu m inance  c hange and   t en ha nce  cl assify   r esults.  Thi rd,  sh a pe  var ia nce  in   ea ch  s oybea se eds  cl ass  a re  an  ob sta cl for  s oybea see ds   cat e gorizat ion.  F or  this  r easo n,  com bin at ion   of  colo feat ur a nd   oth e feat ures  t hat  are  no base on  s hap e   can  im pr ov t he  ef fici ency  of  th e   cl assifi cat ion  i the  each  clas s of s oybea se eds.   To  this  e nd,  t his  pa pe pr opos e f ram ewo r to   ge ner at ne cl assi fier  m od el   f or  the  qual it gr a ding  of   s oy bean   seeds  w hi ch  ad dr es ses  these  t hree   c ha ll eng es.  O ur   a ppr oach   c onsis te of  proc ess   that  rob us for  sh a how  noise c ha ng i ng   of   il lu m inati on   an sh a pe  va riance Our  in vestig at ion   f ocused  on   th e   diseases  of  so y bean   see ds   su c as  dr ie so y beans,  green  s oybea ns pu rp l so ybea ns w r ink le s oybe a ns,  and  sm a ll /spli t soy beans.       2.   PROP OSE D   METHO D   This  work  f oc us es  on  the   re cogniti on  an cl assifi cat ion   of   t he  qu al it gr a ding  of  so y bean  see ds .   The  m ajor  ste ps   of  cl assifi c at ion   i nclu de  i m age  segm entat ion see c r opping,   feat ure  extracti on,   m od el  const ru ct io n, s el ect ion   of  s uit able cl assifi er   m od el , an d ac c ur acy  as sessm e nt, whic a re  presente in  Fig ur e  1.     2.1.   Ima ge  d ata  se t   This  stu dy  use 1,3 20  so y bean   s eeds  from   the  Seed  Re search  a nd  De velo pm e nt  Ce nter  a t   Ph isa nu l ok P r ov i nce.  S pecifi cal ly this  study   us e the  C ha ing   Ma 60  s eed  beca us it   is  the  m os po pula so ybea see in  Thail an d.   T he  so y bea sa m ples  con sist ed  of  40 no r m al   seeds,   w hi le   the  infected  see ds   com pr ise 27 purp le   see ds 215  gr ee see ds 220  wr in kl ed  seed s,  an 210  oth er  see ds.  The  s oybea seed   sam ples are  presented  in Fi gu re  2 .   The  hardw a re  us e f or   t he  a cqu isi ti on  of  i m ages  co ns ist ed  of  c olo r   ca m era  (EOS  70 0D,  Ca no n)   with  a   zo om   len with  fo c al   le ng t of  8 - 55  m m   (EF - S 18 - 55  IS   STM),   li ght  s ource,   an black  A pa pe ( 11. 16. in) The   c a m era  was  m ounted  on t sta nd   a bove  li gh with  a 11   watt   lam p.   Each  gro up  of   s oy bean  sam ples  was  captu red   on  black  pap e by  th cam era  at   distance  of  12  i n,   a nd  at   an  a ngle   of  60°  to  90°  with   the  black  pa pe r.   phot ogra ph  of  the  black  pap e wit hout  t he  so y bean   see ds   wa capt ur e be fore  the  s oy bean   seeds  we re  ad ded.  Each  im a ge  of  the  so yb ean  inclu de so ybea sam ple con ta ini ng   a ppr ox im at ely  10   to   30   seeds. T he  im a ges were  capt ured  w it h a si ze  of 80 0 x 600  pi xels a nd a r e sol ution   of  72 p i xels/i n.   Evaluation Warning : The document was created with Spire.PDF for Python.
In t J  Elec  &  C om En g     IS S N: 20 88 - 8708       Qualit y g r adin g   of s oyb e an se eds usin i mag e ana ly sis ( Su t as inee  Jit anan)   3497       Fig ure  1. Fr am ewor k of   pro pose m et ho d         (a)     (b)     (c)     (d)     (e)     Figure  2 .  S oybe an  sam ples: ( a)  norm al  seeds , (b) pu rp le   se eds  a ff ect e d by Ce rcosp or a  Le af Sp ot,    (c)   green  seed s , and ( d)   w rin kl ed  see ds   (e)   ot her seed s         2.2.   Ima ge  se gmen tation a nd  se e d c ro ppin g   In   the  ca pture im age,  the  bounda ry  of  each  so y bean   s eed  was  se gme nted  us in ba ckgr ou nd   su bt racti on  [ 15 ] wh ic is  a appr oach  us e widely   to  se pa rate  the  fore groun obj ect   from   the  backg r ound  in   vid e os   ca pture by  sta ti ca m eras.  I t his   stu dy,  we   a ppli ed  t his  m eth od  t sti ll   im age  segm entat ion More ov e r,   t his   stud us e th fr am diff e re nce  al go rithm   for  im age  seg m entat ion   bec ause  it   is  the  s i m plest   m et ho d,   i ad diti on   to  bein appropr ia te   f or  sti ll   i m ages  and   a ble  of   ha nd li ng  li ghti ng  changes.  Le be  captu red   im age  that  con ta ins  so ybea see ds ,   and   the  i ntens it fo pix el i be   de no te as  P[ I].  T he n,   P[ B]   is   intensit for  pix el in  t he  ba c kgr ound  im age   subtract ed  fro m   the  corres pond i ng  pi xels  at   the  sam po s it ion   i P[ I]  a nd   com pu te by  ( 1 ) .   Fi nally P[ F]  is  t he  re su lt   of  th fr am diff e re ncin c om pu ta ti on   a nd   is  e xp resse as foll ows.     P[ F] =  P[I]     P [B]              ( 1)     In   eac com po ne nt  of  the  RGB  colo spa ce,  the  fr am diff e ren ce  w as  cal culat ed  betwee the  backg rou nd   a nd  capt ur e im ages.  T he  re s ul of   this  proc ess  identifie t he  re gion  of   s oybea see ds   i the  captu red  im ag e.  T his  m et ho can  help   to  el i m inate   the  pro blem   of   s hadow  ap pea rin i the   capt ur e i m age.  Subseque ntly this  im age  is  co nv e rted  t bi nar im a ge  by  local ly   ada ptive  th re sh ol ding  [16],   w hich  com pu te threshold  f or   eac pix el   by  us in the  local   m e an  intensit aro un the  neig hbor hood  of   the   pix el .   The  e xistence  of   ho le i the   bin a ry  i m age  ind ic at es  the  e xistence  of   no i se.  The se  hole are  rem ov e by  a   m or phologica op e rati on   [17].   Then the  re gi on   bounda ries  of   each  s oybea seed  are  trac ed  us in the  Moore - Neig hbor  traci ng   al gorithm so y bean   se ed  is  represe nt ed  by  the  co nn ect e com po ne nts  of  the  reg i on   bounda ries.   Th sp li s oybea seeds   ar s hown  in   Fig ur e   3.  A ddit ion al ly ,   the  s oybe an   s eeds  a re  c r oppe t cov e t he  re gi on  bounda ries  of eac s oybea n see d, as  sho w in  Fig ure  4.       C a p t u r e d   i m a g e I m a g e   s e g m e n t a t i o n ( b a c k g r o u n d   s u b t r a c t i o n ) S e e d   c r o p p i n g ( M o o r e - N e i g h b o r   t r a c i n g ) F e a t u r e   E x t r a c t i o n ( H   c o m p o n e n t s   i n   H S I   m o d e l   ) M o d e l   c o n s t r u c t i o n ( S V M   c l a s s i f i e r   ) C l a s s i f i e r m o d e l s F e a t u r e   E x t r a c t i o n C a p t u r e d   i m a g e I m a g e   s e g m e n t a t i o n S e e d   c r o p p i n g p u r p l e   s e e d g r e e n   s e e d w r i n k l e d   s e e d n o r m a l   s e e d o t h e r   s e e d L e a r n i n g P h a s e C l a s s i f i c a t i o n   P h a s e Evaluation Warning : The document was created with Spire.PDF for Python.
                          IS S N :   2088 - 8708   In t J  Elec  &  C om En g,   V ol.  9 , N o.   5 Oct ober  20 19  :   3495   -   3503   3498     (a)     (b)     (c)     (d)     Figure  3. Im age seg m entat ion f or  s plit  so y be an  see ds (a)   ba ckgr ound im a ge,   ( b)  ca pture im age,    (c)   bac kgr ound  subtracti on , a nd  (d) regi on  bo unda ries of eac s oybea see d         (a)     (b)     (c)       (d)     (e)     Figure  4. Cr opped see ds : (a ) norm al  seeds , (b)   pur ple see ds, (c ) gr ee see ds,   (d) wri n kle se eds, an d (e)  o t her seed s       2.3.   Feature e xt r ac tion   This  stu dy  c om bin ed  colo a nd  te xture  c harac te risti cs  to  im pr ov t he  ef f ic ie ncy  of   t he  cl assifi cat ion  from   pr ob le m   of   s hap var ia nce  in  each  s oy bean   see ds   cl ass.  The refo re,   this  stud us e the  col or   histogram   al gorithm   [1 8]  and   G rey  Lev el   Co - occ urrenc Ma trix  (G L CM [19]  fo t he  extracti on  of   col or   a nd   te xture   featur e s.  The  HS m od el   is  us e for  the  colo histo gr am   becau se  it   is  m or cl os el r el at ed  to  how  hu m ans   per cei ve  colo r.  The  com po ne nts  of   this  m od el   are  hue,  sa turati on,  an intensit y.  The  captu red   im ages  are  conve rted  f rom   the  RGB   mo del  to  the  H S m od el   us in the  colo trans form at ion   [ 17 ]   exp r esse by  (2) - (4),  wh e re H   is  h ue S   is  sat ur at io n,  an is   the   intensit of  t he  HS I   m od el R, G , and  B   de note   the r e d,  gree n,  a nd   blu c olo of   the  RGB  m od el resp ect ivel y.   Our  ap proa ch  sepa r at e s   the  col or   c om po ne nts  ( H)   fro m   the   Saturati on  co m po nen t   (S)  and   the  lum inance  com po ne nt   (I w hich  is  le ss  sensiti ve  to  il lu m inati on   change s .   This  m e tho re du ce pro blem   of   colo dif fere nce   in  li gh ti ng  cha ng es The   colour  featu re are  extracte from   the   colo com pone nts  ( H)   of  HS c olor  m od el   base on  hi stog ram   analy sis   wh ic ha ve   robust  for  cha ng i ng   of il lum inati on.     =  1 { 0 . 5 [ ( ) + ( ) ] [ ( ) 2 + ( ) ( ) ] 1 / 2 }           ( 2)     = 1 3 ( + + ) [ min ( , , ) ]                                  ( 3)     = 1 3 ( + + )                                                          ( 4)     Figure  s hows  the   col or s   in  the  ( hue )   c om po ne nt s   of   al s oybe an  see ds   in   the  dataset .   The  dif fer e nce can   be   ob s er ved  in   the   hue  value   of  t he  H SI   m od el .   The   m ax,   m in,  an m ean  hue  valu es  ar e   li ste in Ta ble  1.       Evaluation Warning : The document was created with Spire.PDF for Python.
In t J  Elec  &  C om En g     IS S N: 20 88 - 8708       Qualit y g r adin g   of s oyb e an se eds usin i mag e ana ly sis ( Su t as inee  Jit anan)   3499     (a)       (b)     (c)       (d)     (e)     Figure  5. H ue hist ogram s o f HSI m od el  fo r   al l soybea see ds  i n datase t:  (a ) norm al  seeds , (b) pu rp le   se eds,    (c)   green  seed s , (d) w rin kled  s eeds,  and  (e) ot her seed s       Table  1.   H ue v al ues of  all  im a ges  i n datase t   So y b ean type     Hu e valu e     Max   Min   Mean   No r m al  seed s   358   0   86   Pu rple seed   359   0   101   Gree n  seed   357   0   79   W rink led  seed s   357   0   87   Oth er  seed s   356   0   56       The  hu e   val ue of  eac s oybe an  see a re  tr ansfo rm ed  to  colo histo gra m   to  represe nt   the  col or  distrib ution   i each  i m age.  The  col or   histogram   cou nts  the  num ber   of  pix el in  eac col or   in  the   i m age,   and   t he  c olor  s pace  is  di vid e int num ber   of  c olo r   bi ns.  Gi ven   a   col or   s pace  with  col or   bi ns t he  c olo r   histo gr am   of   a im age  is  de fine as  H (I)  [ h(1),  h(2), …h(k )],  w he re   h( i is  t he  num ber   of   pix el s   with  a   colo bin   cal cul at ed  by  Eq ua ti on   ( 5) Addi ti on al ly n_ is  the  nu m ber   of   pix el with  colo bin   i,  an is   the num ber   of   pix el s i a im age.     ( ) =   (5)     The  GLCM  is  sta ti st ic al   m e thod  of   e xam i ning  te xtures  thr ough  analy zi ng   the  s patia relat ion s hip  of   pix el by  c al culat ing   how   of te diff e re nt   com bin at ion s   of  pi xel  with   gr ey   le vels  oc cur   i a im age.   The  G LCM   m et hod  pe rfor m bette than  ot her   te xture  di scrim inati on   m et hods wh ic can  be  us ed  t so lve   the  prob le m   of   sh ape  va rianc in  each  so yb ean  seeds  cl as s The  GLCM  sta ti sti cs  with  reg a rd   to  the  t extu re  featur e are   ba sed  on  the  t wo - orde sta ti sti cal   par am et ers  that  are  c ontras t,  energy,  c orr el at ion a nd  en tro py   [20].  T he  te xu re  feat ur es   of  t he  s oybea see are   s hown  in   Table  2.   Ha ra li ck  [21]  has  pro posed   1 ty pe of  GLCM  sta ti stics  to  de scri be   the  te xture  fe at ur es.   I this   stud y,  we  use f our  ty pe of   sta ti sti cs,  nam el y,   con t rast,  e ntropy,  co rrel at ion ,   and  ene r gy,  to   extract  the  te xt ur featur e of  so y bean  seed s.  The   eq uatio ns   f or   cal culat ing   the se  featu res   are   pr ese nte in  Table  2.  Co ntr ast   m easur es  t he  local   var ia ti on s   in  the   gra y - le vel   co - occ urren ce  m at rix.   Entr op m easur es  th rand om ness  or   disor der   of  the  im age  area.  Correl at io is  a   m easur e of ho co rr el at ed  pix el   to  it s n ei ghbor ov e the en ti re i m a ge.  Finall y, ener gy  m easur es the textu ral  un i form i ty  o t he  im age ar ea.   Evaluation Warning : The document was created with Spire.PDF for Python.
                          IS S N :   2088 - 8708   In t J  Elec  &  C om En g,   V ol.  9 , N o.   5 Oct ober  20 19  :   3495   -   3503   3500   T able  2 .   Form ulas to  calc ulate  textu re feat ures b ase d o n G LCM   Textu re  f eatu re   Equ atio n   Co n trast   ( ) 2 ( , ) = 1 = 1   Entro p y   ( , ) = 1 = 1  ( , )   Co rr elatio n   ( ̅ ) ( ̅ ) ( , ) = 1 = 1   Energy   ( , ) 2 = 1 = 1       2.4.   Model  constr uctio n   suppo rt  vector   m achine  (SVM)  is  su pe rv ise le arn i ng  al go rithm   that  is  m os tly  us ed  for  vis ual   patte rn   re co gn it ion   an im ag cl assifi cat ion  [22,   23 ] T he   obj ect ive  of   SV cl assifi e [ 24 ]   is  hype r   plane  cl assifi er,  w hich  determ ines  a optim al   li ne  to  se par at t he   trai ning   set   of  the  two  cl asses.  Fo m ulti - cl ass  SV cl assifi e r the  t wo -   cl ass es  sepa rati on  i operate as   one - a gainst  t a ll cl assifi er   m od el   is  con st ru ct e to  assig one  of  the  cl asse to  the  te st  sam ples.  In  this  st ud y,   the  SV M   cl assifi er  was   us e t cl assi fy  the   i m ages o f  d ise ased soybea n s eeds  us in c ol or an te xtu re  fe at ur es a nd a  poly no m ia l ker ne l.       3.   RESU LT S   A ND AN ALYSIS   In  this secti on, we present the  resu lt s obtai ne by experim ents u sin a col or   histogram Additi on al ly ,   we  prese nt  the  GLCM  sta ti stics  to  evaluate  t he  accu racy  of   the  pro po se so ybea see disease  cl assifi cat ion   m et ho f or  q ua li ty   gr adin g E ach  im age  in  trai nin dataset   was  ad de an reduced  of    bri gh le vel  to  e va luate   rob us tness   of  l igh ti ng  c hange s,  w hich   co ns i ste of    five   br igh tne ss  le vels .   The re fore,  t he re  are   6,6 00  i m ages   in d at aset f or   exp e rim ents.   Figure  s hows   so yb ea see ds  of f ive  brig htne ss levels.                   Figure  6. S oybe an  see ds   of f i ve bri gh t ness  l evels       In   t he  cl assifi c at ion   m et ho d,  we  us m ulti - cl ass  SV M   c la ssifie with   10 - fo l cr oss  validat io wh ic are  par ti ti on ed  i nto   10   fo l ds On fo l is  us e f or   t est ing   pr ocess,  wh il the  rem ai nin f old ar us e for  trai ni ng  pr ocess.  The   S V cl assifi er  is   exec uted  10  t i m es  and   us es   each  fo l on l on ce T her e fore,   the  acc ur acy   r at is  the  ave r age  acc uracy   of  the   10  tim es  execu ti on.   T hi stu dy  def i ne five   cl ass es  for  the  cl assifi cat ion   of   s oybea se ed  diseases:   norm al   seeds,   pur ple  seeds,   g ree see ds wr i nk le seed s,  an d   oth e see ds .   The  perf or m ance  was  m easur e i te r m of   preci sion,  r ecal l,  an the   F 1 - m easur e   [ 25] ,   and   c om par ed   with  the  gro und - trut data set w hich  wa gen e rated  by   us ers.   W com par ed  the   color   histo gr am   us ing  di ff e ren t   num ber of  col or  bi ns   of  the   HSI  m od el   a nd  the   RGB   m od el The   H SI   a r e   cy li nd rical  g e om et ries w hose  angular  dim ension   ranges  fro m  0 ° to  360° to  r ep rese nt hue, st arti ng   with th e re d   pr im ary  at   ,   ye ll ow   pr im a ry  at   0°,  gr ee pr im ary  at   120° ,   cy an  pr im ary  at   180°,  bl ue  pr im ary  at   240°,  m agen ta   pri m ary  at   300° a nd   t hen   wr a pp ing   back   t re at   360°.  T he refor e we  se par at e the  H   (Hue)   com po ne nts  in to  c olo bin s ,   36   c olor  bi ns 72   c ol or  bi ns 144  c olo bins,   288  col or   bin s   and   360  c olor  bin s The  (S at ur at ion)  com po ne nt wer sepa rated  into  bin and   t h e   (Inte ns it y)  com po ne nts  wer se pa rated   into  bin s.  Ea ch  cha nnel   of   the  RGB  m od el   was  separ at ed  into  2,   3,  4,  5,   6,   a nd   bin s.  T he  be st  colo r   featur e   was  c om bin ed  with   the  GLCM  s ta ti sti cs.  The  cl assifi er  m odel we re  dev el op e us i ng  th SV M   cl assifi er w it h a p olyno m ia l fu nctio n.   Table  s hows   the  preci sio n,  r ecal l,  an F - M easur e   f or  s oybean  cl assifi ca ti on   us in c olor  feat ur es   of  th HS m od el The  ex per im e ntal  resu lt ha ve  fou r   par ts   with  dif fer e nt  com po ne nts  of  the  HS m od el Fr om   the  ta ble,   it   is  ob s er ved  that  t he  m axi m u m   F - m easur of   0.988  has  occurre with  360  bin of  com pone nts  (36 c olors) A   com par iso of   the  s oy bean  cl assi ficat ion   ac cur acy   of  the   RGB  c olo r   m od el   a nd  the   H S c olor   Evaluation Warning : The document was created with Spire.PDF for Python.
In t J  Elec  &  C om En g     IS S N: 20 88 - 8708       Qualit y g r adin g   of s oyb e an se eds usin i mag e ana ly sis ( Su t as inee  Jit anan)   3501   m od el   are  sho wn   i Fi gure  7.  The  res ults  ind ic at that  c ol or   f eat ur e   us i ng   c om po ne nts  of  the  HSI   m od el   giv es  high  cl as sific at ion   acc uracy   m or than  the  ov e rall   colo featu re  ba sed  on   t he  RG m od e l.  T herefo re,   the  HS m od el   with  com ponen ts  dem on str at ed  that  robu s with  li gh chan gi ng   a nd   us e lowest  dim ension of col or   featu r es.       Table  3.  Res ults o s oybea cl assifi cat ion   us i ng co l or f eat ur es of the  HSI   m od el   Co lo Co m p o n en t   Co lo Featu re   Precis io n   Recall   F - Measu r e   H   6  bin s o f  H  (6 co lo rs)   0 .81 3   0 .78 9   0 .79 1   3 6  bin s o f  H  (36  colo rs)   0 .93 5   0 .93   0 .93   7 2  bin s o f  H  (72  colo rs)   0 .95 9   0 .95 3   0 .95 3   1 4 4  bin s o f  H  (14 4  colo rs)   0 .96 7   0 .96 1   0 .96 1   2 8 8  bin s o f  H  (28 8  colo rs)   0 .98 4   0 .98 3   0 .98 3   3 6 0  bin s o f  H  (36 0  colo rs)   0 .98 8   0 .98 8   0 .98 8   H and  I   6  bin s o f  H  4  bin s o f  I  ( 2 4  colo rs)   0 .84 6   0 .82 5   0 .82 7   3 6  bin s o f  H  4  bi n s o f  I  ( 1 4 4  colo rs)   0 .93 3   0 .92 5   0 .92 6   7 2  bin s o f  H,  4 b in s o f  I  ( 2 8 8  colo rs)   0 .95 2   0 .94 5   0 .94 6   1 4 4  bin s o  o f  H,  4 b in s o f  I  ( 5 7 6  color s)   0 .96 3   0 .95 9   0 .95 9   2 8 8  bin s o f  H  4  bin s o f  I   (11 5 2  color s)   0 .96 3   0 .96 1   0 .96 2   3 6 0  bin s o f  H  4  bin s o f  I  ( 1 4 4 0  color s)   0 .97 1   0 .96 9   0 .96 9   H and  S   6  bin s o f  H,  4 b in s o f  S  (24  colo rs)   0 .86 1   0 .84   0 .84 2   3 6  bin s o f  H  4  bi n s o f  S  (14 4  colo rs )   0 .94 8   0 .94 3   0 .94 3   7 2  bin s o f  H,  4 b in s o f  S  (28 8  colo rs)   0 .96 2   0 .95 8   0 .95 8   1 4 4  bin s o f  H  4  bin s o f  S  (57 6  colo r s)   0 .96 7   0 .96 5   0 .96 5   2 8 8  bin s o f  H,  4 b in s o f  S  (11 5 2  colo r s)   0 .98 6   0 .98 5   0 .98 5   3 6 0  bin s o f  H,  4 b in s o f  S  (14 4 0  colo r s)    0 .98 5   0 .98 4   0 .98 4   All   6  bin s o f  H  4  bin s o f  S,    4  bin s (96  c o lo rs)   0 .87 5   0 .85 2   0 .85 5   3 6  bin s o f  H  4  bi n s o f  S,  4 b in s (576 co lo rs)   0 .96 1   0 .95 7   0 .95 6   7 2  bin s o f  H,  4 b in s o f  S,  4 b in s (11 5 2  colo rs)   0 .96 9   0 .96 5   0 .96 5   1 4 4  bin s o f  H,  4 b in s o f  S,  4 b in s (2304  c o lo rs)   0 .96 8   0 .96 6   0 .96 6   2 8 8  bin s o f  H,  4 b in s o f  S,  4 b in s (4608  colo rs)   0 .98   0 .97 9   0 .97 9   3 6 0  bin s o f  H,  4 b in s o f  S,  4 b in (5760  colo rs)   0 .98 4   0 .98 4   0 .98 4           Figure  7. A  com par ison   of th e cla ssific at ion acc uracy  of t he  RGB c olor m od el  a nd the  HSI   c olor m od el       Table  s how the  cl assifi c at ion   acc ur acy   us in t he  tw feat ur e   set and  an   SV cl assifi er.  F - m easur of  0.8 66  wa ob ta i ne with  GLCM  base te xt ur e   f eat ur w her eas   F - m easur e   of  0.992  was   obta ined   with  col or   a nd   te xtu re  featu re s,  w hich  was  be st  cl assifi er  m od el T he  resu l il lustrate that  the  cl assifi er  base on  col or  an t extu re  fe at ur e   can  ide ntify  s oybea see ds   with  highest  a ccur acy   a nd  i m pr ov cl assif ic at ion  perform ance f r om  u sing col or f eat ure  on ly   Evaluation Warning : The document was created with Spire.PDF for Python.
                          IS S N :   2088 - 8708   In t J  Elec  &  C om En g,   V ol.  9 , N o.   5 Oct ober  20 19  :   3495   -   3503   3502   Table  4.  C om par iso n of ef fici ency o cl assifi cat ion   of d if fe r ent f eat ur e   Featu re   Precisio n   Recall   F - Measu r e   Co lo : 36 0  bin s o H ( 3 6 0  colo rs)   0 .98 8   0 .98 8   0 .98 8   Textu re  GLCM   0 .86 8   0 .86 6   0 .86 6   Co lo an d  T ex tu re   0 .99 3   0 .99 2   0 .99 2       T he  cl assifi cat ion   pe rfor m ance  for  eac s oybean  cl ass  us i ng  the  best  cl as sifie m od el   w as  show i Table  5 The   F - m easur f or  the  cl assifi cat ion  of  norm al   seeds,  pu rp le   s eeds,   green     s eeds,   w rin kled   seeds ,   and  o the seed was  0.9 79,  1 1 0.9 81,  an res pecti vely Du to  t he  dist inct  color  d if fe ren ce of  p urple   seeds  and   green  see ds it   m akes  hi gh   cl assifi cat ion   ac cu racy.  More ov e r,   o th er  seed we re   cl assifi ed  wit hi gh  accuracy  beca us t hey  co ns i ste of   fro geye  seeds dr ie seeds a nd  da m aged   see ds ,   wh ic hav e   di ff e ren t   colo rs  an te xtu re  in  c om par ison   t oth e s oybea cl asses wh il norm al   seeds  an w rink le d   seeds  ha ve  si m il ar  yellow  color.  H ow e ve r,   the  best  cl assifi er  m od el   can  be  us ed  to  cl assify   so ybean  see ds   with  a aver a ge  acc ura cy  o f   99. 2 %.       Table  5.  Res ults o s oybea cl assifi cat ion   us i ng co l or f eat ur an te xt ur e  fe at ur e   So y b ean class   Precisio n   Recall   F - Measu r e     No r m al  seed s   1   0 .96   0 .97 9   Pu rple seed   1   1   1   Gree n  seed   1   1   1   W rink led  seed s   0 .96 5   1   0 .98 1   Oth er  seed s   1   1   1   Av erage   0 .99 3   0 .99 2   0 .99 2       4.   CONCL US I O N     We  pr e sente fram ewo rk  f or  so y be a qual it gr adin g   wh ic has  t hr e m ai adv a ntages.  First  t he   us of  bac kgr ound  subtract i on   reduces  th prob le m   of   sh ad ow  ap pe arin in  the  captu red   im age   wh e changin cam era  an gle  an the  conditi on  of   na tural  li ght co ns e qu e nt ly ,   i m pr ov in the  res ults   o seeds   segm entat ion   and   c rop ping.  S econd  m et ho is  propose f or   e xtracti on  colo featu re  ba sed  on  r obus t ne ss  for   il lu m inati on   ch ang e w hich  is   com po ne nts   in  HSI  m od el Thir an  a ppr oach   t fin oth er  featu res  to  so lve   sh a pe  var ia nce   in  eac s oybe an  se e ds  cl ass   is  prese nted.  Ba sed  on  the   exp e rim ental   resu lt s,   th pro po s e d   te chn iq ue   com bin es   c olor  hi stog ram   of  H   com po ne nts  in   HSI  m od el   a nd  the   G LCM   s ta ti sti cs  to  be  m or e   i m pr ove  cl assifi cat ion   acc uracy   than  us i ng  col or   feature   on ly F uture   work   will   foc us   on  desig ni ng   a   com pr ehe ns ive   cl assifi er  f or   var i ou s   s oybea see ty pe s   a nd   the   pro pose m et ho can   be  c om bin ed  with  a   harvester  m achine.       ACKN OWLE DGE MENTS   We ac knowle dge the  f i nan ci a l su ppor of  Na resu a n U niv e rs it y.       REFERE NCE S     [1]   V.  Kum ar,   et   al . ,   c om par at iv assess m ent   of  tot al   ph enol i c onte nt ,   fer ri re duci ng - an ti - oxid at iv power,   fre rad ical - sc ave ngi ng  ac t ivi t y ,   vita m in  and  isofl avone content  i so y be an  with  var y ing  see co at   co lour,”  Foo Re search  In te rn ati onal ,   vol /i ss ue:   43 ( 1 ) ,   pp .   323 - 328 ,   2010 .   [2]   M.  Carmona,   et  al . ,   Deve lopment  and  va li da tion  of  fungic id scoring  s y st e m   for  m ana gement  of  late  sea s on  so y bea n   dise ase s in  Argen ti n a,”  Crop P rotection ,   vol. 70, pp. 83 - 91,   2015 .   [3]   T.   Brosnan  and  D.  W .   Sun,  Im proving  qualit y   i nspec ti on  of   foo p roduc ts  b y   co m pute vision - rev ie w, ”  Journal  of  Food   Engi n eer ing ,   vol /i ss ue:   61 ( 1 ) ,   pp .   3 - 16 ,   2 004.   [4]   H.  Sabrol  and  S.  Kum ar,   Rec ognit ion  of  T om at La t Bli ght  b y   using  DW and  Compone nt  Anal y sis , ”  Inte rnational   Jo urnal  of El e ct ri c al  and  Comput er  Engi n ee ri ng   ( IJE CE) ,   vol .   7 ,   pp .   194 - 199,   2017.   [5]   R.   R.   Parm ar,   et   al . ,   Unifie app roa ch  in  food  qu al ity   evalua t ion us ing  m ac hine   v ision, ” in  Adv an ce s in  Computin and  Comm unic a ti ons ,   pp .   239 - 24 8 2011 .   [6]   S.  Li li k ,   et   al . ,   Digit al   Im age   B ase Ide nti f ic a tion  of  Ric V ari e t y   Us ing  Im age   Proce ss ing  and  Neura Network,”   TEL KOMNIKA  (Tele communic a t ion,   Comput ing,  El e ct ronics  and   Control) ,   vol. 1 6 , p p .   182 - 190 ,   2 015.     [7]   C.   J.  Du  and  D.   W .   Sun,  Le arn ing  te chn ique used  in  computer   vision  for  food  qual ity   ev al ua ti on:  rev ie w ,   Journal  of   Food   Engi ne ering ,   vol .   72 ,   pp .   39 - 55 ,   2006.   [8]   A.  Ta nnou che ,   et   a l . ,   fast  a nd  eff icien sha pe  desc rip tor  fo an  adv anced  wee t y pe   class ifi cation  a pproa c h,   Inte rnational   Jo urnal  of El e ct ri c al  and  Comput er  Engi n ee ring   ( IJE CE) ,   vol .   6 ,   p p .   1168 - 1175,   201 6.   Evaluation Warning : The document was created with Spire.PDF for Python.
In t J  Elec  &  C om En g     IS S N: 20 88 - 8708       Qualit y g r adin g   of s oyb e an se eds usin i mag e ana ly sis ( Su t as inee  Jit anan)   3503   [9]   H.  K.  Meba tsio n,   et   al . ,   Autom at ic   c la ss ifi c ation  of  non - touching  ce r ea gr ains   in  digi tal  images  using  li m ited   m orphologi ca l   a nd  col or   fe at ur es, ”  Comput ers an Elec troni cs  in   Agric ult ure ,   vo l. 90, pp. 99 - 105,   2013.   [10]   M.  Olgun ,   et   al . ,   W hea gr ai c la ss ifi c at ion  b y   using  dense   SIF feature with  SV cl assifie r,   Computers  and   El e ct ronics  in A gricul ture ,   vol .   1 22,   pp .   185 - 190 ,   2016.   [11]   R.   D.  L.   Pires ,   et   al . ,   Local   desc ript ors  for   soy b ea d iseas rec ognition,   Computers  an El ectronics  i n   Agric ult u re ,   vo l. 125, pp. 48 - 55,   2016.   [12]   K.  Z.   Ta n ,   et   a l . ,   Ide nti fi ca t ion  of  disea ses  for  s o y be an  see ds  b y   computer   vision  apply ing  BP   neur al   ne twork ,   Inte rnational   Jo urnal  of Agric ul t ural  and  B iol ogi cal   Engi ne ering ,   vol. 7, pp. 43 - 5 0,   2014 .   [13]   W .   Li ang,   et   a l . ,   Es ti m at ion  of  so y bea leaf  area,   edg e,   and  d ef oli ation  using  c olor  image  anal y sis, ”  Computers   and  Elec troni cs  in  Agri cul ture ,   v ol.   150 ,   pp .   41 - 5 1,   Jul   2018 .   [14]   M.  A.  Mom in,   et   al . ,   Mac hi ne  vision  base soy b ea qu alit y   evalua t ion,”   Computers  an El ectronics  i n   Agric ult ure ,   vo l. 140, pp. 452 - 46 0,   Aug 2017 .   [15]   Y.  Bene zeth,   e t   al . ,   Review  and  eva luation  o comm only - im ple m ent ed  ba ck ground  subtrac tion  al gorit hm s,”   in  2008  19 th  In t ernati onal   Confer enc on   Pa tt ern   Recogni t ion ,   pp .   1 - 4 2008 .   [16]   S.  Z.   L and  A.  Jain,   Eds. ,   Local   Adapt ive   Thr esholdi ng, ”  in  E ncy c lope dia  o Bi ometri cs ,   Bost on,   MA Springer   US ,   pp.   939 - 939 2009 .   [17]   R.   C.   Gonza lez,  et   al . Digit al I m age   Proce ss ing   Us ing  MA TL AB ,”   Pe arson  Edu ca t ion, 2004.   [18]   X.  Y.  W ang,   et   al . Robust  ima ge  ret r ie v al   b ase on  col or  h i sto gra m   of  loc a fe at ure   r egi ons , ”  Mult imedi a   Tools   and  Applications ,   vol /i ss ue:  49 ( 2 ) ,   pp .   323 - 345 ,   2 010.   [19]   S.  Pare ,   e al . ,   An  opti m al   col o image  m ultil ev el   thre sholding   t ec hniqu using   gre y - le v el  co - oc cur ren c m at r ix,”  Ex pert   Syste ms   wit App licati on s vol. 87, pp. 33 5 - 362,   Nov   2017 .   [20]   M.  A.  Ta hir,   et  al . ,   Acc e le ra ting  the   computat ion  of  GLCM  and  Hara lick  texture   feature on  rec onfigura b l e   har dware , ” in  20 04  Inte rnat ional   Confe renc on   I mage  Proce ss in g,   2004 .   ICIP   ’0 4,   v ol .   5 ,   pp .   285 7 - 2860 2004 .   [21]   R.   M.  H ara l ic k ,   et   al . ,   Te x tur al   fe at ure for  i m age   cl assifi ca t ion, ”  I EE Tr ansacti ons  on  Sy stems,  Man,   an d   Cybe rnet ic s ,   vol /i ss ue:   SMC - 3 ( 6 ) ,   pp .   610 - 621 ,   Nov   1973.   [22]   F.  Avila ,   et   al . ,   m et hod  to  construc fru it   m at urity   co lor  sca l es  base on  support  m ac hin es  fo reg ressio n:   Applic a ti on  to  o l ive s a nd   gra p s ee ds,”   Journal   o Food   Engi n ee r ing ,   vo l. 162, pp. 9 - 17,   Oct   2 015.   [23]   F.  Melga ni  and   L.   Bruz zone,  Cla ss ifi ca t ion  of  h y per sp ec tr a remote  sensin images  with  support  vec tor   m ac hine s,”   IE E Tr ansacti ons  on  Geosci en ce a nd  Re mot S ensi ng ,   vol /i ss ue:   42 ( 8 ) ,   pp .   1778 - 17 90,   Aug   2004 .   [24]   M.  K.  S.   Varm a,   et  al . ,   Pixel - base c la ss ifi c ation  using  suppo rt  ve ct or   m ac hi ne  c la ss ifi er ,   i 2016  IE EE  6t Inte rnational   Co nfe renc on   Advance Comput in ( IACC) pp.   51 - 55 2016 .   [25]   C.   Sam m ut  and G.  I. W ebb,  Ency cl op edi a   of  M ac hin L ea rn ing ,   1st e d .   Spring er P ubli shing Compan y ,   In c.,  2011 .       BIOGR AP H I ES   OF  A UTH ORS        Su tasinee  Jitanan ,   she  rec ei ved  her   B. Sc.   in  Com pute Scie nce   from   Chia ng  Mai  Univer sity   in   1996  and  her   M.Sc.   in  Inform at io Te chnol ogy   from   King  Mongkut’s  Instit ute   of  Te chnol ogy   La dkra bang  in  2001.   She  com ple te Ph.D  degr ee   in  Com pute r   Engi nee ring  from   Kaset sart  Univer sity   in  y ea 2015 .   Curre ntl y ,   she  is  working  as  le ct ure in  depa rtment  of  Com pute Scie nce   and   Inform at ion  Te chnol ogy ,   Facul ty   of  Scie nce ,   Nare suan  Univer sity ,   Phitsanul ok,   Tha il and.   Her   rese arc int ere sts inc lude   pat te rn  ana ly sis a nd  m ult imedia   proc essing.         Paw at  Ch iml ek he   rec ei ved  h is   B. Sc.   in  Com pute Scie nce   from   Pibulsongkram  Raj abha Un ive rsity   and  his   M.Sc.   in  Inform at ion  Te chnol ogy   from   Nare suan  Univer sity .   He   is  cur ren tl y   le ct ure in  depa rtment  of C om pute Scie nce   and   Inform at ion Te chnol ogy ,   Facul ty   of  Scie nce   and  Te chnol ogy Pibulsongkram  Raj abha Univer sity ,   Phitsanul ok,   Tha il and.   H is  rese arc int ere sts  inc lude   informati on  ret rie val .     Evaluation Warning : The document was created with Spire.PDF for Python.