Signal Denoising Method Based on Improved Wavelet Threshold Function for Microchip Electrophoresis CD Equipment

A signal denoising method using improved wavelet threshold function is presented for microchip electrophoresis based on capacitively coupled contactless conductivity detection (ME-CD) device. )e evaluation results of denoising effect for the MECD simulation signal show that using Daubechies 5 (db5) wavelet at a decomposition level 4 can produce the best performance. Furthermore, the denoising effect is compared with, as well as proved to be superior to, the existing techniques, such as Savitzky–Golay, Fast Fourier Transform, and soft threshold method. )is method has been successfully applied to the selfdevelopedME-CD equipment. After executing this method, the noise is cleanly removed, and the signal peak shape and peak area are well maintained.

e ME-C 4 D device analyzes the ion composition in solution by detecting the change of electrical conductivity based on the coupling capacitance between the electrode and insulation layer of the chip [12][13][14][15]. erefore, it can effectively avoid some troubles of electrochemical contact detect method, such as electrode scaling, electrolysis bubble, electric field interference, and so on [13][14][15][16]. But the ME-C 4 D device has poor anti-electromagnetic interference ability and low sensitivity [17][18][19]. e inherent noise of the system and the structure of the microfluidic chip will cause the ME-C 4 D signal to be disturbed, thus affecting the analysis of the detection results and reducing its accuracy. erefore, finding an appropriate method for signal denoising is an extremely important processing step before analysis and diagnosis. e traditional signal denoising methods mainly include Fourier transform and curve fitting method. e Fourier transform is simple and easy to implement, but it is difficult to solve the noise filtering of nonstationary signals. e curve fitting method has high accuracy, but there are difficulties in selecting fitting points. e wavelet transform (WT), that developed rapidly from the 1980s, can fully highlight the characteristics of some aspects of problem, which has been widely used in capillary electrophoresis (CE) signal denoising [20,21]. Furthermore, the wavelet threshold denoising developed from WT has better performance [22]. e denoising effect of this method mainly depends on the selection of threshold function. Some traditional threshold functions such as hard threshold and soft threshold are widely used for signal denoising due to the simple structure and good efficiency. For example, Liu uses hard threshold function to denoise microchip CE signal sampled from a home-built laser-induced fluorescence detection system [19]. Zhang et al. improve the soft threshold function to enhance the electrochemiluminescence CE signal denoising effect [22]. e above WT methods can achieve excellent denoising effect, but paid less attention to the maintenance of wave peak area, which is a very important feature for analyzing the ME-C 4 D signal, and can reflect the content of the ion component to be detected [23]. erefore, they are not very suitable for the ME-C 4 D signal. e objective of this work is to develop an effective denoising method with minimal impact on the signal peak shape and area for improving the performance of the ME-C 4 D device. We have improved the wavelet threshold function according to the ME-C 4 D signal characteristics. Evaluation of denoising effect for the ME-C 4 D simulation signal has been done by selecting various wavelets and different decomposition levels, and it was found that db5 wavelet at level 4 is the optimal solution. Furthermore, the proposed method has been successfully applied to the selfdeveloped ME-C 4 D equipment for signal denoising.

Chemicals.
Potassium chloride, sodium chloride, lithium chloride sample solution, and MES-His buffer solution were of analytical grade, purchased from Sinopharm Chemical Reagent Co., Ltd. All chemicals were degassed ultrasonically for 5 minutes before being used and filtered with a 0.22 μm pore water microfiltration membrane.

Apparatus.
A self-developed ME-C 4 D equipment used in the experiment described is shown in Figure 1. e microchip (cross-shaped structure; the chip separation channel length is 50 mm, 50 μm in width, and 25 μm in depth) was placed on the testing table of the detector. Under a given high-voltage electric field, the directional migration of the microchannel solution will occur. When the ions flow through the detector at the end of the channel, the induced current signal will be converted to a voltage signal and finally displayed on the computer after a series of processing steps. Among them, the control of voltage, sample injection time, and signal waveform can be controlled by the computer. e monitoring software on the PC terminal was self-developed.

Noise Sources.
e analysis channel in the microfluidic chip is micron level, and the noncontact conductance detection is completed based on capacitive coupling principle. erefore, the detected ME-C 4 D signal is very weak and will be disturbed by a lot of noise. In order to eliminate noise effectively, it is necessary to analyze the cause of noise and take corresponding measures to deal with it according to different noise sources.
According to the ME-C 4 D signal detection principle and experimental results, the interference and noise of the solution electrical conductivity signal mainly come from two sources. One is the inherent noise of the system, such as the external noise signal from the detection circuit caused by the action of electricity, magnetism, etc., which can be directly filtered through the hardware in the microfluidic chip detection device. e other is high-frequency noise, which is caused by the fast acquisition rate, microchip, detect circuits, environmental disturbances, and so on [24]. It is difficult to filter by optimizing the hardware design of the ME-C 4 D equipment. e threshold method based on wavelet transform has a good denoising performance. erefore, this paper studies the appropriate denoising method based on wavelet transform.

