You are on page 1of 10

Electronics and Communications in Japan, Part 3, Vol. 81, No.

10, 1998
Translated from Denshi Joho Tsushin Gakkai Ronbunshi, Vol. J80-A, No. 9, September 1997, pp. 1379–1387

Application of Wavelet Transforms to Compression of


Mechanical Vibration Data

Makoto Tanaka and Masatoshi Sakawa

Faculty of Engineering, Hiroshima University, Higashi-Hiroshima, Japan 739

Mitsuharu Abe

NTT Co., Hiroshima, Japan 730

Kosuke Kato

Faculty of Engineering, Hiroshima University, Higashi-Hiroshima, Japan 739

SUMMARY shown that the system using the wavelet with a higher-order
tap has the highest compression performance and that the
To detect abnormality of rotating machines in facto- compression factor is about 3 to 8 in the allowable distortion
ries and power generating plants, the vibration data of the range of 1 to 10%. ©1998 Scripta Technica, Electron
machines are used as a guide to express abnormal phenom- Comm Jpn Pt 3, 81(10): 16–25, 1998
ena. In order to improve the diagnostic accuracy of the
rotating machine diagnostic system, the storage and analy-
sis of a large amount of vibration data is important. For Key words: Wavelet transform; data compression;
efficient data storage and transmission, data compression is rotating machine; vibration data.
indispensable. In this paper, with a view to reducing data
storage capacity and the transmission capacity in the rotat-
ing machine diagnostic system, compression of machine
vibration data is attempted. In the proposed compression 1. Introduction
system, wavelet transforms are used so that the distortion
generated in compression and reconstruction have minimal Various machines are installed in power generating
effect on the diagnostics. Considering the mode of system stations and factories. If these machines are accurately
usage, a compression system is proposed that maximizes synchronized, the plants function as intended. In order to
the compression ratio at allowable distortions. In order to maintain the machinery in normal condition, maintenance
evaluate the overall performance of the proposed compres- operations are important. However, detection of malfunc-
sion system, data compression by several orthogonal wav- tions and diagnosis mostly depend on the experience and
elets composed of Daubechies bases and those generated knowledge of maintenance personnel. An automatic diag-
by DCT (discrete cosine transform) are compared. It is nostic system is desirable with a view to reducing the load

CCC1042-0967/98/100016-10
16 © 1998 Scripta Technica
on the maintenance personnel and rationalizing the main-
tenance program.
For rotating machines often used in plants, various
rotating machine diagnostic systems have been developed.
A typical diagnostic technique common to all these systems
is the Fourier transform of the vibration waveform. The
diagnostics are carried out by using the low frequency
components, especially those lower than 1 kHz.
In order to improve the accuracy of diagnostic sys-
tems, it is important to understand the vibration charac-
teristics of the rotating machine to be diagnosed. To this
end, it is necessary to collect and analyze many vibration Fig. 1. Diagnosis system for rotating machinery.
data and to compare the diagnostic results and the mainte-
nance results. When the number of rotating machines is
extremely large, the amount of data treated by a diagnostic
system in data storage and data transmission is enormous.
Although the acceleration sensors often used as vibration If all of the broadband signals in the 5 kHz to 10 kHz
sensors can sense frequencies in the range exceeding 1 kHz, interval from the sensor are stored for several hundred
they are rarely used for a bandwidth larger than 1 kHz. machines for an entire plant, the amount of data per day
However, these high frequency components are said to offer may reach several tens of megabytes. To effectively record
the initial indications of a malfunction. Therefore, the main- and maintain such enormous data sets, data compression is
tenance and analysis of broadband vibration data contain- indispensable. Since these data are used in abnormality
ing high frequency components are important for diagnostics for the machines, the allowable error in the
improvement of the accuracy of the diagnostic system. reconstructed data must be held to a level that does not
Hence, in this paper the compression of machine vibration affect the diagnosis.
data is attempted, with a view to reducing storage capacity Based on the requirements that
and transmission capacity. · degradation caused by compression and recon-
In the area of data compression, the discrete cosine struction should not adversely affect the accuracy
transform (DCT) is often used, especially for compression of diagnosis of machine condition, and
of speech and image data. However, data compression using · since the requirement for a high accuracy is
DCT is accompanied by local distortion called block dis- stronger than that for a high compression ratio,
tortion. Such distortions are considered to cause false ab- supplemental memory devices for preserving the
normality diagnosis of a rotating machine. In this paper, we compressed data are expected to be cheaper in the
describe data compression with wavelet transforms that do future,
not generate block distortion. By considering the mode of a compression system is proposed in which the user speci-
usage of the system, a compression system is proposed that fies the allowable distortion ratio, and the compression
maximizes the compression ratio under the given distortion system is maximized under this condition.
allowed.

