Abstract
We describe the application of the Discrete Wavelet Transform (DWT) in extracting the characteristic absorption signatures of materials from terahertz reflection spectra. We compare the performance of different mother wavelets, including Daubechies, Least Asymmetric (LA), and Coiflet, based on their phase and gain functions and filter lengths. We show that the phase functions of the wavelet and scaling filters result in spectral shifts to the absorption lines in the wavelet domain. We provide a solution by calculating advancement coefficients necessary to achieve effective zero-phase-function DWT. We demonstrate the utility of this signal processing technique using α-lactose monohydrate/polyethylene samples with different levels of rough surface scattering. In all cases, the DWT-based algorithm successfully extracts resonant signatures at 0.53 and 1.38 THz, even when they are obscured by the rough surface scattering effects. The DWT analysis with accompanying phase corrections can be utilized as a robust technique for material identification in non-destructive evaluation (NDE) using terahertz spectroscopy.
Index Terms—: Discrete wavelet transforms, phase function, rough surface scattering, spectral analysis, terahertz (THz), zero-phase transform
I. Introduction
Certain applications of terahertz time-domain spectroscopy (THz-TDS) in biomedical sensing [1], pharmaceutical industries [2], security screening [3], and chemical identification [4] rely on the recognition of unique resonant signatures in the dielectric functions of materials [5]. Many low-frequency vibrational and torsional motions of molecular systems have the same energies as radiations at terahertz frequencies (100 GHz – 10 THz) [6], [7]. Therefore, absorption signatures appear in the dielectric functions of many chemicals and biomolecules [8], [9]. Identification of the unique but weak THz signature modes can be challenging due to the heterogeneity of the samples, scattering and experimental noise. Surface roughness and particle granularity on the order of THz wavelengths (30 μm – 3 mm) diminish the signal to noise ratio (SNR) by distributing the radiation into random directions [10]. The presence of scattering enables robust detection schemes such as diffused off-specular spectroscopy [3], although it introduces spectral distortions that obscure the absorption features [11]–[13]. For example, surface roughness in the form of random height variations with a Gaussian distribution introduces an exponential frequency roll-off in the reflection amplitude spectrum [14], [15]. This frequency roll-off decreases the bandwidth and weakens the spectral signatures. Different approaches have been proposed to overcome the scattering effects on the THz spectrum. Averaging 1600 spatially uncorrelated transmission measurements of a sample improved the SNR due to the random distribution of the scatterers [16]. However, obtaining many measurements is time consuming and is not practical for samples with smaller surface areas. Cepstral filtering has been employed in both transmission and reflection THz-TDS to mitigate granular [17] and rough surface scattering [13]. In cepstral analysis, low-pass or band-pass Gaussian filters are applied to the Fourier transform of the derivative of the THz spectra. The techniques based on the band pass or low pass filtering of the Fourier domain spectra require a priori knowledge on the material absorption features, such as its spectral location, FWHM, spectral shape, and the scattering characteristics to choose the right pass band for the filters. In contrast, wavelet methods, which have also been used for mitigating the effects of rough surface and volume scattering in THz-TDS [18]–[21], are agnostic to the sample material information or scattering details and give access to the entire spectrum. Wavelet multiresolution analysis (MRA) was proposed for retrieval of α-lactose monohydrate resonant signature at 0.54 THz obscured by rough surface scattering [18]. It was shown that this absorption resonance can be separated from other noise-associated features caused by the random rough surface scattering in fine-scale maximal overlap discrete wavelet transform (MODWT) detail coefficients. An iterative reconstruction technique using discrete wavelet transform (DWT) detail sub-bands was proposed to estimate the scattering-induced baselines in THz transmission extinction spectra [19]. However, the identification of the material resonant features in the presence of random noise and quasi-ballistic scattering effects were not studied.
In this paper, we present a DWT-based algorithm to extract and identify material resonant features using THz-TDS reflection measurements in the wavelet domain. We also investigate the effects of the phase and gain functions and the filter lengths of different orthogonal mother wavelet filter families on extraction of terahertz spectral signatures. In the DWT pyramid algorithm, cascades of scaling and wavelet filters with non-zero phase functions result in shifts in the spectral location of the extracted features. We show that for orthogonal mother wavelets with approximately linear phase functions, advancing wavelet coefficients at each level by a predetermined factor compensates for these spectral shifts. We compute the number of required advances based on the phase function of the mother wavelets. We investigate the effectiveness of our method by applying DWT to the deconvolved amplitude spectrum of samples made of α-lactose monohydrate with smooth and rough surfaces. We demonstrate that DWT with accompanying phase corrections is a robust technique in identification of characteristic resonant signatures in the presence of scattering effects. In contrast to the MODWT MRA algorithm, which requires the inverse transform operation back to the ‘signal domain’ [18], the DWT-based algorithm presented here performs the feature extraction in the ‘wavelet domain’. Therefore, the new technique allows for subsequent signal processing steps, such as de-noising [22], dimensionality reduction [23], and classification [24] to be applied to the correctly-aligned coefficients in the wavelet domain. Moreover, the DWT benefits from the lower computational complexity as compared to MODWT. The new DWT-based technique proposed here potentially can find applications in non-destructive evaluation and terahertz spectroscopy for identification of chemicals.
II. Materials and Methods
A. Sample Preparation
We prepared sample discs with smooth and rough surfaces. Samples were made by mixing α-lactose monohydrate (80% by weight) in ultra-fine high-density polyethylene powders (620XXF HDPE, Micro Powders, Inc., Tarrytown, NY, USA) and pressing the mixture under 3000 psi load for three hours, which yielded 2mm-thick pellets with 50 mm diameter. HDPE was added as a binding agent and its THz spectrum is void of resonant signatures. Surface roughness was imprinted using 80-grit and 40-grit sandpapers (Norton Abrasives, Worcester, MA, USA) during the pellet pressing. Table I provides the statistics of the sandpaper sheets roughness including their average particle size, RMS height and correlation length. Fig. 1 illustrates the microscopic images taken from the surface of the pellets with smooth and rough surfaces by an optical microscope.
TABLE I.
Statistical Parameters for Rough Surface Characterization of 80 Grit and 40 Grit Sandpapers
| Grit | Average Particle Size (mum) | RMS Height (μm) | correlation Length (μm) |
|---|---|---|---|
| 80 | 190 | 55 | 151 |
| 40 | 425 | 135 | 420 |
Fig. 1.

