Atrial fibrillation measurement method and device based on PPG waveform signal and pressure pulse signal
Through the fusion analysis of PPG waveform signal and pressure pulse signal and the double-layer stacked support vector machine model, the problems of high cost and insufficient accuracy of traditional atrial fibrillation detection methods are solved, and portable, real-time and high-accuracy atrial fibrillation detection is achieved.
Patent Information
- Application Number
- CN202410952766.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-16
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2044-07-16
AI Technical Summary
Traditional atrial fibrillation detection methods rely on electrocardiograms. The equipment is costly, complex to operate, and not portable. The existing PPG and pressure pulse signals suffer from insufficient accuracy when used alone.
Through fusion analysis of PPG waveform signal and pressure pulse signal, including synchronous data collection, baseline drift removal, high-frequency noise filtering, feature extraction and feature combination, a double-layer stacked support vector machine model is used to identify atrial fibrillation status.
It improves the accuracy and reliability of atrial fibrillation measurement, realizes portable real-time monitoring and discrimination, and enhances the ability to detect atrial fibrillation status.
Smart Images

Figure CN118490184B
Abstract
Description
Technical Field
[0001] The present application relates to the field of deep learning technology, and in particular to a method and device for measuring atrial fibrillation based on PPG waveform signals and pressure pulse signals. Background Art
[0002] Atrial fibrillation is a common arrhythmia that has attracted increasing attention. Early detection and accurate monitoring of atrial fibrillation are important for preventing further complications, such as stroke and heart failure.
[0003] Traditional methods for detecting atrial fibrillation mainly rely on electrocardiogram (ECG) monitoring. Although it has high accuracy, it is difficult to be widely used in daily life due to the high cost of equipment, complex operation and great interference with patients' lives. Therefore, it is particularly important to find a non-invasive, portable and accurate method for detecting atrial fibrillation. PPG (photoplethysmography) and pressure pulse signals are technologies that have attracted much attention in non-invasive physiological signal monitoring in recent years. These two technologies can reflect the state of the cardiovascular system by detecting changes in blood volume and pulse waveforms. However, there are certain limitations to using PPG or pressure pulse signals alone for atrial fibrillation detection. For example, PPG signals are easily affected by motion artifacts and ambient light interference, resulting in reduced detection accuracy; while pressure pulse signals may be affected by sensor position and contact pressure, resulting in unstable signals. Summary of the invention
[0004] The present application provides an atrial fibrillation measurement method and device based on a PPG waveform signal and a pressure pulse signal. The present application improves the accuracy of atrial fibrillation measurement by fusing and analyzing the PPG waveform signal and the pressure pulse signal.
[0005] In a first aspect, the present application provides an atrial fibrillation measurement method based on a PPG waveform signal and a pressure pulse signal, and the atrial fibrillation measurement method based on a PPG waveform signal and a pressure pulse signal includes:
[0006] Using a PPG sensor and a pressure sensor to synchronously collect data from the subject, respectively, to obtain an initial PPG waveform signal and an initial pressure pulse signal;
[0007] Respectively performing baseline drift removal and high-frequency noise filtering on the initial PPG waveform signal and the initial pressure pulse signal to obtain a target PPG waveform signal and a target pressure pulse signal;
[0008] Performing time domain feature extraction and frequency domain feature extraction on the target PPG waveform signal to obtain a first feature parameter set of the PPG waveform signal, and performing time domain feature extraction on the target pressure pulse signal to obtain a second feature parameter set of the pressure pulse signal;
[0009] Performing feature mapping and vector conversion on the first feature parameter set and the second feature parameter set respectively to obtain corresponding first feature mapping vectors and second feature mapping vectors;
[0010] Performing feature combination and principal component dimension reduction on the first feature mapping vector and the second feature mapping vector to obtain a fused feature mapping vector;
[0011] The first feature mapping vector, the second feature mapping vector and the fused feature mapping vector are input into a preset double-layer stacked support vector machine model to perform atrial fibrillation state discrimination to obtain an atrial fibrillation state discrimination result.
[0012] In a second aspect, the present application provides an atrial fibrillation measurement device based on a PPG waveform signal and a pressure pulse signal, wherein the atrial fibrillation measurement device based on a PPG waveform signal and a pressure pulse signal comprises:
[0013] An acquisition module is used to synchronously acquire data from the subject using a PPG sensor and a pressure sensor to obtain an initial PPG waveform signal and an initial pressure pulse signal;
[0014] a removal module, used to perform baseline drift removal and high-frequency noise filtering on the initial PPG waveform signal and the initial pressure pulse signal, respectively, to obtain a target PPG waveform signal and a target pressure pulse signal;
[0015] an extraction module, configured to perform time domain feature extraction and frequency domain feature extraction on the target PPG waveform signal to obtain a first feature parameter set of the PPG waveform signal, and perform time domain feature extraction on the target pressure pulse signal to obtain a second feature parameter set of the pressure pulse signal;
[0016] A mapping module, used to perform feature mapping and vector conversion on the first feature parameter set and the second feature parameter set respectively to obtain corresponding first feature mapping vectors and second feature mapping vectors;
[0017] A combination module, used for performing feature combination and principal component dimension reduction on the first feature mapping vector and the second feature mapping vector to obtain a fused feature mapping vector;
[0018] The discrimination module is used to input the first feature mapping vector, the second feature mapping vector and the fused feature mapping vector into a preset double-layer stacked support vector machine model to perform atrial fibrillation state discrimination to obtain an atrial fibrillation state discrimination result.
[0019] The third aspect of the present application provides a computer device, comprising: a memory and at least one processor, wherein the memory stores instructions; the at least one processor calls the instructions in the memory so that the computer device executes the above-mentioned atrial fibrillation measurement method based on PPG waveform signals and pressure pulse signals.
[0020] A fourth aspect of the present application provides a computer-readable storage medium, which stores instructions. When the computer-readable storage medium is run on a computer, it enables the computer to execute the above-mentioned atrial fibrillation measurement method based on PPG waveform signals and pressure pulse signals.
[0021] In the technical solution provided by the present application, the time alignment of the two signals is ensured by using the PPG sensor and the pressure sensor for synchronous data acquisition, and the data deviation caused by time asynchrony is avoided. The preprocessing steps of baseline drift removal and high-frequency noise filtering are adopted to effectively remove the interference factors in the signal and improve the purity of the signal. Not only the time domain features and frequency domain features of the PPG waveform signal are extracted, but also the detailed time domain features of the pressure pulse signal are extracted, ensuring that the changes of the cardiovascular system are captured from different dimensions. The extracted feature parameters cover multiple aspects of the signal, enrich the feature set, and improve the ability to identify the atrial fibrillation state. By combining the feature parameters of the PPG waveform signal and the pressure pulse signal to form a high-dimensional feature vector, and then performing dimensionality reduction processing through methods such as principal component analysis, redundant information is effectively reduced and the most distinguishing features are retained. The construction of fusion features makes full use of the complementarity of the two signals, enhances the detection ability of the atrial fibrillation state, and improves the discrimination performance of the model. A double-layer stacked support vector machine model is used to discriminate the atrial fibrillation state, and the robustness and generalization ability of the model are improved through multi-level classification and weighted fusion. During the classification process, the accuracy and reliability of atrial fibrillation detection are further improved through confidence calculation and feature enhancement processing. By real-time monitoring of the atrial fibrillation status of the subjects and data collection and processing through portable devices, real-time discrimination and monitoring of the atrial fibrillation status are achieved. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative work.
[0023] Figure 1 It is a schematic diagram of an embodiment of an atrial fibrillation measurement method based on a PPG waveform signal and a pressure pulse signal in an embodiment of the present application;
[0024] Figure 2 Schematic diagram of an embodiment of an atrial fibrillation measurement device based on a PPG waveform signal and a pressure pulse signal in an embodiment of the present application. DETAILED DESCRIPTION
[0025] The embodiments of the present application provide a method and device for measuring atrial fibrillation based on a PPG waveform signal and a pressure pulse signal. The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments described herein can be implemented in an order other than that illustrated or described herein. In addition, the terms "including" or "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0026] For ease of understanding, the specific process of the embodiment of the present application is described below. Figure 1 In the embodiment of the present application, an embodiment of the atrial fibrillation measurement method based on the PPG waveform signal and the pressure pulse signal includes:
[0027] Step 101: Use a PPG sensor and a pressure sensor to synchronously collect data from the subject to obtain an initial PPG waveform signal and an initial pressure pulse signal;
[0028] It is understandable that the execution subject of the present application can be an atrial fibrillation measurement device based on PPG waveform signals and pressure pulse signals, or a terminal or a server, which is not limited here. The present application embodiment is described by taking the server as the execution subject as an example.
[0029] Specifically, the sampling frequencies of the PPG sensor and the pressure sensor are set, the sampling frequency of the PPG sensor is set to f1, and the sampling frequency of the pressure sensor is set to f2, wherein both f1 and f2 are preset sampling frequencies greater than 500 Hz. By setting a high sampling frequency, it is ensured that the collected signal has sufficient time resolution, so as to accurately capture the rapidly changing physiological signal characteristics. According to the set PPG sensor, the first PPG waveform signal is collected from the finger of the subject, and the collection time is t1, and the first collected PPG waveform signal is obtained. At the same time, according to the set pressure sensor, the first pressure pulse signal is collected from the wrist artery of the subject, and the collection time is t1, and the first collected pressure pulse signal is obtained. Synchronous data acquisition ensures the temporal and spatial correspondence of the two signals. The sampling start time points of the first collected PPG waveform signal and the first collected pressure pulse signal are aligned to obtain the first synchronized PPG waveform signal and pressure pulse signal. Through time alignment, the time error caused by the different start times of different sensors is eliminated to ensure the synchronization of the signals. According to the set PPG sensor, the PPG waveform signal of the finger of the subject is collected for the second time, and the collection time is t2, so as to obtain the PPG waveform signal collected for the second time. At the same time, according to the set pressure sensor, the pressure pulse signal of the wrist artery of the subject is collected for the second time, and the collection time is t2, so as to obtain the pressure pulse signal collected for the second time. Multiple collections can increase the amount of data, thereby improving the accuracy and robustness of signal analysis. The sampling start time points of the second collected PPG waveform signal and the second collected pressure pulse signal are aligned to obtain the PPG waveform signal and the pressure pulse signal after the second synchronization. Repeat the above-mentioned collection and alignment steps until the collection of the PPG waveform signal and the pressure pulse signal for the preset number of collections N times is completed, and the PPG waveform signal and the pressure pulse signal after N synchronizations are obtained. By repeatedly collecting and aligning multiple times, more stable and reliable synchronization signal data is obtained. The PPG waveform signal after N synchronizations is spliced in time series to obtain a spliced PPG waveform signal, and the pressure pulse signal after N synchronizations is spliced in time series to obtain a spliced pressure pulse signal. Time series splicing can combine signals collected multiple times to form a continuous long time series signal, which is convenient for subsequent feature extraction and analysis. Calculate the signal-to-noise ratio SNR1 of the spliced PPG waveform signal, and calculate the signal-to-noise ratio SNR2 of the spliced pressure pulse signal. By calculating the signal-to-noise ratio, the quality of the signal is evaluated to determine the proportion of effective information in the signal. If SNR1 is less than the preset signal-to-noise ratio threshold η1 or SNR2 is less than the preset signal-to-noise ratio threshold η2, it is necessary to adjust the position of the PPG sensor and the pressure sensor, and re-execute the above acquisition and processing steps. Adjusting the position of the sensor can optimize the signal acquisition conditions, thereby improving the signal-to-noise ratio.The above process is repeated until SNR1 is greater than or equal to η1 and SNR2 is greater than or equal to η2, and the spliced PPG waveform signal and the spliced pressure pulse signal obtained at this time are used as the final initial PPG waveform signal and the initial pressure pulse signal.
[0030] Step 102: performing baseline drift removal and high-frequency noise filtering on the initial PPG waveform signal and the initial pressure pulse signal respectively to obtain a target PPG waveform signal and a target pressure pulse signal;
[0031] Specifically, the initial PPG waveform signal is subjected to the first median filtering, and the filter window size is W1, to obtain the PPG waveform signal after the first filtering. At the same time, the initial pressure pulse signal is subjected to the first median filtering, and the filter window size is also W1, to obtain the pressure pulse signal after the first filtering. Median filtering can effectively remove the pulse noise in the signal. According to the PPG waveform signal after the first filtering, the baseline drift component of the PPG waveform signal is extracted by the adaptive threshold method to obtain the baseline drift component of the PPG waveform signal. Similarly, according to the pressure pulse signal after the first filtering, the baseline drift component of the pressure pulse signal is extracted by the adaptive threshold method to obtain the baseline drift component of the pressure pulse signal. The extraction of baseline drift is to separate the low-frequency components in the signal, which are often slow-changing signals caused by factors such as breathing and body movement. The baseline drift component of the PPG waveform signal is subjected to the first spline interpolation to obtain the PPG baseline drift component after the first interpolation. At the same time, the baseline drift component of the pressure pulse signal is subjected to the first spline interpolation to obtain the pressure pulse baseline drift component after the first interpolation. Spline interpolation helps to smooth the baseline drift component, making it closer to the actual low-frequency drift trend. The PPG waveform signal after the first filtering is subtracted from the PPG baseline drift component after the first interpolation to obtain the PPG waveform signal after the first baseline drift is removed. Correspondingly, the pressure pulse signal after the first filtering is subtracted from the pressure pulse baseline drift component after the first interpolation to obtain the pressure pulse signal after the first baseline drift is removed. In this way, the baseline drift component in the signal can be effectively eliminated, so that the signal returns to a state with zero as the baseline. The PPG waveform signal after the first baseline drift is removed is subjected to wavelet transform, and the pressure pulse signal after the first baseline drift is removed is subjected to wavelet transform to obtain the wavelet coefficients of the PPG waveform signal and the pressure pulse signal respectively. Wavelet transform is a multi-resolution analysis tool that can decompose the signal into different frequency scales, thereby facilitating the separation of high-frequency noise components in the signal. The wavelet coefficients of the PPG waveform signal are subjected to soft threshold processing to obtain the denoised PPG wavelet coefficients. Similarly, the wavelet coefficients of the pressure pulse signal are subjected to soft threshold processing to obtain the denoised pressure pulse wavelet coefficients. Soft threshold processing is a commonly used denoising method that can effectively suppress high-frequency noise while retaining the effective components of the original signal as much as possible. The denoised PPG wavelet coefficients are subjected to inverse wavelet transform to obtain the PPG waveform signal after the first high-frequency noise removal. At the same time, the denoised pressure pulse wavelet coefficients are subjected to inverse wavelet transform to obtain the pressure pulse signal after the first high-frequency noise removal. Through inverse wavelet transform, the denoised wavelet coefficients are restored to a time domain signal, thereby obtaining a signal after the noise is filtered out. The PPG waveform signal after the first high-frequency noise removal is subjected to a second median filter, and the filter window size is W2 to obtain the PPG waveform signal after the second filtering.Accordingly, the pressure pulse signal after the first high-frequency noise removal is subjected to a second median filter, and the filter window size is also W2, to obtain the pressure pulse signal after the second filtering. The pulse noise remaining in the signal is removed by the second median filter to ensure the smoothness and cleanliness of the signal. Repeat the above-mentioned baseline drift removal and high-frequency noise filtering steps until the baseline drift component and high-frequency noise component of the PPG waveform signal are removed to obtain the target PPG waveform signal. Accordingly, until the baseline drift component and high-frequency noise component of the pressure pulse signal are removed, the target pressure pulse signal is obtained. By iterating the above steps multiple times, it is ensured that all interference components in the signal are fully removed to obtain a high-quality target signal.
[0032] Step 103: performing time domain feature extraction and frequency domain feature extraction on the target PPG waveform signal to obtain a first feature parameter set of the PPG waveform signal, and performing time domain feature extraction on the target pressure pulse signal to obtain a second feature parameter set of the pressure pulse signal;
[0033] Specifically, the target PPG waveform signal is peak detected to obtain the peak point sequence of the PPG waveform signal and the time interval between adjacent peak points is calculated to obtain the peak interval of the PPG waveform signal. At the same time, the target pressure pulse signal is peak detected to obtain the peak point sequence of the pressure pulse signal and the time interval between adjacent peak points is calculated to obtain the peak interval of the pressure pulse signal. Through peak detection, the key points in the signal are identified. According to the peak interval of the PPG waveform signal, the average peak interval, peak interval standard deviation and peak interval variation coefficient of the PPG waveform signal are calculated to obtain the time domain characteristic parameters of the PPG waveform signal. Similarly, according to the peak interval of the pressure pulse signal, the average peak interval, peak interval standard deviation and peak interval variation coefficient of the pressure pulse signal are calculated to obtain the time domain characteristic parameters of the pressure pulse signal. The time domain characteristic parameters can reflect the periodicity and stability of the signal and are important indicators for measuring the function of the cardiovascular system. Perform fast Fourier transform on the peak interval of the PPG waveform signal to obtain the frequency domain signal of the PPG waveform signal and calculate the fundamental frequency, fundamental energy, first harmonic frequency, first harmonic energy, second harmonic frequency and second harmonic energy of the PPG waveform signal to obtain the frequency domain characteristic parameters of the PPG waveform signal. The frequency domain characteristic parameters can reveal the energy distribution of the signal on different frequency components. Perform spectral entropy analysis on the target PPG waveform signal to obtain the frequency domain characteristic parameters of the PPG waveform signal. At the same time, perform spectral entropy analysis on the target pressure pulse signal to obtain the time domain characteristic parameters of the pressure pulse signal. Spectral entropy is an important indicator to measure the complexity and randomness of the signal, which can help identify disordered states and abnormal fluctuations in the signal. Perform Poincaré mapping on the target PPG waveform signal to obtain the Poincaré mapping diagram of the PPG waveform signal and calculate the ratio of the major axis to the minor axis of the PPG waveform signal to obtain the time domain characteristic parameters of the PPG waveform signal. Similarly, the target pressure pulse signal is subjected to Poincaré mapping to obtain the Poincaré mapping diagram of the pressure pulse signal and calculate the ratio of the major axis to the minor axis of the pressure pulse signal to obtain the time domain characteristic parameters of the pressure pulse signal. Poincaré mapping can provide the geometric distribution characteristics of the signal, which is helpful for evaluating the heart rate variability and rhythmic changes. According to the peak point sequence of the PPG waveform signal, the PPG waveform signal is subjected to correlation dimension and Lyapunov exponent analysis to obtain the frequency domain characteristic parameters of the PPG waveform signal. Similarly, according to the peak point sequence of the pressure pulse signal, the pressure pulse signal is subjected to correlation dimension and Lyapunov exponent analysis to obtain the time domain characteristic parameters of the pressure pulse signal. The correlation dimension and Lyapunov exponent are key indicators for measuring the dynamic complexity and chaotic characteristics of the signal, and can reveal the nonlinear dynamic behavior of the system. The time domain characteristic parameters and frequency domain characteristic parameters of the PPG waveform signal are combined to obtain the first characteristic parameter set of the PPG waveform signal.At the same time, the extracted time domain characteristic parameters of the pressure pulse signal are combined to obtain a second characteristic parameter set of the pressure pulse signal.
[0034] Step 104: perform feature mapping and vector conversion on the first feature parameter set and the second feature parameter set respectively to obtain corresponding first feature mapping vectors and second feature mapping vectors;
[0035] Specifically, a Gaussian kernel matrix of the PPG waveform signal is constructed according to the first characteristic parameter set; at the same time, a Gaussian kernel matrix of the pressure pulse signal is constructed according to the second characteristic parameter set. The Gaussian kernel matrix is a matrix based on the Gaussian kernel function, which maps the data of the original feature space to a new feature space, so as to better reveal the structure and intrinsic relationship of the data. The Gaussian kernel matrix of the PPG waveform signal is subjected to eigendecomposition to obtain the first eigenvalue and the first eigenvector of the PPG waveform signal, and the signals are sorted from large to small according to the first eigenvalue to obtain the sorted first eigenvalue sequence and the corresponding first eigenvector sequence. Similarly, the Gaussian kernel matrix of the pressure pulse signal is subjected to eigendecomposition to obtain the second eigenvalue and the second eigenvector of the pressure pulse signal, and the signals are sorted from large to small according to the second eigenvalue to obtain the sorted second eigenvalue sequence and the corresponding second eigenvector sequence. Eigendecomposition is a process of decomposing a matrix into a set of eigenvectors and eigenvalues, which can be used to represent the main characteristics and change trends of the data. According to the preset first eigenvalue threshold, the first eigenvalue sequence is truncated to obtain a truncated PPG eigenvalue subsequence, and the eigenvector corresponding to the truncated PPG eigenvalue subsequence is extracted to obtain a PPG eigenvector subsequence. Similarly, according to the preset second eigenvalue threshold, the second eigenvalue sequence is truncated to obtain a truncated pressure pulse eigenvalue subsequence, and the eigenvector corresponding to the truncated pressure pulse eigenvalue subsequence is extracted to obtain a pressure pulse eigenvector subsequence. The truncation process is to remove those features with small eigenvalues and low contribution to the data, thereby simplifying the model and improving the computational efficiency. The PPG eigenvector subsequence is normalized to obtain a normalized PPG eigenvector subsequence; at the same time, the pressure pulse eigenvector subsequence is normalized to obtain a normalized pressure pulse eigenvector subsequence. Normalization can eliminate the dimensional differences between different features, so that each feature can be compared on the same scale, thereby improving the accuracy and consistency of feature mapping. According to the normalized PPG feature vector subsequence, the first feature parameter set is mapped to the high-dimensional space through the kernel function to obtain the kernel matrix of the first feature parameter set; similarly, according to the normalized pressure pulse feature vector subsequence, the second feature parameter set is mapped to the high-dimensional space through the kernel function to obtain the kernel matrix of the second feature parameter set. Through kernel function mapping, nonlinear data is converted into a linearly separable form, which facilitates subsequent feature processing and analysis. The kernel matrix of the first feature parameter set is subjected to singular value decomposition to obtain the left singular matrix, singular value matrix and right singular matrix of the first feature parameter set; similarly, the kernel matrix of the second feature parameter set is subjected to singular value decomposition to obtain the left singular matrix, singular value matrix and right singular matrix of the second feature parameter set.Singular value decomposition is a process of decomposing a matrix into three sub-matrices, which respectively represent the row space, column space and singular value space of the original matrix, and can be used to extract the main characteristic components of the data. According to the singular value matrix of the first characteristic parameter set, the left singular matrix of the first characteristic parameter set is subjected to dimensionality reduction processing to obtain the left singular matrix of the first characteristic parameter set after dimensionality reduction; similarly, according to the singular value matrix of the second characteristic parameter set, the left singular matrix of the second characteristic parameter set is subjected to dimensionality reduction processing to obtain the left singular matrix of the second characteristic parameter set after dimensionality reduction. Dimensionality reduction processing is to reduce the dimension of the data, thereby reducing the computational complexity and storage requirements, while retaining the main characteristic information of the data. Through the left singular matrix of the first characteristic parameter set after dimensionality reduction, the first characteristic parameter set is linearly transformed to obtain the characteristic mapping matrix of the first characteristic parameter set; similarly, through the left singular matrix of the second characteristic parameter set after dimensionality reduction, the second characteristic parameter set is linearly transformed to obtain the characteristic mapping matrix of the second characteristic parameter set. Linear transformation is an operation that converts data from one space to another space. Through this operation, the data can be easier to analyze and process in the new space. The feature mapping matrix of the first feature parameter set is vectorized to obtain the first feature mapping vector; similarly, the feature mapping matrix of the second feature parameter set is vectorized to obtain the second feature mapping vector. The purpose of vectorization is to convert data in matrix form into vector form, which is convenient for subsequent machine learning algorithms to process and analyze.
[0036] Step 105: perform feature combination and principal component dimension reduction on the first feature mapping vector and the second feature mapping vector to obtain a fused feature mapping vector;
[0037] Specifically, the first eigenmap vector and the second eigenmap vector are spliced to obtain the spliced eigenmap vector, and the covariance matrix of the spliced eigenmap vector is calculated. The covariance matrix is used to describe the linear relationship between the components in the eigenmap vector and their degree of variation. The covariance matrix is subjected to eigendecomposition to obtain the third eigenvalue and the third eigenvector of the covariance matrix. The eigendecomposition can decompose the covariance matrix into eigenvalues and eigenvectors, which can be used to represent the main variation direction and amplitude of the data. The third eigenvalue is sorted from large to small to obtain the sorted third eigenvalue sequence and the corresponding third eigenvector sequence. The sorted third eigenvalue sequence is truncated to obtain a truncated spliced eigenvalue subsequence, and the eigenvector corresponding to the truncated spliced eigenvalue subsequence is extracted to obtain a spliced eigenvector subsequence. The purpose of the truncation process is to remove the eigenvalues that contribute less to the data variation, thereby simplifying the representation of the data while retaining the main variation components. By splicing the eigenvector subsequence, the spliced eigenmap vector is linearly transformed to obtain the transformed eigenmap vector. Linear transformation can project high-dimensional data into a low-dimensional space, making the data more representative and easier to analyze in the new space. The transformed feature map vector is normalized and decentralized to obtain a fused feature map vector. Normalization can eliminate the scale differences between different features, allowing each feature to be compared on the same scale; while decentralization is to eliminate the mean deviation of the data, making the data more concentrated on the origin, thereby improving the accuracy and stability of data analysis.
[0038] Step 106: Input the first feature mapping vector, the second feature mapping vector, and the fused feature mapping vector into a preset double-layer stacked support vector machine model to perform atrial fibrillation state discrimination to obtain an atrial fibrillation state discrimination result.
[0039] Specifically, the first feature mapping vector, the second feature mapping vector and the fused feature mapping vector are input into a preset double-layer stacked support vector machine model. The first layer support vector machine model of the double-layer stacked support vector machine model includes: a first support vector machine model, a second support vector machine model, a third support vector machine model and a fourth support vector machine model, and the second layer support vector machine model includes: a fifth support vector machine model, a sixth support vector machine model, a seventh support vector machine model and an eighth support vector machine model. The first feature mapping vector is classified by the first support vector machine model to obtain a first classification result, the second feature mapping vector is classified by the second support vector machine model to obtain a second classification result, and the fused feature mapping vector is classified by the third support vector machine model to obtain a third classification result. The first classification result, the second classification result and the third classification result are weightedly fused to obtain a first fused classification result. The weight is set to fully consider the importance and credibility of each classification result when fusing the classification results. The first fused classification result is secondary classified by the fourth support vector machine model to obtain the first secondary classification result. In order to ensure the reliability of the classification results, the confidence of the first and second classification results is calculated, and the confidence is compared with the preset confidence threshold. If the confidence is greater than or equal to the preset confidence threshold, the first and second classification results are output as the final atrial fibrillation state discrimination result; if the confidence is less than the preset confidence threshold, further processing is required. In the case of insufficient confidence, the first feature mapping vector, the second feature mapping vector and the fused feature mapping vector are subjected to feature enhancement processing to obtain an enhanced first feature mapping vector, an enhanced second feature mapping vector and an enhanced fused feature mapping vector. Feature enhancement processing can improve the accuracy of classification by increasing the dimension of the feature or by improving the distinguishing ability of the feature through some transformation. The enhanced first feature mapping vector is classified by the fifth support vector machine model to obtain a fourth classification result, the enhanced second feature mapping vector is classified by the sixth support vector machine model to obtain a fifth classification result, and the enhanced fused feature mapping vector is classified by the seventh support vector machine model to obtain a sixth classification result. The fourth classification result, the fifth classification result and the sixth classification result are weighted fused to obtain a second fused classification result. According to the second fusion classification result, the second fusion classification result is secondary classified by the eighth support vector machine model to obtain a second secondary classification result. The confidence of the second secondary classification result is calculated, and the confidence is compared with a preset confidence threshold. If the confidence is greater than or equal to the preset confidence threshold, the second secondary classification result is output as the final atrial fibrillation state discrimination result; if the confidence is still less than the preset confidence threshold, the first secondary classification result is output as the final atrial fibrillation state discrimination result.
[0040] In the embodiment of the present application, by using the PPG sensor and the pressure sensor for synchronous data acquisition, the time alignment of the two signals is ensured, and the data deviation caused by time asynchrony is avoided. The preprocessing steps of baseline drift removal and high-frequency noise filtering are adopted to effectively remove the interference factors in the signal and improve the purity of the signal. Not only the time domain features and frequency domain features of the PPG waveform signal are extracted, but also the detailed time domain features of the pressure pulse signal are extracted, ensuring that the changes of the cardiovascular system are captured from different dimensions. The extracted feature parameters cover multiple aspects of the signal, enrich the feature set, and improve the ability to identify the atrial fibrillation state. By combining the feature parameters of the PPG waveform signal and the pressure pulse signal to form a high-dimensional feature vector, and then performing dimensionality reduction processing through methods such as principal component analysis, redundant information is effectively reduced and the most discriminative features are retained. The construction of fusion features makes full use of the complementarity of the two signals, enhances the detection ability of the atrial fibrillation state, and improves the discrimination performance of the model. A double-layer stacked support vector machine model is used to discriminate the atrial fibrillation state, and the robustness and generalization ability of the model are improved through multi-level classification and weighted fusion. During the classification process, the accuracy and reliability of atrial fibrillation detection are further improved through confidence calculation and feature enhancement processing. By real-time monitoring of the atrial fibrillation status of the subjects and data collection and processing through portable devices, real-time discrimination and monitoring of the atrial fibrillation status are achieved.
[0041] In a specific embodiment, the process of executing step 101 may specifically include the following steps:
[0042] S11: setting the sampling frequencies of the PPG sensor and the pressure sensor, setting the sampling frequency of the PPG sensor to f1, and setting the sampling frequency of the pressure sensor to f2, wherein both f1 and f2 are preset sampling frequencies greater than 500 Hz;
[0043] S12: According to the set PPG sensor, the first PPG waveform signal is collected from the finger of the subject, the collection time is t1, and the first collected PPG waveform signal is obtained. At the same time, according to the set pressure sensor, the first pressure pulse signal is collected from the wrist artery of the subject, the collection time is t1, and the first collected pressure pulse signal is obtained;
[0044] S13: aligning the sampling start time points of the first collected PPG waveform signal and the first collected pressure pulse signal to obtain the first synchronized PPG waveform signal and pressure pulse signal;
[0045] S14: according to the set PPG sensor, a second PPG waveform signal is collected from the finger of the subject, the collection time is t2, and the second collected PPG waveform signal is obtained. At the same time, according to the set pressure sensor, a second pressure pulse signal is collected from the wrist artery of the subject, the collection time is t2, and the second collected pressure pulse signal is obtained;
[0046] S15: aligning the sampling start time points of the second collected PPG waveform signal and the second collected pressure pulse signal to obtain the second synchronized PPG waveform signal and the pressure pulse signal;
[0047] S16: Repeat step S14 and step S15 until the preset number of acquisitions N of PPG waveform signals and pressure pulse signals are completed, and N synchronized PPG waveform signals and pressure pulse signals are obtained;
[0048] S17: performing time series splicing on the PPG waveform signals after N synchronizations to obtain a spliced PPG waveform signal, and performing time series splicing on the pressure pulse signals after N synchronizations to obtain a spliced pressure pulse signal;
[0049] S18: calculating a signal-to-noise ratio SNR1 of the spliced PPG waveform signal, and calculating a signal-to-noise ratio SNR2 of the spliced pressure pulse signal;
[0050] S19: If SNR1 is less than the preset signal-to-noise ratio threshold η1 or SNR2 is less than the preset signal-to-noise ratio threshold η2, adjust the positions of the PPG sensor and the pressure sensor, and re-execute steps S11 to S18 until SNR1 is greater than or equal to η1 and SNR2 is greater than or equal to η2, and use the spliced PPG waveform signal and the spliced pressure pulse signal obtained at this time as the final initial PPG waveform signal and the initial pressure pulse signal.
[0051] Specifically, the PPG sensor and the pressure sensor are set to ensure that their sampling frequencies are f1 and f2, respectively, and both are greater than 500Hz. Ensure that the collected signal has sufficient time resolution to capture subtle changes in heart activity. In this setting process, the formula f=1 / T can be used, where f is the sampling frequency and T is the sampling period. By adjusting the value of T, both f1 and f2 are greater than 500Hz. According to the set PPG sensor, the first PPG waveform signal is collected from the finger of the subject, and the collection time is t1, and the first collected PPG waveform signal is obtained. At the same time, according to the set pressure sensor, the first pressure pulse signal is collected from the wrist artery of the subject, and the collection time is also t1, and the first collected pressure pulse signal is obtained. In order to ensure the synchronization of the two signals, the sampling start time points of the first collected PPG waveform signal and the first collected pressure pulse signal are aligned to obtain the first synchronized PPG waveform signal and pressure pulse signal. By setting a common timestamp, it is ensured that the two sensors start sampling at the same time point. According to the set PPG sensor, the PPG waveform signal of the finger of the subject is collected for the second time, and the collection time is t2 to obtain the PPG waveform signal collected for the second time. At the same time, according to the set pressure sensor, the pressure pulse signal of the wrist artery of the subject is collected for the second time, and the collection time is also t2 to obtain the pressure pulse signal collected for the second time. The sampling start time points of the second collected PPG waveform signal and the second collected pressure pulse signal are aligned again to obtain the second synchronized PPG waveform signal and pressure pulse signal. Thereafter, the above-mentioned collection and alignment process is repeated until the preset N times of PPG waveform signal and pressure pulse signal collection are completed to obtain the N times of synchronized PPG waveform signal and pressure pulse signal. In order to better perform subsequent analysis, the N times of synchronized PPG waveform signal is spliced in time series to obtain a spliced PPG waveform signal; similarly, the N times of synchronized pressure pulse signal is spliced in time series to obtain a spliced pressure pulse signal. The signals collected each time are connected in time order to form a long continuous signal sequence. Calculate the signal-to-noise ratio SNR1 of the spliced PPG waveform signal, and calculate the signal-to-noise ratio SNR2 of the spliced pressure pulse signal. The calculation formula for the signal-to-noise ratio is SNR=10*log10(P_signal / P_noise), where P_signal is the power of the signal and P_noise is the power of the noise. This formula can be used to measure the ratio of the useful component to the noise component in the signal, thereby evaluating the signal quality. If SNR1 is less than the preset signal-to-noise ratio threshold η1 or SNR2 is less than the preset signal-to-noise ratio threshold η2, it is necessary to adjust the position of the PPG sensor and the pressure sensor and re-execute the above steps.Adjusting the position of the sensors can be achieved by changing their contact position or pressure with the skin, thereby optimizing the signal acquisition conditions. Continue to perform steps S11 to S18 until SNR1 is greater than or equal to η1 and SNR2 is greater than or equal to η2, at which time the obtained spliced PPG waveform signal and spliced pressure pulse signal will be used as the final initial PPG waveform signal and initial pressure pulse signal. For example, assume that the sampling frequencies of the PPG sensor and the pressure sensor are set to f1=600Hz and f2=700Hz, respectively, and the acquisition time of each acquisition is set to t1=t2=10 seconds. In the first acquisition process, the PPG waveform signal and the pressure pulse signal are obtained and time-aligned. Similarly, in the second acquisition, the same steps are repeated and the starting time points of the two acquired signals are aligned. Through N acquisitions, multiple synchronized signal sequences are obtained, and they are spliced together to obtain long-time series PPG waveform signals and pressure pulse signals. Calculate the signal-to-noise ratio of these spliced signals, assuming that the obtained SNR1 and SNR2 are 20dB and 18dB, respectively. If the preset signal-to-noise ratio thresholds η1 and η2 are 25 dB and 20 dB respectively, the position of the sensor is adjusted to improve the signal-to-noise ratio, and the acquisition and processing steps are re-executed until the signal-to-noise ratio meets the requirements. Finally, the spliced PPG waveform signal and pressure pulse signal are used for further atrial fibrillation detection analysis.
[0052] In a specific embodiment, the process of executing step 102 may specifically include the following steps:
[0053] S21: performing a first median filter on the initial PPG waveform signal, with a filter window size of W1, to obtain a PPG waveform signal after the first filter. At the same time, performing a first median filter on the initial pressure pulse signal, with a filter window size of W1, to obtain a pressure pulse signal after the first filter.
[0054] S22: extracting the baseline drift component of the PPG waveform signal by an adaptive threshold method according to the PPG waveform signal after the first filtering to obtain the baseline drift component of the PPG waveform signal; at the same time, extracting the baseline drift component of the pressure pulse signal by an adaptive threshold method according to the pressure pulse signal after the first filtering to obtain the baseline drift component of the pressure pulse signal;
[0055] S23: performing a first spline interpolation on the baseline drift component of the PPG waveform signal to obtain a PPG baseline drift component after the first interpolation, and performing a first spline interpolation on the baseline drift component of the pressure pulse signal to obtain a pressure pulse baseline drift component after the first interpolation;
[0056] S24: subtracting the PPG waveform signal after the first filtering from the PPG baseline drift component after the first interpolation to obtain the PPG waveform signal after the first baseline drift is removed, and subtracting the pressure pulse signal after the first filtering from the pressure pulse baseline drift component after the first interpolation to obtain the pressure pulse signal after the first baseline drift is removed;
[0057] S25: performing a wavelet transform on the PPG waveform signal after the first baseline drift is removed, and performing a wavelet transform on the pressure pulse signal after the first baseline drift is removed, to obtain wavelet coefficients of the PPG waveform signal and the pressure pulse signal respectively;
[0058] S26: performing soft threshold processing on the wavelet coefficients of the PPG waveform signal to obtain denoised PPG wavelet coefficients, and performing soft threshold processing on the wavelet coefficients of the pressure pulse signal to obtain denoised pressure pulse wavelet coefficients;
[0059] S27: performing an inverse wavelet transform on the denoised PPG wavelet coefficients to obtain a PPG waveform signal after the first high-frequency noise is removed, and performing an inverse wavelet transform on the denoised pressure pulse wavelet coefficients to obtain a pressure pulse signal after the first high-frequency noise is removed;
[0060] S28: performing a second median filtering on the PPG waveform signal after the first high-frequency noise removal, with a filter window size of W2, to obtain a PPG waveform signal after the second filtering, and performing a second median filtering on the pressure pulse signal after the first high-frequency noise removal, with a filter window size of W2, to obtain a pressure pulse signal after the second filtering;
[0061] S29: Repeat steps S22 to S28 until the baseline drift component and the high-frequency noise component of the PPG waveform signal are removed to obtain a target PPG waveform signal, and until the baseline drift component and the high-frequency noise component of the pressure pulse signal are removed to obtain a target pressure pulse signal.
[0062] Specifically, the initial PPG waveform signal and the initial pressure pulse signal are preliminarily processed. Median filtering is a commonly used denoising technology that can effectively eliminate pulse noise in the signal. By setting the filter window size to W1, the data points in each window are sorted by size, and the middle value is taken as the representative value of the data point in the window. According to the PPG waveform signal after the first filtering, the baseline drift component of the PPG waveform signal is extracted by the adaptive threshold method to obtain the baseline drift component of the PPG waveform signal. At the same time, according to the pressure pulse signal after the first filtering, the baseline drift component of the pressure pulse signal is extracted by the adaptive threshold method to obtain the baseline drift component of the pressure pulse signal. Baseline drift is usually caused by low-frequency factors such as breathing and body movement. These baseline drift components can be effectively identified and extracted by the adaptive threshold method. The baseline drift component of the PPG waveform signal is subjected to the first spline interpolation to obtain the PPG baseline drift component after the first interpolation; similarly, the baseline drift component of the pressure pulse signal is subjected to the first spline interpolation to obtain the pressure pulse baseline drift component after the first interpolation. Spline interpolation is a smoothing technique that can fit the baseline drift component through the interpolation function to make it smoother and continuous, which is convenient for subsequent processing. The PPG waveform signal after the first filtering is subtracted from the PPG baseline drift component after the first interpolation to obtain the PPG waveform signal after the first baseline drift is removed; similarly, the pressure pulse signal after the first filtering is subtracted from the pressure pulse baseline drift component after the first interpolation to obtain the pressure pulse signal after the first baseline drift is removed. The PPG waveform signal after the first baseline drift is removed is subjected to wavelet transform, and the pressure pulse signal after the first baseline drift is removed is subjected to wavelet transform to obtain the wavelet coefficients of the PPG waveform signal and the pressure pulse signal respectively. Wavelet transform is a time-frequency analysis technique that can decompose the signal into different frequency scales, thereby extracting the multi-scale features of the signal. The wavelet coefficients of the PPG waveform signal are subjected to soft threshold processing to obtain the denoised PPG wavelet coefficients; similarly, the wavelet coefficients of the pressure pulse signal are subjected to soft threshold processing to obtain the denoised pressure pulse wavelet coefficients. Soft threshold processing is a denoising technique that reduces the noise component by setting a threshold and reducing or even returning the coefficients that are less than the threshold to zero. The denoised PPG wavelet coefficients are subjected to an inverse wavelet transform to obtain the PPG waveform signal after the first high-frequency noise removal; similarly, the denoised pressure pulse wavelet coefficients are subjected to an inverse wavelet transform to obtain the pressure pulse signal after the first high-frequency noise removal. The inverse wavelet transform converts the processed wavelet coefficients back to the time domain signal, so that the high-frequency noise component in the signal is removed.The PPG waveform signal after the first high-frequency noise removal is subjected to a second median filter, with a filter window size of W2, to obtain the PPG waveform signal after the second filtering; similarly, the pressure pulse signal after the first high-frequency noise removal is subjected to a second median filter, with a filter window size of W2, to obtain the pressure pulse signal after the second filtering. The second median filter can further remove the residual noise in the signal, making the signal smoother and cleaner. Repeat the above steps until the baseline drift component and high-frequency noise component of the PPG waveform signal are removed to obtain the target PPG waveform signal; similarly, until the baseline drift component and high-frequency noise component of the pressure pulse signal are removed to obtain the target pressure pulse signal. This process gradually extracts a pure signal through multiple iterative filtering and denoising.
[0063] In a specific embodiment, the process of executing step 103 may specifically include the following steps:
[0064] S31: performing peak detection on the target PPG waveform signal to obtain a peak point sequence of the PPG waveform signal and calculating the time interval between adjacent peak points to obtain the peak interval of the PPG waveform signal; performing peak detection on the target pressure pulse signal to obtain a peak point sequence of the pressure pulse signal and calculating the time interval between adjacent peak points to obtain the peak interval of the pressure pulse signal;
[0065] S32: According to the peak interval of the PPG waveform signal, the average peak interval, the standard deviation of the peak interval and the coefficient of variation of the peak interval of the PPG waveform signal are calculated to obtain the time domain characteristic parameters of the PPG waveform signal; according to the peak interval of the pressure pulse signal, the average peak interval, the standard deviation of the peak interval and the coefficient of variation of the peak interval of the pressure pulse signal are calculated to obtain the time domain characteristic parameters of the pressure pulse signal;
[0066] S33: performing fast Fourier transform on the peak interval of the PPG waveform signal to obtain a frequency domain signal of the PPG waveform signal and calculating the fundamental frequency, fundamental energy, first harmonic frequency, first harmonic energy, second harmonic frequency and second harmonic energy of the PPG waveform signal to obtain frequency domain characteristic parameters of the PPG waveform signal;
[0067] S34: performing spectral entropy analysis on the target PPG waveform signal to obtain frequency domain characteristic parameters of the PPG waveform signal; performing spectral entropy analysis on the target pressure pulse signal to obtain time domain characteristic parameters of the pressure pulse signal;
[0068] S35: performing Poincaré mapping on the target PPG waveform signal to obtain a Poincaré mapping diagram of the PPG waveform signal and calculating the ratio of the major axis to the minor axis of the PPG waveform signal to obtain time domain characteristic parameters of the PPG waveform signal; performing Poincaré mapping on the target pressure pulse signal to obtain a Poincaré mapping diagram of the pressure pulse signal and calculating the ratio of the major axis to the minor axis of the pressure pulse signal to obtain time domain characteristic parameters of the pressure pulse signal;
[0069] S36: performing correlation dimension and Lyapunov exponent analysis on the PPG waveform signal according to the peak point sequence of the PPG waveform signal to obtain frequency domain characteristic parameters of the PPG waveform signal; performing correlation dimension and Lyapunov exponent analysis on the pressure pulse signal according to the peak point sequence of the pressure pulse signal to obtain time domain characteristic parameters of the pressure pulse signal;
[0070] S37: Combine the time domain characteristic parameters and frequency domain characteristic parameters of the PPG waveform signal extracted in steps S32 to S36 to obtain a first characteristic parameter set of the PPG waveform signal, and combine the time domain characteristic parameters of the pressure pulse signal extracted in steps S32 and S34 to S36 to obtain a second characteristic parameter set of the pressure pulse signal.
[0071] Specifically, peak detection is performed on the target PPG waveform signal and the target pressure pulse signal. Peak detection is a common signal processing technique used to identify local maximum points in the signal, which usually correspond to the peaks of the heartbeat. By calculating the time interval between adjacent peak points, the peak interval of the PPG waveform signal and the peak interval of the pressure pulse signal are obtained, and these intervals reflect the periodicity of cardiac activity. According to the peak interval of the PPG waveform signal, the average peak interval, peak interval standard deviation and peak interval variation coefficient of the PPG waveform signal are calculated to obtain the time domain characteristic parameters of the PPG waveform signal. The formula is as follows:
[0072]
[0073] in, represents the ith peak interval, N represents the total number of peak logarithms, Represents the average peak interval. These time domain characteristic parameters can reflect the average length, volatility and relative variation of the cardiac cycle. Similarly, based on the peak interval of the pressure pulse signal, the average peak interval, peak interval standard deviation and peak interval variation coefficient of the pressure pulse signal are calculated to obtain the time domain characteristic parameters of the pressure pulse signal. The peak interval of the PPG waveform signal is subjected to a fast Fourier transform to obtain the frequency domain signal of the PPG waveform signal and calculate the fundamental frequency, fundamental energy, first harmonic frequency, first harmonic energy, second harmonic frequency and second harmonic energy of the PPG waveform signal, thereby obtaining the frequency domain characteristic parameters of the PPG waveform signal. The formula for fast Fourier transform is as follows:
[0074] ;
[0075] in, represents the frequency domain signal, represents the time domain signal, N represents the length of the signal, Represents frequency. Through fast Fourier transform, the time domain signal is converted to the frequency domain to analyze its frequency components. The target PPG waveform signal is subjected to spectral entropy analysis to obtain the frequency domain characteristic parameters of the PPG waveform signal; similarly, the target pressure pulse signal is subjected to spectral entropy analysis to obtain the time domain characteristic parameters of the pressure pulse signal. Spectral entropy is an indicator to measure the complexity of a signal, which can reflect the randomness and uncertainty of the signal. The calculation formula of spectral entropy is:
[0076] Spectral entropy ;
[0077] in, Represents the normalized power spectral density of the spectrum. Perform Poincaré mapping on the target PPG waveform signal to obtain the Poincaré mapping diagram of the PPG waveform signal and calculate the ratio of the major axis to the minor axis of the PPG waveform signal to obtain the time domain characteristic parameters of the PPG waveform signal. Poincaré mapping is a nonlinear dynamic analysis method. By drawing a scatter plot of adjacent peak intervals, the geometric characteristics of heart rate variability can be analyzed. Perform Poincaré mapping on the target pressure pulse signal to obtain the Poincaré mapping diagram of the pressure pulse signal and calculate the ratio of the major axis to the minor axis of the pressure pulse signal to obtain the time domain characteristic parameters of the pressure pulse signal. According to the peak point sequence of the PPG waveform signal, the PPG waveform signal is analyzed by correlation dimension and Lyapunov exponent to obtain the frequency domain characteristic parameters of the PPG waveform signal. Correlation dimension and Lyapunov exponent are important indicators to measure the chaotic characteristics of the signal and can reflect the nonlinear dynamic behavior of the system. The calculation formula of correlation dimension is:
[0078] ;
[0079] in, The radius is The number of point pairs in the neighborhood of . According to the peak point sequence of the pressure pulse signal, the pressure pulse signal is subjected to correlation dimension and Lyapunov exponent analysis to obtain the time domain characteristic parameters of the pressure pulse signal. The time domain characteristic parameters and frequency domain characteristic parameters of the PPG waveform signal extracted in steps S32 to S36 are combined to obtain a first characteristic parameter set of the PPG waveform signal; the time domain characteristic parameters of the pressure pulse signal extracted in steps S32 and S34 to S36 are combined to obtain a second characteristic parameter set of the pressure pulse signal.
[0080] In a specific embodiment, the process of executing step 104 may specifically include the following steps:
[0081] S41: constructing a Gaussian kernel matrix of the PPG waveform signal according to the first characteristic parameter set; constructing a Gaussian kernel matrix of the pressure pulse signal according to the second characteristic parameter set;
[0082] S42: Perform eigendecomposition on the Gaussian kernel matrix of the PPG waveform signal to obtain the first eigenvalue and the first eigenvector of the PPG waveform signal, sort them from large to small according to the first eigenvalue, and obtain a sorted first eigenvalue sequence and a corresponding first eigenvector sequence; perform eigendecomposition on the Gaussian kernel matrix of the pressure pulse signal to obtain the second eigenvalue and the second eigenvector of the pressure pulse signal, sort them from large to small according to the second eigenvalue, and obtain a sorted second eigenvalue sequence and a corresponding second eigenvector sequence;
[0083] S43: According to a preset first eigenvalue threshold, the first eigenvalue sequence is truncated to obtain a truncated PPG eigenvalue subsequence, and the eigenvector corresponding to the truncated PPG eigenvalue subsequence is extracted to obtain a PPG eigenvector subsequence; according to a preset second eigenvalue threshold, the second eigenvalue sequence is truncated to obtain a truncated pressure pulse eigenvalue subsequence, and the eigenvector corresponding to the truncated pressure pulse eigenvalue subsequence is extracted to obtain a pressure pulse eigenvector subsequence;
[0084] S44: normalizing the PPG feature vector subsequence to obtain a normalized PPG feature vector subsequence, and normalizing the pressure pulse feature vector subsequence to obtain a normalized pressure pulse feature vector subsequence;
[0085] S45: According to the normalized PPG feature vector subsequence, the first feature parameter set is mapped to the high-dimensional space by a kernel function to obtain a kernel matrix of the first feature parameter set; according to the normalized pressure pulse feature vector subsequence, the second feature parameter set is mapped to the high-dimensional space by a kernel function to obtain a kernel matrix of the second feature parameter set;
[0086] S46: performing singular value decomposition on the kernel matrix of the first feature parameter set to obtain a left singular matrix, a singular value matrix, and a right singular matrix of the first feature parameter set, and performing singular value decomposition on the kernel matrix of the second feature parameter set to obtain a left singular matrix, a singular value matrix, and a right singular matrix of the second feature parameter set;
[0087] S47: According to the singular value matrix of the first feature parameter set, a dimensionality reduction process is performed on the left singular matrix of the first feature parameter set to obtain a left singular matrix of the first feature parameter set after dimensionality reduction; according to the singular value matrix of the second feature parameter set, a dimensionality reduction process is performed on the left singular matrix of the second feature parameter set to obtain a left singular matrix of the second feature parameter set after dimensionality reduction;
[0088] S48: performing a linear transformation on the first feature parameter set by using the left singular matrix of the first feature parameter set after dimensionality reduction to obtain a feature mapping matrix of the first feature parameter set, and performing a linear transformation on the second feature parameter set by using the left singular matrix of the second feature parameter set after dimensionality reduction to obtain a feature mapping matrix of the second feature parameter set;
[0089] S49: performing vectorization processing on the feature mapping matrix of the first feature parameter set to obtain a first feature mapping vector, and performing vectorization processing on the feature mapping matrix of the second feature parameter set to obtain a second feature mapping vector.
[0090] Specifically, the first characteristic parameter set of the PPG waveform signal and the second characteristic parameter set of the pressure pulse signal are used to construct respective Gaussian kernel matrices. The Gaussian kernel matrix is a matrix based on the Gaussian kernel function, which is used to map data to a new feature space, thereby revealing the structure and internal relationship of the data. The formula of the Gaussian kernel function is as follows:
[0091] ;
[0092] in, represents the output of the Gaussian kernel function, and represent two eigenvectors, Represents the bandwidth parameter of the Gaussian kernel. By calculating the Gaussian kernel function value between each pair of eigenvectors, a Gaussian kernel matrix is constructed. The Gaussian kernel matrix of the PPG waveform signal is eigendecomposed to obtain the first eigenvalue and the first eigenvector of the PPG waveform signal. Eigendecomposition is a process of decomposing a matrix into a set of eigenvectors and eigenvalues, which can be used to represent the main features and change trends of the data. The formula for eigendecomposition is as follows:
[0093] ;
[0094] in, represents the Gaussian kernel matrix, represents the feature vector, Represents the eigenvalue. By solving this eigenvalue problem, the eigenvalue and eigenvector of the Gaussian kernel matrix are obtained. According to the first eigenvalue, the eigenvalues and eigenvectors are sorted from large to small to obtain the sorted first eigenvalue sequence and the corresponding first eigenvector sequence. Similarly, the Gaussian kernel matrix of the pressure pulse signal is eigen-decomposed to obtain the second eigenvalue and the second eigenvector of the pressure pulse signal, and the eigenvalue is sorted from large to small according to the second eigenvalue to obtain the sorted second eigenvalue sequence and the corresponding second eigenvector sequence. According to the preset first eigenvalue threshold, the first eigenvalue sequence is truncated to obtain a truncated PPG eigenvalue subsequence, and the eigenvector corresponding to the truncated PPG eigenvalue subsequence is extracted to obtain a PPG eigenvector subsequence. Similarly, according to the preset second eigenvalue threshold, the second eigenvalue sequence is truncated to obtain a truncated pressure pulse eigenvalue subsequence, and the eigenvector corresponding to the truncated pressure pulse eigenvalue subsequence is extracted to obtain a pressure pulse eigenvector subsequence. The purpose of the truncation process is to remove those features with small eigenvalues and low contribution to the data, thereby simplifying the model and improving computational efficiency. The PPG feature vector subsequence is normalized to obtain a normalized PPG feature vector subsequence; similarly, the pressure pulse feature vector subsequence is normalized to obtain a normalized pressure pulse feature vector subsequence. Normalization can eliminate the dimensional differences between different features, so that each feature can be compared on the same scale, thereby improving the accuracy and consistency of feature mapping. According to the normalized PPG feature vector subsequence, the first feature parameter set is mapped to a high-dimensional space through a kernel function to obtain a kernel matrix of the first feature parameter set; similarly, according to the normalized pressure pulse feature vector subsequence, the second feature parameter set is mapped to a high-dimensional space through a kernel function to obtain a kernel matrix of the second feature parameter set. Through kernel function mapping, nonlinear data is converted into a linearly separable form, which is convenient for subsequent feature processing and analysis. The kernel matrix of the first feature parameter set is subjected to singular value decomposition to obtain the left singular matrix, singular value matrix and right singular matrix of the first feature parameter set; similarly, the kernel matrix of the second feature parameter set is subjected to singular value decomposition to obtain the left singular matrix, singular value matrix and right singular matrix of the second feature parameter set. Singular value decomposition is a process of decomposing a matrix into three sub-matrices, which respectively represent the row space, column space and singular value space of the original matrix and can be used to extract the main characteristic components of the data. According to the singular value matrix of the first feature parameter set, the left singular matrix of the first feature parameter set is subjected to dimensionality reduction processing to obtain the left singular matrix of the first feature parameter set after dimensionality reduction; similarly, according to the singular value matrix of the second feature parameter set, the left singular matrix of the second feature parameter set is subjected to dimensionality reduction processing to obtain the left singular matrix of the second feature parameter set after dimensionality reduction.Dimensionality reduction is to reduce the dimension of data, thereby reducing computational complexity and storage requirements, while retaining the main feature information of the data. The first feature parameter set is linearly transformed through the left singular matrix of the first feature parameter set after dimensionality reduction to obtain the feature mapping matrix of the first feature parameter set; similarly, the second feature parameter set is linearly transformed through the left singular matrix of the second feature parameter set after dimensionality reduction to obtain the feature mapping matrix of the second feature parameter set. Linear transformation is an operation that converts data from one space to another space. Through this operation, the data can be easier to analyze and process in the new space. The feature mapping matrix of the first feature parameter set is vectorized to obtain the first feature mapping vector; similarly, the feature mapping matrix of the second feature parameter set is vectorized to obtain the second feature mapping vector. Vectorization is to convert data in matrix form into vector form, so as to facilitate subsequent machine learning algorithms to process and analyze.
[0095] In a specific embodiment, the process of executing step 105 may specifically include the following steps:
[0096] S51: concatenate the first feature mapping vector and the second feature mapping vector to obtain a concatenated feature mapping vector, and calculate a covariance matrix of the concatenated feature mapping vector;
[0097] S52: performing eigendecomposition on the covariance matrix to obtain the third eigenvalue and the third eigenvector of the covariance matrix, and sorting the third eigenvalues from large to small to obtain a sorted third eigenvalue sequence and a corresponding third eigenvector sequence;
[0098] S53: truncating the sorted third eigenvalue sequence to obtain a truncated concatenated eigenvalue subsequence, and extracting a eigenvector corresponding to the truncated concatenated eigenvalue subsequence to obtain a concatenated eigenvector subsequence;
[0099] S54: concatenating feature vector subsequences and performing linear transformation on the concatenated feature mapping vector to obtain a transformed feature mapping vector;
[0100] S55: performing normalization and decentralization processing on the transformed feature mapping vector to obtain a fused feature mapping vector.
[0101] Specifically, the first feature mapping vector and the second feature mapping vector are concatenated. Assume that the first feature mapping vector is and the second feature map vector is , concatenate them horizontally to form a new feature vector The concatenated feature map vector contains all the feature information from the two signals. Calculate the covariance matrix of the concatenated feature map vector. The covariance matrix is a matrix that describes the relationship between multiple variables. Its formula is as follows:
[0102] ;
[0103] in, represents the covariance matrix, represents the eigenvector matrix, Denotes the mean vector of the eigenvector, and n denotes the number of samples. By calculating the covariance matrix, we can understand the linear relationship between the features in the eigenvector. Perform eigendecomposition on the covariance matrix to obtain the third eigenvalue and third eigenvector of the covariance matrix. Eigendecomposition is a process of decomposing a matrix into a set of eigenvectors and eigenvalues, which can be used to represent the main features and changing trends of the data. The formula for eigendecomposition is as follows:
[0104] ;
[0105] in, represents the covariance matrix, represents the feature vector, Represents the eigenvalue. By solving this eigenvalue problem, the eigenvalue and eigenvector of the covariance matrix are obtained. According to the third eigenvalue, the sequence is sorted from large to small to obtain the sorted third eigenvalue sequence and the corresponding third eigenvector sequence. According to the preset eigenvalue threshold, the third eigenvalue sequence is truncated to obtain a truncated spliced eigenvalue subsequence, and the eigenvector corresponding to the truncated spliced eigenvalue subsequence is extracted to obtain a spliced eigenvector subsequence. The purpose of the truncation process is to remove those features with small eigenvalues and low contribution to the data, thereby simplifying the model and improving the computational efficiency. By splicing the eigenvector subsequence, the spliced feature mapping vector is linearly transformed to obtain the transformed feature mapping vector. Linear transformation is an operation that converts data from one space to another space. Through this operation, the data is more representative and easier to analyze in the new space. The transformed feature mapping vector is normalized and decentralized to obtain a fused feature mapping vector. Normalization can eliminate the scale differences between different features so that each feature can be compared on the same scale; while decentralization is to eliminate the mean deviation of the data so that the data is more concentrated on the origin, thereby improving the accuracy and stability of data analysis.
[0106] In a specific embodiment, the process of executing step 106 may specifically include the following steps:
[0107] S61: inputting the first feature mapping vector, the second feature mapping vector and the fused feature mapping vector into a preset double-layer stacked support vector machine model, wherein the first layer of the support vector machine model in the double-layer stacked support vector machine model includes: a first support vector machine model, a second support vector machine model, a third support vector machine model and a fourth support vector machine model, and the second layer of the support vector machine model includes: a fifth support vector machine model, a sixth support vector machine model, a seventh support vector machine model and an eighth support vector machine model;
[0108] S62: Classify the first feature mapping vector by the first support vector machine model to obtain a first classification result, classify the second feature mapping vector by the second support vector machine model to obtain a second classification result, and classify the fused feature mapping vector by the third support vector machine model to obtain a third classification result; perform weighted fusion on the first classification result, the second classification result, and the third classification result to obtain a first fused classification result, wherein the weight of the first classification result is w1, the weight of the second classification result is w2, and the weight of the third classification result is w3, and w1, w2, and w3 satisfy the following conditions: w1+w2+w3=1, 0 <w1<1,0<w2<1,0<w3<1;
[0109] S63: performing secondary classification on the first fusion classification result by using a fourth support vector machine model to obtain a first secondary classification result;
[0110] S64: Calculate the confidence of the first and second classification results, and compare the confidence with a preset confidence threshold. If the confidence is greater than or equal to the preset confidence threshold, use the first and second classification results as the final atrial fibrillation state determination result. If the confidence is less than the preset confidence threshold, execute step S65.
[0111] S65: performing feature enhancement processing on the first feature mapping vector, the second feature mapping vector and the fused feature mapping vector to obtain an enhanced first feature mapping vector, an enhanced second feature mapping vector and an enhanced fused feature mapping vector;
[0112] S66: classifying the enhanced first feature mapping vector by a fifth support vector machine model to obtain a fourth classification result, classifying the enhanced second feature mapping vector by a sixth support vector machine model to obtain a fifth classification result, and classifying the enhanced fused feature mapping vector by a seventh support vector machine model to obtain a sixth classification result;
[0113] S67: Perform weighted fusion on the fourth classification result, the fifth classification result, and the sixth classification result to obtain a second fusion classification result, wherein the weight of the fourth classification result is w4, the weight of the fifth classification result is w5, and the weight of the sixth classification result is w6, and w4, w5, and w6 satisfy the following conditions: w4+w5+w6=1, 0 <w4<1,0<w5<1,0<w6<1;
[0114] S68: performing secondary classification on the second fusion classification result through an eighth support vector machine model according to the second fusion classification result to obtain a second secondary classification result;
[0115] S69: Calculate the confidence of the second secondary classification result, and compare the confidence with the preset confidence threshold. If the confidence is greater than or equal to the preset confidence threshold, the second secondary classification result is used as the final atrial fibrillation state determination result. If the confidence is less than the preset confidence threshold, the first secondary classification result is used as the final atrial fibrillation state determination result and output.
[0116] Specifically, the double-layer stacked support vector machine model is an advanced classifier, which can improve the accuracy and robustness of classification by combining the outputs of multiple support vector machine models. The first layer contains four support vector machine models, and the second layer contains four support vector machine models. The first feature mapping vector is input into the first support vector machine model for classification to obtain a first classification result; the second feature mapping vector is input into the second support vector machine model for classification to obtain a second classification result; the fused feature mapping vector is input into the third support vector machine model for classification to obtain a third classification result. In order to integrate these classification results, they are weighted fused. The above fused classification result is input into the fourth support vector machine model for secondary classification to obtain the first and second classification results. In order to evaluate the reliability of this result, its confidence is calculated. Confidence is an indicator indicating the degree of credibility of the classification result. The calculated confidence is compared with a preset confidence threshold. If the confidence is greater than or equal to the preset confidence threshold, the first and second classification results are used as the final atrial fibrillation state discrimination result. If the confidence is less than the preset confidence threshold, further processing is required. At this time, the first feature mapping vector, the second feature mapping vector and the fused feature mapping vector are subjected to feature enhancement processing to obtain an enhanced first feature mapping vector, an enhanced second feature mapping vector and an enhanced fused feature mapping vector. Feature enhancement processing can improve the accuracy of classification by increasing the dimension of the feature or improving the distinguishing ability of the feature through some transformation. The enhanced first feature mapping vector is classified by the fifth support vector machine model to obtain a fourth classification result; the enhanced second feature mapping vector is classified by the sixth support vector machine model to obtain a fifth classification result; the enhanced fused feature mapping vector is classified by the seventh support vector machine model to obtain a sixth classification result. The fourth classification result, the fifth classification result and the sixth classification result are weightedly fused to obtain a second fused classification result. According to the second fused classification result, the second fused classification result is secondary classified by the eighth support vector machine model to obtain a second secondary classification result. In order to evaluate the reliability of this result, its confidence is calculated again. The calculated confidence is compared with the preset confidence threshold. If the confidence is greater than or equal to the preset confidence threshold, the second secondary classification result is used as the final atrial fibrillation state discrimination result. If the confidence level is less than a preset confidence level threshold, the first and second classification results are used as the final atrial fibrillation state determination results and output.
[0117] The above describes the atrial fibrillation measurement method based on the PPG waveform signal and the pressure pulse signal in the embodiment of the present application. The following describes the atrial fibrillation measurement device based on the PPG waveform signal and the pressure pulse signal in the embodiment of the present application. Figure 2In the embodiment of the present application, an atrial fibrillation measurement device based on a PPG waveform signal and a pressure pulse signal includes:
[0118] The acquisition module 201 is used to synchronously acquire data from the subject using the PPG sensor and the pressure sensor to obtain an initial PPG waveform signal and an initial pressure pulse signal;
[0119] A removal module 202, for performing baseline drift removal and high-frequency noise filtering on the initial PPG waveform signal and the initial pressure pulse signal, respectively, to obtain a target PPG waveform signal and a target pressure pulse signal;
[0120] An extraction module 203 is used to perform time domain feature extraction and frequency domain feature extraction on the target PPG waveform signal to obtain a first feature parameter set of the PPG waveform signal, and to perform time domain feature extraction on the target pressure pulse signal to obtain a second feature parameter set of the pressure pulse signal;
[0121] A mapping module 204 is used to perform feature mapping and vector conversion on the first feature parameter set and the second feature parameter set respectively to obtain corresponding first feature mapping vectors and second feature mapping vectors;
[0122] A combination module 205 is used to perform feature combination and principal component dimension reduction on the first feature mapping vector and the second feature mapping vector to obtain a fused feature mapping vector;
[0123] The discrimination module 206 is used to input the first feature mapping vector, the second feature mapping vector and the fused feature mapping vector into a preset double-layer stacked support vector machine model to perform atrial fibrillation state discrimination to obtain an atrial fibrillation state discrimination result.
[0124] Through the cooperation of the above components, the PPG sensor and the pressure sensor are used for synchronous data acquisition to ensure the time alignment of the two signals and avoid data deviation caused by time asynchrony. The preprocessing steps of baseline drift removal and high-frequency noise filtering are used to effectively remove interference factors in the signal and improve the purity of the signal. Not only the time domain features and frequency domain features of the PPG waveform signal are extracted, but also the detailed time domain features of the pressure pulse signal are extracted to ensure that the changes of the cardiovascular system are captured from different dimensions. The extracted feature parameters cover multiple aspects of the signal, enrich the feature set, and improve the ability to identify the atrial fibrillation state. By combining the feature parameters of the PPG waveform signal and the pressure pulse signal to form a high-dimensional feature vector, and then reducing the dimension through methods such as principal component analysis, the redundant information is effectively reduced and the most discriminative features are retained. The construction of fusion features makes full use of the complementarity of the two signals, enhances the detection ability of the atrial fibrillation state, and improves the discrimination performance of the model. A double-layer stacked support vector machine model is used to discriminate the atrial fibrillation state. Through multi-level classification and weighted fusion, the robustness and generalization ability of the model are improved. During the classification process, the accuracy and reliability of atrial fibrillation detection are further improved through confidence calculation and feature enhancement processing. By real-time monitoring of the atrial fibrillation status of the subjects and data collection and processing through portable devices, real-time discrimination and monitoring of the atrial fibrillation status are achieved.
[0125] The present application also provides a computer device, which includes a memory and a processor, wherein the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the processor executes the steps of the atrial fibrillation measurement method based on the PPG waveform signal and the pressure pulse signal in the above-mentioned embodiments.
[0126] The present application also provides a computer-readable storage medium, which may be a non-volatile computer-readable storage medium or a volatile computer-readable storage medium. The computer-readable storage medium stores instructions, and when the instructions are executed on a computer, the computer executes the steps of the atrial fibrillation measurement method based on the PPG waveform signal and the pressure pulse signal.
[0127] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described systems, systems and units can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0128] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk, etc., various media that can store program codes.
[0129] As described above, the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A method for measuring atrial fibrillation based on PPG waveform signal and pressure pulse signal, characterized in that: The method comprises: Using a PPG sensor and a pressure sensor to synchronously collect data from the subject, respectively, to obtain an initial PPG waveform signal and an initial pressure pulse signal; Respectively performing baseline drift removal and high-frequency noise filtering on the initial PPG waveform signal and the initial pressure pulse signal to obtain a target PPG waveform signal and a target pressure pulse signal; Performing time domain feature extraction and frequency domain feature extraction on the target PPG waveform signal to obtain a first feature parameter set of the PPG waveform signal, and performing time domain feature extraction on the target pressure pulse signal to obtain a second feature parameter set of the pressure pulse signal; Performing feature mapping and vector conversion on the first feature parameter set and the second feature parameter set respectively to obtain corresponding first feature mapping vectors and second feature mapping vectors; Performing feature combination and principal component dimension reduction on the first feature mapping vector and the second feature mapping vector to obtain a fused feature mapping vector; Input the first feature mapping vector, the second feature mapping vector, and the fused feature mapping vector into a pre-set double-layer stacked support vector machine model for atrial fibrillation state discrimination to obtain an atrial fibrillation state discrimination result. Specifically, it includes: S61: Input the first feature mapping vector, the second feature mapping vector, and the fused feature mapping vector into the pre-set double-layer stacked support vector machine model. The first-layer support vector machine model in the double-layer stacked support vector machine model includes: a first support vector machine model, a second support vector machine model, a third support vector machine model, and a fourth support vector machine model. The second-layer support vector machine model includes: a fifth support vector machine model, a sixth support vector machine model, a seventh support vector machine model, and an eighth support vector machine model; S62: Classify the first feature mapping vector through the first support vector machine model to obtain a first classification result, classify the second feature mapping vector through the second support vector machine model to obtain a second classification result, and classify the fused feature mapping vector through the third support vector machine model to obtain a third classification result; perform weighted fusion on the first classification result, the second classification result, and the third classification result to obtain a first fused classification result, where the weight of the first classification result is w1, the weight of the second classification result is w2, and the weight of the third classification result is w3. w1, w2, and w3 satisfy the following conditions: w1 + w2 + w3 = 1, 0 < w1 < 1, 0 < w2 < 1, 0 < w3 < 1; S63: Perform secondary classification on the first fused classification result through the fourth support vector machine model to obtain a first secondary classification result; S64: Calculate the confidence level of the first secondary classification result, compare the confidence level with a pre-set confidence level threshold. If the confidence level is greater than or equal to the pre-set confidence level threshold, then use the first secondary classification result as the final atrial fibrillation state discrimination result. If the confidence level is less than the pre-set confidence level threshold, then execute step S65; S65: Perform feature enhancement processing on the first feature mapping vector, the second feature mapping vector, and the fused feature mapping vector to obtain an enhanced first feature mapping vector, an enhanced second feature mapping vector, and an enhanced fused feature mapping vector; S66: Classify the enhanced first feature mapping vector through the fifth support vector machine model to obtain a fourth classification result, classify the enhanced second feature mapping vector through the sixth support vector machine model to obtain a fifth classification result, and classify the enhanced fused feature mapping vector through the seventh support vector machine model to obtain a sixth classification result; S67: Perform weighted fusion on the fourth classification result, the fifth classification result, and the sixth classification result to obtain a second fused classification result, where the weight of the fourth classification result is w4, the weight of the fifth classification result is w5, and the weight of the sixth classification result is w6. w4, w5, and w6 satisfy the following conditions: w4 + w5 + w6 = 1, 0 < w4 < 1, 0 < w5 < 1, 0 < w6 < 1;S68: According to the second fusion classification result, the second fusion classification result is secondary classified by the eighth support vector machine model to obtain a second secondary classification result; S69: Calculate the confidence of the second secondary classification result, compare the confidence with the preset confidence threshold, if the confidence is greater than or equal to the preset confidence threshold, then use the second secondary classification result as the final atrial fibrillation state discrimination result, if the confidence is less than the preset confidence threshold, then use the first secondary classification result as the final atrial fibrillation state discrimination result and output it. ; 2. The atrial fibrillation measurement method based on PPG waveform signal and pressure pulse signal according to claim 1, characterized in that: The method of using a PPG sensor and a pressure sensor to synchronously collect data from the subject to obtain an initial PPG waveform signal and an initial pressure pulse signal includes: S11: setting the sampling frequencies of the PPG sensor and the pressure sensor, setting the sampling frequency of the PPG sensor to f1, and setting the sampling frequency of the pressure sensor to f2, wherein both f1 and f2 are preset sampling frequencies greater than 500 Hz; S12: According to the set PPG sensor, the first PPG waveform signal is collected from the finger of the subject, the collection time is t1, and the first collected PPG waveform signal is obtained. At the same time, according to the set pressure sensor, the first pressure pulse signal is collected from the wrist artery of the subject, the collection time is t1, and the first collected pressure pulse signal is obtained; S13: aligning the sampling start time points of the first collected PPG waveform signal and the first collected pressure pulse signal to obtain the first synchronized PPG waveform signal and pressure pulse signal; S14: according to the set PPG sensor, a second PPG waveform signal is collected from the finger of the subject, the collection time is t2, and the second collected PPG waveform signal is obtained. At the same time, according to the set pressure sensor, a second pressure pulse signal is collected from the wrist artery of the subject, the collection time is t2, and the second collected pressure pulse signal is obtained; S15: aligning the sampling start time points of the second collected PPG waveform signal and the second collected pressure pulse signal to obtain the second synchronized PPG waveform signal and the pressure pulse signal; S16: Repeat step S14 and step S15 until the preset number of acquisitions N of PPG waveform signals and pressure pulse signals are completed, and N synchronized PPG waveform signals and pressure pulse signals are obtained; S17: performing time series splicing on the PPG waveform signals after N synchronizations to obtain a spliced PPG waveform signal, and performing time series splicing on the pressure pulse signals after N synchronizations to obtain a spliced pressure pulse signal; S18: calculating the signal-to-noise ratio SNR1 of the spliced PPG waveform signal, and calculating the signal-to-noise ratio SNR2 of the spliced pressure pulse signal; S19: If SNR1 is less than the preset signal-to-noise ratio threshold η1 or SNR2 is less than the preset signal-to-noise ratio threshold η2, adjust the positions of the PPG sensor and the pressure sensor, and re-execute steps S11 to S18 until SNR1 is greater than or equal to η1 and SNR2 is greater than or equal to η2, and use the spliced PPG waveform signal and the spliced pressure pulse signal obtained at this time as the final initial PPG waveform signal and the initial pressure pulse signal.
3. The atrial fibrillation measurement method based on PPG waveform signal and pressure pulse signal according to claim 1, characterized in that: The method of removing baseline drift and filtering high-frequency noise from the initial PPG waveform signal and the initial pressure pulse signal to obtain a target PPG waveform signal and a target pressure pulse signal comprises: S21: performing a first median filter on the initial PPG waveform signal, with a filter window size of W1, to obtain a PPG waveform signal after the first filter. At the same time, performing a first median filter on the initial pressure pulse signal, with a filter window size of W1, to obtain a pressure pulse signal after the first filter. S22: extracting the baseline drift component of the PPG waveform signal by an adaptive threshold method according to the PPG waveform signal after the first filtering to obtain the baseline drift component of the PPG waveform signal; at the same time, extracting the baseline drift component of the pressure pulse signal by an adaptive threshold method according to the pressure pulse signal after the first filtering to obtain the baseline drift component of the pressure pulse signal; S23: performing a first spline interpolation on the baseline drift component of the PPG waveform signal to obtain a PPG baseline drift component after the first interpolation, and performing a first spline interpolation on the baseline drift component of the pressure pulse signal to obtain a pressure pulse baseline drift component after the first interpolation; S24: subtracting the PPG waveform signal after the first filtering from the PPG baseline drift component after the first interpolation to obtain the PPG waveform signal after the first baseline drift is removed, and subtracting the pressure pulse signal after the first filtering from the pressure pulse baseline drift component after the first interpolation to obtain the pressure pulse signal after the first baseline drift is removed; S25: performing a wavelet transform on the PPG waveform signal after the first baseline drift is removed, and performing a wavelet transform on the pressure pulse signal after the first baseline drift is removed, to obtain wavelet coefficients of the PPG waveform signal and the pressure pulse signal respectively; S26: performing soft threshold processing on the wavelet coefficients of the PPG waveform signal to obtain denoised PPG wavelet coefficients, and performing soft threshold processing on the wavelet coefficients of the pressure pulse signal to obtain denoised pressure pulse wavelet coefficients; S27: performing an inverse wavelet transform on the denoised PPG wavelet coefficients to obtain a PPG waveform signal after the first high-frequency noise is removed, and performing an inverse wavelet transform on the denoised pressure pulse wavelet coefficients to obtain a pressure pulse signal after the first high-frequency noise is removed; S28: performing a second median filtering on the PPG waveform signal after the first high-frequency noise removal, with a filter window size of W2, to obtain a PPG waveform signal after the second filtering, and performing a second median filtering on the pressure pulse signal after the first high-frequency noise removal, with a filter window size of W2, to obtain a pressure pulse signal after the second filtering; S29: Repeat steps S22 to S28 until the baseline drift component and the high-frequency noise component of the PPG waveform signal are removed to obtain a target PPG waveform signal, and until the baseline drift component and the high-frequency noise component of the pressure pulse signal are removed to obtain a target pressure pulse signal.
4. The atrial fibrillation measurement method based on PPG waveform signal and pressure pulse signal according to claim 1, characterized in that: The step of performing time domain feature extraction and frequency domain feature extraction on the target PPG waveform signal to obtain a first feature parameter set of the PPG waveform signal, and performing time domain feature extraction on the target pressure pulse signal to obtain a second feature parameter set of the pressure pulse signal includes: S31: performing peak detection on the target PPG waveform signal to obtain a peak point sequence of the PPG waveform signal and calculating the time interval between adjacent peak points to obtain the peak interval of the PPG waveform signal; performing peak detection on the target pressure pulse signal to obtain a peak point sequence of the pressure pulse signal and calculating the time interval between adjacent peak points to obtain the peak interval of the pressure pulse signal; S32: According to the peak interval of the PPG waveform signal, the average peak interval, the standard deviation of the peak interval and the coefficient of variation of the peak interval of the PPG waveform signal are calculated to obtain the time domain characteristic parameters of the PPG waveform signal; according to the peak interval of the pressure pulse signal, the average peak interval, the standard deviation of the peak interval and the coefficient of variation of the peak interval of the pressure pulse signal are calculated to obtain the time domain characteristic parameters of the pressure pulse signal; S33: performing fast Fourier transform on the peak interval of the PPG waveform signal to obtain a frequency domain signal of the PPG waveform signal and calculating the fundamental frequency, fundamental energy, first harmonic frequency, first harmonic energy, second harmonic frequency and second harmonic energy of the PPG waveform signal to obtain frequency domain characteristic parameters of the PPG waveform signal; S34: performing spectral entropy analysis on the target PPG waveform signal to obtain frequency domain characteristic parameters of the PPG waveform signal; performing spectral entropy analysis on the target pressure pulse signal to obtain time domain characteristic parameters of the pressure pulse signal; S35: performing Poincaré mapping on the target PPG waveform signal to obtain a Poincaré mapping diagram of the PPG waveform signal and calculating the ratio of the major axis to the minor axis of the PPG waveform signal to obtain time domain characteristic parameters of the PPG waveform signal; performing Poincaré mapping on the target pressure pulse signal to obtain a Poincaré mapping diagram of the pressure pulse signal and calculating the ratio of the major axis to the minor axis of the pressure pulse signal to obtain time domain characteristic parameters of the pressure pulse signal; S36: performing correlation dimension and Lyapunov exponent analysis on the PPG waveform signal according to the peak point sequence of the PPG waveform signal to obtain frequency domain characteristic parameters of the PPG waveform signal; performing correlation dimension and Lyapunov exponent analysis on the pressure pulse signal according to the peak point sequence of the pressure pulse signal to obtain time domain characteristic parameters of the pressure pulse signal; S37: Combine the time domain characteristic parameters and frequency domain characteristic parameters of the PPG waveform signal extracted in steps S32 to S36 to obtain a first characteristic parameter set of the PPG waveform signal, and combine the time domain characteristic parameters of the pressure pulse signal extracted in steps S32 and S34 to S36 to obtain a second characteristic parameter set of the pressure pulse signal.
5. The atrial fibrillation measurement method based on PPG waveform signal and pressure pulse signal according to claim 4, characterized in that: The performing feature mapping and vector conversion on the first feature parameter set and the second feature parameter set respectively to obtain corresponding first feature mapping vectors and second feature mapping vectors includes: S41: constructing a Gaussian kernel matrix of the PPG waveform signal according to the first characteristic parameter set; constructing a Gaussian kernel matrix of the pressure pulse signal according to the second characteristic parameter set; S42: Perform eigendecomposition on the Gaussian kernel matrix of the PPG waveform signal to obtain the first eigenvalue and the first eigenvector of the PPG waveform signal, sort them from large to small according to the first eigenvalue, and obtain a sorted first eigenvalue sequence and a corresponding first eigenvector sequence; perform eigendecomposition on the Gaussian kernel matrix of the pressure pulse signal to obtain the second eigenvalue and the second eigenvector of the pressure pulse signal, sort them from large to small according to the second eigenvalue, and obtain a sorted second eigenvalue sequence and a corresponding second eigenvector sequence; S43: According to a preset first eigenvalue threshold, the first eigenvalue sequence is truncated to obtain a truncated PPG eigenvalue subsequence, and the eigenvector corresponding to the truncated PPG eigenvalue subsequence is extracted to obtain a PPG eigenvector subsequence; according to a preset second eigenvalue threshold, the second eigenvalue sequence is truncated to obtain a truncated pressure pulse eigenvalue subsequence, and the eigenvector corresponding to the truncated pressure pulse eigenvalue subsequence is extracted to obtain a pressure pulse eigenvector subsequence; S44: normalizing the PPG feature vector subsequence to obtain a normalized PPG feature vector subsequence, and normalizing the pressure pulse feature vector subsequence to obtain a normalized pressure pulse feature vector subsequence; S45: According to the normalized PPG feature vector subsequence, the first feature parameter set is mapped to the high-dimensional space by a kernel function to obtain a kernel matrix of the first feature parameter set; according to the normalized pressure pulse feature vector subsequence, the second feature parameter set is mapped to the high-dimensional space by a kernel function to obtain a kernel matrix of the second feature parameter set; S46: performing singular value decomposition on the kernel matrix of the first feature parameter set to obtain a left singular matrix, a singular value matrix, and a right singular matrix of the first feature parameter set, and performing singular value decomposition on the kernel matrix of the second feature parameter set to obtain a left singular matrix, a singular value matrix, and a right singular matrix of the second feature parameter set; S47: According to the singular value matrix of the first feature parameter set, a dimensionality reduction process is performed on the left singular matrix of the first feature parameter set to obtain a left singular matrix of the first feature parameter set after dimensionality reduction; according to the singular value matrix of the second feature parameter set, a dimensionality reduction process is performed on the left singular matrix of the second feature parameter set to obtain a left singular matrix of the second feature parameter set after dimensionality reduction; S48: performing a linear transformation on the first feature parameter set by using the left singular matrix of the first feature parameter set after dimensionality reduction to obtain a feature mapping matrix of the first feature parameter set, and performing a linear transformation on the second feature parameter set by using the left singular matrix of the second feature parameter set after dimensionality reduction to obtain a feature mapping matrix of the second feature parameter set; S49: performing vectorization processing on the feature mapping matrix of the first feature parameter set to obtain a first feature mapping vector, and performing vectorization processing on the feature mapping matrix of the second feature parameter set to obtain a second feature mapping vector.
6. The atrial fibrillation measurement method based on PPG waveform signal and pressure pulse signal according to claim 1, characterized in that: The performing feature combination and principal component dimension reduction on the first feature mapping vector and the second feature mapping vector to obtain a fused feature mapping vector includes: S51: concatenate the first feature mapping vector and the second feature mapping vector to obtain a concatenated feature mapping vector, and calculate a covariance matrix of the concatenated feature mapping vector; S52: performing eigendecomposition on the covariance matrix to obtain the third eigenvalue and the third eigenvector of the covariance matrix, and sorting the third eigenvalues from large to small to obtain a sorted third eigenvalue sequence and a corresponding third eigenvector sequence; S53: truncating the sorted third eigenvalue sequence to obtain a truncated concatenated eigenvalue subsequence, and extracting a eigenvector corresponding to the truncated concatenated eigenvalue subsequence to obtain a concatenated eigenvector subsequence; S54: concatenating feature vector subsequences and performing linear transformation on the concatenated feature mapping vector to obtain a transformed feature mapping vector; S55: performing normalization and decentralization processing on the transformed feature mapping vector to obtain a fused feature mapping vector.
7. An atrial fibrillation measurement device based on a PPG waveform signal and a pressure pulse signal, used to perform an atrial fibrillation measurement method based on a PPG waveform signal and a pressure pulse signal as described in any one of claims 1 to 6, characterized in that: The device comprises: An acquisition module is used to synchronously acquire data from the subject using a PPG sensor and a pressure sensor to obtain an initial PPG waveform signal and an initial pressure pulse signal; a removal module, used to perform baseline drift removal and high-frequency noise filtering on the initial PPG waveform signal and the initial pressure pulse signal, respectively, to obtain a target PPG waveform signal and a target pressure pulse signal; an extraction module, configured to perform time domain feature extraction and frequency domain feature extraction on the target PPG waveform signal to obtain a first feature parameter set of the PPG waveform signal, and perform time domain feature extraction on the target pressure pulse signal to obtain a second feature parameter set of the pressure pulse signal; A mapping module, used to perform feature mapping and vector conversion on the first feature parameter set and the second feature parameter set respectively to obtain corresponding first feature mapping vectors and second feature mapping vectors; A combination module, used for performing feature combination and principal component dimension reduction on the first feature mapping vector and the second feature mapping vector to obtain a fused feature mapping vector; A discrimination module, which is used to input the first feature mapping vector, the second feature mapping vector, and the fusion feature mapping vector into a preset double-layer stacked support vector machine model for atrial fibrillation state discrimination to obtain an atrial fibrillation state discrimination result; specifically including: S61: Input the first feature mapping vector, the second feature mapping vector, and the fusion feature mapping vector into a preset double-layer stacked support vector machine model. The first-layer support vector machine model in the double-layer stacked support vector machine model includes: a first support vector machine model, a second support vector machine model, a third support vector machine model, and a fourth support vector machine model. The second-layer support vector machine model includes: a fifth support vector machine model, a sixth support vector machine model, a seventh support vector machine model, and an eighth support vector machine model; S62: Classify the first feature mapping vector through the first support vector machine model to obtain a first classification result, classify the second feature mapping vector through the second support vector machine model to obtain a second classification result, and classify the fusion feature mapping vector through the third support vector machine model to obtain a third classification result; perform weighted fusion on the first classification result, the second classification result, and the third classification result to obtain a first fusion classification result, where the weight of the first classification result is w1, the weight of the second classification result is w2, and the weight of the third classification result is w3. w1, w2, and w3 satisfy the following conditions: w1 + w2 + w3 = 1, 0 < w1 < 1, 0 < w2 < 1, 0 < w3 < 1; S63: Perform secondary classification on the first fusion classification result through the fourth support vector machine model to obtain a first secondary classification result; S64: Calculate the confidence of the first secondary classification result, compare the confidence with a preset confidence threshold. If the confidence is greater than or equal to the preset confidence threshold, then use the first secondary classification result as the final atrial fibrillation state discrimination result. If the confidence is less than the preset confidence threshold, then execute step S65; S65: Perform feature enhancement processing on the first feature mapping vector, the second feature mapping vector, and the fusion feature mapping vector to obtain an enhanced first feature mapping vector, an enhanced second feature mapping vector, and an enhanced fusion feature mapping vector; S66: Classify the enhanced first feature mapping vector through the fifth support vector machine model to obtain a fourth classification result, classify the enhanced second feature mapping vector through the sixth support vector machine model to obtain a fifth classification result, and classify the enhanced fusion feature mapping vector through the seventh support vector machine model to obtain a sixth classification result; S67: Perform weighted fusion on the fourth classification result, the fifth classification result, and the sixth classification result to obtain a second fusion classification result, where the weight of the fourth classification result is w4, the weight of the fifth classification result is w5, and the weight of the sixth classification result is w6. w4, w5, and w6 satisfy the following conditions: w4 + w5 + w6 = 1, 0 < w4 < 1, 0 < w5 < 1, 0 < w6 < 1;S68: According to the second fusion classification result, the second fusion classification result is secondary classified by the eighth support vector machine model to obtain a second secondary classification result; S69: Calculate the confidence of the second secondary classification result, compare the confidence with the preset confidence threshold, if the confidence is greater than or equal to the preset confidence threshold, then use the second secondary classification result as the final atrial fibrillation state discrimination result, if the confidence is less than the preset confidence threshold, then use the first secondary classification result as the final atrial fibrillation state discrimination result and output it. ; 8. A computer device, characterized in that: The computer device comprises: a memory and at least one processor, wherein instructions are stored in the memory; The at least one processor calls the instructions in the memory to enable the computer device to execute the atrial fibrillation measurement method based on the PPG waveform signal and the pressure pulse signal as described in any one of claims 1-6.
9. A computer-readable storage medium having instructions stored thereon, characterized in that: When the instructions are executed by the processor, the atrial fibrillation measurement method based on the PPG waveform signal and the pressure pulse signal as described in any one of claims 1-6 is implemented.
