Blood electrolyte concentration noninvasive measurement method and device, computer equipment and storage medium

By cleaning and pre-processing the electrocardiogram signal, using deep learning models to predict blood electrolyte concentrations, the problem of time-consuming, labor-intensive and accurate traditional monitoring methods is solved, and non-invasive, real-time and accurate blood electrolytes are achieved. Concentration monitoring.

CN118873134APending Publication Date: 2024-11-01WEST CHINA HOSPITAL SICHUAN UNIV +1

Patent Information

Application Number
CN202410935062.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-12
Publication Date
2024-11-01

AI Technical Summary

Technical Problem

When monitoring the blood electrolyte concentration of patients, traditional blood collection methods are time-consuming and labor-intensive and cannot be warned in real time. The wearable device has low accuracy in measuring sweat ion levels, which cannot effectively solve the real-time monitoring needs of blood electrolyte disorders.

Method used

By collecting electrocardiogram signals for data cleaning and preprocessing, the deep convolution model and deep circulatory neural network model are used to predict blood electrolyte concentration, and the electrolyte concentration prediction is combined with historical feature vectors.

Benefits of technology

It realizes non-invasive and real-time monitoring of blood electrolyte concentrations, reduces the physical burden and labor costs of patients, avoids the complication risk of traditional blood collection examinations, and improves the accuracy and timeliness of monitoring.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118873134A_ABST
    Figure CN118873134A_ABST
Patent Text Reader

Abstract

The invention discloses a blood electrolyte concentration noninvasive measurement method and device, computer equipment and a storage medium. The method comprises the steps that initial electrocardiosignals of a preset time window are collected, data cleaning is conducted on the initial electrocardiosignals, and optimized electrocardiosignals are obtained; performing data preprocessing on the optimized electrocardiosignal to obtain average cardiac beat data; inputting the average heart beat data into a preset depth convolution model to obtain a depth feature vector at the current moment; and acquiring a depth feature vector at a historical moment, and inputting the depth feature vector at the current moment and the depth feature vector at the historical moment into a preset depth recurrent neural network model to obtain an electrolyte concentration predicted value. The blood electrolyte concentration is predicted through the electrocardiosignals, the body burden of a patient can be effectively reduced, the complication risk possibly brought by invasive examination is avoided, in addition, real-time monitoring and early warning can be achieved, the hysteresis of traditional blood sampling examination is avoided, higher accuracy is achieved, and the labor and time cost is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of signal processing technology, and in particular to a method, device, computer equipment and storage medium for non-invasively measuring blood electrolyte concentration. Background Art

[0002] Clinically, monitoring the concentration of electrolytes such as potassium, magnesium, calcium, and phosphorus in patients' blood is important because electrolyte disorders in patients' blood are closely related to a series of subsequent adverse events. Currently, there are two conventional methods for monitoring blood electrolyte concentrations in patients. One is to collect blood and send it to the laboratory for testing. This method is time-consuming and labor-intensive, may increase the burden on patients, and cannot provide real-time monitoring and early warning. The other method uses wearable biosensors to measure the ion levels in sweat, but due to the differences between sweat and blood, the estimation results are not accurate. Summary of the invention

[0003] In view of this, the purpose of the present invention is to overcome the deficiencies in the prior art and to provide a method, device, computer equipment and storage medium for non-invasive measurement of blood electrolyte concentration.

[0004] The present invention provides the following technical solutions:

[0005] In a first aspect, the present disclosure provides a method for non-invasively measuring blood electrolyte concentration, the method comprising:

[0006] Collecting an initial ECG signal in a preset time window, performing data cleaning on the initial ECG signal, and obtaining an optimized ECG signal;

[0007] Performing data preprocessing on the optimized electrocardiogram signal to obtain average heart beat data;

[0008] Inputting the average heartbeat data into a preset deep convolution model to obtain a deep feature vector at the current moment;

[0009] The deep feature vectors of the historical moments are obtained, and the deep feature vectors of the current moment and the deep feature vectors of the historical moments are input into a preset deep recurrent neural network model to obtain a predicted value of the electrolyte concentration.

[0010] Optionally, the initial ECG signal includes a plurality of initial signal sample points, and the data cleaning of the initial ECG signal to obtain the optimized ECG signal includes:

[0011] Calculate the total energy of the initial ECG signal according to a preset energy calculation formula, and when the total energy is lower than a preset energy threshold, use the initial ECG signal as the optimized ECG signal, otherwise collect the next initial ECG signal;

