Abstract

The adaptive algorithm satisfies the present needs on technology for diagnosis biosignals as lung sound signals (LSSs) and accurate techniques for the separation of heart sound signals (HSSs) and other background noise from LSS. This study investigates an improved adaptive noise cancellation (ANC) based on normalized last-mean-square (NLMS) algorithm. The parameters of ANC-NLMS algorithm are the filter length parameter, which is determined in sequence of 2, 4, 8, 16, … , 2048, and the step size (), which is automatically randomly identified using variable (VSS) optimization. Initially, the algorithm is subjected experimentally to identify the optimal range that works with 11 values as a specific case. This case is used to study the improved performance of the proposed method based on the signal-to-noise ratio and mean square error. Moreover, the performance is evaluated four times for four values, each of which with all to obtain the output matrix (4 × 11). The improvement level is estimated and compared with the prior to the application of the proposed algorithm and after . The proposed method achieves high-performance ANC-NLMS algorithm by optimizing VSS when it is close to zero at determining , at which the algorithm shows the capability to separate HSS from LSS. Furthermore, the of normal LSS starts to improve at of 64 and limit of 1024. The of abnormal LSS starts from a value of 512 to more than 2048 for all determined . Results revealed that the of the abnormal LSS is small (negative value), whereas that in the normal LSS is large (reaches a positive value). Finally, the designed ANC-NLMS algorithm can separate HSS from LSS. This algorithm can also achieve a good performance by optimizing VSS at the determined 11 values. Additionally, the steps of the proposed method and the obtained may be used to classify LSS by using a computer.

1. Introduction

Lung sound signals (LSSs) exhibit nonperiodicity and low frequency; these signals also contain symptoms of many diseases and interfere with frequency components (50–2500 Hz) with heart sound signal (HSS) frequency in the range of 20–600 Hz [1]. Furthermore, the interference between LSS and HSS is high due to the nearby positions and physiological recording points of the two signal sources. Therefore, the keeping symptoms on LSS overlap and the increase in difficulty of separating HSS and other noise from LSS. They require modern and highly accurate tools for filtering and separation. The adaptive filter (AF) satisfies the LSS purification requirements, and it is an effective tool used to filter LSS from other interference signals or noises. The adaptive noise canceller (ANC) used in this study is a type of AF.

Many works have widely investigated the filtering and separation of LSS by using the ANC or the adaptive line enhancement (ALE) with the last-mean-square (LMS) and normalized last-mean-square (NLMS) algorithms [27]. NLMS algorithm can be used to separate HSS from LSS [3, 4] because it can deal with two signals recorded in real time. In general, previous studies have focused on the main parameters of AF, including the filter length (L), constant step size (), filter type (such as ALE or ANC), and algorithm (such as NLMS or LMS) to obtain improved AF performance. However, these parameters and combination of techniques have been used with several limitations.

The effect and estimating performance of the designed method were studied using power spectrum density (PSD), which is based on monitoring the concentration of an average power frequency. The PSD graphic shows the comparison before and after signal separation [46]. A few studies have also investigated the effects of separating different biosignals from noises, such as LSS, ECG, and myoelectric signals, on the signal-to-noise ratio (SNR) at specified requirement outputs [3, 811].

The present study evaluates the estimation performance of ANC based on NLMS algorithm to separate HSS from contaminated LSS on the SNR and the behavior of mean square error (MSE). Moreover, the improvement in performance level is studied under four values of the optimal variable (VSS) and 11 determined values in the following sequence: . Therefore, the performance for one separation is processed 44 times (4 × 11), that is, the SNR is calculated to obtain 4 × 11 matrix of the output values. Such combination of the proposed algorithm overcomes the limitations of previous studies in addition to the following: the use of NLMS algorithm instead of LMS algorithm because LMS algorithm cannot be adopted with two long signals and the use of ANC instead of ALE. The VSS initially is studied to identify the optimal range that can work with 11 . The level of performance improvement is estimated by comparing the SNR before and after applying the proposed method. The proposed method is carried out and processed using a code program on the MATLAB platform. The proposed method can deal with large data, process repeatedly according to the number of the values, and calculate the values.