3. Wavelet Transform and Compression


2. Machine Vibration Data and Reconstruction System
Compression
In the areas of compression of speech and image data,
the discrete cosine transform (DCT) is often used as a
The data used in this paper are vibration data on a method to transform the original data. In the case of DCT
rotating machine measured by the system shown in Fig. 1. in which the original data are divided into blocks and
The vibration of the rotating machine is measured transformed, distortions called block distortion are gener-
with the sensor attached to the axle support of the machine ated at the edges of blocks. The generation of block distor-
and is transformed to analog electrical signals. Analog tion is periodic. Since frequency analysis is used in general
electrical signals from the sensor are digitized by an A-D as a method to extract characteristics in the abnormality
converter after passing through a low pass filter. The digit- diagnosis of rotating machines, these distortions can de-
ized signals are sent to a computer where they are stored or grade diagnostic accuracy. Since block distortions occur
analyzed. locally with a large amplitude, they may be diagnosed

17
where Z is an integer ensemble.
It is not easy to construct wavelets forming an or-
thonormal basis. Presently, several orthonormal wavelets
are known. Of these, a configuration method for the wav-
elets with a compact support was presented by Daubechies
Fig. 2. An example of waveform for bearing defect. [1].
Also, the orthonormal wavelet transformation is ex-
pressed as filtering by a filter bank with two divisions (see
Fig. 3.)
Let the signal sequence be aj(n), and let the operators
falsely as vibration waveforms caused by damage in the H and G on l2 be defined as follows:
bearings. On the other hand, the wavelet transform does not
divide the original waveform data into blocks, and no block
distortion occurs, so that the probability of false diagnosis
is reduced. (3)
Furthermore, since the wavelet transform allows a
great deal of freedom in the selection of the shape of the If the operators (H, G) are considered as filters, then h(×)
basis, it is possible to provide processing that depends on and g(×) are their coefficients. In the wavelet transform
the waveform data of the object, in contrast to the Fourier using the algorithm according to S. Mallat, the operator H
transform method. For these reasons, vibration data com- plays the role of a low pass filter and G, that of a high pass
pression is attempted by using the wavelet transform in this filter. Every time the algorithm is repeated, a division into
paper. By using several of the orthonormal bases with two bands is carried out for the low frequency region.
compact support proposed by Daubechies [1], the vibration The discretized signal aj(n) is multiplied by a mutually-
data of actual machines are compressed, and the compres- orthogonal low-pass and high-pass filter pair (H, G). The
sion performances are compared. In what follows, the algo-
rithm of the wavelet transform used in this research is
described in addition to the configuration of the compres-
sion and reconstruction system.

3.1. Decomposition and reconstruction


algorithm using the wavelet transform

A wavelet is a set of functions {Ya,b} generated by


the expansion and parallel shift of one function y

(1)
Recently, it has been found that this is a useful tool in
mathematics, physics, and engineering. In this equation,
Y(x) characterizes the wavelet transform and is called the
mother wavelet or analyzing wavelet; a is a parameter used
to expand or compress the mother wavelet, and b is a
parameter for parallel shift.
If the mother wavelet function Y(x) is appropriately
selected and the parameters a and b are adequately discret-
ized, the wavelet function set can be made an orthonormal
basis of the set of square integrable functions L2(R) (where
R is the set of real numbers). Usually, the parameter a is
discretized in powers of 2, and b is an integer. In this case,
the orthonormal basis of L2(R) provided by the orthogonal
wavelet functions is