[0012] Wherein, the preset energy calculation formula is:

[0013]

[0014] Where E is the total energy, x i is the i-th initial signal sample point, and n is the number of the initial signal sample points.

[0015] Optionally, performing data preprocessing on the optimized electrocardiogram signal to obtain average heartbeat data includes:

[0016] Down-sampling the optimized ECG signal through an anti-aliasing filter to obtain a down-sampled ECG signal with a preset sampling frequency;

[0017] The power frequency noise in the downsampled ECG signal is filtered out by a notch filter, and the low frequency noise in the downsampled ECG signal is filtered out by a high pass filter to obtain a de-noised ECG signal;

[0018] The noise-reduced electrocardiogram signal is segmented to obtain a plurality of initial heart beats, the sampling points of the initial heart beats are aligned to obtain a plurality of aligned heart beats, and the aligned heart beats are averaged to obtain the average heart beat data.

[0019] Optionally, the preset deep convolution model includes a one-dimensional deep convolution layer, a batch normalization layer and a maximum pooling layer, the one-dimensional deep convolution layer includes a channel-by-channel convolution layer and a point-by-point convolution layer, and the preset deep recurrent neural network model includes a long short-term memory module and a fully connected layer.

[0020] Optionally, inputting the average heartbeat data into a preset deep convolution model to obtain a deep feature vector at the current moment includes:

[0021] Input the average heartbeat data into the channel-by-channel convolution layer, perform feature extraction on the average heartbeat data through the channel-by-channel convolution layer to obtain first heartbeat data, input the first heartbeat data into the point-by-point convolution layer, perform channel integration and dimension transformation on the first heartbeat data through the point-by-point convolution layer to obtain second heartbeat data;

[0022] Inputting the second heartbeat data into the maximum pooling layer, and performing dimension reduction on the second heartbeat data through the maximum pooling layer to obtain third heartbeat data;

[0023] The third heartbeat data is input into the batch normalization layer, and the elements at the same position in the third heartbeat data are normalized by the batch normalization layer to obtain the depth feature vector at the current moment.

[0024] Optionally, reducing the dimension of the second heartbeat data by the maximum pooling layer to obtain third heartbeat data includes:

[0025] Obtaining a pooling window of a preset length and a preset moving step length, and sliding the pooling window of the preset length on the second heartbeat data according to the preset moving step length to obtain a plurality of sliding data;

[0026] A maximum value among the sliding data is obtained, and the maximum value among the sliding data is used as the third heartbeat data.

[0027] Optionally, the step of inputting the deep feature vector at the current moment and the deep feature vector at the historical moment into a preset deep recurrent neural network model to obtain a predicted value of electrolyte concentration includes:

[0028] Inputting the depth feature vector of the current moment and the depth feature vector of the historical moment into the long short-term memory module, connecting the depth feature vector of the historical moment to the depth feature vector of the current moment through the long short-term memory module, and processing the time series signals in the depth feature vector of the historical moment and the depth feature vector of the current moment in chronological order to obtain a state vector;

[0029] The state vector is input into the fully connected layer, and the state vector is linearly transformed through the fully connected layer to obtain the predicted value of the electrolyte concentration.

[0030] In a second aspect, the present disclosure provides a non-invasive blood electrolyte concentration measurement device, the device comprising:

[0031] A data acquisition module, used for acquiring an initial ECG signal in a preset time window, and performing data cleaning on the initial ECG signal to obtain an optimized ECG signal;

[0032] A data preprocessing module, used for performing data preprocessing on the optimized ECG signal to obtain average heart beat data;

[0033] A feature extraction module, used for inputting the average heartbeat data into a preset deep convolution model to obtain a deep feature vector at the current moment;

[0034] The electrolyte concentration prediction module is used to obtain the deep feature vector of the historical moment, input the deep feature vector of the current moment and the deep feature vector of the historical moment into a preset deep recurrent neural network model to obtain the predicted value of the electrolyte concentration.

[0035] In a third aspect, a computer device is provided in an embodiment of the present disclosure, the computer device comprising a memory and a processor, the memory storing a computer program, and the processor implementing the steps of the non-invasive measurement method of blood electrolyte concentration described in the first aspect when executing the computer program.

[0036] In a fourth aspect, a computer-readable storage medium is provided in an embodiment of the present disclosure, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the non-invasive measurement method of blood electrolyte concentration described in the first aspect are implemented.

[0037] Beneficial effects of this application:

[0038] The non-invasive measurement method of blood electrolyte concentration provided in the embodiment of the present application collects the initial ECG signal of a preset time window, performs data cleaning on the initial ECG signal, and obtains an optimized ECG signal; performs data preprocessing on the optimized ECG signal to obtain average heartbeat data; inputs the average heartbeat data into a preset deep convolution model to obtain a deep feature vector at the current moment; obtains the deep feature vector at a historical moment, and inputs the deep feature vector at the current moment and the deep feature vector at the historical moment into a preset deep recurrent neural network model to obtain an electrolyte concentration prediction. The present application uses ECG signals to predict blood electrolyte concentration, which can effectively reduce the patient's physical burden and avoid the risk of complications that may be caused by invasive examinations. In addition, real-time monitoring and early warning can be achieved, avoiding the lag of traditional blood sampling examinations, having higher accuracy, and reducing manpower and time costs.

[0039] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and understandable, preferred embodiments are given below and described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for use in the embodiments. It should be understood that the following drawings only illustrate certain embodiments of the present invention and should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work. In each drawing, similar components are numbered similarly.

[0041] Figure 1 A flow chart of a non-invasive method for measuring blood electrolyte concentration provided by an embodiment of the present application is shown;

[0042] Figure 2 A schematic diagram of a preset deep convolution model provided in an embodiment of the present application is shown;

[0043] Figure 3 A schematic diagram of a one-dimensional deep convolutional layer provided in an embodiment of the present application is shown;

[0044] Figure 4 A schematic diagram of the structure of a non-invasive blood electrolyte concentration measurement device provided in an embodiment of the present application is shown;

[0045] Figure 5 A schematic diagram of the structure of a computer device provided in an embodiment of the present application is shown. DETAILED DESCRIPTION

[0046] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and cannot be understood as limiting the present invention.

[0047] It should be noted that when an element is referred to as being "fixed to" another element, it may be directly on the other element or there may also be a centered element. When an element is considered to be "connected to" another element, it may be directly connected to the other element or there may be a centered element at the same time. In contrast, when an element is referred to as being "directly on" another element, there is no intermediate element. The terms "vertical", "horizontal", "left", "right" and similar expressions used herein are for illustrative purposes only.

[0048] In the present invention, unless otherwise clearly specified and limited, the terms "installed", "connected", "connected", "fixed" and the like should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, it can be the internal connection of two elements or the interaction relationship between two elements. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0049] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the present invention, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.

[0050] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein in the specification of the template are only for the purpose of describing specific embodiments and are not intended to limit the present invention. The term "and / or" used herein includes any and all combinations of one or more of the related listed items.

[0051] Example 1

[0052] like Figure 1 As shown, it is a flow chart of a non-invasive method for measuring blood electrolyte concentration in an embodiment of the present application. The non-invasive method for measuring blood electrolyte concentration provided in an embodiment of the present application comprises the following steps:

[0053] Step S110 , collecting an initial ECG signal in a preset time window, and performing data cleaning on the initial ECG signal to obtain an optimized ECG signal.

[0054] Since blood electrolyte concentration is highly correlated with ECG signals, especially changes in ECG signals are extremely sensitive when electrolytes are disturbed. Therefore, in this embodiment, when ECG signals are collected within a period of time (30s) by non-invasive wearable devices such as smart bracelets, smart watches, ECG chest straps, patches, etc., it is easy to introduce noise from inside or outside the human body (such as electromagnetic interference, myoelectric noise, etc.). When the noise in the sample overwhelms most of the ECG signals, such samples will cause the training process to be unstable and reduce the model performance. Therefore, after collecting the ECG signal, data cleaning is required first.

[0055] Specifically, the initial ECG signal includes multiple initial signal sample points, and the total energy of the initial ECG signal, that is, the total energy of all initial signal sample points, is calculated according to a preset energy calculation formula. When the total energy is lower than the preset energy threshold, the initial ECG signal is retained and used as the optimized ECG signal; when the total energy is equal to or higher than the preset energy threshold, the initial ECG signal is deleted and the next initial ECG signal is collected.

[0056] In this embodiment, the preset energy calculation formula is:

[0057]

[0058] Where E is the total energy, x i is the i-th initial signal sample point, and n is the number of initial signal sample points.

[0059] The above method can effectively remove or reduce samples with serious noise pollution through data cleaning, thereby improving data quality and ensuring that the data based on which the subsequent steps are based are purer and more reliable, thereby improving the accuracy and reliability of the analysis, reducing the amount of data to be processed subsequently, and thus improving the overall efficiency of data processing.

