<!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>Optimization of computational complexity of lossy compression algorithms for hyperspectral images</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>L I Lebedev</string-name>
          <email>lebedev@pmk.unn.ru</email>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>A O Shakhlan</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Bauman Moscow State Technical University</institution>
          ,
          <addr-line>2nd Baumanskaya st., 5/1, Moscow, Russia, 105005</addr-line>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>Lobachevsky State University of Nizhny Novgorod</institution>
          ,
          <addr-line>Ulyanov st., 10, Nizhny Novgorod, Russia, 603005</addr-line>
        </aff>
      </contrib-group>
      <pub-date>
        <year>2019</year>
      </pub-date>
      <fpage>297</fpage>
      <lpage>301</lpage>
      <abstract>
        <p>In this paper, we consider the solution of the problem of increasing the speed of the algorithm for hyperspectral images (HSI) compression, based on recognition methods. Two methods are proposed to reduce the computational complexity of a lossy compression algorithm. The first method is based on the use of compression results obtained with other parameters, including those of the recognition method. The second method is based on adaptive partitioning of hyperspectral image pixels into clusters and calculating the estimates of similarity only with the templates of one of the subsets. Theoretical and practical estimates of the increase in the speed of the compression algorithm are obtained.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>ε m ( A) = minε ( A) =
A
1</p>
    </sec>
    <sec id="sec-2">
      <title>2. Criteria for assessing the proximity of signatures</title>
      <p>Let us consider some criteria for calculating similarity estimates:</p>
      <p>
        A(ye ) = ye : ε mnt =M(ye )2 + M y2 − 2 ⋅ M yey ;
A(ye ) = ye + ∆ye :
ε mot =D ye + D y − 2 ⋅ cov(ye , y) , ∆ye = M y − M ye ;
(
        <xref ref-type="bibr" rid="ref2">2</xref>
        )
A(ye ) =km ⋅ ye :
ε st
m
      </p>
      <p>=M y2 − M2 (yey) M(ye )2 , km = M(yey) M(ye )2 ;
A(ye ) = km ⋅ ye + ∆ye : ε mat =D y − cov2 (ye , y) D ye , km = cov(ye , y) D ye , ∆ye = M y − km ⋅ M ye .</p>
      <p>In the above formulas, Μy , Μye , Μy2 , Μ(ye )2 denote the initial moments of the first and second
orders of the current signature and template;</p>
      <p>Μyey is the mixed covariance moment; Dy , Dye
denote the dispersion of the signature and the template; cov(ye , y) is the correlation moment; ∆ye , km
are the bias and the scale factor [1-3].</p>
    </sec>
    <sec id="sec-3">
      <title>3. Recognition algorithm with self-learning</title>
      <p>
        Based on the proximity estimates (
        <xref ref-type="bibr" rid="ref2">2</xref>
        ), in accordance with the recognition algorithm, for each template
pixel ye and the current signature y , the value ε m (y, ye ) is calculated; among these values, the
smallest one, ε min (y) is found. If this estimate is greater than a given threshold ε min (y) &gt; δ , then a
new template is formed on the basis of the signature description y . When ε min (y) &lt; δ , the pixel is
considered to be recognized and using the parameters obtained, a corresponding record in the output
file is made. For all the similarity estimates (
        <xref ref-type="bibr" rid="ref2">2</xref>
        ), a template number must be assigned, which is
recorded in a 2-byte field (or a 4-byte field if the number of templates exceeds 65536). The values ∆ye
and km are given by real variables, which are recorded in 4-byte fields. Therefore, the length of the
structures for writing the parameters depending on the similarity estimate used will be equal,
respectively, to 2, 6, 6 and 10 bytes (or 4, 8, 8 and 12 bytes)..
      </p>
    </sec>
    <sec id="sec-4">
      <title>4. Optimization of computations in the HSI compression algorithm</title>
      <p>
        Let us consider two possibilities for increasing the speed of the compression algorithm under
consideration. It follows from the recognition algorithm that the number of obtained templates
depends on the threshold value δ , which in turn is determined by the error limited to a certain
percentage σ of the current signature. Then the recognition and, therefore, the compression will be
performed using an adaptive threshold δ =(0.01⋅σ )2 ⋅ Μy2 . From the analysis of formula (
        <xref ref-type="bibr" rid="ref2">2</xref>
        ), it