(2) Fig. 3. The algorithm of S. Mallat.

18
output Gx of the higher frequency side is taken out without
further processing and is retained as data (d1), whereas the
lower side output Hx is further divided by (H, G). By
repeating this process J times, the outputs d1, d2, . . . , dJ
and the remaining component aJ can be obtained.
Similarly, the inverse wavelet transform__is _defined
_ as
follows by means of the inverse filter pair (H, G) and its
filter coefficients (h~(×), g
~(×)).

Fig. 5. Wavelet y(x).

(4)
These filter coefficients satisfy the following conditions:
3.2. Vibration data compression by the
wavelet transform

The vibration data subbands decomposed by the wav-


elet transform are subsequently quantized and compressed
through a decoder.
Based on the reasoning described in the previous
(5) section, let us consider the formation of a quantizer that
carries out an optimum bit assignment in accordance with
the allowable square error prescribed for the application.
where d is the Kronecker delta.
The average code length per data point obtained
The index N in the above is called the tap number and
through
__ the quantizer is called the rate and is expressed by
is a parameter used to determine the shape of the basis
R. The __ quantizer is designed in such a way that the average
functions. As N is increased, the basis function takes a
rate R (the quantization bit number per data) is minimized
smoother and more complex shape. Also, the localization
in accordance with the allowable square error provided by
of the discrete filter in the frequency region is enhanced. As
the user.
an example, the scaling function (the basis function for the
For each signal, the distortion caused by quantization
low pass filter) and the wavelet (the basis function for the
is e dj for dj and e J for aJ.
high pass filter) for N = 2 are indicated in Figs. 4 and 5.
Then, the allowable square error g0 is

(6)

In this paper, for convenience, the allowable square error


g0 is given as a percentage of the dynamic range of the
original waveform as follows:

(7)

where X(k) is the data sequence of the original waveform,


and gp is the allowable distortion rate specified by the user
and expressed as a percentage.
When Rdj bits are assigned to the quantization of the
subsignal dj, and __ RJ bits to the quantization of aJ, the
average bit rate R necessary for maintenance for each data
Fig. 4. Scaling function f(x). sample is

19
(8)

Also, by using the bit rates Rdj and RJ of each subsig-


nal, the distortions edj and eJ due to quantization are ex-
pressed:

(9)

where Kdj (KJ) is a value dependent only on the dispersion


of dj(aJ). If it is assumed that the data are uniformly distrib-
uted at each signal, Kdj = (Qdj )2 / 12 and KJ = (QJ)2 / 12 [5].
Also, Qdj (QJ) is the dynamic range of the data decomposed Fig. 6. Compression and expansion system.
into subsignals.
Hence,

(10) are transformed by the quantizer to integer values consist-


ing of the computed assigned bits, thereby completing the
quantization.
In contrast to the research__by J. Chen, this research forms a The quantized data are then coded by an entropy
quantizer that minimizes R under the allowable square error encoder so that compressed data are generated. Although
g0 specified by the user. various algorithms are used in entropy encoders, the present
This problem can be formulated as follows research uses LHA, a freeware package using the Lempel-
Zip coding (sliding dictionary method) and Huffman codes
[7].
The reverse process is used to restore the compressed
(11) data. The compressed data are decoded by the entropy
decoder and are returned to real values through a reverse
quantizer. Then, the restored data can be obtained by means
of the inverse wavelet transform (IWT).
(12)

4. Compression and Restoration of


If the above optimization problem is solved by means of the Mechanical Vibration Data
Lagrange undetermined multiplier method, we obtain

4.1. Summary of experiment

The main diagnosis items considered in rotating ma-


