WO2021184801A1 - Synchronization signal-based blood pressure prediction method and apparatus - Google Patents

Synchronization signal-based blood pressure prediction method and apparatus Download PDF

Info

Publication number
WO2021184801A1
WO2021184801A1 PCT/CN2020/129642 CN2020129642W WO2021184801A1 WO 2021184801 A1 WO2021184801 A1 WO 2021184801A1 CN 2020129642 W CN2020129642 W CN 2020129642W WO 2021184801 A1 WO2021184801 A1 WO 2021184801A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
dimensional
blood pressure
sequence
ppg
Prior art date
Application number
PCT/CN2020/129642
Other languages
French (fr)
Chinese (zh)
Inventor
张碧莹
曹君
Original Assignee
乐普(北京)医疗器械股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 乐普(北京)医疗器械股份有限公司 filed Critical 乐普(北京)医疗器械股份有限公司
Publication of WO2021184801A1 publication Critical patent/WO2021184801A1/en

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/02Detecting, measuring or recording pulse, heart rate, blood pressure or blood flow; Combined pulse/heart-rate/blood pressure determination; Evaluating a cardiovascular condition not otherwise provided for, e.g. using combinations of techniques provided for in this group with electrocardiography or electroauscultation; Heart catheters for measuring blood pressure
    • A61B5/021Measuring pressure in heart or blood vessels
    • A61B5/02108Measuring pressure in heart or blood vessels from analysis of pulse wave characteristics
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/24Detecting, measuring or recording bioelectric or biomagnetic signals of the body or parts thereof
    • A61B5/316Modalities, i.e. specific diagnostic methods
    • A61B5/318Heart-related electrical modalities, e.g. electrocardiography [ECG]
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/24Detecting, measuring or recording bioelectric or biomagnetic signals of the body or parts thereof
    • A61B5/316Modalities, i.e. specific diagnostic methods
    • A61B5/318Heart-related electrical modalities, e.g. electrocardiography [ECG]
    • A61B5/346Analysis of electrocardiograms
    • A61B5/349Detecting specific parameters of the electrocardiograph cycle
    • A61B5/352Detecting R peaks, e.g. for synchronising diagnostic apparatus; Estimating R-R interval
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/72Signal processing specially adapted for physiological signals or for diagnostic purposes
    • A61B5/7235Details of waveform analysis
    • A61B5/7246Details of waveform analysis using correlation, e.g. template matching or determination of similarity
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/72Signal processing specially adapted for physiological signals or for diagnostic purposes
    • A61B5/7235Details of waveform analysis
    • A61B5/7264Classification of physiological signals or data, e.g. using neural networks, statistical classifiers, expert systems or fuzzy systems
    • A61B5/7267Classification of physiological signals or data, e.g. using neural networks, statistical classifiers, expert systems or fuzzy systems involving training the classification device
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/72Signal processing specially adapted for physiological signals or for diagnostic purposes
    • A61B5/7271Specific aspects of physiological measurement analysis
    • A61B5/7285Specific aspects of physiological measurement analysis for synchronising or triggering a physiological measurement or image acquisition with a physiological event or waveform, e.g. an ECG signal

