Multi-modal physiological signal peak detection method based on U-Net
Through the multi-modal physiological signal peak detection method based on U-Net, combined with feature extraction and wavelet decomposition, the problem that the existing algorithm cannot be applied to multi-modal signals is solved, and accurate detection of ECG, neuroelectric signals and PPG signals is achieved. Positioning improves detection efficiency and accuracy.
Patent Information
- Application Number
- CN202410731717.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-06
- Publication Date
- 2024-10-08
- Estimated Expiration
- 2044-06-06
AI Technical Summary
Existing algorithms are usually designed for specific modal physiological signals and cannot be applied to other modal physiological signals, resulting in the need for different types of algorithms to process different signals in multi-modal monitoring systems, which increases power consumption and waste of hardware resources.
A multi-modal physiological signal peak detection method based on U-Net is used to combine feature extraction, signal reconstruction and adaptive thresholding through a set of parameters for peak detection of ECG signals, neuroelectric signals and PPG signals, using one-dimensional U -Net network model and wavelet decomposition extract spectral domain features to achieve unified processing of multi-modal signals.
It achieves accurate positioning of ECG, neuroelectrical signals and PPG signals, processes the diversity of multi-modal signals, minimizes the possibility of inaccurate peak positions, and combines the efficiency of rule algorithms and the sensitivity of artificial intelligence, Reduces the possibility of false detection and missed detection.
Smart Images