follows that when compressing a HSI with a similarity estimate ε at , the number of templates will be
m
the smallest among all compression algorithms using the remaining proximity estimates. In turn,
compression algorithms based on proximity estimates ε mst and ε mot have some advantages in terms of
speed over the algorithm using the proximity estimate ε nt . Similarly, the greater the value σ , the
m
less templates will be obtained in the recognition process and thus the shorter the HSI compression
time. Therefore, in order to reduce compression time required by more time-consuming algorithms, it
is necessary to use the results of compression provided by faster compression algorithms. The
modification of the compression algorithm in this variant consists in calculating the estimate of
similarity only with the templates generated by the template of the high-speed algorithm. The second
modification of the compression algorithm is based on the current clustering of signatures being
recognized and forming own templates in each cluster. Therefore, if the current signature is assigned
to a cluster, the similarity estimate will be formed on the basis of the templates of this cluster. The
clustering is carried out in the space of the features, which can be easily obtained by calculating the
initial moments of the first and second orders of the current pixels.
      </p>
      <p>Let us estimate the computational complexity of recognition methods based on the proposed
similarity estimates. Let the function describing the dependence of the number of templates used on
the current number of the pixel being recognized be given by the formula v = [ f (u)] , with
m = f (N ) , f (0) = 0 ,</p>
      <p>where N is the number of pixels of the image, and m is the number of
templates obtained during image compression. The function v = [ f (u)] is piecewise constant and,
therefore, an increase in the number of templates per unit occurs during the compression of pixels with
the numbers u = Ni . Hence, f (Ni ) − f (Ni−1) =1,and from this expression one can find the numbers
of pixels Ni . Then the computational complexity of the HSI compression algorithm will be
determined by the formula:</p>
      <p>
        m
C = ∑ i ⋅ (Ni − Ni−1) ⋅ O(n)
i=1
, (
        <xref ref-type="bibr" rid="ref3">3</xref>
        )
where O(n) is the complexity of obtaining the estimate of similarity of a pixel with the template. If we
assume that f (u) is a linear function of (L), then C(L) = [N ⋅ (m + 1) / 2] ⋅ O(n) , since
Ni − Ni−1 =Nm . However, as a rule, the number of templates increases faster at the initial stage of
compression and slows down closer to the completion of the HSI pixel recognition process. If we take
the parabola (P) u = N ⋅ v2 m2 as a function approximating the plot of the number of templates
depending on the number of pixels processed, then it follows from the expression
m ⋅ Ni N − m ⋅ Ni−1 N =1 that Ni − Ni−1 =N m2 ⋅ (2 ⋅ i − 1) . Hence, the computational complexity
of the HSI compression algorithm in this case can be estimated by the value
C(P) = [N ⋅ (m + 1) ⋅ (4 − 1 m) 6] ⋅ O(n) , and therefore, C(P) C(L) ≈ 4 3 . In the case of the cubic
dependence
(K)
u = N ⋅ v3 m3 ,
the
computational
complexity
is
equal
to
C(K ) = [N ⋅ (m + 1) ⋅ (3 − 1 m) 4] ⋅ O(n) , and C(K ) C(L) ≈ 3 2 . For the proposed approximation
functions, the computational complexity of the recognition algorithm is proportional to N (m + 1) and,
therefore, if the number of templates is M &gt; m , then while maintaining the same distribution law, the
HSI compression time will increase by a factor of M m . Note that an increase in the HSI compression
time does not depend on the distribution law.
      </p>
    </sec>
    <sec id="sec-5">
      <title>5. Experimental research</title>
      <p>Experiments on solving recognition problems were performed on the f100520t01p00-12 HSI file of
the AVIRIS spectrometer based on 224 frequencies with wavelengths in the range from 365.9298 to
2496.236 nm. The original HSI was represented by a matrix of 813×2109 pixels with a resolution of
17.3 m. A two-byte format for representing the spectrum amplitude values was used. At the beginning,
filtering (correction of values) of spectral images of the original HSI was performed. Its purpose was
to replace the negative values of the signature with the data obtained by piecewise linear
approximation with the closest positive values. Signatures with completely negative or positive
component values were not adjusted. The number of pixels with completely negative values was
207055 of the total number 1714617 (≈12%).</p>
      <p>
        By using compression with an adaptive threshold, calculated for the value σ = 2 for the similarity
estimates listed in (
        <xref ref-type="bibr" rid="ref2">2</xref>
        ), we obtained 2582, 1841, 976 and 785 templates, respectively. Since it can be