Definitions

  • the present invention relates to the technical field of electrophysiological signal processing, in particular to a method and device for blood pressure prediction based on a synchronization signal.
  • the heart is the center of human blood circulation.
  • the heart produces blood pressure through regular pulsation, and then supplies blood to the whole body to complete the body's metabolism.
  • Blood pressure is one of the very important physiological signals of the human body.
  • Human blood pressure contains two important values: systolic blood pressure and diastolic blood pressure. Medically, these two quantities are used to judge whether human blood pressure is normal or not. Long-term continuous observation of these two parameters of blood pressure can help people have a clearer understanding of their own heart health.
  • most of the current traditional blood pressure measurement methods use external force upward pressure detection methods such as pressure gauges, which are not only cumbersome to operate, but also easily cause discomfort to the subject, so they cannot be used multiple times to achieve the purpose of continuous monitoring. .
  • the purpose of the present invention is to provide a method and device for blood pressure prediction based on synchronization signals in view of the shortcomings of the prior art, by using non-invasive portable signal acquisition equipment to perform non-invasive electrocardiogram (ECG) signals and light volume on the tester Synchronous acquisition of Photoplethysmography (PPG) signals, and data fusion processing of the acquired ECG signals and PPG signals, and then through the blood pressure convolutional neural network (Convolutional Neural Network, CNN) model and blood pressure artificial neural network (
  • the blood pressure prediction model composed of Artificial Neural Network (ANN) model performs feature calculation and blood pressure data regression calculation on the fusion data to calculate the blood pressure data of the tester, and finally outputs the specific mean blood pressure prediction data pair (systolic blood pressure prediction) through the selection of the prediction mode identifier Data, diastolic blood pressure prediction data) is still a one-dimensional data sequence of ambulatory blood pressure prediction; through the embodiment of the present invention, the cumbersomeness and discomfort of conventional blood pressure collection methods are avoided, and
  • the first aspect of the embodiments of the present invention provides a method for blood pressure prediction based on a synchronization signal, and the method includes:
  • the blood pressure convolutional neural network CNN model perform blood pressure CNN input data fusion processing on the PPG one-dimensional data sequence and the ECG one-dimensional data sequence to generate a four-dimensional tensor of input data;
  • the prediction mode identifier includes two identifiers of mean prediction and dynamic prediction;
  • the average blood pressure calculation operation is performed on the two-dimensional matrix of blood pressure regression data to generate an average blood pressure prediction data pair;
  • the average blood pressure prediction data pair includes diastolic blood pressure prediction data and systolic blood pressure prediction data.
  • the prediction mode identifier is the dynamic prediction, perform an ambulatory blood pressure data extraction operation on the blood pressure regression data two-dimensional matrix to generate an ambulatory blood pressure prediction one-dimensional data sequence.
  • the PPG signal data is generated by using a non-invasive PPG signal acquisition device to perform a preset light source signal acquisition operation on the tester's local skin surface within a signal acquisition time threshold;
  • the ECG signal data is synchronized with the collection of the PPG signal data, and is generated by using a non-invasive ECG signal collection device to perform an ECG physiological signal collection operation on the tester within the signal collection time threshold;
  • the PPG one-dimensional data sequence is specifically a PPG one-dimensional data sequence [A]; the PPG one-dimensional data sequence [A] includes the A pieces of PPG data; and the A is the data sampling frequency threshold multiplied by the The product of the signal acquisition time threshold;
  • the ECG one-dimensional data sequence is specifically an ECG one-dimensional data sequence [A]; the ECG one-dimensional data sequence [A] includes the A pieces of ECG data.
  • the input data length threshold N of the blood pressure convolutional neural network CNN model perform blood pressure CNN input data fusion processing on the PPG one-dimensional data sequence and the ECG one-dimensional data sequence to generate a four-dimensional tensor of input data , Specifically including:
  • the PPG one-dimensional data sequence [A] is subjected to sequential data fragment division processing to generate a PPG fragment data two-dimensional matrix [M, N], and the ECG one Dimensional data sequence [A] performs sequential data segmentation processing to generate a two-dimensional matrix of ECG segment data [M,N];
  • the B 1 is the fourth dimension parameter of the input data four-dimensional tensor [B 1 , H 1 , W 1 , C 1 ], and the B 1 is the total number of fragments M;
  • the H 1 is the The input data four-dimensional tensor [B 1 , H 1 , W 1 , C 1 ] is the third-dimensional parameter, and the value of H 1 is 2;
  • the W 1 is the input data four-dimensional tensor [B 1 , H 1 , W 1 , C 1 ] second dimension parameter, and the W 1 is the input data length threshold N;
  • the C 1 is the input data four-dimensional tensor [B 1 , H 1 , W 1 , C 1 ] is the first dimension parameter, and the value of C
  • the PPG one-dimensional data sequence [A] is divided into sequential data fragments to generate a PPG fragment data two-dimensional matrix [M, N], Perform sequential data segment division processing on the ECG one-dimensional data sequence [A] to generate a two-dimensional ECG segment data matrix [M, N], which specifically includes:
  • the PPG one-dimensional temporary data sequence [L] is subjected to continuous data segment division processing; the PPG one-dimensional temporary data sequence [L] includes the total number of segments M PPG one One-dimensional segment data sequence [N]; the PPG one-dimensional segment data sequence [N] includes the input data length threshold N pieces of the PPG data;
  • ECG one-dimensional data sequence [A] taking the first data as the starting data extraction position and the temporary data length L as the data extraction length, extract a piece of continuous data to generate an ECG one-dimensional temporary data sequence [L ]; and according to the input data length threshold N, the ECG one-dimensional temporary data sequence [L] is subjected to continuous data segment division processing; the ECG one-dimensional temporary data sequence [L] includes the total number of segments M ECG one One-dimensional fragment data sequence [N]; the ECG one-dimensional fragment data sequence [N] includes the input data length threshold value N of the ECG data;
  • the input data fusion processing is performed on the two-dimensional matrix of PPG segment data [M, N] and the two-dimensional matrix of ECG segment data [M, N] to generate a two-dimensional matrix of fused segment data [M, 2*N], including:
  • Step 51 Obtain a preset fusion sorting flag; construct the two-dimensional matrix of fusion fragment data [M, 2*N], and initialize the two-dimensional matrix of fusion fragment data [M, 2*N] to be empty; construct the first A sequence [2*N]; the fusion sequence identifier is one of PPG+ECG sequence and ECG+PPG sequence; the first sequence [2*N] includes 2*N sequence data;
  • Step 52 Initialize the value of the first index to 1, and initialize the value of the first total to the total number of fragments M;
  • Step 53 Taking the product of the difference of the first index minus 1 and the input data length threshold N plus 1 as the starting data extraction position, and the input data length threshold N as the extraction data length. Extract a piece of continuous data from the two-dimensional matrix of PPG fragment data [M, N] to generate a second sequence [N], and extract a piece of continuous data from the two-dimensional matrix of ECG fragment data [M, N] to generate a third sequence [ N];
  • Step 54 Use the second sequence [N] and the third sequence [N] to perform value assignment processing on the first sequence [2*N] according to the fusion order identifier; when the fusion order identifier is When the PPG+ECG is sorted, use the second sequence [N] to perform the assignment processing on the first N sequence data included in the first sequence [2*N], and use the third sequence [N ] Perform value assignment processing on the last N sequence data included in the first sequence [2*N]; when the fusion sequence identifier is the ECG+PPG sequence, use the third sequence [N] pair The first N pieces of the sequence data included in the first sequence [2*N] are assigned values, and the second sequence [N] is used to perform the assignment processing on the last N pieces of data included in the first sequence [2*N]. Assign value to the sequence data;
  • Step 55 Use the first sequence [2*N] to perform a sequence data addition operation on the two-dimensional matrix [M, 2*N] of fusion fragment data;
  • Step 56 Add 1 to the first index
  • Step 57 Determine whether the first index is greater than the first total, if the first index is greater than the first total, go to step 58, if the first index is less than or equal to the first total, go to Step 53;
  • Step 58 Return the two-dimensional matrix [M, 2*N] of the fused segment data to the upper application.
  • the four-dimensional tensor conversion process of blood pressure CNN input data is performed on the two-dimensional matrix [M, 2*N] of the fused segment data to generate the four-dimensional tensor of the input data [B 1 , H 1 , W 1 ,C 1 ], specifically including:
  • the blood pressure CNN model is used to perform multi-layer convolution pooling calculation on the four-dimensional tensor of the input data to generate a four-dimensional tensor of characteristic data, which specifically includes:
  • Step 71 Initialize the value of the second index to 1; initialize the second total to the threshold of the number of convolutional layers; initialize the temporary four-dimensional tensor of the second index to the four-dimensional tensor of the input data [B 1 , H 1 , W 1 ,C 1 ];
  • Step 72 Use the second index layer convolution layer of the blood pressure CNN model to perform convolution calculation processing on the second index temporary four-dimensional tensor to generate a second index convolution output data four-dimensional tensor; use the blood pressure
  • the second index pooling layer of the CNN model performs pooling calculation processing on the four-dimensional tensor of the second index convolution output data to generate the four-dimensional tensor of the second index pooling output data;
  • the blood pressure CNN model includes multiple layers. Said convolutional layer and multiple layers of said pooling layer;
  • Step 73 Set the temporary four-dimensional tensor of the second index as the four-dimensional tensor of the second index pooling output data
  • Step 74 Add 1 to the second index
  • Step 75 Determine whether the second index is greater than the second total, if the second index is greater than the second total, go to step 76, if the second index is less than or equal to the second total, go to Step 72;
  • Step 76 Set the feature data four-dimensional tensor as the second index temporary four-dimensional tensor; the feature data four-dimensional tensor is specifically the feature data four-dimensional tensor [B 2 , H 2 , W 2 , C 2 ];
  • the B2 is the fourth dimension parameter of the characteristic data four-dimensional tensor [B 2 , H 2 , W 2 , C 2 ] and the B 2 is the B 1 ;
  • the H 2 is the characteristic data four-dimensional
  • the W 2 is the second dimension of the feature data four-dimensional tensor [B 2 , H 2 , W 2 , C 2 ] Parameters;
  • the C 2 is the first dimension parameter of the characteristic data four-dimensional tensor [B 2 , H 2 , W 2 , C 2 ].
  • the two-dimensional matrix construction operation of the input data of the blood pressure artificial neural network ANN model is performed according to the four-dimensional tensor of the characteristic data to generate a two-dimensional matrix of input data; and the two-dimensional matrix of input data is calculated by the blood pressure ANN model Perform feature data regression calculation to generate a two-dimensional matrix of blood pressure regression data, which specifically includes:
  • the feature data four-dimensional tensor [B 2 , H 2 , W 2 , C 2 ] perform tensor data dimensionality reduction processing on the feature data four-dimensional tensor [B 2 , H 2 , W 2 , C 2] Construct the input data two-dimensional matrix;
  • the input data two-dimensional matrix is specifically the input data two-dimensional matrix [W 3 , C 3 ];
  • the W 3 is the input data two-dimensional matrix [W 3 , C 3 ]
  • the second dimension parameter of the W 3 is the B 2 ;
  • the C 3 is the first dimension parameter of the input data two-dimensional matrix [W 3 , C 3 ] and the C 3 is the H 2 Multiply by the product of W 2 and then by the product of C 2;
  • the blood pressure regression data two-dimensional matrix is specifically blood pressure regression data two-dimensional Matrix [X, 2];
  • the X is the second dimension parameter of the blood pressure regression data two-dimensional matrix [X, 2] and the X is the W 3 ;
  • the blood pressure regression data two-dimensional matrix [X, 2] includes the X regression data one-dimensional data sequence [2];
  • the regression data one-dimensional data sequence [2] includes the fragment systolic blood pressure data and the fragment diastolic blood pressure data.
  • performing an average blood pressure calculation operation on the two-dimensional matrix of blood pressure regression data to generate an average blood pressure prediction data pair specifically includes:
  • the average blood pressure prediction data pair is set; and the diastolic blood pressure prediction data of the average blood pressure prediction data pair is initialized to be empty, and the average blood pressure prediction data pair is initialized The systolic blood pressure data of is empty;
  • the sum of the diastolic blood pressure data of all the pieces of the regression data one-dimensional data sequence [2] included in the blood pressure regression data two-dimensional matrix [X, 2] is calculated to generate the sum of diastolic blood pressure, which is divided by the sum of diastolic blood pressure Use the quotient of X to generate the first mean value; generate the sum of the systolic blood pressure data of all the regression data one-dimensional data sequence [2] included in the blood pressure regression data two-dimensional matrix [X, 2]
  • the sum of systolic blood pressures, the second mean value is generated according to the quotient of the sum of systolic blood pressures divided by the X;
  • performing an ambulatory blood pressure data extraction operation on the two-dimensional matrix of blood pressure regression data to generate a one-dimensional ambulatory blood pressure prediction data sequence specifically includes:
  • the prediction mode identifier is the dynamic prediction
  • the one-dimensional data sequence [2] of the regression data included in the two-dimensional matrix [X, 2] of the blood pressure regression data is sequentially extracted to generate the current data sequence [2]; the systolic blood pressure data of the blood pressure data group is set to all The segment systolic blood pressure data of the current data sequence [2], the diastolic blood pressure data of the blood pressure data group is set to the segment diastolic blood pressure data of the current data sequence [2]; and the blood pressure data The group performs a data group addition operation to the ambulatory blood pressure prediction one-dimensional data sequence.
  • the first aspect of the embodiments of the present invention provides a method for blood pressure prediction based on synchronization signals, which performs feature data fusion on the synchronized ECG signal and PPG signal, and then uses a blood pressure prediction model composed of a blood pressure CNN model and a blood pressure ANN model to fuse the data Perform feature calculation and blood pressure data regression calculation to calculate the tester's blood pressure data, and finally output the mean blood pressure prediction data pair (systolic blood pressure prediction data, diastolic blood pressure prediction data) or ambulatory blood pressure prediction one-dimensional data through the selection of the prediction mode identifier sequence.
  • a second aspect of the embodiments of the present invention provides a device, the device including a memory and a processor, the memory is used to store a program, and the processor is used to execute the first aspect and the methods in each implementation manner of the first aspect.
  • a third aspect of the embodiments of the present invention provides a computer program product containing instructions, which when the computer program product runs on a computer, causes the computer to execute the first aspect and the methods in the implementation manners of the first aspect.
  • a fourth aspect of the embodiments of the present invention provides a computer-readable storage medium on which a computer program is stored.
  • the computer program implements the first aspect and the methods in the first aspect when executed by a processor. .
  • FIG. 1 is a schematic diagram of a method for blood pressure prediction based on a synchronization signal according to Embodiment 1 of the present invention
  • FIG. 2 is a schematic diagram of a method for blood pressure prediction based on a synchronization signal according to Embodiment 2 of the present invention
  • FIG. 3 is a schematic diagram of the device structure of an apparatus for blood pressure prediction based on a synchronization signal according to Embodiment 3 of the present invention.
  • the PPG signal is a set of signals that uses the light sensor to identify and record the change in light intensity of a specific light source.
  • the blood flow per unit area in the blood vessel changes periodically, and the corresponding blood volume also changes accordingly, resulting in a periodic change trend in the PPG signal reflecting the amount of light absorbed by the blood.
  • a cardiac cycle consists of two time periods: systolic and diastolic; during systole, the heart does work on the blood throughout the body, causing continuous and periodic changes in intravascular pressure and blood flow volume. The absorption of light is the most; when the heart is in diastole, the pressure on the blood vessels is relatively small.
  • the PPG signal waveform reflecting the light energy absorbed by the blood in the blood vessel is composed of two signals: the systolic period signal and the diastolic period signal; the common PPG signal has two peaks, the first one belongs to the systolic period, and the diastolic period signal. The latter belongs to the diastolic period.
  • the blood pressure can be predicted directly by using the PPG signal.
  • the ECG signal is a group of electrophysiological signals of the heart's cardiac cycle collected from body surface records using an electrocardiographic signal acquisition device.
  • the ECG signal used in the embodiment of the present invention is a group of single-lead ECG signals. Because the ECG signal reflects the activity of the heart, and the PPG reflects the blood turbulence, this blood turbulence is closely related to each contraction of the heart: there is a pulse propagation time between the PPG signal cycle and the ECG signal cycle (Pulse Translation Time, PTT) time difference. After years of research, it has been found that under certain conditions, there is a linear relationship between PTT and arterial blood pressure.
  • the blood pressure prediction models mentioned in the embodiment of the present invention include a blood pressure CNN model and a blood pressure ANN model.
  • the former is responsible for feature calculation and the latter is responsible for regression calculation.
  • the latter is responsible for regression calculation.
  • the ratio between the two is 1: 1 (Complete the fusion processing of input data through blood pressure CNN).
  • CNN has long been one of the core algorithms in the field of feature recognition. Used in image recognition, it can be used in fine classification and recognition to extract the discriminative features of the image for learning by other classifiers.
  • the blood pressure feature extraction calculation is performed on the input data: after the input data is convolved and pooled, the feature information related to blood pressure is retained for other networks to learn.
  • the blood pressure CNN model mentioned in the article is a CNN model that has been trained through blood pressure feature extraction. It is specifically composed of a convolutional layer and a pooling layer. The convolutional layer is responsible for performing blood pressure feature extraction calculations on the input data of the CNN model.
  • the pooling layer is to down-sample the extraction results of the convolutional layer; the blood pressure CNN model in this article is divided into multiple CNN network layers, and each CNN network layer includes a convolutional layer and a pooling layer.
  • the input data and output data format of the blood pressure CNN model are both in the form of a 4-dimensional tensor: [B, H, W, C]. After each layer of convolutional layer or pooling layer, the value of some dimensional parameters of the output data will change, that is, the total data length of the tensor will be shortened.
  • the characteristic of the change is: B as the fourth dimension parameter (PPG The total number of fragments of one-dimensional data sequence or ECG one-dimensional data sequence) will not change; H and W are the third and two-dimensional parameters in four dimensions.
  • the setting of the step size is also related to the pooling window size and sliding step size of the pooling layer;
  • C is the first dimension parameter in the four-dimensional, and its change is related to the selected output space dimension in the convolutional layer (volume The number of product cores) is related.
  • ANN refers to a complex network structure formed by interconnecting a large number of processing units (neurons). It is a certain abstraction, simplification and simulation of the human brain tissue structure and operating mechanism. ANN simulates neuron activity with mathematical models. It is an information processing system based on imitating the structure and function of the brain's neural network. A common application of ANN is to perform classification and regression calculations on data.
  • the blood pressure ANN model mentioned in the article is an ANN model that has been trained through blood pressure classification regression; specifically, the blood pressure ANN model consists of a fully connected layer, where each node of the fully connected layer is connected to the previous layer.
  • the input of the blood pressure ANN model is a two-dimensional matrix, so the output of the CNN needs to be converted from a four-dimensional tensor [B, H, W, C] to a two-dimensional matrix; the output of the blood pressure ANN model is also a two-dimensional Matrix [X, 2], in which the second dimension parameter X and B are equal to indicate the total number of segments, and the first dimension parameter of 2 means that the length of the X one-dimensional data sequences included in the matrix are all 2.
  • Each one-dimensional data sequence [2] includes two values, the higher value is the systolic blood pressure predicted by the corresponding PPG+ECG (or ECG+PPG) segment, and the lower value is the corresponding PPG+ECG (or ECG) +PPG) Diastolic blood pressure predicted by the fragment.
  • the output of the blood pressure ANN model is a pair of blood pressure prediction values (systolic blood pressure and diastolic blood pressure) corresponding to each PPG+ECG (or ECG+PPG) segment.
  • different processing methods can be adopted, such as averaging Value, so as to obtain the average blood pressure data within the signal acquisition time threshold; or directly output the blood pressure value sequence to obtain a segment of ambulatory blood pressure signal.
  • FIG. 1 is a schematic diagram of a method for blood pressure prediction based on a synchronization signal according to Embodiment 1 of the present invention. The method mainly includes the following steps:
  • Step 1 Obtain the PPG signal data of the photoplethysmography method and the ECG signal data synchronized with it; and according to the data sampling frequency threshold, perform signal sampling processing on the PPG signal data and the ECG signal data to generate PPG one-dimensional data Sequence and ECG one-dimensional data sequence;
  • the PPG signal data is generated by using a non-invasive PPG signal acquisition device to perform a preset light source signal acquisition operation on the tester’s local skin surface within the signal acquisition time threshold; here, when the PPG signal is acquired, the preset The set light source signal includes at least one of a red light source signal, an infrared light source signal, and a green light source signal;
  • the ECG signal data is synchronized with the acquisition of the PPG signal data, and is generated by using a non-invasive ECG signal acquisition device to perform the ECG physiological signal acquisition operation on the tester within the signal acquisition time threshold; here, when the ECG signal is acquired, It is a single-lead ECG signal; and the ECG signal must be collected synchronously with the PPG signal, so that the PTT time difference between the two is true and reliable;
  • the ECG one-dimensional data sequence [A] is a one-dimensional data sequence including 1250 ECG collected data.
  • Step 2 According to the input data length threshold N of the blood pressure convolutional neural network CNN model, perform blood pressure CNN input data fusion processing on the PPG one-dimensional data sequence and the ECG one-dimensional data sequence to generate a four-dimensional tensor of input data;
  • Step 21 Calculate the total number of fragments M based on the input data length threshold N and A; when A is divisible by the input data length threshold N, set the total number of fragments M as the quotient of A divided by the input data length threshold N; when A cannot When divisible by the input data length threshold N, the total number of fragments M is set as the result of rounding the quotient of A divided by the input data length threshold N;
  • the blood pressure CNN model will be used to perform feature calculations on the data in the PPG (or ECG) one-dimensional data sequence, in view of the input requirements of the blood pressure CNN (input data length threshold N), according to the input data length of the blood pressure CNN
  • the threshold N divides the PPG (or ECG) one-dimensional data sequence into segments.
  • the method for setting the total number of fragments here: If the total data length of the PPG (or ECG) one-dimensional data sequence can be evenly divided by the input data length threshold N, then the total number of fragments is the quotient of the division of the two; if the PPG (or ECG) is one The total data length of the one-dimensional data sequence cannot be divisible by the input data length threshold N, then the total number of segments is the rounded result of the quotient of the division of the two. The last segment of the PPG (or ECG) one-dimensional data sequence is regarded as the segment with insufficient length. Discard the fragments with incomplete data.
  • Step 22 According to the total number of fragments M and the input data length threshold N, the PPG one-dimensional data sequence [A] is divided into sequential data fragments to generate the PPG fragment data two-dimensional matrix [M, N], and the ECG one-dimensional data sequence [A] ] Perform sequential data segmentation processing to generate a two-dimensional matrix of ECG segment data [M, N];
  • step 221 generating a temporary data length L according to the product of the total number of fragments M and the input data length threshold N;
  • Step 222 From the PPG one-dimensional data sequence [A], take the first data as the starting data extraction position and the temporary data length L as the data extraction length, extract a piece of continuous data to generate the PPG one-dimensional temporary data sequence [L] ; And according to the input data length threshold N, the PPG one-dimensional temporary data sequence [L] is divided into continuous data segments;
  • the PPG one-dimensional temporary data sequence [L] includes the total number of segments M PPG one-dimensional segment data sequences [N]; the PPG one-dimensional segment data sequence [N] includes the input data length threshold N PPG data;
  • the method is to extract the PPG one-dimensional temporary data sequence [L] (effective data sequence) from the original PPG one-dimensional data sequence [A] according to the temporary data length L (also the effective data length) obtained by the upper calculation;
  • the method is to extract backwards from the earliest data;
  • Step 223 From the ECG one-dimensional data sequence [A], take the first data as the starting data extraction position and the temporary data length L as the data extraction length, extract a piece of continuous data to generate the ECG one-dimensional temporary data sequence [L] ; And according to the input data length threshold N, the ECG one-dimensional temporary data sequence [L] is divided into continuous data segments;
  • the ECG one-dimensional temporary data sequence [L] includes the total number of segments M ECG one-dimensional segment data sequences [N]; the ECG one-dimensional segment data sequence [N] includes the input data length threshold N ECG data;
  • the one-dimensional ECG temporary data sequence [L] (effective data sequence) is extracted from the original ECG one-dimensional data sequence [A] according to the temporary data length L (also the effective data length) obtained by the upper calculation;
  • the method is to extract backwards from the earliest data;
  • the extraction unit takes the extraction unit (input data length threshold N) as the segment length to complete the segmentation of the ECG one-dimensional temporary data sequence [L];
  • Step 224 Construct a two-dimensional PPG fragment data matrix [M, N], and initialize all matrix elements of the PPG fragment data two-dimensional matrix [M, N] to be empty; extract sequentially from the PPG one-dimensional temporary data sequence [L] The PPG one-dimensional segment data sequence [N] included in the PPG one-dimensional temporary data sequence [L] assigns values to the matrix elements of the PPG segment data two-dimensional matrix [M, N];
  • the PPG fragment data two-dimensional matrix [M, N] although it is a two-dimensional matrix, the actual number of matrix elements M*N it contains is equal to the total number of data included in the PPG one-dimensional temporary data sequence [L].
  • Step 225 Construct a two-dimensional ECG fragment data matrix [M, N], and initialize all matrix elements of the ECG fragment data two-dimensional matrix [M, N] to be empty; extract sequentially from the ECG one-dimensional temporary data sequence [L] The ECG one-dimensional segment data sequence [N] assigns values to the matrix elements of the ECG segment data two-dimensional matrix [M, N];
  • the two-dimensional matrix of ECG fragment data [M,N] is a two-dimensional matrix, the actual number of matrix elements M*N contained in it is the total number of data included in the ECG one-dimensional temporary data sequence [L] Equal, here is the tensor upscaling process of the shape of the ECG one-dimensional temporary data sequence [L] from the one-dimensional sequence;
  • Step 23 Perform input data fusion processing on the two-dimensional matrix of PPG fragment data [M, N] and the two-dimensional matrix of ECG fragment data [M, N] to generate a two-dimensional matrix of fused fragment data [M, 2*N];
  • step 231 obtaining a preset fusion sorting flag; constructing a two-dimensional matrix of fusion fragment data [M, 2*N], and initializing the two-dimensional matrix of fusion fragment data [M, 2*N] to be empty; constructing the first Sequence [2*N];
  • the fusion sorting identifier is one of PPG+ECG sorting and ECG+PPG sorting, and the first sequence [2*N] includes 2*N sequence data;
  • an identifier that specifies the sorting order during data fusion is provided: the fusion sorting identifier; the identifier includes two possible values: PPG+ECG sorting or ECG+PPG sorting; when the fusion sorting identifier is PPG+ECG sorting, fusion In each one-dimensional vector [2*N] (first sequence [2*N]) included in the two-dimensional matrix of fragment data, the first N are PPG data and the last N are ECG data; when the fusion sorting flag is ECG +When PPG sorting, in each one-dimensional vector [2*N] (first sequence [2*N]) included in the two-dimensional matrix of fusion fragment data, the first N are ECG data, and the last N are PPG data;
  • Step 232 Initialize the value of the first index to 1, and initialize the value of the first total to the total number of fragments M;
  • Step 233 taking the product of the first index minus 1 and the input data length threshold N plus 1 as the starting data extraction position, and the input data length threshold N as the extraction data length, from the two-dimensional matrix of PPG fragment data [ Extract a piece of continuous data from M, N] to generate a second sequence [N], and extract a piece of continuous data from a two-dimensional matrix of ECG fragment data [M, N] to generate a third sequence [N];
  • the fusion principle of the embodiment of the present invention is to keep all the data without modification while keeping the total number of fragments unchanged; then, we know that the total number of the two sets of data is 2*M*N, and the next step is to generate one
  • the two-dimensional matrix of fusion fragment data [M,2*N] with the shape of M*(2*N) includes all PPG and ECG data; for the two-dimensional matrix of fusion fragment data [M,2*N] we can regard it as M data sequences with a length of 2N, each data sequence includes N PPG data and N ECG data; here, the embodiment of the present invention provides a fusion order identifier to identify the front and back of N PPG data and N ECG data Order:
  • the fusion sorting flag is PPG+ECG sort
  • PPG segment data two-dimensional matrix [M, N] is PPG segment data two-dimensional matrix [5,250]
  • ECG segment data two-dimensional Matrix [M, N] is the two-dimensional matrix of ECG fragment data [5,250]
  • the final fused two-dimensional matrix of fused fragment data [M, 2*N] is the two-dimensional matrix of fused fragment data [5,500];
  • Step 234 Use the second sequence [N] and the third sequence [N] to assign values to the first sequence [2*N] according to the fusion order identifier; when the fusion order identifier is PPG+ECG order, use the second sequence [N] Perform assignment processing on the first N sequence data included in the first sequence [2*N], and use the third sequence [N] to perform assignment processing on the last N sequence data included in the first sequence [2*N] ;
  • the fusion sorting flag is ECG+PPG sorting
  • use the second sequence [N] to The last N sequence data included in sequence [2*N] are assigned values;
  • Step 235 using the first sequence [2*N] to perform a sequence data addition operation on the two-dimensional matrix [M, 2*N] of the fusion fragment data;
  • the 2N-length data sequence (the first sequence [2*N]) at the end of each assignment is added to the two-dimensional matrix [M, 2*N] of the fusion fragment data, and finally after M times are added Complete the whole construction process of the two-dimensional matrix [M,2*N] of the fusion fragment data;
  • Step 236 Add 1 to the first index
  • the first index is the segment index extracted from the two-dimensional matrix [M, N] of PPG (ECG) segment data;
  • Step 237 Determine whether the first index is greater than the first total, if the first index is greater than the first total, go to step 24, and if the first index is less than or equal to the first total, go to step 233.
  • Step 24 Perform a four-dimensional tensor conversion process of blood pressure CNN input data on the two-dimensional matrix [M,2*N] of the fused segment data to generate a four-dimensional tensor of input data [B 1 , H 1 , W 1 , C 1 ];
  • the matrix elements included in the two-dimensional matrix of fragment data [M,2*N] add data items to the four-dimensional tensor [B 1 , H 1 , W 1 , C 1] of the input data;
  • the input data four-dimensional tensor [B 1 ,H 1 ,W 1 ,C 1 ] is specifically the input data four-dimensional tensor [M,2,N,1];
  • B 1 is the input data four-dimensional tensor [B 1 ,H 1 ,W 1 ,C 1 ], the fourth dimension parameter, and B 1 is the total number of fragments M;
  • H 1 is the third dimension parameter of the input data four-dimensional tensor [B 1 ,H 1 ,W 1 ,C 1 ], and The value of H 1 is 2;
  • W 1 is the second dimension parameter of the input data four-dimensional tensor [B 1 , H 1 , W 1 , C 1 ], and W 1 is the input data length threshold N;
  • C 1 is the input data four-dimensional The first dimension parameter of the tensor [B 1 ,H 1 ,W 1 ,C 1 ], and the value of C 1 is 1.
  • the input and output parameters of the blood pressure CNN model used in the embodiment of the present invention are all in the form of a four-dimensional tensor, so here is a four-dimensional tensor increase for the two-dimensional matrix [M,2*N] of the fusion fragment data.
  • Step 3 According to the threshold of the number of convolutional layers, use the blood pressure CNN model to perform multi-layer convolution pooling calculation on the four-dimensional tensor of the input data to generate the four-dimensional tensor of feature data;
  • Step 31 Initialize the value of the second index to 1; initialize the second total to the threshold of the number of convolutional layers; initialize the temporary four-dimensional tensor of the second index to the four-dimensional tensor of the input data [B 1 ,H 1 ,W 1 , C 1 ];
  • Step 32 Use the second index layer convolution layer of the blood pressure CNN model to perform convolution calculation processing on the second index temporary four-dimensional tensor to generate the second index convolution output data four-dimensional tensor; use the second index of the blood pressure CNN model Pooling layer, which performs pooling calculation processing on the four-dimensional tensor of the second index convolution output data to generate a four-dimensional tensor of second index pooling output data;
  • the blood pressure CNN model includes a multi-layer convolutional layer and a multi-layer pooling layer;
  • the blood pressure CNN model consists of a multi-layer convolutional layer and a pooling layer.
  • the general structure is one layer of convolution and one layer of pooling.
  • the final number of layers of the blood pressure CNN model is determined by the number of convolutional layer thresholds.
  • a network with 4 convolutional layers and 4 pooling layers is called a 4-layer convolutional network, where convolution The layer performs convolution operations to convert the input into outputs of different dimensions. These outputs can be regarded as another way of expressing the input, and the pooling layer is used to control the number of outputs, simplify the operation and prompt the network to extract more effective information. ;
  • Step 33 Set the temporary four-dimensional tensor of the second index as the four-dimensional tensor of the second index pooling output data
  • Step 34 Add 1 to the second index
  • Step 35 Determine whether the second index is greater than the second total, if the second index is greater than the second total, go to step 36, if the second index is less than or equal to the second total, go to step 32;
  • Step 36 Set the feature data four-dimensional tensor as the second index temporary four-dimensional tensor
  • the four-dimensional tensor of feature data is specifically the four-dimensional tensor of feature data [B 2 , H 2 , W 2 , C 2 ];
  • B2 is the fourth tensor of feature data [B 2 , H 2 , W 2 , C 2 ]
  • B 2 is B 1 ;
  • H 2 is the third-dimensional parameter of the feature data four-dimensional tensor [B 2 , H 2 , W 2 , C 2 ];
  • W 2 is the feature data four-dimensional tensor [B 2 ,H 2 , W 2 , C 2 ] the second dimension parameter;
  • C 2 is the first dimension parameter of the feature data four-dimensional tensor [B 2 , H 2 , W 2 , C 2 ].
  • the convolution principle of each layer of the blood pressure CNN model is the same as the two-dimensional convolution principle.
  • the difference from image convolution is that the height H of the PPG signal and the ECG signal is 1, so the convolution kernel in the convolution layer is the first All dimensions are 1, such as [1x3], [1x5], [1x7] and so on.
  • the shape of the input data will change, but it still maintains the 4-dimensional tensor form.
  • the fourth dimension parameter (the total number of fragments) will not change, and the third and two-dimensional parameters (H and W) change are related to the size of the convolution kernel of each convolutional layer and the setting of the sliding step length, and it is also related to the pool
  • the pooling window size of the transformation layer is related to the sliding step size.
  • the first dimension parameter (the number of channels) is related to the selected output space dimension (the number of convolution kernels) in the convolution layer, and the number of layers in the network is set ,
  • the setting of various parameters of each layer must be determined based on experience and experimental results, not a fixed value, here it is assumed that after several layers of the network, the output of the network becomes 4 of the shape [5,2,20,64] Dimension tensor
  • Step 4 According to the four-dimensional tensor of the characteristic data, perform the operation of constructing a two-dimensional matrix of blood pressure artificial neural network ANN input data to generate a two-dimensional matrix of input data; and use the blood pressure ANN model to perform characteristic data regression calculation on the two-dimensional matrix of input data to generate blood pressure regression data.
  • Dimensional matrix
  • Step 41 according to the feature data four-dimensional tensor [B 2 , H 2 , W 2 , C 2 ], perform tensor data reduction on the feature data four-dimensional tensor [B 2 , H 2 , W 2 , C 2] Dimensional processing to construct a two-dimensional matrix of input data;
  • the input data two-dimensional matrix is specifically the input data two-dimensional matrix [W 3 , C 3 ];
  • W 3 is the second dimension parameter of the input data two-dimensional matrix [W 3 , C 3 ] and W 3 is B 2 ;
  • C 3 is the first dimension parameter of the input data two-dimensional matrix [W 3 , C 3 ] and C 3 is the product of H 2 multiplied by W 2 and then multiplied by C 2;
  • the characteristic data four-dimensional tensor [B 2 , H 2 , W 2 , C 2 ] is input into the blood pressure ANN for regression
  • the shape of the tensor needs to be reduced before calculation.
  • the feature data four-dimensional tensor [B 2 ,H 2 ,W 2 ,C 2 ] is the feature data four-dimensional tensor [5,2,20,64]. After its shape is reduced in dimensionality, it becomes a two-dimensional matrix of input data [5,2*20*64], which is a two-dimensional matrix of input data [5,2560];
  • Step 42 using the blood pressure ANN model to perform feature data regression calculation on the two-dimensional matrix of input data [W 3 , C 3 ] to generate a two-dimensional matrix of blood pressure regression data;
  • the blood pressure regression data two-dimensional matrix is specifically the blood pressure regression data two-dimensional matrix [X, 2]; X is the second dimension parameter of the blood pressure regression data two-dimensional matrix [X, 2] and X is W 3 ; the blood pressure regression data two
  • the dimensional matrix [X, 2] includes X regression data one-dimensional data sequence [2]; the regression data one-dimensional data sequence [2] includes fragment systolic blood pressure data and fragment diastolic blood pressure data.
  • the blood pressure ANN model is composed of fully connected layers. Each node of the fully connected layer is connected to all the nodes in the previous layer. It is used to integrate the features extracted from the front. Each fully connected layer can be set The number of nodes in this layer and the activation function (there are more ReLUs, you can also change to other), for example, if the number of nodes in the current connection layer is set to 512, the output of the current connection layer becomes [5,512], after several layers The connection layer converts the final output into a matrix of shape [X, 2].
  • the second dimension parameter X represents the total number of fragments
  • the first dimension parameter 2 means that two regression calculation values are output for each fragment: respectively represent The systolic and diastolic blood pressure
  • the blood pressure ANN model is a mature model after training.
  • the blood pressure CNN model and the blood pressure ANN model are connected together and trained with the same batch of training data;
  • Step 5 Obtain the prediction mode identifier
  • the prediction mode identifier includes two types of identifiers: mean prediction and dynamic prediction.
  • the prediction mode identifier is a system variable.
  • This variable can be used to clarify the further prediction output content: when the prediction mode identifier is the mean value When predicting, it means that the tester's average blood pressure data is required to be output within the acquisition time threshold; when the prediction mode identifier is dynamic prediction, it means that the tester's blood pressure change data sequence within the acquisition time threshold is required to be output.
  • Step 6 When the prediction mode identifier is average prediction, perform an average blood pressure calculation operation on the two-dimensional matrix of blood pressure regression data to generate an average blood pressure prediction data pair;
  • Step 61 when the prediction mode identifier is average prediction, set the average blood pressure prediction data pair; initialize the diastolic blood pressure prediction data of the average blood pressure prediction data pair to be empty, and initialize the systolic blood pressure data of the average blood pressure prediction data pair to be empty ;
  • Step 62 Calculate the sum of the diastolic blood pressure data of all regression data one-dimensional data sequence [2] included in the two-dimensional matrix of blood pressure regression data [X,2] to generate the sum of diastolic blood pressure, which is generated according to the quotient of the sum of diastolic blood pressure divided by X
  • the first mean the systolic blood pressure data of all regression data one-dimensional data sequence [2] included in the two-dimensional matrix of blood pressure regression data [X,2] is calculated to generate the total systolic blood pressure, and the quotient of the total systolic blood pressure divided by X Generate the second mean;
  • Step 63 Set the diastolic blood pressure prediction data of the average blood pressure prediction data pair as the first average value; set the systolic blood pressure prediction data of the average blood pressure prediction data pair as the second average value.
  • FIG. 2 is a schematic diagram of a method for blood pressure prediction based on a synchronization signal according to Embodiment 2 of the present invention. The method mainly includes the following steps:
  • Step 101 Obtain the PPG signal data of the photoplethysmography method and the ECG signal data synchronized with it; and according to the data sampling frequency threshold, perform signal sampling processing on the PPG signal data and the ECG signal data to generate PPG one-dimensional data Sequence and ECG one-dimensional data sequence;
  • the PPG signal data is generated by using a non-invasive PPG signal acquisition device to perform a preset light source signal acquisition operation on the tester’s local skin surface within the signal acquisition time threshold; here, when the PPG signal is acquired, the preset The set light source signal includes at least one of a red light source signal, an infrared light source signal, and a green light source signal;
  • the ECG signal data is synchronized with the acquisition of the PPG signal data, and is generated by using a non-invasive ECG signal acquisition device to perform the ECG physiological signal acquisition operation on the tester within the signal acquisition time threshold; here, when the ECG signal is acquired, It is a single-lead ECG signal; and the ECG signal must be collected synchronously with the PPG signal, so that the PTT time difference between the two is true and reliable;
  • the ECG one-dimensional data sequence [A] is a one-dimensional data sequence including 1250 ECG collected data.
  • Step 102 Perform blood pressure CNN input data fusion processing on the PPG one-dimensional data sequence and the ECG one-dimensional data sequence according to the input data length threshold N of the blood pressure convolutional neural network CNN model to generate a four-dimensional tensor of input data;
  • Step 1021 Calculate the total number of fragments M based on the input data length threshold N and A; when A is divisible by the input data length threshold N, set the total number of fragments M as the quotient of A divided by the input data length threshold N; when A cannot When divisible by the input data length threshold N, the total number of fragments M is set as the result of rounding the quotient of A divided by the input data length threshold N;
  • the blood pressure CNN model will be used to perform feature calculations on the data in the PPG (or ECG) one-dimensional data sequence, in view of the input requirements of the blood pressure CNN (input data length threshold N), according to the input data length of the blood pressure CNN
  • the threshold N divides the PPG (or ECG) one-dimensional data sequence into segments.
  • the method for setting the total number of fragments here: If the total data length of the PPG (or ECG) one-dimensional data sequence can be evenly divided by the input data length threshold N, then the total number of fragments is the quotient of the division of the two; if the PPG (or ECG) is one The total data length of the one-dimensional data sequence cannot be divisible by the input data length threshold N, then the total number of segments is the rounded result of the quotient of the division of the two. The last segment of the PPG (or ECG) one-dimensional data sequence is regarded as the segment with insufficient length. Discard the fragments with incomplete data.
  • Step 1022 According to the total number of fragments M and the input data length threshold N, the PPG one-dimensional data sequence [A] is divided into sequential data fragments to generate a PPG fragment data two-dimensional matrix [M, N], and the ECG one-dimensional data sequence [A] ] Perform sequential data segmentation processing to generate a two-dimensional matrix of ECG segment data [M, N];
  • Step 10221 generating a temporary data length L according to the product of the total number of fragments M and the input data length threshold N;
  • Step 10222 From the PPG one-dimensional data sequence [A], take the first data as the starting data extraction position and the temporary data length L as the data extraction length, extract a piece of continuous data to generate the PPG one-dimensional temporary data sequence [L] ; And according to the input data length threshold N, the PPG one-dimensional temporary data sequence [L] is divided into continuous data segments;
  • the PPG one-dimensional temporary data sequence [L] includes the total number of segments M PPG one-dimensional segment data sequences [N]; the PPG one-dimensional segment data sequence [N] includes the input data length threshold N PPG data;
  • the method is to extract the PPG one-dimensional temporary data sequence [L] (effective data sequence) from the original PPG one-dimensional data sequence [A] according to the temporary data length L (also the effective data length) obtained by the upper calculation;
  • the method is to extract backwards from the earliest data;
  • Step 10223 From the ECG one-dimensional data sequence [A], take the first data as the data start extraction position and the temporary data length L as the data extraction length, extract a piece of continuous data to generate the ECG one-dimensional temporary data sequence [L] ; And according to the input data length threshold N, the ECG one-dimensional temporary data sequence [L] is divided into continuous data segments;
  • the ECG one-dimensional temporary data sequence [L] includes the total number of segments M ECG one-dimensional segment data sequences [N]; the ECG one-dimensional segment data sequence [N] includes the input data length threshold N ECG data;
  • the one-dimensional ECG temporary data sequence [L] (effective data sequence) is extracted from the original ECG one-dimensional data sequence [A] according to the temporary data length L (also the effective data length) obtained by the upper calculation;
  • the method is to extract backwards from the earliest data;
  • the extraction unit takes the extraction unit (input data length threshold N) as the segment length to complete the segmentation of the ECG one-dimensional temporary data sequence [L];
  • Step 10224 construct a two-dimensional PPG fragment data matrix [M, N], and initialize all matrix elements of the PPG fragment data two-dimensional matrix [M, N] to be empty; extract sequentially from the PPG one-dimensional temporary data sequence [L]
  • the PPG one-dimensional segment data sequence [N] included in the PPG one-dimensional temporary data sequence [L] assigns values to the matrix elements of the PPG segment data two-dimensional matrix [M, N];
  • the PPG fragment data two-dimensional matrix [M, N] although it is a two-dimensional matrix, the actual number of matrix elements M*N it contains is equal to the total number of data included in the PPG one-dimensional temporary data sequence [L].
  • Step 10225 construct a two-dimensional matrix of ECG fragment data [M, N], and initialize all matrix elements of the two-dimensional matrix of ECG fragment data [M, N] to be empty; extract sequentially from the ECG one-dimensional temporary data sequence [L] The ECG one-dimensional segment data sequence [N] assigns values to the matrix elements of the ECG segment data two-dimensional matrix [M, N];
  • the two-dimensional matrix of ECG fragment data [M,N] is a two-dimensional matrix, the actual number of matrix elements M*N contained in it is the total number of data included in the ECG one-dimensional temporary data sequence [L] Equal, here is the tensor upscaling process of the shape of the ECG one-dimensional temporary data sequence [L] from the one-dimensional sequence;
  • Step 1023 Perform input data fusion processing on the two-dimensional matrix of PPG fragment data [M, N] and the two-dimensional matrix of ECG fragment data [M, N] to generate a two-dimensional matrix of fused fragment data [M, 2*N];
  • Step 10231 Obtain a preset fusion sorting flag; construct a two-dimensional matrix of fusion fragment data [M, 2*N], and initialize the two-dimensional matrix of fusion fragment data [M, 2*N] to be empty; construct the first Sequence [2*N];
  • the fusion sorting identifier is one of PPG+ECG sorting and ECG+PPG sorting, and the first sequence [2*N] includes 2*N sequence data;
  • an identifier that specifies the sorting order during data fusion is provided: the fusion sorting identifier; the identifier includes two possible values: PPG+ECG sorting or ECG+PPG sorting; when the fusion sorting identifier is PPG+ECG sorting, fusion In each one-dimensional vector [2*N] (first sequence [2*N]) included in the two-dimensional matrix of fragment data, the first N are PPG data and the last N are ECG data; when the fusion sorting flag is ECG +When PPG sorting, in each one-dimensional vector [2*N] (first sequence [2*N]) included in the two-dimensional matrix of fusion fragment data, the first N are ECG data, and the last N are PPG data;
  • Step 10232 Initialize the value of the first index to 1, and initialize the value of the first total to the total number of fragments M;
  • Step 10233 using (first index-1)*input data length threshold N+1 as the starting data extraction position, and input data length threshold N as the extraction data length, from the two-dimensional matrix of PPG fragment data [M, N] Extract a piece of continuous data to generate the second sequence [N], and extract a piece of continuous data from the two-dimensional matrix of ECG fragment data [M, N] to generate the third sequence [N];
  • the fusion principle of the embodiment of the present invention is to keep all the data without modification while keeping the total number of fragments unchanged; then, we know that the total number of the two sets of data is 2*M*N, and the next step is to generate one
  • the two-dimensional matrix of fusion fragment data [M,2*N] with the shape of M*(2*N) includes all PPG and ECG data; for the two-dimensional matrix of fusion fragment data [M,2*N] we can regard it as M data sequences with a length of 2N, each data sequence includes N PPG data and N ECG data; here, the embodiment of the present invention provides a fusion order identifier to identify the front and back of N PPG data and N ECG data Order:
  • the fusion sorting flag is PPG+ECG sort
  • PPG segment data two-dimensional matrix [M, N] is PPG segment data two-dimensional matrix [5,250]
  • ECG segment data two-dimensional Matrix [M, N] is the two-dimensional matrix of ECG fragment data [5,250]
  • the final fused two-dimensional matrix of fused fragment data [M, 2*N] is the two-dimensional matrix of fused fragment data [5,500];
  • Step 10234 Use the second sequence [N] and the third sequence [N] to assign values to the first sequence [2*N] according to the fusion order identifier; when the fusion order identifier is PPG+ECG order, use the second sequence [N] Perform assignment processing on the first N sequence data included in the first sequence [2*N], and use the third sequence [N] to perform assignment processing on the last N sequence data included in the first sequence [2*N] ; When the fusion sorting flag is ECG+PPG sorting, use the third sequence [N] to assign values to the first N sequence data included in the first sequence [2*N], and use the second sequence [N] to The last N sequence data included in sequence [2*N] are assigned values;
  • Step 10235 using the first sequence [2*N] to perform a sequence data addition operation on the two-dimensional matrix [M, 2*N] of the fusion fragment data;
  • the 2N-length data sequence (the first sequence [2*N]) at the end of each assignment is added to the two-dimensional matrix [M, 2*N] of the fusion fragment data, and finally after M times are added Complete the whole construction process of the two-dimensional matrix [M,2*N] of the fusion fragment data;
  • Step 10236 add 1 to the first index
  • the first index is the slice index extracted from the two-dimensional matrix [M, N] of PPG (ECG) slice data;
  • Step 10237 Determine whether the first index is greater than the first total. If the first index is greater than the first total, go to step 1024; if the first index is less than or equal to the first total, go to step 10233.
  • Step 1024 Perform four-dimensional tensor conversion processing of blood pressure CNN input data on the two-dimensional matrix [M,2*N] of the fused segment data to generate a four-dimensional tensor of input data [B 1 , H 1 , W 1 , C 1 ];
  • the matrix elements included in the two-dimensional matrix of fragment data [M,2*N] add data items to the four-dimensional tensor [B 1 , H 1 , W 1 , C 1] of the input data;
  • the input data four-dimensional tensor [B 1 ,H 1 ,W 1 ,C 1 ] is specifically the input data four-dimensional tensor [M,2,N,1];
  • B 1 is the input data four-dimensional tensor [B 1 ,H 1 ,W 1 ,C 1 ], the fourth dimension parameter, and B 1 is the total number of fragments M;
  • H 1 is the third dimension parameter of the input data four-dimensional tensor [B 1 ,H 1 ,W 1 ,C 1 ], and The value of H 1 is 2;
  • W 1 is the second dimension parameter of the input data four-dimensional tensor [B 1 , H 1 , W 1 , C 1 ], and W 1 is the input data length threshold N;
  • C 1 is the input data four-dimensional The first dimension parameter of the tensor [B 1 ,H 1 ,W 1 ,C 1 ], and the value of C 1 is 1.
  • the input and output parameters of the blood pressure CNN model used in the embodiment of the present invention are all in the form of a four-dimensional tensor, so here is a four-dimensional tensor increase for the two-dimensional matrix [M,2*N] of the fusion fragment data.
  • Step 103 According to the threshold of the number of convolution layers, use the blood pressure CNN model to perform multi-layer convolution pooling calculation on the four-dimensional tensor of the input data to generate a four-dimensional tensor of feature data;
  • Step 1031 initialize the value of the second index to 1; initialize the second total to the threshold of the number of convolutional layers; initialize the temporary four-dimensional tensor of the second index to the four-dimensional tensor of the input data [B 1 ,H 1 ,W 1 , C 1 ];
  • Step 1032 Use the second index layer convolution layer of the blood pressure CNN model to perform convolution calculation processing on the second index temporary four-dimensional tensor to generate the second index convolution output data four-dimensional tensor; use the second index of the blood pressure CNN model Pooling layer, which performs pooling calculation processing on the four-dimensional tensor of the second index convolution output data to generate a four-dimensional tensor of second index pooling output data;
  • the blood pressure CNN model includes a multi-layer convolutional layer and a multi-layer pooling layer;
  • the blood pressure CNN model consists of a multi-layer convolutional layer and a pooling layer.
  • the general structure is one layer of convolution and one layer of pooling.
  • the final number of layers of the blood pressure CNN model is determined by the number of convolutional layer thresholds.
  • a network with 4 convolutional layers and 4 pooling layers is called a 4-layer convolutional network, where convolution The layer performs convolution operations to convert the input into outputs of different dimensions. These outputs can be regarded as another way of expressing the input, and the pooling layer is used to control the number of outputs, simplify the operation and prompt the network to extract more effective information. ;
  • Step 1033 Set the temporary four-dimensional tensor of the second index as the four-dimensional tensor of the second index pooling output data
  • Step 1034 add 1 to the second index
  • Step 1035 Determine whether the second index is greater than the second total, if the second index is greater than the second total, go to step 1036, if the second index is less than or equal to the second total, go to step 1032;
  • Step 1036 Set the four-dimensional tensor of feature data as a temporary four-dimensional tensor of the second index
  • the four-dimensional tensor of feature data is specifically the four-dimensional tensor of feature data [B 2 , H 2 , W 2 , C 2 ];
  • B2 is the fourth tensor of feature data [B 2 , H 2 , W 2 , C 2 ]
  • B 2 is B 1 ;
  • H 2 is the third-dimensional parameter of the feature data four-dimensional tensor [B 2 , H 2 , W 2 , C 2 ];
  • W 2 is the feature data four-dimensional tensor [B 2 ,H 2 , W 2 , C 2 ] the second dimension parameter;
  • C 2 is the first dimension parameter of the feature data four-dimensional tensor [B 2 , H 2 , W 2 , C 2 ].
  • the convolution principle of each layer of the blood pressure CNN model is the same as the two-dimensional convolution principle.
  • the difference from image convolution is that the height H of the PPG signal and the ECG signal is 1, so the convolution kernel in the convolution layer is the first All dimensions are 1, such as [1x3], [1x5], [1x7] and so on.
  • the shape of the input data will change, but it still maintains the 4-dimensional tensor form.
  • the fourth dimension parameter (the total number of fragments) will not change, and the third and two-dimensional parameters (H and W) change are related to the size of the convolution kernel of each convolutional layer and the setting of the sliding step length, and it is also related to the pool
  • the pooling window size of the transformation layer is related to the sliding step size.
  • the first dimension parameter (the number of channels) is related to the selected output space dimension (the number of convolution kernels) in the convolution layer, and the number of layers in the network is set ,
  • the setting of various parameters of each layer must be determined based on experience and experimental results, not a fixed value, here it is assumed that after several layers of the network, the output of the network becomes 4 of the shape [5,2,20,64] Dimension tensor
  • Step 104 Perform a blood pressure artificial neural network ANN input data two-dimensional matrix construction operation based on the feature data four-dimensional tensor to generate a two-dimensional matrix of input data; and use the blood pressure ANN model to perform feature data regression calculation on the two-dimensional matrix of input data to generate blood pressure regression data.
  • Dimensional matrix
  • Step 1041 according to the feature data four-dimensional tensor [B 2 , H 2 , W 2 , C 2 ], perform tensor data reduction on the feature data four-dimensional tensor [B 2 , H 2 , W 2 , C 2] Dimensional processing to construct a two-dimensional matrix of input data;
  • the input data two-dimensional matrix is specifically the input data two-dimensional matrix [W 3 , C 3 ];
  • W 3 is the second dimension parameter of the input data two-dimensional matrix [W 3 , C 3 ] and W 3 is B 2 ;
  • C 3 is the first dimension parameter of the input data two-dimensional matrix [W 3 , C 3 ] and C 3 is the product of H 2 multiplied by W 2 and then multiplied by C 2;
  • the characteristic data four-dimensional tensor [B 2 , H 2 , W 2 , C 2 ] is input into the blood pressure ANN for regression
  • the shape of the tensor needs to be reduced before calculation.
  • the feature data four-dimensional tensor [B 2 ,H 2 ,W 2 ,C 2 ] is the feature data four-dimensional tensor [5,2,20,64]. After its shape is reduced in dimensionality, it becomes a two-dimensional matrix of input data [5,2*20*64], which is a two-dimensional matrix of input data [5,2560];
  • Step 1042 using the blood pressure ANN model to perform characteristic data regression calculation on the two-dimensional matrix of input data [W 3 , C 3 ] to generate a two-dimensional matrix of blood pressure regression data;
  • the blood pressure regression data two-dimensional matrix is specifically the blood pressure regression data two-dimensional matrix [X, 2]; X is the second dimension parameter of the blood pressure regression data two-dimensional matrix [X, 2] and X is W 3 ; the blood pressure regression data two
  • the dimensional matrix [X, 2] includes X regression data one-dimensional data sequence [2]; the regression data one-dimensional data sequence [2] includes fragment systolic blood pressure data and fragment diastolic blood pressure data.
  • the blood pressure ANN model is composed of fully connected layers. Each node of the fully connected layer is connected to all the nodes in the previous layer. It is used to integrate the features extracted from the front. Each fully connected layer can be set The number of nodes in this layer and the activation function (there are more ReLUs, you can also change to other), for example, if the number of nodes in the current connection layer is set to 512, the output of the current connection layer becomes [5,512], after several layers The connection layer converts the final output into a matrix of shape [X, 2].
  • the second dimension parameter X represents the total number of fragments
  • the first dimension parameter 2 means that two regression calculation values are output for each fragment: respectively represent The systolic and diastolic blood pressure; the blood pressure ANN model is a mature model after training.
  • the blood pressure CNN model and the blood pressure ANN model are connected together and trained with the same batch of training data.
  • Step 105 Obtain a prediction mode identifier
  • the prediction mode identifier includes two types of identifiers: mean prediction and dynamic prediction.
  • the prediction mode identifier is a system variable.
  • This variable can be used to clarify the further prediction output content: when the prediction mode identifier is the mean value When predicting, it means that the tester's average blood pressure data is required to be output within the acquisition time threshold; when the prediction mode identifier is dynamic prediction, it means that the tester's blood pressure change data sequence within the acquisition time threshold is required to be output.
  • Step 106 When the prediction mode identifier is dynamic prediction, perform an ambulatory blood pressure data extraction operation on a two-dimensional matrix of blood pressure regression data to generate a one-dimensional ambulatory blood pressure prediction data sequence;
  • step 1061 when the prediction mode identifier is dynamic prediction, initialize the ambulatory blood pressure prediction one-dimensional data sequence to be empty; set the blood pressure data group; initialize the diastolic blood pressure data of the blood pressure data group to be empty; initialize the systolic blood pressure of the blood pressure data group Data is empty;
  • Step 1062 sequentially extract the regression data one-dimensional data sequence [2] included in the blood pressure regression data two-dimensional matrix [X, 2] to generate the current data sequence [2]; set the systolic blood pressure data of the blood pressure data group as the current data sequence [2] Set the diastolic blood pressure data of the blood pressure data group as the fragment diastolic blood pressure data of the current data sequence [2]; add the blood pressure data group to the ambulatory blood pressure prediction one-dimensional data sequence for data group addition operation.
  • the first data diastolic blood pressure data group is [D 11, 12 D] fragment diastolic pressure data
  • the first data systolic blood pressure data group is [D 11, D 12] of the The segmental systolic blood pressure data
  • the diastolic blood pressure data of the fifth blood pressure data group is the segment systolic blood pressure data in [D 51 ,D 52 ]
  • the systolic blood pressure data of the fifth blood pressure data group is [D 51 ,D 52 ] Fragment systolic blood pressure data.
  • FIG. 3 is a schematic diagram of a device structure of an apparatus for performing blood pressure prediction based on a synchronization signal according to Embodiment 3 of the present invention.
  • the device includes a processor and a memory.
  • the memory can be connected to the processor through a bus.
  • the memory may be a non-volatile memory, such as a hard disk drive and a flash memory, and a software program and a device driver program are stored in the memory.
  • the software program can execute various functions of the above method provided by the embodiments of the present invention; the device driver may be a network and interface driver.
  • the processor is used to execute a software program, and when the software program is executed, the method provided in the embodiment of the present invention can be implemented.
  • the embodiment of the present invention also provides a computer-readable storage medium.
  • a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the method provided in the embodiment of the present invention can be implemented.
  • the embodiment of the present invention also provides a computer program product containing instructions.
  • the processor is caused to execute the above method.
  • the embodiment of the present invention provides a method and device for blood pressure prediction based on synchronization signals, which perform feature data fusion on synchronized ECG signals and PPG signals, and then perform fusion data on the fusion data through a blood pressure prediction model composed of a blood pressure CNN model and a blood pressure ANN model Feature calculation and blood pressure data regression calculation to calculate the blood pressure data of the tester, and finally output the mean blood pressure prediction data pair (systolic blood pressure prediction data, diastolic blood pressure prediction data) or ambulatory blood pressure prediction one-dimensional data sequence through the selection of the prediction mode identifier .
  • the mean blood pressure prediction data pair systolic blood pressure prediction data, diastolic blood pressure prediction data
  • ambulatory blood pressure prediction one-dimensional data sequence through the selection of the prediction mode identifier .
  • the steps of the method or algorithm described in combination with the embodiments disclosed herein can be implemented by hardware, a software module executed by a processor, or a combination of the two.
  • the software module can be placed in random access memory (RAM), internal memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disks, removable disks, CD-ROMs, or all areas in the technical field. Any other known storage media.