Results revealed the ability of the designed ANC-NLMS algorithm to separate HSS from LSS successfully and showed the increasing performance with increasing value. The improved SNR of the normal and abnormal LSSs is particularly achieved at the range of 64–1024 and 512–2048, respectively, at the determined . The comparison of with the obtained matrix of the aids in exploring the existence of distinguishable characteristics between normal and abnormal LSSs, which can be used in computerized LSS classification.

2. Materials and Methods

2.1. Materials

Required signals of heart and lung sounds used for experiments are obtained from the laboratory of the Biomedical Engineering Department at University of Science and Technology, Yemen. LSS and HSS are recorded using two-channel electronic stethoscopes and stored in wav format [4]. Both signals are recorded with sampling frequency of 44100 Hz. HSS recording is carried out on the down anterior region of the chest. The HSS used in this study is normal, which consists of the first heart sound (S1) and murmurs (shown in Figure 1).

The lung sound auscultation is performed on the left down posterior and right anterior regions of the chest. The lung sounds considered in this study are described in Table 1.

2.2. ANC Algorithm Architecture

The present study investigates on the performance of the combination of ANC with NLMS to separate HSS from LSS. The NLMS is more stable than the LMS in terms of dealing with more than one signal in real-time applications; the NLMS algorithm also displays higher and faster rate of convergence than that of LMS [12]. According to the stated abilities, NLMS algorithm is used in this case study. The original input of ANC is used for contaminated LSS, and the reference input is used for the noise HSS. Figure 2 illustrates the main components of ANC-NLMS algorithm architecture.

The inputs of ANC-NLMS represent two wave files, each of which is recorded by an individual channel. The original signal Xi(n) is contaminated by the reference signal hi(n) during the recording process.

The original input signal can be described as follows:where is the desired pure lung sound (LSS), is the interfered HSS in that represents noise, and is a corresponding order number of the signal.(i)The reference input signal, that is, , is assumed almost correlated with .

The filter output is defined as follows:where is the filter length, and is the value determined from the sequence of 2, 4, 8, 16, 32, 64, 128, 256, 512,1024, 2048, at which the designed algorithm performance is examined. Additionally, is a number of iteration, is the input vector of time delayed input values, and is the weight vector at the time n that can be minimized, as shown in(ii)The value for the input vector is calculated as follows:where is a small positive constant used to avoid division by zero when the input vector is zero. Thus, the problem on obtaining a gradient noise amplification in tap weights is solved. Furthermore, is the adaptation positive constant that is commonly less than 1 (0 <  < 1) [12, 13].

2.3. NLMS Optimization

NLMS optimization is a principal method for minimal disturbance presented in [13], where the error signal is defined as the difference between the desired signal and the filter output in (2). Hence, the error is minimized in magnitude and rearranged as follows:

The NLMS algorithm recursion obtains the constrained optimization criterion. The tap weight is as follows:

NLMS algorithm is an indication of the minimal disturbance among iterations [13, 14]. Table 2 summarizes the NLMS algorithm.

2.4. NLMS

The parameter should be optimized to ensure the reliability of the designed algorithm [15] at 11 values (determined previously) as a case study. The optimal is obtained through the following steps. First, most ideal VSS is randomly searched. Results from the first step are used in the second step. Such results include the implementation and automation of the algorithm work. Both steps are described in further detail in the following paragraphs.(i)First step: random search for the most ideal possible presents two main parameters, namely, α and β, which can affect the overall performance of the algorithm. This aspect is the motivation for the VSS approaches, that is, two parameters (α and β) will be controlled to satisfy the required performance. The experiments are carried out with consideration of the following:(a)The adaptation constant α is changed within the range of , and the small positive constant β is changed within the range [12].(b)The VSS is studied within the range of 0‐1 at the determined value.(c)The influence on the overall performance is monitored on the minimization of MSE, behavior, and algorithm output graphics.(ii)Second step: auto-optimum VSSThe proposed idea here is a modified method from pseudorandom number generator for NLMS algorithm [16]. The main parameters α and β are changed randomly into variable value from random numbers of distribution from 0 to 1 at each iteration time. is obtained within a fixed optimal range of , which is explored experimentally from the first step. The proposed idea is implemented, as shown in Table 3; it achieves the optimum solution of NLMS in Section 2.3.