[0060] Step S120, performing data preprocessing on the optimized ECG signal to obtain average heart beat data.

[0061] Furthermore, one segment of optimized ECG signal is composed of multiple heartbeats. Since the ion concentration is reflected by the wave form and interval of each heartbeat, the optimized ECG signal needs to be preprocessed first to be segmented into multiple heartbeats of the same structure. The specific steps of preprocessing are as follows:

[0062] (1) downsampling the optimized ECG signal through an anti-aliasing filter with a first preset cutoff frequency (e.g., 125 Hz) to obtain a downsampled ECG signal with a preset sampling frequency (e.g., 250 Hz);

[0063] (2) performing a noise reduction operation on the downsampled ECG signal, filtering out power frequency noise in the downsampled ECG signal through a notch filter with a second preset cutoff frequency (e.g., 50 Hz), and filtering out low-frequency noise (e.g., baseline drift, motion artifacts, etc.) in the downsampled ECG signal through a high-pass filter with a second preset cutoff frequency (e.g., 0.5 Hz), to obtain a noise-reduced ECG signal;

[0064] (3) using a segmentation method starting from the P wave starting point of the heartbeat and ending at the T wave ending point of the same heartbeat, the noise-reduced ECG signal is segmented into multiple initial heartbeats;

[0065] (4) aligning the sampling points of each initial heartbeat by extending or truncating each initial heartbeat to a preset number (e.g., 270) of sampling points to obtain a plurality of aligned heartbeats;

[0066] (5) Averaging multiple aligned heart beats to obtain average heart beat data.

[0067] It can be understood that in this embodiment, the segmentation method (3) is specifically:

[0068] First, use the NeuroKit method to extract the position of the R wave peak. After determining the position of the R wave, 0.35 times the average RR interval is taken as the duration from the start of the heartbeat to the R wave, and 0.5 times the average RR interval is taken as the duration from the R wave to the end of the heartbeat. Then, each heartbeat is intercepted with each R wave as the center. After intercepting the heartbeat, the R wave position is fixed at the 125th point, and then the values ​​are filled forward and backward until each heartbeat has 270 points, filling the first point value of the heartbeat forward and the last point value of the heartbeat backward.

[0069] The above method can effectively reduce the dimension of the data through downsampling, thereby reducing the computational burden in the subsequent processing process; denoising can remove or reduce the influence of noise, improve the accuracy and reliability of the data, and help the model to more accurately extract and identify key features in the data, thereby improving the prediction performance of the subsequent model; heartbeat segmentation facilitates the subsequent detailed feature extraction and analysis of each heartbeat; heartbeat alignment can ensure the consistency of different heartbeats, which is helpful for subsequent analysis, and the aligned heartbeats can more accurately reflect the periodic law of cardiac activity, thereby improving the accuracy of subsequent electrolyte concentration prediction; averaging can smooth random fluctuations and noise in the data, enhance signal strength, and improve data stability and reliability.

[0070] Step S130: input the average heartbeat data into a preset deep convolution model to obtain a deep feature vector at the current moment.

[0071] like Figure 2 As shown, this embodiment uses multiple stacked preset deep convolution models to extract fine-grained features from average heartbeat data. Figure 3 As shown, each preset deep convolution model includes a one-dimensional deep convolution layer (Depthwise Separable Convolution, DSC), a batch normalization layer (Batch Norm, BN) and a maximum pooling layer (Max Pooling, MP). The one-dimensional deep convolution layer includes a channel-by-channel convolution layer (Depthwise Convolution) and a point-by-point convolution layer (Pointwise Convolution). The specific operation process of the preset deep convolution model is as follows:

[0072] (1) inputting the average heartbeat data into a channel-by-channel convolution layer of a one-dimensional deep convolution layer, wherein each convolution kernel in the channel-by-channel convolution layer corresponds one-to-one to each channel of the average heartbeat data, that is, each convolution kernel performs a convolution operation on only one channel of the average heartbeat data, and extracting features of the average heartbeat data through the channel-by-channel convolution layer to obtain first heartbeat data;

[0073] The channel-by-channel convolution layer can keep the spatial dimension of the input image unchanged while extracting features, that is, the output feature map has the same height and width as the input image, so that each channel can independently extract the channel-specific feature information, which helps to retain the details and edge information of the data, and the computational complexity is greatly reduced, thereby improving the computational efficiency;