Landscapes

  • Health & Medical Sciences (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Animal Behavior & Ethology (AREA)
  • Veterinary Medicine (AREA)
  • Biophysics (AREA)
  • Biomedical Technology (AREA)
  • Heart & Thoracic Surgery (AREA)
  • Medical Informatics (AREA)
  • Molecular Biology (AREA)
  • Surgery (AREA)
  • Cardiology (AREA)
  • General Health & Medical Sciences (AREA)
  • Public Health (AREA)
  • Pathology (AREA)
  • Artificial Intelligence (AREA)
  • Physiology (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Psychiatry (AREA)
  • Signal Processing (AREA)
  • Evolutionary Computation (AREA)
  • Fuzzy Systems (AREA)
  • Mathematical Physics (AREA)
  • Vascular Medicine (AREA)
  • Measuring Pulse, Heart Rate, Blood Pressure Or Blood Flow (AREA)

Abstract

A synchronization signal-based blood pressure prediction method and apparatus. The method comprises: obtaining PPG signal data and ECG signal data synchronized with the PPG signal data; respectively performing signal sampling processing on the PPG signal data and the ECG signal data according to a data sampling frequency threshold to generate PPG and ECG one-dimensional data sequences; performing blood pressure CNN input data fusion processing on the PPG and ECG one-dimensional data sequences to generate an input data four-dimensional tensor; according to a convolutional layer number threshold, performing multilayer convolution pooling calculation by using a blood pressure CNN model to generate a characteristic data four-dimensional tensor; constructing a blood pressure ANN input data two-dimensional matrix; performing characteristic data regression calculation by using the blood pressure ANN model to generate a blood pressure regression data two-dimensional matrix; obtaining a prediction mode identifier; when the prediction mode identifier is mean prediction, generating a mean blood pressure prediction data pair; and when the prediction mode identifier is dynamic prediction, generating a dynamic blood pressure prediction one-dimensional data sequence.

Description

一种基于同步信号进行血压预测的方法和装置Method and device for blood pressure prediction based on synchronization signal
本申请要求于2020年3月17日提交中国专利局、申请号为202010189179.5、发明名称为“一种基于同步信号进行血压预测的方法和装置”的中国专利申请的优先权。This application claims the priority of a Chinese patent application filed with the Chinese Patent Office on March 17, 2020, with the application number 202010189179.5, and the title of the invention "A method and device for blood pressure prediction based on synchronization signals".
技术领域Technical field
本发明涉及电生理信号处理技术领域,特别涉及一种基于同步信号进行血压预测的方法和装置。The present invention relates to the technical field of electrophysiological signal processing, in particular to a method and device for blood pressure prediction based on a synchronization signal.
背景技术Background technique
心脏是人体血液循环的中心,心脏通过有规律的搏动产生血压,进而向全身供血完成人体的新陈代谢,血压是人体非常重要的生理信号之一。人体血压含有两个重要的数值:收缩压和舒张压,医学上通过这两个量来判断人体血压的正常与否。长期持续观测血压这两项参数,可以帮助人们对自身心脏健康状态有较为清晰的认识。但是,当下大多数传统的血压测量方式均采用压力计之类的外力上压检测方式,不仅操作繁琐,且容易引起被测者的不适,因此也就不能多次地使用以达到连续监测的目的。The heart is the center of human blood circulation. The heart produces blood pressure through regular pulsation, and then supplies blood to the whole body to complete the body's metabolism. Blood pressure is one of the very important physiological signals of the human body. Human blood pressure contains two important values: systolic blood pressure and diastolic blood pressure. Medically, these two quantities are used to judge whether human blood pressure is normal or not. Long-term continuous observation of these two parameters of blood pressure can help people have a clearer understanding of their own heart health. However, most of the current traditional blood pressure measurement methods use external force upward pressure detection methods such as pressure gauges, which are not only cumbersome to operate, but also easily cause discomfort to the subject, so they cannot be used multiple times to achieve the purpose of continuous monitoring. .
发明内容Summary of the invention
本发明的目的,就是针对现有技术的缺陷,提供一种基于同步信号进行血压预测的方法和装置,通过使用无创的随身信号采集设备对测试者进行无创的心电图(Electrocardiogram,ECG)信号和光体积变化描记图法(Photoplethysmography,PPG)信号的同步采集,并将获取到的ECG信号与PPG信号进行数据融合处理,再通过血压卷积神经网络(Convolutional Neural  Network,CNN)模型和血压人工神经网络(Artificial Neural Network,ANN)模型组成的血压预测模型对融合数据进行特征计算及血压数据回归计算从而推算出测试者血压数据,最后通过预测模式标识符的选择具体输出均值血压预测数据对(收缩压预测数据、舒张压预测数据)还是动态血压预测一维数据序列;通过本发明实施例,既避免了常规血压采集手段的繁琐和不适感,又产生了一种自动智能的数据分析方法,从而使得应用方可以方便地对被测对象进行多次连续监测。The purpose of the present invention is to provide a method and device for blood pressure prediction based on synchronization signals in view of the shortcomings of the prior art, by using non-invasive portable signal acquisition equipment to perform non-invasive electrocardiogram (ECG) signals and light volume on the tester Synchronous acquisition of Photoplethysmography (PPG) signals, and data fusion processing of the acquired ECG signals and PPG signals, and then through the blood pressure convolutional neural network (Convolutional Neural Network, CNN) model and blood pressure artificial neural network ( The blood pressure prediction model composed of Artificial Neural Network (ANN) model performs feature calculation and blood pressure data regression calculation on the fusion data to calculate the blood pressure data of the tester, and finally outputs the specific mean blood pressure prediction data pair (systolic blood pressure prediction) through the selection of the prediction mode identifier Data, diastolic blood pressure prediction data) is still a one-dimensional data sequence of ambulatory blood pressure prediction; through the embodiment of the present invention, the cumbersomeness and discomfort of conventional blood pressure collection methods are avoided, and an automatic and intelligent data analysis method is produced, thereby enabling the application It is convenient to carry out multiple continuous monitoring of the measured object.
为实现上述目的,本发明实施例第一方面提供了一种基于同步信号进行血压预测的方法,所述方法包括:In order to achieve the foregoing objective, the first aspect of the embodiments of the present invention provides a method for blood pressure prediction based on a synchronization signal, and the method includes:
获取光体积变化描记图法PPG信号数据和与之同步的心电图ECG信号数据;并按数据采样频率阈值,分别对所述PPG信号数据和所述ECG信号数据进行信号采样处理生成PPG一维数据序列和生成ECG一维数据序列;Acquire the PPG signal data of the photoplethysmography method and the ECG signal data synchronized with it; and according to the data sampling frequency threshold, perform signal sampling processing on the PPG signal data and the ECG signal data to generate a PPG one-dimensional data sequence And generate ECG one-dimensional data sequence;
根据血压卷积神经网络CNN模型的输入数据长度阈值N,对所述PPG一维数据序列和所述ECG一维数据序列,进行血压CNN输入数据融合处理生成输入数据四维张量;According to the input data length threshold N of the blood pressure convolutional neural network CNN model, perform blood pressure CNN input data fusion processing on the PPG one-dimensional data sequence and the ECG one-dimensional data sequence to generate a four-dimensional tensor of input data;
按卷积层数阈值,利用所述血压CNN模型对所述输入数据四维张量进行多层卷积池化计算生成特征数据四维张量;According to the threshold of the number of convolutional layers, using the blood pressure CNN model to perform multi-layer convolution pooling calculation on the four-dimensional tensor of the input data to generate a four-dimensional tensor of feature data;
根据所述特征数据四维张量进行血压人工神经网络ANN模型的输入数据二维矩阵构建操作生成输入数据二维矩阵;并利用所述血压ANN模型对所述输入数据二维矩阵进行特征数据回归计算生成血压回归数据二维矩阵;Perform a two-dimensional matrix construction operation of input data of a blood pressure artificial neural network ANN model according to the four-dimensional tensor of the feature data to generate a two-dimensional matrix of input data; and use the blood pressure ANN model to perform feature data regression calculation on the two-dimensional matrix of input data Generate a two-dimensional matrix of blood pressure regression data;
获取预测模式标识符;所述预测模式标识符包括均值预测和动态预测两种标识符;Obtaining a prediction mode identifier; the prediction mode identifier includes two identifiers of mean prediction and dynamic prediction;
当所述预测模式标识符为所述均值预测时,对所述血压回归数据二维矩阵,进行均值血压计算操作生成均值血压预测数据对;所述均值血压预测数据对包括舒张压预测数据和收缩压预测数据;When the prediction mode identifier is the average prediction, the average blood pressure calculation operation is performed on the two-dimensional matrix of blood pressure regression data to generate an average blood pressure prediction data pair; the average blood pressure prediction data pair includes diastolic blood pressure prediction data and systolic blood pressure prediction data. Pressure forecast data;
当所述预测模式标识符为所述动态预测时,对所述血压回归数据二维矩 阵,进行动态血压数据提取操作生成动态血压预测一维数据序列。When the prediction mode identifier is the dynamic prediction, perform an ambulatory blood pressure data extraction operation on the blood pressure regression data two-dimensional matrix to generate an ambulatory blood pressure prediction one-dimensional data sequence.
优选的,Preferably,
所述PPG信号数据是,通过使用无创PPG信号采集设备在信号采集时间阈值内对测试者局部皮肤表面进行预置光源信号采集操作生成的;The PPG signal data is generated by using a non-invasive PPG signal acquisition device to perform a preset light source signal acquisition operation on the tester's local skin surface within a signal acquisition time threshold;
所述ECG信号数据是,与采集所述PPG信号数据同步的,通过使用无创ECG信号采集设备在所述信号采集时间阈值内对所述测试者进行心电生理信号采集操作生成的;The ECG signal data is synchronized with the collection of the PPG signal data, and is generated by using a non-invasive ECG signal collection device to perform an ECG physiological signal collection operation on the tester within the signal collection time threshold;
所述PPG一维数据序列具体为PPG一维数据序列[A];所述PPG一维数据序列[A]包括所述A个PPG数据;所述A为所述数据采样频率阈值乘以所述信号采集时间阈值的乘积;The PPG one-dimensional data sequence is specifically a PPG one-dimensional data sequence [A]; the PPG one-dimensional data sequence [A] includes the A pieces of PPG data; and the A is the data sampling frequency threshold multiplied by the The product of the signal acquisition time threshold;
所述ECG一维数据序列具体为ECG一维数据序列[A];所述ECG一维数据序列[A]包括所述A个ECG数据。The ECG one-dimensional data sequence is specifically an ECG one-dimensional data sequence [A]; the ECG one-dimensional data sequence [A] includes the A pieces of ECG data.
优选的,所述根据血压卷积神经网络CNN模型的输入数据长度阈值N,对所述PPG一维数据序列和所述ECG一维数据序列,进行血压CNN输入数据融合处理生成输入数据四维张量,具体包括:Preferably, according to the input data length threshold N of the blood pressure convolutional neural network CNN model, perform blood pressure CNN input data fusion processing on the PPG one-dimensional data sequence and the ECG one-dimensional data sequence to generate a four-dimensional tensor of input data , Specifically including:
根据所述输入数据长度阈值N与所述A计算片段总数M;当所述A能被所述输入数据长度阈值N整除时,设置所述片段总数M为所述A除以所述输入数据长度阈值N的商;当所述A不能被所述输入数据长度阈值N整除时,设置所述片段总数M为对所述A除以所述输入数据长度阈值N的商进行取整计算的结果;Calculate the total number of fragments M according to the input data length threshold N and the A; when the A is divisible by the input data length threshold N, set the total number of fragments M as the A divided by the input data length The quotient of the threshold N; when the A is not divisible by the input data length threshold N, the total number of fragments M is set as the result of the rounding calculation of the quotient of the A divided by the input data length threshold N;
根据所述片段总数M和所述输入数据长度阈值N,对所述PPG一维数据序列[A]进行顺序数据片段划分处理生成PPG片段数据二维矩阵[M,N],对所述ECG一维数据序列[A]进行顺序数据片段划分处理生成ECG片段数据二维矩阵[M,N];According to the total number of fragments M and the input data length threshold N, the PPG one-dimensional data sequence [A] is subjected to sequential data fragment division processing to generate a PPG fragment data two-dimensional matrix [M, N], and the ECG one Dimensional data sequence [A] performs sequential data segmentation processing to generate a two-dimensional matrix of ECG segment data [M,N];
对所述PPG片段数据二维矩阵[M,N]和所述ECG片段数据二维矩阵[M,N],进行输入数据融合处理,生成融合片段数据二维矩阵[M,2*N];Perform input data fusion processing on the two-dimensional matrix of PPG fragment data [M, N] and the two-dimensional matrix of ECG fragment data [M, N] to generate a two-dimensional matrix of fused fragment data [M, 2*N];
对所述融合片段数据二维矩阵[M,2*N],进行血压CNN输入数据四维张量转换处理,生成所述输入数据四维张量[B 1,H 1,W 1,C 1];所述B 1为所述输入数据四维张量[B 1,H 1,W 1,C 1]的第四维度参数,且所述B 1为所述片段总数M;所述H 1为所述输入数据四维张量[B 1,H 1,W 1,C 1]的第三维度参数,且所述H 1的值为2;所述W 1为所述输入数据四维张量[B 1,H 1,W 1,C 1]的第二维度参数,且所述W 1为所述输入数据长度阈值N;所述C 1为所述输入数据四维张量[B 1,H 1,W 1,C 1]的第一维度参数,且所述C 1的值为1。 Perform a four-dimensional tensor conversion process of blood pressure CNN input data on the two-dimensional matrix [M,2*N] of the fusion segment data to generate the four-dimensional tensor [B 1 , H 1 , W 1 , C 1 ] of the input data; The B 1 is the fourth dimension parameter of the input data four-dimensional tensor [B 1 , H 1 , W 1 , C 1 ], and the B 1 is the total number of fragments M; the H 1 is the The input data four-dimensional tensor [B 1 , H 1 , W 1 , C 1 ] is the third-dimensional parameter, and the value of H 1 is 2; the W 1 is the input data four-dimensional tensor [B 1 , H 1 , W 1 , C 1 ] second dimension parameter, and the W 1 is the input data length threshold N; the C 1 is the input data four-dimensional tensor [B 1 , H 1 , W 1 , C 1 ] is the first dimension parameter, and the value of C 1 is 1.
进一步的,所述根据所述片段总数M和所述输入数据长度阈值N,对所述PPG一维数据序列[A]进行顺序数据片段划分处理生成PPG片段数据二维矩阵[M,N],对所述ECG一维数据序列[A]进行顺序数据片段划分处理生成ECG片段数据二维矩阵[M,N],具体包括:Further, according to the total number of fragments M and the input data length threshold N, the PPG one-dimensional data sequence [A] is divided into sequential data fragments to generate a PPG fragment data two-dimensional matrix [M, N], Perform sequential data segment division processing on the ECG one-dimensional data sequence [A] to generate a two-dimensional ECG segment data matrix [M, N], which specifically includes:
根据所述片段总数M和所述输入数据长度阈值N的乘积,生成临时数据长度L;Generate a temporary data length L according to the product of the total number of fragments M and the input data length threshold N;
从所述PPG一维数据序列[A]中,以第一个数据为数据起始提取位置,以所述临时数据长度L为数据提取长度,提取一段连续数据生成PPG一维临时数据序列[L];并根据所述输入数据长度阈值N对所述PPG一维临时数据序列[L]进行连续数据片段划分处理;所述PPG一维临时数据序列[L]包括所述片段总数M个PPG一维片段数据序列[N];所述PPG一维片段数据序列[N]包括所述输入数据长度阈值N个所述PPG数据;From the PPG one-dimensional data sequence [A], taking the first data as the starting data extraction position and the temporary data length L as the data extraction length, extract a piece of continuous data to generate the PPG one-dimensional temporary data sequence [L ]; and according to the input data length threshold N, the PPG one-dimensional temporary data sequence [L] is subjected to continuous data segment division processing; the PPG one-dimensional temporary data sequence [L] includes the total number of segments M PPG one One-dimensional segment data sequence [N]; the PPG one-dimensional segment data sequence [N] includes the input data length threshold N pieces of the PPG data;
从所述ECG一维数据序列[A]中,以第一个数据为数据起始提取位置,以所述临时数据长度L为数据提取长度,提取一段连续数据生成ECG一维临时数据序列[L];并根据所述输入数据长度阈值N对所述ECG一维临时数据序列[L]进行连续数据片段划分处理;所述ECG一维临时数据序列[L]包括所述片段总数M个ECG一维片段数据序列[N];所述ECG一维片段数据序列[N]包括所述输入数据长度阈值N个所述ECG数据;From the ECG one-dimensional data sequence [A], taking the first data as the starting data extraction position and the temporary data length L as the data extraction length, extract a piece of continuous data to generate an ECG one-dimensional temporary data sequence [L ]; and according to the input data length threshold N, the ECG one-dimensional temporary data sequence [L] is subjected to continuous data segment division processing; the ECG one-dimensional temporary data sequence [L] includes the total number of segments M ECG one One-dimensional fragment data sequence [N]; the ECG one-dimensional fragment data sequence [N] includes the input data length threshold value N of the ECG data;
构建所述PPG片段数据二维矩阵[M,N],并初始化所述PPG片段数据二维 矩阵[M,N]的所有矩阵元素为空;从所述PPG一维临时数据序列[L]中,依次提取所述PPG一维临时数据序列[L]包括的所述PPG一维片段数据序列[N]对所述PPG片段数据二维矩阵[M,N]的矩阵元素进行赋值处理;Construct the PPG fragment data two-dimensional matrix [M, N], and initialize all matrix elements of the PPG fragment data two-dimensional matrix [M, N] to be empty; from the PPG one-dimensional temporary data sequence [L] , Sequentially extracting the PPG one-dimensional segment data sequence [N] included in the PPG one-dimensional temporary data sequence [L], and assigning values to the matrix elements of the PPG segment data two-dimensional matrix [M, N];
构建所述ECG片段数据二维矩阵[M,N],并初始化所述ECG片段数据二维矩阵[M,N]的所有矩阵元素为空;从所述ECG一维临时数据序列[L]中,依次提取所述ECG一维片段数据序列[N]对所述ECG片段数据二维矩阵[M,N]的矩阵元素进行赋值处理。Construct the ECG fragment data two-dimensional matrix [M, N], and initialize all matrix elements of the ECG fragment data two-dimensional matrix [M, N] to be empty; from the ECG one-dimensional temporary data sequence [L] , Sequentially extracting the ECG one-dimensional segment data sequence [N] to perform value assignment processing on the matrix elements of the ECG segment data two-dimensional matrix [M, N].
进一步的,所述对所述PPG片段数据二维矩阵[M,N]和所述ECG片段数据二维矩阵[M,N],进行输入数据融合处理,生成融合片段数据二维矩阵[M,2*N],具体包括:Further, the input data fusion processing is performed on the two-dimensional matrix of PPG segment data [M, N] and the two-dimensional matrix of ECG segment data [M, N] to generate a two-dimensional matrix of fused segment data [M, 2*N], including:
步骤51,获取预置的融合排序标识;构建所述融合片段数据二维矩阵[M,2*N],并初始化所述融合片段数据二维矩阵[M,2*N]为空;构建第一序列[2*N];所述融合排序标识为PPG+ECG排序和ECG+PPG排序中的一种;所述第一序列[2*N]包括2*N个序列数据;Step 51: Obtain a preset fusion sorting flag; construct the two-dimensional matrix of fusion fragment data [M, 2*N], and initialize the two-dimensional matrix of fusion fragment data [M, 2*N] to be empty; construct the first A sequence [2*N]; the fusion sequence identifier is one of PPG+ECG sequence and ECG+PPG sequence; the first sequence [2*N] includes 2*N sequence data;
步骤52,初始化第一索引的值为1,初始化第一总数的值为所述片段总数M;Step 52: Initialize the value of the first index to 1, and initialize the value of the first total to the total number of fragments M;
步骤53,以所述第一索引减1的差与所述输入数据长度阈值N的乘积再加1的和为起始数据提取位置、以所述输入数据长度阈值N为提取数据长度,从所述PPG片段数据二维矩阵[M,N]中提取一段连续数据生成第二序列[N],并从所述ECG片段数据二维矩阵[M,N]中提取一段连续数据生成第三序列[N];Step 53: Taking the product of the difference of the first index minus 1 and the input data length threshold N plus 1 as the starting data extraction position, and the input data length threshold N as the extraction data length. Extract a piece of continuous data from the two-dimensional matrix of PPG fragment data [M, N] to generate a second sequence [N], and extract a piece of continuous data from the two-dimensional matrix of ECG fragment data [M, N] to generate a third sequence [ N];
步骤54,根据所述融合排序标识,使用所述第二序列[N]和所述第三序列[N]对所述第一序列[2*N]进行赋值处理;当所述融合排序标识为所述PPG+ECG排序时,使用所述第二序列[N]对所述第一序列[2*N]包括的前N个所述序列数据进行赋值处理,并使用所述第三序列[N]对所述第一序列[2*N]包括的后N个所述序列数据进行赋值处理;当所述融合排序标识为所述ECG+PPG排序时,使用所述第三序列[N]对所述第一序列[2*N]包括的前N个所述序列数据进行 赋值处理,并使用所述第二序列[N]对所述第一序列[2*N]包括的后N个所述序列数据进行赋值处理;Step 54: Use the second sequence [N] and the third sequence [N] to perform value assignment processing on the first sequence [2*N] according to the fusion order identifier; when the fusion order identifier is When the PPG+ECG is sorted, use the second sequence [N] to perform the assignment processing on the first N sequence data included in the first sequence [2*N], and use the third sequence [N ] Perform value assignment processing on the last N sequence data included in the first sequence [2*N]; when the fusion sequence identifier is the ECG+PPG sequence, use the third sequence [N] pair The first N pieces of the sequence data included in the first sequence [2*N] are assigned values, and the second sequence [N] is used to perform the assignment processing on the last N pieces of data included in the first sequence [2*N]. Assign value to the sequence data;
步骤55,使用所述第一序列[2*N]对所述融合片段数据二维矩阵[M,2*N]进行序列数据添加操作;Step 55: Use the first sequence [2*N] to perform a sequence data addition operation on the two-dimensional matrix [M, 2*N] of fusion fragment data;
步骤56,将所述第一索引加1;Step 56: Add 1 to the first index;
步骤57,判断所述第一索引是否大于所述第一总数,如果所述第一索引大于所述第一总数转至步骤58,如果所述第一索引小于或等于所述第一总数转至步骤53;Step 57: Determine whether the first index is greater than the first total, if the first index is greater than the first total, go to step 58, if the first index is less than or equal to the first total, go to Step 53;
步骤58,将所述融合片段数据二维矩阵[M,2*N]向上位应用进行返回。Step 58: Return the two-dimensional matrix [M, 2*N] of the fused segment data to the upper application.
进一步的,所述对所述融合片段数据二维矩阵[M,2*N],进行血压CNN输入数据四维张量转换处理,生成所述输入数据四维张量[B 1,H 1,W 1,C 1],具体包括: Further, the four-dimensional tensor conversion process of blood pressure CNN input data is performed on the two-dimensional matrix [M, 2*N] of the fused segment data to generate the four-dimensional tensor of the input data [B 1 , H 1 , W 1 ,C 1 ], specifically including:
构建所述输入数据四维张量[B 1,H 1,W 1,C 1],并初始化所述输入数据四维张量[B 1,H 1,W 1,C 1]为空;再依次提取所述融合片段数据二维矩阵[M,2*N]包括的矩阵元素对所述输入数据四维张量[B 1,H 1,W 1,C 1]进行数据项添加操作;所述输入数据四维张量[B 1,H 1,W 1,C 1]具体为输入数据四维张量[M,2,N,1]。 Construct the input data four-dimensional tensor [B 1 , H 1 , W 1 , C 1 ], and initialize the input data four-dimensional tensor [B 1 , H 1 , W 1 , C 1 ] to be empty; then extract sequentially The matrix elements included in the two-dimensional matrix [M, 2*N] of the fusion fragment data perform a data item addition operation on the four-dimensional tensor [B 1 , H 1 , W 1 , C 1 ] of the input data; the input data The four-dimensional tensor [B 1 , H 1 , W 1 , C 1 ] is specifically the input data four-dimensional tensor [M,2,N,1].
优选的,所述按卷积层数阈值,利用所述血压CNN模型对所述输入数据四维张量进行多层卷积池化计算生成特征数据四维张量,具体包括:Preferably, according to the threshold of the number of convolutional layers, the blood pressure CNN model is used to perform multi-layer convolution pooling calculation on the four-dimensional tensor of the input data to generate a four-dimensional tensor of characteristic data, which specifically includes:
步骤71,初始化第二索引的值为1;初始化第二总数为所述卷积层数阈值;初始化第二索引临时四维张量为所述输入数据四维张量[B 1,H 1,W 1,C 1]; Step 71: Initialize the value of the second index to 1; initialize the second total to the threshold of the number of convolutional layers; initialize the temporary four-dimensional tensor of the second index to the four-dimensional tensor of the input data [B 1 , H 1 , W 1 ,C 1 ];
步骤72,利用所述血压CNN模型的第二索引层卷积层,对所述第二索引临时四维张量进行卷积计算处理,生成第二索引卷积输出数据四维张量;利用所述血压CNN模型的第二索引池化层,对所述第二索引卷积输出数据四维张量进行池化计算处理,生成第二索引池化输出数据四维张量;所述血压CNN模型包括多层所述卷积层和多层所述池化层;Step 72: Use the second index layer convolution layer of the blood pressure CNN model to perform convolution calculation processing on the second index temporary four-dimensional tensor to generate a second index convolution output data four-dimensional tensor; use the blood pressure The second index pooling layer of the CNN model performs pooling calculation processing on the four-dimensional tensor of the second index convolution output data to generate the four-dimensional tensor of the second index pooling output data; the blood pressure CNN model includes multiple layers. Said convolutional layer and multiple layers of said pooling layer;
步骤73,设置所述第二索引临时四维张量为所述第二索引池化输出数据 四维张量;Step 73: Set the temporary four-dimensional tensor of the second index as the four-dimensional tensor of the second index pooling output data;
步骤74,将所述第二索引加1;Step 74: Add 1 to the second index;
步骤75,判断所述第二索引是否大于所述第二总数,如果所述第二索引大于所述第二总数转至步骤76,如果所述第二索引小于或等于所述第二总数转至步骤72;Step 75: Determine whether the second index is greater than the second total, if the second index is greater than the second total, go to step 76, if the second index is less than or equal to the second total, go to Step 72;
步骤76,设置所述特征数据四维张量为所述第二索引临时四维张量;所述特征数据四维张量具体为特征数据四维张量[B 2,H 2,W 2,C 2];所述B2为所述特征数据四维张量[B 2,H 2,W 2,C 2]的第四维度参数且所述B 2为所述B 1;所述H 2为所述特征数据四维张量[B 2,H 2,W 2,C 2]的第三维度参数;所述W 2为所述特征数据四维张量[B 2,H 2,W 2,C 2]的第二维度参数;所述C 2为所述特征数据四维张量[B 2,H 2,W 2,C 2]的第一维度参数。 Step 76: Set the feature data four-dimensional tensor as the second index temporary four-dimensional tensor; the feature data four-dimensional tensor is specifically the feature data four-dimensional tensor [B 2 , H 2 , W 2 , C 2 ]; The B2 is the fourth dimension parameter of the characteristic data four-dimensional tensor [B 2 , H 2 , W 2 , C 2 ] and the B 2 is the B 1 ; the H 2 is the characteristic data four-dimensional The third dimension parameter of the tensor [B 2 , H 2 , W 2 , C 2 ]; the W 2 is the second dimension of the feature data four-dimensional tensor [B 2 , H 2 , W 2 , C 2 ] Parameters; The C 2 is the first dimension parameter of the characteristic data four-dimensional tensor [B 2 , H 2 , W 2 , C 2 ].
优选的,所述根据所述特征数据四维张量进行血压人工神经网络ANN模型的输入数据二维矩阵构建操作生成输入数据二维矩阵;并利用所述血压ANN模型对所述输入数据二维矩阵进行特征数据回归计算生成血压回归数据二维矩阵,具体包括:Preferably, the two-dimensional matrix construction operation of the input data of the blood pressure artificial neural network ANN model is performed according to the four-dimensional tensor of the characteristic data to generate a two-dimensional matrix of input data; and the two-dimensional matrix of input data is calculated by the blood pressure ANN model Perform feature data regression calculation to generate a two-dimensional matrix of blood pressure regression data, which specifically includes:
根据所述特征数据四维张量[B 2,H 2,W 2,C 2],对所述特征数据四维张量[B 2,H 2,W 2,C 2]进行张量数据降维处理构建所述输入数据二维矩阵;所述输入数据二维矩阵具体为输入数据二维矩阵[W 3,C 3];所述W 3为所述输入数据二维矩阵[W 3,C 3]的第二维度参数且所述W 3为所述B 2;所述C 3为所述输入数据二维矩阵[W 3,C 3]的第一维度参数且所述C 3为所述H 2乘以所述W 2再乘以所述C 2的乘积; According to the feature data four-dimensional tensor [B 2 , H 2 , W 2 , C 2 ], perform tensor data dimensionality reduction processing on the feature data four-dimensional tensor [B 2 , H 2 , W 2 , C 2] Construct the input data two-dimensional matrix; the input data two-dimensional matrix is specifically the input data two-dimensional matrix [W 3 , C 3 ]; the W 3 is the input data two-dimensional matrix [W 3 , C 3 ] The second dimension parameter of the W 3 is the B 2 ; the C 3 is the first dimension parameter of the input data two-dimensional matrix [W 3 , C 3 ] and the C 3 is the H 2 Multiply by the product of W 2 and then by the product of C 2;
利用所述血压ANN模型,对所述输入数据二维矩阵[W 3,C 3]进行特征数据回归计算生成血压回归数据二维矩阵;所述血压回归数据二维矩阵具体为血压回归数据二维矩阵[X,2];所述X为所述血压回归数据二维矩阵[X,2]的第二维度参数且所述X为所述W 3;所述血压回归数据二维矩阵[X,2]包括所述X个回归数据一维数据序列[2];所述回归数据一维数据序列[2]包括所述片段 收缩压数据和所述片段舒张压数据。 Using the blood pressure ANN model, perform characteristic data regression calculation on the input data two-dimensional matrix [W 3 , C 3 ] to generate a blood pressure regression data two-dimensional matrix; the blood pressure regression data two-dimensional matrix is specifically blood pressure regression data two-dimensional Matrix [X, 2]; the X is the second dimension parameter of the blood pressure regression data two-dimensional matrix [X, 2] and the X is the W 3 ; the blood pressure regression data two-dimensional matrix [X, 2] includes the X regression data one-dimensional data sequence [2]; the regression data one-dimensional data sequence [2] includes the fragment systolic blood pressure data and the fragment diastolic blood pressure data.
优选的,所述当所述预测模式标识符为所述均值预测时,对所述血压回归数据二维矩阵,进行均值血压计算操作生成均值血压预测数据对,具体包括:Preferably, when the prediction mode identifier is the average prediction, performing an average blood pressure calculation operation on the two-dimensional matrix of blood pressure regression data to generate an average blood pressure prediction data pair specifically includes:
当所述预测模式标识符为所述均值预测时,设置所述均值血压预测数据对;并初始化所述均值血压预测数据对的所述舒张压预测数据为空,初始化所述均值血压预测数据对的所述收缩压数据为空;When the prediction mode identifier is the average prediction, the average blood pressure prediction data pair is set; and the diastolic blood pressure prediction data of the average blood pressure prediction data pair is initialized to be empty, and the average blood pressure prediction data pair is initialized The systolic blood pressure data of is empty;
对所述血压回归数据二维矩阵[X,2]包括的所有所述回归数据一维数据序列[2]的所述片段舒张压数据进行总和计算生成舒张压总和,根据所述舒张压总和除以所述X的商生成第一均值;对所述血压回归数据二维矩阵[X,2]包括的所有所述回归数据一维数据序列[2]的所述片段收缩压数据进行总和计算生成收缩压总和,根据所述收缩压总和除以所述X的商生成第二均值;The sum of the diastolic blood pressure data of all the pieces of the regression data one-dimensional data sequence [2] included in the blood pressure regression data two-dimensional matrix [X, 2] is calculated to generate the sum of diastolic blood pressure, which is divided by the sum of diastolic blood pressure Use the quotient of X to generate the first mean value; generate the sum of the systolic blood pressure data of all the regression data one-dimensional data sequence [2] included in the blood pressure regression data two-dimensional matrix [X, 2] The sum of systolic blood pressures, the second mean value is generated according to the quotient of the sum of systolic blood pressures divided by the X;
设置所述均值血压预测数据对的所述舒张压预测数据为所述第一均值;设置所述均值血压预测数据对的所述收缩压预测数据为所述第二均值。Set the diastolic blood pressure prediction data of the average blood pressure prediction data pair as the first average value; set the systolic blood pressure prediction data of the average blood pressure prediction data pair as the second average value.
优选的,所述当所述预测模式标识符为所述动态预测时,对所述血压回归数据二维矩阵,进行动态血压数据提取操作生成动态血压预测一维数据序列,具体包括:Preferably, when the prediction mode identifier is the dynamic prediction, performing an ambulatory blood pressure data extraction operation on the two-dimensional matrix of blood pressure regression data to generate a one-dimensional ambulatory blood pressure prediction data sequence specifically includes:
当所述预测模式标识符为所述动态预测时,初始化所述动态血压预测一维数据序列为空;设置血压数据组;初始化所述血压数据组的舒张压数据为空;初始化所述血压数据组的收缩压数据为空;When the prediction mode identifier is the dynamic prediction, initialize the ambulatory blood pressure prediction one-dimensional data sequence to be empty; set the blood pressure data group; initialize the diastolic blood pressure data of the blood pressure data group to be empty; initialize the blood pressure data The systolic blood pressure data of the group is empty;
依次提取所述血压回归数据二维矩阵[X,2]包括的所述回归数据一维数据序列[2]生成当前数据序列[2];设置所述血压数据组的所述收缩压数据为所述当前数据序列[2]的所述片段收缩压数据,设置所述血压数据组的所述舒张压数据为所述当前数据序列[2]的所述片段舒张压数据;并将所述血压数据组向所述动态血压预测一维数据序列进行数据组添加操作。The one-dimensional data sequence [2] of the regression data included in the two-dimensional matrix [X, 2] of the blood pressure regression data is sequentially extracted to generate the current data sequence [2]; the systolic blood pressure data of the blood pressure data group is set to all The segment systolic blood pressure data of the current data sequence [2], the diastolic blood pressure data of the blood pressure data group is set to the segment diastolic blood pressure data of the current data sequence [2]; and the blood pressure data The group performs a data group addition operation to the ambulatory blood pressure prediction one-dimensional data sequence.
本发明实施例第一方面提供的一种基于同步信号进行血压预测的方法,对同步的ECG信号和PPG信号进行特征数据融合,再通过血压CNN模型和血 压ANN模型组成的血压预测模型对融合数据进行特征计算及血压数据回归计算从而推算出测试者的血压数据,最后通过预测模式标识符的选择具体输出均值血压预测数据对(收缩压预测数据、舒张压预测数据)还是动态血压预测一维数据序列。The first aspect of the embodiments of the present invention provides a method for blood pressure prediction based on synchronization signals, which performs feature data fusion on the synchronized ECG signal and PPG signal, and then uses a blood pressure prediction model composed of a blood pressure CNN model and a blood pressure ANN model to fuse the data Perform feature calculation and blood pressure data regression calculation to calculate the tester's blood pressure data, and finally output the mean blood pressure prediction data pair (systolic blood pressure prediction data, diastolic blood pressure prediction data) or ambulatory blood pressure prediction one-dimensional data through the selection of the prediction mode identifier sequence.
本发明实施例第二方面提供了一种设备,该设备包括存储器和处理器,存储器用于存储程序,处理器用于执行第一方面及第一方面的各实现方式中的方法。A second aspect of the embodiments of the present invention provides a device, the device including a memory and a processor, the memory is used to store a program, and the processor is used to execute the first aspect and the methods in each implementation manner of the first aspect.
本发明实施例第三方面提供了一种包含指令的计算机程序产品,当计算机程序产品在计算机上运行时,使得计算机执行第一方面及第一方面的各实现方式中的方法。A third aspect of the embodiments of the present invention provides a computer program product containing instructions, which when the computer program product runs on a computer, causes the computer to execute the first aspect and the methods in the implementation manners of the first aspect.
本发明实施例第四方面提供了一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,计算机程序被处理器执行时实现第一方面及第一方面的各实现方式中的方法。A fourth aspect of the embodiments of the present invention provides a computer-readable storage medium on which a computer program is stored. The computer program implements the first aspect and the methods in the first aspect when executed by a processor. .
附图说明Description of the drawings
图1为本发明实施例一提供的一种基于同步信号进行血压预测的方法示意图;FIG. 1 is a schematic diagram of a method for blood pressure prediction based on a synchronization signal according to Embodiment 1 of the present invention;
图2为本发明实施例二提供的一种基于同步信号进行血压预测的方法示意图;2 is a schematic diagram of a method for blood pressure prediction based on a synchronization signal according to Embodiment 2 of the present invention;
图3为本发明实施例三提供的一种基于同步信号进行血压预测的装置的设备结构示意图。FIG. 3 is a schematic diagram of the device structure of an apparatus for blood pressure prediction based on a synchronization signal according to Embodiment 3 of the present invention.
具体实施方式Detailed ways
为了使本发明的目的、技术方案和优点更加清楚,下面将结合附图对本发明作进一步地详细描述,显然,所描述的实施例仅仅是本发明一部份实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做 出创造性劳动前提下所获得的所有其它实施例,都属于本发明保护的范围。In order to make the objectives, technical solutions, and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. . Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the protection scope of the present invention.
在通过实施例对本发明做进一步详细阐述之前,先就文中提及的一些技术手段做下简要说明。Before further elaborating the present invention through the embodiments, some technical means mentioned in the text will be briefly described.
PPG信号是利用光感传感器对特定光源的光强识别记录光强变化的一组信号。在心脏搏动时,对血管内单位面积的血流量形成周期性变化,与之对应的血液体积也相应发生变化,从而导致反映血液吸收光量的PPG信号也呈现周期性变化趋势。一个心动周期包括两个时间期:心脏收缩期和心脏舒张期;当心脏收缩期时,心脏对血液去全身做功,造成血管内压力与血流体积产生连续周期性变化,此时血管内血液对光线的吸收最多;当心脏舒张期时,对血管的压力相对性较小,此时上一次心脏收缩向全身推出的血液经过循环撞击心脏瓣膜从而对光线产生一定的反射与折射效应,造成舒张周期时血管内血液对光线能量的吸收降低。因此,反映血管内血液吸收光能的PPG信号波形就由两部分信号叠加而成:心脏收缩时期信号和心脏舒张时期信号;常见的PPG信号中有大小两个峰值,前一个属于心脏收缩期、后一个属于心脏舒张期。直接使用PPG信号就可以对血压进行预测。The PPG signal is a set of signals that uses the light sensor to identify and record the change in light intensity of a specific light source. When the heart beats, the blood flow per unit area in the blood vessel changes periodically, and the corresponding blood volume also changes accordingly, resulting in a periodic change trend in the PPG signal reflecting the amount of light absorbed by the blood. A cardiac cycle consists of two time periods: systolic and diastolic; during systole, the heart does work on the blood throughout the body, causing continuous and periodic changes in intravascular pressure and blood flow volume. The absorption of light is the most; when the heart is in diastole, the pressure on the blood vessels is relatively small. At this time, the blood pushed out to the whole body from the last systole hits the heart valve through the circulation, which produces a certain reflection and refraction effect on the light, resulting in the diastolic cycle At this time, the absorption of light energy by blood in the blood vessel decreases. Therefore, the PPG signal waveform reflecting the light energy absorbed by the blood in the blood vessel is composed of two signals: the systolic period signal and the diastolic period signal; the common PPG signal has two peaks, the first one belongs to the systolic period, and the diastolic period signal. The latter belongs to the diastolic period. The blood pressure can be predicted directly by using the PPG signal.
ECG信号是一组利用心电信号采集设备从体表记录采集的心脏心动周期的电生理信号,本发明实施例采用的ECG信号是一组单导联ECG信号。因为ECG信号反映了心脏的活动,而PPG则反映了血液涌动情况,这种血液的涌动是与心脏每次收缩有密切关系:PPG信号周期与ECG信号周期存在一个脉搏传播时间(Pulse Translation Time,PTT)的时间差。经过多年的研究发现,在一定条件下,PTT和动脉血压之间成线性关系。除此之外,有大约三分之一的高血压患者患有不同程度的高心病,有部分心脏疾病发作时也会引起血压变化。所以我们认为在PPG信号基础之上再引入与之同步的ECG信号会为血压预测模型提供额外的信息,对提高血压预测精度有所帮助。The ECG signal is a group of electrophysiological signals of the heart's cardiac cycle collected from body surface records using an electrocardiographic signal acquisition device. The ECG signal used in the embodiment of the present invention is a group of single-lead ECG signals. Because the ECG signal reflects the activity of the heart, and the PPG reflects the blood turbulence, this blood turbulence is closely related to each contraction of the heart: there is a pulse propagation time between the PPG signal cycle and the ECG signal cycle (Pulse Translation Time, PTT) time difference. After years of research, it has been found that under certain conditions, there is a linear relationship between PTT and arterial blood pressure. In addition, about one-third of hypertensive patients have different degrees of high heart disease, and some heart diseases can also cause blood pressure changes when they occur. Therefore, we believe that the introduction of an ECG signal synchronized with the PPG signal will provide additional information for the blood pressure prediction model, which will help improve the accuracy of blood pressure prediction.
通过对同步的ECG信号和PPG信号利用血压预测模型进行进一步的特征识别和回归分类处理,我们就可以获取到血压的收缩压与舒张压的预测值。对 操作步骤简要概括就是:首先通过使用特征计算网络,根据PPG信号与血压的关联关系对PPG信号进行特征计算输出一组PPG计算的血压特征值,根据PTT与血压的关联关系对ECG信号进行特征计算输出一组PTT计算的血压特征值;然后将获得的两组血压特征数据通过使用血压回归计算即可得到预测结果:舒张压数据与收缩压数据,其中收缩压数据大于舒张压数据。本发明实施例提及的血压预测模型包括血压CNN模型和血压ANN模型,前者负责特征计算,后者负责回归计算。其中,血压CNN模型的输入片段数据中,PPG信号的数据与ECG信号的数据在排序上有两种排序方式可以选择(PPG+ECG或ECG+PPG),且二者的占比关系为1:1(通过血压CNN输入数据融合处理完成)。By performing further feature recognition and regression classification processing on the synchronized ECG signal and PPG signal using the blood pressure prediction model, we can obtain the predicted value of the systolic and diastolic blood pressure. A brief summary of the operation steps is: First, by using the feature calculation network, perform feature calculation on the PPG signal according to the relationship between the PPG signal and the blood pressure, output a set of blood pressure feature values calculated by the PPG, and feature the ECG signal according to the relationship between the PTT and the blood pressure Calculate and output a set of blood pressure characteristic values calculated by PTT; then the obtained two sets of blood pressure characteristic data can be predicted by using blood pressure regression calculation: diastolic blood pressure data and systolic blood pressure data, where the systolic blood pressure data is greater than the diastolic blood pressure data. The blood pressure prediction models mentioned in the embodiment of the present invention include a blood pressure CNN model and a blood pressure ANN model. The former is responsible for feature calculation and the latter is responsible for regression calculation. Among them, in the input fragment data of the blood pressure CNN model, there are two sorting methods for the sorting of the PPG signal data and the ECG signal data (PPG+ECG or ECG+PPG), and the ratio between the two is 1: 1 (Complete the fusion processing of input data through blood pressure CNN).
有关特征计算,我们已知CNN长期以来是特征识别领域的核心算法之一。应用在图像识别中,可以在精细分类识别中用于提取图像的判别特征以供其它分类器进行学习。应用血压特征识别领域中,是对输入的数据进行血压特征提取计算:在对输入的数据进行卷积和池化之后,保留符合与血压相关的特征信息以供其他网络进行学习。文中提及的血压CNN模型是一种已经通过血压特征提取训练完成后的CNN模型,具体由卷积层和池化层组成,其中,卷积层负责对CNN模型的输入数据进行血压特征提取计算,池化层则是对卷积层的提取结果进行降采样;本文的血压CNN模型分为多个CNN网络层,每个CNN网络层包括一个卷积层和一个池化层。血压CNN模型的输入数据和输出数据格式均为4维张量形式:[B,H,W,C]。每经过一层卷积层或池化层,输出数据某些维度参数的值会发生变化,即张量的总数据长度会缩短,变化的特点是:B作为四维中的第四维参数(PPG一维数据序列或ECG一维数据序列的片段总数)不会发生变化;H、W为四维中的第三和二维参数,二者的变化与每一个卷积层的卷积核大小以及滑动步长的设定有关,也与池化层的池化窗口大小和滑动步长有关;C为四维中的第一维参数,它的变化与卷积层中选定的输出空间维数(卷积核的个数)有关。Regarding feature calculation, we know that CNN has long been one of the core algorithms in the field of feature recognition. Used in image recognition, it can be used in fine classification and recognition to extract the discriminative features of the image for learning by other classifiers. In the field of application of blood pressure feature recognition, the blood pressure feature extraction calculation is performed on the input data: after the input data is convolved and pooled, the feature information related to blood pressure is retained for other networks to learn. The blood pressure CNN model mentioned in the article is a CNN model that has been trained through blood pressure feature extraction. It is specifically composed of a convolutional layer and a pooling layer. The convolutional layer is responsible for performing blood pressure feature extraction calculations on the input data of the CNN model. , The pooling layer is to down-sample the extraction results of the convolutional layer; the blood pressure CNN model in this article is divided into multiple CNN network layers, and each CNN network layer includes a convolutional layer and a pooling layer. The input data and output data format of the blood pressure CNN model are both in the form of a 4-dimensional tensor: [B, H, W, C]. After each layer of convolutional layer or pooling layer, the value of some dimensional parameters of the output data will change, that is, the total data length of the tensor will be shortened. The characteristic of the change is: B as the fourth dimension parameter (PPG The total number of fragments of one-dimensional data sequence or ECG one-dimensional data sequence) will not change; H and W are the third and two-dimensional parameters in four dimensions. The setting of the step size is also related to the pooling window size and sliding step size of the pooling layer; C is the first dimension parameter in the four-dimensional, and its change is related to the selected output space dimension in the convolutional layer (volume The number of product cores) is related.
ANN是指由大量的处理单元(神经元)互相连接而形成的复杂网络结构, 是对人脑组织结构和运行机制的某种抽象、简化和模拟。ANN以数学模型模拟神经元活动,是基于模仿大脑神经网络结构和功能而建立的一种信息处理系统。ANN常见应用是对数据进行分类回归计算。文中提及的血压ANN模型是一种已经通过血压分类回归训练完成后的ANN模型;具体的,该血压ANN模型由全连接层组成,其中全连接层的每一个结点都与上一层的所有结点相连,用来把前边提取到的特征综合起来进行一次回归计算并将计算结果作为下一层回归计算的输入,直到符合停止条件之后向网络外部输出最终计算结果。此处,血压ANN模型的输入是一个二维矩阵,因此需要将CNN的输出结果从四维张量[B,H,W,C]向二维矩阵形式转换;血压ANN模型的输出也是一个二维矩阵[X,2],该矩阵中第二维度参数X与B相等表示片段总数,第一维度参数为2表示该矩阵包括的X个一维数据序列的长度均为2。每个一维数据序列[2]包括两个数值,数值偏高的是对应的PPG+ECG(或ECG+PPG)片段预测出的收缩压,数值偏低的是对应的PPG+ECG(或ECG+PPG)片段预测出的舒张压。最后,血压ANN模型的输出是每个PPG+ECG(或ECG+PPG)片段对应的一对血压预测值(收缩压和舒张压),对于这些血压预测值可以采取不同的处理方法,例如取平均值,从而得到信号采集时间阈值内的平均血压数据;又或者直接输出血压值序列,从而获得一段动态血压信号。ANN refers to a complex network structure formed by interconnecting a large number of processing units (neurons). It is a certain abstraction, simplification and simulation of the human brain tissue structure and operating mechanism. ANN simulates neuron activity with mathematical models. It is an information processing system based on imitating the structure and function of the brain's neural network. A common application of ANN is to perform classification and regression calculations on data. The blood pressure ANN model mentioned in the article is an ANN model that has been trained through blood pressure classification regression; specifically, the blood pressure ANN model consists of a fully connected layer, where each node of the fully connected layer is connected to the previous layer. All nodes are connected and used to integrate the features extracted in the front to perform a regression calculation and use the calculation result as the input of the regression calculation of the next layer until the stop condition is met and the final calculation result is output to the outside of the network. Here, the input of the blood pressure ANN model is a two-dimensional matrix, so the output of the CNN needs to be converted from a four-dimensional tensor [B, H, W, C] to a two-dimensional matrix; the output of the blood pressure ANN model is also a two-dimensional Matrix [X, 2], in which the second dimension parameter X and B are equal to indicate the total number of segments, and the first dimension parameter of 2 means that the length of the X one-dimensional data sequences included in the matrix are all 2. Each one-dimensional data sequence [2] includes two values, the higher value is the systolic blood pressure predicted by the corresponding PPG+ECG (or ECG+PPG) segment, and the lower value is the corresponding PPG+ECG (or ECG) +PPG) Diastolic blood pressure predicted by the fragment. Finally, the output of the blood pressure ANN model is a pair of blood pressure prediction values (systolic blood pressure and diastolic blood pressure) corresponding to each PPG+ECG (or ECG+PPG) segment. For these blood pressure prediction values, different processing methods can be adopted, such as averaging Value, so as to obtain the average blood pressure data within the signal acquisition time threshold; or directly output the blood pressure value sequence to obtain a segment of ambulatory blood pressure signal.
如图1为本发明实施例一提供的一种基于同步信号进行血压预测的方法示意图所示,本方法主要包括如下步骤:FIG. 1 is a schematic diagram of a method for blood pressure prediction based on a synchronization signal according to Embodiment 1 of the present invention. The method mainly includes the following steps:
步骤1,获取光体积变化描记图法PPG信号数据和与之同步的心电图ECG信号数据;并按数据采样频率阈值,分别对PPG信号数据和ECG信号数据进行信号进行信号采样处理生成PPG一维数据序列和ECG一维数据序列; Step 1. Obtain the PPG signal data of the photoplethysmography method and the ECG signal data synchronized with it; and according to the data sampling frequency threshold, perform signal sampling processing on the PPG signal data and the ECG signal data to generate PPG one-dimensional data Sequence and ECG one-dimensional data sequence;
其中,PPG信号数据是,通过使用无创PPG信号采集设备在信号采集时间阈值内对测试者局部皮肤表面进行预置光源信号采集操作生成的;此处,对PPG信号进行采集时,提及的预置光源信号至少包括红光源信号、红外光源信号和绿光源信号中的一类;Among them, the PPG signal data is generated by using a non-invasive PPG signal acquisition device to perform a preset light source signal acquisition operation on the tester’s local skin surface within the signal acquisition time threshold; here, when the PPG signal is acquired, the preset The set light source signal includes at least one of a red light source signal, an infrared light source signal, and a green light source signal;
ECG信号数据是,与采集PPG信号数据同步的,通过使用无创ECG信号采集设备在信号采集时间阈值内对测试者进行心电生理信号采集操作生成的;此处,对ECG信号进行采集时,获取的是一段单导联心电信号;并且该ECG信号一定是与PPG信号同步采集得到的,如此二者间的PTT时间差才是真实可靠的;The ECG signal data is synchronized with the acquisition of the PPG signal data, and is generated by using a non-invasive ECG signal acquisition device to perform the ECG physiological signal acquisition operation on the tester within the signal acquisition time threshold; here, when the ECG signal is acquired, It is a single-lead ECG signal; and the ECG signal must be collected synchronously with the PPG signal, so that the PTT time difference between the two is true and reliable;
PPG一维数据序列具体为PPG一维数据序列[A];PPG一维数据序列[A]包括A个PPG数据;其中,A为数据采样频率阈值乘以信号采集时间阈值的乘积;此处,设信号采集时间阈值为10秒,数据采样频率阈值为125Hz,那么A=125*10=1250,表示采集到的数据有1250个,PPG一维数据序列[A]就是一个包括了1250个PPG采集数据的一维数据序列;The PPG one-dimensional data sequence is specifically the PPG one-dimensional data sequence [A]; the PPG one-dimensional data sequence [A] includes A pieces of PPG data; where A is the product of the data sampling frequency threshold multiplied by the signal acquisition time threshold; here, Suppose the signal acquisition time threshold is 10 seconds, and the data sampling frequency threshold is 125Hz, then A=125*10=1250, which means that there are 1250 collected data, and the PPG one-dimensional data sequence [A] is one that includes 1250 PPG acquisitions. One-dimensional data sequence of data;
ECG一维数据序列具体为ECG一维数据序列[A];ECG一维数据序列[A]包括A个ECG数据;此处,同理,设信号采集时间阈值为10秒,数据采样频率阈值为125Hz,那么A=125*10=1250,表示采集到的数据有1250个,ECG一维数据序列[A]就是一个包括了1250个ECG采集数据的一维数据序列。The one-dimensional ECG data sequence is specifically the one-dimensional ECG data sequence [A]; the one-dimensional ECG data sequence [A] includes A pieces of ECG data; here, in the same way, the signal acquisition time threshold is set to 10 seconds, and the data sampling frequency threshold is 125Hz, then A=125*10=1250, which means that there are 1250 collected data. The ECG one-dimensional data sequence [A] is a one-dimensional data sequence including 1250 ECG collected data.
步骤2,根据血压卷积神经网络CNN模型的输入数据长度阈值N,对PPG一维数据序列和ECG一维数据序列,进行血压CNN输入数据融合处理生成输入数据四维张量;Step 2: According to the input data length threshold N of the blood pressure convolutional neural network CNN model, perform blood pressure CNN input data fusion processing on the PPG one-dimensional data sequence and the ECG one-dimensional data sequence to generate a four-dimensional tensor of input data;
具体包括:步骤21,根据输入数据长度阈值N与A计算片段总数M;当A能被输入数据长度阈值N整除时,设置片段总数M为A除以输入数据长度阈值N的商;当A不能被输入数据长度阈值N整除时,设置片段总数M为对A除以输入数据长度阈值N的商进行取整计算的结果;Specifically: Step 21: Calculate the total number of fragments M based on the input data length threshold N and A; when A is divisible by the input data length threshold N, set the total number of fragments M as the quotient of A divided by the input data length threshold N; when A cannot When divisible by the input data length threshold N, the total number of fragments M is set as the result of rounding the quotient of A divided by the input data length threshold N;
此处,因为后续要使用血压CNN模型对PPG(或ECG)一维数据序列中的数据进行特征计算,鉴于血压CNN的输入有要求(输入数据长度阈值N),则按照血压CNN的输入数据长度阈值N对PPG(或ECG)一维数据序列进行片段划分。此处的片段总数设置方法:如果PPG(或ECG)一维数据序列总数据长度能被输入数据长度阈值N进行整除,那么片段总数即为二者相除的商;如 果PPG(或ECG)一维数据序列总数据长度不能被输入数据长度阈值N进行整除,那么片段总数即为二者相除的商的取整结果,将PPG(或ECG)一维数据序列中最后一段长度不够的片段视为数据不完整片段抛弃。例如,假设输入数据长度阈值N为250,则此处片段总数为1250/250=5;假设输入数据长度阈值N为200,则此处片段总数为int(1250/200)=6,int()为取整函数;Here, because the blood pressure CNN model will be used to perform feature calculations on the data in the PPG (or ECG) one-dimensional data sequence, in view of the input requirements of the blood pressure CNN (input data length threshold N), according to the input data length of the blood pressure CNN The threshold N divides the PPG (or ECG) one-dimensional data sequence into segments. The method for setting the total number of fragments here: If the total data length of the PPG (or ECG) one-dimensional data sequence can be evenly divided by the input data length threshold N, then the total number of fragments is the quotient of the division of the two; if the PPG (or ECG) is one The total data length of the one-dimensional data sequence cannot be divisible by the input data length threshold N, then the total number of segments is the rounded result of the quotient of the division of the two. The last segment of the PPG (or ECG) one-dimensional data sequence is regarded as the segment with insufficient length. Discard the fragments with incomplete data. For example, assuming that the input data length threshold N is 250, the total number of fragments here is 1250/250=5; assuming the input data length threshold N is 200, the total number of fragments here is int(1250/200)=6, int() Is the rounding function;
步骤22,根据片段总数M和输入数据长度阈值N,对PPG一维数据序列[A]进行顺序数据片段划分处理生成PPG片段数据二维矩阵[M,N],对ECG一维数据序列[A]进行顺序数据片段划分处理生成ECG片段数据二维矩阵[M,N];Step 22: According to the total number of fragments M and the input data length threshold N, the PPG one-dimensional data sequence [A] is divided into sequential data fragments to generate the PPG fragment data two-dimensional matrix [M, N], and the ECG one-dimensional data sequence [A] ] Perform sequential data segmentation processing to generate a two-dimensional matrix of ECG segment data [M, N];
具体包括:步骤221,根据片段总数M和输入数据长度阈值N的乘积,生成临时数据长度L;Specifically, it includes: step 221, generating a temporary data length L according to the product of the total number of fragments M and the input data length threshold N;
此处,从上文的片段总数计算方法反推,可以获得PPG、ECG一维数据序列中实际将纳入片段数据二维矩阵[M,N]的有效数据长度L=M*N;假设数据总长度为1250,输入数据长度阈值N为250,则M=1250/250=5,L=250*5=1250,表示所有数据都将纳入片段数据二维矩阵[M,N];假设数据总长度为1250,输入数据长度阈值N为200,M=int(1250/200)=6,L=200*6=1200,表示仅有1200个数据纳入片段数据二维矩阵[M,N],剩下50个数据将被抛弃;Here, from the calculation method of the total number of fragments above, we can obtain the effective data length L=M*N of the two-dimensional matrix [M,N] of the fragment data actually included in the one-dimensional data sequence of PPG and ECG; The length is 1250, and the input data length threshold N is 250, then M=1250/250=5, L=250*5=1250, which means that all data will be included in the fragment data two-dimensional matrix [M, N]; assuming the total length of the data Is 1250, the input data length threshold N is 200, M=int(1250/200)=6, L=200*6=1200, which means that only 1200 data are included in the two-dimensional matrix of fragment data [M, N], and the rest 50 data will be discarded;
步骤222,从PPG一维数据序列[A]中,以第一个数据为数据起始提取位置,以临时数据长度L为数据提取长度,提取一段连续数据生成PPG一维临时数据序列[L];并根据输入数据长度阈值N对PPG一维临时数据序列[L]进行连续数据片段划分处理;Step 222: From the PPG one-dimensional data sequence [A], take the first data as the starting data extraction position and the temporary data length L as the data extraction length, extract a piece of continuous data to generate the PPG one-dimensional temporary data sequence [L] ; And according to the input data length threshold N, the PPG one-dimensional temporary data sequence [L] is divided into continuous data segments;
其中,PPG一维临时数据序列[L]包括片段总数M个PPG一维片段数据序列[N];PPG一维片段数据序列[N]包括输入数据长度阈值N个PPG数据;Among them, the PPG one-dimensional temporary data sequence [L] includes the total number of segments M PPG one-dimensional segment data sequences [N]; the PPG one-dimensional segment data sequence [N] includes the input data length threshold N PPG data;
此处,就是根据上位计算得到的临时数据长度L(也是有效数据长度),从原始的PPG一维数据序列[A]中提取出PPG一维临时数据序列[L](有效数据序列);提取的方式是从最早时间的数据向后提取;Here, it is to extract the PPG one-dimensional temporary data sequence [L] (effective data sequence) from the original PPG one-dimensional data sequence [A] according to the temporary data length L (also the effective data length) obtained by the upper calculation; The method is to extract backwards from the earliest data;
并且,在提取数据的同时,以提取单位(输入数据长度阈值N)作为片段 长度,对PPG一维临时数据序列[L]完成片段划分;假设A=1250,输入数据长度阈值N为250,M=5,PPG一维数据序列[1250]={D 1,D 2,D 3,…D i,…D 1250}(i的取值从1到1250),那么PPG一维临时数据序列[L]为PPG一维临时数据序列[1250],包括5个PPG一维片段数据序列[250]:第一PPG一维片段数据序列[250]={D 1,…D 250},第二PPG一维片段数据序列[250]={D 251,…D 500},第三PPG一维片段数据序列[250]={D 501,…D 750},第四PPG一维片段数据序列[250]={D 751,…D 1000},第五PPG一维片段数据序列[250]={D 1001,…D 1250}; In addition, while extracting data, use the extraction unit (input data length threshold N) as the segment length to divide the PPG one-dimensional temporary data sequence [L]; suppose A=1250, and the input data length threshold N is 250, M =5, PPG one-dimensional data sequence [1250]={D 1 , D 2 , D 3 ,...D i ,...D 1250 } (the value of i is from 1 to 1250), then PPG one-dimensional temporary data sequence [L ] Is the PPG one-dimensional temporary data sequence [1250], including 5 PPG one-dimensional fragment data sequences [250]: the first PPG one-dimensional fragment data sequence [250]={D 1 ,...D 250 }, the second PPG one One-dimensional segment data sequence [250] = {D 251 ,...D 500 }, the third PPG one-dimensional segment data sequence [250] = {D 501 ,...D 750 }, the fourth PPG one-dimensional segment data sequence [250] = {D 751 ,...D 1000 }, the fifth PPG one-dimensional segment data sequence [250]={D 1001 ,...D 1250 };
步骤223,从ECG一维数据序列[A]中,以第一个数据为数据起始提取位置,以临时数据长度L为数据提取长度,提取一段连续数据生成ECG一维临时数据序列[L];并根据输入数据长度阈值N对ECG一维临时数据序列[L]进行连续数据片段划分处理;Step 223: From the ECG one-dimensional data sequence [A], take the first data as the starting data extraction position and the temporary data length L as the data extraction length, extract a piece of continuous data to generate the ECG one-dimensional temporary data sequence [L] ; And according to the input data length threshold N, the ECG one-dimensional temporary data sequence [L] is divided into continuous data segments;
其中,ECG一维临时数据序列[L]包括片段总数M个ECG一维片段数据序列[N];ECG一维片段数据序列[N]包括输入数据长度阈值N个ECG数据;Among them, the ECG one-dimensional temporary data sequence [L] includes the total number of segments M ECG one-dimensional segment data sequences [N]; the ECG one-dimensional segment data sequence [N] includes the input data length threshold N ECG data;
此处,就是根据上位计算得到的临时数据长度L(也是有效数据长度),从原始的ECG一维数据序列[A]中提取出ECG一维临时数据序列[L](有效数据序列);提取的方式是从最早时间的数据向后提取;Here, the one-dimensional ECG temporary data sequence [L] (effective data sequence) is extracted from the original ECG one-dimensional data sequence [A] according to the temporary data length L (also the effective data length) obtained by the upper calculation; The method is to extract backwards from the earliest data;
并且,在提取数据的同时,以提取单位(输入数据长度阈值N)作为片段长度,对ECG一维临时数据序列[L]完成片段划分;假设A=1250,输入数据长度阈值N为250,M=5,ECG一维数据序列[1250]={E 1,E 2,E 3,…E i,…E 1250}(i的取值从1到1250),那么ECG一维临时数据序列[L]为ECG一维临时数据序列[1250],包括5个ECG一维片段数据序列[250]:第一ECG一维片段数据序列[250]={E 1,…E 250},第二ECG一维片段数据序列[250]={E 251,…E 500},第三ECG一维片段数据序列[250]={E 501,…E 750},第四ECG一维片段数据序列[250]={E 751,…E 1000},第五ECG一维片段数据序列[250]={E 1001,…E 1250}; In addition, while extracting data, take the extraction unit (input data length threshold N) as the segment length to complete the segmentation of the ECG one-dimensional temporary data sequence [L]; suppose A=1250, the input data length threshold N is 250, M =5, ECG one-dimensional data sequence [1250]={E 1 , E 2 , E 3 ,...E i ,...E 1250 } (the value of i is from 1 to 1250), then the ECG one-dimensional temporary data sequence [L ] Is an ECG one-dimensional temporary data sequence [1250], including 5 ECG one-dimensional fragment data sequences [250]: the first ECG one-dimensional fragment data sequence [250] = {E 1 ,...E 250 }, the second ECG one One-dimensional segment data sequence [250]={E 251 ,...E 500 }, the third ECG one-dimensional segment data sequence [250]={E 501 ,...E 750 }, the fourth ECG one-dimensional segment data sequence [250]= {E 751 ,...E 1000 }, the fifth ECG one-dimensional fragment data sequence [250]={E 1001 ,...E 1250 };
步骤224,构建PPG片段数据二维矩阵[M,N],并初始化PPG片段数据二维矩阵[M,N]的所有矩阵元素为空;从PPG一维临时数据序列[L]中,依次提 取PPG一维临时数据序列[L]包括的PPG一维片段数据序列[N]对PPG片段数据二维矩阵[M,N]的矩阵元素进行赋值处理;Step 224: Construct a two-dimensional PPG fragment data matrix [M, N], and initialize all matrix elements of the PPG fragment data two-dimensional matrix [M, N] to be empty; extract sequentially from the PPG one-dimensional temporary data sequence [L] The PPG one-dimensional segment data sequence [N] included in the PPG one-dimensional temporary data sequence [L] assigns values to the matrix elements of the PPG segment data two-dimensional matrix [M, N];
此处,PPG片段数据二维矩阵[M,N],虽然是个二维矩阵,实际其包含的矩阵元素个数M*N是与PPG一维临时数据序列[L]包括的数据总数相等的,这里就是将PPG一维临时数据序列[L]的形状从一维序列做一次张量升维处理;例如,有个PPG一维临时数据序列[4]={0,1,2,3},将其进行二维张量升维之后生成的二维矩阵[2,2]后,是不会调整原有数据排序的,所以二维矩阵[2,2]={{0,1},{2,3}};Here, the PPG fragment data two-dimensional matrix [M, N], although it is a two-dimensional matrix, the actual number of matrix elements M*N it contains is equal to the total number of data included in the PPG one-dimensional temporary data sequence [L]. Here is to take the shape of the PPG one-dimensional temporary data sequence [L] from the one-dimensional sequence to a tensor upgrade process; for example, there is a PPG one-dimensional temporary data sequence [4]={0,1,2,3}, change it The two-dimensional matrix [2,2] generated after the two-dimensional tensor is upgraded will not adjust the original data sorting, so the two-dimensional matrix [2,2]={{0,1},{2,3} };
步骤225,构建ECG片段数据二维矩阵[M,N],并初始化ECG片段数据二维矩阵[M,N]的所有矩阵元素为空;从ECG一维临时数据序列[L]中,依次提取ECG一维片段数据序列[N]对ECG片段数据二维矩阵[M,N]的矩阵元素进行赋值处理;Step 225: Construct a two-dimensional ECG fragment data matrix [M, N], and initialize all matrix elements of the ECG fragment data two-dimensional matrix [M, N] to be empty; extract sequentially from the ECG one-dimensional temporary data sequence [L] The ECG one-dimensional segment data sequence [N] assigns values to the matrix elements of the ECG segment data two-dimensional matrix [M, N];
与步骤224同理,ECG片段数据二维矩阵[M,N],虽然是个二维矩阵,实际其包含的矩阵元素个数M*N是与ECG一维临时数据序列[L]包括的数据总数相等的,这里就是将ECG一维临时数据序列[L]的形状从一维序列做一次张量升维处理;Similar to step 224, the two-dimensional matrix of ECG fragment data [M,N], although it is a two-dimensional matrix, the actual number of matrix elements M*N contained in it is the total number of data included in the ECG one-dimensional temporary data sequence [L] Equal, here is the tensor upscaling process of the shape of the ECG one-dimensional temporary data sequence [L] from the one-dimensional sequence;
步骤23,对PPG片段数据二维矩阵[M,N]和ECG片段数据二维矩阵[M,N],进行输入数据融合处理,生成融合片段数据二维矩阵[M,2*N];Step 23: Perform input data fusion processing on the two-dimensional matrix of PPG fragment data [M, N] and the two-dimensional matrix of ECG fragment data [M, N] to generate a two-dimensional matrix of fused fragment data [M, 2*N];
具体包括:步骤231,获取预置的融合排序标识;构建融合片段数据二维矩阵[M,2*N],并初始化融合片段数据二维矩阵[M,2*N]为空;构建第一序列[2*N];It specifically includes: step 231, obtaining a preset fusion sorting flag; constructing a two-dimensional matrix of fusion fragment data [M, 2*N], and initializing the two-dimensional matrix of fusion fragment data [M, 2*N] to be empty; constructing the first Sequence [2*N];
其中,融合排序标识为PPG+ECG排序和ECG+PPG排序中的一种,第一序列[2*N]包括2*N个序列数据;Wherein, the fusion sorting identifier is one of PPG+ECG sorting and ECG+PPG sorting, and the first sequence [2*N] includes 2*N sequence data;
此处,提供一个在数据融合时指定排序顺序的标识:融合排序标识;该标识包括两种可能取值:PPG+ECG排序或ECG+PPG排序;当融合排序标识为PPG+ECG排序时,融合片段数据二维矩阵包括的每个一维向量[2*N](第一序 列[2*N])中都是前N个为PPG数据、后N个为ECG数据;当融合排序标识为ECG+PPG排序时,融合片段数据二维矩阵包括的每个一维向量[2*N](第一序列[2*N])中都是前N个为ECG数据、后N个为PPG数据;Here, an identifier that specifies the sorting order during data fusion is provided: the fusion sorting identifier; the identifier includes two possible values: PPG+ECG sorting or ECG+PPG sorting; when the fusion sorting identifier is PPG+ECG sorting, fusion In each one-dimensional vector [2*N] (first sequence [2*N]) included in the two-dimensional matrix of fragment data, the first N are PPG data and the last N are ECG data; when the fusion sorting flag is ECG +When PPG sorting, in each one-dimensional vector [2*N] (first sequence [2*N]) included in the two-dimensional matrix of fusion fragment data, the first N are ECG data, and the last N are PPG data;
步骤232,初始化第一索引的值为1,初始化第一总数的值为片段总数M;Step 232: Initialize the value of the first index to 1, and initialize the value of the first total to the total number of fragments M;
步骤233,以第一索引减1的差与输入数据长度阈值N的乘积再加1的和为起始数据提取位置、以输入数据长度阈值N为提取数据长度,从PPG片段数据二维矩阵[M,N]中提取一段连续数据生成第二序列[N],并从ECG片段数据二维矩阵[M,N]中提取一段连续数据生成第三序列[N];Step 233, taking the product of the first index minus 1 and the input data length threshold N plus 1 as the starting data extraction position, and the input data length threshold N as the extraction data length, from the two-dimensional matrix of PPG fragment data [ Extract a piece of continuous data from M, N] to generate a second sequence [N], and extract a piece of continuous data from a two-dimensional matrix of ECG fragment data [M, N] to generate a third sequence [N];
此处,我们已经得到了PPG片段数据二维矩阵[M,N]和ECG片段数据二维矩阵[M,N];在使用血压CNN模型之前,需要对两组数据进行融合,组装成一套完整的输入数据;本发明实施例的融合原则是,保持片段总数不变的情况下保留所有数据不做修改;那,我们已知两组数据的总数是2*M*N,下一步就是产生一个形状为M*(2*N)的融合片段数据二维矩阵[M,2*N]来包括所有的PPG和ECG数据;对于融合片段数据二维矩阵[M,2*N]我们可以看成为M个长度为2N的数据序列,每一个数据序列包括了N个PPG数据和N个ECG数据;在这里,本发明实施例提供融合排序标识用以标识N个PPG数据与N个ECG数据的前后顺序:融合排序标识为PPG+ECG排序时,设定前N个为PPG数据、后N个为ECG数据,融合排序标识为PPG+ECG排序时,设定前N个为ECG数据、后N个为PPG数据;Here, we have obtained the two-dimensional matrix of PPG fragment data [M, N] and the two-dimensional matrix of ECG fragment data [M, N]; before using the blood pressure CNN model, the two sets of data need to be fused and assembled into a complete set The fusion principle of the embodiment of the present invention is to keep all the data without modification while keeping the total number of fragments unchanged; then, we know that the total number of the two sets of data is 2*M*N, and the next step is to generate one The two-dimensional matrix of fusion fragment data [M,2*N] with the shape of M*(2*N) includes all PPG and ECG data; for the two-dimensional matrix of fusion fragment data [M,2*N] we can regard it as M data sequences with a length of 2N, each data sequence includes N PPG data and N ECG data; here, the embodiment of the present invention provides a fusion order identifier to identify the front and back of N PPG data and N ECG data Order: When the fusion sorting flag is PPG+ECG sorting, set the first N as PPG data and the last N as ECG data. When the fusion sorting flag is PPG+ECG, set the first N as ECG data and the last N Is PPG data;
假设A=1250,N=250,M=5,PPG一维数据序列[1250],那PPG片段数据二维矩阵[M,N]为PPG片段数据二维矩阵[5,250],ECG片段数据二维矩阵[M,N]为ECG片段数据二维矩阵[5,250];最终融合后的融合片段数据二维矩阵[M,2*N]就为融合片段数据二维矩阵[5,500];Suppose A=1250, N=250, M=5, PPG one-dimensional data sequence [1250], then PPG segment data two-dimensional matrix [M, N] is PPG segment data two-dimensional matrix [5,250], ECG segment data two-dimensional Matrix [M, N] is the two-dimensional matrix of ECG fragment data [5,250]; the final fused two-dimensional matrix of fused fragment data [M, 2*N] is the two-dimensional matrix of fused fragment data [5,500];
步骤234,根据融合排序标识,使用第二序列[N]和第三序列[N]对第一序列[2*N]进行赋值处理;当融合排序标识为PPG+ECG排序时,使用第二序列[N]对第一序列[2*N]包括的前N个序列数据进行赋值处理,并使用第三序列[N] 对第一序列[2*N]包括的后N个序列数据进行赋值处理;当融合排序标识为ECG+PPG排序时,使用第三序列[N]对第一序列[2*N]包括的前N个序列数据进行赋值处理,并使用第二序列[N]对第一序列[2*N]包括的后N个序列数据进行赋值处理;Step 234: Use the second sequence [N] and the third sequence [N] to assign values to the first sequence [2*N] according to the fusion order identifier; when the fusion order identifier is PPG+ECG order, use the second sequence [N] Perform assignment processing on the first N sequence data included in the first sequence [2*N], and use the third sequence [N] to perform assignment processing on the last N sequence data included in the first sequence [2*N] ; When the fusion sorting flag is ECG+PPG sorting, use the third sequence [N] to assign values to the first N sequence data included in the first sequence [2*N], and use the second sequence [N] to The last N sequence data included in sequence [2*N] are assigned values;
此处,就是对融合片段数据二维矩阵[M,2*N]中每一个长度为2N的数据序(第一序列[2*N])列进行赋值的操作:当融合排序标识为PPG+ECG排序时,前N个为PPG数据(第二序列[N])后N个为ECG数据(第三序列[N]);当融合排序标识为ECG+PPG排序时,前N个为ECG数据(第三序列[N])后N个为PPG数据(第二序列[N]);Here, it is the operation of assigning a value to each data sequence (first sequence [2*N]) column with a length of 2N in the two-dimensional matrix [M,2*N] of the fusion fragment data: when the fusion sequence flag is PPG+ In ECG sorting, the first N are PPG data (second sequence [N]) and the next N are ECG data (third sequence [N]); when the fusion sorting flag is ECG+PPG sorting, the first N are ECG data (The third sequence [N]) The last N are PPG data (the second sequence [N]);
步骤235,使用第一序列[2*N]对融合片段数据二维矩阵[M,2*N]进行序列数据添加操作;Step 235, using the first sequence [2*N] to perform a sequence data addition operation on the two-dimensional matrix [M, 2*N] of the fusion fragment data;
此处,是将每一条赋值结束的长度为2N的数据序(第一序列[2*N])向融合片段数据二维矩阵[M,2*N]中添加,最终在添加了M次以后完成融合片段数据二维矩阵[M,2*N]的全构建过程;Here, the 2N-length data sequence (the first sequence [2*N]) at the end of each assignment is added to the two-dimensional matrix [M, 2*N] of the fusion fragment data, and finally after M times are added Complete the whole construction process of the two-dimensional matrix [M,2*N] of the fusion fragment data;
假设A=4,N=2,M=2,PPG一维数据序列[4]={0,1,2,3},ECG一维数据序列[4]={10,11,12,13},那么PPG片段数据二维矩阵[M,N]为PPG片段数据二维矩阵[2,2]={{0,1},{2,3}},ECG片段数据二维矩阵[M,N]为ECG片段数据二维矩阵[2,2]={{10,11},{12,13}},最终融合后的融合片段数据二维矩阵[M,2*N]就为融合片段数据二维矩阵[2,4]={{0,1,10,11},{2,3,12,13}};Suppose A=4, N=2, M=2, PPG one-dimensional data sequence [4]={0,1,2,3}, ECG one-dimensional data sequence [4]={10,11,12,13} , Then the two-dimensional matrix of PPG fragment data [M, N] is the two-dimensional matrix of PPG fragment data [2,2]={{0,1},{2,3}}, the two-dimensional matrix of ECG fragment data [M, N ] Is the two-dimensional matrix of ECG fragment data [2,2]={{10,11},{12,13}}, and the final fused fragment data two-dimensional matrix [M,2*N] is the fused fragment data Two-dimensional matrix [2,4]={{0,1,10,11},{2,3,12,13}};
步骤236,将第一索引加1;Step 236: Add 1 to the first index;
此处,第一索引就是从PPG(ECG)片段数据二维矩阵[M,N]中提取的片段索引;Here, the first index is the segment index extracted from the two-dimensional matrix [M, N] of PPG (ECG) segment data;
步骤237,判断第一索引是否大于第一总数,如果第一索引大于第一总数转至步骤24,如果第一索引小于或等于第一总数转至步骤233。Step 237: Determine whether the first index is greater than the first total, if the first index is greater than the first total, go to step 24, and if the first index is less than or equal to the first total, go to step 233.
步骤24,对融合片段数据二维矩阵[M,2*N],进行血压CNN输入数据四维张量转换处理,生成输入数据四维张量[B 1,H 1,W 1,C 1]; Step 24: Perform a four-dimensional tensor conversion process of blood pressure CNN input data on the two-dimensional matrix [M,2*N] of the fused segment data to generate a four-dimensional tensor of input data [B 1 , H 1 , W 1 , C 1 ];
具体包括:构建输入数据四维张量[B 1,H 1,W 1,C 1],并初始化输入数据四维张量[B 1,H 1,W 1,C 1]为空;再依次提取融合片段数据二维矩阵[M,2*N]包括的矩阵元素对输入数据四维张量[B 1,H 1,W 1,C 1]进行数据项添加操作; It specifically includes: constructing the input data four-dimensional tensor [B 1 , H 1 , W 1 , C 1 ], and initializing the input data four-dimensional tensor [B 1 , H 1 , W 1 , C 1 ] to be empty; then extract the fusion in turn The matrix elements included in the two-dimensional matrix of fragment data [M,2*N] add data items to the four-dimensional tensor [B 1 , H 1 , W 1 , C 1] of the input data;
其中,输入数据四维张量[B 1,H 1,W 1,C 1]具体为输入数据四维张量[M,2,N,1];B 1为输入数据四维张量[B 1,H 1,W 1,C 1]的第四维度参数,且B 1为片段总数M;H 1为输入数据四维张量[B 1,H 1,W 1,C 1]的第三维度参数,且H 1的值为2;W 1为输入数据四维张量[B 1,H 1,W 1,C 1]的第二维度参数,且W 1为输入数据长度阈值N;C 1为输入数据四维张量[B 1,H 1,W 1,C 1]的第一维度参数,且C 1的值为1。 Among them, the input data four-dimensional tensor [B 1 ,H 1 ,W 1 ,C 1 ] is specifically the input data four-dimensional tensor [M,2,N,1]; B 1 is the input data four-dimensional tensor [B 1 ,H 1 ,W 1 ,C 1 ], the fourth dimension parameter, and B 1 is the total number of fragments M; H 1 is the third dimension parameter of the input data four-dimensional tensor [B 1 ,H 1 ,W 1 ,C 1 ], and The value of H 1 is 2; W 1 is the second dimension parameter of the input data four-dimensional tensor [B 1 , H 1 , W 1 , C 1 ], and W 1 is the input data length threshold N; C 1 is the input data four-dimensional The first dimension parameter of the tensor [B 1 ,H 1 ,W 1 ,C 1 ], and the value of C 1 is 1.
如前文技术简介提及的,本发明实施例采用的血压CNN模型的输入输出参数都是四维张量形式,所以此处是对融合片段数据二维矩阵[M,2*N]做一次四维张量升维的操作,假设A=1250,N=250,M=5,PPG一维数据序列[1250]和ECG一维数据序列[1250],那融合后的融合片段数据二维矩阵[M,2*N]就为融合片段数据二维矩阵[5,500];对融合片段数据二维矩阵[5,500]进行升维处理变成输入数据四维张量[B 1,H 1,W 1,C 1]也即是输入数据四维张量[M,2,N,1](输入数据四维张量[5,2 1,250,1]); As mentioned in the foregoing technical introduction, the input and output parameters of the blood pressure CNN model used in the embodiment of the present invention are all in the form of a four-dimensional tensor, so here is a four-dimensional tensor increase for the two-dimensional matrix [M,2*N] of the fusion fragment data. Two-dimensional operation, assuming A=1250, N=250, M=5, PPG one-dimensional data sequence [1250] and ECG one-dimensional data sequence [1250], then the two-dimensional matrix of fused fragment data after fusion [M,2* N] is the two-dimensional matrix of fused segment data [5,500]; the two-dimensional matrix of fused segment data [5,500] is upscaled into a four-dimensional tensor of input data [B 1 ,H 1 ,W 1 ,C 1 ], which is Is the input data four-dimensional tensor [M,2,N,1] (input data four-dimensional tensor [5,2 1 ,250,1]);
步骤3,按卷积层数阈值,利用血压CNN模型对输入数据四维张量进行多层卷积池化计算生成特征数据四维张量; Step 3. According to the threshold of the number of convolutional layers, use the blood pressure CNN model to perform multi-layer convolution pooling calculation on the four-dimensional tensor of the input data to generate the four-dimensional tensor of feature data;
具体包括:步骤31,初始化第二索引的值为1;初始化第二总数为卷积层数阈值;初始化第二索引临时四维张量为输入数据四维张量[B 1,H 1,W 1,C 1]; Specifically: Step 31: Initialize the value of the second index to 1; initialize the second total to the threshold of the number of convolutional layers; initialize the temporary four-dimensional tensor of the second index to the four-dimensional tensor of the input data [B 1 ,H 1 ,W 1 , C 1 ];
步骤32,利用血压CNN模型的第二索引层卷积层,对第二索引临时四维张量进行卷积计算处理,生成第二索引卷积输出数据四维张量;利用血压CNN模型的第二索引池化层,对第二索引卷积输出数据四维张量进行池化计算处理,生成第二索引池化输出数据四维张量;血压CNN模型包括多层卷积层和多层池化层;Step 32: Use the second index layer convolution layer of the blood pressure CNN model to perform convolution calculation processing on the second index temporary four-dimensional tensor to generate the second index convolution output data four-dimensional tensor; use the second index of the blood pressure CNN model Pooling layer, which performs pooling calculation processing on the four-dimensional tensor of the second index convolution output data to generate a four-dimensional tensor of second index pooling output data; the blood pressure CNN model includes a multi-layer convolutional layer and a multi-layer pooling layer;
此处,将预处理好的数据输入训练好的血压CNN模型中提取特征,血压CNN模型由多层卷积层和池化层组成,一般的结构是一层卷积搭配一层池化后 再连接下一个卷积层,血压CNN模型的最终层数由卷积层数阈值的数量决定,例如4个卷积层搭配4个池化层的网络被称为4层卷积网络,其中卷积层进行卷积运算,将输入转换为维度不同的输出,这些输出可以看作对输入的另一种表达方式,而池化层则是用来控制输出数量,简化运算同时促使网络提取更加有效的信息;Here, the preprocessed data is input into the trained blood pressure CNN model to extract features. The blood pressure CNN model consists of a multi-layer convolutional layer and a pooling layer. The general structure is one layer of convolution and one layer of pooling. Connected to the next convolutional layer, the final number of layers of the blood pressure CNN model is determined by the number of convolutional layer thresholds. For example, a network with 4 convolutional layers and 4 pooling layers is called a 4-layer convolutional network, where convolution The layer performs convolution operations to convert the input into outputs of different dimensions. These outputs can be regarded as another way of expressing the input, and the pooling layer is used to control the number of outputs, simplify the operation and prompt the network to extract more effective information. ;
步骤33,设置第二索引临时四维张量为第二索引池化输出数据四维张量;Step 33: Set the temporary four-dimensional tensor of the second index as the four-dimensional tensor of the second index pooling output data;
步骤34,将第二索引加1;Step 34: Add 1 to the second index;
步骤35,判断第二索引是否大于第二总数,如果第二索引大于第二总数转至步骤36,如果第二索引小于或等于第二总数转至步骤32;Step 35: Determine whether the second index is greater than the second total, if the second index is greater than the second total, go to step 36, if the second index is less than or equal to the second total, go to step 32;
步骤36,设置特征数据四维张量为第二索引临时四维张量;Step 36: Set the feature data four-dimensional tensor as the second index temporary four-dimensional tensor;
其中,特征数据四维张量具体为特征数据四维张量[B 2,H 2,W 2,C 2];B2为特征数据四维张量[B 2,H 2,W 2,C 2]的第四维度参数且B 2为B 1;H 2为特征数据四维张量[B 2,H 2,W 2,C 2]的第三维度参数;W 2为特征数据四维张量[B 2,H 2,W 2,C 2]的第二维度参数;C 2为特征数据四维张量[B 2,H 2,W 2,C 2]的第一维度参数。 Among them, the four-dimensional tensor of feature data is specifically the four-dimensional tensor of feature data [B 2 , H 2 , W 2 , C 2 ]; B2 is the fourth tensor of feature data [B 2 , H 2 , W 2 , C 2 ] Four-dimensional parameters and B 2 is B 1 ; H 2 is the third-dimensional parameter of the feature data four-dimensional tensor [B 2 , H 2 , W 2 , C 2 ]; W 2 is the feature data four-dimensional tensor [B 2 ,H 2 , W 2 , C 2 ] the second dimension parameter; C 2 is the first dimension parameter of the feature data four-dimensional tensor [B 2 , H 2 , W 2 , C 2 ].
此处,血压CNN模型每一层的卷积原理与2维卷积原理相同,与图像卷积不同的是PPG信号和ECG信号的高度H为1,所以卷积层中的卷积核第一个维度均为1,例如[1x3],[1x5],[1x7]等等,每经过一层卷积层或池化层,输入数据的形状会发生变化,但依然保持4维张量形式,其中第四维度参数(片段总数)不会发生变化,第三、二维度参数(H和W)的变化与每一个卷积层的卷积核大小以及滑动步长的设定有关,也与池化层的池化窗口大小和滑动步长有关,第一维度参数(通道数)与卷积层中选定的输出空间维数(卷积核的个数)有关,网络中层数的设定,每一层各种参数的设定都要根据经验和实验结果确定,不是固定数值,在这里假设经过几层网络后,网络的输出变为形状为[5,2,20,64]的4维张量;Here, the convolution principle of each layer of the blood pressure CNN model is the same as the two-dimensional convolution principle. The difference from image convolution is that the height H of the PPG signal and the ECG signal is 1, so the convolution kernel in the convolution layer is the first All dimensions are 1, such as [1x3], [1x5], [1x7] and so on. After a layer of convolutional layer or pooling layer, the shape of the input data will change, but it still maintains the 4-dimensional tensor form. Among them, the fourth dimension parameter (the total number of fragments) will not change, and the third and two-dimensional parameters (H and W) change are related to the size of the convolution kernel of each convolutional layer and the setting of the sliding step length, and it is also related to the pool The pooling window size of the transformation layer is related to the sliding step size. The first dimension parameter (the number of channels) is related to the selected output space dimension (the number of convolution kernels) in the convolution layer, and the number of layers in the network is set , The setting of various parameters of each layer must be determined based on experience and experimental results, not a fixed value, here it is assumed that after several layers of the network, the output of the network becomes 4 of the shape [5,2,20,64] Dimension tensor
步骤4,根据特征数据四维张量进行血压人工神经网络ANN输入数据二维矩阵构建操作生成输入数据二维矩阵;并利用血压ANN模型对输入数据二维 矩阵进行特征数据回归计算生成血压回归数据二维矩阵; Step 4. According to the four-dimensional tensor of the characteristic data, perform the operation of constructing a two-dimensional matrix of blood pressure artificial neural network ANN input data to generate a two-dimensional matrix of input data; and use the blood pressure ANN model to perform characteristic data regression calculation on the two-dimensional matrix of input data to generate blood pressure regression data. Dimensional matrix
具体包括:步骤41,根据特征数据四维张量[B 2,H 2,W 2,C 2],对特征数据四维张量[B 2,H 2,W 2,C 2]进行张量数据降维处理构建输入数据二维矩阵; Specifically: Step 41, according to the feature data four-dimensional tensor [B 2 , H 2 , W 2 , C 2 ], perform tensor data reduction on the feature data four-dimensional tensor [B 2 , H 2 , W 2 , C 2] Dimensional processing to construct a two-dimensional matrix of input data;
其中,输入数据二维矩阵具体为输入数据二维矩阵[W 3,C 3];W 3为输入数据二维矩阵[W 3,C 3]的第二维度参数且W 3为B 2;C 3为输入数据二维矩阵[W 3,C 3]的第一维度参数且C 3为H 2乘以W 2再乘以C 2的乘积; Among them, the input data two-dimensional matrix is specifically the input data two-dimensional matrix [W 3 , C 3 ]; W 3 is the second dimension parameter of the input data two-dimensional matrix [W 3 , C 3 ] and W 3 is B 2 ; C 3 is the first dimension parameter of the input data two-dimensional matrix [W 3 , C 3 ] and C 3 is the product of H 2 multiplied by W 2 and then multiplied by C 2;
此处,因为血压ANN模型的输入与输出数据结构都定为二维矩阵的张量结构,所以在将特征数据四维张量[B 2,H 2,W 2,C 2]输入血压ANN进行回归计算之前需要对其张量形状进行降维处理,例如,特征数据四维张量[B 2,H 2,W 2,C 2]为特征数据四维张量[5,2,20,64],对其形状进行降维之后,变成输入数据二维矩阵[5,2*20*64]即为输入数据二维矩阵[5,2560]; Here, because the input and output data structure of the blood pressure ANN model is defined as a two-dimensional matrix tensor structure, the characteristic data four-dimensional tensor [B 2 , H 2 , W 2 , C 2 ] is input into the blood pressure ANN for regression The shape of the tensor needs to be reduced before calculation. For example, the feature data four-dimensional tensor [B 2 ,H 2 ,W 2 ,C 2 ] is the feature data four-dimensional tensor [5,2,20,64]. After its shape is reduced in dimensionality, it becomes a two-dimensional matrix of input data [5,2*20*64], which is a two-dimensional matrix of input data [5,2560];
步骤42,利用血压ANN模型,对输入数据二维矩阵[W 3,C 3]进行特征数据回归计算生成血压回归数据二维矩阵; Step 42, using the blood pressure ANN model to perform feature data regression calculation on the two-dimensional matrix of input data [W 3 , C 3 ] to generate a two-dimensional matrix of blood pressure regression data;
其中,血压回归数据二维矩阵具体为血压回归数据二维矩阵[X,2];X为血压回归数据二维矩阵[X,2]的第二维度参数且X为W 3;血压回归数据二维矩阵[X,2]包括X个回归数据一维数据序列[2];回归数据一维数据序列[2]包括片段收缩压数据和片段舒张压数据。 Among them, the blood pressure regression data two-dimensional matrix is specifically the blood pressure regression data two-dimensional matrix [X, 2]; X is the second dimension parameter of the blood pressure regression data two-dimensional matrix [X, 2] and X is W 3 ; the blood pressure regression data two The dimensional matrix [X, 2] includes X regression data one-dimensional data sequence [2]; the regression data one-dimensional data sequence [2] includes fragment systolic blood pressure data and fragment diastolic blood pressure data.
此处,血压ANN模型由全连接层组成,全连接层的每一个结点都与上一层的所有,结点相连,用来把前边提取到的特征综合起来,每层全连接层可以设置该层的结点个数以及激活函数(ReLU较多,也可以改成其他),例如当前连接层结点个数设置为512,则当前连接层的输出变为[5,512],经过几层全连接层,将最终的输出转为形状为[X,2]的矩阵,第二维度参数X代表片段总数,第一维度参数为2个表示对于每一个片段最后输出两个回归计算值:分别代表血压的收缩压和舒张压;该血压ANN模型是经过训练后的成熟模型,一般都是将血压CNN模式和血压ANN模型连接在一起用同一批训练数据进行训练;Here, the blood pressure ANN model is composed of fully connected layers. Each node of the fully connected layer is connected to all the nodes in the previous layer. It is used to integrate the features extracted from the front. Each fully connected layer can be set The number of nodes in this layer and the activation function (there are more ReLUs, you can also change to other), for example, if the number of nodes in the current connection layer is set to 512, the output of the current connection layer becomes [5,512], after several layers The connection layer converts the final output into a matrix of shape [X, 2]. The second dimension parameter X represents the total number of fragments, and the first dimension parameter 2 means that two regression calculation values are output for each fragment: respectively represent The systolic and diastolic blood pressure; the blood pressure ANN model is a mature model after training. Generally, the blood pressure CNN model and the blood pressure ANN model are connected together and trained with the same batch of training data;
步骤5,获取预测模式标识符; Step 5. Obtain the prediction mode identifier;
其中,预测模式标识符包括均值预测和动态预测两种标识符。Among them, the prediction mode identifier includes two types of identifiers: mean prediction and dynamic prediction.
此处,预测模式标识符是一个系统变量,对经由血压ANN模型完成回归计算后的多个片段时间内的血压预测值,使用该变量可以明确进一步的预测输出内容:当预测模式标识符为均值预测时表示要求输出在采集时间阈值内测试者的平均血压数据;当预测模式标识符为动态预测时表示要求输出在采集时间阈值内测试者的血压变化数据序列。Here, the prediction mode identifier is a system variable. The predicted value of blood pressure in multiple segments of time after the regression calculation of the blood pressure ANN model is completed. This variable can be used to clarify the further prediction output content: when the prediction mode identifier is the mean value When predicting, it means that the tester's average blood pressure data is required to be output within the acquisition time threshold; when the prediction mode identifier is dynamic prediction, it means that the tester's blood pressure change data sequence within the acquisition time threshold is required to be output.
步骤6,当预测模式标识符为均值预测时,对血压回归数据二维矩阵,进行均值血压计算操作生成均值血压预测数据对; Step 6. When the prediction mode identifier is average prediction, perform an average blood pressure calculation operation on the two-dimensional matrix of blood pressure regression data to generate an average blood pressure prediction data pair;
具体包括:步骤61,当预测模式标识符为均值预测时,设置均值血压预测数据对;并初始化均值血压预测数据对的舒张压预测数据为空,初始化均值血压预测数据对的收缩压数据为空;Specifically: Step 61, when the prediction mode identifier is average prediction, set the average blood pressure prediction data pair; initialize the diastolic blood pressure prediction data of the average blood pressure prediction data pair to be empty, and initialize the systolic blood pressure data of the average blood pressure prediction data pair to be empty ;
步骤62,对血压回归数据二维矩阵[X,2]包括的所有回归数据一维数据序列[2]的片段舒张压数据进行总和计算生成舒张压总和,根据舒张压总和除以X的商生成第一均值;对血压回归数据二维矩阵[X,2]包括的所有回归数据一维数据序列[2]的片段收缩压数据进行总和计算生成收缩压总和,根据收缩压总和除以X的商生成第二均值;Step 62: Calculate the sum of the diastolic blood pressure data of all regression data one-dimensional data sequence [2] included in the two-dimensional matrix of blood pressure regression data [X,2] to generate the sum of diastolic blood pressure, which is generated according to the quotient of the sum of diastolic blood pressure divided by X The first mean; the systolic blood pressure data of all regression data one-dimensional data sequence [2] included in the two-dimensional matrix of blood pressure regression data [X,2] is calculated to generate the total systolic blood pressure, and the quotient of the total systolic blood pressure divided by X Generate the second mean;
步骤63,设置均值血压预测数据对的舒张压预测数据为第一均值;设置均值血压预测数据对的收缩压预测数据为第二均值。Step 63: Set the diastolic blood pressure prediction data of the average blood pressure prediction data pair as the first average value; set the systolic blood pressure prediction data of the average blood pressure prediction data pair as the second average value.
此处,假设血压回归数据二维矩阵[X,2]为血压回归数据二维矩阵[5,2]={[D 11,D 12],[D 21,D 22],[D 31,D 32],[D 41,D 42],[D 51,D 52]},那么血压回归数据二维矩阵[5,2]包括的回归数据一维数据序列则分别是:第一回归数据一维数据序列[2]={D 11,D 12},第二回归数据一维数据序列[2]={D 21,D 22},第三回归数据一维数据序列[2]={D 31,D 32},第四回归数据一维数据序列[2]={D 41,D 42},第五回归数据一维数据序列[2]={D 51,D 52};其中,每个回归数据一维数据序列中的两个值分别是对应着当前片段的片段舒张压数据(偏小值)和片段收缩压数据(偏 大值);当预测模式标识符为均值预测时,说明只需要对外输出信号采集时间阈值内的平均血压值,假设采集时间阈值为10秒,则此时算出的就是这10秒内的血压均值数据;假设D X1都为片段舒张压数据,则预测均值舒张压数据=(D 11+D 21+D 31+D 41+D 51)/5;假设DX2都为片段收缩压数据,则预测均值收缩压数据=(D 12+D 22+D 32+D 42+D 52)/5。 Here, suppose that the two-dimensional matrix of blood pressure regression data [X,2] is the two-dimensional matrix of blood pressure regression data [5,2]={[D 11 ,D 12 ],[D 21 ,D 22 ],[D 31 ,D 32 ],[D 41 ,D 42 ],[D 51 ,D 52 ]}, then the one-dimensional data sequence of the regression data included in the two-dimensional matrix of blood pressure regression data [5,2] is: the first regression data one-dimensional Data sequence [2]={D 11 ,D 12 }, one-dimensional data sequence of the second regression data [2]={D 21 ,D 22 }, one-dimensional data sequence of the third regression data [2]={D 31 , D 32 }, one-dimensional data sequence of the fourth regression data [2]={D 41 ,D 42 }, one-dimensional data sequence of the fifth regression data [2]={D 51 ,D 52 }; where, each regression data The two values in the one-dimensional data sequence are the segment diastolic blood pressure data (smaller value) and segment systolic blood pressure data (larger value) corresponding to the current segment; when the prediction mode identifier is mean prediction, it means that only external The average blood pressure value within the output signal acquisition time threshold. Assuming that the acquisition time threshold is 10 seconds, the calculated mean blood pressure data in these 10 seconds is calculated at this time; assuming that D X1 is the segment diastolic blood pressure data, the mean diastolic blood pressure data is predicted =(D 11 +D 21 +D 31 +D 41 +D 51 )/5; assuming that DX2 is all segmental systolic blood pressure data, the predicted mean systolic blood pressure data = (D 12 +D 22 +D 32 +D 42 +D 52 )/5.
如图2为本发明实施例二提供的一种基于同步信号进行血压预测的方法示意图所示,本方法主要包括如下步骤:FIG. 2 is a schematic diagram of a method for blood pressure prediction based on a synchronization signal according to Embodiment 2 of the present invention. The method mainly includes the following steps:
步骤101,获取光体积变化描记图法PPG信号数据和与之同步的心电图ECG信号数据;并按数据采样频率阈值,分别对PPG信号数据和ECG信号数据进行信号进行信号采样处理生成PPG一维数据序列和ECG一维数据序列;Step 101: Obtain the PPG signal data of the photoplethysmography method and the ECG signal data synchronized with it; and according to the data sampling frequency threshold, perform signal sampling processing on the PPG signal data and the ECG signal data to generate PPG one-dimensional data Sequence and ECG one-dimensional data sequence;
其中,PPG信号数据是,通过使用无创PPG信号采集设备在信号采集时间阈值内对测试者局部皮肤表面进行预置光源信号采集操作生成的;此处,对PPG信号进行采集时,提及的预置光源信号至少包括红光源信号、红外光源信号和绿光源信号中的一类;Among them, the PPG signal data is generated by using a non-invasive PPG signal acquisition device to perform a preset light source signal acquisition operation on the tester’s local skin surface within the signal acquisition time threshold; here, when the PPG signal is acquired, the preset The set light source signal includes at least one of a red light source signal, an infrared light source signal, and a green light source signal;
ECG信号数据是,与采集PPG信号数据同步的,通过使用无创ECG信号采集设备在信号采集时间阈值内对测试者进行心电生理信号采集操作生成的;此处,对ECG信号进行采集时,获取的是一段单导联心电信号;并且该ECG信号一定是与PPG信号同步采集得到的,如此二者间的PTT时间差才是真实可靠的;The ECG signal data is synchronized with the acquisition of the PPG signal data, and is generated by using a non-invasive ECG signal acquisition device to perform the ECG physiological signal acquisition operation on the tester within the signal acquisition time threshold; here, when the ECG signal is acquired, It is a single-lead ECG signal; and the ECG signal must be collected synchronously with the PPG signal, so that the PTT time difference between the two is true and reliable;
PPG一维数据序列具体为PPG一维数据序列[A];PPG一维数据序列[A]包括A个PPG数据;其中,A为数据采样频率阈值乘以信号采集时间阈值的乘积;此处,设信号采集时间阈值为10秒,数据采样频率阈值为125Hz,那么A=125*10=1250,表示采集到的数据有1250个,PPG一维数据序列[A]就是一个包括了1250个PPG采集数据的一维数据序列;The PPG one-dimensional data sequence is specifically the PPG one-dimensional data sequence [A]; the PPG one-dimensional data sequence [A] includes A pieces of PPG data; where A is the product of the data sampling frequency threshold multiplied by the signal acquisition time threshold; here, Suppose the signal acquisition time threshold is 10 seconds, and the data sampling frequency threshold is 125Hz, then A=125*10=1250, which means that there are 1250 collected data, and the PPG one-dimensional data sequence [A] is one that includes 1250 PPG acquisitions. One-dimensional data sequence of data;
ECG一维数据序列具体为ECG一维数据序列[A];ECG一维数据序列[A]包括A个ECG数据;此处,同理,设信号采集时间阈值为10秒,数据采样频率 阈值为125Hz,那么A=125*10=1250,表示采集到的数据有1250个,ECG一维数据序列[A]就是一个包括了1250个ECG采集数据的一维数据序列。The one-dimensional ECG data sequence is specifically the one-dimensional ECG data sequence [A]; the one-dimensional ECG data sequence [A] includes A pieces of ECG data; here, in the same way, the signal acquisition time threshold is set to 10 seconds, and the data sampling frequency threshold is 125Hz, then A=125*10=1250, which means that there are 1250 collected data. The ECG one-dimensional data sequence [A] is a one-dimensional data sequence including 1250 ECG collected data.
步骤102,根据血压卷积神经网络CNN模型的输入数据长度阈值N,对PPG一维数据序列和ECG一维数据序列,进行血压CNN输入数据融合处理生成输入数据四维张量;Step 102: Perform blood pressure CNN input data fusion processing on the PPG one-dimensional data sequence and the ECG one-dimensional data sequence according to the input data length threshold N of the blood pressure convolutional neural network CNN model to generate a four-dimensional tensor of input data;
具体包括:步骤1021,根据输入数据长度阈值N与A计算片段总数M;当A能被输入数据长度阈值N整除时,设置片段总数M为A除以输入数据长度阈值N的商;当A不能被输入数据长度阈值N整除时,设置片段总数M为对A除以输入数据长度阈值N的商进行取整计算的结果;Specifically: Step 1021: Calculate the total number of fragments M based on the input data length threshold N and A; when A is divisible by the input data length threshold N, set the total number of fragments M as the quotient of A divided by the input data length threshold N; when A cannot When divisible by the input data length threshold N, the total number of fragments M is set as the result of rounding the quotient of A divided by the input data length threshold N;
此处,因为后续要使用血压CNN模型对PPG(或ECG)一维数据序列中的数据进行特征计算,鉴于血压CNN的输入有要求(输入数据长度阈值N),则按照血压CNN的输入数据长度阈值N对PPG(或ECG)一维数据序列进行片段划分。此处的片段总数设置方法:如果PPG(或ECG)一维数据序列总数据长度能被输入数据长度阈值N进行整除,那么片段总数即为二者相除的商;如果PPG(或ECG)一维数据序列总数据长度不能被输入数据长度阈值N进行整除,那么片段总数即为二者相除的商的取整结果,将PPG(或ECG)一维数据序列中最后一段长度不够的片段视为数据不完整片段抛弃。例如,假设输入数据长度阈值N为250,则此处片段总数为1250/250=5;假设输入数据长度阈值N为200,则此处片段总数为int(1250/200)=6,int()为取整函数;Here, because the blood pressure CNN model will be used to perform feature calculations on the data in the PPG (or ECG) one-dimensional data sequence, in view of the input requirements of the blood pressure CNN (input data length threshold N), according to the input data length of the blood pressure CNN The threshold N divides the PPG (or ECG) one-dimensional data sequence into segments. The method for setting the total number of fragments here: If the total data length of the PPG (or ECG) one-dimensional data sequence can be evenly divided by the input data length threshold N, then the total number of fragments is the quotient of the division of the two; if the PPG (or ECG) is one The total data length of the one-dimensional data sequence cannot be divisible by the input data length threshold N, then the total number of segments is the rounded result of the quotient of the division of the two. The last segment of the PPG (or ECG) one-dimensional data sequence is regarded as the segment with insufficient length. Discard the fragments with incomplete data. For example, assuming that the input data length threshold N is 250, the total number of fragments here is 1250/250=5; assuming the input data length threshold N is 200, the total number of fragments here is int(1250/200)=6, int() Is the rounding function;
步骤1022,根据片段总数M和输入数据长度阈值N,对PPG一维数据序列[A]进行顺序数据片段划分处理生成PPG片段数据二维矩阵[M,N],对ECG一维数据序列[A]进行顺序数据片段划分处理生成ECG片段数据二维矩阵[M,N];Step 1022: According to the total number of fragments M and the input data length threshold N, the PPG one-dimensional data sequence [A] is divided into sequential data fragments to generate a PPG fragment data two-dimensional matrix [M, N], and the ECG one-dimensional data sequence [A] ] Perform sequential data segmentation processing to generate a two-dimensional matrix of ECG segment data [M, N];
具体包括:步骤10221,根据片段总数M和输入数据长度阈值N的乘积,生成临时数据长度L;Specifically, it includes: Step 10221, generating a temporary data length L according to the product of the total number of fragments M and the input data length threshold N;
此处,从上文的片段总数计算方法反推,可以获得PPG、ECG一维数据序 列中实际将纳入片段数据二维矩阵[M,N]的有效数据长度L=M*N;假设数据总长度为1250,输入数据长度阈值N为250,则M=1250/250=5,L=250*5=1250,表示所有数据都将纳入片段数据二维矩阵[M,N];假设数据总长度为1250,输入数据长度阈值N为200,M=int(1250/200)=6,L=200*6=1200,表示仅有1200个数据纳入片段数据二维矩阵[M,N],剩下50个数据将被抛弃;Here, from the calculation method of the total number of fragments above, we can obtain the effective data length L=M*N of the two-dimensional matrix [M,N] of the fragment data actually included in the one-dimensional data sequence of PPG and ECG; The length is 1250, and the input data length threshold N is 250, then M=1250/250=5, L=250*5=1250, which means that all data will be included in the fragment data two-dimensional matrix [M, N]; assuming the total length of the data Is 1250, the input data length threshold N is 200, M=int(1250/200)=6, L=200*6=1200, which means that only 1200 data are included in the two-dimensional matrix of fragment data [M, N], and the rest 50 data will be discarded;
步骤10222,从PPG一维数据序列[A]中,以第一个数据为数据起始提取位置,以临时数据长度L为数据提取长度,提取一段连续数据生成PPG一维临时数据序列[L];并根据输入数据长度阈值N对PPG一维临时数据序列[L]进行连续数据片段划分处理;Step 10222: From the PPG one-dimensional data sequence [A], take the first data as the starting data extraction position and the temporary data length L as the data extraction length, extract a piece of continuous data to generate the PPG one-dimensional temporary data sequence [L] ; And according to the input data length threshold N, the PPG one-dimensional temporary data sequence [L] is divided into continuous data segments;
其中,PPG一维临时数据序列[L]包括片段总数M个PPG一维片段数据序列[N];PPG一维片段数据序列[N]包括输入数据长度阈值N个PPG数据;Among them, the PPG one-dimensional temporary data sequence [L] includes the total number of segments M PPG one-dimensional segment data sequences [N]; the PPG one-dimensional segment data sequence [N] includes the input data length threshold N PPG data;
此处,就是根据上位计算得到的临时数据长度L(也是有效数据长度),从原始的PPG一维数据序列[A]中提取出PPG一维临时数据序列[L](有效数据序列);提取的方式是从最早时间的数据向后提取;Here, it is to extract the PPG one-dimensional temporary data sequence [L] (effective data sequence) from the original PPG one-dimensional data sequence [A] according to the temporary data length L (also the effective data length) obtained by the upper calculation; The method is to extract backwards from the earliest data;
并且,在提取数据的同时,以提取单位(输入数据长度阈值N)作为片段长度,对PPG一维临时数据序列[L]完成片段划分;假设A=1250,输入数据长度阈值N为250,M=5,PPG一维数据序列[1250]={D 1,D 2,D 3,…D i,…D 1250}(i的取值从1到1250),那么PPG一维临时数据序列[L]为PPG一维临时数据序列[1250],包括5个PPG一维片段数据序列[250]:第一PPG一维片段数据序列[250]={D 1,…D 250},第二PPG一维片段数据序列[250]={D 251,…D 500},第三PPG一维片段数据序列[250]={D 501,…D 750},第四PPG一维片段数据序列[250]={D 751,…D 1000},第五PPG一维片段数据序列[250]={D 1001,…D 1250}; In addition, while extracting data, use the extraction unit (input data length threshold N) as the segment length to divide the PPG one-dimensional temporary data sequence [L]; suppose A=1250, and the input data length threshold N is 250, M =5, PPG one-dimensional data sequence [1250]={D 1 , D 2 , D 3 ,...D i ,...D 1250 } (the value of i is from 1 to 1250), then PPG one-dimensional temporary data sequence [L ] Is the PPG one-dimensional temporary data sequence [1250], including 5 PPG one-dimensional fragment data sequences [250]: the first PPG one-dimensional fragment data sequence [250]={D 1 ,...D 250 }, the second PPG one One-dimensional segment data sequence [250] = {D 251 ,...D 500 }, the third PPG one-dimensional segment data sequence [250] = {D 501 ,...D 750 }, the fourth PPG one-dimensional segment data sequence [250] = {D 751 ,...D 1000 }, the fifth PPG one-dimensional segment data sequence [250]={D 1001 ,...D 1250 };
步骤10223,从ECG一维数据序列[A]中,以第一个数据为数据起始提取位置,以临时数据长度L为数据提取长度,提取一段连续数据生成ECG一维临时数据序列[L];并根据输入数据长度阈值N对ECG一维临时数据序列[L]进行连续数据片段划分处理;Step 10223: From the ECG one-dimensional data sequence [A], take the first data as the data start extraction position and the temporary data length L as the data extraction length, extract a piece of continuous data to generate the ECG one-dimensional temporary data sequence [L] ; And according to the input data length threshold N, the ECG one-dimensional temporary data sequence [L] is divided into continuous data segments;
其中,ECG一维临时数据序列[L]包括片段总数M个ECG一维片段数据序列[N];ECG一维片段数据序列[N]包括输入数据长度阈值N个ECG数据;Among them, the ECG one-dimensional temporary data sequence [L] includes the total number of segments M ECG one-dimensional segment data sequences [N]; the ECG one-dimensional segment data sequence [N] includes the input data length threshold N ECG data;
此处,就是根据上位计算得到的临时数据长度L(也是有效数据长度),从原始的ECG一维数据序列[A]中提取出ECG一维临时数据序列[L](有效数据序列);提取的方式是从最早时间的数据向后提取;Here, the one-dimensional ECG temporary data sequence [L] (effective data sequence) is extracted from the original ECG one-dimensional data sequence [A] according to the temporary data length L (also the effective data length) obtained by the upper calculation; The method is to extract backwards from the earliest data;
并且,在提取数据的同时,以提取单位(输入数据长度阈值N)作为片段长度,对ECG一维临时数据序列[L]完成片段划分;假设A=1250,输入数据长度阈值N为250,M=5,ECG一维数据序列[1250]={E 1,E 2,E 3,…E i,…E 1250}(i的取值从1到1250),那么ECG一维临时数据序列[L]为ECG一维临时数据序列[1250],包括5个ECG一维片段数据序列[250]:第一ECG一维片段数据序列[250]={E 1,…E 250},第二ECG一维片段数据序列[250]={E 251,…E 500},第三ECG一维片段数据序列[250]={E 501,…E 750},第四ECG一维片段数据序列[250]={E 751,…E 1000},第五ECG一维片段数据序列[250]={E 1001,…E 1250}; In addition, while extracting data, take the extraction unit (input data length threshold N) as the segment length to complete the segmentation of the ECG one-dimensional temporary data sequence [L]; suppose A=1250, the input data length threshold N is 250, M =5, ECG one-dimensional data sequence [1250]={E 1 , E 2 , E 3 ,...E i ,...E 1250 } (the value of i is from 1 to 1250), then the ECG one-dimensional temporary data sequence [L ] Is an ECG one-dimensional temporary data sequence [1250], including 5 ECG one-dimensional fragment data sequences [250]: the first ECG one-dimensional fragment data sequence [250] = {E 1 ,...E 250 }, the second ECG one One-dimensional segment data sequence [250]={E 251 ,...E 500 }, the third ECG one-dimensional segment data sequence [250]={E 501 ,...E 750 }, the fourth ECG one-dimensional segment data sequence [250]= {E 751 ,...E 1000 }, the fifth ECG one-dimensional fragment data sequence [250]={E 1001 ,...E 1250 };
步骤10224,构建PPG片段数据二维矩阵[M,N],并初始化PPG片段数据二维矩阵[M,N]的所有矩阵元素为空;从PPG一维临时数据序列[L]中,依次提取PPG一维临时数据序列[L]包括的PPG一维片段数据序列[N]对PPG片段数据二维矩阵[M,N]的矩阵元素进行赋值处理;Step 10224, construct a two-dimensional PPG fragment data matrix [M, N], and initialize all matrix elements of the PPG fragment data two-dimensional matrix [M, N] to be empty; extract sequentially from the PPG one-dimensional temporary data sequence [L] The PPG one-dimensional segment data sequence [N] included in the PPG one-dimensional temporary data sequence [L] assigns values to the matrix elements of the PPG segment data two-dimensional matrix [M, N];
此处,PPG片段数据二维矩阵[M,N],虽然是个二维矩阵,实际其包含的矩阵元素个数M*N是与PPG一维临时数据序列[L]包括的数据总数相等的,这里就是将PPG一维临时数据序列[L]的形状从一维序列做一次张量升维处理;例如,有个PPG一维临时数据序列[4]={0,1,2,3},将其进行二维张量升维之后生成的二维矩阵[2,2]后,是不会调整原有数据排序的,所以二维矩阵[2,2]={{0,1},{2,3}};Here, the PPG fragment data two-dimensional matrix [M, N], although it is a two-dimensional matrix, the actual number of matrix elements M*N it contains is equal to the total number of data included in the PPG one-dimensional temporary data sequence [L]. Here is to take the shape of the PPG one-dimensional temporary data sequence [L] from the one-dimensional sequence to a tensor upgrade process; for example, there is a PPG one-dimensional temporary data sequence [4]={0,1,2,3}, change it The two-dimensional matrix [2,2] generated after the two-dimensional tensor is upgraded will not adjust the original data sorting, so the two-dimensional matrix [2,2]={{0,1},{2,3} };
步骤10225,构建ECG片段数据二维矩阵[M,N],并初始化ECG片段数据二维矩阵[M,N]的所有矩阵元素为空;从ECG一维临时数据序列[L]中,依次提取ECG一维片段数据序列[N]对ECG片段数据二维矩阵[M,N]的矩阵元素进 行赋值处理;Step 10225, construct a two-dimensional matrix of ECG fragment data [M, N], and initialize all matrix elements of the two-dimensional matrix of ECG fragment data [M, N] to be empty; extract sequentially from the ECG one-dimensional temporary data sequence [L] The ECG one-dimensional segment data sequence [N] assigns values to the matrix elements of the ECG segment data two-dimensional matrix [M, N];
与步骤10224同理,ECG片段数据二维矩阵[M,N],虽然是个二维矩阵,实际其包含的矩阵元素个数M*N是与ECG一维临时数据序列[L]包括的数据总数相等的,这里就是将ECG一维临时数据序列[L]的形状从一维序列做一次张量升维处理;Similar to step 10224, the two-dimensional matrix of ECG fragment data [M,N], although it is a two-dimensional matrix, the actual number of matrix elements M*N contained in it is the total number of data included in the ECG one-dimensional temporary data sequence [L] Equal, here is the tensor upscaling process of the shape of the ECG one-dimensional temporary data sequence [L] from the one-dimensional sequence;
步骤1023,对PPG片段数据二维矩阵[M,N]和ECG片段数据二维矩阵[M,N],进行输入数据融合处理,生成融合片段数据二维矩阵[M,2*N];Step 1023: Perform input data fusion processing on the two-dimensional matrix of PPG fragment data [M, N] and the two-dimensional matrix of ECG fragment data [M, N] to generate a two-dimensional matrix of fused fragment data [M, 2*N];
具体包括:步骤10231,获取预置的融合排序标识;构建融合片段数据二维矩阵[M,2*N],并初始化融合片段数据二维矩阵[M,2*N]为空;构建第一序列[2*N];It specifically includes: Step 10231: Obtain a preset fusion sorting flag; construct a two-dimensional matrix of fusion fragment data [M, 2*N], and initialize the two-dimensional matrix of fusion fragment data [M, 2*N] to be empty; construct the first Sequence [2*N];
其中,融合排序标识为PPG+ECG排序和ECG+PPG排序中的一种,第一序列[2*N]包括2*N个序列数据;Wherein, the fusion sorting identifier is one of PPG+ECG sorting and ECG+PPG sorting, and the first sequence [2*N] includes 2*N sequence data;
此处,提供一个在数据融合时指定排序顺序的标识:融合排序标识;该标识包括两种可能取值:PPG+ECG排序或ECG+PPG排序;当融合排序标识为PPG+ECG排序时,融合片段数据二维矩阵包括的每个一维向量[2*N](第一序列[2*N])中都是前N个为PPG数据、后N个为ECG数据;当融合排序标识为ECG+PPG排序时,融合片段数据二维矩阵包括的每个一维向量[2*N](第一序列[2*N])中都是前N个为ECG数据、后N个为PPG数据;Here, an identifier that specifies the sorting order during data fusion is provided: the fusion sorting identifier; the identifier includes two possible values: PPG+ECG sorting or ECG+PPG sorting; when the fusion sorting identifier is PPG+ECG sorting, fusion In each one-dimensional vector [2*N] (first sequence [2*N]) included in the two-dimensional matrix of fragment data, the first N are PPG data and the last N are ECG data; when the fusion sorting flag is ECG +When PPG sorting, in each one-dimensional vector [2*N] (first sequence [2*N]) included in the two-dimensional matrix of fusion fragment data, the first N are ECG data, and the last N are PPG data;
步骤10232,初始化第一索引的值为1,初始化第一总数的值为片段总数M;Step 10232: Initialize the value of the first index to 1, and initialize the value of the first total to the total number of fragments M;
步骤10233,以(第一索引-1)*输入数据长度阈值N+1为起始数据提取位置、以输入数据长度阈值N为提取数据长度,从PPG片段数据二维矩阵[M,N]中提取一段连续数据生成第二序列[N],并从ECG片段数据二维矩阵[M,N]中提取一段连续数据生成第三序列[N];Step 10233, using (first index-1)*input data length threshold N+1 as the starting data extraction position, and input data length threshold N as the extraction data length, from the two-dimensional matrix of PPG fragment data [M, N] Extract a piece of continuous data to generate the second sequence [N], and extract a piece of continuous data from the two-dimensional matrix of ECG fragment data [M, N] to generate the third sequence [N];
此处,我们已经得到了PPG片段数据二维矩阵[M,N]和ECG片段数据二维矩阵[M,N];在使用血压CNN模型之前,需要对两组数据进行融合,组装成一 套完整的输入数据;本发明实施例的融合原则是,保持片段总数不变的情况下保留所有数据不做修改;那,我们已知两组数据的总数是2*M*N,下一步就是产生一个形状为M*(2*N)的融合片段数据二维矩阵[M,2*N]来包括所有的PPG和ECG数据;对于融合片段数据二维矩阵[M,2*N]我们可以看成为M个长度为2N的数据序列,每一个数据序列包括了N个PPG数据和N个ECG数据;在这里,本发明实施例提供融合排序标识用以标识N个PPG数据与N个ECG数据的前后顺序:融合排序标识为PPG+ECG排序时,设定前N个为PPG数据、后N个为ECG数据,融合排序标识为PPG+ECG排序时,设定前N个为ECG数据、后N个为PPG数据;Here, we have obtained the two-dimensional matrix of PPG fragment data [M, N] and the two-dimensional matrix of ECG fragment data [M, N]; before using the blood pressure CNN model, the two sets of data need to be fused and assembled into a complete set The fusion principle of the embodiment of the present invention is to keep all the data without modification while keeping the total number of fragments unchanged; then, we know that the total number of the two sets of data is 2*M*N, and the next step is to generate one The two-dimensional matrix of fusion fragment data [M,2*N] with the shape of M*(2*N) includes all PPG and ECG data; for the two-dimensional matrix of fusion fragment data [M,2*N] we can regard it as M data sequences with a length of 2N, each data sequence includes N PPG data and N ECG data; here, the embodiment of the present invention provides a fusion order identifier to identify the front and back of N PPG data and N ECG data Order: When the fusion sorting flag is PPG+ECG sorting, set the first N as PPG data and the last N as ECG data. When the fusion sorting flag is PPG+ECG, set the first N as ECG data and the last N Is PPG data;
假设A=1250,N=250,M=5,PPG一维数据序列[1250],那PPG片段数据二维矩阵[M,N]为PPG片段数据二维矩阵[5,250],ECG片段数据二维矩阵[M,N]为ECG片段数据二维矩阵[5,250];最终融合后的融合片段数据二维矩阵[M,2*N]就为融合片段数据二维矩阵[5,500];Suppose A=1250, N=250, M=5, PPG one-dimensional data sequence [1250], then PPG segment data two-dimensional matrix [M, N] is PPG segment data two-dimensional matrix [5,250], ECG segment data two-dimensional Matrix [M, N] is the two-dimensional matrix of ECG fragment data [5,250]; the final fused two-dimensional matrix of fused fragment data [M, 2*N] is the two-dimensional matrix of fused fragment data [5,500];
步骤10234,根据融合排序标识,使用第二序列[N]和第三序列[N]对第一序列[2*N]进行赋值处理;当融合排序标识为PPG+ECG排序时,使用第二序列[N]对第一序列[2*N]包括的前N个序列数据进行赋值处理,并使用第三序列[N]对第一序列[2*N]包括的后N个序列数据进行赋值处理;当融合排序标识为ECG+PPG排序时,使用第三序列[N]对第一序列[2*N]包括的前N个序列数据进行赋值处理,并使用第二序列[N]对第一序列[2*N]包括的后N个序列数据进行赋值处理;Step 10234: Use the second sequence [N] and the third sequence [N] to assign values to the first sequence [2*N] according to the fusion order identifier; when the fusion order identifier is PPG+ECG order, use the second sequence [N] Perform assignment processing on the first N sequence data included in the first sequence [2*N], and use the third sequence [N] to perform assignment processing on the last N sequence data included in the first sequence [2*N] ; When the fusion sorting flag is ECG+PPG sorting, use the third sequence [N] to assign values to the first N sequence data included in the first sequence [2*N], and use the second sequence [N] to The last N sequence data included in sequence [2*N] are assigned values;
此处,就是对融合片段数据二维矩阵[M,2*N]中每一个长度为2N的数据序(第一序列[2*N])列进行赋值的操作:当融合排序标识为PPG+ECG排序时,前N个为PPG数据(第二序列[N])后N个为ECG数据(第三序列[N]);当融合排序标识为ECG+PPG排序时,前N个为ECG数据(第三序列[N])后N个为PPG数据(第二序列[N]);Here, it is the operation of assigning a value to each data sequence (first sequence [2*N]) column with a length of 2N in the two-dimensional matrix [M,2*N] of the fusion fragment data: when the fusion sequence flag is PPG+ In ECG sorting, the first N are PPG data (second sequence [N]) and the next N are ECG data (third sequence [N]); when the fusion sorting flag is ECG+PPG sorting, the first N are ECG data (The third sequence [N]) The last N are PPG data (the second sequence [N]);
步骤10235,使用第一序列[2*N]对融合片段数据二维矩阵[M,2*N]进行序 列数据添加操作;Step 10235, using the first sequence [2*N] to perform a sequence data addition operation on the two-dimensional matrix [M, 2*N] of the fusion fragment data;
此处,是将每一条赋值结束的长度为2N的数据序(第一序列[2*N])向融合片段数据二维矩阵[M,2*N]中添加,最终在添加了M次以后完成融合片段数据二维矩阵[M,2*N]的全构建过程;Here, the 2N-length data sequence (the first sequence [2*N]) at the end of each assignment is added to the two-dimensional matrix [M, 2*N] of the fusion fragment data, and finally after M times are added Complete the whole construction process of the two-dimensional matrix [M,2*N] of the fusion fragment data;
假设A=4,N=2,M=2,PPG一维数据序列[4]={0,1,2,3},ECG一维数据序列[4]={10,11,12,13},那么PPG片段数据二维矩阵[M,N]为PPG片段数据二维矩阵[2,2]={{0,1},{2,3}},ECG片段数据二维矩阵[M,N]为ECG片段数据二维矩阵[2,2]={{10,11},{12,13}},最终融合后的融合片段数据二维矩阵[M,2*N]就为融合片段数据二维矩阵[2,4]={{0,1,10,11},{2,3,12,13}};Suppose A=4, N=2, M=2, PPG one-dimensional data sequence [4]={0,1,2,3}, ECG one-dimensional data sequence [4]={10,11,12,13} , Then the two-dimensional matrix of PPG fragment data [M, N] is the two-dimensional matrix of PPG fragment data [2,2]={{0,1},{2,3}}, the two-dimensional matrix of ECG fragment data [M, N ] Is the two-dimensional matrix of ECG fragment data [2,2]={{10,11},{12,13}}, and the final fused fragment data two-dimensional matrix [M,2*N] is the fused fragment data Two-dimensional matrix [2,4]={{0,1,10,11},{2,3,12,13}};
步骤10236,将第一索引加1;Step 10236, add 1 to the first index;
此处,第一索引就是从PPG(ECG)片段数据二维矩阵[M,N]中提取的片索引;Here, the first index is the slice index extracted from the two-dimensional matrix [M, N] of PPG (ECG) slice data;
步骤10237,判断第一索引是否大于第一总数,如果第一索引大于第一总数转至步骤1024,如果第一索引小于或等于第一总数转至步骤10233。Step 10237: Determine whether the first index is greater than the first total. If the first index is greater than the first total, go to step 1024; if the first index is less than or equal to the first total, go to step 10233.
步骤1024,对融合片段数据二维矩阵[M,2*N],进行血压CNN输入数据四维张量转换处理,生成输入数据四维张量[B 1,H 1,W 1,C 1]; Step 1024: Perform four-dimensional tensor conversion processing of blood pressure CNN input data on the two-dimensional matrix [M,2*N] of the fused segment data to generate a four-dimensional tensor of input data [B 1 , H 1 , W 1 , C 1 ];
具体包括:构建输入数据四维张量[B 1,H 1,W 1,C 1],并初始化输入数据四维张量[B 1,H 1,W 1,C 1]为空;再依次提取融合片段数据二维矩阵[M,2*N]包括的矩阵元素对输入数据四维张量[B 1,H 1,W 1,C 1]进行数据项添加操作; It specifically includes: constructing the input data four-dimensional tensor [B 1 , H 1 , W 1 , C 1 ], and initializing the input data four-dimensional tensor [B 1 , H 1 , W 1 , C 1 ] to be empty; then extract the fusion in turn The matrix elements included in the two-dimensional matrix of fragment data [M,2*N] add data items to the four-dimensional tensor [B 1 , H 1 , W 1 , C 1] of the input data;
其中,输入数据四维张量[B 1,H 1,W 1,C 1]具体为输入数据四维张量[M,2,N,1];B 1为输入数据四维张量[B 1,H 1,W 1,C 1]的第四维度参数,且B 1为片段总数M;H 1为输入数据四维张量[B 1,H 1,W 1,C 1]的第三维度参数,且H 1的值为2;W 1为输入数据四维张量[B 1,H 1,W 1,C 1]的第二维度参数,且W 1为输入数据长度阈值N;C 1为输入数据四维张量[B 1,H 1,W 1,C 1]的第一维度参数,且C 1的值为1。 Among them, the input data four-dimensional tensor [B 1 ,H 1 ,W 1 ,C 1 ] is specifically the input data four-dimensional tensor [M,2,N,1]; B 1 is the input data four-dimensional tensor [B 1 ,H 1 ,W 1 ,C 1 ], the fourth dimension parameter, and B 1 is the total number of fragments M; H 1 is the third dimension parameter of the input data four-dimensional tensor [B 1 ,H 1 ,W 1 ,C 1 ], and The value of H 1 is 2; W 1 is the second dimension parameter of the input data four-dimensional tensor [B 1 , H 1 , W 1 , C 1 ], and W 1 is the input data length threshold N; C 1 is the input data four-dimensional The first dimension parameter of the tensor [B 1 ,H 1 ,W 1 ,C 1 ], and the value of C 1 is 1.
如前文技术简介提及的,本发明实施例采用的血压CNN模型的输入输出参数都是四维张量形式,所以此处是对融合片段数据二维矩阵[M,2*N]做一次 四维张量升维的操作,假设A=1250,N=250,M=5,PPG一维数据序列[1250]和ECG一维数据序列[1250],那融合后的融合片段数据二维矩阵[M,2*N]就为融合片段数据二维矩阵[5,500];对融合片段数据二维矩阵[5,500]进行升维处理变成输入数据四维张量[B 1,H 1,W 1,C 1]也即是输入数据四维张量[M,2,N,1](输入数据四维张量[5,2 1,250,1]); As mentioned in the foregoing technical introduction, the input and output parameters of the blood pressure CNN model used in the embodiment of the present invention are all in the form of a four-dimensional tensor, so here is a four-dimensional tensor increase for the two-dimensional matrix [M,2*N] of the fusion fragment data. Two-dimensional operation, assuming A=1250, N=250, M=5, PPG one-dimensional data sequence [1250] and ECG one-dimensional data sequence [1250], then the two-dimensional matrix of fused fragment data after fusion [M,2* N] is the two-dimensional matrix of fused segment data [5,500]; the two-dimensional matrix of fused segment data [5,500] is upscaled into a four-dimensional tensor of input data [B 1 ,H 1 ,W 1 ,C 1 ], which is Is the input data four-dimensional tensor [M,2,N,1] (input data four-dimensional tensor [5,2 1 ,250,1]);
步骤103,按卷积层数阈值,利用血压CNN模型对输入数据四维张量进行多层卷积池化计算生成特征数据四维张量;Step 103: According to the threshold of the number of convolution layers, use the blood pressure CNN model to perform multi-layer convolution pooling calculation on the four-dimensional tensor of the input data to generate a four-dimensional tensor of feature data;
具体包括:步骤1031,初始化第二索引的值为1;初始化第二总数为卷积层数阈值;初始化第二索引临时四维张量为输入数据四维张量[B 1,H 1,W 1,C 1]; Specifically: Step 1031, initialize the value of the second index to 1; initialize the second total to the threshold of the number of convolutional layers; initialize the temporary four-dimensional tensor of the second index to the four-dimensional tensor of the input data [B 1 ,H 1 ,W 1 , C 1 ];
步骤1032,利用血压CNN模型的第二索引层卷积层,对第二索引临时四维张量进行卷积计算处理,生成第二索引卷积输出数据四维张量;利用血压CNN模型的第二索引池化层,对第二索引卷积输出数据四维张量进行池化计算处理,生成第二索引池化输出数据四维张量;血压CNN模型包括多层卷积层和多层池化层;Step 1032: Use the second index layer convolution layer of the blood pressure CNN model to perform convolution calculation processing on the second index temporary four-dimensional tensor to generate the second index convolution output data four-dimensional tensor; use the second index of the blood pressure CNN model Pooling layer, which performs pooling calculation processing on the four-dimensional tensor of the second index convolution output data to generate a four-dimensional tensor of second index pooling output data; the blood pressure CNN model includes a multi-layer convolutional layer and a multi-layer pooling layer;
此处,将预处理好的数据输入训练好的血压CNN模型中提取特征,血压CNN模型由多层卷积层和池化层组成,一般的结构是一层卷积搭配一层池化后再连接下一个卷积层,血压CNN模型的最终层数由卷积层数阈值的数量决定,例如4个卷积层搭配4个池化层的网络被称为4层卷积网络,其中卷积层进行卷积运算,将输入转换为维度不同的输出,这些输出可以看作对输入的另一种表达方式,而池化层则是用来控制输出数量,简化运算同时促使网络提取更加有效的信息;Here, the preprocessed data is input into the trained blood pressure CNN model to extract features. The blood pressure CNN model consists of a multi-layer convolutional layer and a pooling layer. The general structure is one layer of convolution and one layer of pooling. Connected to the next convolutional layer, the final number of layers of the blood pressure CNN model is determined by the number of convolutional layer thresholds. For example, a network with 4 convolutional layers and 4 pooling layers is called a 4-layer convolutional network, where convolution The layer performs convolution operations to convert the input into outputs of different dimensions. These outputs can be regarded as another way of expressing the input, and the pooling layer is used to control the number of outputs, simplify the operation and prompt the network to extract more effective information. ;
步骤1033,设置第二索引临时四维张量为第二索引池化输出数据四维张量;Step 1033: Set the temporary four-dimensional tensor of the second index as the four-dimensional tensor of the second index pooling output data;
步骤1034,将第二索引加1;Step 1034, add 1 to the second index;
步骤1035,判断第二索引是否大于第二总数,如果第二索引大于第二总数转至步骤1036,如果第二索引小于或等于第二总数转至步骤1032;Step 1035: Determine whether the second index is greater than the second total, if the second index is greater than the second total, go to step 1036, if the second index is less than or equal to the second total, go to step 1032;
步骤1036,设置特征数据四维张量为第二索引临时四维张量;Step 1036: Set the four-dimensional tensor of feature data as a temporary four-dimensional tensor of the second index;
其中,特征数据四维张量具体为特征数据四维张量[B 2,H 2,W 2,C 2];B2为特征数据四维张量[B 2,H 2,W 2,C 2]的第四维度参数且B 2为B 1;H 2为特征数据四维张量[B 2,H 2,W 2,C 2]的第三维度参数;W 2为特征数据四维张量[B 2,H 2,W 2,C 2]的第二维度参数;C 2为特征数据四维张量[B 2,H 2,W 2,C 2]的第一维度参数。 Among them, the four-dimensional tensor of feature data is specifically the four-dimensional tensor of feature data [B 2 , H 2 , W 2 , C 2 ]; B2 is the fourth tensor of feature data [B 2 , H 2 , W 2 , C 2 ] Four-dimensional parameters and B 2 is B 1 ; H 2 is the third-dimensional parameter of the feature data four-dimensional tensor [B 2 , H 2 , W 2 , C 2 ]; W 2 is the feature data four-dimensional tensor [B 2 ,H 2 , W 2 , C 2 ] the second dimension parameter; C 2 is the first dimension parameter of the feature data four-dimensional tensor [B 2 , H 2 , W 2 , C 2 ].
此处,血压CNN模型每一层的卷积原理与2维卷积原理相同,与图像卷积不同的是PPG信号和ECG信号的高度H为1,所以卷积层中的卷积核第一个维度均为1,例如[1x3],[1x5],[1x7]等等,每经过一层卷积层或池化层,输入数据的形状会发生变化,但依然保持4维张量形式,其中第四维度参数(片段总数)不会发生变化,第三、二维度参数(H和W)的变化与每一个卷积层的卷积核大小以及滑动步长的设定有关,也与池化层的池化窗口大小和滑动步长有关,第一维度参数(通道数)与卷积层中选定的输出空间维数(卷积核的个数)有关,网络中层数的设定,每一层各种参数的设定都要根据经验和实验结果确定,不是固定数值,在这里假设经过几层网络后,网络的输出变为形状为[5,2,20,64]的4维张量;Here, the convolution principle of each layer of the blood pressure CNN model is the same as the two-dimensional convolution principle. The difference from image convolution is that the height H of the PPG signal and the ECG signal is 1, so the convolution kernel in the convolution layer is the first All dimensions are 1, such as [1x3], [1x5], [1x7] and so on. After a layer of convolutional layer or pooling layer, the shape of the input data will change, but it still maintains the 4-dimensional tensor form. Among them, the fourth dimension parameter (the total number of fragments) will not change, and the third and two-dimensional parameters (H and W) change are related to the size of the convolution kernel of each convolutional layer and the setting of the sliding step length, and it is also related to the pool The pooling window size of the transformation layer is related to the sliding step size. The first dimension parameter (the number of channels) is related to the selected output space dimension (the number of convolution kernels) in the convolution layer, and the number of layers in the network is set , The setting of various parameters of each layer must be determined based on experience and experimental results, not a fixed value, here it is assumed that after several layers of the network, the output of the network becomes 4 of the shape [5,2,20,64] Dimension tensor
步骤104,根据特征数据四维张量进行血压人工神经网络ANN输入数据二维矩阵构建操作生成输入数据二维矩阵;并利用血压ANN模型对输入数据二维矩阵进行特征数据回归计算生成血压回归数据二维矩阵;Step 104: Perform a blood pressure artificial neural network ANN input data two-dimensional matrix construction operation based on the feature data four-dimensional tensor to generate a two-dimensional matrix of input data; and use the blood pressure ANN model to perform feature data regression calculation on the two-dimensional matrix of input data to generate blood pressure regression data. Dimensional matrix
具体包括:步骤1041,根据特征数据四维张量[B 2,H 2,W 2,C 2],对特征数据四维张量[B 2,H 2,W 2,C 2]进行张量数据降维处理构建输入数据二维矩阵; Specifically: Step 1041, according to the feature data four-dimensional tensor [B 2 , H 2 , W 2 , C 2 ], perform tensor data reduction on the feature data four-dimensional tensor [B 2 , H 2 , W 2 , C 2] Dimensional processing to construct a two-dimensional matrix of input data;
其中,输入数据二维矩阵具体为输入数据二维矩阵[W 3,C 3];W 3为输入数据二维矩阵[W 3,C 3]的第二维度参数且W 3为B 2;C 3为输入数据二维矩阵[W 3,C 3]的第一维度参数且C 3为H 2乘以W 2再乘以C 2的乘积; Among them, the input data two-dimensional matrix is specifically the input data two-dimensional matrix [W 3 , C 3 ]; W 3 is the second dimension parameter of the input data two-dimensional matrix [W 3 , C 3 ] and W 3 is B 2 ; C 3 is the first dimension parameter of the input data two-dimensional matrix [W 3 , C 3 ] and C 3 is the product of H 2 multiplied by W 2 and then multiplied by C 2;
此处,因为血压ANN模型的输入与输出数据结构都定为二维矩阵的张量结构,所以在将特征数据四维张量[B 2,H 2,W 2,C 2]输入血压ANN进行回归计算之前需要对其张量形状进行降维处理,例如,特征数据四维张量[B 2,H 2,W 2,C 2]为 特征数据四维张量[5,2,20,64],对其形状进行降维之后,变成输入数据二维矩阵[5,2*20*64]即为输入数据二维矩阵[5,2560]; Here, because the input and output data structure of the blood pressure ANN model is defined as a two-dimensional matrix tensor structure, the characteristic data four-dimensional tensor [B 2 , H 2 , W 2 , C 2 ] is input into the blood pressure ANN for regression The shape of the tensor needs to be reduced before calculation. For example, the feature data four-dimensional tensor [B 2 ,H 2 ,W 2 ,C 2 ] is the feature data four-dimensional tensor [5,2,20,64]. After its shape is reduced in dimensionality, it becomes a two-dimensional matrix of input data [5,2*20*64], which is a two-dimensional matrix of input data [5,2560];
步骤1042,利用血压ANN模型,对输入数据二维矩阵[W 3,C 3]进行特征数据回归计算生成血压回归数据二维矩阵; Step 1042, using the blood pressure ANN model to perform characteristic data regression calculation on the two-dimensional matrix of input data [W 3 , C 3 ] to generate a two-dimensional matrix of blood pressure regression data;
其中,血压回归数据二维矩阵具体为血压回归数据二维矩阵[X,2];X为血压回归数据二维矩阵[X,2]的第二维度参数且X为W 3;血压回归数据二维矩阵[X,2]包括X个回归数据一维数据序列[2];回归数据一维数据序列[2]包括片段收缩压数据和片段舒张压数据。 Among them, the blood pressure regression data two-dimensional matrix is specifically the blood pressure regression data two-dimensional matrix [X, 2]; X is the second dimension parameter of the blood pressure regression data two-dimensional matrix [X, 2] and X is W 3 ; the blood pressure regression data two The dimensional matrix [X, 2] includes X regression data one-dimensional data sequence [2]; the regression data one-dimensional data sequence [2] includes fragment systolic blood pressure data and fragment diastolic blood pressure data.
此处,血压ANN模型由全连接层组成,全连接层的每一个结点都与上一层的所有,结点相连,用来把前边提取到的特征综合起来,每层全连接层可以设置该层的结点个数以及激活函数(ReLU较多,也可以改成其他),例如当前连接层结点个数设置为512,则当前连接层的输出变为[5,512],经过几层全连接层,将最终的输出转为形状为[X,2]的矩阵,第二维度参数X代表片段总数,第一维度参数为2个表示对于每一个片段最后输出两个回归计算值:分别代表血压的收缩压和舒张压;该血压ANN模型是经过训练后的成熟模型,一般都是将血压CNN模式和血压ANN模型连接在一起用同一批训练数据进行训练。Here, the blood pressure ANN model is composed of fully connected layers. Each node of the fully connected layer is connected to all the nodes in the previous layer. It is used to integrate the features extracted from the front. Each fully connected layer can be set The number of nodes in this layer and the activation function (there are more ReLUs, you can also change to other), for example, if the number of nodes in the current connection layer is set to 512, the output of the current connection layer becomes [5,512], after several layers The connection layer converts the final output into a matrix of shape [X, 2]. The second dimension parameter X represents the total number of fragments, and the first dimension parameter 2 means that two regression calculation values are output for each fragment: respectively represent The systolic and diastolic blood pressure; the blood pressure ANN model is a mature model after training. Generally, the blood pressure CNN model and the blood pressure ANN model are connected together and trained with the same batch of training data.
步骤105,获取预测模式标识符;Step 105: Obtain a prediction mode identifier;
其中,预测模式标识符包括均值预测和动态预测两种标识符。Among them, the prediction mode identifier includes two types of identifiers: mean prediction and dynamic prediction.
此处,预测模式标识符是一个系统变量,对经由血压ANN模型完成回归计算后的多个片段时间内的血压预测值,使用该变量可以明确进一步的预测输出内容:当预测模式标识符为均值预测时表示要求输出在采集时间阈值内测试者的平均血压数据;当预测模式标识符为动态预测时表示要求输出在采集时间阈值内测试者的血压变化数据序列。Here, the prediction mode identifier is a system variable. The predicted value of blood pressure in multiple segments of time after the regression calculation of the blood pressure ANN model is completed. This variable can be used to clarify the further prediction output content: when the prediction mode identifier is the mean value When predicting, it means that the tester's average blood pressure data is required to be output within the acquisition time threshold; when the prediction mode identifier is dynamic prediction, it means that the tester's blood pressure change data sequence within the acquisition time threshold is required to be output.
步骤106,当预测模式标识符为动态预测时,对血压回归数据二维矩阵,进行动态血压数据提取操作生成动态血压预测一维数据序列;Step 106: When the prediction mode identifier is dynamic prediction, perform an ambulatory blood pressure data extraction operation on a two-dimensional matrix of blood pressure regression data to generate a one-dimensional ambulatory blood pressure prediction data sequence;
具体包括:步骤1061,当预测模式标识符为动态预测时,初始化动态血压预测一维数据序列为空;设置血压数据组;初始化血压数据组的舒张压数据为空;初始化血压数据组的收缩压数据为空;Specifically include: step 1061, when the prediction mode identifier is dynamic prediction, initialize the ambulatory blood pressure prediction one-dimensional data sequence to be empty; set the blood pressure data group; initialize the diastolic blood pressure data of the blood pressure data group to be empty; initialize the systolic blood pressure of the blood pressure data group Data is empty;
步骤1062,依次提取血压回归数据二维矩阵[X,2]包括的回归数据一维数据序列[2]生成当前数据序列[2];设置血压数据组的收缩压数据为当前数据序列[2]的片段收缩压数据,设置血压数据组的舒张压数据为当前数据序列[2]的片段舒张压数据;并将血压数据组向动态血压预测一维数据序列进行数据组添加操作。Step 1062, sequentially extract the regression data one-dimensional data sequence [2] included in the blood pressure regression data two-dimensional matrix [X, 2] to generate the current data sequence [2]; set the systolic blood pressure data of the blood pressure data group as the current data sequence [2] Set the diastolic blood pressure data of the blood pressure data group as the fragment diastolic blood pressure data of the current data sequence [2]; add the blood pressure data group to the ambulatory blood pressure prediction one-dimensional data sequence for data group addition operation.
此处,假设血压回归数据二维矩阵[X,2]为血压回归数据二维矩阵[5,2]={[D 11,D 12],[D 21,D 22],[D 31,D 32],[D 41,D 42],[D 51,D 52]},那么血压回归数据二维矩阵[5,2]包括的回归数据一维数据序列则分别是:第一回归数据一维数据序列[2]={D 11,D 12},第二回归数据一维数据序列[2]={D 21,D 22},第三回归数据一维数据序列[2]={D 31,D 32},第四回归数据一维数据序列[2]={D 41,D 42},第五回归数据一维数据序列[2]={D 51,D 52};其中,每个回归数据一维数据序列中的两个值分别是对应着当前片段的片段舒张压数据(偏小值)和片段收缩压数据(偏大值); Here, suppose that the two-dimensional matrix of blood pressure regression data [X,2] is the two-dimensional matrix of blood pressure regression data [5,2]={[D 11 ,D 12 ],[D 21 ,D 22 ],[D 31 ,D 32 ],[D 41 ,D 42 ],[D 51 ,D 52 ]}, then the one-dimensional data sequence of the regression data included in the two-dimensional matrix of blood pressure regression data [5,2] is: the first regression data one-dimensional Data sequence [2]={D 11 ,D 12 }, one-dimensional data sequence of the second regression data [2]={D 21 ,D 22 }, one-dimensional data sequence of the third regression data [2]={D 31 , D 32 }, one-dimensional data sequence of the fourth regression data [2]={D 41 ,D 42 }, one-dimensional data sequence of the fifth regression data [2]={D 51 ,D 52 }; where, each regression data The two values in the one-dimensional data sequence are the segment diastolic blood pressure data (smaller value) and segment systolic blood pressure data (larger value) corresponding to the current segment;
经过提取之后,动态血压预测一维数据序列应是动态血压预测一维数据序列[5]={第1血压数据组,第2血压数据组,第3血压数据组,第4血压数据组,第5血压数据组};其中,第1血压数据组的舒张压数据为[D 11,D 12]中的片段舒张压数据,第1血压数据组的收缩压数据为[D 11,D 12]中的片段收缩压数据;……第5血压数据组的舒张压数据为[D 51,D 52]中的片段收缩压数据,第5血压数据组的收缩压数据为[D 51,D 52]中的片段收缩压数据。 After extraction, the one-dimensional data sequence of ambulatory blood pressure prediction should be the one-dimensional data sequence of ambulatory blood pressure prediction [5]={1st blood pressure data group, 2nd blood pressure data group, 3rd blood pressure data group, 4th blood pressure data group, No. 5 blood pressure data group}; wherein the first data diastolic blood pressure data group is [D 11, 12 D] fragment diastolic pressure data, the first data systolic blood pressure data group is [D 11, D 12] of the The segmental systolic blood pressure data;...The diastolic blood pressure data of the fifth blood pressure data group is the segment systolic blood pressure data in [D 51 ,D 52 ], and the systolic blood pressure data of the fifth blood pressure data group is [D 51 ,D 52 ] Fragment systolic blood pressure data.
如图3为本发明实施例三提供的一种基于同步信号进行血压预测的装置的设备结构示意图所示,该设备包括:处理器和存储器。存储器可通过总线与处理器连接。存储器可以是非易失存储器,例如硬盘驱动器和闪存,存储器中存储有软件程序和设备驱动程序。软件程序能够执行本发明实施例提供的上 述方法的各种功能;设备驱动程序可以是网络和接口驱动程序。处理器用于执行软件程序,该软件程序被执行时,能够实现本发明实施例提供的方法。FIG. 3 is a schematic diagram of a device structure of an apparatus for performing blood pressure prediction based on a synchronization signal according to Embodiment 3 of the present invention. The device includes a processor and a memory. The memory can be connected to the processor through a bus. The memory may be a non-volatile memory, such as a hard disk drive and a flash memory, and a software program and a device driver program are stored in the memory. The software program can execute various functions of the above method provided by the embodiments of the present invention; the device driver may be a network and interface driver. The processor is used to execute a software program, and when the software program is executed, the method provided in the embodiment of the present invention can be implemented.
需要说明的是,本发明实施例还提供了一种计算机可读存储介质。该计算机可读存储介质上存储有计算机程序,该计算机程序被处理器执行时,能够实现本发明实施例提供的方法。It should be noted that the embodiment of the present invention also provides a computer-readable storage medium. A computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the method provided in the embodiment of the present invention can be implemented.
本发明实施例还提供了一种包含指令的计算机程序产品。当该计算机程序产品在计算机上运行时,使得处理器执行上述方法。The embodiment of the present invention also provides a computer program product containing instructions. When the computer program product runs on the computer, the processor is caused to execute the above method.
本发明实施例提供的一种基于同步信号进行血压预测的方法和装置,对同步的ECG信号和PPG信号进行特征数据融合,再通过血压CNN模型和血压ANN模型组成的血压预测模型对融合数据进行特征计算及血压数据回归计算从而推算出测试者的血压数据,最后通过预测模式标识符的选择具体输出均值血压预测数据对(收缩压预测数据、舒张压预测数据)还是动态血压预测一维数据序列。通过本发明实施例,既避免了常规血压采集手段的繁琐和不适感,又产生了一种自动智能的数据分析方法,从而使得应用方可以方便地对被测对象进行多次连续监测。The embodiment of the present invention provides a method and device for blood pressure prediction based on synchronization signals, which perform feature data fusion on synchronized ECG signals and PPG signals, and then perform fusion data on the fusion data through a blood pressure prediction model composed of a blood pressure CNN model and a blood pressure ANN model Feature calculation and blood pressure data regression calculation to calculate the blood pressure data of the tester, and finally output the mean blood pressure prediction data pair (systolic blood pressure prediction data, diastolic blood pressure prediction data) or ambulatory blood pressure prediction one-dimensional data sequence through the selection of the prediction mode identifier . Through the embodiments of the present invention, the cumbersomeness and discomfort of conventional blood pressure collection methods are avoided, and an automatic and intelligent data analysis method is produced, so that the application party can conveniently perform multiple continuous monitoring of the measured object.
专业人员应该还可以进一步意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、计算机软件或者二者的结合来实现,为了清楚地说明硬件和软件的可互换性,在上述说明中已经按照功能一般性地描述了各示例的组成及步骤。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。Professionals should be further aware that the units and algorithm steps of the examples described in the embodiments disclosed in this article can be implemented by electronic hardware, computer software, or a combination of the two, in order to clearly illustrate the hardware and software Interchangeability, in the above description, the composition and steps of each example have been generally described in accordance with the function. Whether these functions are executed by hardware or software depends on the specific application and design constraint conditions of the technical solution. Professionals and technicians can use different methods for each specific application to implement the described functions, but such implementation should not be considered as going beyond the scope of the present invention.
结合本文中所公开的实施例描述的方法或算法的步骤可以用硬件、处理器执行的软件模块,或者二者的结合来实施。软件模块可以置于随机存储器(RAM)、内存、只读存储器(ROM)、电可编程ROM、电可擦除可编程ROM、寄存器、硬盘、可移动磁盘、CD-ROM、或技术领域内所公知的任意其它形式的存 储介质中。The steps of the method or algorithm described in combination with the embodiments disclosed herein can be implemented by hardware, a software module executed by a processor, or a combination of the two. The software module can be placed in random access memory (RAM), internal memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disks, removable disks, CD-ROMs, or all areas in the technical field. Any other known storage media.
以上所述的具体实施方式,对本发明的目的、技术方案和有益效果进行了进一步详细说明,所应理解的是,以上所述仅为本发明的具体实施方式而已,并不用于限定本发明的保护范围,凡在本发明的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The specific embodiments described above further describe the purpose, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above are only specific embodiments of the present invention, and are not intended to limit the scope of the present invention. The scope of protection, any modification, equivalent replacement, improvement, etc., made within the spirit and principle of the present invention shall be included in the scope of protection of the present invention.

