Lightweight ballistocardiogram positioning method, device, storage medium and computer equipment

By constructing the Ghost-Unet model, the problems of waveform irregularity and model complexity in ballistocardiogram positioning are solved, efficient and accurate signal positioning is achieved, the model structure is simplified and the computational burden is reduced.

CN117883071BActive Publication Date: 2024-10-18SOUTH CHINA NORMAL UNIV
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202311715665.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-12-13
Publication Date
2024-10-18
Estimated Expiration
2043-12-13

AI Technical Summary

Technical Problem

The existing ballistocardiogram positioning technology suffers from irregular waveforms under the influence of respiratory or motion artifacts, resulting in large errors in the template matching method and poor positioning results. The model parameters are too large, the calculation is complex, and feature redundancy is ignored, resulting in heavy hardware burden.

Method used

Build the Ghost-Unet model, including Ghost convolution layer, down-sampling Ghost convolution layer, Bi-GRU convolution layer and up-sampling Ghost convolution layer. Through training, a lightweight J-peak probability detection model is obtained, and the model is used to locate the center Impact the J peak point of the signal, reducing the amount of network parameters and computational complexity.

Benefits of technology

It achieves efficient and accurate ballistocardiogram signal positioning, simplifies the model structure, reduces the computational burden, and improves positioning accuracy and hardware compatibility.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117883071B_ABST
    Figure CN117883071B_ABST
Patent Text Reader

Abstract

The present application provides a lightweight ballistocardiogram positioning method, device, storage medium and computer equipment, the method comprising: constructing a Ghost-Unet model, the Ghost-Unet comprising a Ghost convolution layer, a plurality of down-sampling Ghost convolution layers, a down-sampling layer, a Bi-GRU convolution layer, a plurality of up-sampling Ghost convolution layers and a one-dimensional convolution layer connected in sequence, and the plurality of down-sampling Ghost convolution layers are correspondingly connected to the plurality of up-sampling Ghost convolution layers; training the Ghost-Unet model according to the ballistocardiogram signal training sample to obtain a lightweight J-peak probability detection model; inputting the signal to be positioned into the lightweight J-peak probability detection model to obtain a J-peak positioning square wave signal corresponding to the signal to be positioned; obtaining the J-peak point position of the signal to be positioned according to the J-peak positioning square wave signal, so as to locate the ballistocardiogram signal in the signal to be positioned. The present application can efficiently and accurately locate the ballistocardiogram signal.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of positioning of ballistocardiogram signals, and in particular to a lightweight ballistocardiogram positioning method, device, storage medium and computer equipment. Background Art

[0002] The ballistocardiogram (BCG) describes the weak vibration of the human body caused by the heart's ejection process. It is a mechanical signal that can be collected in a non-contact manner. Compared with the electrocardiogram (ECG), the ballistocardiogram has obvious advantages in operability, comfort and cost, and is very suitable for long-term home health monitoring. However, the ballistocardiogram is usually irregular under the influence of breathing or motion artifacts, and these irregular waveforms will cause the template matching method to introduce errors in the process of constructing the template, resulting in poor positioning results. In addition, the ballistocardiogram positioning model used in the existing technology also ignores feature redundancy, resulting in technical defects such as excessive parameters, complex calculations, slow reasoning, and high requirements for the working conditions of hardware equipment. Summary of the invention

[0003] The purpose of the present application is to overcome the shortcomings and deficiencies in the prior art and to provide a lightweight ballistocardiogram positioning method, apparatus, storage medium and computer equipment that can efficiently and accurately locate ballistocardiogram signals.

[0004] A first aspect of an embodiment of the present application provides a lightweight ballistocardiogram positioning method, comprising:

[0005] Constructing a Ghost-Unet model; wherein the Ghost-Unet model includes a Ghost convolution layer, a plurality of down-sampling Ghost convolution layers, a down-sampling layer, a Bi-GRU convolution layer, a plurality of up-sampling Ghost convolution layers and a one-dimensional convolution layer connected in sequence, and the plurality of down-sampling Ghost convolution layers are correspondingly connected to the plurality of up-sampling Ghost convolution layers;

[0006] Training the Ghost-Unet model according to the ballistocardiogram signal training sample to obtain a lightweight J peak probability detection model;

[0007] Inputting the signal to be located into the lightweight J-peak probability detection model to obtain a J-peak positioning square wave signal corresponding to the signal to be located;

[0008] The J peak point position of the signal to be located is obtained according to the J peak locating square wave signal, so as to locate and obtain the ballistocardiogram signal in the signal to be located.

[0009] A second aspect of an embodiment of the present application provides a lightweight ballistocardiogram positioning device, comprising:

[0010] A model construction module, used to construct a Ghost-Unet model; wherein the Ghost-Unet model includes a Ghost convolution layer, a plurality of down-sampling Ghost convolution layers, a down-sampling layer, a Bi-GRU convolution layer, a plurality of up-sampling Ghost convolution layers and a one-dimensional convolution layer connected in sequence, and the plurality of down-sampling Ghost convolution layers are correspondingly connected to the plurality of up-sampling Ghost convolution layers;