2.5. Performance Analysis
2.5.1. MSE

MSE is a performance function of AF, and its target is the low MSE value for it to achieve a proper performance [13]. Therefore, the values and graph of this quantity are essential to evaluate the performance of the AF. The formula for MSE is given by the following equation:where denotes the statistical expectation, and is the estimated error of AF. The MSE is calculated for the evolution of AF performance during searching for the optimal VSS, as shown in Table 4.

2.5.2. SNR Evaluation

SNR is used as a metric to estimate the performance of the proposed method, and it is defined as the ratio of the amount of signal to the amount of noise [17]. In the present study, SNR is calculated before and after applying the ANC-NLMS algorithm to compare their values for the same signals at the determining condition. The input SNR () of the recording signal is measured in amplitudes; thus, must be squared to be proportional to power, as expressed in (8) [18, 19].where is the original signal defined in (1) and considered the signal, is the reference signal and considered the noise, and refers to the same number of pair signals. Moreover, denotes operations in calculating the expectation calculation in the time domain. According to the proposed method, (8) is suitable for SNR calculation because is correlated with existing noise () in .

The output value after applying ANC-NLMS is given by the following equation:where is the output (pure LSS) of ANC-NLMS and considered the signal, and is the estimated error (noise measurement) of ANC-NLMS and considered the noise. The higher output SNR () than that of indicates the pureness of the obtained LSS and success of the noise removal and consequently improves the performance of ANC-NLMS. The improvement level is estimated as follows:

2.5.3. Output Graphics

Visual graphics are used as metrics in observing the change in input and output graphics. These graphics will illustrate the input signals (original and reference) in two windows and two other windows for output signals (pure LSS and estimated error). Accordingly, the change can be easily observed.

The experiment is carried out using MATLAB platform, in which an algorithm code is designed to obtain the main output signals, their graphic matrix () (11) , and other input parameters. is used as one of metrics for the improvement of AF performance during searching for the optimal VSS. The obtained SNR is shown in Table 5.

2.6. Experiment Procedures

The experiment procedures are summarized as follows:(i)Create the coding program.(ii)Unite the frequency sampling (8000 Hz).(iii)The maximum duration of studied signal is 3.5 s, that is, one completed breathing cycle, which is equal to 28000 samples.(iv)Experimentally identify the optimal range as stated in Section 2.5.(v)Procedure is performed with for each value (i.e., 11 times according to the values) to calculate and obtain the 11 times at each value.(vi)The procedure is repeated similarly with each value, that is, four values within the determined optimal value, to obtain 44 total processing for signal at (), where j = 2, 4, 8, 16, … , 2048. Therefore, is calculated 44 times and updated with each to obtain the matrix shown in (11).(vii)The experiment is carried out on MATLAB platform, in which an algorithm code is designed to obtain the main output signals and performance analysis tools.

3. Results

To obtain reliable results during all procedures, including the searching for the optimal VSS, the number of samples and were considered because of their effects on the performance of the designed algorithm.

Figure 3 shows the MSE of with a value of 0.06, which displays faster convergence rate than those of others. Additionally, the AF became steady after approximately 200 iterations at steady state error of approximately −24 dB. The other MSE tools needed a long time to converge and became steady after approximately 400 iterations at steady state errors of approximately −26 dB for  = 0.033 and −25.5 dB for  = 0.028 and 0.0085. Thus, the steady state errors were small.

Figure 4 illustrates the results for large VSS that results in unstable performance and unsatisfied results. According to the comparison between Figures 3 and 4, the performance was good when VSS was small and close to zero. The same conclusion was observed in the changes in MSE and values; they improved gradually with decreasing and when they became close to zero, as shown in Tables 4 and 5.

Searching for the optimal VSS identified the VSS optimal range of . Thus, the designed algorithm lost its stability when was used without the identified range, as shown in Tables 4 and 5 and Figures 3 and 4.

