Introduction Au Traitement Numérique Du Signal 2
Introduction Au Traitement Numérique Du Signal 2
INTRODUCTION TO DIGITAL
SIGNAL PROCESSING
1
CHAPTER OUTLINE
1.1 Basic Concepts of Digital Signal Processing ......................................................................................1
1.2 Basic Digital Signal Processing Examples in Block Diagrams ..............................................................2
1.2.1 Digital Filtering ........................................................................................................... 3
1.2.2 Signal Frequency (Spectrum) Analysis ........................................................................... 4
1.3 Overview of Typical Digital Signal Processing in Real-World Applications ...........................................5
1.3.1 Digital Crossover Audio System ..................................................................................... 5
1.3.2 Interference Cancellation in Electrocardiography ............................................................ 6
1.3.3 Speech Coding and Compression .................................................................................. 6
1.3.4 Compact-Disc Recording System ................................................................................... 7
1.3.5 Vibration Signature Analysis for Defected Gear Tooth ...................................................... 9
1.3.6 Digital Image Enhancement ........................................................................................ 10
1.4 Digital Signal Processing Applications ........................................................................................... 12
1.5 Summary ...................................................................................................................................... 12
1
2 CHAPTER 1 INTRODUCTION TO DIGITAL SIGNAL PROCESSING
FIG. 1.1
A digital signal processing scheme.
As shown in the diagram, the analog input signal, which is continuous in time and amplitude, is
generally encountered in our real life. Examples of such analog signals include current, voltage,
temperature, pressure, and light intensity. Usually a transducer (sensor) is used to convert the none-
lectrical signal to the analog electrical signal (voltage). This analog signal is fed to an analog filter,
which is applied to limit the frequency range of analog signals prior to the sampling process. The
purpose of filtering is to significantly attenuate aliasing distortion, which will be explained in
Chapter 2. The band-limited signal at the output of the analog filter is then sampled and converted
via the ADC unit into the digital signal, which is discrete both in time and in amplitude. The digital
signal processor then accepts the digital signal and processes the digital data according to DSP rules
such as lowpass, highpass, and bandpass digital filtering, or other algorithms for different applica-
tions. Note that the digital signal processor unit is a special type of a digital computer and can be a
general-purpose digital computer, a microprocessor, or an advanced microcontroller; furthermore,
DSP rules can be implemented using software in general.
With the digital signal processor and corresponding software, a processed digital output signal
is generated. This signal behaves in a manner based on the specific algorithm used. The next block
in Fig. 1.1, the DAC unit, converts the processed digital signal to an analog output signal. As
shown, the signal is continuous in time and discrete in amplitude (usually a sample-and-hold signal,
to be discussed in Chapter 2). The final block in Fig. 1.1 is designated as a function to smooth the
DAC output voltage levels back to the analog signal via a reconstruction (anti-image) filter for the
real-world applications.
In general, analog signal processing does not require software, algorithm, ADC, and DAC. The pro-
cessing relies entirely on the electrical and electronic devices such as resistors, capacitors, transistors,
operational amplifiers, and integrated circuits (ICs).
DSP systems, on the other hand, use software, digital processing, and algorithms; therefore, they
have more flexibility, less noise interference, and no signal distortion in various applications. However,
as shown in Fig. 1.1, DSP systems still require minimum analog processing such as the anti-aliasing and
reconstruction filters, which are musts for converting real-world information to digital form and back
again to real-world information.
Note that there are many real-world DSP applications that do not require DAC, such as the data
acquisition and digital information display, speech recognition, data encoding, and so on. Similarly,
DSP applications that need no ADC include CD players, text-to-speech synthesis, and digital tone gen-
erators, among others. We will review some of them in the following sections.
Noisy signal
2
1
Amplitude
−1
−2
0 0.005 0.01 0.015 0.02 0.025 0.03
1
Amplitude
−1
−2
0 0.005 0.01 0.015 0.02 0.025 0.03
Time (s)
FIG. 1.3
(Top) Digitized noisy signal. (Bottom) Clean digital signal using the digital lowpass filter.
4 CHAPTER 1 INTRODUCTION TO DIGITAL SIGNAL PROCESSING
Analog
Time domain display
input x(n)
Analog DSP
ADC
filter Algorithms
Frequency content display
FIG. 1.4
Signal spectral analysis.
5 6
Signal amplitude
Signal spectrum
0 1000 Hz
2
−5 0
0 0.005 0.01 0 2000 4000 6000 8000
(A) Time (s) (B) Frequency (Hz)
10 6
5
Signal amplitude
Signal spectrum
1000 Hz
4
0
3000 Hz
2
−5
−10 0
0 0.005 0.01 0 2000 4000 6000 8000
(C) Time (s) (D) Frequency (Hz)
FIG. 1.5
Audio signals and their spectra. (A) 1000 Hz audio signal. (B) 1000 Hz audio signal spectrum. (C) Audio
signal containing 1000 and 3000 Hz frequency components. (D) Audio signal spectrum containing 1000 and
3000 Hz frequency components.
1.3 OVERVIEW OF TYPICAL DIGITAL SIGNAL PROCESSING 5
Speech amplitude
1
−1
−2
0 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8 2
Sample number × 104
200
Amplitude spectrum
150
100
50
0
0 500 1000 1500 2000 2500 3000 3500 4000
Frequency (Hz)
FIG. 1.6
Speech samples and speech spectrum.
of 1000 Hz and another of 3000 Hz sampled at 16,000 samples per second. The frequency content dis-
play shown in plot (D) gives two locations (1000 and 3000 Hz) where the peak amplitudes reside, hence
the frequency content display presents clear frequency information of the recorded audio signal.
As another practical example, we often perform spectral estimation of a digitally recorded speech or
audio (music) waveform using the FFT algorithm in order to investigate the spectral frequency details
of speech information. Fig. 1.6 shows a speech signal produced by a human in the time domain and
frequency content displays. The top plot shows the digital speech waveform vs. its digitized sample
number, while the bottom plot shows the frequency content information of speech for a range from
0 to 4000 Hz. We can observe that there are about 10 spectral peaks, called speech formants, in the
range between 0 and 1500 Hz. Those identified speech formants can be used for applications such
as speech modeling, speech coding, speech feature extraction for speech synthesis and recognition,
and so on (Deller et al., 1999).
Gain Tweeter:
Digital The crossover passes
Digital highpass filter high frequencies
audio x(n)
Gain Woofer:
Digital The crossover passes
lowpass filter low frequencies
FIG. 1.7
Two-band digital crossover.
Fig. 1.7 shows a typical two-band digital crossover system consisting of two speaker drivers: a
woofer and a tweeter. The woofer responds to low frequencies, while the tweeter responds to high fre-
quencies. The incoming digital audio signal is split into two bands using a digital lowpass filter and a
digital highpass filter in parallel. Then the separated audio signals are amplified. Finally, they are sent
to their corresponding speaker drivers. Although the traditional crossover systems are designed using
the analog circuits, the digital crossover system offers a cost-effective solution with programmable
ability, flexibility, and high quality. This topic is taken up in Chapter 7.
FIG. 1.8
Elimination of 60-Hz interference in electrocardiography (ECG).
Analog
input Storage
Analog DSP
ADC media
filter Compressor
Analog
output
Storage DSP Reconstruction
DAC
media Decompressor filter
FIG. 1.9
(Top plot) Simplified data compressor. (Bottom plot) Simplified data expander (decompressor).
media. The compressed digital information can also be transmitted efficiently, since compression re-
duces the original data rate. Digital voice recorders, digital audio recorders, and MP3 players are products
that use compression techniques (Deller et al., 1999; Li et al., 2014; Pan, 1995).
To retrieve the information, the reverse process is applied. As shown in Fig. 1.9 (bottom plot), the
digital signal processor decompresses the data from the storage media and sends the recovered digital
data to DAC. The analog output is acquired by filtering the DAC output via a reconstruction filter.
Left mic
Anti-aliasing 16-bit
LP filter ADC
Encoding
Optics and
Multiplex modulation
Right mic recording
synchronization
Anti-aliasing 16-bit
LP filter ADC
Amplified
left speaker
14-bit Anti-image
DAC LP filter
Optical pickup 4x
demodulation Over-
error correction sampling
14-bit Anti-image
DAC LP filter
CD
Amplified
right speaker
FIG. 1.10
(Top plot) Simplified encoder of the CD recording system. (Bottom plot) Simplified decoder of the CD recording
system.
for each digital sample in each channel. The two channels are further multiplexed and encoded, and
extra bits are added to provide information such as playing time and track number for the listener. The
encoded data bits are modulated for storage, and more synchronized bits are added for subsequent re-
covery of sampling frequency. The modulated signal is then applied to control a laser beam that illu-
minates the photosensitive layer of a rotating glass disc. When the laser turns on and off, the digital
information is etched on the photosensitive layer as a pattern of pits and lands in a spiral track. This
master disc forms the basis for mass production of the commercial CD from the thermoplastic material.
During playback, as illustrated in Fig. 1.10 (bottom plot), a laser optically scans the tracks on a CD
to produce digital signal. The digital signal is then demodulated. The demodulated signal is further
oversampled by a factor of 4 to acquire a sampling rate of 176.4 kHz for each channel and is then passed
to the 14-bit DAC unit. For the time being, we consider the oversampling process as interpolation, that
is, adding three samples between every two original samples in this case, as we shall see in Chapter 11.
After DAC, the analog signal is sent to the anti-image analog filter, which is a lowpass filter to smooth
the voltage steps from the DAC unit. The output from each anti-image filter is fed to its amplifier
and loudspeaker. The purpose of the oversampling is to relieve the higher-filter-order requirement
for the anti-image lowpass filter, making the circuit design much easier and economical
(Ambardar, 1999).
Software audio players that play music from CDs, such as Windows Media Player and RealPlayer,
installed on computer systems, are examples of DSP applications. The audio player has many advanced
features, such as a graphical equalizer, which allows users to change audio with sound effects including
boosting low-frequency content or emphasizing high-frequency content to make music sound more
entertaining (Ambardar, 1999; Embree, 1995; Ifeachor and Jervis, 2002).
1.3 OVERVIEW OF TYPICAL DIGITAL SIGNAL PROCESSING 9
Output shaft
Gear
Input shaft
Missing of
a tooth
Tachometer
(C) Spectra quest’s gearbox dynamics simulator (GDS) (D) Damaged pinion
FIG. 1.11
Vibration signature analysis of the gearbox. (A) Gearbox, (B) Pinion and gear, (C) Spectra Quest’s Gearbox
Dynamics Simulator (GDS), (D) Damaged pinion.
Courtesy of SpectaQuest, Inc.
10 CHAPTER 1 INTRODUCTION TO DIGITAL SIGNAL PROCESSING
0.5
Amplitude (V)
0
−0.5
0 2 4 6 8 10 12 14
Time (s)
Amplitude (VRMS)
0.02
Meshing frequency
0.01
0
0 1000 2000 3000 4000 5000 6000 7000
Frequency (Hz)
Amplitude (VRMS)
0
250 260 270 280 290 300 310 320 330 340 350
Zoomed frequency (Hz)
FIG. 1.12
Vibration signal and spectrum from the good condition gearbox.
Data provided by SpectaQuest, Inc.
is connected to a sheave and driven by a “V” belt drive. The vibration data can be collected by triaxial
accelerometer installed on the top of the gearbox, as shown in Fig. 1.11C. The data acquisition system
uses a sampling rate of 12.8 kHz. Fig. 1.11D shows that a pinion has a missing tooth. During the test, the
motor speed is set to 1000 rpm (revolutions per minute) so the meshing frequency is determined as
fm ¼ 1000(rpm) 18/60 ¼ 300 Hz and input shaft frequency is fi ¼ 1000(rpm)/60 ¼ 16.17 Hz. The base-
line signal and spectrum (excellent condition) from x direction of the accelerometer are displayed in
Fig. 1.12, where we can see that the spectrum contains the meshing frequency component of 300 Hz and
a sideband frequency component of 283.33 (300–16.67) Hz. Fig. 1.13 shows the vibration signature for
the damaged pinion in Fig. 1.11D. For the damaged pinion, the sidebands (fm fi, fm 2fi…) become
dominant. Hence, the vibration failure signature is identified. More details can be found in Robert Bond
Randall (2011).
Amplitude (V)
0
−2
0 2 4 6 8 10 12 14
Time (s)
Amplitude (VRMS)
0.04
Meshing frequency
0.02
0
0 1000 2000 3000 4000 5000 6000 7000
Frequency (Hz)
Amplitude (VRMS)
0
250 260 270 280 290 300 310 320 330 340 350
Zoomed frequency (Hz)
FIG. 1.13
Vibration signal and spectrum from the damaged gearbox.
Data provided by SpectaQuest, Inc.
(A) (B)
FIG. 1.14
Image enhancement. (A) Original image taken on a cloudy day. (B) Enhanced image using the histogram
equalization technique.
12 CHAPTER 1 INTRODUCTION TO DIGITAL SIGNAL PROCESSING
1.5 SUMMARY
1. An analog signal is continuous in both time and amplitude. Analog signals in the real world include
current, voltage, temperature, pressure, light intensity, and so on. The digital signal contains the
digital values converted from the analog signal at the specified time instants.
2. Analog-to-digital signal conversion requires an ADC unit (hardware) and a lowpass filter attached
ahead of the ADC unit to block the high-frequency components that ADC cannot handle.
3. The digital signal can be manipulated using arithmetic. The manipulations may include digital fil-
tering, calculation of signal frequency content, and so on.
4. The digital signal can be converted back to an analog signal by sending the digital values to DAC to
produce the corresponding voltage levels and applying a smooth filter (reconstruction filter) to the
DAC voltage steps.
5. DSP finds many applications in areas such as digital speech and audio, digital and cellular tele-
phones, automobile controls, vibration signal analysis, communications, biomedical imaging,
image/video processing, and multimedia.