Wavelet resholding Denoising eory.
It is assumed that the ME-C 4 D signal with noise which is collected by microchip electrophoresis analysis device can be expressed as where f(i) is the ME-C 4 D signal with noise, s(i) is a pure ME-C 4 D signal, and the noise signal is represented by n(i).
Because it is very difficult to recover s(i) directly from the noisy signal f(i) , the useful signal and noise can be separated by processing the corresponding wavelet decomposition coefficients according to the different characteristics of it's in the wavelet transform. In practical applications, the useful signals are usually in the low frequency band, while the noise signals are usually in the high-frequency band. According to this characteristic, we can firstly decompose the signal by wavelet transform. As an example, three-level decomposition is shown in Figure 2. e noise-containing signal is decomposed into a low-frequency coefficient (CA1) and a high-frequency coefficient (CD1). CA1 can be further decomposed to form a new low-frequency coefficient (CA2) and a new high-frequency coefficient (CD2). With the increase of the decomposition level, the wavelet coefficient amplitude of the useful signal is basically unchanged, while the amplitude of wavelet coefficient of noise is rapidly attenuated to zero [25]. erefore, the wavelet coefficients after decomposition can be processed by selecting appropriate threshold function, and then the signal can be reconstructed to achieve the effect of denoising.

Denoising by Improved reshold Function.
e wavelet coefficients of the ME-C 4 D signal have strong correlation at different decomposition levels, while the wavelet coefficients of the noise are weak or irrelevant [26], which is suitable for the denoising range of wavelet transform.
e ME-C 4 D 2 Complexity signal denoising procedure by wavelet transform is as follows: (1) A suitable wavelet basis function similar to the original ME-C 4 D signal is selected and the number of decomposition layers is determined. e J layer wavelet decomposition of the noise ME-C 4 D signal is carried out by using Mallet algorithm, and the high-frequency coefficient components and lowfrequency coefficient components of different decomposition scales are obtained. (2) Select the threshold and use a threshold function to quantify the high-frequency wavelet coefficients from layer 1 to layer J. (3) e low-frequency coefficients of layer J and the high-frequency coefficients of layer 1 to layer J processed by threshold function are inversely transformed to obtain the denoised ME-C 4 D signal.
e denoising effect mainly depends on the selection threshold and the design of threshold function in step (2). In this work, the classical fixed threshold is adopted, and its expression is where λ is the threshold, N is the length of the ME-C 4 D signal, and σ represents the standard deviation of the noise signal. σ is used to measure the strength of the noise signal, and σ � median(w jk )/0.6745, where median(·) means the return median function. ere are two classical types of threshold functions for wavelet denoising, that is, hard and soft threshold. e soft threshold function is more representative. It can be defined as where w jk is the wavelet coefficient of the original signal after wavelet transform, w ∧ jk is the estimated wavelet coefficient after quantification, and λ is the threshold. e soft threshold function graph is depicted in Figure 3.
It can be seen from Figure 3 that the soft threshold function has a good continuity, which overcomes the shortcomings of discontinuity in the hard threshold function and solves the problem that some oscillations will occur in the reconstructed signal. However, there is a constant deviation between original and estimated value of the wavelet coefficient. It is bound to make the reconstructed signal produce distortion and reduce the accuracy. In addition, the wavelet denoising principle illustrates that the smaller wavelet coefficients are also composed of useful signals and noises [27]. However, according to equation (3), if the wavelet coefficients with absolute values smaller than the threshold are set to zero, some useful signal information will be lost and thus the signal-to-noise ratio (SNR) will be reduced.
In order to overcome the above defects of soft threshold function and improve the denoising effect, a new threshold function should meet the following requirements: (1) e function is continuous at the threshold points.
(2) e constant deviation between the original and quantized wavelet coefficients is reduced as much as possible. However, if the deviation is reduced to zero, it will become a hard threshold function, which cannot achieve the improvement effect [25]. (3) Retain some useful signal information in smaller wavelet coefficients to reduce signal distortion.
Based on the three above requirements, this paper introduces nonlinear function and variable parameters and proposes an improved threshold function: where a is a variable parameter less than 1/λ 2 . e improved threshold function has continuity and overcome the defect of constant deviation of soft threshold function. By multiplying a with the smaller wavelet coefficient w jk , the removal ratio of noise signal can be controlled by adjusting the value of a. By this mean, the useful signal information in the small wavelet coefficients can be retained flexibly, so the denoised signal is closer to the original one. ese properties of this improved threshold function and the corresponding proof are presented as follows: (1) Continuity analysis is Complexity e threshold function is continuous at threshold λ and −λ.
erefore, the threshold function is continuous over the whole real number field.
(2) Progressive analysis is When w jk ⟶ ∞, w jk takes w jk � w jk as the asymptote and approaches w jk infinitely, so as to reduce the deviation between the original and the threshold quantized wavelet coefficients as much as possible.
e comparison between hard, soft, and improved function is shown in Figure 4. When a is 0, the improved threshold function is equivalent to the traditional soft threshold function, and when a ⟶ 1/λ 2 , the estimated value w ∧ jk is closer to the original wavelet coefficient w jk . e parameters can be adjusted freely to denoising different signals.
erefore, the improved threshold function was significantly better than the soft threshold function at adaptive ability and flexibility.