[0011] A training module, used for training the Ghost-Unet model according to the ballistocardiogram signal training sample to obtain a lightweight J peak probability detection model;

[0012] A J-peak positioning square wave signal acquisition module, used for inputting the signal to be positioned into the lightweight J-peak probability detection model to obtain the J-peak positioning square wave signal corresponding to the signal to be positioned;

[0013] The positioning module is used to obtain the J peak point position of the signal to be positioned according to the J peak positioning square wave signal, so as to locate and obtain the ballistocardiogram signal in the signal to be positioned.

[0014] A third aspect of an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the lightweight ballistocardiogram positioning method as described above are implemented.

[0015] A fourth aspect of an embodiment of the present application provides a computer device, comprising a memory, a processor, and a computer program stored in the memory and executable by the processor, wherein the processor implements the steps of the lightweight ballistocardiogram positioning method as described above when executing the computer program.

[0016] Compared with the related art, the present application constructs a Ghost-Unet model including a Ghost convolution layer, multiple downsampling Ghost convolution layers, a downsampling layer, a Bi-GRU convolution layer, multiple upsampling Ghost convolution layers and a one-dimensional convolution layer connected in sequence, and the multiple downsampling Ghost convolution layers in the Ghost-Unet model are correspondingly connected to the multiple upsampling Ghost convolution layers; then the Ghost-Unet model is trained according to the ballistocardiogram signal training sample to obtain a lightweight J peak probability detection model, and then the signal to be located is input into the lightweight J peak probability detection model to obtain a J peak positioning square wave signal, so as to obtain the J peak point position of the signal to be located according to the J peak positioning square wave signal, thereby locating the ballistocardiogram signal in the signal to be located, wherein the Ghost-Unet model is a lightweight model, and the Ghost convolution layer used in it can reduce the number of parameters and floating-point operations of the network model compared to the ordinary convolution layer, and obtain more high-quality features with simple operations and more effective methods to realize feature redundancy in the network model, so that the lightweight J peak probability detection model can efficiently and accurately locate the ballistocardiogram signal.

[0017] In order to provide a clearer understanding of the present application, the specific implementation of the present application will be described below in conjunction with the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1 The present invention is a flowchart of a lightweight ballistocardiogram positioning method according to an embodiment of the present application.

[0019] Figure 2 A schematic diagram of a Ghost-Unet model according to an embodiment of the present application.

[0020] Figure 3 A schematic diagram of a Ghost convolution module according to an embodiment of the present application.

[0021] Figure 4 This is a schematic diagram of the module connections of a lightweight ballistocardiogram positioning device according to an embodiment of the present application.

[0022] 100. Lightweight ballistocardiogram positioning device; 101. Model building module; 102. Training module; 103. J-peak positioning square wave signal acquisition module; 104. Positioning module. DETAILED DESCRIPTION

[0023] In order to make the objectives, technical solutions and advantages of the present application more clear, the embodiments of the present application will be further described in detail below with reference to the accompanying drawings.

[0024] It should be clear that the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the embodiments of the present application.

[0025] When the following description relates to the accompanying drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. In the description of the present application, it should be understood that the terms "first", "second", "third", etc. are only used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence, nor can they be understood as indicating or implying relative importance. For those of ordinary skill in the art, the specific meanings of the above terms in the present application can be understood according to the specific circumstances. The singular forms of "a", "said" and "the" used in the present application and the appended claims are also intended to include the majority form, unless the context clearly indicates other meanings. The words "if" / "if" used herein can be interpreted as "at the time of" or "when" or "in response to determination".

[0026] In addition, in the description of this application, unless otherwise specified, "plurality" means two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects are in an "or" relationship.

[0027] See also Figure 1 , which is a flow chart of a lightweight ballistocardiogram positioning method according to an embodiment of the present application, comprising:

[0028] S1: Construct a Ghost-Unet model; wherein the Ghost-Unet model includes a Ghost convolution layer, multiple downsampling Ghost convolution layers, a downsampling layer, a Bi-GRU convolution layer, multiple upsampling Ghost convolution layers and a one-dimensional convolution layer connected in sequence, and the multiple downsampling Ghost convolution layers are correspondingly connected to the multiple upsampling Ghost convolution layers.