Microscopic images (2.5 x) of the surface of the sample discs with (a) smooth surface, (b) 80-grit rough surface and (c) 40-grit rough surface.
B. Measurement Setup
Reflection THz-TDS measurements were obtained using a TERA-ASOPS high-speed THz time-domain spectrometer (Menlo Systems, Inc., Newton, NJ, USA). TERA-ASOPS uses the difference in the repetition rates of two 1560 nm femtosecond lasers to scan the THz pulses at high rates. Laser pulses were guided by optical fibers to the emitter and detector photoconductive antenna (PCA) producing signals with 0.2 – 1.5 THz useful spectral range. Two TPX50 lenses (Menlo Systems, Inc., Newton, NJ, USA) collimated and focused the generated THz beams on the sample surface with angle of incidence θi = 36°, and focal spot size of approximately 4.7 mm. Similar lenses collimated and refocused the specular reflection beams on the THz detector. The smooth-surface sample position was adjusted so that signals reflected from the reference mirror were approximately aligned with the signals reflected from the surface of the sample. However, due to variations in the surface height of the 80-grit and 40-grit rough samples, the time of arrival varies for uncorrelated measurement spots. For each sample, 10 spatially disjoint measurements were deconvolved in the Fourier domain by a reflection from a reference mirror and their averaged amplitude spectrum was used in the following signal processing steps.
C. Signal Conditioning
Based on the Kirchhoff approximation, Gaussian surface variations with standard deviation σ, introduce a Gaussian decline in the coherent reflectivity [27]. With incident angles close to the surface normal, reflected power is proportional to coherent reflectivity, Pcoh, given by [27], [28],
| (1) |
where κ is the wavenumber, and θi is the angle of incidence. Our measurements confirm the Gaussian decline in the rough-surface sample spectral amplitude. Fig. 2(a) compares the time-domain trace of the reflection from a smooth-surface sample, with that of an 80-grit and a 40-grit rough-surface sample. Surface roughness has resulted in significant drops in the SNR. Fig. 2(b) illustrates the scattering effects in the Fourier domain. Amplitude spectrum of the smooth-surface sample has a linear trend with a close-to-zero slope. Rough-surface samples’ amplitude spectra demonstrate Gaussian frequency roll-offs, according to (1), which were numerically fitted to the measurements. Scattering has obscured the resonant features and as wavelength decreases the effects of scattering become more severe. Prior to wavelet transform, we detrended each spectral amplitude using its fitted profile, shown in Fig. 2(b). After detrending, we tapered the boundaries of each spectral signal by applying halves of a Hann window to each end of the spectrum. After zero-padding each N-point-length signal to , we applied the DWT for J0 = 8 levels of decomposition using various mother wavelets.
Fig. 2.

(a) Specular THz-TDS signals reflected off smooth-surface, 80-grit and 40-grit rough-surface α-lactose monohydrate samples, (b) spectral amplitude of 10 spatially disjoint measurements taken from each sample and deconvolved by a reflection from a reference mirror. Each sample amplitude spectrum was numerically fitted to (1) for spectral detrending (dotted dashed lines).
D. Implementation of DWT Using the Pyramid Algorithm
A level J0 DWT decomposes a signal into J0 levels of scaling and wavelet coefficients by successively convolving it with a low-pass scaling filter, g(f), and a high-pass wavelet filter, h(f), using the pyramid algorithm shown in Fig. 3 [25], [26]. At each level, outputs of the filters are subsampled by a factor of 2. Filtering the signal with non-zero phase function wavelet and scaling filters and subsampling their outputs by 2 result in complicated misalignments between the original THz spectrum and the wavelet coefficients. At the higher levels with j ≥ 2, cascades of the filters shown in Fig. 3 can be replaced by the aggregate filters gj(f) and hj(f). Here, gj(f) is formed by the convolution of scaling filters built upon up-sampling of g(f) by 2a for a = 0,1, …, j−1. Also, hj(f) is formed similar to gj(f) except that g(f) is replaced by h(f) at a = j − 1. Taking sub-samplings into account, Wj(f) is given by,
| (2) |
and Vj(f) is given by,
| (3) |
Lj represents the length of the aggregate filters and is computed based on the length of the mother wavelet filter, , as
| (4) |
Fig. 3.