[0074] (2) inputting the first heartbeat data into a point-by-point convolution layer, the point-by-point convolution layer performs a convolution operation on the output of the channel-by-channel convolution layer using a 1×1 convolution kernel, and performing channel integration and dimension transformation on the first heartbeat data through the point-by-point convolution layer to obtain second heartbeat data;

[0075] The point-by-point convolution layer can change the number of channels without changing the spatial dimension of the feature map, linearly combine the feature information of different channels, and generate new feature representations, which helps to reduce the overall number of parameters of the network model and improve the training and prediction efficiency of the model;

[0076] (3) inputting the second heartbeat data into the maximum pooling layer, and reducing the dimension of the second heartbeat data through the maximum pooling layer, that is, obtaining a pooling window of a preset length and a preset moving step length, sliding the pooling window of the preset length on the second heartbeat data according to the preset moving step length to obtain multiple sliding data, and outputting the maximum value of each sliding data as the third heartbeat data;

[0077] The maximum pooling layer can reduce the amount of calculation by reducing the dimension, which helps to reduce the number of parameters in the network, thereby preventing overfitting, improving the calculation speed, and reducing the model size;

[0078] (4) Inputting the third heartbeat data into a batch normalization layer, normalizing the elements at the same position in the third heartbeat data through the batch normalization layer, normalizing the third heartbeat data into a distribution with a mean of 0 and a variance of 1, and obtaining a depth feature vector at the current moment;

[0079] The batch normalization layer can speed up the convergence of the model and alleviate the problem of network gradient diffusion by normalizing the data.

[0080] Step S140, obtaining the deep feature vectors of the historical moments, inputting the deep feature vectors of the current moment and the deep feature vectors of the historical moments into a preset deep recurrent neural network model to obtain a predicted value of the electrolyte concentration.

[0081] Furthermore, in this embodiment, the preset deep recurrent neural network model includes a long short-term memory module (Long Short-Term Memory, LSTM) and a fully connected layer (Fully connected, FC).

[0082] As a special recurrent neural network (RNN), LSTM can effectively capture long-term dependencies in sequences through its unique gating mechanism (forget gate, input gate, output gate) and internal state (memory unit).

[0083] Specifically, the deep feature vector of the current moment and the deep feature vector of the historical moment are sorted in the order of time series to form a feature vector sequence, and this feature vector sequence is input into the long short-term memory module. The long short-term memory module processes the timing signals in the deep feature vectors of the historical moment and the deep feature vector of the current moment in chronological order, and outputs a series of final state vectors based on these input feature vectors.

[0084] Next, the state vector is input into the fully connected layer, which is usually located in the last few layers of the model and is used to further process and transform the features extracted by the previous layers in order to perform classification, regression or other types of prediction tasks. Specifically, the state vector is linearly transformed through the fully connected layer, that is, multiplied by a weight matrix and added with a bias term. After the linear transformation, an activation function is applied to introduce nonlinearity. Finally, the output layer outputs the predicted values ​​of electrolyte concentrations such as potassium, magnesium, calcium, and phosphorus in the blood at the current moment.

[0085] In an optional implementation, the specific structure of the model used in this embodiment is shown in Table 1 below. There are a total of 4372 model parameters, and the estimation model structure of different electrolytes is the same, and the values ​​of the model parameters are different. The number of input channels of the DSC1 layer is set to 1, the number of output channels is set to 16, the kernel size is set to 128, and the moving step is set to 1; the pooling window of the Pool1 layer is set to 2; the number of input channels of the DSC2 layer is set to 16, the number of output channels is set to 64, the kernel size is set to 64, and the moving step is set to 1; the pooling window of the Pool2 layer is set to 5; the number of input channels of the DSC3 layer is set to 16, the number of output channels is set to 64, the kernel size is set to 64, and the moving step is set to 1; the number of hidden units of the LSTM layer is set to 10; the number of input channels of the FC layer is set to 10, and the number of output channels is set to 1.

[0086] Table 1

[0087]

[0088] In an optional embodiment, after predicting the electrolyte concentration, a preset deep convolution model and a preset deep recurrent neural network model are trained:

[0089] In this embodiment, the data set is divided into a training set and a validation set in a ratio of 7:3, and there is no patient duplication in the training set and the validation set. In order to increase the sample size of the training set, this embodiment extracts the ECG signal 1 minute before the blood sampling point, and truncates the repeated signals into 6 30s signals to extract the average heartbeat, and corresponds to the same label. Therefore, in the training set, there are multiple samples with the same labels. In the data set, a sample contains four different labels, namely blood potassium, blood calcium, blood magnesium, and blood phosphorus concentrations. In this embodiment, the four concentrations are trained as sample labels respectively, and four models with the same structure but different parameters are obtained.