Figures 5(a)5(c) display that the maximum amplitude of input signal (Figure 5(a)) is 0.18, the maximum amplitude of the error signal is approximately 0.0015 (Figure 5(c)), and the maximum amplitude of square error is 0.00004 (Figure 5(b)). This result showed an increase in the algorithm number of computation windows and minimization of error, as well as MSE, which is considered a function of NLMS performance. Therefore, NLMS optimization achieved minimal disturbance, and the designed algorithm accurately adapted and converged to separate HSS from the original signal (Section 2.3).

The auto-optimal algorithm of identifying VSS has been used to evaluate the separation of HSS from the original signal that consists of contaminated LSS and HSS based on SNR, as well as the performance of ANC and NLMS algorithm combination.

Table 6 shows the values calculated from the AF outputs for the abnormal LSS case. Results of the comparison of the values shown in Table 1 and the values shown in Table 6 indicated that the values were located from −14.4 dB to −53 dB in an abnormal case. This result suggested that the abnormal LSS included high amount of noise, and the values changed according to the and determined VSS.

Figure 6 demonstrates the visual difference before and after applying the proposed method at the determined parameters where the original signal (graphic 1, Figure 6(a)) showed higher frequency components than that of pure LSS (graphic 3, Figure 6(c)). In addition to the improved level of , these results indicated the separation of the noise components from the desired LSS.

Table 7 shows the improved performance level of separating signals on normal LSS case by observing that started from and increased with increased value. The improvement level based on also increased with increased value and obtained small change at different VSS.

The values of normal LSS ranged from −3.93 dB to −7.78 dB (Table 1). The values changed according to the and determined (Table 7).

Figure 7 exhibits the signal obtained by the designed algorithm, with the visual difference between the original signal (graphic 1, Figure 7(a)) and the pure LSS (graphic 3, Figure 7(c)). In general, the frequency components were low in the subjected original signal and decreased after applying AF on the pure LSS (graphic 3, Figure 7(c)).

4. Discussions

The optimized results of the designed algorithm determined the optimal VSS range of ; in this range, the AF became highly stable with nonstationary biosignals, such LSS, where the performance of the proposed method showed the most ideal trade-off between convergence speed and low steady error on the basis of the appropriately autoselected µ [7, 15]. This achievement approved the proper work of the designed algorithm and its capability to separate signals by identifying the VSS range on NLMS algorithm, which is in agreement with the results of several works [2022].

The values improved progressively at determined and values for abnormal and normal lung sounds, as shown in Tables 6 and 7, respectively. The matrix indicated that the performance level in the normal and abnormal LSSs started improving from the values of 64,128 and 256,512, respectively. Moreover, can be the upper limit at which the AF may work stably with normal LSS and obtain accurate outputs. AF can work at L more than 2048 with abnormal LSS. This result can be due to that it consists of normal LSS for low-frequency components, and the abnormal LSS consists of high-frequency components.

The values revealed several distinct markers between LSSs; the normal LSS shows high SNR values, that is, the SNR value reaches close to 0 or the positive axis. By contrast, the SNR values of the abnormal LSS are considerably small in the negative axis. Therefore, these characteristics may reveal clear difference that can differentiate between both LSS types whether in terms of or values.

The performance estimation of ANC-NLMS algorithm combination based on automatic identification of the optimal VSS validated the correctness of the proposed method and its sequence steps in separating HSS from LSS. Additionally, such estimation explored the distinct features differentiating normal LSS from abnormal LSS, and these characteristic may be used as primary features to classify LSS.

5. Conclusions

This study investigated an effective method of ANC-NLMS algorithm based on automatic identification of the optimal VSS for 11 values to separate HSS from LSS. The performance of the designed algorithm evaluated at determined conditions showed good result by reducing and minimizing the error gradually to zero after the convergence time.

The effectiveness of the designed algorithm to separate HSS from contaminated LSS estimated based on the illustrated a progressive performance improvement level with increasing and significantly improved separation of HSS from LSS.

This explored a novel method to differentiate between normal and abnormal LSSs. This method may be used as basis in developing computerized diagnosis and automating LSS calcification.

The proposed approach clarified the correctness of the combined designed algorithm and achieved significant performance. The proposed method may be subject for further study on LSS under different settings and durations.

Data Availability

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

Conflicts of Interest

The authors declare that they have no conflicts of interest.