[0029] See also Figure 2-3 , the Ghost-Unet model of this embodiment is as follows Figure 2 As shown, the Ghost convolution module of this embodiment is as follows Figure 3As shown. The Ghost convolution layer of the Ghost-Unet model of this embodiment is used to perform Ghost convolution processing on the input signal, the downsampling Ghost convolution layer is used to obtain the detailed features of the input signal, and the upsampling Ghost convolution layer is used to reconstruct the detailed features. Therefore, the Ghost-Unet model combines the steps of obtaining and reconstructing detailed features, and can be used to locate the ballistocardiogram signal more accurately. Moreover, as Figure 2 As shown in the figure, the output of the Ghost convolution layer of the Ghost-Unet model is connected to the input of the last upsampling Ghost convolution layer through the CBAM attention module, and the output of each downsampling Ghost convolution layer is connected to the input of the corresponding upsampling Ghost convolution layer through the CBAM attention module. The CBAM attention mechanism performed by the CBAM attention module includes channel attention processing and spatial attention processing. The channel attention processing includes processing the feature map output by the channel attention, performing global maximum pooling and global average pooling respectively, connecting the two output feature maps on the number of channels, adjusting the number of channels by 1×1 convolution, and finally normalizing the weights through the sigmoid function, and finally multiplying the normalized weights with the input feature map; the spatial attention processing includes processing the feature map output by the channel attention, performing global maximum pooling and global average pooling respectively, connecting the two output feature maps on the number of channels, adjusting the number of channels by 1×1 convolution, and finally normalizing the weights through the sigmoid function, and finally multiplying the normalized weights with the input feature map. Through the CBAM attention module, the model can better learn the dependencies between channels and the relationships between different positions.

[0030] Among them, the Ghost convolution layer includes several Ghost convolution modules connected in sequence, each downsampling Ghost convolution layer includes a downsampling module and several Ghost convolution modules connected in sequence, and each upsampling Ghost convolution layer includes an upsampling module and several Ghost convolution modules.

[0031] The calculation amount comparison between ordinary convolution and Ghost convolution used in this application is shown in the following formula:

[0032]

[0033] The comparison of the parameters of ordinary convolution and Ghost convolution used in this application is shown in the following formula:

[0034]

[0035] Among them, r s is the ratio of the computational complexity of ordinary convolution to that of Ghost convolution used in this application, r cIt is the ratio of the parameters of ordinary convolution to the Ghost convolution adopted in this application, c, h, n are the channel, height and width of the input data, respectively, h', w are the channel, height and width of the output data, respectively, k is the size of the conventional convolution kernel, d is the size of the linear transformation convolution kernel, s-1 is the number of linear transformations, that is, the number of mappings, where the number of mappings in this embodiment can be 3 times.

[0036] The Bi-GRU convolution layer includes a Bi-GRU layer and a convolution layer, wherein the Bi-GRU layer refers to a bidirectional GRU layer, which is used to extract the timing characteristics of the signal, and can selectively leave important information of certain nodes in a long time series, thereby fully extracting the rich timing information in the signal, and has the advantages of simple structure and less computation. Since the characteristics of the J peak in the ballistocardiogram signal are obvious, and the intervals of the heartbeats are consistent, the ability to extract bidirectional timing characteristics is increased by the Bi-GRU, and the accuracy of signal positioning is improved. Preferably, in order to improve the generalization ability of the model and prevent overfitting (overfitting refers to making the assumptions overly strict in order to obtain consistent assumptions), a Dropout layer is also provided between the Bi-GRU convolution layer and the upsampling Ghost convolution layer, and the Bi-GRU convolution layer is connected to the upsampling Ghost convolution layer through the Dropout layer. The Dropout module prevents overfitting and improves the generalization ability of the model.

[0037] S2: Train the Ghost-Unet model according to the ballistocardiogram signal training sample to obtain a lightweight J peak probability detection model.

[0038] The ballistocardiogram signal training sample is a training sample of a ballistocardiogram signal annotated with a J peak positioning square wave peak centered at the J peak point position and covering a plurality of point positions before the J peak point position and a plurality of point positions after the J peak point position. Step S2 comprises:

[0039] S21: Inputting the ballistocardiogram signal training sample marked with the J peak into the Ghost convolution layer for multiple Ghost convolution processes to obtain a Ghost convolution output matrix.

[0040] S22: Downsampling and Ghost convolution processing are performed on the Ghost convolution output matrix in turn through the multiple downsampling Ghost convolution layers to obtain a downsampled Ghost convolution output matrix; wherein, the first downsampling Ghost convolution layer receives the Ghost convolution output matrix, and the remaining downsampling Ghost convolution layers receive the downsampled Ghost convolution output matrix output by the previous downsampling Ghost convolution layer.

[0041] S23: Performing temporal feature extraction and convolution processing on the down-sampled Ghost convolution output matrix output by the last down-sampled Ghost convolution layer through the down-sampling layer to obtain a temporal feature convolution output matrix.

[0042] S24: Upsampling and Ghost convolution processing are performed on the temporal feature convolution output matrix through the multiple upsampling Ghost convolution layers to obtain an upsampling Ghost convolution output matrix; wherein, the first upsampling Ghost convolution layer receives the temporal feature convolution output matrix and the downsampling Ghost convolution output matrix output by the corresponding downsampling Ghost convolution layer; the remaining upsampling Ghost convolution layers receive the upsampling Ghost convolution output matrix output by the previous upsampling Ghost convolution layer and the downsampling Ghost convolution output matrix output by the downsampling Ghost convolution layer corresponding to each upsampling Ghost convolution layer.