[0090] During the training process, a fixed number of iterations is set. Each iteration process is to first use the training set for training, then use the validation set for validation, and record the current training loss value and validation loss value. When the current validation loss value is the minimum, save the current model parameters. The process of each training with the training set is: first forward propagation, calculate the model output corresponding to the input, that is, the estimated value, then calculate the loss function of the estimated value and the true value, and then calculate the gradient of the loss function with respect to the model parameters, perform back propagation, and update the model parameters in the network. The process of each validation with the validation set is: calculate the model output corresponding to the input, and then calculate the loss function of the estimated value and the true value.

[0091] The above methods train the model so that it can learn and identify patterns and features in the data, thereby making more accurate predictions or classifications. As the training progresses, the model will continuously adjust its internal parameters to minimize prediction errors and improve accuracy.

[0092] The non-invasive measurement method of blood electrolyte concentration provided in the embodiment of the present application collects the initial ECG signal of a preset time window, performs data cleaning on the initial ECG signal, and obtains an optimized ECG signal; performs data preprocessing on the optimized ECG signal to obtain average heartbeat data; inputs the average heartbeat data into a preset deep convolution model to obtain a deep feature vector at the current moment; obtains the deep feature vector at a historical moment, and inputs the deep feature vector at the current moment and the deep feature vector at the historical moment into a preset deep recurrent neural network model to obtain a predicted value of electrolyte concentration. The present application uses ECG signals to predict blood electrolyte concentration, which can effectively reduce the patient's physical burden and avoid the risk of complications that may be caused by invasive examinations. In addition, real-time monitoring and early warning can be achieved, avoiding the lag of traditional blood sampling examinations, having higher accuracy, and reducing manpower and time costs.

[0093] Example 2

[0094] like Figure 4 FIG. 4 is a schematic diagram of a non-invasive blood electrolyte concentration measurement device 400 according to an embodiment of the present application, wherein the device comprises:

[0095] The data acquisition module 410 is used to acquire the initial ECG signal in a preset time window, and perform data cleaning on the initial ECG signal to obtain an optimized ECG signal;

[0096] A data preprocessing module 420 is used to perform data preprocessing on the optimized ECG signal to obtain average heart beat data;

[0097] A feature extraction module 430 is used to input the average heartbeat data into a preset deep convolution model to obtain a deep feature vector at the current moment;

[0098] The electrolyte concentration prediction module 440 is used to obtain the deep feature vector of the historical moment, input the deep feature vector of the current moment and the deep feature vector of the historical moment into a preset deep recurrent neural network model to obtain the electrolyte concentration prediction value.

[0099] The non-invasive blood electrolyte concentration measurement device provided in the embodiment of the present application can effectively reduce the patient's physical burden and avoid the risk of complications caused by invasive examinations by using electrocardiogram signals to predict blood electrolyte concentrations. In addition, it can achieve real-time monitoring and early warning, avoiding the lag of traditional blood sampling examinations, has higher accuracy, and reduces manpower and time costs.

[0100] Example 3

[0101] The present application also provides a computer device. Figure 5 , Figure 5 This is a basic structural block diagram of the computer device in this embodiment.

[0102] The computer device 5 includes a memory 51, a processor 52, and a network interface 53 that are interconnected through a system bus. It should be noted that the figure only shows a computer device 5 with a memory 51, a processor 52, and a network interface 53, but it should be understood that it is not required to implement all the components shown, and more or fewer components can be implemented instead. Among them, those skilled in the art can understand that the computer device here is a device that can automatically perform numerical calculations and / or information processing according to pre-set or stored instructions, and its hardware includes but is not limited to microprocessors, application specific integrated circuits (Application Specific Integrated Circuit, ASIC), programmable gate arrays (Field-Programmable Gate Array, FPGA), digital processors (Digital Signal Processor, DSP), embedded devices, etc.

[0103] The computer device may be a computing device such as a desktop computer, a notebook, a PDA, a cloud server, etc. The computer device may interact with a user through a keyboard, a mouse, a remote controller, a touch pad, or a voice control device.

