<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta />
    <article-meta>
      <title-group>
        <article-title>The effect of image pre-processing on objects adaptive stochastic identification efficiency</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Radik Magdeev</string-name>
          <email>radiktkd2@yandex.ru</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Marat Suetin</string-name>
          <email>source81@gmail.com</email>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Aleksander Tashlinsky</string-name>
          <email>tag@ulstu.ru</email>
          <xref ref-type="aff" rid="aff2">2</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>LLC “Telecom.ru”</institution>
          ,
          <addr-line>Ulyanovsk</addr-line>
          ,
          <country country="RU">Russia</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>RPA "Mars"</institution>
          ,
          <addr-line>Ulyanovsk</addr-line>
          ,
          <country country="RU">Russia</country>
        </aff>
        <aff id="aff2">
          <label>2</label>
          <institution>Radio Engineering Department, Ulyanovsk State Technical University</institution>
          ,
          <addr-line>Ulyanovsk</addr-line>
          ,
          <country country="RU">Russia</country>
        </aff>
      </contrib-group>
      <pub-date>
        <year>2020</year>
      </pub-date>
      <fpage>85</fpage>
      <lpage>88</lpage>
      <abstract>
        <p>-In this paper, we consider ways to improve the efficiency of the method of stochastic gradient identification of objects for binary and halftone due to images preliminary lowpass filtering images. Identification of an object is understood as the recognition of an object on the image with its synchronous parameters estimation. The optimal sizes of the Gaussian filter mask for binary and grayscale images were found based on COIL-20 images. The effect of the image equalization procedure on identification efficiency has also been investigated. The convergence rate and the working range of identification parameters were used as the main criteria of effectiveness.</p>
      </abstract>
      <kwd-group>
        <kwd>digital image</kwd>
        <kwd>object recognition</kwd>
        <kwd>pattern recognition</kwd>
        <kwd>stochastic gradient identification</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>II. DESCRIPTION OF THE STOCHASTIC GRADIENT</title>
      <p>IDENTIFICATION METHOD
</p>
      <p>
        In SGI, the identification parameters ˆ are searched
recursively [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ]:
  
ˆ t  ˆ t 1  Λ t β t 

      </p>
      <p>
        
where β t – stochastic gradient of the objective function of

identification quality, which depends on the estimates ˆ t 1
at the previous iteration and on the iteration number
t  0 , T ; Λ t – gain matrix [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ], which determines the
increment of estimates at iterations; Т – number of iterations.
The stochastic gradient of the objective function at each
iteration is calculated from a relatively small (units, tens)
local sample of the pattern and the image under study. It is
advisable to use the mean square of the inter-frame
difference or the inter-frame correlation coefficient as the
objective function in the identification problem.
      </p>
      <p>
        In the study, we suggested that possible deformations of
the identified object with respect to the template can be

reduced to the model of similarity [
        <xref ref-type="bibr" rid="ref10 ref9">9, 10</xref>
        ], where the set of

parameters ˆ
      </p>
      <p>
        characterizing the mismatch between the
pattern and the image of the object includes a scale factor  ,
an orientation angle  , and a shift h  h x , h y T along the
base axes Ох and Оу . Independent Gaussian noise was
used as additive noise. As the objects of study used the
database of images COIL-20 [
        <xref ref-type="bibr" rid="ref11">11</xref>
        ], which contains 1440
grayscale images. A binary version was generated for each
grayscale image. A few examples of grayscale images and
their binary versions are shown in Figure 1.
      </p>
      <p>Below are examples of processing the right half-tone and
binary images of Fig. 1 (wooden bars). In particular, Fig. 2
shows graphs of brightness z changes for samples of the
64th row in binary (upper left graph) and grayscale (upper
right graph) images, where z bl is the binarization level.</p>
      <p>It is not difficult to show that stochastic gradient values

β t differ from zero only at the points where the brightness
derivative of images is also not equal to zero by the
evaluated parameters. For a binary image, these are the
object boundaries. If at each iteration the local sample is
formed randomly (the hit of any image reference is equal to
it), the probability of selecting "informational" reference
corresponds to the probability of selecting the perimeter of
the object:
 Pp   L p ( L x L y )  2  L x  
where:  – local sample size; L p – the object perimeter in
samples: L x and L у – image size. This estimate is based on
the fact that the object image occupies about a half of the
image, e.g. for an image size of 256x256 pixels it is about
0 .008  . For grayscale images, brightness changes inside the
object, so the probability of selecting “informational” counts
in the local sample:
 
Pobj  0 .25  </p>
      <p>
        To increase the effective use of SGI on binary images,