Denoising of the ME-C 4 D Simulation Signal.
e ME-C 4 D signal has some peaks, generally represented as Gaussian peaks, reflecting the characteristic spectral lines of a particular substance. When analyzing the substance composition, the obtained peaks' spectra are compared with the characteristic spectral line of some substances. en, the detected peaks' spectra can indicate which components are contained in the mixture [28].
Due to the lack of standard testing equipment, the simulation means are often used in the research of μ-TAS signal denoising [22,29]. When the effectiveness is verified by simulation, the method is applied to the self-developed instrument. Based on the simulation model to capillary electrophoresis signal [29], and according to the characteristics of actual ME-C 4 D signal, a mathematical model of simulation signal was established as follows: where I is the simulation ME-C 4 D signal, A R is the area of the peak, t R represents the central peak position, σ R represents the half peak width, and I 0 is used to adjust the position of the baseline. As the Gaussian white noise is close to the noise in the actual ME-C 4 D signal, a certain proportion of Gaussian white noise was added to an ideal signal. e mathematical model can be expressed as follows: where noise is Gaussian white noise signal, and β is the proportional coefficient. e ideal and noisy signals are simulated and shown in Figure 5.

Evaluation of Denoising Effect.
In order to intuitively compare the denoising effect of different methods on ME-C 4 D simulation signals, the following two evaluation indexes were introduced: (1) Signal-to-noise ratio (SNR) is (2) Root mean square error (RMSE) is where f(i) is the original signal, f(i) is the reconstructed signal after denoising, n is the sampling points, and N is the signal length. e above two equations indicate that the larger SNR is, the smaller RMSE is, and the better signal denoising effect is.

Selection of Wavelet Basis and Decomposition Level.
Using different wavelet basis functions to denoise the same type of signal will produce different effects. Generally, wavelet bases should have the following characteristics: linear phase, short support, higher vanishing distance, etc. [30]. However, few wavelet bases can have these characteristics at the same time. In this paper, several common wavelet bases were selected for denoising experiments. e comparative analysis of common wavelet bases characteristics is shown in Table 1.
In order to select the optimal wavelet basis and obtain the best denoising effect, three different wavelet bases of db1∼db9, sym1∼sym9, and coif1∼coif5 were evaluated in this paper, and the improved threshold function was used to denoise the signal containing noise. e SNR and RMSE curves of the denoised signals are shown in Figure 6.
After denoising with db5 wavelet basis, the SNR is the largest, and the RMSE is the smallest, so the denoising effect is the best (Figure 6). erefore, db5 wavelet basis was used in the following experiments.
In the process of signal denoising by wavelet transform, the selection of appropriate decomposition layers is also very important problem. On the one hand, the larger the number of decomposition layers, the greater the difference between noise and signal performance, and the easier it is to separate. On the other hand, too many layers will make the reconstructed signal more distorted, which will affect the denoising effect to a certain extent. erefore, it is necessary to deal with this contradiction strictly when selecting the level of decomposition for getting better denoising effect.
On the premise of selecting db5 wavelet basis, the denoising effect of simulated ME-C 4 D signal under different decomposition layers is depicted in Figure 7. It shows that the 4-layer decomposition can get a good signal denoising effect.

Comparison with Other Denoising Methods.
In order to verify the denoising effect of the proposed method, different methods were used to carry out the simulation experiment for the ME-C 4 D signal with different SNR Gaussian white noise. e SNR and RMSE comparison data for the denoise signal are shown in Table 2.
e denoising method presented in this paper has the highest SNR and the lowest RMSE; the denoising effect was significantly better than other methods ( Table 2, shown in boldface). Figure 8 shows the denoising results by the Savitzky-Golay, Fast Fourier Transform, soft threshold method, and the proposed method, respectively. By analyzing the waveform after denoising, it can be seen that the Savitzky-Golay and Fast Fourier Transform were used to denoise the signal, the noise is still apparent (Figures 8(a) and 8(b)).
e ME-C 4 D signal after denoising by the soft threshold method the signal baseline is smooth, but part of the characteristic signal information is lost (Figure 8(c)). After denoising with the proposed method, the noise is basically removed, the baseline is smooth, the characteristic signal is well retained, and the reconstructed signal after denoising is closer to the original signal (Figure 8(d)). erefore, the proposed method has more advantages over the above methods for ME-C 4 D signal denoising.