[0104] The memory 51 includes at least one type of readable storage medium, and the readable storage medium includes flash memory, hard disk, multimedia card, card-type memory (for example, SD or D slot compatibility test memory, etc.), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, disk, optical disk, etc. In some embodiments, the memory 51 can be an internal storage unit of the computer device 5, such as a hard disk or memory of the computer device 5. In other embodiments, the memory 51 can also be an external storage device of the computer device 5, such as a plug-in hard disk equipped on the computer device 5, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. Of course, the memory 51 can also include both the internal storage unit of the computer device 5 and its external storage device. In this embodiment, the memory 51 is generally used to store the operating system and various application software installed on the computer device 5, such as computer-readable instructions of the slot compatibility test method, etc. In addition, the memory 51 can also be used to temporarily store various types of data that have been output or are to be output.

[0105] The processor 52 may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor, or other non-invasive blood electrolyte concentration measurement chip in some embodiments. The processor 52 is generally used to control the overall operation of the computer device 5. In this embodiment, the processor 52 is used to run computer-readable instructions or process data stored in the memory 51, such as computer-readable instructions for running the slot compatibility test method.

[0106] The network interface 53 may include a wireless network interface or a wired network interface. The network interface 53 is generally used to establish a communication connection between the computer device 5 and other electronic devices.

[0107] The computer device provided in this embodiment can execute the above-mentioned non-invasive measurement method for blood electrolyte concentration. Here, the non-invasive measurement method for blood electrolyte concentration can be the non-invasive measurement method for blood electrolyte concentration in each of the above-mentioned embodiments.

[0108] Example 4

[0109] This embodiment also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the non-invasive measurement method of blood electrolyte concentration in the embodiment are implemented.

[0110] In this embodiment, the computer-readable storage medium includes flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory, etc.), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, disk, optical disk, etc. In some embodiments, the computer-readable storage medium can be an internal storage unit of a computer device, such as a hard disk or memory of the computer device. In other embodiments, the computer-readable storage medium can also be an external storage device of a computer device, such as a plug-in hard disk equipped on the computer device, a smart memory card (Smart Media Card, referred to as SMC), a secure digital (Secure Digital, referred to as SD) card, a flash card, etc. Of course, the computer-readable storage medium can also include both the internal storage unit of the computer device and its external storage device. In this embodiment, the computer-readable storage medium is generally used to store an operating system and various application software installed on the computer device. In addition, the computer-readable storage medium can also be used to temporarily store various types of data that have been output or are to be output.

[0111] In several embodiments provided in the present application, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device embodiments described above are merely schematic. For example, the flowcharts and structure diagrams in the accompanying drawings show the possible architecture, functions and operations of the devices, methods and computer program products according to multiple embodiments of the present invention. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of a code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in an alternative implementation, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the structure diagram and / or the flow chart, and the combination of boxes in the structure diagram and / or the flow chart, can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.

[0112] In addition, the functional modules or units in the various embodiments of the present invention may be integrated together to form an independent part, or each module may exist independently, or two or more modules may be integrated to form an independent part.

[0113] If the function is implemented in the form of a software function module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention is essentially or partly contributed to the prior art or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a smart phone, a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium can be a non-volatile storage medium or a volatile storage medium. For example, the storage medium can be: a U disk, a mobile hard disk, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a disk or an optical disk, and other media that can store program codes.

[0114] The above description is only a specific implementation mode of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be covered by the protection scope of the present invention.

Claims

1. A non-invasive method for measuring blood electrolyte concentration, characterized in that: The method comprises: Collecting an initial ECG signal in a preset time window, performing data cleaning on the initial ECG signal, and obtaining an optimized ECG signal; Performing data preprocessing on the optimized electrocardiogram signal to obtain average heart beat data; Inputting the average heartbeat data into a preset deep convolution model to obtain a deep feature vector at the current moment; The deep feature vectors of the historical moments are obtained, and the deep feature vectors of the current moment and the deep feature vectors of the historical moments are input into a preset deep recurrent neural network model to obtain a predicted value of the electrolyte concentration.

2. The non-invasive measurement method of blood electrolyte concentration according to claim 1, characterized in that: The initial ECG signal includes a plurality of initial signal sample points, and the data cleaning of the initial ECG signal to obtain an optimized ECG signal includes: Calculate the total energy of the initial ECG signal according to a preset energy calculation formula, and when the total energy is lower than a preset energy threshold, use the initial ECG signal as the optimized ECG signal, otherwise collect the next initial ECG signal; Wherein, the preset energy calculation formula is: Where E is the total energy, x i is the i-th initial signal sample point, and n is the number of the initial signal sample points.