The block diagram of the pyramid algorithm of a partial DWT of level J0. X(f) is the input spectral signal. h(f) and g(f) represent the first level DWT wavelet and scaling filters, respectively. Outputs of each filter are subsampled by 2. Wj(f) are the jth level wavelet coefficients and are the level scaling coefficients.
We compute the phase functions of gj(f) and hj(f) for three well-known orthogonal wavelet families namely Daubechies , Least Asymmetric , and Coiflet . In [29], Daubechies proposes a few classes of orthogonal wavelet filters that yield wavelet coefficients associated with the differences of the adjacent weighted averages of a signal. These wavelet filter families, including and , share the same squared gain function (squared Fourier amplitude) while their phase function characteristics are different. is defined to have minimum delay or extremal phase, whereas is defined to have the highest symmetry, least asymmetry, or equivalently highest phase function linearity among the filters that satisfy the same gain function. In contrast to and filters, squared gain function is different such that it yields higher phase function linearity. However, ’s better phase function characteristics come at the cost that it produces artificial triangular-shape artifacts in the wavelet coefficients. Here we investigate how the phase and gain function properties of orthogonal wavelets defined in [29] affect the extracted THz resonant features. The method described here to remove the spectral shifts can be generalized to other mother wavelet families. Fig. 4(a) shows the baseline subtracted average amplitude spectrum of the smooth-surface sample. We took its DWT using C(6), D(6), LA(8) and LA(12) mother wavelets for J0 = 8 levels of decomposition. Vertically offset normalized 5th level wavelet coefficients, W5(f), are shown in Fig. 4(b), as an example. The plotted wavelet coefficients extract the resonant signatures as sharp easily distinguishable features. They extract both α-lactose monohydrate and ambient water vapor absorption resonances which are shown using the vertical dashed lines in Fig 4(a). By zooming into the wavelet coefficients at 0.54 THz, in Fig 4(c), and 1.39 THz, in Fig. 4(d), the misalignments between the wavelet coefficients and the expected location of absorption features are demonstrated. In the following section, we will investigate the cause of the misalignments theoretically, and calculate advancement compensation factors to correct the location of the extracted spectral features.
Fig. 4.

(a) Base-line subtracted average amplitude spectrum of the smooth-surface sample, (b) vertically offset normalized 5th level DWT wavelet coefficients of signal in (a) using C(6), D(6), LA(8), and LA(12) mother wavelets, (c) W5(f) in the range 0.45 – 0.65 THz, (d) W5(f) in the range 1.3 – 1.5 THz. Vertical dashed lines delineate the correct positions of the resonant signatures.
E. Zero-Phase DWT
The phase function of a scaling or a wavelet filter can be obtained using the phase of the Fourier transform of each filter. To avoid confusion between the frequency in the Fourier domain (used for THz spectral data) and the Fourier transform of the scaling and wavelet filters, we represent the latter in terms of discrete frequency k. Fig. 5(a) illustrates the phase function of the 1st level LA(8) scaling filter along with the three closest linear phase approximations, −4πk, −6πk, and −8πk. Among these three, g(f) phase function, , demonstrates the least deviations from −6πk. Therefore, it can be approximated to be a linear function of k, with an advancement factor ν,
| (5) |
Phase function of a wavelet filter, h(f), defined to be the quadrature mirror filter (QMF) of the scaling filter given by,
| (6) |
is calculated by [25],
| (7) |
For the LA(8) wavelet filter, (5) and (7) imply that
| (8) |
Here, (8) represents a linear phase function only for odd values of ν. Because ν given by (8) for , the scaling filter, is an odd value, its corresponding wavelet filter will have a linear phase function too. To verify this, Fig. 5(b) illustrates the phase function of the 1st level LA(8) wavelet filter along with the three closest linear phase approximations, −6πk, −8πk, and −10πk. It can be seen that demonstrates the least deviations from −8πk. Therefore, it follows (8) by setting ν = −3 and . We can generalize (5) and (8) to other mother wavelets. In other words, if the phase function of a scaling filter is approximately linear and given by 2πkν, for an odd value of ν, the phase function of its wavelet filter will also be approximately linear and given by −2πk(L−1+ν). Indeed, ν is always odd for mother wavelets and is specified by using [25], [30],
| (9) |
Fig. 5.

(a) Phase function of the 1st level LA(8) scaling filter, g(f), along with the closest linear phase approximations. The inset shows the difference between and −6πk, from which has the least deviations, (b) phase function of the 1st level LA(8) wavelet filter, h(f), along with the closest linear phase approximations. The inset shows the difference between and −8πk, the closest approximation to .
Advancing the 1st level LA(8) scaling and wavelet filters by |ν| and units, respectively, results in approximate zero-phase filters at the 1st level of the pyramid algorithm. At the higher levels, j ≥ 2, we need to find the phase functions of gj(f) and hj(f). Transfer function of gj(f), which is formed by the convolution of up-sampled 1st level scaling filters, is given by,
| (10) |
Therefore, the phase function of gj(f) can be calculated by the summation of the phase of the transfer functions in (10) using,
| (11) |
For scaling filters, (5) and (11) yield
| (12) |
which is a linear phase function with . Similar to gj(f), transfer function of hj(f), which is formed by the convolution of the up-sampled 1st level scaling and wavelet filters, is given by,
| (13) |
Therefore, phase function of hj(f) will be formed by the summation of the phase of the transfer functions in (13) using,
| (14) |
For wavelet filters, using (5) and (8) in (14) results in
| (15) |
It can be noted that (15) is also a linear phase function with an advancement factor . Therefore, advancing gj(f) and hj(f) of mother wavelets by respectively and units results in a zero-phase filtering at the jth level of the DWT. Similar results are valid for mother wavelets except that it can be shown that their ν values are different and set by [25],
| (16) |
Fig. 6(a) illustrates that the phase function of the C(6) scaling filter has the least deviations from −6πk. This can be verified by setting in (16) and using it in (12) for j = 1. Fig. 6(b) demonstrates that the C(6) wavelet filter phase function has the least deviations from −4πk. This result also can be obtained by setting in (16) and using it in (15) for j = 1. Phase functions of the higher-level C(6) wavelet and scaling filters, j ≥ 2, can be calculated in a similar way using (12) and (15).
Fig. 6.