[0043] S25: performing one-dimensional convolution processing on the up-sampled Ghost convolution output matrix output by the last up-sampled Ghost convolution layer through the one-dimensional convolution layer to obtain the training signal features of the ballistocardiogram signal training sample.

[0044] S26: Determine a J peak positioning square wave prediction signal of the ballistocardiogram signal training sample according to the training signal characteristics.

[0045] S27: According to the peak position of the J peak locating square wave prediction signal and the position error of the J peak locating square wave peak annotated by the ballistocardiogram signal training sample, the model parameters of the Ghost-Unet model are modified to obtain the lightweight J peak probability detection model.

[0046] S3: Inputting the signal to be located into the lightweight J-peak probability detection model to obtain a J-peak positioning square wave signal corresponding to the signal to be located.

[0047] Among them, the signal to be located refers to the ballistocardiogram signal that has not been located. The ballistocardiogram signal is a signal that can convert the weak vibration of the human body caused by the cardiac ejection process into an electrical signal, which reflects the heart beating of the human body and can be collected in a non-contact manner, such as through a piezoelectric sensor for signal collection, and then the processing module performs the first filtering processing, signal amplification processing and conversion processing, and the Butterworth bandpass filter performs the second filtering processing to obtain the signal.

[0048] Specifically, the piezoelectric sensor can be set under the bed or pillow of the target person. The target object's ballistocardiogram signal is collected and a ballistocardiogram signal is generated by a signal acquisition device based on piezoelectric sensing. The signal acquisition device based on piezoelectric sensing includes a piezoelectric sensor module and a data processor, and its preset sampling frequency is 1000Hz. A Butterworth bandpass filter with a cutoff frequency of 2-10Hz is used to remove low-frequency respiratory signals and high-frequency noise interference from the original ballistocardiogram signal, allowing the model to learn more robust features of the ballistocardiogram signal. The pre-processed ballistocardiogram signal is then downsampled to 100Hz to reduce computational complexity.

[0049] The J peak positioning square wave signal is the J peak probability of each corresponding signal point calculated by the model according to the signal characteristics of the signal to be positioned. If the J peak probability is greater than the probability threshold, it is marked as 1, and if it is less than the probability threshold, it is marked as 0, thereby obtaining the J peak positioning square wave signal. The probability threshold can be a value such as 0.4 or 0.5.

[0050] S4: obtaining the J peak point position of the signal to be located according to the J peak locating square wave signal, so as to locate and obtain the ballistocardiogram signal in the signal to be located.

[0051] Specifically, the peak of the J-peak positioning square wave signal is used to indicate the J-peak point position. According to the rising edge and falling edge of the peak of the J-peak positioning square wave signal, the J-peak point position of the signal to be positioned can be positioned, and then the ballistocardiogram signal in the signal to be positioned can be obtained according to the J-peak point position.

[0052] Compared with the related art, the present application constructs a Ghost-Unet model including a Ghost convolution layer, multiple downsampling Ghost convolution layers, a downsampling layer, a Bi-GRU convolution layer, multiple upsampling Ghost convolution layers and a one-dimensional convolution layer connected in sequence, and the multiple downsampling Ghost convolution layers in the Ghost-Unet model are correspondingly connected to the multiple upsampling Ghost convolution layers; then the Ghost-Unet model is trained according to the ballistocardiogram signal training sample to obtain a lightweight J peak probability detection model, and then the signal to be located is input into the lightweight J peak probability detection model to obtain a J peak positioning square wave signal, so as to obtain the J peak point position of the signal to be located according to the J peak positioning square wave signal, thereby locating the ballistocardiogram signal in the signal to be located, wherein the Ghost-Unet model is a lightweight model, and the Ghost convolution layer used in it can reduce the number of parameters and floating-point operations of the network model compared to the ordinary convolution layer, and obtain more high-quality features with simple operations and more effective methods to realize feature redundancy in the network model, so that the lightweight J peak probability detection model can efficiently and accurately locate the ballistocardiogram signal.

[0053] In a feasible embodiment, the step of S4: obtaining the J peak point position of the signal to be located according to the J peak locating square wave signal to locate the ballistocardiogram signal in the signal to be located, comprises:

[0054] S41: Acquire the peak of the J-peak positioning square wave signal. The peak refers to the peak portion of the J-peak positioning square wave signal where the square wave amplitude is 1.

[0055] S42: Determine the midpoint signal position between the rising edge and the falling edge of each wave peak as the J peak position, and locate and obtain multiple target ballistocardiogram signals from the signal to be located according to each of the J peak positions and a preset time range.

[0056] S43: Obtaining the similarity between the signal-to-noise ratio and the heartbeat morphology of the signal to be located according to the multiple target ballistocardiogram signals.