due to the low probability of choosing “information”
samples, it is possible to increase the volume of the local
sample and the number of iterations. However, this
significantly reduces the speed of the method [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ]. In
addition, without preliminary processing of binary images,
the SGI has a small working range. An example of the
convergence of the estimates of the standard deviation
(RMS) of the brightness differences between the image and
the template (selected as the identification parameter) from
the iteration number is shown in Figure 3, where ˆ – RMS
estimation of the brightness difference. The parameters of the
initial shift mismatch were 10 steps of the grid of samples
and a rotation of 9 degrees for binary (a) and grayscale (b)
images. The figure shows that for the same sample size
( μ  21 ), the number of iterations required for identification
with a binary image and template is approximately twice as
large.
      </p>
      <p>(a)
(b)</p>
      <p>To improve the efficiency of SGI on binary images, one
can artificially increase the number of samples for which the
derivative of the objective function is nonzero. For this it is
advisable to use “blurring” the boundaries of the object
using smoothing filters, for example, a Gaussian filter
(lower graphs in Figure 2a). The optimal radius of the filter
mask can be determined from the following criteria: rate of
convergence of the estimates formed by SGI; maintaining
the stability of the shape of the object after the filtering
results; working range of identification parameters.</p>
      <p>
        Fig. 4a shows the results of experimental studies for
objects from the COIL-20 base. At first, the images were
artificially subjected to binarization and geometric
deformations, after which the parameters of these
deformations were estimated using SGI with a preliminary
low-pass filtering procedure. The size of the filter mask was
selected as a fraction  of the size of the object in the
image. This approach allows you to consider only the ratio
of the size of the object and the filter mask and not be tied to
the size of the object. The number of iterations T c to steady
state was estimated. In addition, the “distorted” object was
compared with another pattern (hereinafter adjacent
pattern), which was closest in shape. The averaged
correlation coefficient between the “distorted” object and
the adjacent template R ap transformed using the SGI was
used to assess the stability of the filtering results to the
shape of the object. For clarity, in Fig. 4, the dotted line also
shows the threshold value of identification by the
crosscorrelation coefficient obtained in [
        <xref ref-type="bibr" rid="ref12">12</xref>
        ].
      </p>
      <p>The graphs show that the number of iterations necessary
for estimates convergence formed by the SGI has significant
changes only up to a filter size of about 9% of the image
size, after which it decreases slightly. Exceeding the
threshold by the correlation coefficient R ap with the
“neighboring” pattern (which leads to false identification)
occurs when the filter mask size is more than 14%. Based on
the totality of the above criteria, we can assume that the
optimal mask size is 9-10% of the size of the object for a
Gaussian filter. When pre-filtering a grayscale image with
this filter mask, the number of iterations is necessary for the
convergence of the estimates Tc  380 , а the average
operating range of SGI is:   0 .3 ... 1 .5 ;    58 0...  58 0 ;
h   34 ...  34 pixels.</p>
      <p>
        A special way to select samples for a local sample is an
additional opportunity to increase the efficiency of SGI
when working with binary images. The trick is in the
random selection of samples only in the vicinity of the
boundary region, and not in the entire image. This allows us
not to consider samples in which the derivative of the
objective function is a priori zero. Experimental studies
have shown [
        <xref ref-type="bibr" rid="ref13">13</xref>
        ] that the number of iterations required for
identification is reduced by 10-15%.
      </p>
      <p>The use of pre-filtering with the same size of the filter
mask for grayscale images can lead to the opposite effect: a
decrease in the number of samples in which the derivative of
the objective function is nonzero. This can be seen, for
example, in Figure 2b (lower graph), where the size of the
preliminary filtering mask was 9% of the size of the object.
Inside the area of the object there are subregions in which
the brightness does not change (they are smoothed out).
Therefore, for grayscale images, we conducted a similar
study, the results of which are presented in Figure 4b.
(c).</p>
      <p>The graphs show that the optimal filter mask size for
grayscale images is the filter mask size of 2-3% of the
image size. Exceeding the threshold for correlation with the
adjacent template occurs at 7% of the size of the object.
When pre-filtering a grayscale image with a filter mask of
3%, the number of iterations is necessary for the
convergence of the estimates T c  520 , the average
operating range of the SGI when applying such a filter:
  0 .4 ... 1 .4 ;    38 0...  38 0 ; h   14 ...  14 pixels.</p>
      <p>This is approximately 1.5 times less in the rotation angle
parameter and 2.4 times in shift compared to the results
obtained in binary images.</p>
      <p>
        One way to reduce the effect of the size of the filter
