<!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>Interpolation for differential and hierarchical compression of multidimensional signals</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>S A Denisov</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>M V Gashnikov</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Samara National Research University</institution>
          ,
          <addr-line>Moskovskoe Shosse 34А, Samara, Russia, 443086</addr-line>
        </aff>
      </contrib-group>
      <pub-date>
        <year>2018</year>
      </pub-date>
      <fpage>365</fpage>
      <lpage>371</lpage>
      <abstract>
        <p>A comparative research of interpolation algorithms for hierarchical and differential methods of signal compression is performed. The hierarchical method of signal compression is based on hierarchical grid interpolation. The differential method of signal compression is based on differential pulse-code modulation (DPCM). Versions with maximum error control are used for both methods. Computational experiments are performed in natural test signals. The dependence of the compression ratio on the maximum error and on the standard error is given for both methods.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1. Introduction</title>
      <p>
        To date, digital systems contain a huge amount of multidimensional information. First of all, these are
hyperspectral data [
        <xref ref-type="bibr" rid="ref1 ref2">1-2</xref>
        ], the results of remote sensing [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ], as well as video, charts, diagrams,
drawings, photographs, etc. Such a variety of information requires a huge size of space to store this
information on servers. Accordingly, to reduce the size of stored signals, effective algorithms for
signal compression are required.
      </p>
      <p>
        There is large number of algorithms for signal compression [
        <xref ref-type="bibr" rid="ref10 ref11 ref4 ref5 ref6 ref7 ref8 ref9">4-11</xref>
        ]. The compression method
JPEG [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ] is currently the most common method for signal compression. This method is based on a
discrete cosine transformation [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ]. The JPEG-2000 method [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ] is more effective [
        <xref ref-type="bibr" rid="ref11">11</xref>
        ]. This method is
based on wavelet. But this method is much less common.
      </p>
      <p>
        Both of these methods are based on transformation the signal into a certain space of coefficients.
This allows you to achieve high compression ratios. However, error control in the transformed space is
difficult. If it is necessary to control the error, other methods of signal compression are promising.
First of all, these are differential [
        <xref ref-type="bibr" rid="ref4 ref5">4-5</xref>
        ] and hierarchical [
        <xref ref-type="bibr" rid="ref12 ref13">12-13</xref>
        ] methods of signal compression. These
methods allow you to control the maximum error [
        <xref ref-type="bibr" rid="ref14">14</xref>
        ].
      </p>
      <p>In addition, the computational complexity of these methods is much less, since there is no
transformation into a spectral space. These methods also have many other advantages (noise
immunity, buffer memory management in real-time systems, etc.). Therefore, the task of investigating
such compression methods is topical.</p>
      <p>Differential and hierarchical compression methods decorrelate a signal in the same way.
Transformation to a difference representation of the signal occurs. The difference signal is calculated
as the difference between the original and interpolated samples of the signal. The difference between
differential and hierarchical compression methods lies in interpolation algorithm. In differential
methods, a progressive scan is used, and the signal samples are interpolated on the basis of previous
samples. In hierarchical methods, the signal is interpolated based on more resampled versions of the
same signal. The question of which interpolation algorithm is more effective requires research.</p>
      <p>In this paper, computational experiments are performed comparing differential and hierarchical
methods of signal compression with each other. The research is performed in the ordinates
"error/compression ratio". The compression method of JPEG is used as a basis for comparison.</p>
    </sec>
    <sec id="sec-2">
      <title>2. Differential compression of signals</title>
      <p>
        Differential compression of signals is also called differential pulse-code modulation (DPCM) [
        <xref ref-type="bibr" rid="ref4 ref5">4-5</xref>
        ].