(a) Phase function of the 1st level C(6) scaling filter, g(f), along with the closest linear phase approximation. Inset shows the difference between and −6πk, from which has the least deviations, (c) phase function of the 1st level C(6) wavelet filter, h(f), along with the closest linear phase approximations. Inset shows the difference between and −4πk, from which has the least deviations.
Fig. 7 illustrates the phase functions of the 1st level D(4) wavelet and scaling filters along with their linear phase approximations. It can be noted that differences between the phase functions of D(4) filters and the closest linear phase approximations are larger than those of the LA(8) and C(6), which demonstrates D(4)’s higher non-linearity.
Fig. 7.

(a) Phase function of the 1st level D(4) scaling filter, g(f), along with the closest linear phase approximation. Inset shows the difference between and −2πk, from which has the least deviations, (b) phase function of the 1st level D(4) wavelet filter, h(f), along with the closest linear phase approximations. Inset shows the difference between and −4πk, from which has the least deviations.
To evaluate the effects of the circular advances on the phase functions, Fig. 8 compares the phase functions of the advanced wavelet filters, hj(f) for j = 1, …,4, of different mother wavelets. Number of advances for LA(8) and C(6) mother wavelets are set using (9), (15) and (16). For comparison to wavelet filters with non-linear phase functions, D(4) wavelet filter also was advanced using (15). Although the phase function of the 1st level D(4) wavelet filter is non-linear, because it demonstrates the least deviations from −4πk, we used ν = −2 for D(4) wavelet filters. In Fig. 8, phase functions of the advanced wavelet filters are shown in their respective pass-bands, which depend on j and are given by . These pass-bands are separated by the vertical dashed lines. Phase functions of the advanced C(6) wavelet filters are closer to zero than LA(8) and D(4). Advancing the D(4) wavelet filters does not yield zero-phase filters. This corresponds to the non-linearity of the D(4) phase functions.
Fig. 8.

Phase functions of the advanced LA(8), C(6) and D(4) wavelet filters: hj (f): j = 1, …, 4. Phase function of jth level wavelet filter is plotted against its pass band given by .
Noteworthy here, because of the sub-samplings by 2j, advancing the filters coefficients does not suffice to correct the misalignments in DWT outputs. Without sub-sampling, advancing a hj(f) by units in (2) yields,
| (17) |
where represents un-subsampled wavelet coefficients. Here, (17) implies that for zero-phase filtering, without sub-sampling, we must associate the original signal, X (f), with or likewise , X(f) delayed by units, with . Now, Sub-sampling by 2j yields DWT wavelet coefficients as
| (18) |
Therefore, associating with results in the association of Wj (f) with . For example, for the 2nd level C(6) wavelet coefficients with , Wj (0) should be plotted against X (N − 4), the (N − 4)th data point in X(f). To find the right order of DWT wavelet coefficients, we find a f0 such that Wj(f0) aligns with X(0) and advance Wj(f) by f0. By setting the argument of to zero we will have
| (19) |
The flow chart in Fig. 9 summarizes the signal processing steps required for the correct identification of THz resonant signatures using DWT.
Fig. 9.