Claims (13)

  1. 一种基于同步信号进行血压预测的方法,其特征在于,所述方法包括:A method for predicting blood pressure based on a synchronization signal, characterized in that the method includes:
    获取光体积变化描记图法PPG信号数据和与之同步的心电图ECG信号数据;并按数据采样频率阈值,分别对所述PPG信号数据和所述ECG信号数据进行信号采样处理生成PPG一维数据序列和生成ECG一维数据序列;Acquire the PPG signal data of the photoplethysmography method and the ECG signal data synchronized with it; and according to the data sampling frequency threshold, perform signal sampling processing on the PPG signal data and the ECG signal data to generate a PPG one-dimensional data sequence And generate ECG one-dimensional data sequence;
    根据血压卷积神经网络CNN模型的输入数据长度阈值N,对所述PPG一维数据序列和所述ECG一维数据序列,进行血压CNN输入数据融合处理生成输入数据四维张量;According to the input data length threshold N of the blood pressure convolutional neural network CNN model, perform blood pressure CNN input data fusion processing on the PPG one-dimensional data sequence and the ECG one-dimensional data sequence to generate a four-dimensional tensor of input data;
    按卷积层数阈值,利用所述血压CNN模型对所述输入数据四维张量进行多层卷积池化计算生成特征数据四维张量;According to the threshold of the number of convolutional layers, using the blood pressure CNN model to perform multi-layer convolution pooling calculation on the four-dimensional tensor of the input data to generate a four-dimensional tensor of feature data;
    根据所述特征数据四维张量进行血压人工神经网络ANN模型的输入数据二维矩阵构建操作生成输入数据二维矩阵;并利用所述血压ANN模型对所述输入数据二维矩阵进行特征数据回归计算生成血压回归数据二维矩阵;Perform a two-dimensional matrix construction operation of input data of a blood pressure artificial neural network ANN model according to the four-dimensional tensor of the feature data to generate a two-dimensional matrix of input data; and use the blood pressure ANN model to perform feature data regression calculation on the two-dimensional matrix of input data Generate a two-dimensional matrix of blood pressure regression data;
    获取预测模式标识符;所述预测模式标识符包括均值预测和动态预测两种标识符;Obtaining a prediction mode identifier; the prediction mode identifier includes two identifiers of mean prediction and dynamic prediction;
    当所述预测模式标识符为所述均值预测时,对所述血压回归数据二维矩阵,进行均值血压计算操作生成均值血压预测数据对;所述均值血压预测数据对包括舒张压预测数据和收缩压预测数据;When the prediction mode identifier is the average prediction, the average blood pressure calculation operation is performed on the two-dimensional matrix of blood pressure regression data to generate an average blood pressure prediction data pair; the average blood pressure prediction data pair includes diastolic blood pressure prediction data and systolic blood pressure prediction data. Pressure forecast data;
    当所述预测模式标识符为所述动态预测时,对所述血压回归数据二维矩阵,进行动态血压数据提取操作生成动态血压预测一维数据序列。When the prediction mode identifier is the dynamic prediction, performing an ambulatory blood pressure data extraction operation on the two-dimensional matrix of blood pressure regression data to generate an ambulatory blood pressure prediction one-dimensional data sequence.
  2. 根据权利要求1所述的基于同步信号进行血压预测的方法,其特征在于,The method for blood pressure prediction based on a synchronization signal according to claim 1, wherein:
    所述PPG信号数据是,通过使用无创PPG信号采集设备在信号采集时间阈值内对测试者局部皮肤表面进行预置光源信号采集操作生成的;The PPG signal data is generated by using a non-invasive PPG signal acquisition device to perform a preset light source signal acquisition operation on the tester's local skin surface within a signal acquisition time threshold;
    所述ECG信号数据是,与采集所述PPG信号数据同步的,通过使用无创ECG信号采集设备在所述信号采集时间阈值内对所述测试者进行心电生理信 号采集操作生成的;The ECG signal data is synchronized with the collection of the PPG signal data, and is generated by using a non-invasive ECG signal collection device to perform an electrophysiological signal collection operation on the tester within the signal collection time threshold;
    所述PPG一维数据序列具体为PPG一维数据序列[A];所述PPG一维数据序列[A]包括所述A个PPG数据;所述A为所述数据采样频率阈值乘以所述信号采集时间阈值的乘积;The PPG one-dimensional data sequence is specifically a PPG one-dimensional data sequence [A]; the PPG one-dimensional data sequence [A] includes the A pieces of PPG data; and the A is the data sampling frequency threshold multiplied by the The product of the signal acquisition time threshold;
    所述ECG一维数据序列具体为ECG一维数据序列[A];所述ECG一维数据序列[A]包括所述A个ECG数据。The ECG one-dimensional data sequence is specifically an ECG one-dimensional data sequence [A]; the ECG one-dimensional data sequence [A] includes the A pieces of ECG data.
  3. 根据权利要求2所述的基于同步信号进行血压预测的方法,其特征在于,所述根据血压卷积神经网络CNN模型的输入数据长度阈值N,对所述PPG一维数据序列和所述ECG一维数据序列,进行血压CNN输入数据融合处理生成输入数据四维张量,具体包括:The method for blood pressure prediction based on synchronization signals according to claim 2, characterized in that, according to the input data length threshold N of the blood pressure convolutional neural network CNN model, the PPG one-dimensional data sequence and the ECG one Dimensional data sequence, perform blood pressure CNN input data fusion processing to generate a four-dimensional tensor of input data, including:
    根据所述输入数据长度阈值N与所述A计算片段总数M;当所述A能被所述输入数据长度阈值N整除时,设置所述片段总数M为所述A除以所述输入数据长度阈值N的商;当所述A不能被所述输入数据长度阈值N整除时,设置所述片段总数M为对所述A除以所述输入数据长度阈值N的商进行取整计算的结果;Calculate the total number of fragments M according to the input data length threshold N and the A; when the A is divisible by the input data length threshold N, set the total number of fragments M as the A divided by the input data length The quotient of the threshold N; when the A is not divisible by the input data length threshold N, the total number of fragments M is set as the result of the rounding calculation of the quotient of the A divided by the input data length threshold N;
    根据所述片段总数M和所述输入数据长度阈值N,对所述PPG一维数据序列[A]进行顺序数据片段划分处理生成PPG片段数据二维矩阵[M,N],对所述ECG一维数据序列[A]进行顺序数据片段划分处理生成ECG片段数据二维矩阵[M,N];According to the total number of fragments M and the input data length threshold N, the PPG one-dimensional data sequence [A] is subjected to sequential data fragment division processing to generate a PPG fragment data two-dimensional matrix [M, N], and the ECG one Dimensional data sequence [A] performs sequential data segmentation processing to generate a two-dimensional matrix of ECG segment data [M,N];
    对所述PPG片段数据二维矩阵[M,N]和所述ECG片段数据二维矩阵[M,N],进行输入数据融合处理,生成融合片段数据二维矩阵[M,2*N];Perform input data fusion processing on the two-dimensional matrix of PPG fragment data [M, N] and the two-dimensional matrix of ECG fragment data [M, N] to generate a two-dimensional matrix of fused fragment data [M, 2*N];
    对所述融合片段数据二维矩阵[M,2*N],进行血压CNN输入数据四维张量转换处理,生成所述输入数据四维张量[B 1,H 1,W 1,C 1];所述B 1为所述输入数据四维张量[B 1,H 1,W 1,C 1]的第四维度参数,且所述B 1为所述片段总数M;所述H 1为所述输入数据四维张量[B 1,H 1,W 1,C 1]的第三维度参数,且所述H 1的值为2;所述W 1为所述输入数据四维张量[B 1,H 1,W 1,C 1]的第二维度参数,且所述W 1为所 述输入数据长度阈值N;所述C 1为所述输入数据四维张量[B 1,H 1,W 1,C 1]的第一维度参数,且所述C 1的值为1。 Perform a four-dimensional tensor conversion process of blood pressure CNN input data on the two-dimensional matrix [M,2*N] of the fusion segment data to generate the four-dimensional tensor [B 1 , H 1 , W 1 , C 1 ] of the input data; The B 1 is the fourth dimension parameter of the input data four-dimensional tensor [B 1 , H 1 , W 1 , C 1 ], and the B 1 is the total number of fragments M; the H 1 is the The input data four-dimensional tensor [B 1 , H 1 , W 1 , C 1 ] is the third-dimensional parameter, and the value of H 1 is 2; the W 1 is the input data four-dimensional tensor [B 1 , H 1 , W 1 , C 1 ] second dimension parameter, and the W 1 is the input data length threshold N; the C 1 is the input data four-dimensional tensor [B 1 , H 1 , W 1 , C 1 ] is the first dimension parameter, and the value of C 1 is 1.
  4. 根据权利要求3所述的基于同步信号进行血压预测的方法,其特征在于,所述根据所述片段总数M和所述输入数据长度阈值N,对所述PPG一维数据序列[A]进行顺序数据片段划分处理生成PPG片段数据二维矩阵[M,N],对所述ECG一维数据序列[A]进行顺序数据片段划分处理生成ECG片段数据二维矩阵[M,N],具体包括:The method for blood pressure prediction based on a synchronization signal according to claim 3, wherein the sequence of the PPG one-dimensional data sequence [A] is performed according to the total number of fragments M and the input data length threshold N. The data segment division processing generates a two-dimensional PPG segment data matrix [M, N], and the sequential data segment division processing is performed on the ECG one-dimensional data sequence [A] to generate a two-dimensional ECG segment data matrix [M, N], which specifically includes:
    根据所述片段总数M和所述输入数据长度阈值N的乘积,生成临时数据长度L;Generate a temporary data length L according to the product of the total number of fragments M and the input data length threshold N;
    从所述PPG一维数据序列[A]中,以第一个数据为数据起始提取位置,以所述临时数据长度L为数据提取长度,提取一段连续数据生成PPG一维临时数据序列[L];并根据所述输入数据长度阈值N对所述PPG一维临时数据序列[L]进行连续数据片段划分处理;所述PPG一维临时数据序列[L]包括所述片段总数M个PPG一维片段数据序列[N];所述PPG一维片段数据序列[N]包括所述输入数据长度阈值N个所述PPG数据;From the PPG one-dimensional data sequence [A], taking the first data as the starting data extraction position and the temporary data length L as the data extraction length, extract a piece of continuous data to generate the PPG one-dimensional temporary data sequence [L ]; and according to the input data length threshold N, the PPG one-dimensional temporary data sequence [L] is subjected to continuous data segment division processing; the PPG one-dimensional temporary data sequence [L] includes the total number of segments M PPG one One-dimensional segment data sequence [N]; the PPG one-dimensional segment data sequence [N] includes the input data length threshold N pieces of the PPG data;
    从所述ECG一维数据序列[A]中,以第一个数据为数据起始提取位置,以所述临时数据长度L为数据提取长度,提取一段连续数据生成ECG一维临时数据序列[L];并根据所述输入数据长度阈值N对所述ECG一维临时数据序列[L]进行连续数据片段划分处理;所述ECG一维临时数据序列[L]包括所述片段总数M个ECG一维片段数据序列[N];所述ECG一维片段数据序列[N]包括所述输入数据长度阈值N个所述ECG数据;From the ECG one-dimensional data sequence [A], taking the first data as the starting data extraction position and the temporary data length L as the data extraction length, extract a piece of continuous data to generate an ECG one-dimensional temporary data sequence [L ]; and according to the input data length threshold N, the ECG one-dimensional temporary data sequence [L] is subjected to continuous data segment division processing; the ECG one-dimensional temporary data sequence [L] includes the total number of segments M ECG one One-dimensional fragment data sequence [N]; the ECG one-dimensional fragment data sequence [N] includes the input data length threshold value N of the ECG data;
    构建所述PPG片段数据二维矩阵[M,N],并初始化所述PPG片段数据二维矩阵[M,N]的所有矩阵元素为空;从所述PPG一维临时数据序列[L]中,依次提取所述PPG一维临时数据序列[L]包括的所述PPG一维片段数据序列[N]对所述PPG片段数据二维矩阵[M,N]的矩阵元素进行赋值处理;Construct the PPG fragment data two-dimensional matrix [M, N], and initialize all matrix elements of the PPG fragment data two-dimensional matrix [M, N] to be empty; from the PPG one-dimensional temporary data sequence [L] , Sequentially extracting the PPG one-dimensional segment data sequence [N] included in the PPG one-dimensional temporary data sequence [L], and assigning values to the matrix elements of the PPG segment data two-dimensional matrix [M, N];
    构建所述ECG片段数据二维矩阵[M,N],并初始化所述ECG片段数据二维 矩阵[M,N]的所有矩阵元素为空;从所述ECG一维临时数据序列[L]中,依次提取所述ECG一维片段数据序列[N]对所述ECG片段数据二维矩阵[M,N]的矩阵元素进行赋值处理。Construct the ECG fragment data two-dimensional matrix [M, N], and initialize all matrix elements of the ECG fragment data two-dimensional matrix [M, N] to be empty; from the ECG one-dimensional temporary data sequence [L] , Sequentially extracting the ECG one-dimensional segment data sequence [N] to perform value assignment processing on the matrix elements of the ECG segment data two-dimensional matrix [M, N].
  5. 根据权利要求3所述的基于同步信号进行血压预测的方法,其特征在于,所述对所述PPG片段数据二维矩阵[M,N]和所述ECG片段数据二维矩阵[M,N],进行输入数据融合处理,生成融合片段数据二维矩阵[M,2*N],具体包括:The method for blood pressure prediction based on a synchronization signal according to claim 3, wherein said pair of said PPG segment data two-dimensional matrix [M, N] and said ECG segment data two-dimensional matrix [M, N] , Perform input data fusion processing to generate a two-dimensional matrix of fused fragment data [M,2*N], which specifically includes:
    步骤51,获取预置的融合排序标识;构建所述融合片段数据二维矩阵[M,2*N],并初始化所述融合片段数据二维矩阵[M,2*N]为空;构建第一序列[2*N];所述融合排序标识为PPG+ECG排序和ECG+PPG排序中的一种;所述第一序列[2*N]包括2*N个序列数据;Step 51: Obtain a preset fusion sorting flag; construct the two-dimensional matrix of fusion fragment data [M, 2*N], and initialize the two-dimensional matrix of fusion fragment data [M, 2*N] to be empty; construct the first A sequence [2*N]; the fusion sequence identifier is one of PPG+ECG sequence and ECG+PPG sequence; the first sequence [2*N] includes 2*N sequence data;
    步骤52,初始化第一索引的值为1,初始化第一总数的值为所述片段总数M;Step 52: Initialize the value of the first index to 1, and initialize the value of the first total to the total number of fragments M;
    步骤53,以所述第一索引减1的差与所述输入数据长度阈值N的乘积再加1的和为起始数据提取位置、以所述输入数据长度阈值N为提取数据长度,从所述PPG片段数据二维矩阵[M,N]中提取一段连续数据生成第二序列[N],并从所述ECG片段数据二维矩阵[M,N]中提取一段连续数据生成第三序列[N];Step 53: Taking the product of the difference of the first index minus 1 and the input data length threshold N plus 1 as the starting data extraction position, and the input data length threshold N as the extraction data length. Extract a piece of continuous data from the two-dimensional matrix of PPG fragment data [M, N] to generate a second sequence [N], and extract a piece of continuous data from the two-dimensional matrix of ECG fragment data [M, N] to generate a third sequence [ N];
    步骤54,根据所述融合排序标识,使用所述第二序列[N]和所述第三序列[N]对所述第一序列[2*N]进行赋值处理;当所述融合排序标识为所述PPG+ECG排序时,使用所述第二序列[N]对所述第一序列[2*N]包括的前N个所述序列数据进行赋值处理,并使用所述第三序列[N]对所述第一序列[2*N]包括的后N个所述序列数据进行赋值处理;当所述融合排序标识为所述ECG+PPG排序时,使用所述第三序列[N]对所述第一序列[2*N]包括的前N个所述序列数据进行赋值处理,并使用所述第二序列[N]对所述第一序列[2*N]包括的后N个所述序列数据进行赋值处理;Step 54: Use the second sequence [N] and the third sequence [N] to perform value assignment processing on the first sequence [2*N] according to the fusion order identifier; when the fusion order identifier is When the PPG+ECG is sorted, use the second sequence [N] to perform the assignment processing on the first N sequence data included in the first sequence [2*N], and use the third sequence [N ] Perform value assignment processing on the last N sequence data included in the first sequence [2*N]; when the fusion sequence identifier is the ECG+PPG sequence, use the third sequence [N] pair The first N sequence data included in the first sequence [2*N] are assigned values, and the second sequence [N] is used to perform the assignment processing on the last N data included in the first sequence [2*N]. Assign value to the sequence data;
    步骤55,使用所述第一序列[2*N]对所述融合片段数据二维矩阵[M,2*N] 进行序列数据添加操作;Step 55: Use the first sequence [2*N] to perform a sequence data addition operation on the two-dimensional matrix [M, 2*N] of fusion fragment data;
    步骤56,将所述第一索引加1;Step 56: Add 1 to the first index;
    步骤57,判断所述第一索引是否大于所述第一总数,如果所述第一索引大于所述第一总数转至步骤58,如果所述第一索引小于或等于所述第一总数转至步骤53;Step 57: Determine whether the first index is greater than the first total, if the first index is greater than the first total, go to step 58, if the first index is less than or equal to the first total, go to Step 53;
    步骤58,将所述融合片段数据二维矩阵[M,2*N]向上位应用进行返回。Step 58: Return the two-dimensional matrix [M, 2*N] of the fused segment data to the upper application.
  6. 根据权利要求3所述的基于同步信号进行血压预测的方法,其特征在于,所述对所述融合片段数据二维矩阵[M,2*N],进行血压CNN输入数据四维张量转换处理,生成所述输入数据四维张量[B 1,H 1,W 1,C 1],具体包括: The method for blood pressure prediction based on a synchronization signal according to claim 3, characterized in that the four-dimensional tensor conversion processing of blood pressure CNN input data is performed on the two-dimensional matrix [M, 2*N] of the fusion segment data, Generating the input data four-dimensional tensor [B 1 , H 1 , W 1 , C 1 ] specifically includes:
    构建所述输入数据四维张量[B 1,H 1,W 1,C 1],并初始化所述输入数据四维张量[B 1,H 1,W 1,C 1]为空;再依次提取所述融合片段数据二维矩阵[M,2*N]包括的矩阵元素对所述输入数据四维张量[B 1,H 1,W 1,C 1]进行数据项添加操作;所述输入数据四维张量[B 1,H 1,W 1,C 1]具体为输入数据四维张量[M,2,N,1]。 Construct the input data four-dimensional tensor [B 1 , H 1 , W 1 , C 1 ], and initialize the input data four-dimensional tensor [B 1 , H 1 , W 1 , C 1 ] to be empty; then extract sequentially The matrix elements included in the two-dimensional matrix [M, 2*N] of the fusion fragment data perform a data item addition operation on the four-dimensional tensor [B 1 , H 1 , W 1 , C 1 ] of the input data; the input data The four-dimensional tensor [B 1 , H 1 , W 1 , C 1 ] is specifically the input data four-dimensional tensor [M,2,N,1].
  7. 根据权利要求3所述的基于同步信号进行血压预测的方法,其特征在于,所述按卷积层数阈值,利用所述血压CNN模型对所述输入数据四维张量进行多层卷积池化计算生成特征数据四维张量,具体包括:The method for blood pressure prediction based on synchronization signals according to claim 3, characterized in that, according to the threshold of the number of convolutional layers, the blood pressure CNN model is used to perform multi-layer convolution pooling on the four-dimensional tensor of the input data Calculate and generate a four-dimensional tensor of feature data, including:
    步骤71,初始化第二索引的值为1;初始化第二总数为所述卷积层数阈值;初始化第二索引临时四维张量为所述输入数据四维张量[B 1,H 1,W 1,C 1]; Step 71: Initialize the value of the second index to 1; initialize the second total to the threshold of the number of convolutional layers; initialize the temporary four-dimensional tensor of the second index to the four-dimensional tensor of the input data [B 1 , H 1 , W 1 ,C 1 ];
    步骤72,利用所述血压CNN模型的第二索引层卷积层,对所述第二索引临时四维张量进行卷积计算处理,生成第二索引卷积输出数据四维张量;利用所述血压CNN模型的第二索引池化层,对所述第二索引卷积输出数据四维张量进行池化计算处理,生成第二索引池化输出数据四维张量;所述血压CNN模型包括多层所述卷积层和多层所述池化层;Step 72: Use the second index layer convolution layer of the blood pressure CNN model to perform convolution calculation processing on the second index temporary four-dimensional tensor to generate a second index convolution output data four-dimensional tensor; use the blood pressure The second index pooling layer of the CNN model performs pooling calculation processing on the four-dimensional tensor of the second index convolution output data to generate the four-dimensional tensor of the second index pooling output data; the blood pressure CNN model includes multiple layers. Said convolutional layer and multiple layers of said pooling layer;
    步骤73,设置所述第二索引临时四维张量为所述第二索引池化输出数据四维张量;Step 73: Set the temporary four-dimensional tensor of the second index as the four-dimensional tensor of the second index pooling output data;
    步骤74,将所述第二索引加1;Step 74: Add 1 to the second index;
    步骤75,判断所述第二索引是否大于所述第二总数,如果所述第二索引大于所述第二总数转至步骤76,如果所述第二索引小于或等于所述第二总数转至步骤72;Step 75: Determine whether the second index is greater than the second total, if the second index is greater than the second total, go to step 76, if the second index is less than or equal to the second total, go to Step 72;
    步骤76,设置所述特征数据四维张量为所述第二索引临时四维张量;所述特征数据四维张量具体为特征数据四维张量[B 2,H 2,W 2,C 2];所述B2为所述特征数据四维张量[B 2,H 2,W 2,C 2]的第四维度参数且所述B 2为所述B 1;所述H 2为所述特征数据四维张量[B 2,H 2,W 2,C 2]的第三维度参数;所述W 2为所述特征数据四维张量[B 2,H 2,W 2,C 2]的第二维度参数;所述C 2为所述特征数据四维张量[B 2,H 2,W 2,C 2]的第一维度参数。 Step 76: Set the feature data four-dimensional tensor as the second index temporary four-dimensional tensor; the feature data four-dimensional tensor is specifically the feature data four-dimensional tensor [B 2 , H 2 , W 2 , C 2 ]; The B2 is the fourth dimension parameter of the characteristic data four-dimensional tensor [B 2 , H 2 , W 2 , C 2 ] and the B 2 is the B 1 ; the H 2 is the characteristic data four-dimensional The third dimension parameter of the tensor [B 2 , H 2 , W 2 , C 2 ]; the W 2 is the second dimension of the feature data four-dimensional tensor [B 2 , H 2 , W 2 , C 2 ] Parameters; The C 2 is the first dimension parameter of the characteristic data four-dimensional tensor [B 2 , H 2 , W 2 , C 2 ].
  8. 根据权利要求7所述的基于同步信号进行血压预测的方法,其特征在于,所述根据所述特征数据四维张量进行血压人工神经网络ANN模型的输入数据二维矩阵构建操作生成输入数据二维矩阵;并利用所述血压ANN模型对所述输入数据二维矩阵进行特征数据回归计算生成血压回归数据二维矩阵,具体包括:The method for blood pressure prediction based on a synchronization signal according to claim 7, wherein the two-dimensional matrix construction operation of the input data of the blood pressure artificial neural network ANN model is performed according to the four-dimensional tensor of the characteristic data to generate the two-dimensional input data Matrix; and using the blood pressure ANN model to perform feature data regression calculation on the input data two-dimensional matrix to generate a blood pressure regression data two-dimensional matrix, which specifically includes:
    根据所述特征数据四维张量[B 2,H 2,W 2,C 2],对所述特征数据四维张量[B 2,H 2,W 2,C 2]进行张量数据降维处理构建所述输入数据二维矩阵;所述输入数据二维矩阵具体为输入数据二维矩阵[W 3,C 3];所述W 3为所述输入数据二维矩阵[W 3,C 3]的第二维度参数且所述W 3为所述B 2;所述C 3为所述输入数据二维矩阵[W 3,C 3]的第一维度参数且所述C 3为所述H 2乘以所述W 2再乘以所述C 2的乘积; According to the feature data four-dimensional tensor [B 2 , H 2 , W 2 , C 2 ], perform tensor data dimensionality reduction processing on the feature data four-dimensional tensor [B 2 , H 2 , W 2 , C 2] Construct the input data two-dimensional matrix; the input data two-dimensional matrix is specifically the input data two-dimensional matrix [W 3 , C 3 ]; the W 3 is the input data two-dimensional matrix [W 3 , C 3 ] The second dimension parameter of the W 3 is the B 2 ; the C 3 is the first dimension parameter of the input data two-dimensional matrix [W 3 , C 3 ] and the C 3 is the H 2 Multiply by the product of W 2 and then by the product of C 2;
    利用所述血压ANN模型,对所述输入数据二维矩阵[W 3,C 3]进行特征数据回归计算生成血压回归数据二维矩阵;所述血压回归数据二维矩阵具体为血压回归数据二维矩阵[X,2];所述X为所述血压回归数据二维矩阵[X,2]的第二维度参数且所述X为所述W 3;所述血压回归数据二维矩阵[X,2]包括所述X个回归数据一维数据序列[2];所述回归数据一维数据序列[2]包括所述片段收缩压数据和所述片段舒张压数据。 Using the blood pressure ANN model, perform characteristic data regression calculation on the input data two-dimensional matrix [W 3 , C 3 ] to generate a blood pressure regression data two-dimensional matrix; the blood pressure regression data two-dimensional matrix is specifically blood pressure regression data two-dimensional Matrix [X, 2]; the X is the second dimension parameter of the blood pressure regression data two-dimensional matrix [X, 2] and the X is the W 3 ; the blood pressure regression data two-dimensional matrix [X, 2] includes the X regression data one-dimensional data sequence [2]; the regression data one-dimensional data sequence [2] includes the fragment systolic blood pressure data and the fragment diastolic blood pressure data.
  9. 根据权利要求8所述的基于同步信号进行血压预测的方法,其特征在于,所述当所述预测模式标识符为所述均值预测时,对所述血压回归数据二维矩阵,进行均值血压计算操作生成均值血压预测数据对,具体包括:The method for blood pressure prediction based on a synchronization signal according to claim 8, wherein when the prediction mode identifier is the average prediction, the average blood pressure is calculated on the two-dimensional matrix of blood pressure regression data Operate to generate mean blood pressure prediction data pair, including:
    当所述预测模式标识符为所述均值预测时,设置所述均值血压预测数据对;并初始化所述均值血压预测数据对的所述舒张压预测数据为空,初始化所述均值血压预测数据对的所述收缩压数据为空;When the prediction mode identifier is the average prediction, the average blood pressure prediction data pair is set; and the diastolic blood pressure prediction data of the average blood pressure prediction data pair is initialized to be empty, and the average blood pressure prediction data pair is initialized The systolic blood pressure data of is empty;
    对所述血压回归数据二维矩阵[X,2]包括的所有所述回归数据一维数据序列[2]的所述片段舒张压数据进行总和计算生成舒张压总和,根据所述舒张压总和除以所述X的商生成第一均值;对所述血压回归数据二维矩阵[X,2]包括的所有所述回归数据一维数据序列[2]的所述片段收缩压数据进行总和计算生成收缩压总和,根据所述收缩压总和除以所述X的商生成第二均值;The sum of the diastolic blood pressure data of all the pieces of the regression data one-dimensional data sequence [2] included in the blood pressure regression data two-dimensional matrix [X, 2] is calculated to generate the sum of diastolic blood pressure, which is divided by the sum of diastolic blood pressure Use the quotient of X to generate the first mean value; generate the sum of the systolic blood pressure data of all the regression data one-dimensional data sequence [2] included in the blood pressure regression data two-dimensional matrix [X, 2] The sum of systolic blood pressures, the second mean value is generated according to the quotient of the sum of systolic blood pressures divided by the X;
    设置所述均值血压预测数据对的所述舒张压预测数据为所述第一均值;设置所述均值血压预测数据对的所述收缩压预测数据为所述第二均值。Set the diastolic blood pressure prediction data of the average blood pressure prediction data pair as the first average value; set the systolic blood pressure prediction data of the average blood pressure prediction data pair as the second average value.
  10. 根据权利要求8所述的基于同步信号进行血压预测的方法,其特征在于,所述当所述预测模式标识符为所述动态预测时,对所述血压回归数据二维矩阵,进行动态血压数据提取操作生成动态血压预测一维数据序列,具体包括:The method for blood pressure prediction based on a synchronization signal according to claim 8, wherein when the prediction mode identifier is the dynamic prediction, perform dynamic blood pressure data on the two-dimensional matrix of blood pressure regression data The extraction operation generates a one-dimensional data sequence of ambulatory blood pressure prediction, which specifically includes:
    当所述预测模式标识符为所述动态预测时,初始化所述动态血压预测一维数据序列为空;设置血压数据组;初始化所述血压数据组的舒张压数据为空;初始化所述血压数据组的收缩压数据为空;When the prediction mode identifier is the dynamic prediction, initialize the ambulatory blood pressure prediction one-dimensional data sequence to be empty; set the blood pressure data group; initialize the diastolic blood pressure data of the blood pressure data group to be empty; initialize the blood pressure data The systolic blood pressure data of the group is empty;
    依次提取所述血压回归数据二维矩阵[X,2]包括的所述回归数据一维数据序列[2]生成当前数据序列[2];设置所述血压数据组的所述收缩压数据为所述当前数据序列[2]的所述片段收缩压数据,设置所述血压数据组的所述舒张压数据为所述当前数据序列[2]的所述片段舒张压数据;并将所述血压数据组向所述动态血压预测一维数据序列进行数据组添加操作。The one-dimensional data sequence [2] of the regression data included in the two-dimensional matrix [X, 2] of the blood pressure regression data is sequentially extracted to generate the current data sequence [2]; the systolic blood pressure data of the blood pressure data group is set to all The segment systolic blood pressure data of the current data sequence [2], the diastolic blood pressure data of the blood pressure data group is set to the segment diastolic blood pressure data of the current data sequence [2]; and the blood pressure data The group performs a data group addition operation to the ambulatory blood pressure prediction one-dimensional data sequence.
  11. 一种设备,包括存储器和处理器,其特征在于,所述存储器用于存储 程序,所述处理器用于执行如权利要求1至10任一项所述的方法。A device comprising a memory and a processor, wherein the memory is used to store a program, and the processor is used to execute the method according to any one of claims 1 to 10.
  12. 一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行如权利要求1至10任一项所述的方法。A computer program product containing instructions that, when run on a computer, causes the computer to execute the method according to any one of claims 1 to 10.
  13. 一种计算机可读存储介质,包括指令,当所述指令在计算机上运行时,使所述计算机执行根据权利要求1至10任一项所述的方法。A computer-readable storage medium, comprising instructions, which when run on a computer, cause the computer to execute the method according to any one of claims 1 to 10.