[0057] S44: Determine the accuracy of multiple target ballistocardiogram signals obtained by locating the signal to be located based on the similarity between the signal-to-noise ratio of the signal to be located and the heartbeat morphology.

[0058] The signal-to-noise ratio refers to the ratio of the effective signal energy to the random noise on the signal segment, which can effectively reflect the influence of noise on the effective signal. The similarity between the heartbeat morphologies is obtained by calculating the average correlation coefficient between each heartbeat, which can effectively reflect the average similarity between multiple heartbeats.

[0059] When the signal-to-noise ratio of the target ballistocardiogram signal and the similarity between heartbeat patterns are greater than corresponding preset values, it means that the target ballistocardiogram signal is subject to little noise interference and has high positioning accuracy, and is therefore a valid target ballistocardiogram signal.

[0060] In this embodiment, the position of the J peak can be located according to the rising edge and falling edge of the peak of the J peak positioning square wave signal, and the accuracy of the located target ballistocardiogram signal can be determined according to the similarity between the signal-to-noise ratio and the heartbeat morphology.

[0061] In a feasible embodiment, the step S44: determining the accuracy of multiple target ballistocardiogram signals obtained by locating the signal to be located according to the similarity between the signal-to-noise ratio of the signal to be located and the heartbeat morphology, comprises:

[0062] S441: If the signal-to-noise ratio is greater than a preset first signal-to-noise ratio threshold, and the similarity is greater than a preset first similarity threshold, it is determined that the multiple target ballistocardiogram signals located by the signal to be located are valid ballistocardiogram signals with high accuracy.

[0063] The signal-to-noise ratio can be calculated using the following formula:

[0064]

[0065] Where SNR is the signal-to-noise ratio, is the average value signal segment of the multiple target ballistocardiogram signals, BCGm is the signal segment of the mth target ballistocardiogram signal in the signal to be located, and M is the total number of target ballistocardiogram signals in the signal to be located.

[0066] The similarity can be calculated using the following formula:

[0067]

[0068] Wherein, tSQI is the similarity between heartbeat morphologies, and cde is the covariance between the d-th target ballistocardiogram signal and the e-th target ballistocardiogram signal.

[0069] S442: If the signal-to-noise ratio is less than a preset second signal-to-noise ratio threshold, and the similarity is less than a preset second similarity threshold, it is determined that the multiple target ballistocardiogram signals located by the signal to be located are invalid ballistocardiogram signals with low accuracy.

[0070] In this embodiment, the accuracy of the multiple target ballistocardiogram signals obtained by positioning can be judged based on the signal-to-noise ratio of the signal to be positioned and the similarity between the heartbeat shapes to distinguish whether they are valid ballistocardiogram signals.

[0071] See also Figure 4 The second embodiment of the present application provides a lightweight ballistocardiogram positioning device, comprising:

[0072] A model construction module, used to construct a Ghost-Unet model; wherein the Ghost-Unet model includes a Ghost convolution layer, a plurality of down-sampling Ghost convolution layers, a down-sampling layer, a Bi-GRU convolution layer, a plurality of up-sampling Ghost convolution layers and a one-dimensional convolution layer connected in sequence, and the plurality of down-sampling Ghost convolution layers are correspondingly connected to the plurality of up-sampling Ghost convolution layers;

[0073] A training module, used for training the Ghost-Unet model according to the ballistocardiogram signal training sample to obtain a lightweight J peak probability detection model;

[0074] A J-peak positioning square wave signal acquisition module, used for inputting the signal to be positioned into the lightweight J-peak probability detection model to obtain the J-peak positioning square wave signal corresponding to the signal to be positioned;

[0075] The positioning module is used to obtain the J peak point position of the signal to be positioned according to the J peak positioning square wave signal, so as to locate and obtain the ballistocardiogram signal in the signal to be positioned.

[0076] In a feasible embodiment, the ballistocardiogram signal training sample is a training sample of the ballistocardiogram signal annotated with a J peak positioning square wave peak centered at the J peak point position and covering a plurality of point positions before the J peak point position and a plurality of point positions after the J peak point position;

[0077] The training module includes:

[0078] A Ghost convolution processing module, used for inputting the ballistocardiogram signal training sample marked with J peak into the Ghost convolution layer for multiple Ghost convolution processing to obtain a Ghost convolution output matrix;

[0079] A down-sampling Ghost convolution processing module is used to perform down-sampling processing and Ghost convolution processing on the Ghost convolution output matrix in sequence through the multiple down-sampling Ghost convolution layers to obtain a down-sampling Ghost convolution output matrix; wherein the first down-sampling Ghost convolution layer receives the Ghost convolution output matrix, and the remaining down-sampling Ghost convolution layers receive the down-sampling Ghost convolution output matrix output by the previous down-sampling Ghost convolution layer;

[0080] A temporal feature convolution processing module, used for performing temporal feature extraction and convolution processing on the down-sampled Ghost convolution output matrix output by the last down-sampled Ghost convolution layer through the down-sampled layer to obtain a temporal feature convolution output matrix;

