Excitation signal optimization method and control system for forced oscillation lung function test
By optimizing the phase and power of the pseudo-random signal through genetic algorithm and permutation entropy, the problem of non-uniform excitation signal generation in the existing technology is solved, personalized frequency matching and signal optimization of the forced oscillation lung function test are achieved, and the accuracy of the test is improved. sex and comfort.
Patent Information
- Application Number
- CN202410798120.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-20
- Publication Date
- 2024-10-01
AI Technical Summary
Existing forced oscillation lung function testing equipment lacks a unified excitation signal generation scheme. Especially when dealing with subject groups with large individual differences, it is impossible to set personalized reference frequency points that match the specific conditions of the subjects. , restricting the promotion and application of testing.
A method based on genetic algorithm and permutation entropy optimization is used to optimize the phase of the pseudo-random signal, adjust the power, phase angle and peak-to-peak value of the excitation signal to ensure its frequency adaptability and phase accuracy, and construct the excitation signal through the superposition of pseudo-random digital signals, and Adjustments are made through flow and pressure signal feedback to meet preset requirements.
It achieves precise matching of excitation signals, significantly reduces distortion caused by speaker overshoot, improves test accuracy and subject comfort, and ensures the reliability of physiological parameter data.
Smart Images

Figure CN118717088A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to medical detection technology, and in particular to an excitation signal optimization method and a control system for a forced oscillation pulmonary function test. Background Art
[0002] Forced Oscillation Technique (FOT) is a non-invasive lung function test technology that uses continuous air pressure oscillations to evaluate the mechanical properties of the respiratory system. This test method measures the response of the subject's respiratory system to these oscillating pressures when the subject passively accepts small-amplitude, high-frequency pressure fluctuations in the airway, thereby obtaining information about airway resistance, lung compliance, and airway viscoelasticity. Due to the non-invasiveness, comprehensiveness, and wide applicability of the FOT test, it has received widespread attention in the field of medical lung function.
[0003] like Figure 1 As shown in the figure, the operation mechanism of the system starts with the control unit, which designs and generates the driving signal. After being enhanced by the amplification link, the driving oscillation source generates the excitation signal to induce the forced vibration of the lung tissue. Subsequently, the dynamic response of the lung to the above-mentioned external excitation is captured by the flow and pressure sensors. These physiological feedback data are then transmitted to the microcontroller unit for in-depth analysis to determine the specific situation of lung function.
[0004] In the actual application scenarios of FOT testing, due to the different values of FOT devices developed by different manufacturers, there is a lack of a unified excitation signal generation scheme. Especially when dealing with a group of subjects with large individual differences, it is impossible to set a personalized reference frequency point that matches the specific situation of the subjects. This has limited the promotion and application of FOT testing to a certain extent. At the same time, there is currently a lack of corresponding research results on how to determine and match the appropriate excitation signal. Summary of the invention
[0005] In view of this, the present invention first provides an excitation signal optimization method for forced oscillation pulmonary function testing, which mainly solves the phase matching problem of existing pseudo-random signal superposition, effectively ensures the frequency adaptability and phase accuracy of the excitation signal, and provides more accurate and reliable physiological parameter data for the clinical diagnosis and treatment of respiratory diseases.
[0006] In order to achieve the above object, the specific technical solutions adopted by the present invention are as follows:
[0007] A method for optimizing an excitation signal for a forced oscillation pulmonary function test comprises the following steps:
[0008] S1: Input multiple specific frequencies and initialize the amplitude of pseudo-random single-frequency signal;
[0009] S2: Obtain the optimal superposition phase of the pseudo-random signal using a method based on genetic algorithm and permutation entropy optimization;
[0010] S3: pseudo-random digital signals are superimposed to construct and drive the speaker to generate an excitation signal, while collecting flow signals;
[0011] S4: Calculate the phase angle of the flow signal in each frequency band;
[0012] S5: Determine whether the phase angle of the flow signal differs from the ideal signal within a first preset range. If yes, proceed to step S6; otherwise, adjust the phase angle of each frequency band signal and return to step S3;
[0013] S6: Calculate the traffic signal power spectrum of each frequency band;
[0014] S7: Determine whether the flow power spectrum is within the second preset range. If yes, proceed to step S8; otherwise, adjust the amplitude of the single frequency band signal and return to step S3;
[0015] S8: Collect the pressure signal and calculate the peak-to-peak value of the pressure signal;
[0016] S9: Determine whether the peak-to-peak value of the pressure signal is within a third preset range. If yes, proceed to step S10; otherwise, adjust the gain of the superimposed pseudo-random signal and return to step S3;
[0017] S10: Calculate the signal-to-noise ratio and the coherence value of the pressure and flow signals;
[0018] S11: Determine whether the coherence value and signal-to-noise ratio of the two signals meet the preset requirements. If so, the oscillation signal is constructed and the forced oscillation pulmonary function test can be performed; otherwise, the current signal cannot be accurately tested, and it is recommended to replace the speaker or re-enter the signal frequency band.
[0019] Optionally, the system constructs a pseudo-random signal by superimposing and combining six sinusoidal signals, and its expression is:
[0020]
[0021] Among them, A i represents the amplitude of the i-th sinusoidal signal, f i is the frequency of the ith signal (Hz), Represents the phase of the ith signal.
[0022] Optionally, the system determines 6 frequency points within the range of 5-30 Hz as the specific frequencies input in step S1.
[0023] Optionally, the length of the genetic algorithm individuals in step S2 is 6, and is as follows:
[0024]
[0025] As the constraint conditions are optimized, 10 sets of quasi-optimal superposition phase data are obtained;
[0026] Among them: Crest factor It indicates the maximum instantaneous amplitude of a signal in a complete cycle or a period of time. flow ) and its effective value rms(S flow ) ratio;
[0027] Phase parameters
[0028] Optionally, by performing permutation entropy analysis on 10 groups of quasi-optimal superposition phase data, a group of superposition phase data with the smallest permutation entropy value is selected as the optimal superposition phase data.
[0029] Optionally, the phase of the input signal is adjusted according to the phase lag of different frequency bands, so that the phase angle of the flow signal corresponding to each frequency band differs from that of the ideal signal within a range of ±1%.
[0030] Optionally, the third preset range of the peak-to-peak value of the pressure signal is between 0.25 kPa and 0.3 kPa.
[0031] Optionally, follow 0≤γ 2 ≤1Calculate the coherence value of pressure and flow signals, where G PV is the cross power spectrum between pressure and flow, G PP , G * VV are the autopower spectra of pressure and flow, respectively;
[0032] The signal-to-noise ratio calculation formula is: Where: W signal Indicates signal power, W noise Represents the noise power.
[0033] Based on the above method, the present invention also provides an excitation signal optimization control system for forced oscillation pulmonary function testing, which adopts the excitation signal optimization method described above and is configured in a forced oscillation pulmonary function testing system.
[0034] The remarkable effects of the present invention are:
[0035] The present invention provides an excitation signal optimization method and control system for forced oscillation pulmonary function testing, which optimizes the phase of the excitation signal based on a genetic algorithm and a permutation entropy optimization method. At the same time, by adjusting the power, phase angle and peak-to-peak value of the combined signal of the excitation signal respectively, the corresponding response can meet the requirements of the ideal excitation signal. After optimization, the amplitude of the excitation signal is significantly reduced, and the distortion caused by the overshoot of the speaker is effectively suppressed. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] Figure 1 This is a diagram of the conventional FOT system architecture;
[0037] Figure 2 is a method control flow chart in an embodiment of the present invention;
[0038] Figure 3 is a genetic algorithm control flow chart provided in an embodiment of the present invention;
[0039] Figure 4 is a time domain comparison diagram of the combined signal before and after phase optimization in an embodiment of the present invention;
[0040] Figure 5 is a comparison diagram of the amplitude and crest factor before and after phase optimization in an embodiment of the present invention;
[0041] Figure 6 is a diagram of a permutation entropy calculation process in an embodiment of the present invention;
[0042] Figure 7 is a diagram of the calculation result of permutation entropy in an embodiment of the present invention;
[0043] Figure 8 is a specific schematic diagram of the excitation signal control method in an embodiment of the present invention;
[0044] Fig. 9 is an ideal signal phase angle diagram in an embodiment of the present invention;
[0045] Fig.10 is the system response information before control in the embodiment of the present invention;
[0046] Fig.11 is the system response information after phase angle control in the embodiment of the present invention;
[0047] Fig.12 is the system response information after amplitude control in the embodiment of the present invention;
[0048] Fig.13 is the system response information after gain adjustment in the embodiment of the present invention;
[0049] Fig.14 is a diagram of the excitation signal adjustment process in an embodiment of the present invention;
[0050] Fig.15 It is the correlation value of the flow signal and the pressure signal in the embodiment of the present invention. DETAILED DESCRIPTION
[0051] The following specifically illustrates the implementation mode of the present invention in conjunction with the accompanying drawings. The embodiments are provided for illustrative purposes only and cannot be understood as limiting the present invention. The accompanying drawings are provided for reference and illustration only and do not constitute a limitation on the scope of patent protection of the present invention, because many changes can be made to the present invention without departing from the spirit and scope of the present invention.
[0052] like Figure 2 As shown, this embodiment provides an excitation signal optimization method for forced oscillation pulmonary function testing, comprising the following steps:
[0053] S1: Input multiple specific frequencies and initialize the amplitude of pseudo-random single-frequency signal; usually the system constructs a pseudo-random signal by superimposing and combining 6 sinusoidal signals, and its expression is:
[0054]
[0055] Among them, A i represents the amplitude of the i-th sinusoidal signal, f i is the frequency of the ith signal (Hz), represents the phase of the i-th signal. In a specific implementation, six frequency points are determined as the specific frequencies input in step S1 in a range of 5-30 Hz with each 5 Hz being a unit.
[0056] S2: Obtain the optimal superposition phase of the pseudo-random signal using a method based on genetic algorithm and permutation entropy optimization;
[0057] Genetic Algorithm (GA) is an algorithm that draws on the principles of biological evolution. Its core mechanism is to simulate the dynamic process of species evolution in nature. In the application scenario of GA, the problem parameters to be solved are cleverly converted into binary code representations, where each code sequence contains the potential solution information of the problem parameters. As the iterative process progresses, the original binary code sequence undergoes a series of biologically inspired crossover and mutation operations, which not only promotes the formation of individual differences within the population, but also reflects the dynamic changes of the problem parameter values in the search space.
[0058] In the traditional genetic algorithm process architecture, the concept of "chromosome" is used to abstract data carriers, which are often represented by converting decimal values into binary sequences, in which "genes" - that is, 0 and 1 elements, reflect the state of the parameters to be optimized. The population size refers to the number of individuals participating in the evolution in each iterative operation, and the fitness function is an important criterion for measuring the quality of each binary coding sequence, which is of great significance for guiding genetic operations.
[0059] According to the application requirements, the length of the genetic algorithm individuals in step S2 is 6, and according to:
[0060]
[0061] As the constraint conditions are optimized, 10 sets of quasi-optimal superposition phase data are obtained;
[0062] Among them: Crest factor It indicates the maximum instantaneous amplitude of a signal in a complete cycle or a period of time. flow ) and its effective value rms(S flow ) ratio;
[0063] Phase parameters
[0064] In the specific implementation, first configure the parameters of the genetic algorithm according to Table 1:
[0065] Table 1: Genetic algorithm parameters
[0066]
[0067] In genetic algorithms, the settings of crossover probability and mutation probability play a decisive role in the magnitude of changes in each generation of data sets. When these two probability parameters increase, the differences between parent and offspring individuals will also increase accordingly. Given that the number of decision variables involved in this application is 6, the initial population size is usually selected between 20 and 200 individuals in accordance with conventional practices. Given that the current optimization problem is relatively simple and computing resources are sufficient, 200 was selected as the initial population size during implementation. At the same time, the maximum number of iterations set in the experiment is 100. This value is determined based on experimental observations. After MAXGEN exceeds 100, the genetic algorithm can generally reach a convergence state, that is, effectively find the optimal solution. The length of each individual representation is 6, which reflects the dimensional characteristics of the problem being solved.
[0068] Optimize the process such as Figure 3As shown in the figure, the mathematical expression of the multi-sine combination function and its related parameters are first introduced, and then the initial population is set in the MATLAB environment. Next, these parameters are imported into the computing system, and the amplitude characteristics of the combination function are calculated by the algorithm. Based on this, the phase values corresponding to each sine function are further determined. After that, the genetic algorithm is used to perform a series of key operations, including mutation, crossover and interchange. Then the loop is iterated until the preset number of cycles is 100, during which the optimal individuals are continuously updated and screened. Finally, after several rounds of genetic algorithm iterations, the best 10 sets of candidate phase solutions are output. After the above genetic algorithm optimization process, 10 sets of phase relationships are obtained as shown in Table 2.
[0069] Table 2: Candidate phases
[0070]
[0071] The combined signals corresponding to the above 10 phase groups have large differences in crest factor and amplitude compared with the zero-phase combined signal. Figure 4 The difference between the combined signal generated by the first phase and the zero-phase combined signal. The amplitude of the combined signal before optimizing the phase is A0=4.6832 in the time domain, and its corresponding crest factor is CF0=2.704, compared with the amplitude of the first group of optimized phase combined signals, which is A1=2.558 and crest factor CF1=1.4769. Both parameters are much smaller than the original combined signal, which greatly reduces the amplitude of the signal, optimizes the problem of speaker overshoot, and can also reduce the discomfort caused to the subject in the detection link to a certain extent.
[0072] exist Figure 5 In the figure, a comparative analysis of 10 groups of phase and zero-phase combination signals after genetic algorithm optimization in terms of amplitude and crest factor is shown. The horizontal axis marks the optimized phase configurations from the first group to the tenth group, while the vertical axis intuitively depicts the amplitude and crest factor properties of each group of signals. Among them, the numbers 1 to 10 represent different optimized phase combinations, and the number 0 represents the zero-phase combination signal as a reference.
[0073] In view of the nonlinear system characteristics exhibited by the loudspeaker as an oscillation signal source, in order to suppress the signal mutation phenomenon to the greatest extent, the present invention adopts a two-step optimization strategy. After the genetic algorithm is used to optimize the phase parameters, the permutation entropy method is introduced for the combined signal generated by each group of optimized phase configurations, the permutation entropy corresponding to each group of pseudo-random signals is calculated, and the group with the smallest permutation entropy among the 10 groups of phase combinations is selected, which is regarded as the most ideal oscillation signal configuration under the current conditions. In this way, the advantages of the global search of the genetic algorithm are taken into account, and the nonlinear constraints of the physical system and their influence on the signal quality are fully considered.
[0074] Entropy methods stand out among various complexity analysis methods with their advantages of requiring only a small amount of analysis data, strong anti-interference ability, and simple algorithms. In contrast, other methods may face problems such as information loss, sensitivity to noise, and poor accuracy of results. Based on the basic definition of entropy, a series of entropy methods with various forms have emerged. Among them, permutation entropy (PE), as an emerging means of quantifying irregularities of non-stationary time series, is rooted in entropy theory and was first innovatively proposed by Bandt and Pompe et al. in 2002. Different from traditional absolute numerical considerations, PE focuses on analyzing the ordering relationship of samples. Its algorithm design is simple and the calculation process is efficient and convenient. Even for short time series in nonlinear systems, it can still accurately capture and reflect its deep-level complex characteristics. More importantly, permutation entropy only depends on the numerical order relationship of adjacent points in the time series, without involving amplitude considerations, and thus exhibits significant anti-noise interference ability and excellent robustness. In addition, permutation entropy has advantages in high sensitivity to time changes and excellent resolution, and can effectively identify and capture hidden mutation information in complex nonlinear systems. In view of the series of advantages of permutation entropy, this method has been widely used and recognized in the fields of chaotic system identification and medical complex signal research.
[0075] The calculation process of permutation entropy is as follows Figure 6 As shown, by calculating the permutation entropy value of the combined signal generated by each set of optimized phases, the specific results are as follows Figure 7 shown.
[0076] It can be seen that among all the calculated permutation entropies, the permutation entropy value of the combination signal corresponding to the eighth phase group presents the lowest level. In view of the importance of permutation entropy in measuring signal complexity and stability, the combination signal generated by the eighth phase group has ideal oscillating airflow signal characteristics under the current system background. Therefore, it is reasonable to choose the combination signal corresponding to the eighth phase group as the ideal oscillating airflow signal of the system under the current conditions, and the corresponding pseudo-random combination signal is:
[0077]
[0078] in:
[0079]
[0080] After using the GA-PE algorithm to obtain the phase difference information of different frequency bands in the optimal excitation signal, how to accurately convert and generate an ideal excitation signal that meets the system requirements has undoubtedly become a key issue that needs to be solved. Since the transfer function link G(s) is unknown, the excitation signal can only be judged by sampling and analyzing the flow signal and pressure signal, and the power and phase of the output flow signal are controlled, and the pressure signal is controlled, such as Figure 8 As shown, continue to the following steps:
[0081] S3: pseudo-random digital signals are superimposed to construct and drive the speaker to generate an excitation signal, while collecting flow signals;
[0082] S4: Calculate the phase angle of the flow signal in each frequency band;
[0083] S5: Determine whether the phase angle of the flow signal differs from the ideal signal within the first preset range. If so, proceed to step S6; otherwise, adjust the phase angle of each frequency band signal and return to step S3; adjust the phase of the input signal according to the phase lag of different frequency bands, so that the phase angle of the flow signal corresponding to each frequency band differs from the ideal signal within the range of ±1%.
[0084] In order to maximize the spectrum amplitude of the excitation signal in each frequency band, thereby improving the signal-to-noise ratio and test accuracy of the excitation signal, the GA-PE algorithm can be used to find the optimal phase matching superposition relationship of the excitation signal frequency band. For the control of the phase of the output flow excitation signal, we can adjust the phase of the output signal by controlling the phase of the input signal to achieve the optimal phase relationship between the output signal frequency bands.
[0085] Due to the different phase lags in different frequency bands, the phase angle relationship of the output signal in different frequency bands deviates from the input signal. Taking the 5Hz signal as the benchmark, the 10Hz signal phase angle lags 0.015rad, and the 15Hz signal lags 4.748rad. At this time, we need to adjust the 10Hz signal to lag and the 15Hz signal to lead. After adjustment, when the input signal 10Hz lags 0.2652rad, and the 15Hz signal leads 5.8356rad, the output signal reaches the ideal phase difference.
[0086] S6: Calculate the traffic signal power spectrum of each frequency band;
[0087] S7: Determine whether the flow power spectrum is within the second preset range. If yes, proceed to step S8; otherwise, adjust the amplitude of the single frequency band signal and return to step S3;
[0088] S8: Collect the pressure signal and calculate the peak-to-peak value of the pressure signal;
[0089] S9: Determine whether the peak-to-peak value of the pressure signal is within a third preset range. If yes, proceed to step S10; otherwise, adjust the gain of the superimposed pseudo-random signal and return to step S3. Usually, the third preset range of the peak-to-peak value of the pressure signal is between 0.25 kPa and 0.3 kPa.
[0090] S10: Calculate the signal-to-noise ratio and the coherence value of the pressure and flow signals;
[0091] In specific implementation, according to 0≤γ 2 ≤1Calculate the coherence value of pressure and flow signals, where G PV is the cross power spectrum between pressure and flow, G PP , G * VV are the autopower spectra of pressure and flow, respectively;
[0092] The signal-to-noise ratio calculation formula is: Where: W signal Indicates signal power, W noise Represents the noise power.
[0093] S11: Determine whether the coherence value and signal-to-noise ratio of the two signals meet the preset requirements. If so, the oscillation signal is constructed and the forced oscillation pulmonary function test can be performed; otherwise, the current signal cannot be accurately tested, and it is recommended to replace the speaker or re-enter the signal frequency band.
[0094] The above method is verified by building a specific experimental platform, setting the initial signal amplitude to 1000, and the optimized ideal phase deviation is:
[0095]
[0096] The signal frequency is:
[0097] [f1 f2...f6]=[5 10 15 20 25 30]
[0098] At this time, the phase angle of the ideal excitation signal is as follows: Fig. 9 As shown in the figure, if the phase angle corresponding to the 5Hz signal component is used as the reference value, the phase angle difference of the current ideal excitation signal can be calculated as:
[0099] ε0=[0 1.7568-1.3484 0.8746-0.1602-1.6789]
[0100] After the system initialization phase is completed, the above signal is passed into the system as input. After being processed by the system's MCU and amplified by the circuit, the signal successfully drives the speaker, causing the diaphragm to oscillate, thereby inducing an oscillating airflow. At the same time, flow sensors and pressure sensors are deployed to synchronously monitor and record flow parameters and corresponding pressure change information. The system response curve obtained under the current driving signal is shown in Figure 2. Fig.10 shown.
[0101] Fig.10 The performance characteristics of pressure and flow signals in the time domain and frequency domain as well as their phase angle relationship at each frequency point are comprehensively displayed in the figure. The observed data show that under the current experimental conditions, the peak-to-peak value of the oscillation pressure measured by the pressure sensor has exceeded the set threshold of 300Pa, and the spectrum characteristics of the flow signal are characterized by uneven amplitude distribution at each frequency point. In addition, the phase difference values corresponding to each frequency component are:
[0102] ε1=[0 1.08-2.4627-0.7749-2.3032 2.1389]
[0103] There is a significant deviation from the expected phase relationship of an ideal oscillating signal.
[0104] Therefore, it can be concluded that if the ideal excitation signal is simply used as the driving signal of the system for FOT testing, it may not accurately reflect the system performance under actual working conditions, resulting in a large deviation in the measurement results. This inaccurate test method will not only have a negative impact on the validity of the final data, but may also cause discomfort to the subjects due to inappropriate excitation intensity, affecting their cooperation in completing the measurement of relevant data.
[0105] According to the optimization control strategy proposed above, the drive signal is optimized. The first is phase angle control, such as Fig.11 As shown, the system output response curve corresponding to the driving signal after the optimized control strategy is displayed.
[0106] At this point, the phase angle of the flow signal after phase angle control processing has changed significantly compared to the state before optimization, and the controlled flow phase angle successfully matches the ideal oscillation signal phase angle.
[0107] ε2=ε0=[0 1.7568-1.3484 0.8746-0.1602-1.6789]
[0108] The next step is to control the amplitude of a single signal. Fig.12 As shown in Figure 1, the system output response curve corresponding to the drive signal after amplitude control is shown. Fig.11 By comparison, it can be clearly observed that after the amplitude adjustment, the spectral characteristics of the flow signal have been significantly improved, which is manifested in that the uniformity of energy distribution at each frequency point has been significantly improved, meeting the strict requirements of ideal airflow for spectral balance. In addition, it can be seen that the adjustment of the amplitude of a single signal not only directly affects the characteristics of the signal itself, but also further causes changes in the overall peak-to-peak value of the combined signal. When this change is reflected in the oscillation signal, it is manifested as a corresponding change in the peak-to-peak value of the pressure signal. In order to ensure that the performance indicators of the entire system meet expectations, the overall gain of the system is then adjusted;
[0109] like Fig.13 As shown, after the gain adjustment, the peak-to-peak value of the oscillation pressure has successfully converged to the ideal threshold value close to 300 Pa and has not exceeded the specified upper limit.
[0110] Looking back at the entire optimization process, the excitation signal starts from the initial original state, goes through the phase angle optimization stage to calibrate the timing characteristics, then ensures the balanced energy distribution of each frequency component through amplitude optimization, and finally achieves overall fine-tuning of the system response, that is, the oscillating airflow signal, through gain adjustment. After this series of operations, the actual system response obtained has achieved a high degree of fit and matching with the ideal oscillation signal.
[0111] like Fig.14 , is a display of the process of adjusting the excitation signal according to the control method proposed in the present invention. Since the adjustment process requires periodic sampling and analysis of the signal, the control process is a stage periodic control. At the beginning of the speaker startup, it will experience a short start-up phase due to the nonlinear components in the driving circuit and the damping effect of the speaker vibration. Therefore, the sensor data collected during the first sampling period is not analyzed. Subsequently, the system undergoes multiple continuous adjustment steps and reaches a stable operating state after 28s, indicating that the excitation signal regulation in this state has been optimized.
[0112] The specific expression of the excitation signal after optimization and control is:
[0113]
[0114] in:
[0115] The requirement for the optimal excitation signal is, on the one hand, to minimize the discomfort of the subject during the measurement, which is reflected in the size of the peak-to-peak pressure; on the other hand, it is to minimize the nonlinear distortion problem of respiratory impedance measurement to improve the accuracy of the measurement results.
[0116] By calculating the coherent value of the flow signal and pressure signal corresponding to the current oscillation signal, the result is as follows Fig.15 As shown. It is generally believed that the measurement results of devices with a coherence value greater than 0.95 are acceptable. The higher the coherence value, the less the respiratory impedance measurement results are affected by the nonlinear distortion of the measurement process. It can be seen that the flow-pressure signal correlation corresponding to the output oscillation signal shows a high degree of consistency at each key frequency point, and its values all exceed the threshold of 0.95 and are above 0.995, fully meeting the strict requirements for the coherence of the flow-pressure signal.
[0117] The above results verify that the control method proposed in the present invention has a substantial effect on suppressing noise interference and enhancing effective signal components, thereby ensuring that higher fidelity oscillating airflow parameter information is obtained in the entire frequency domain.
[0118] At this time, the signal-to-noise ratio of the oscillation signal generated by the excitation signal is calculated. The signal-to-noise ratio before and after the control method can be calculated as shown in Table 3. It can be seen that after the excitation signal is optimized and adjusted by the control method proposed by the present invention, the signal-to-noise ratio of the flow rate and pressure signal corresponding to the output oscillation signal at each frequency point is significantly improved.
[0119] Table 3: Comparison of response signal-to-noise ratio before and after excitation signal adjustment
[0120]
[0121] In summary, it can be seen that the present invention proposes an excitation signal optimization method and control system for forced oscillation pulmonary function testing. First, the phase angle characteristics of the excitation signal are controlled; then the spectral structure of the signal is regulated; finally, the oscillating airflow is controlled by reasonable adjustment of the overall gain. The actual system response finally obtained is excellent, and it achieves a high degree of consistency and fit with the ideal oscillation signal in multiple core indicators such as phase angle matching, spectral uniformity, overall dynamic characteristics, signal-to-noise ratio and coherence value, which fully proves the effectiveness and practicality of the ideal excitation signal control scheme described in this article.
[0122] The above embodiments are preferred implementation modes of the present invention, but the implementation modes of the present invention are not limited to the above embodiments. Any other changes, modifications, substitutions, combinations, and simplifications that do not deviate from the spirit and principles of the present invention should be equivalent replacement methods and are included in the protection scope of the present invention.
Claims
1. A method for optimizing excitation signals for forced oscillation pulmonary function testing, It is characterized in that The following steps are involved: S1: Input multiple specific frequencies and initialize the amplitude of pseudo-random single-frequency signal; S2: Obtain the optimal superposition phase of the pseudo-random signal using a method based on genetic algorithm and permutation entropy optimization; S3: pseudo-random digital signals are superimposed to construct and drive the speaker to generate an excitation signal, while collecting flow signals; S4: Calculate the phase angle of the flow signal in each frequency band; S5: Determine whether the phase angle of the flow signal differs from the ideal signal within a first preset range. If yes, proceed to step S6; otherwise, adjust the phase angle of each frequency band signal and return to step S3; S6: Calculate the traffic signal power spectrum of each frequency band; S7: Determine whether the flow power spectrum is within a second preset range, if yes, proceed to step S8; Otherwise, adjust the amplitude of the single frequency band signal and return to step S3; S8: Collect the pressure signal and calculate the peak-to-peak value of the pressure signal; S9: Determine whether the peak-to-peak value of the pressure signal is within a third preset range, if yes, proceed to step S10; Otherwise, adjust the gain of the superimposed pseudo-random signal and return to step S3; S10: Calculate the signal-to-noise ratio and the coherence value of the pressure and flow signals; S11: Determine whether the coherence value and signal-to-noise ratio of the two signals meet the preset requirements. If so, the oscillation signal is constructed and the forced oscillation pulmonary function test can be performed; otherwise, the current signal cannot be accurately tested, and it is recommended to replace the speaker or re-enter the signal frequency band.
2. The method for optimizing the excitation signal for forced oscillation pulmonary function testing according to claim 1, It is characterized in that The pseudo-random signal is constructed by superimposing and combining six sinusoidal signals, and its expression is: Among them, A i represents the amplitude of the i-th sinusoidal signal, f i is the frequency of the ith signal (Hz), Represents the phase of the ith signal.
3. The method for optimizing the excitation signal for forced oscillation pulmonary function testing according to claim 2, It is characterized in that Six frequency points are determined within the range of 5-30 Hz as the specific frequencies input in step S1.
4. The method for optimizing the excitation signal for forced oscillation pulmonary function testing according to claim 2 or 3, It is characterized in that In step S2, the length of the genetic algorithm individuals is 6, and according to: As the constraint conditions are optimized, 10 sets of quasi-optimal superposition phase data are obtained; Among them: Crest factor It indicates the maximum instantaneous amplitude of a signal in a complete cycle or a period of time. flow ) and its effective value rms(S flow ) ratio; Phase parameters 5. The method for optimizing the excitation signal for forced oscillation pulmonary function testing according to claim 4, It is characterized in that By performing permutation entropy analysis on 10 sets of quasi-optimal superposition phase data, a set of superposition phase data with the smallest permutation entropy value is selected as the optimal superposition phase data.
6. The method for optimizing the excitation signal for forced oscillation pulmonary function testing according to claim 4, It is characterized in that The phase of the input signal is adjusted according to the phase lag of different frequency bands, so that the phase angle of the flow signal corresponding to each frequency band differs from the ideal signal within the range of ±1%.
7. The method for optimizing the excitation signal for forced oscillation pulmonary function testing according to claim 4, It is characterized in that The third preset range of the peak-to-peak value of the pressure signal is between 0.25 kPa and 0.3 kPa.
8. The method for optimizing the excitation signal for forced oscillation pulmonary function testing according to any one of claims 5 to 7, It is characterized in that according to 0≤γ 2 ≤1Calculate the coherence value of pressure and flow signals, where G PV is the cross power spectrum between pressure and flow, G PP , G * VV are the autopower spectra of pressure and flow, respectively; The signal-to-noise ratio calculation formula is: Where: W signal Indicates signal power, W noise Represents the noise power.
9. An excitation signal optimization control system for forced oscillation pulmonary function testing, It is characterized in that The excitation signal optimization method according to any one of claims 1 to 8 is adopted and configured in a forced oscillation pulmonary function test system.
Citation Information
Cited By
Radio frequency signal debugging method and device based on meta-heuristic algorithm, medium and product
CN119743882A