Here is a brief description of this compression method (see Figure 1). The multidimensional
signal X  x c is processed in the order of some scan ( c is the vector of the signal's arguments).
      </p>
      <sec id="sec-2-1">
        <title>Original signal</title>
      </sec>
      <sec id="sec-2-2">
        <title>Inteerpolation of original signal</title>
      </sec>
      <sec id="sec-2-3">
        <title>Caclulation of difference signal</title>
      </sec>
      <sec id="sec-2-4">
        <title>Quantization of difference signal</title>
      </sec>
      <sec id="sec-2-5">
        <title>Reconstruction</title>
        <p>of original signal
Statistical
encoding
of quantized signal
(1)
(3)
q c  Q  f c
.</p>
        <sec id="sec-2-5-1">
          <title>First, for each sample, an interpolated value is calculated</title>
          <p>where I(..) is some interpolator, and x k  are the previous (already processed) signal samples.</p>
        </sec>
        <sec id="sec-2-5-2">
          <title>These samples have already been compressed and decompressed.</title>
        </sec>
        <sec id="sec-2-5-3">
          <title>After interpolation, the sample of difference signal is calculated:</title>
          <p>. (2)</p>
          <p>If the original signal has a high correlation, the variance of the difference signal is much smaller
than the variance of the original signal. This makes it possible to compress the difference signal much
more than the original signal. To increase the compression ratio, the difference signal is quantized
using the quantization function Q(..):</p>
          <p>
            The entropy [
            <xref ref-type="bibr" rid="ref4">4</xref>
            ] of the quantized signal q c  is much smaller than the entropy of the difference
signal f c , so the quantized signal is compressed much more. In this paper, a uniform scale is used
for quantization. In this situation, the actual quantizer can be written in the form:
 emax  f 
q  Q  f   sign  f   
 2emax  1  ,
where [..] denotes the integer part of a number, and sign( f ) is calculated as follows:
(4)
(5)
(6)
(8)
X 
l0
          </p>
          <p>Xl</p>
          <p>,
XL1   xL1 c</p>
          <p>,
Xl
  xl c \  xl1 c, l  L 1
The quantized signal q c  is processed by a statistical encoder and stored in the archive.</p>
          <p>After the quantization, the signal sample is restored:
where x c are the reconstructed signal samples. Exactly the same values will be obtained after
decompression. With compression, these values are needed for interpolation (1) of subsequent
samples. The use of reconstructed signal samples rather than the original signal samples for
interpolation (1) makes it possible to ensure that the interpolated values are the same at the stages of
compression and decompression.</p>
        </sec>
      </sec>
    </sec>
    <sec id="sec-3">
      <title>3. Hierarchical compression of signals</title>
      <p>Hierarchical compression of signals is based on a special hierarchical representation of the signal
[1213]. This representation of the signal is similar to a quad tree. A multidimensional signal X  x c
is represented as a set of hierarchical levels Xl (see also Figures 2-3):
L1
where L is the number of hierarchical levels Xl, {xl c} is the signal resampled with step 2l:
xl c  x 2l c
. (7)</p>
      <p>This hierarchical representation of the signal makes possible a sequential compression of the
hierarchical levels. We compress the hierarchical levels in the following sequence: XL-1, XL-2, .., X2,
X1, X0. The hierarchical level XL-1 is stored in the archive without any changes, since the data size of
this level is very small. The samples of all other hierarchical levels are interpolated on the basis of
samples of more resampled hierarchical levels:
 L1
xl ( c )  I 
 kl1</p>
      <p>
X k  ,
</p>
      <p>After the interpolation, the difference signal is calculated:
.</p>
      <p>Then this difference signal is quantized by means of some quantization function Q(..):
The quantized signal ql c is processed by a statistical encoder and stored in an archive. The
quantizer (4) with uniform scale is used in this paper, which allows us to control (5) the maximum
error emax for each signal sample.</p>
      <p>After quantization, the signal sample recovery is performed:
where</p>
      <p>x c are the reconstructed signal samples. These samples are subsequently used to
interpolate (8) the samples of less resampled hierarchical levels of the signal.</p>
      <p>3 1 2 1 3
where xl ( c ) are interpolating values, I(..) is interpolation function, and X k are the hierarchical levels
that have already been compressed and decompressed.</p>
      <p>,
1
2
1
1
1
1
1
1
1
1
2
1
1
2
1</p>
      <p>2</p>
    </sec>
    <sec id="sec-4">
      <title>4. Interpolation of digital signals during compression</title>
      <p>
        With differential and hierarchical compression, the already processed samples are used for
interpolation. To reduce computational complexity, simple averaging functions are used in this
case [
        <xref ref-type="bibr" rid="ref4 ref5">4-5</xref>
        ]. To simplify the explanation, we describe interpolation functions for the case of a
twodimensional signal X  x c  x m, n .
      </p>
      <p>x m, n </p>
      <p>
        2
During differential compression, the following interpolator is used in this work [
        <xref ref-type="bibr" rid="ref15 ref16 ref17">15-17</xref>
        ]:
1 1
x (m 1, n) 
x (m 1, n 1)  x (m, n 1)
      </p>
      <p>(9)
(10)
(11)</p>
      <p>With hierarchical compression, the following expression was used to interpolate samples with
indices of the form 2m  1, 2n 1 :
xl 2m  1, 2n  1   1  xl1 m, n  xl1 m  1, n  xl1 m, n  1  xl1 m  1, n  1  1
 4  ,(12)
where [..] denotes the integer part of the number, {xl m, n} is a signal resampled in 2l times:
xl m, n  x 2l m, 2l n
.</p>
      <p>Samples with indices xl 2m 1,2n and xl 2m, 2n 1 are interpolated as follows:
(13)
xl 2m  1, 2n</p>
      <p> 1

 2
 xl1 m, n  xl1 m  1, n  
 . (14)</p>
      <p>The interpolator (13-14) is shown in Figure 4a. Next to Figures 4b-4c two more hierarchical
interpolators are shown in the same notation.</p>
      <p>The described averaging interpolators for hierarchical and differential compression are very simple
and have low computational complexity.</p>
    </sec>
    <sec id="sec-5">
      <title>5. Experimental research of interpolation algorithms of signals</title>
      <p>The considered interpolators were investigated within the framework of the appropriate methods of
signal compression. For this research, computational experiments were performed. Nature test signals
were used in computational experiments. Some examples of decompressed test signals are shown in
Figures 5-6.</p>
      <p>The algorithms were compared in the coordinates "error/compression ratio". As a basis for
comparison, the JPEG method was used. In this case, the maximum (4) error emax was used as an error
between the original and decompressed signals. We also used the root mean square (RMS) error as a
measure of this error:
eRMS 
1</p>
      <p> x c  x c
S c
2
,
(15)
where S is the number of signal samples, x c  is the original signal, x c  is the decompressed signal.
Typical results of computational experiments are shown in Figures 7-8. Based on the results of
computational experiments, the following conclusions were made.</p>
      <p>1. Compression ratio K of hierarchical compression and differential compression is greater than
the compression ratio of the JPEG method with small RMS error. With large RMS error, the
compression ratio of the JPEG method is better.
2. The maximum error emax hierarchical compression is less than the maximum error of the
differential compression and the maximum error of the JPEG method.
3. RMS error eRMS of hierarchical compression is less than the RMS error of differential
compression.</p>
    </sec>
    <sec id="sec-6">
      <title>6. Conclusion</title>
      <p>Differential and hierarchical methods of multidimensional signals compression are considered.
Algorithms of signals interpolation for differential and hierarchical signal compression are considered.
Algorithms of interpolation and signal compression are implemented as software. Computational
experiments were performed to investigate signal interpolation algorithms within the framework of
signal compression methods. Computational experiments were performed comparing hierarchical and
differential methods of signal compression on a set of natural test signals. As a basis for comparison,
the JPEG compression method was used. The results of the computational experiments are shown in
the coordinates "error/compression ratio". As a measure of error, RMS and maximum errors are used.
The conditions under which hierarchical compression has an advantage over differential compression
and the JPEG method are described.</p>
    </sec>
    <sec id="sec-7">
      <title>Acknowledgments</title>
      <p>This paper was funded by RFBR according to the research projects 18-01-00667, 18-07-01312.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <surname>Chang</surname>
            <given-names>C 2013</given-names>
          </string-name>
          <string-name>
            <surname>Hyperspectral Data</surname>
          </string-name>
          <article-title>Processing: Algorithm Design</article-title>
          and
          <string-name>
            <surname>Analysis</surname>
          </string-name>
          (New York: Wiley Press) p
          <fpage>1164</fpage>
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <surname>Chang</surname>
            <given-names>C 2007</given-names>
          </string-name>
          <article-title>Hyperspectral data exploitation: theory and applications</article-title>
          (New York: WileyInterscience) p
          <fpage>440</fpage>
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <surname>Borengasser</surname>
            <given-names>M 2004</given-names>
          </string-name>
          <string-name>
            <surname>Hyperspectral Remote Sensing - Principles</surname>
          </string-name>
          and Applications (CRC Press) p
          <fpage>128</fpage>
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <surname>Sayood</surname>
            <given-names>K 2012</given-names>
          </string-name>
          <string-name>
            <surname>Introduction to Data Compression</surname>
          </string-name>
          (The Morgan Kaufmann Series in Multimedia Information and Systems) p
          <fpage>743</fpage>
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <surname>Salomon</surname>
            <given-names>D 2007</given-names>
          </string-name>
          <string-name>
            <surname>Data Compression</surname>
          </string-name>
          .
          <source>The Complete Reference</source>
          (Springer-Verlag) p
          <fpage>1118</fpage>
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <surname>Gupta</surname>
            <given-names>V</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Sharma</surname>
            <given-names>A</given-names>
          </string-name>
          and
          <string-name>
            <surname>Kumar</surname>
            <given-names>A 2014</given-names>
          </string-name>
          <string-name>
            <surname>Enhanced Image Compression Using</surname>
          </string-name>
          Wavelets
          <source>International Journal of Research in Engineering and Science (IJRES) 2</source>
          <volume>55</volume>
          -
          <fpage>62</fpage>
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <surname>Woon</surname>
            <given-names>W M</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Ho A T S</surname>
          </string-name>
          ,
          <string-name>
            <surname>Yu</surname>
            <given-names>T</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Tam</surname>
            <given-names>S C</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Tan S C and Yap L T 2000</surname>
          </string-name>
          <article-title>Achieving high data compression of self-similar satellite images using fractal Proc</article-title>
          .
          <source>of IEEE Int. Geoscience and Remote Sensing Symposium</source>
          (IGARSS)
          <fpage>609</fpage>
          -
          <lpage>611</lpage>
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <surname>Wallace</surname>
            <given-names>G</given-names>
          </string-name>
          1991
          <source>The JPEG Still Picture Compression Standard Communications of the ACM</source>
          <volume>34</volume>
          (
          <issue>4</issue>
          )
          <fpage>30</fpage>
          -
          <lpage>44</lpage>
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [9]
          <string-name>
            <surname>Plonka</surname>
            <given-names>G</given-names>
          </string-name>
          and
          <string-name>
            <surname>Tasche M 2005</surname>
          </string-name>
          <article-title>Fast and numerically stable algorithms for discrete cosine transforms</article-title>
          <source>Linear Algebra and its Applications</source>
          <volume>394</volume>
          (
          <issue>1</issue>
          )
          <fpage>309</fpage>
          -
          <lpage>345</lpage>
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          [10]
          <string-name>
            <surname>Li</surname>
            <given-names>J 2003</given-names>
          </string-name>
          <string-name>
            <surname>Image Compression</surname>
          </string-name>
          :
          <source>The Mathematics of JPEG-2000 Modern Signal Processing</source>
          <volume>46</volume>
          <fpage>185</fpage>
          -
          <lpage>221</lpage>
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          [11]
          <string-name>
            <surname>Ebrahimi</surname>
            <given-names>F</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Chamik</surname>
            <given-names>M</given-names>
          </string-name>
          and
          <article-title>Winkler S 2004 JPEG vs</article-title>
          .
          <source>JPEG2000: An Objective Comparison of Image Encoding Quality Proc. of SPIE Applications of Digital Image Processing XXVII</source>
          <volume>5558</volume>
          <fpage>300</fpage>
          -
          <lpage>308</lpage>
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          [12]
          <string-name>
            <surname>Gashnikov</surname>
            <given-names>M V</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Glumov</surname>
            <given-names>N I</given-names>
          </string-name>
          and
          <string-name>
            <surname>Sergeyev</surname>
            <given-names>V V</given-names>
          </string-name>
          <string-name>
            <surname>Compression</surname>
          </string-name>
          <article-title>Method for Real-</article-title>
          <source>Time Systems of Remote Sensing Proc. 15th Int. Conf. on Pattern Recognition</source>
          <volume>3</volume>
          <fpage>232</fpage>
          -
          <lpage>235</lpage>
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          [13]
          <string-name>
            <surname>Gashnikov</surname>
            <given-names>M V</given-names>
          </string-name>
          <year>2017</year>
          <article-title>Minimizing the entropy of post-interpolation residuals for image compression based on hierarchical grid interpolation</article-title>
          <source>Computer Optics</source>
          <volume>41</volume>
          (
          <issue>2</issue>
          )
          <fpage>266</fpage>
          -
          <lpage>275</lpage>
          DOI: 10.18287/
          <fpage>2412</fpage>
          -6179-2017-41-2-
          <fpage>266</fpage>
          -275
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          [14]
          <string-name>
            <surname>Lin</surname>
            <given-names>S 2004</given-names>
          </string-name>
          <string-name>
            <surname>Error Control</surname>
          </string-name>
          <article-title>Coding: Fundamentals and Applications, second edition</article-title>
          (New Jersey: Prentice-Hall) p
          <fpage>1260</fpage>
        </mixed-citation>
      </ref>
      <ref id="ref15">
        <mixed-citation>
          [15]
          <string-name>
            <surname>Efimov V M and Kolesnikov A N 1997</surname>
          </string-name>
          <article-title>Effectiveness estimation of the hierarchical and line-byline lossless compression algorithms Proc. of the III conf</article-title>
          .
          <source>Pattern Recognition and Image Analisys</source>
          <volume>1</volume>
          <fpage>157</fpage>
          -
          <lpage>161</lpage>
        </mixed-citation>
      </ref>
      <ref id="ref16">
        <mixed-citation>
          [16]
          <string-name>
            <surname>Gashnikov</surname>
            <given-names>M V</given-names>
          </string-name>
          <year>2016</year>
          <article-title>Interpolation for hyperspectral images compression</article-title>
          <source>CEUR Workshop Proc</source>
          .
          <volume>1638</volume>
          <fpage>327</fpage>
          -
          <lpage>333</lpage>
        </mixed-citation>
      </ref>
      <ref id="ref17">
        <mixed-citation>
          [17]
          <string-name>
            <surname>Gashnikov</surname>
            <given-names>M V</given-names>
          </string-name>
          and
          <string-name>
            <surname>Glumov N I 2015</surname>
          </string-name>
          <article-title>Hyperspectral images repository using a hierarchical compression Posters proc</article-title>
          .
          <source>of 23 Int. Conf. on Computer Graphics, Visualization and Computer Vision 1-4</source>
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>