Flowchart presents the signal processing steps for implementation of DWT in extraction of resonant signatures in the terahertz reflection spectra.
III. Results and Discussion
A. Smooth-surface Sample Results
Fig. 10 illustrates the results of advancing the 3rd to 5th level wavelet coefficients of the deconvolved smooth-surface sample amplitude spectrum. Wavelet coefficients were obtained using the C(6), D(6), LA(8), and LA(12) mother wavelets. The numbers of applied advances obtained using (19) are shown in the powers of T, i.e. , next to each mother wavelet results. In Fig. 10(b), C(6) wavelet coefficients perform better in extracting the resonant signature at 0.54 THz in comparison to other mother wavelets. Moreover, as filter length increases, the extracted features become sharper and the scattering effects are suppressed. To explain these observations, we compare the gain functions of the 3rd level C(6), D(6), LA(8), and LA(12) wavelet filters in Fig. 11. Fig. 11 illustrates that as the filter length increases, the side-lobs of the gain functions become smaller, and the main pass-band given by is narrower. This change in the gain function results in the wavelet filters with smaller lengths to allow more low-frequency content, which appear as noisy fluctuations in the entire spectrum. Because the absorption signature of α-lactose monohydrate at 0.54 THz is a broader feature compared to the other resonant signatures, it has a more significant low-frequency content. Here, by the frequency content of a spectral signature, we refer to the Fourier transform of the THz spectral data. In other words, it is a function of k. Because C(6) wavelet filter gain function covers more lower frequencies, 0.54 THz feature is larger in its wavelet coefficient outputs. On the other hand, larger side-lobes allow more noisy fluctuations into the outputs of C(6) as well. Similar conclusions are valid for the 4th and the 5th level wavelet coefficients shown in Fig. 10(c) and Fig. 10(d). Finally, although the 0.54 THz signature is hardly distinguishable in the 3rd level LA(8) and LA(12) wavelet coefficients, as j increases, the resonant feature gets larger and clearer. Fig. 12 shows the gain functions of the 3rd to 5th level LA(12) wavelet filters. It illustrates that as j increases, the wavelet filter pass-band moves toward lower k frequencies. Therefore, 0.54 THz signature becomes larger in the output. Besides, increasing j makes the filter pass-band narrower, and therefore, it allows less amount of low-frequency fluctuations into its outputs. To compare the effectiveness of the proposed advancements in correcting the phase distortions, α-lactose monohydrate signatures at 0.54 THz and 1.39 THz are slightly mis-aligned in the outputs of D(6) in Fig. 10(b) and Fig. 10(c). However, C(6), LA(8), and LA(12) outputs are all perfectly aligned with the input. This is because of the non-linear phase function of the D(6) wavelet filters. Table II provides the explicit locations of the extracted resonances at each level before and after the circular advancements. Noteworthy here, applying an amplitude-based thresholding scheme to the baseline-subtracted signal shown in Fig. 10(a) results in omission of the α-lactose monohydrate resonance at 1.21 THz, and water vapor resonances at 1.09 THz and 1.16 THz. Additionally, it might also account for the 0.2 THz feature, which is caused by the low-frequency noise, as a resonant signature.
Fig. 10.

(a) Base-line subtracted average amplitude spectrum of the smooth-surface sample, (b) advanced W3(f), (c) advanced W4(f), (d) advanced W5(f). C(6), D(6), LA(8), and LA(12) mother wavelets were used. Number of advances obtained using (19) are shown in the powers of T, . Blue and red sub-plots at each level zoom into the advanced wavelet coefficients at 0.54 THz and 1.39 THz, respectively. Vertical dashed lines delineate the correct positions of the resonant signatures.
Fig. 11.

Gain functions of the 3rd level C(6), D(6), LA(8), and LA(12) wavelet filters. As filter length, , increases, filter sidelobes get smaller and its pass-band gets narrower around .
Fig. 12.

Gain function of the 3rd to 5th level LA(12) wavelet filters. Increasing the j makes the pass band of the filter narrower and containing smaller frequencies.
TABLE II.
Peak Positions for the Smooth Sample Before and After Phase Shifts
| 0.54 THz | 1.21 THz | 1.39 THz | |||||
|---|---|---|---|---|---|---|---|
| Wj | TWj | Wj | TWj | Wj | TWj | ||
| C(6) | j = 3 | 0.56 | 0.54 | 1.22 | 1.21 | 1.41 | 1.39 |
| j = 4 | 0.56 | 0.54 | 1.23 | 1.21 | 1.41 | 1.39 | |
| j = 5 | 0.57 | 0.53 | 1.24 | 1.20 | 1.43 | 1.39 | |
| D(6) | j = 3 | 0.56 | 0.55 | 1.23 | 1.22 | 1.41 | 1.39 |
| j = 4 | 0.57 | 0.55 | 1.24 | 1.22 | 1.42 | 1.40 | |
| j = 5 | 0.59 | 0.55 | 1.24 | 1.20 | 1.43 | 1.39 | |
| LA(8) | j = 3 | 0.56 | 0.54 | 1.23 | 1.21 | 1.41 | 1.39 |
| j = 4 | 0.57 | 0.54 | 1.24 | 1.21 | 1.42 | 1.39 | |
| j = 5 | 0.59 | 0.53 | 1.26 | 1.2 | 1.45 | 1.39 | |
| LA(12) | j = 3 | 0.57 | 0.54 | 1.24 | 1.22 | 1.42 | 1.39 |
| j = 4 | 0.59 | 0.54 | 1.26 | 1.21 | 1.44 | 1.39 | |
| j = 5 | 0.63 | 0.53 | 1.30 | 1.20 | 1.49 | 1.39 | |
B. Rough-surface Sample Results
The RMS surface height that can result in significant levels of rough surface scattering is determined using the Fraunhofer criterion, given by [27],
| (20) |
where λ is the wavelength and θi is the incident angle. At θi = 36°, 80-grit and 40-grit sandpapers give rise to significant scattering at f ≥ 0.21 THz and f ≥ 0.08 THz, respectively. Therefore, for the rough-surface samples, all the resonant features are affected by scattering effects. Fig. 13 shows the DWT wavelet coefficients of the rough-surface sample amplitude spectrum. Fig. 13(a) illustrates the base-line subtracted deconvolved amplitude spectrum averaged over 10 spatially disjoint measurements. The resonant signatures at 1.09 THz, 1.16 THz and 1.21 THz of the signal shown in Fig. 13(a) are hardly distinguishable and an amplitude thresholding scheme is unable to detect them. The advanced 4th level wavelet coefficients using C(6), D(6), and LA(8) mother wavelets are shown in Fig. 13(b). Wavelet coefficients were able to extract even the obscured water absorption lines between 1.1 and 1.25 THz. However, the noisy fluctuations surrounding these features are more prominent in comparison to the smooth-surface sample results. These fluctuations, which are mostly due to the noise and scattering effects, make the recognition of resonant features more challenging. However, as we explained in Fig. 11, when the filter length increases, it would allow less low-frequency fluctuations. To investigate the effects of the filter length on the rough-surface sample wavelet coefficients, we used C(12), D(12), and LA(12) wavelets in Fig. 14. Fig. 14(b) illustrates the 4th level wavelet coefficients advanced by the values obtained by (19). In comparison to Fig. 13, noise levels are greatly suppressed, and the resonant features are more clear. Here, C(12) and LA(12) results also make perfect alignment with the input, whereas D(12) advanced coefficients are still slightly misaligned. Table III provides the explicit locations of the extracted resonances of the 80-grit rough sample at each level before and after the circular advancements.
Fig. 13.