[0081] An up-sampling Ghost convolution processing module is used to perform up-sampling and Ghost convolution processing on the temporal feature convolution output matrix through the multiple up-sampling Ghost convolution layers to obtain an up-sampling Ghost convolution output matrix; wherein, the first up-sampling Ghost convolution layer receives the temporal feature convolution output matrix and the corresponding down-sampling Ghost convolution output matrix output by the down-sampling Ghost convolution layer; the remaining up-sampling Ghost convolution layers receive the up-sampling Ghost convolution output matrix output by the previous up-sampling Ghost convolution layer and the down-sampling Ghost convolution output matrix output by the down-sampling Ghost convolution layer corresponding to each up-sampling Ghost convolution layer;

[0082] A one-dimensional convolution processing module, used for performing one-dimensional convolution processing on the up-sampled Ghost convolution output matrix output by the last up-sampled Ghost convolution layer through the one-dimensional convolution layer to obtain the training signal features of the ballistocardiogram signal training sample;

[0083] A square wave prediction signal determination module, used to determine the J peak positioning square wave prediction signal of the ballistocardiogram signal training sample according to the training signal characteristics;

[0084] The parameter modification module is used to modify the model parameters of the Ghost-Unet model according to the peak position of the J peak locating square wave prediction signal and the position error of the J peak locating square wave peak annotated by the ballistocardiogram signal training sample to obtain the lightweight J peak probability detection model.

[0085] In a feasible embodiment, the positioning module includes:

[0086] A peak acquisition module, used to acquire the peak of the J-peak positioning square wave signal;

[0087] A positioning submodule, used for determining the midpoint signal position between the rising edge and the falling edge position of each wave peak as the J peak point position, and locating and obtaining a plurality of target ballistocardiogram signals from the signal to be located according to each of the J peak point positions and a preset time range;

[0088] A signal parameter acquisition module to be located, used for obtaining the similarity between the signal-to-noise ratio and the heartbeat morphology of the signal to be located according to the multiple target ballistocardiogram signals;

[0089] The ballistocardiogram signal detection module is used to determine the accuracy of multiple target ballistocardiogram signals located by the signal to be located according to the similarity between the signal-to-noise ratio of the signal to be located and the heartbeat morphology.

[0090] In a feasible embodiment, the ballistocardiogram signal detection module includes:

[0091] A first detection module, configured to determine that the plurality of target ballistocardiogram signals obtained by locating the signal to be located are valid ballistocardiogram signals with high accuracy if the signal-to-noise ratio is greater than a preset first signal-to-noise ratio threshold and the similarity is greater than a preset first similarity threshold;

[0092] The second detection module is used to determine that the multiple target ballistocardiogram signals obtained by locating the signal to be located are invalid ballistocardiogram signals with low accuracy if the signal-to-noise ratio is less than a preset second signal-to-noise ratio threshold and the similarity is less than a preset second similarity threshold.

[0093] It should be noted that the lightweight ballistocardiogram locating device provided in the second embodiment of the present application only uses the division of the above-mentioned functional modules as an example when executing the lightweight ballistocardiogram locating method. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. In addition, the lightweight ballistocardiogram locating device provided in the second embodiment of the present application and the lightweight ballistocardiogram locating method of the first embodiment of the present application belong to the same concept. The implementation process thereof is detailed in the method embodiment and will not be repeated here.

[0094] A third aspect of an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the lightweight ballistocardiogram positioning method as described above are implemented.

[0095] A fourth aspect of an embodiment of the present application provides a computer device, comprising a memory, a processor, and a computer program stored in the memory and executable by the processor, wherein the processor implements the steps of the lightweight ballistocardiogram positioning method as described above when executing the computer program.

[0096] The device embodiments described above are merely illustrative, wherein the components described as separate parts may or may not be physically separated, and the parts displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the present application. Ordinary technicians in this field can understand and implement it without creative work.

[0097] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.

[0098] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 These computer program instructions can also be stored in a computer-readable memory that can guide a computer or other programmable data processing device to work in a specific way, so that the instructions stored in the computer-readable memory produce a product including an instruction device, which implements the function selected in the process. Figure 1 A process or multiple processes and / or boxes Figure 1 function selected in a box or multiple boxes.

[0099] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 steps for the function selected in a box or multiple boxes.

[0100] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0101] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0102] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0103] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0104] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.

Claims