mask on smoothing gaps inside an object is to pre-equalize
it. It allows you to align the histogram of the image and
increase the difference in brightness between adjacent pixels
[
        <xref ref-type="bibr" rid="ref7">7</xref>
        ]. Graphs of the number of iterations to the steady state
and the average correlation with the adjacent pattern versus
the filter size for grayscale images with preliminary
equalization are presented in Figure 4c. The figure shows
that the optimal filter mask size for grayscale images with
pre-equalization is the filter mask size of 3-4% of the image
size of the object, and the threshold for correlation with the
adjacent template is exceeded at 9%. The number of
iterations necessary for the convergence of estimates during
preliminary filtering of a grayscale image with a filter mask
of 4%, for which the histogram is preliminary aligned, is
T c  410 , а the average operating range of SGI is:
  0 .4 ... 1 .4 ;    45 0 ...  45 0 ; h   18 ...  18 pixels.
      </p>
      <p>This is approximately 10% more in terms of the angle
and shear parameters compared with the results obtained
without equalization.
(c).</p>
      <p>To illustrate the difference in operating ranges when
identifying objects represented by binary (a), grayscale (b)
and grayscale with pre-equalization (c) images, Figure 5
shows the identifiable object “wooden bars” with the
maximum rotation angle and scale factor that can be
estimated SGI. On the right is the template used for all
cases.</p>
    </sec>
    <sec id="sec-2">
      <title>IV. CONCLUSION</title>
      <p>The use of pre-filtering for binary images gives a
significant increase in the rate of convergence of estimates
formed by the stochastic gradient algorithm. According to
the results of studies based on COIL-20 images, the number
of iterations to the convergence of identification estimates
decreases by almost 10 times (on average from 3600 to 380
iterations) compared with the situation without preliminary
filtering. Low-pass filtering has a positive effect on
increasing the working range of the stochastic gradient
algorithm. The optimal size of the filter mask for binary
objects is 9-10% of the size of the object. The results of the
study of grayscale images showed that preliminary low-pass
filtering of objects is also advisable for them to increase the
rate of convergence of identification parameters and expand
the effective working range, but due to the peculiarities of
grayscale objects, the optimal size of the filter mask is 2-3%
of the size of the object.</p>
    </sec>
    <sec id="sec-3">
      <title>ACKNOWLEDGMENT</title>
      <p>The reported study was funded by RFBR &amp; Government