Application.
After theoretical analysis and simulation verification, the proposed method was applied to denoising for the actual signal, which was detected by self-developed ME-C4D and delivered to PC terminal. Complexity three wave peaks represent K + , Na + , Li + . It is clear that the ME-C 4 D signal is interfered by a certain degree of noise.
Since the above signal is acquired from the device and the noise is not artificially added, we cannot obtain the original ideal noise-free signal; thus, the evaluation indexes SNR and RMSE cannot be used to quantitatively analyze the denoising effect [31]. For the actual collected ME-C 4 D signal, what is really valuable is the peak, especially the peak area or peak height, which reflects the component content of the substance to be measured. erefore, the peak area or peak height can be used as the evaluation index for denoising effect. Because the peak area can be obtained by multiplying  6 Complexity the peak height and the half width, the peak area distortion is used only as the evaluation index to quantitatively analyze the denoising processing effect of the ME-C 4 D signal. e lower the peak area error is, the lower the distortion is, and the better the denoising effect is.
where A is the peak area of ME-C 4 D signal; subscripts d and o represent before and after signal processing, respectively.  Generally speaking, the peak area distortion degree kept within 5% belongs to the normal range. For peaks with symmetrical shape and no baseline drift, the peak height is the vertical distance from the peak top to the baseline at the bottom of the peak, and the half peak width is the width at 1/2 the peak height. However, when the peak shape is asymmetrical and there is a baseline drift, the calculation of peak area by the above method will produce a large error. erefore, this paper uses the following method to calculate the peak area. e schematic diagram for calculating the peak area is shown in Figure 10. Firstly, the baseline AB is determined by the first derivative method. A threshold value is set, when the first derivative is greater than the threshold, it is determined as the starting point of the peak. When the first derivative changes from positive to negative, it is judged as the apex of the peak. After the apex is determined, if the absolute value of the first derivative value of the signal is less than the threshold, it is defined as the end point of the peak. en, a line perpendicular to the x-axis is drawn from the apex E of the peak.
is line intersects the baseline AB at point G, and the length of EG is the peak height (h EG ). Finally, a line parallel to the x-axis and through the midpoint of the EG is drawn. is line intersects the wave peak at two points, F and H, and the length of FH is half width of the peak (σ FH ). So, the peak area can be calculated as e improved threshold function denoising method is adopted to denoise the signal in Figure 9, and the results are shown in Figure 11(d). In order to fully verify the effectiveness of the improved threshold function method for denoising the ME-C 4 D signal, the denoising results of   Figures 11(a)-11(c). e peak area distortion degrees after denoising of each method are calculated according to (13) and (14), as shown in Table 3.
It can be seen from the data in Table 3 that after Savitzky-Golay and Fast Fourier Transform are used to denoise the ME-C 4 D signal, the peak area distortion of the third peak of the signal is greater than 5%, and Figures 11(a) and 11(b) are showing that there is still some noise left in the reconstructed signal after denoising, which has a certain impact on the accuracy of the ME-C 4 D signal analysis. When using soft threshold function to denoise, the baseline is smooth and the noise is basically removed, but the area distortion of the first peak and the third peak are 10.9102% and 12.5462%, respectively, which greatly affects the determination of the content of the measured substance. Obviously, the new proposed method can remove the noise well, the denoised signal is smooth, and the peak areas of the three peaks remain basically unchanged. All these above suggest that the improved threshold function method in this paper is effective and superior to the existing methods.

Concluding Remarks
In this work, a method of ME-C 4 D signal denoising based on an improved threshold function of wavelet transform is proposed.
e simulation experiment results suggest that the proposed method in this paper is superior to Savitzky-Golay,  Complexity 9 Fast Fourier Transform, and soft threshold method. e study on the denoising of the actual detection signals of samples with concentrations of 0.1 mM proves that the proposed method has excellent denoising effect and powerful peak area preservation ability. erefore, this method has important practical value for signal denoising of ME-C 4 D. Furthermore, the improved threshold function method has some limitations, such as the value of the variable parameter a is manually selected by our experience. It is expected that an algorithm will be designed in the future to realize parameter optimization.
Abbreviation ME-C 4 D: Microchip electrophoresis based on capacitively coupled contactless conductivity detection.

Data Availability
e data used to support the findings of this study are available from the corresponding author upon request.

Conflicts of Interest
e authors declare that they have no conflicts of interest regarding the publication of this paper.