3. The non-invasive measurement method of blood electrolyte concentration according to claim 1, characterized in that: The step of performing data preprocessing on the optimized electrocardiogram signal to obtain average heartbeat data includes: Down-sampling the optimized ECG signal through an anti-aliasing filter to obtain a down-sampled ECG signal with a preset sampling frequency; The power frequency noise in the downsampled ECG signal is filtered out by a notch filter, and the low frequency noise in the downsampled ECG signal is filtered out by a high pass filter to obtain a de-noised ECG signal; The noise-reduced electrocardiogram signal is segmented to obtain a plurality of initial heart beats, the sampling points of the initial heart beats are aligned to obtain a plurality of aligned heart beats, and the aligned heart beats are averaged to obtain the average heart beat data.

4. The non-invasive measurement method of blood electrolyte concentration according to claim 1, characterized in that: The preset deep convolution model includes a one-dimensional deep convolution layer, a batch normalization layer and a maximum pooling layer, the one-dimensional deep convolution layer includes a channel-by-channel convolution layer and a point-by-point convolution layer, and the preset deep recurrent neural network model includes a long short-term memory module and a fully connected layer.

5. The non-invasive measurement method of blood electrolyte concentration according to claim 4, characterized in that: The step of inputting the average heartbeat data into a preset deep convolution model to obtain a deep feature vector at the current moment includes: Input the average heartbeat data into the channel-by-channel convolution layer, perform feature extraction on the average heartbeat data through the channel-by-channel convolution layer to obtain first heartbeat data, input the first heartbeat data into the point-by-point convolution layer, perform channel integration and dimension transformation on the first heartbeat data through the point-by-point convolution layer to obtain second heartbeat data; Inputting the second heartbeat data into the maximum pooling layer, and performing dimension reduction on the second heartbeat data through the maximum pooling layer to obtain third heartbeat data; The third heartbeat data is input into the batch normalization layer, and the elements at the same position in the third heartbeat data are normalized by the batch normalization layer to obtain the depth feature vector at the current moment.

6. The non-invasive blood electrolyte concentration measurement method according to claim 5, characterized in that: The step of reducing the dimension of the second heartbeat data by the maximum pooling layer to obtain third heartbeat data includes: Obtaining a pooling window of a preset length and a preset moving step length, and sliding the pooling window of the preset length on the second heartbeat data according to the preset moving step length to obtain a plurality of sliding data; A maximum value among the sliding data is obtained, and the maximum value among the sliding data is used as the third heartbeat data.

7. The non-invasive measurement method of blood electrolyte concentration according to claim 6, characterized in that: The step of inputting the deep feature vector at the current moment and the deep feature vector at the historical moment into a preset deep recurrent neural network model to obtain a predicted value of electrolyte concentration includes: Inputting the depth feature vector of the current moment and the depth feature vector of the historical moment into the long short-term memory module, connecting the depth feature vector of the historical moment to the depth feature vector of the current moment through the long short-term memory module, and processing the time series signals in the depth feature vector of the historical moment and the depth feature vector of the current moment in chronological order to obtain a state vector; The state vector is input into the fully connected layer, and the state vector is linearly transformed through the fully connected layer to obtain the predicted value of the electrolyte concentration.

8. A non-invasive measurement device for blood electrolyte concentration, characterized in that: The device comprises: A data acquisition module, used for acquiring an initial ECG signal in a preset time window, and performing data cleaning on the initial ECG signal to obtain an optimized ECG signal; A data preprocessing module, used for performing data preprocessing on the optimized ECG signal to obtain average heart beat data; A feature extraction module, used for inputting the average heartbeat data into a preset deep convolution model to obtain a deep feature vector at the current moment; The electrolyte concentration prediction module is used to obtain the deep feature vector of the historical moment, input the deep feature vector of the current moment and the deep feature vector of the historical moment into a preset deep recurrent neural network model to obtain the predicted value of the electrolyte concentration.

9. A computer device, characterized in that: The method comprises a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the method for non-invasively measuring blood electrolyte concentration according to any one of claims 1 to 7 when executing the computer program.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method for non-invasively measuring blood electrolyte concentration according to any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Blood component concentration detection method and device

    CN112545501A

  • Fetal heart rate detection system on FECG based on deep learning and specific correction

    CN112826513A

  • Heart failure prediction and diagnosis method and system based on CNN model and LSTM model, diagnosis equipment and storage medium

    CN113080991A

  • Systems and methods of analyte measurement analysis

    US20180233227A1

Cited By

  • Noninvasive blood potassium concentration estimation method and device, computer equipment and storage medium

    CN119679424A