expected that the computational complexity of compression is proportional to the number of templates
obtained in the course of recognition, the running time of the algorithm may vary up to 3.3 times when
using different similarity estimates. Figure 1 shows the graphs of the number of templates used
depending on the current number of a HSI pixel being recognized for various similarity estimates.
Figure 2 shows the graphs of various functions a) - c) approximating the dependence of the number of
templates used on the current number d). Figure 3 shows a histogram of the number of signatures
recognized by each template when using the estimate ε st . It can be concluded from these graphs that
m
the bulk of the pixels is encoded on the basis of the first third of the templates. However, the
remaining pixels will use in the coding almost the entire set of templates, which leads to an increase in
the running time of the algorithm. When using a modification of the compression algorithm utilizing
the results obtained in recognition with the estimate ε st , each signature will be compared on average
m
with only three templates.
12891 templates for the time ≈ 160 minutes. The execution time of the proposed compression
algorithm for σ = 5 with the account of the time for obtaining clusters was ≈ 13 minutes, which
corresponds to theoretical estimates. Figure 4 shows the plots of the number of templates used to
obtain the same similarity estimate depending on the current HSI pixel number for various
compression thresholds and their approximation by analytical functions.
      </p>
    </sec>
    <sec id="sec-6">
      <title>6. Conclusion</title>
      <p>Experiments performed on hyperspectral images have confirmed the estimates of the expected
increase in the speed of the modified recognition algorithms based on self-learning recognition. It was
established that the speed of the modified compression algorithms is more than an order of magnitude
higher than their original counterparts. A further increase in speed can be achieved by parallelizing the
computations at each step of the two-step compression algorithm proposed.</p>
    </sec>
    <sec id="sec-7">
      <title>Acknowledgements</title>
      <p>This work was supported by the Russian Science Foundation, project No. 16-11-00068.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <surname>Lebedev</surname>
            <given-names>L I</given-names>
          </string-name>
          <year>2018</year>
          <article-title>Recognition and classification of objects in a hyperspectral image Proceedings of the 5th International Scientific Conference «Regional problems of remote sensing of the earth»</article-title>
          (Krasnoyarsk: Siberian Federal University)
          <fpage>138</fpage>
          -
          <lpage>143</lpage>
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <surname>Lebedev</surname>
            <given-names>L I</given-names>
          </string-name>
          and
          <string-name>
            <surname>Shakhlan</surname>
            <given-names>A O</given-names>
          </string-name>
          <year>2018</year>
          <article-title>Spatial analysis of hyperspectral images Proceedings of the 25th International Scientific Conference</article-title>
          (Tomsk: Tomsk Polytechnic University)
          <fpage>150</fpage>
          -
          <lpage>153</lpage>
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <surname>Lebedev</surname>
            <given-names>L I</given-names>
          </string-name>
          <year>2013</year>
          Correlation
          <article-title>- extreme contour recognition methods. Theoretical foundations: A study manual (Nizhny Novgorod:</article-title>
          Nizhny Novgorod State University) p
          <fpage>113</fpage>
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <surname>Tatarnikov</surname>
            <given-names>V V</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Pestunov</surname>
            <given-names>I A</given-names>
          </string-name>
          and
          <string-name>
            <surname>Berikov</surname>
            <given-names>V B</given-names>
          </string-name>
          <year>2017</year>
          <article-title>Centroid averaging algorithm for a clustering ensemble</article-title>
          <source>Computer Optics</source>
          <volume>41</volume>
          (
          <issue>5</issue>
          )
          <fpage>712</fpage>
          -
          <lpage>718</lpage>
          DOI: 10.18287/
          <fpage>2412</fpage>
          -6179-2017-41-5-
          <fpage>712</fpage>
          -718
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <surname>Myasnikov</surname>
            <given-names>E V</given-names>
          </string-name>
          <year>2017</year>
          <article-title>Hyperspectral image segmentation using dimensionality reduction and classical segmentation approaches</article-title>
          <source>Computer Optics</source>
          <volume>41</volume>
          (
          <issue>4</issue>
          )
          <fpage>564</fpage>
          -
          <lpage>572</lpage>
          DOI: 10.18287/
          <fpage>2412</fpage>
          -179- 2017-41-4-
          <fpage>564</fpage>
          -572
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <surname>Varlamova</surname>
            <given-names>A A</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Denisova</surname>
            <given-names>A Y</given-names>
          </string-name>
          and
          <string-name>
            <surname>Sergeev</surname>
            <given-names>V V</given-names>
          </string-name>
          <year>2018</year>
          <article-title>Earth remote sensing data processing technology for obtaining vegetation types maps</article-title>
          <source>Computer Optics</source>
          <volume>42</volume>
          (
          <issue>5</issue>
          )
          <fpage>864</fpage>
          -
          <lpage>876</lpage>
          DOI: 10.18287/
          <fpage>2412</fpage>
          -6179-2018-42-5-
          <fpage>864</fpage>
          -876
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>