1. A lightweight ballistocardiogram positioning method, characterized in that: include: Constructing a Ghost-Unet model; wherein the Ghost-Unet model includes a Ghost convolution layer, a plurality of down-sampling Ghost convolution layers, a down-sampling layer, a Bi-GRU convolution layer, a plurality of up-sampling Ghost convolution layers and a one-dimensional convolution layer connected in sequence, and the plurality of down-sampling Ghost convolution layers are correspondingly connected to the plurality of up-sampling Ghost convolution layers; Training the Ghost-Unet model according to the ballistocardiogram signal training sample to obtain a lightweight J peak probability detection model; Inputting the signal to be located into the lightweight J-peak probability detection model to obtain a J-peak positioning square wave signal corresponding to the signal to be located; According to the J peak positioning square wave signal, the J peak point position of the signal to be positioned is obtained to locate the ballistocardiogram signal in the signal to be positioned; The ballistocardiogram signal training sample is a training sample of the ballistocardiogram signal annotated with a J peak positioning square wave peak centered at the J peak point position and covering a plurality of point positions before the J peak point position and a plurality of point positions after the J peak point position; The step of training the Ghost-Unet model according to the ballistocardiogram signal training sample comprises: Inputting the ballistocardiogram signal training sample marked with J peak into the Ghost convolution layer for multiple Ghost convolution processes to obtain a Ghost convolution output matrix; The Ghost convolution output matrix is ​​sequentially downsampled and Ghost convolved through the multiple downsampled Ghost convolution layers to obtain a downsampled Ghost convolution output matrix; wherein the first downsampled Ghost convolution layer receives the Ghost convolution output matrix, and the remaining downsampled Ghost convolution layers receive the downsampled Ghost convolution output matrix output by the previous downsampled Ghost convolution layer; Performing temporal feature extraction and convolution processing on the down-sampled Ghost convolution output matrix output by the last down-sampled Ghost convolution layer through the down-sampled layer to obtain a temporal feature convolution output matrix; The temporal feature convolution output matrix is ​​upsampled and Ghost convolved through the multiple upsampled Ghost convolution layers to obtain an upsampled Ghost convolution output matrix; wherein the first upsampled Ghost convolution layer receives the temporal feature convolution output matrix and the corresponding downsampled Ghost convolution output matrix output by the downsampled Ghost convolution layer; the remaining upsampled Ghost convolution layers receive the upsampled Ghost convolution output matrix output by the previous upsampled Ghost convolution layer and the downsampled Ghost convolution output matrix output by the downsampled Ghost convolution layer corresponding to each upsampled Ghost convolution layer; Performing one-dimensional convolution processing on the up-sampled Ghost convolution output matrix output by the last up-sampled Ghost convolution layer through the one-dimensional convolution layer to obtain the training signal features of the ballistocardiogram signal training sample; Determine a J peak positioning square wave prediction signal of the ballistocardiogram signal training sample according to the training signal characteristics; According to the peak position of the J peak locating square wave prediction signal and the position error of the J peak locating square wave peak annotated by the ballistocardiogram signal training sample, the model parameters of the Ghost-Unet model are modified to obtain the lightweight J peak probability detection model.

2. The lightweight ballistocardiogram positioning method according to claim 1, characterized in that: The step of obtaining the J peak point position of the signal to be located according to the J peak locating square wave signal to locate the ballistocardiogram signal in the signal to be located comprises: Obtaining the peak of the J-peak positioning square wave signal; The midpoint signal position between the rising edge and the falling edge of each wave crest is determined as the J peak point position, and multiple target ballistocardiogram signals are located from the signal to be located according to each of the J peak point positions and a preset time range; According to the multiple target ballistocardiogram signals, obtaining the similarity between the signal-to-noise ratio and the heartbeat morphology of the signal to be located; The accuracy of the multiple target ballistocardiogram signals located by the signal to be located is determined according to the similarity between the signal-to-noise ratio and the heartbeat morphology of the signal to be located.

3. The lightweight ballistocardiogram positioning method according to claim 2, characterized in that: The step of determining the accuracy of a plurality of target ballistocardiogram signals obtained by locating the signal to be located based on the similarity between the signal-to-noise ratio of the signal to be located and the heartbeat morphology comprises: If the signal-to-noise ratio is greater than a preset first signal-to-noise ratio threshold, and the similarity is greater than a preset first similarity threshold, it is determined that the multiple target ballistocardiogram signals obtained by locating the signal to be located are valid ballistocardiogram signals with high accuracy; If the signal-to-noise ratio is less than a preset second signal-to-noise ratio threshold, and the similarity is less than a preset second similarity threshold, it is determined that the multiple target ballistocardiogram signals located by the signal to be located are invalid ballistocardiogram signals with low accuracy.