of the Ulyanovsk region according to the research projects №
19-29-09048 and № 19-47-730004.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>A.V.</given-names>
            <surname>Poltavskii</surname>
          </string-name>
          and
          <string-name>
            <given-names>A. V.</given-names>
            <surname>Grinshkun</surname>
          </string-name>
          , “
          <article-title>Basics of pattern recognition using computer technology,” Dual technology</article-title>
          , vol.
          <volume>2</volume>
          , no.
          <issue>79</issue>
          , pp.
          <fpage>55</fpage>
          -
          <lpage>66</lpage>
          ,
          <year>2017</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>V.A.</given-names>
            <surname>Knyaz</surname>
          </string-name>
          ,
          <string-name>
            <given-names>B.V.</given-names>
            <surname>Vishnyakov</surname>
          </string-name>
          ,
          <string-name>
            <given-names>V.S.</given-names>
            <surname>Gorbatsevich</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Yu.V.</given-names>
            <surname>Vizilter</surname>
          </string-name>
          and
          <string-name>
            <given-names>O.V.</given-names>
            <surname>Vygolov</surname>
          </string-name>
          ,
          <article-title>"Intelligent data processing technologies for unmanned aerial vehicles navigation and control,"</article-title>
          <source>SPIIRAS Proceedings</source>
          , vol.
          <volume>2</volume>
          , no.
          <issue>45</issue>
          , pp.
          <fpage>26</fpage>
          -
          <lpage>44</lpage>
          ,
          <year>2016</year>
          . DOI:
          <volume>10</volume>
          .15622/sp.45.2.
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>R.G.</given-names>
            <surname>Magdeev</surname>
          </string-name>
          and
          <string-name>
            <given-names>A.G.</given-names>
            <surname>Tashlinskii</surname>
          </string-name>
          , “
          <article-title>A comparative analysis of the efficiency of the stochastic gradient approach to the identification of objects in binary images,” Pattern recognition and image analysis</article-title>
          , vol.
          <volume>24</volume>
          , no.
          <issue>4</issue>
          , pp.
          <fpage>535</fpage>
          -
          <lpage>541</lpage>
          ,
          <year>2014</year>
          . DOI:
          <volume>10</volume>
          .1134/ S1054661814040130.
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>R.G.</given-names>
            <surname>Magdeev</surname>
          </string-name>
          and
          <string-name>
            <given-names>A.G.</given-names>
            <surname>Tashlinskii</surname>
          </string-name>
          , “
          <article-title>Efficiency of object identification for binary images</article-title>
          ,”
          <source>Computer Optics</source>
          , vol.
          <volume>43</volume>
          , no.
          <issue>2</issue>
          , pp.
          <fpage>277</fpage>
          -
          <lpage>281</lpage>
          ,
          <year>2019</year>
          . DOI:
          <volume>10</volume>
          .18287/
          <fpage>2412</fpage>
          -6179-2019-43-2-
          <fpage>277</fpage>
          -281.
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>V.A.</given-names>
            <surname>Kovalevskii</surname>
          </string-name>
          , “
          <article-title>Optimal Image Recognition Techniques</article-title>
          ,” Moscow, USSR: Science,
          <year>1976</year>
          , 328 p.
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>Ia.A.</given-names>
            <surname>Furman</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.N.</given-names>
            <surname>Iurev</surname>
          </string-name>
          and
          <string-name>
            <given-names>V.V.</given-names>
            <surname>Ianshin</surname>
          </string-name>
          , “
          <article-title>Digital methods of processing and recognition of binary images</article-title>
          ,” Krasnoiarsk, Russia: Izdatelstvo Krasnoiarskogo Universiteta,
          <year>1992</year>
          , 248 p.
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <given-names>A.G.</given-names>
            <surname>Tashlinskii</surname>
          </string-name>
          , “
          <source>Pseudogradient Estimation of Digital Images Interframe Geometrical Deformations,” Vision Systems: Segmentation &amp; Pattern Recognition, Austria, Vienna: I Tech Education and Publishing</source>
          , pp.
          <fpage>465</fpage>
          -
          <lpage>494</lpage>
          ,
          <year>2007</year>
          . DOI:
          <volume>10</volume>
          .5772/4975.
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <surname>Ya</surname>
            .
            <given-names>Z.</given-names>
          </string-name>
          <string-name>
            <surname>Tsypkin</surname>
          </string-name>
          , “Information theory of identification,” Moscow, Russia: Fizmatlit,
          <year>1995</year>
          , 336 p.
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [9]
          <string-name>
            <given-names>R.</given-names>
            <surname>Gonzalez</surname>
          </string-name>
          and
          <string-name>
            <given-names>R.</given-names>
            <surname>Woods</surname>
          </string-name>
          , “Digital image processing,” Upper Saddle River, New Jersey, USA: Prentice Hall,
          <year>2012</year>
          , 1012 p.
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          [10]
          <string-name>
            <given-names>G.L.</given-names>
            <surname>Fadeeva</surname>
          </string-name>
          , “
          <article-title>Optimization of the pseudogradient of the objective function when evaluating interframe geometric deformations of images: Disertatsiia kandidata tekhnicheskikh nauk</article-title>
          :
          <volume>05</volume>
          .
          <fpage>13</fpage>
          .18,” Ulianovsk, Russia: Izdatelstvo UlSTU,
          <year>2000</year>
          , 167 p.
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          [11]
          <string-name>
            <given-names>Columbia</given-names>
            <surname>Object Image</surname>
          </string-name>
          <article-title>Library (COIL-20) [Online]</article-title>
          . URL: http://www.cs.columbia.edu/CAVE/software/softlib/coil-20.php.
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          [12]
          <string-name>
            <given-names>A.G.</given-names>
            <surname>Tashlinskii and R.G</surname>
          </string-name>
          . Magdeev, “
          <article-title>Improving the reliability of identification of objects in binary images,” Information-measuring and control systems</article-title>
          , vol.
          <volume>15</volume>
          , no.
          <issue>12</issue>
          , pp.
          <fpage>24</fpage>
          -
          <lpage>30</lpage>
          ,
          <year>2017</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          [13]
          <string-name>
            <given-names>R.G.</given-names>
            <surname>Magdeev</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.G.</given-names>
            <surname>Tashlinskii</surname>
          </string-name>
          and
          <string-name>
            <given-names>P.V.</given-names>
            <surname>Iakshankin</surname>
          </string-name>
          , “
          <article-title>Estimation of the probability of disruption during pseudo-gradient search for image fragments,” Radio-electronic devices and systems for infocommunication technologies: RES-</article-title>
          <year>2013</year>
          , Moscow, Russia, pp.
          <fpage>324</fpage>
          -
          <lpage>326</lpage>
          ,
          <year>2013</year>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>