Figure CN118747291A_ABST
Abstract
Description
[Technical field]
[0001] The present invention relates to the technical field of physiological signal detection, and in particular to a multimodal physiological signal peak detection method based on U-Net. [Background technology]
[0002] In pathological research, drug development, and toxicology studies, researchers need to evaluate the efficacy and toxicity of drugs. In order to more accurately evaluate the effects of drugs on key tissues (such as the cardiovascular and nervous systems), researchers need to closely monitor a variety of physiological signals. Among them, the electrocardiogram (ECG) can provide information about heart function, neural electrical signals can provide information about the nervous system, and the photoplethysmogram (PPG) signal can provide information about blood flow and blood oxygen saturation. These signals and their applications are crucial in the field of medical research.
[0003] When processing these multimodal physiological signals, an intelligent algorithm is needed to process and analyze these signals simultaneously. Among them, physiological signal segmentation is very critical and is usually the first step in subsequent processing. By segmenting the signal into different time segments, the physiological indicators in each time segment can be analyzed more accurately, which facilitates further evaluation of the effects of drugs on key tissues. Among them, the peak value is one of the most significant features of the signal, and the location of the peak value is usually used as the segmentation criterion. Therefore, it is of great significance to develop an intelligent algorithm that can process multimodal physiological signals (peak detection) simultaneously and process them in real time.
[0004] There are many works that have been completed to meet the needs of physiological signal processing. For example, Chinese patent document CN112635047A proposed a probability estimation module with an attention mechanism, which is trained using an ECG signal data set with manually marked R peak positions to detect R peaks in ECG signals; for another example, Chinese patent document CN115040089A uses a blood oximeter to collect pulse wave signals from human fingertips, and proposes a method and device based on deep learning to detect and classify pulse wave peaks.
[0005] However, these algorithms are usually designed for specific signals, and their structures and parameters are customized for specific applications, making it impossible to apply the developed algorithms to other signals. For multi-mode monitoring systems, using different types of algorithms to process different signals may greatly increase power consumption and waste certain hardware resources.
[0006] U-Net is a popular image segmentation network, originally designed for medical image segmentation. Its main feature is its U-shaped structure, which has a contraction path (encoder) and a symmetrical expansion path (decoder). The encoder module is also called the contraction path and can be understood as a feature extraction network. The decoder is also called the expansion module and can be understood as a feature fusion network, which is used to restore high-level abstract features to high resolution. In simple terms, it is to present pixel-level semantic information in the original image.
[0007] The present invention aims to solve the technical problem that the existing algorithm is customized for physiological signals of a specific modality and cannot be applied to physiological signals of other modalities, and makes technical improvements to the peak detection method of multimodal physiological signals. [Summary of the invention]
[0008] The purpose of the present invention is to provide a method that combines feature extraction, signal reconstruction and adaptive thresholding with only one set of parameters to perform peak detection on ECG signals, neural electrical signals and PPG signals, and accurately locate the R peak of ECG, the peak of neural spikes and the contraction peak of PPG.
[0009] To achieve the above object, the technical solution adopted by the present invention is a multimodal physiological signal peak detection method based on U-Net, comprising the following steps:
[0010] S1. Use multimodal physiological signals with manually annotated peaks to construct a data set, divide it into a training set and a test set, and build and train a one-dimensional U-Net network model;
[0011] S2, inputting the multimodal physiological signal data segment to be detected into the trained one-dimensional U-Net network model to obtain the multimodal physiological signal with enhanced detailed information;
[0012] S3, performing wavelet decomposition and reconstruction on the multimodal physiological signal data segment to be detected, extracting spectrum domain features, and further enhancing the multimodal physiological signal;
[0013] S4, adding the multimodal physiological signal enhanced by the one-dimensional U-Net network model in step S2 and the multimodal physiological signal enhanced by wavelet decomposition and reconstruction in step S3 to signal X, performing adaptive threshold detection on signal X, determining the peak value, and obtaining the final multimodal physiological signal peak value result.
[0014] Preferably, the multimodal physiological signal is an ECG signal, a neural electrical signal or a PPG signal.
[0015] Preferably, the one-dimensional U-Net network model uses one-dimensional convolution as input for time series data, including three parts: an encoder, a bottleneck, and a decoder. The encoder and the decoder each have 2 layers, the bottleneck part has 1 layer, and each layer is composed of several convolutional layers and pooling layers or upsampling layers. The convolution operation of each convolutional layer is followed by a layer normalization operation, and the ReLu function is used as the activation function.
[0016] Preferably, the one-dimensional U-Net network model:
[0017] In the encoder part, the length of the input data is L. The first layer consists of three 1×3 convolution operations. The second layer includes one 1×2 maximum pooling operation and two 1×3 convolution operations. After the pooling operation, the data length changes from L to L / 2.
[0018] The bottleneck is the third layer, which connects the encoder to the decoder. It includes a 1×2 maximum pooling operation and two 1×3 convolution operations, and the data length changes from L / 2 to L / 4.
[0019] The decoder part restores the data length to the original length L through upsampling. The second layer includes 1 1×2 upsampling operation and 2 1×3 convolution operations. The first layer includes 1 1×2 upsampling operation, 2 1×3 convolution operations and 1 1×1 convolution operation. After the upsampling operation, the data length is doubled, and finally a data of length L is output.
[0020] Preferably, step S3: using discrete wavelet transform to decompose the multimodal physiological signal into several scales, including low-frequency coefficients cAi and high-frequency coefficients cDi, the low-frequency coefficients cAi are used to reflect the slowly changing signal caused by low-frequency interference, and the high-frequency coefficients cDi are used to reflect the detailed information of the multimodal physiological signal; in the process of reconstructing the multimodal physiological signal, two of the high-frequency coefficients are selected and the low-frequency coefficients are set to 0 to eliminate the influence of baseline drift and high-frequency noise; finally, two high-frequency coefficients and one low-frequency coefficient are selected as scales for each modal physiological signal for reconstruction.
[0021] Preferably, step S4 includes the following sub-steps:
[0022] S41. Square X to eliminate the possibility of missed detection due to opposite polarity, and obtain X 2 ;
[0023] S42, X 2 Divide into N segments evenly, namely H1, H2, ..., H N ; For the i-th segment, find all the peaks that are greater than the threshold th1, where th1 is defined as 1.2 times the average value of the i-th segment, that is, th1 = 1.2*mean(H i ); traverse N segments of data;
[0024] S43, comparing all the peaks found in step S43 in pairs, if the interval is less than 40 / f, where f is the sampling frequency of signal X, eliminating the peaks with smaller amplitudes, and then obtaining candidate peaks;
[0025] S44, taking the candidate peak value obtained in step S43 as the demarcation point, 2 Divided into M segments, namely L1, L2, ..., L M ; For the jth segment, find all the peaks that are greater than the threshold th2, where th2 is defined as 0.6 times the average value of the jth segment, that is, th2 = 0.6*mean(L j ); traverse M segments of data;
[0026] S45, compare all the peaks found in step S42 and step S44 in pairs, if the interval is less than 40 / f, eliminate the peak with smaller amplitude, and finally obtain the predicted peak.
[0027] The U-Net-based multimodal physiological signal peak detection method of the present invention has the following beneficial effects: 1. Peak detection is performed on ECG signals, neural electrical signals and PPG signals, the diversity of multimodal physiological signals is processed, the time and morphological characteristics of the signals are considered, and the time characteristics of the three types of signals, that is, the characteristics related to the spectrum, are extracted using a wavelet filter, so as to extract the spectrum domain features in the signal reconstruction process; 2. The morphological features are learned through a one-dimensional U-Net, so that the detailed information in the signal can be enhanced and the possibility of inaccurate reconstructed peak positions can be minimized; 3. The efficiency advantages of rule-based algorithms and the sensitivity advantages of artificial intelligence methods can be combined, which can not only ensure the high efficiency of the algorithm, but also minimize the possibility of false detection and missed detection of peaks.
Brief Description of the Drawings
[0028] Figure 1 This is a schematic diagram of a multimodal physiological signal peak detection method based on U-Net.
[0029] Figure 2 Schematic diagram of the U-Net network used in the present invention.
[0030] Figure 3 It is a principle flow chart of the adaptive threshold method of the present invention. [Specific implementation method]
[0031] The features and exemplary embodiments of various aspects of the present invention will be described in detail below. In the detailed description below, many specific details are proposed to provide a comprehensive understanding of the present invention. But it is obvious to those skilled in the art that the present invention can be implemented without the need for some of these specific details. The following description of the embodiments is only to provide a better understanding of the present invention by illustrating examples of the present invention. The present invention is by no means limited to any specific configuration and algorithm proposed below, but covers any modification, replacement and improvement of elements, parts and algorithms without departing from the concept of the present invention. In the accompanying drawings and the following description, known structures and technologies are not shown to avoid unnecessary ambiguity to the present invention.
[0032] Example
[0033] This embodiment implements a multimodal physiological signal peak detection method based on U-Net.
[0034] Figure 1 This is a schematic diagram of a multimodal physiological signal peak detection method based on U-Net. Figure 1 As shown, a multimodal physiological signal peak detection method based on U-Net includes the following steps:
[0035] S1. Use ECG signals, neural electrical signals and PPG signals with manually annotated peaks to construct a data set, and divide the data into a training set and a test set;
[0036] S2, build and train a 3-layer one-dimensional U-Net network model, input the physiological signal data segment to be detected into the trained network model to obtain the corresponding output signal (obtain a signal with enhanced detailed information);
[0037] A three-layer one-dimensional U-Net network model was built and trained, and time series data was used as input, so one-dimensional convolution was used. Figure 2 Schematic diagram of the U-Net network used in the present invention. Figure 2 As shown in the figure, a 3-layer one-dimensional U-Net network model is built and trained, which includes three parts: encoder, bottleneck, and decoder. The encoder and decoder parts have 2 layers each, and the bottleneck part has 1 layer. Each layer consists of several convolutional layers and pooling layers or upsampling layers. After passing through the bottleneck part, the decoder part connects the upsampling result in the previous layer with the corresponding result of the encoder part to restore the features. Finally, a convolution operation with a kernel size of 1 is performed to obtain the output signal. The length of the data is halved after each maximum pooling operation and doubled after each upsampling operation. A total of 600 epochs were trained, the initial learning rate was set to 0.001, and AdamW was used as the optimizer. The cross entropy loss function was used as the evaluation criterion. Finally, the trained model is saved with network parameters.
[0038] In the encoder part, the length of the input data is L, the first layer is 3 1×3 convolution operations, and the second layer includes 1 1×2 maximum pooling operation and 2 1×3 convolution operations. After the pooling operation, the data length changes from L to L / 2.
[0039] The bottleneck part is the third layer, which connects the encoder to the decoder, including one 1×2 maximum pooling operation and two 1×3 convolution operations. At this time, the data length becomes L / 4.
[0040] The decoder part restores the data to its original length by upsampling. The second layer includes 1 1×2 upsampling operation and 2 1×3 convolution operations, and the first layer includes 1 1×2 upsampling operation, 2 1×3 convolution operations, and 1 1×1 convolution operation. After the upsampling operation, the data length is doubled, and finally a data of length L is output.
[0041] In this network, each 1×3 convolution operation is followed by a layer normalization operation, and the ReLu function is used as the activation function.
[0042] Finally, the physiological signal data segment to be detected is input into the trained network model, and the corresponding output signal is obtained.
[0043] S3, performing wavelet decomposition and reconstruction on the physiological signal data segment to be detected to further enhance the signal;
[0044] Wavelet feature extraction: DWT (discrete wavelet transform) is used to decompose ECG signals, neural electrical signals and PPG signals into several scales, including low-frequency coefficients and high-frequency coefficients. The low-frequency coefficient (cAi) reflects the slowly changing signal caused by low-frequency interference, such as baseline drift, while the high-frequency coefficient (cDi) reflects more detailed information. In the reconstruction process, only two high-frequency coefficients are selected, and the low-frequency coefficient is set to 0 to eliminate the influence of baseline drift and high-frequency noise. Finally, three scales (two high-frequency coefficients and one low-frequency coefficient) are selected for each signal for reconstruction.
[0045] Taking the symlet wavelet as the wavelet basis, the ECG signal, neural electrical signal and PPG signal are decomposed into 9, 9 and 6 scales respectively. i ) is set to 0 to eliminate low-frequency noise, such as baseline drift. And high-frequency coefficients of different scales are selected according to the characteristics of different signals, and finally the data is reconstructed into X ECG =(cD4,cD5,cA9),X 神经电信号 =(cD3,cD4,cA9) and X PPG =(cD2,cD3,cA6).
[0046] S4, add the corresponding signals obtained in S2 (signal enhanced by the U-Net network) and S3 (result obtained by wavelet decomposition and reconstruction), perform adaptive threshold detection on them, determine the peak value, and thus obtain the final result.
[0047] Add the corresponding signals obtained in S2 and S3 to obtain signal X, whose sampling frequency is f Hz. Perform adaptive threshold detection on X to determine the peak. Specifically, first square the reconstructed signal and divide it into N segments of equal length. Then determine the peak with an amplitude greater than the threshold th1 on these N segments, where th1 is defined as 1.2 times the average value of the segment. All selected peaks are considered to be preliminarily qualified peaks. On this basis, eliminate the points that are too close to each other to obtain candidate peaks. Finally, the square of the reconstructed signal is divided again according to the position of the candidate peak, and the missed peaks are identified on the re-divided segments, but a smaller amplitude threshold th2 is used, where th2 is defined as 0.6 times the average value of the segment.
[0048] Figure 3 This is a principle flow chart of the adaptive threshold method of the present invention. Figure 3 As shown, step S4 includes the following sub-steps:
[0049] S4-1: Square X to eliminate the possibility of missed detection due to opposite polarity, and obtain X 2 ;
[0050] S4-2: X 2 Divide into N segments evenly, namely H1, H2, ..., H N ;
[0051] S4-3: For the i-th segment, find all the peaks that are greater than the threshold th1, where th1 is defined as 1.2 times the average value of the segment, that is, th1 = 1.2*mean(H i ). Traverse N segments of data;
[0052] S4-4: compare all the peaks found in S4-3 in pairs. If the interval is less than 40 / f, eliminate the peak with smaller amplitude, and then obtain the candidate peak;
[0053] S4-5: Take the candidate peak value obtained in S4-4 as the demarcation point, and set X 2 Divided into M segments, namely L1, L2, ..., L M Since the segmentation method here is no longer equal, each segment is not necessarily of equal length;
[0054] S4-6: For the jth segment, find all the peaks that are greater than the threshold th2, where th2 is defined as 0.6 times the average value of the segment, that is, th2 = 0.6*mean(L j ). Traverse M segments of data;
[0055] S4-7: All the peaks found in S4-5 and S4-6 are compared in pairs. If the interval is less than 40 / f, the peaks with smaller amplitudes are eliminated, and finally the predicted peaks are obtained.
[0056] To demonstrate the effectiveness and superiority of this embodiment, the following evaluation is performed using ECG signal data in the MIT-BIH database, neural electrical signal data in the Quiroga simulation database, and PPG signal data in the MIMIC database. The results are shown in Table 1.
[0057] Table 1 Multimodal physiological signal peak detection data evaluation table
[0058] Physiological signal modality Accuracy Recall F1 score ECG 0.9903 0.9934 0.9918 Neural electrical signals 0.9881 0.9814 0.9847 PPG 0.9938 0.9963 0.9950
[0059] Those skilled in the art will appreciate that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, wherein the storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.
[0060] The above is only a preferred embodiment of the present invention. It should be pointed out that ordinary technicians in this technical field can make several improvements and supplements without departing from the principle of the present invention. These improvements and supplements should also be regarded as the scope of protection of the present invention.
Claims
1. A multimodal physiological signal peak detection method based on U-Net, Features The following steps are involved: S1. Use multimodal physiological signals with manually annotated peaks to construct a data set, divide it into a training set and a test set, and build and train a one-dimensional U-Net network model; S2, inputting the multimodal physiological signal data segment to be detected into the trained one-dimensional U-Net network model to obtain the multimodal physiological signal with enhanced detailed information; S3, performing wavelet decomposition and reconstruction on the multimodal physiological signal data segment to be detected, extracting spectrum domain features, and further enhancing the multimodal physiological signal; S4, adding the multimodal physiological signal enhanced by the one-dimensional U-Net network model in step S2 and the multimodal physiological signal enhanced by wavelet decomposition and reconstruction in step S3 to signal X, performing adaptive threshold detection on signal X, determining the peak value, and obtaining the final multimodal physiological signal peak value result.
2. According to claim 1, a multimodal physiological signal peak detection method based on U-Net, Features: The multimodal physiological signal is an ECG signal, a neural electrical signal or a PPG signal.
3. According to claim 2, a multimodal physiological signal peak detection method based on U-Net, Features: The one-dimensional U-Net network model uses one-dimensional convolution as input for time series data, including three parts: encoder, bottleneck, and decoder. The encoder and decoder parts both have 2 layers, the bottleneck part has 1 layer, and each layer consists of several convolutional layers and pooling layers or upsampling layers. The convolution operation of each convolutional layer is followed by a layer normalization operation, and the ReLu function is used as the activation function.
4. According to claim 3, a multimodal physiological signal peak detection method based on U-Net, Features The one-dimensional U-Net network model: In the encoder part, the length of the input data is L. The first layer consists of three 1×3 convolution operations. The second layer includes one 1×2 maximum pooling operation and two 1×3 convolution operations. After the pooling operation, the data length changes from L to L / 2. The bottleneck is the third layer, which connects the encoder to the decoder. It includes a 1×2 maximum pooling operation and two 1×3 convolution operations, and the data length changes from L / 2 to L / 4. The decoder part restores the data length to the original length L through upsampling. The second layer includes 1 1×2 upsampling operation and 2 1×3 convolution operations. The first layer includes 1 1×2 upsampling operation, 2 1×3 convolution operations and 1 1×1 convolution operation. After the upsampling operation, the data length is doubled, and finally a data of length L is output.
5. According to claim 2, a multimodal physiological signal peak detection method based on U-Net, Features Step S3: Use discrete wavelet transform to decompose the multimodal physiological signal into several scales, including low-frequency coefficients cAi and high-frequency coefficients cDi. The low-frequency coefficient cAi is used to reflect the slowly changing signal caused by low-frequency interference, and the high-frequency coefficient cDi is used to reflect the detailed information of the multimodal physiological signal. In the process of reconstructing the multimodal physiological signal, two high-frequency coefficients are selected and the low-frequency coefficient is set to 0 to eliminate the influence of baseline drift and high-frequency noise. Finally, two high-frequency coefficients and one low-frequency coefficient are selected as scales for each modal physiological signal for reconstruction.
6. According to claim 5, a multimodal physiological signal peak detection method based on U-Net, Features Step S4 includes the following sub-steps: S41. Square X to eliminate the possibility of missed detection due to opposite polarity, and obtain X 2 ; S42, X 2 Divide into N segments equally, namely H 1 ,H 2 ,...,H N ; For the i-th segment, find all the peaks that are greater than the threshold th1, where th1 is defined as 1.2 times the average value of the i-th segment, that is, th1 = 1.2*mean(H i ); traverse N segments of data; S43, comparing all the peaks found in step S43 in pairs, if the interval is less than 40 / f, where f is the sampling frequency of signal X, eliminating the peaks with smaller amplitudes, and then obtaining candidate peaks; S44, taking the candidate peak value obtained in step S43 as the demarcation point, 2 Divided into M segments, L 1 ,L 2 ,...,L M ; For the jth segment, find all the peaks that are greater than the threshold th2, where th2 is defined as 0.6 times the average value of the jth segment, that is, th2 = 0.6*mean(L j ); traverse M segments of data; S45, compare all the peaks found in step S42 and step S44 in pairs, if the interval is less than 40 / f, eliminate the peak with smaller amplitude, and finally obtain the predicted peak.
Citation Information
Patent Citations
Sequence-to-sequence sleep disorder detection method based on full convolutional network
CN111493828A
ECG signal R peak detection method and system based on deep learning segmentation network
CN114010204A
Multi-modal physiological signal identification method and system
CN115146680A
QRS complex wave detection method based on U-Net network
CN116712083A
Systems, devices, and methods for vital sign monitoring
US20230196567A1