(13)
chine abnormality diagnosis are bearing damage in the
rotating machine axis support and load imbalance. The
diagnostic system needs to distinguish these various mal-
functions. The user then carries out compression and resto-
Figure 6 shows the entire configuration of the com-
ration of the vibrating wave form by providing an allowable
pression and expansion system, including the wavelet trans-
square error that will not degrade malfunction recognition
form and quantizer. The original data are applied to the accuracy.
orthogonal wavelet transform (WT) and are divided into the In order to completely investigate the compression
subsignal {(dj)1£j£J} and aJ. For each subsignal, the dy- characteristics for each imaginable malfunction mode, the
namic range Qdj (QJ) of the decomposed data is computed. experiment was carried out using five types of data: bearing
By using Eq. (13), the necessary assigned bit rate is com- in the normal state, unbalanced condition, artificial damage
puted. Subsequently, the real value data of each subsignal to the inner race of the bearing, artificial damage to the outer

20
race, and bearing without oil. The vibration data were
sampled at 32768 points by 16 bit quantization at a sam-
pling frequency of 20 kHz. The data size per wave form was
65536 bytes.
Since the actual compression ratio (CR) is different
depending on the basis functions used, the experiment was
carried out using nine types of wavelets developed by
Daubechies for one set of data to be compressed and, for
comparison, the DCT, which is often used for data compres-
sion, so that the optimum basis function was determined.
In order to divide to as low a frequency as possible,
the wavelet transform was carried out with 11 levels while
the DCT was carried out by dividing the original waveform
into 16 blocks (with 2048 points per block) so that the final
resolution coincided with that of the wavelet transform. Fig. 8. R(D) function for each basis function (outer race
Hence, the wavelet transform and DCT can be compared defect).
by using the same quantizers and coders.
The wave form transformed by DCT originally forms of compression is small. The experiment was carried out
equally divided subbands. Since a quantizer identical to that with five vibration waveforms and ten basis functions (one
for the wavelet transform was used, the quantization was for DCT and nine for wavelet transforms). Due to space
such that this subband component is octave-divided. limitations, the results are presented only for two typical
The compression ratio (CR) is defined as follows: kinds of data (normal, and damage in the outer bearing race)
and for six basis functions.
Total numberof bytes of the original wavefor m (65536 bytes) The solid lines and dotted lines indicate the theoreti-
CR =
Total number of bytes of the compressed waveform (14) cal average bit rates, and the solid lines and dotted lines with
symbols indicate the actual average bit rates. In these fig-
For the allowable distortion rate presented by the user, ten ures, the experimental data are located above the theoretical
values were used, from 1% to 10%, for verification. values. The reason for this is as follows. The theoretical
R(D) function takes continuous values were the discrete
values were used for the quantized bits. Therefore, the
4.2. Experimental results and discussion values are rounded to integers so that the distortion is
contained within the allowed range.
Figures 7 and 8 show the R(D) function for each basis The shape of the R(D) function changes according to
function (between__ the allowable distortion rate and the the tap number. As the tap number is increased, the R(D)
average bit rate R). If the average bit rate is high, the effect function is shifted downward almost in parallel. It was
found that a basis with a high tap number (14 to 20) is
suitable for compression. Further, compared to compres-
sion by DCT with cosine functions as the basis functions,
the wavelet transform can accomplish quantization with a
smaller average bit rate (about 0.5 to 1 bit in comparison
with DCT) for all vibration waveforms. In the wavelet
transform, the basis function used as the filter becomes
smoother and takes a more complex shape as the tap number
is increased, so that a shape with the characteristics of the
original waveform can be approximated. The fact that the
basis functions resemble the original waveform implies that
the latter can be represented with a smaller number of basis
functions. Therefore, it is possible to concentrate the expan-
sion coefficients in a few subbands. An effective compres-
sion can be carried out by assigning high bit rates only to
such a band.
The RMS (root mean square) of the reconstructed
Fig. 7. R(D) function for each basis function (normal waveform relative to the original waveform is presented in
bearing). Figs. 9 and 10. For all allowable distortion rates specified,

21
Fig. 9. RMS error for each basis function (normal Fig. 11. Original and reconstructed waveform using
bearing). DCT (outer race defect, distortion 5%).