PCT/CN2020/129642 2020-03-17 2020-11-18 Synchronization signal-based blood pressure prediction method and apparatus WO2021184801A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010189179.5A CN111358452B (en) 2020-03-17 2020-03-17 Method and device for predicting blood pressure based on synchronous signal
CN202010189179.5 2020-03-17

Publications (1)

Publication Number Publication Date
WO2021184801A1 true WO2021184801A1 (en) 2021-09-23

Family

ID=71198697

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/129642 WO2021184801A1 (en) 2020-03-17 2020-11-18 Synchronization signal-based blood pressure prediction method and apparatus

Country Status (2)

Country Link
CN (1) CN111358452B (en)
WO (1) WO2021184801A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111248883B (en) * 2020-02-21 2022-08-02 乐普(北京)医疗器械股份有限公司 Blood pressure prediction method and device
CN111358452B (en) * 2020-03-17 2022-07-29 乐普(北京)医疗器械股份有限公司 Method and device for predicting blood pressure based on synchronous signal
CN112336325B (en) * 2020-10-12 2024-02-23 乐普(北京)医疗器械股份有限公司 Blood pressure prediction method and device integrating calibration photoplethysmograph signal data

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102429649A (en) * 2011-12-14 2012-05-02 中国航天员科研训练中心 Continuous blood pressure measuring device
CN102488503A (en) * 2011-12-14 2012-06-13 中国航天员科研训练中心 Continuous blood pressure measurer
US20200015755A1 (en) * 2018-07-12 2020-01-16 The Chinese University Of Hong Kong Deep learning approach for long term, cuffless, and continuous arterial blood pressure estimation
CN111248883A (en) * 2020-02-21 2020-06-09 乐普(北京)医疗器械股份有限公司 Blood pressure prediction method and device
CN111358451A (en) * 2020-03-17 2020-07-03 乐普(北京)医疗器械股份有限公司 Blood pressure prediction method and device
CN111358452A (en) * 2020-03-17 2020-07-03 乐普(北京)医疗器械股份有限公司 Method and device for predicting blood pressure based on synchronous signal

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6994714B2 (en) * 2017-10-03 2022-01-14 東亞合成株式会社 Antiviral peptides and their uses
KR102098561B1 (en) * 2018-07-10 2020-04-08 재단법인 아산사회복지재단 Method and program for stroke volume acquisition using arterial pressure waveform
CN109288508A (en) * 2018-08-18 2019-02-01 浙江好络维医疗技术有限公司 A kind of pressure value intelligent measurement method based on CRNN-BP
CN109965862B (en) * 2019-04-16 2022-08-02 重庆大学 Construction method of sleeveless long-time continuous blood pressure non-invasive monitoring model

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102429649A (en) * 2011-12-14 2012-05-02 中国航天员科研训练中心 Continuous blood pressure measuring device
CN102488503A (en) * 2011-12-14 2012-06-13 中国航天员科研训练中心 Continuous blood pressure measurer
US20200015755A1 (en) * 2018-07-12 2020-01-16 The Chinese University Of Hong Kong Deep learning approach for long term, cuffless, and continuous arterial blood pressure estimation
CN111248883A (en) * 2020-02-21 2020-06-09 乐普(北京)医疗器械股份有限公司 Blood pressure prediction method and device
CN111358451A (en) * 2020-03-17 2020-07-03 乐普(北京)医疗器械股份有限公司 Blood pressure prediction method and device
CN111358452A (en) * 2020-03-17 2020-07-03 乐普(北京)医疗器械股份有限公司 Method and device for predicting blood pressure based on synchronous signal