(a) Base-line subtracted average deconvolved amplitude spectrum of an 80-grit rough-surface sample made of α-lactose monohydrate and HDPE, (b) advanced 4th level wavelet coefficients of the signal in (a) obtained using C(6), D(6), and LA(8) mother wavelets. Blue and red sub-plots zoom into the wavelet coefficients at 0.54 THz and 1.39 THz. Vertical dashed lines delineate the correct positions of the resonant signatures.
Fig. 14.

(a) Base-line subtracted average deconvolved amplitude spectrum of an 80-grit rough-surface sample made of α-lactose monohydrate and HDPE, (b) advanced 4th level wavelet coefficients of the signal in (a) obtained using C(12), D(12), and LA(12) mother wavelets. Blue and red subplots zoom into the wavelet coefficients at 0.54 THz and 1.39 THz. Vertical dashed lines delineate the correct position of the resonant signatures.
TABLE III.
Peak Positions for the 80-Grit Rough Sample Before and After Phase Shifts
| 0.54 THz | 1.21 THz | 1.39 THz | ||||
|---|---|---|---|---|---|---|
| W4 | W4 | W4 | ||||
| C(6) | 0.56 | 0.54 | 1.23 | 1.21 | 1.42 | 1.39 |
| D(6) | 0.57 | 0.55 | 1.24 | 1.22 | 1.42 | 1.39 |
| LA(8) | 0.57 | 0.54 | 1.24 | 1.21 | 1.43 | 1.39 |
| C(12) | 0.59 | 0.54 | 1.26 | 1.21 | 1.45 | 1.39 |
| D(12) | 0.58 | 0.53 | 1.25 | 1.20 | 1.44 | 1.38 |
| LA(12) | 0.59 | 0.54 | 1.26 | 1.21 | 1.45 | 1.39 |
To further investigate the robustness of the DWT in extracting the THz resonant features, we applied it with the accompanying phase function corrections to 40-grit rough sample. Fig. 15 compares the 4th level wavelet coefficients of the smooth-surface sample with those of the 80-grit and 40-grit rough samples. Although noise-associated features are prominent in 40-grit results, the material resonant features are still clearly discernible. In particular, LA(8) and LA(12) are successful in suppressing the scattering effects. Comparing the results of both smooth-surface and rough-surface samples reveals that LA(8) and C(12) are more suitable choices for THz resonance extraction. They both can extract all the resonant features simultaneously. They have narrower pass-bands and therefore can eliminate the low-k-frequency scattering effects. Finally, advancing their coefficients results in effective zero-phase filters without causing any phase distortions.
Fig. 15.

The advanced 4th level DWT wavelet coefficients of the smooth, 80-grit, and 40-grit rough samples detrended amplitude spectra using (a) C(6), (b) D(6), (c) LA(8), and (d) LA(12) mother wavelets.
IV. Conclusion
We used the DWT for extracting resonant signatures from deconvolved amplitude spectrum of THz signals reflected from sample pellets with smooth and rough surfaces. We showed that although the resonant signatures are obscured by scattering effects, the DWT wavelet coefficients identify them as sharp and easily distinguishable features. We also investigated the effects of the phase function of the wavelet and scaling filters on the location of the extracted resonances. We provided phase function corrections in the form of advancing output wavelet coefficients at each scale. Therefore, we achieved zero-phase filtering and exact alignment of extracted resonances. We also compared the phase and gain functions of different mother wavelets. The and could create larger spectral shifts, however due to their linear phase functions, advancing filter coefficients will result in effective zero-phase filters. In contrast, despite causing less spectral shifts, the phase function of cannot give a zero-phase transform after advancement compensation. Our results showed that this behavior of family of wavelets is attributed to the high nonlinearity of their phase functions. We also compared mother wavelets of various lengths and showed that as the length of the filter increases, it suppresses more low-k-frequency content (broader features), which results in wavelet coefficients revealing sharp resonances such as water vapor absorption lines. Therefore, to extract broader resonances, like α-lactose monohydrate signature at 0.54 THz, mother wavelets with smaller lengths should be used. Based on phase and gain functions characteristics, the LA(8) and C(12) are reasonable choices for extracting both water and α-lactose monohydrate resonances from smooth and rough-surface samples simultaneously. In comparison to the MODWT [18], the main benefit of zero-phase DWT is that it allows for continuation of subsequent signal processing steps in the wavelet domain. MODWT often results in larger spectral shifts in the wavelet domain and can yield zero-phase filtering only after transforming the signal back to the frequency domain - also knowns as the multiresolution analysis (MRA). Noteworthy here, the same approach explained in this work for zero-phase DWT using orthogonal mother wavelets is also applicable for DWT with biorthogonal family of wavelets. In biorthogonal wavelets, the phase function of the employed wavelet and scaling filters are deterministically linear, and therefore approximations made in this paper are not necessary. Future works include investigating the sensitivity and specificity of wavelet transform in identification of resonant signatures.
Acknowledgments
This work was supported in part by the National Science Foundation grant ECCS-140768, and the National Institute of General Medical Sciences of the National Institutes of Health under award number R01GM112693.
Biographies