the actual distortion (the RMS value of g0) was smaller than For both DCT and wavelet transform waveforms, the
the theoretical value. This confirms that the quantization is reconstructed waveforms exhibit high frequency distor-
carried out at the allowable square error specified. There is tions. When the time width of one sample is considered,
no significant difference in the RMS error for the DCT and these distortions are found to appear in the high frequency
wavelet transform, because an optimum quantization was band of 5 kHz to 10 kHz. Although not shown in this paper,
carried out for each of them. such high frequency distortions are not observed for the
Figures 11 and 12 show expanded views of the origi- allowable distortion rate of 1% or 2%. Figure 11 shows that
nal waveform and the reconstructed waveform for an allow- the reconstructed waveform by DCT is significantly dis-
able distortion of 5% when DCT and wavelet transforms torted near the center of the figure. This is the block distor-
were used for outer race defects in the bearing. The hori- tion characteristic of DCT. The magnitude is much larger
than the allowable distortion rate.
zontal axis indicates the data number of the sample point
Figures 13 and 14 show the final compression ratios
per data. In these figures, the region near the data number
for each basis function after the entropy coder subsequent
of 8200 is expanded. Also, one sample has a time width of
to quantization. No significant difference in compression
50 ms.
ratio is seen between DCT and the wavelet transform. This

Fig. 10. RMS error for each basis function (outer race Fig. 12. Original and reconstructed waveform using
defect). WT (outer race defect, distortion 5%).

22
Fig. 13. Compression ratio for each distortion (normal Fig. 15. Bit rate of each subband using DCT (normal
bearing). bearing).

phenomenon does not coincide with the results obtained in From a comparison of these figures, it can be found
Fig. 8. This cause is probably as follows. Figures 15 and 16 that the DCT assigns a higher bit rate than the wavelet
show the assigned bit rate of the DCT and the wavelet transform to higher frequency bands, such as subbands 1 to
transform (with 16 taps) in each subband for the normal 3. Also, Fig. 17 plots the DCT coefficients versus frequency
bearing. In these figures, the horizontal axis indicates the number (with 0 the lowest indicating DCT) for the normal
subband number. Subband number 1 indicates the maxi- bearing waveform. In this figure, it can be seen that peak
mum frequency component (5 kHz to 10 kHz) and subband expansion coefficients appear only at specific frequencies
12 indicates the lowest frequency range (0 to 4.875 Hz). in subband 2. Therefore, the assigned bit rate is high in such
Since the frequency range of each subband is octave-
high-frequency subbands.
divided, 32768/21 = 16384 data are quantized in subband 1
As seen above, DCT assigns a higher bit number than
and 32768/211 = 16 data are in subbands 11 and 12. Hence,
the wavelet transform in higher frequency bands. Hence,
effective compression can be carried out if smaller bit rates
the fact that the compression ratios are not very different in
are assigned at lower subband numbers.
DCT and the wavelet transform is apparently a result of the
effective operation of the entropy coder in these subbands.

Fig. 14. Compression ratio for each distortion (outer Fig. 16. Bit rate of each subband using WT (tap16)
race defect). (normal bearing).

23
6.5, and 6.8 to 8.2, if the allowable distortion rate by the
user is 1%, 5%, and 10%, respectively.
It was found that distortion is generated in the high
frequency band (5 kHz to 10 kHz) if the allowable distortion
rate is increased. In the future, it is necessary to investigate
how this waveform degradation affects the actual diagnosis
and how much is tolerated.
The eventual compression ratio obtained by DCT is
not very different from that given by the wavelet transform.
Since data compression by DCT generates large distortions
periodically, such distortions may be falsely diagnosed as
defects during the abnormality diagnosis of the rotating
machine. Therefore, the compression system proposed in
this research is considered more effective than that using
Fig. 17. Coefficient of DCT (normal bearing).
the ordinary DCT. A further advantage is the fact that the
allowable distortions can be set by the user.

Acknowledgments. In the present research, a free-