Also Published As

Publication number Publication date
CN111358452A (en) 2020-07-03
CN111358452B (en) 2022-07-29

Similar Documents

Publication Publication Date Title
WO2021184801A1 (en) Synchronization signal-based blood pressure prediction method and apparatus
WO2021164346A1 (en) Method and device for predicting blood pressure
JP7261811B2 (en) Systems and methods for non-invasive determination of blood pressure lowering based on trained predictive models
WO2021208490A1 (en) Blood pressure measuring method and device based on deep neural network
WO2021164345A1 (en) Blood pressure prediction method and device
CN110619322A (en) Multi-lead electrocardio abnormal signal identification method and system based on multi-flow convolution cyclic neural network
Maqsood et al. A benchmark study of machine learning for analysis of signal feature extraction techniques for blood pressure estimation using photoplethysmography (PPG)
CN111297349A (en) Machine learning-based heart rhythm classification system
WO2021164347A1 (en) Method and apparatus for predicting blood pressure
CN112906748A (en) 12-lead ECG arrhythmia detection classification model construction method based on residual error network
WO2021184802A1 (en) Blood pressure classification prediction method and apparatus
CN110558960A (en) continuous blood pressure non-invasive monitoring method based on PTT and MIV-GA-SVR
WO2021184803A1 (en) Blood pressure classification method and apparatus
CN111358451B (en) Blood pressure prediction method and device
CN115024725A (en) Tumor treatment aid decision-making system integrating psychological state multi-parameter detection
Wang Automated detection of premature ventricular contraction based on the improved gated recurrent unit network
WO2023240739A2 (en) Intelligent blood pressure prediction method based on multi-scale residual network and ppg signal
Haroon ECG arrhythmia classification Using deep convolution neural networks in transfer learning
CN116269426A (en) Twelve-lead ECG-assisted heart disease multi-mode fusion screening method
CN116138755A (en) Method for constructing model for noninvasive blood pressure monitoring and wearable device
CN112842355B (en) Electrocardiosignal heart beat detection and identification method based on deep learning target detection
CN112022140B (en) Automatic diagnosis method and system for diagnosis conclusion of electrocardiogram
Liu et al. Central aortic blood pressure waveform estimation with a temporal convolutional network
CN113456043A (en) Continuous blood pressure detection method and device
Mladenovska et al. Estimation of Blood Pressure from Arterial Blood Pressure using PPG Signals

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20925106

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20925106

Country of ref document: EP

Kind code of ref document: A1