Mahmoud E. Khani (S’19) received the B.S. degree in electrical engineering from Amirkabir University of Technology, Tehran, Iran, in 2016 and the M.S. degree in biomedical engineering from Stony Brook University, Stony Brook, NY, in 2019. He is currently working toward the Ph.D. degree at Stony Brook University.
His research interests include terahertz imaging and spectroscopy, terahertz signal processing, machine learning, nondestructive evaluation, and medical imaging.
Dale P. Winebrenner (M ‘79, SM ‘03) received the B.S. degree in physics from Purdue University, Hammond, IN, in 1979, the M.S. degree in applied physics from the University of California – San Diego, San Diego, CA, in 1980, and the Ph.D. in electrical engineering from the University of Washington, Seattle, WA, in 1985.
He is presently a Senior Principal Physicist at the Applied Physics Laboratory and Research Professor in the Department of Earth and Space Sciences at the University of Washington, Seattle, WA. He has authored or co-authored more than 50 journal publications and book chapters. His current research interests include electromagnetism, remote sensing, and planetary science.
Prof. Winebrenner is a member of the American Physical Society, the Optical Society of America, the American Geophysical Union, the International Glaciological Society, and Sigma Xi.

M. Hassan Arbab received the B.S. degree in electrical engineering from Shahid Beheshti University, Tehran, Iran, in 2004 and the M.S. and Dual Ph.D. degrees in electrical engineering and nanotechnology from the University of Washington, Seattle, WA in 2008 and 2012, respectively.
From 2012 to 2016 he was a Postodctotal Research Associate and a Senior Research Scientist with the Applied Physics Laboratory at the University of Washington. Since 2016, he has been an Assistant Professor with the Biomedical Engineering Department, Stony Brook University, Stony Brook, NY. His research interests include terahertz science and technology, ultrafast and nonlinear optics, signal and image processing, machine learning and biomedical applications of terahertz spectroscopy.
Dr. Arbab is a member of the American Physical Society, the Optical Society of America, The International Society for Optical Engineering and the Biomedical Engineering Society.
Contributor Information
Mahmoud E. Khani, Department of Biomedical Engineering, Stony Brook University, Stony Brook, NY, 11794 USA.
Dale P. Winebrenner, Department of Electrical Engineering, and the Applied Physics Laboratory, University of Washington, Seattle, WA, 98195 USA
M. Hassan Arbab, Department of Biomedical Engineering, Stony Brook University, Stony Brook, NY, 11794 USA.
References
- [1].Yang X, Zhao X, Yang K, Liu Y, Liu Y, Fu W, and Luo Y, “Biomedical applications of terahertz spectroscopy and imaging,” Trends Biotechnol, vol. 34, no. 10, pp. 810–824, October. 2016. [DOI] [PubMed] [Google Scholar]
- [2].Shen YC, “Terahertz pulsed spectroscopy and imaging for pharmaceutical applications: a review,” Int. J. Pharm, vol. 417, no. 1–2, pp. 48–60, September. 2011. [DOI] [PubMed] [Google Scholar]
- [3].Liu HB, Chen Y, Bastiaans GJ, and Zhang XC, “Detection and identification of explosive RDX by THz diffuse reflection spectroscopy,” Opt. Express, vol. 14, no. 1, pp. 415–423, January. 2006. [DOI] [PubMed] [Google Scholar]
- [4].Zhong H, Redo-Sanchez A, and Zhang XC, “Identification and classification of chemicals using terahertz reflective spectroscopic focal-plane imaging system,” Opt. Express, vol. 14, no. 20, pp. 9130–9141, October. 2006. [DOI] [PubMed] [Google Scholar]
- [5].Jepsen PU, Cooke DG, and Koch M, “Terahertz spectroscopy and imaging–Modern techniques and applications,” Laser Photon Rev, vol. 5, no. 1, pp. 124–166, October. 2011. [Google Scholar]
- [6].Pickwell E and Wallace VP, “Biomedical applications of terahertz technology,” J. Phys. D Appl. Phys, vol. 39, no. 17, pp. R301–R310, August. 2006. [Google Scholar]
- [7].Zeitler A, Taday PF, Newnham DA, Pepper M, Gordon KC, and Rades T, “Terahertz pulsed spectroscopy and imaging in the pharmaceutical setting-a review,” J. Pharm. Pharmacol, vol. 59, no. 2, pp. 209–223, February. 2007. [DOI] [PubMed] [Google Scholar]
- [8].Heilweil EJ and Plusquellic DF, “Terahertz spectroscopy of biomolecules,” in Terahertz spectroscopy: principles and applications, Boca Raton, FL, USA: CRC press, 2007, ch. 7, pp. 269–295. [Google Scholar]
- [9].Ho L, Pepper M, and Taday P, “Terahertz spectroscopy signatures and fingerprints,” Nat. Photonics, vol. 2, pp. 541–542, September. 2008. [Google Scholar]
- [10].Zurk LM and Schecklman S, “Terahertz scattering,” in Terahertz Spectroscopy and Imaging, vol. 171. New York, NY, USA: Springer, 2012, pp. 95–115. [Google Scholar]
- [11].Zurk LM, Orlowski B, Winebrenner DP, Thorsos EI, Leahy-Hoppa MR, and Hayden LM, “Terahertz scattering from granular material,” J. Opt. Soc. Am. B, vol. 24, no. 9, pp. 2238–2243, September. 2007. [Google Scholar]
- [12].Arbab MH, Chen A, Thorsos EI, Winebrenner DP, and Zurk LM, “Effect of surface scattering on terahertz time domain spectroscopy of chemicals,” in Proc. SPIE 6893, San Jose, CA, USA, 2008, pp. 68930C-1–68930C-8. [Google Scholar]
- [13].Schecklman S, Zurk LM, Henry S, and Kniffin GP, “Terahertz material detection from diffuse surface scattering,” J. Appl. Phys, vol. 109, no. 9, pp. 094902–1–094902–10, May. 2011. [Google Scholar]
- [14].Dikmelik Y, Spicer JB, Fitch MJ, and Osiander R, “Effects of surface roughness on reflection spectra obtained by terahertz time-domain spectroscopy,” Opt. Lett, vol. 31, no. 24, pp. 3653–3655, November. 2006. [DOI] [PubMed] [Google Scholar]
- [15].Ortolani M, Lee J, Schade U, and Hübers HW, “Surface roughness¨ effects on the terahertz reflectance of pure explosive materials,” Appl. Phys. Lett, vol. 93, no. 8, pp. 081906–1–081906–3, August. 2008. [Google Scholar]
- [16].Shen Y, Taday P, and Pepper M, “Elimination of scattering effects in spectral measurement of granulated materials using terahertz pulsed spectroscopy,” Appl. Phys. Lett, vol. 92, no. 5, pp. 051103–1–051103–3, February. 2008. [Google Scholar]
- [17].Osman OB and Arbab MH, “Mitigating the effects of granular scattering using cepstrum analysis in terahertz time-domain spectral imaging,” PLoS ONE, vol. 14, no. 5, pp. e0216952–1–e0216952–14, May. 2019. [DOI] [PMC free article] [PubMed] [Google Scholar]
- [18].Arbab MH, Winebrenner DP, Thorsos E, and Chen A, “Retrieval of terahertz spectroscopic signatures in the presence of rough surface scattering using wavelet methods,” Appl. Phys. Lett, vol. 97, no. 18, pp. 181903–1–181903–3, November. 2010. [Google Scholar]
- [19].Kaushik M, Ng BWH, Fischer BM, and Abbott D, “Terahertz fingerprinting in presence of quasi-ballistic scattering,” Appl. Phys. Lett, vol. 101, no. 6, p. 061108–1–061108–5, August. 2012. [Google Scholar]
- [20].Arbab MH, Winebrenner DP, Thorsos EI, and Chen A, “Application of wavelet transforms in terahertz spectroscopy of rough surface targets,” in Proc. SPIE 7601, San Francisco, CA, USA, 2010, pp. 760106–1–760106–7. [Google Scholar]
- [21].Khani ME and Arbab MH, “Extraction of THz absorption signatures obscured by rough surface scattering using discrete wavelet transform,” in Proc. IEEE (IRMMW-THz), Nagoya, Japan, 2018. [Google Scholar]
- [22].Shen Y, Huang S, and Pickwell-MacPherson E, “Frequency-wavelet domain deconvolution for terahertz reflection imaging and spectroscopy,” Opt. Express, vol. 18, no. 2, pp. 1177–1190, January. 2010. [DOI] [PubMed] [Google Scholar]
- [23].Bruce LM, Koger CH, and Li J, “Dimensionality reduction of hyperspectral data using discrete wavelet transform feature extraction,” IEEE Trans. Geosci. Remote Sens, vol. 40, no. 10, pp. 2331–2338, October. 2002. [Google Scholar]
- [24].Liu W, Zhang R, Lu Y, She R, Zhou K, Fang B, Wei G, and Li G, “Classification of terahertz pulsed signals from breast tissues using wavelet packet energy feature exaction and machine learning classifiers,” in Proc. SPIE 11196, November. 2019. [Google Scholar]
- [25].Percival DB and Walden AT, “The Discrete Wavelet Transform,” in Wavelet methods for time series analysis, Cambridge: Cambridge University Press, 2000, pp. 56–158. [Google Scholar]
- [26].Strang G and Nguyen T, Wavelets and filter banks. Wellesley, MA: Wellesley-Cambridge, 1996. [Google Scholar]
- [27].Beckmann P and Spizzichino A, The scattering of electromagnetic waves from rough surfaces. Norwood, MA, USA: Artech House, Inc., 1987. [Google Scholar]
- [28].Tsang L, Kong JA, Ding KH, and Ao CO, Scattering of electromagnetic waves: numerical simulations, vol. 25, NY, USA: John Wiley & Sons, 2004. [Google Scholar]
- [29].Daubechies I, Ten lectures on wavelets, vol. 61. Philadelphia, Pennsylvania, USA: Society for Industrial and Applied Mathematics (Siam), 1992. [Google Scholar]
- [30].McCoy E, Percival D, and Walden A, “On the phase of least-asymmetric scaling and wavelet filters,” Tech. Rept, TR-95–15, Statistics Section, Imperial Collage, 1995. [Google Scholar]