When optimum basis functions are further studied, it
ware LHA package was used as the entropy coder to com-
is found that the compression ratio is higher for higher tap
press the quantized data. The authors thank the author of
bases than for lower tap bases in the wavelet transform. This
the DOS version, Mr. H. Yoshizaki, and of the UNIX
result coincides with those in Figs. 7 and 8.
version, Mr. M. Oki.
In this paper, due to space limitations, the results are
not shown for all vibrating waveforms. However, in general
the basis function with 16 taps exhibited the best compres-
sion performance. The final compression ratio was 2.7 to REFERENCES
3.1 for an allowable distortion rate of 1%, and 4.8 to 6.5
times and 6.8 to 8.2 times for 5% and 10%, respectively, 1. I. Daubechies. Orthonormal bases of compactly sup-
when the optimum basis functions were used in the wavelet ported wavelets. Communications on Pure and Ap-
transform, although there are some fluctuations for each plied Mathematics, 41, No. 7, pp. 909–996 (1988).
vibrating waveform. 2. Kolmogorov and Formin. Translated by S. Yamasaki
and M. Shibaoka. Foundations for Functional Analy-
sis. Iwanami (1979).
5. Conclusions 3. C.K. Chui. Translated by A. Sakurai and T. Arai.
Introduction to Wavelets. Tokyo Denki University
Using vibration data for rotating machines in a fos- Press (1993).
sil-fired power generating station as our subject, data com- 4. M. Yamada. Wavelet analysis and applications.
pression was carried out in order to reduce data storage I.E.I.C.E., 76, No. 5, pp. 518–528 (May 1993).
capacity and transmission capacity. The mode of usage of 5. M. Kasahara, S. Tasaki, and H. Ogura. Information
the system was considered and a compression system pro- Theory. Foundations and Applications. Shokodo
posed that maximizes the compression ratio at the allowable (1985).
distortion specified by the user. 6. J. Chen, S. Itoh, and T. Hashimoto. ECG data com-
In order to fully evaluate the performance of the pression by using wavelet transform. I.E.I.C.E.
proposed system, data compression was carried out for Trans. Inf. & Syst., E76-D, No. 12, pp. 1454–1461
several types of vibration data, and basis functions suitable (Dec. 1993).
for compression are discussed. It was found that wavelet 7. T. Uematsu and S. Miashita. Understanding the re-
functions with a high tap number (14 to 20) are suitable for versible compression algorithm for programs and
compression. text data. Interface, 18, No. 8, pp. 88–123 (Aug.
When data compression was carried out with the 1992).
optimum basis, the compression ratio is 2.7 to 3.1, 4.8 to

24
AUTHORS (from left to right)

Makoto Tanaka (student member) graduated from Group II (Electrical Engineering), Hiroshima University, in 1989 and
completed the M.S. course at Kyushu University in 1991. He then joined Chugoku Electric Power. Presently, he is in the doctoral
program in system engineering at Hiroshima University. He has been engaged in research on plant equipment abnormality
diagnosis.

Masatoshi Sakawa (member) graduated from the Dept. of Mathematical Engineering, Kyoto University, in 1970 and
completed the doctoral course in 1975. In that year, he became a research associate in the Dept. of System Engineering, Kobe
University, where he became an associate professor in 1981. In 1987, he became a professor in the Dept. of Mathematical
Information, Iwate University. In 1990, he became a professor in the Dept. of Mathematical Engineering, Hiroshima University.
He has been engaged in research on decision making processes and applications in large systems, multiple objective systems,
and fuzzy systems. He holds a D.Eng. degree from Kyoto University. He is the author of Optimization of Linear Systems,
Optimization of Nonlinear Systems, Foundations for Applied Calculus, Foundation and Applications of Fuzzy Systems,
Foundations for Mathematical Systems, (all published by Morikita) and Fuzzy Sets and Interactive Multiobjective Optimization
(Plenum Press), as well as many papers.

Mitsuharu Abe graduated from Group II (Electrical Engineering), Hiroshima University, in 1993. He completed the M.S.
course in 1995. He then joined NTT. Presently, he is at the Chugoku Network Center, Long Distance Communication Division.

Kosuke Kato (member) graduated from the Dept. of Bioengineering, Faculty of Engineering Science, Osaka University,
in 1991. In 1993, he completed the M.S. course, Dept. of Physics specializing in Bioengineering. In 1994, while a student in
the doctoral course, he became a research associate in the Dept. of Mathematical Engineering. He has been engaged in research
on data compression and system optimization algorithms and applications.

25

You might also like