4. A lightweight ballistocardiogram positioning device, characterized in that: include: A model construction module, used to construct a Ghost-Unet model; wherein the Ghost-Unet model includes a Ghost convolution layer, a plurality of down-sampling Ghost convolution layers, a down-sampling layer, a Bi-GRU convolution layer, a plurality of up-sampling Ghost convolution layers and a one-dimensional convolution layer connected in sequence, and the plurality of down-sampling Ghost convolution layers are correspondingly connected to the plurality of up-sampling Ghost convolution layers; A training module, used for training the Ghost-Unet model according to the ballistocardiogram signal training sample to obtain a lightweight J peak probability detection model; A J-peak positioning square wave signal acquisition module, used for inputting the signal to be positioned into the lightweight J-peak probability detection model to obtain the J-peak positioning square wave signal corresponding to the signal to be positioned; A positioning module, used to obtain the J peak point position of the signal to be positioned according to the J peak positioning square wave signal, so as to locate and obtain the ballistocardiogram signal in the signal to be positioned; The ballistocardiogram signal training sample is a training sample of the ballistocardiogram signal annotated with a J peak positioning square wave peak centered at the J peak point position and covering a plurality of point positions before the J peak point position and a plurality of point positions after the J peak point position; The training module includes: A Ghost convolution processing module, used for inputting the ballistocardiogram signal training sample marked with J peak into the Ghost convolution layer for multiple Ghost convolution processing to obtain a Ghost convolution output matrix; A down-sampling Ghost convolution processing module is used to perform down-sampling processing and Ghost convolution processing on the Ghost convolution output matrix in sequence through the multiple down-sampling Ghost convolution layers to obtain a down-sampling Ghost convolution output matrix; wherein the first down-sampling Ghost convolution layer receives the Ghost convolution output matrix, and the remaining down-sampling Ghost convolution layers receive the down-sampling Ghost convolution output matrix output by the previous down-sampling Ghost convolution layer; A temporal feature convolution processing module, used for performing temporal feature extraction and convolution processing on the down-sampled Ghost convolution output matrix output by the last down-sampled Ghost convolution layer through the down-sampled layer to obtain a temporal feature convolution output matrix; An up-sampling Ghost convolution processing module is used to perform up-sampling and Ghost convolution processing on the temporal feature convolution output matrix through the multiple up-sampling Ghost convolution layers to obtain an up-sampling Ghost convolution output matrix; wherein, the first up-sampling Ghost convolution layer receives the temporal feature convolution output matrix and the corresponding down-sampling Ghost convolution output matrix output by the down-sampling Ghost convolution layer; the remaining up-sampling Ghost convolution layers receive the up-sampling Ghost convolution output matrix output by the previous up-sampling Ghost convolution layer and the down-sampling Ghost convolution output matrix output by the down-sampling Ghost convolution layer corresponding to each up-sampling Ghost convolution layer; A one-dimensional convolution processing module, used for performing one-dimensional convolution processing on the up-sampled Ghost convolution output matrix output by the last up-sampled Ghost convolution layer through the one-dimensional convolution layer to obtain the training signal features of the ballistocardiogram signal training sample; A square wave prediction signal determination module, used to determine the J peak positioning square wave prediction signal of the ballistocardiogram signal training sample according to the training signal characteristics; The parameter modification module is used to modify the model parameters of the Ghost-Unet model according to the peak position of the J peak locating square wave prediction signal and the position error of the J peak locating square wave peak annotated by the ballistocardiogram signal training sample to obtain the lightweight J peak probability detection model.

5. The lightweight ballistocardiogram positioning device according to claim 4, characterized in that: The positioning module comprises: A peak acquisition module, used to acquire the peak of the J-peak positioning square wave signal; A positioning submodule, used for determining the midpoint signal position between the rising edge and the falling edge position of each wave peak as the J peak point position, and locating and obtaining a plurality of target ballistocardiogram signals from the signal to be located according to each of the J peak point positions and a preset time range; A signal parameter acquisition module to be located, used for obtaining the similarity between the signal-to-noise ratio and the heartbeat morphology of the signal to be located according to the multiple target ballistocardiogram signals; The ballistocardiogram signal detection module is used to determine the accuracy of multiple target ballistocardiogram signals obtained by locating the signal to be located based on the signal-to-noise ratio of the signal to be located and the similarity between the heartbeat morphologies.

6. The lightweight ballistocardiogram positioning device according to claim 5, characterized in that: The ballistocardiogram signal detection module comprises: A first detection module, configured to determine that the plurality of target ballistocardiogram signals obtained by locating the signal to be located are valid ballistocardiogram signals with high accuracy if the signal-to-noise ratio is greater than a preset first signal-to-noise ratio threshold and the similarity is greater than a preset first similarity threshold; The second detection module is used to determine that the multiple target ballistocardiogram signals obtained by locating the signal to be located are invalid ballistocardiogram signals with low accuracy if the signal-to-noise ratio is less than a preset second signal-to-noise ratio threshold and the similarity is less than a preset second similarity threshold.

7. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the lightweight ballistocardiogram positioning method according to any one of claims 1 to 3 are implemented.

8. A computer device, characterized in that: The method comprises a memory, a processor and a computer program stored in the memory and executable by the processor, wherein the processor implements the steps of the lightweight ballistocardiogram positioning method as described in any one of claims 1 to 3 when executing the computer program.

Citation Information

Patent Citations

  • Training method and device of detection model based on GhostNet and medium

    CN112036236A

  • Ballistocardiogram signal positioning method and computer equipment

    CN114010186A

  • Electrocardiosignal classification method and device, computer readable medium and electronic equipment

    CN115886833A