A method for adjusting a cardiac shock signal and related equipment
By recording the length of the user in bed and collecting the heart impact signal, determining the clipping type of the signal and selecting the appropriate adjustment mode, dynamic gain adjustment of the heart impact signal is solved, and the signal inaccuracy caused by the fixed gain value is improved, and the signal recognition accuracy is improved.
Patent Information
- Application Number
- CN202310112301.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-14
- Publication Date
- 2025-05-02
- Estimated Expiration
- 2043-02-14
AI Technical Summary
When using a fixed gain value in the prior art, the energy of the heart impact signal caused by the use environment may be too large, and the peak and valley clipping phenomenon may occur, or the energy of the heart impact signal is too small, and the situation cannot be recognized due to the use environment, which may lead to inaccuracy of the heart impact signal.
By recording the length of the user in bed and collecting the user's heart impact signal, determining the clipping type of the signal, determining the target adjustment mode in the preset adjustment mode table based on the length of the user in bed, and adjusting the heart impact signal using the fast gain mode or the slow gain mode.
By dynamically adjusting the gain of the core impact signal, avoid clipping and identification failures caused by excessive or too small signal energy, and improve the accuracy of the core impact signal.
Smart Images

Figure CN116098612B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of processing cardiac impact signals, and in particular to a method for adjusting cardiac impact signals and related equipment. Background Art
[0002] As people pay more and more attention to their physical health, physiological parameter monitoring technology based on cardiac impact signals has attracted much attention, and commercial products and services have also been developed and applied to a certain extent. Piezoelectric ceramic sensors and piezoelectric film sensors can be used to collect cardiac impact signals. Since the energy of the collected signals is relatively weak, in order to facilitate later processing, the signals need to be converted to digital and amplified. The gain setting of the current cardiac impact signal acquisition system is usually a fixed value, and the signal is amplified at a fixed ratio. However, when the gain is fixed, it cannot adapt to more usage scenarios. For example, if the sensor is placed under a thicker mattress, the amplitude of the collected cardiac impact signal is small, resulting in the extraction of the heartbeat signal from the signal in the subsequent processing. The signal is too small to be recognized; when used under a thinner mattress, the signal is amplified to a larger value, which is prone to clipping at the peak position, resulting in the loss of some heartbeat signals and respiratory signals, affecting the accuracy of recognition.
[0003] Fixed gain values are usually used in existing cardiac shock signal acquisition. However, the fixed gain value may cause the cardiac shock signal energy to be too large due to the use environment, resulting in peak and valley clipping, or the cardiac shock signal energy to be too small due to the use environment, resulting in unrecognizable situation, thereby causing inaccurate cardiac shock signal. Summary of the invention
[0004] In view of this, the present invention provides a method for adjusting a cardiac shock signal and related equipment, which are used to solve the problem in the prior art that when a fixed gain value is used, the cardiac shock signal energy may be too large due to the use environment, resulting in peak and valley clipping, or the cardiac shock signal energy may be too small due to the use environment, resulting in an unrecognizable situation, thereby causing inaccurate cardiac shock signals.
[0005] To achieve one, part, or all of the above purposes or other purposes, the present invention provides a method for adjusting a heartbeat signal, comprising:
[0006] Record the user's bed time and collect the user's cardiac signal;
[0007] Determining a clipping type of the user's cardiac shock signal based on the user's cardiac shock signal, and judging whether the user's cardiac shock signal needs to be adjusted according to the clipping type, wherein the clipping type includes clipping caused by breathing and clipping caused by body movement;
[0008] When the user's cardiac arrest signal needs to be adjusted, determining a target adjustment mode corresponding to the user's bed time in a preset adjustment mode table according to the user's bed time, the preset adjustment mode table including different bed time and different adjustment modes corresponding to the different bed time, the adjustment mode including a fast gain mode and a slow gain mode;
[0009] The user's cardiac impulse signal is adjusted based on the target adjustment mode.
[0010] Optionally, before the step of determining the clipping type of the user's cardiac impulse signal based on the user's cardiac impulse signal, the method further includes:
[0011] Performing gain processing on the user's cardiac impact signal according to a preset first gain value to obtain a first cardiac impact signal;
[0012] The first cardiac impulse signal is filtered to obtain a respiratory signal, wherein the filtering includes low-pass filtering and mean filtering.
[0013] Optionally, the step of determining a clipping type of the user's cardiac arrest signal based on the user's cardiac arrest signal, wherein the clipping type includes clipping caused by breathing and clipping caused by body movement, comprises:
[0014] Acquire a ballistic cardiac signal amplitude of the first ballistic cardiac signal;
[0015] Determining a cardiac shock clipping phenomenon of the first cardiac shock signal based on the cardiac shock signal amplitude, and determining a first sorting method of a first initial feature queue corresponding to the cardiac shock clipping phenomenon;
[0016] Update the first initial feature queue based on the first sorting method to obtain the first feature queue;
[0017] The clipping type of the user's cardiac arrest signal is determined according to the first feature queue and the breathing signal, where the clipping type includes clipping caused by breathing and clipping caused by body movement.
[0018] Optionally, the step of determining the clipping type of the user's cardiac arrest signal according to the target feature queue and the breathing signal, wherein the clipping type includes clipping caused by breathing and clipping caused by body movement, comprises:
[0019] Acquiring a respiratory signal amplitude of the respiratory signal;
[0020] Determining the clipping phenomenon of the respiratory signal based on the amplitude of the respiratory signal, and determining a second sorting method of a second initial feature queue corresponding to the respiratory phenomenon;
[0021] Update the second initial feature queue based on the second sorting method to obtain the second feature queue;
[0022] The clipping type of the user's cardiac arrest signal is determined according to the first feature queue and the second feature queue, and the clipping type includes clipping caused by breathing and clipping caused by body movement.
[0023] Optionally, the step of determining a clipping type of the user's cardiac arrest signal according to the first feature queue and the second feature queue, wherein the clipping type includes clipping caused by breathing and clipping caused by body movement, comprises:
[0024] Determine the duration of the consistency between the clipping interval of the heart ballistoic signal and the clipping interval of the respiratory signal based on the first feature queue and the second feature queue;
[0025] The clipping type of the user's cardiac arrest signal is determined based on the duration, where the clipping type includes clipping caused by breathing and clipping caused by body movement.
[0026] Optionally, the step of adjusting the user's cardiac impulse signal based on the target adjustment mode includes:
[0027] When the target adjustment mode is the fast gain mode, the heart beat signal amplitude of the first heart beat signal within the first preset time is obtained, and the number of first target heart beat signal amplitudes greater than the preset maximum heart beat signal amplitude within the first preset time and the number of second target heart beat signal amplitudes less than the preset minimum heart beat signal amplitude within the first preset time are recorded;
[0028] When the number of first target cardiac impact signal amplitudes greater than the preset maximum cardiac impact signal amplitude is greater than or equal to a first preset number, performing downgrade calculation on the preset first gain value to obtain a target gain value, and adjusting the user cardiac impact signal based on the target gain value;
[0029] When the number of second target cardiac arrest signal amplitudes less than the preset minimum cardiac arrest signal amplitude is greater than or equal to a second preset number, the preset first gain value is upgraded and calculated to obtain a target gain value, and the user cardiac arrest signal is adjusted based on the target gain value.
[0030] Optionally, the step of adjusting the user's cardiac shock signal based on the target adjustment mode further includes:
[0031] When the target adjustment mode is the slow gain mode, the heart beat signal amplitude of the first heart beat signal within the second preset time is obtained, and the number of third target heart beat signal amplitudes greater than the preset maximum heart beat signal amplitude within the second preset time and the number of fourth target heart beat signal amplitudes less than the preset minimum heart beat signal amplitude within the second preset time are recorded;
[0032] When the number of third target cardiac shock signal amplitudes greater than the preset maximum cardiac shock signal amplitude is greater than or equal to a third preset number, performing downgrade calculation on the preset first gain value to obtain a target gain value, and adjusting the user cardiac shock signal based on the target gain value;
[0033] When the number of fourth target heartbeat signal amplitudes that are less than the preset minimum heartbeat signal amplitude is greater than or equal to a fourth preset number, the preset first gain value is upgraded and calculated to obtain a target gain value, and the user heartbeat signal is adjusted based on the target gain value;
[0034] When the cardiac impact signal amplitude of the first cardiac impact signal within the second preset time is less than the preset maximum cardiac impact signal amplitude, and the cardiac impact signal amplitude of the first cardiac impact signal within the second preset time is greater than the preset minimum cardiac impact signal amplitude, the preset first gain value is maintained unchanged.
[0035] On the other hand, an embodiment of the present application provides a device for adjusting a cardiac impulse signal, the device comprising:
[0036] Data collection module, used to record the user's bed time and collect the user's cardiac signal;
[0037] a judgment module, configured to determine a clipping type of the user's cardiac shock signal based on the user's cardiac shock signal, and to judge whether the user's cardiac shock signal needs to be adjusted according to the clipping type, wherein the clipping type includes clipping caused by breathing and clipping caused by body movement;
[0038] a mode selection module, configured to determine, when the user's cardiac arrest signal needs to be adjusted, a target adjustment mode corresponding to the user's bed time in a preset adjustment mode table according to the user's bed time, wherein the preset adjustment mode table includes different bed time and different adjustment modes corresponding to the different bed time, and the adjustment modes include a fast gain mode and a slow gain mode;
[0039] An adjustment module is used to adjust the user's cardiac impulse signal based on the target adjustment mode.
[0040] In a third aspect, the present application provides an electronic device comprising: a processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor and the memory communicate via the bus, and when the machine-readable instructions are executed by the processor, the steps of the method for adjusting the cardiac impulse signal as described above are performed.
[0041] In a fourth aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of the method for adjusting the cardiac ballistogalactimetry signal as described above are executed.
[0042] Implementing the embodiments of the present invention will have the following beneficial effects:
[0043] Record the length of time the user has been in bed, and collect the user's cardiac impact signal; determine the clipping type of the user's cardiac impact signal based on the user's cardiac impact signal, and judge whether the user's cardiac impact signal needs to be adjusted according to the clipping type, and the clipping type includes clipping caused by breathing and clipping caused by body movement; when the user's cardiac impact signal needs to be adjusted, determine the target adjustment mode corresponding to the user's bed time in the preset adjustment mode table according to the user's bed time, and the preset adjustment mode table includes different bed time and different adjustment modes corresponding to the different bed time, and the adjustment mode includes a fast gain mode and a slow gain mode; adjust the user's cardiac impact signal based on the target adjustment mode. By dynamically adjusting the gain of the cardiac impact signal, that is, judging whether it is currently in a fast adjustment stage or a slow adjustment stage, determine the gain adjustment cycle. In the gain adjustment cycle, it is determined whether the amplitude of the cardiac impact signal is greater than the preset maximum cardiac impact signal amplitude threshold or less than the preset minimum cardiac impact signal amplitude threshold. When more than half of the duration is greater than the preset cardiac impact signal amplitude threshold, it indicates that the cardiac impact signal energy is large, and clipping occurs at the peak / valley position, and a new gain value needs to be calculated according to the current gain. When more than half of the duration is less than the preset cardiac impact signal amplitude threshold, it indicates that the cardiac impact signal energy is small, and the cardiac impact signal energy is too small to be recognized, and a new gain value needs to be calculated according to the current gain value. The new gain value is updated to achieve the purpose of reducing the cardiac impact signal amplitude or increasing the cardiac impact signal amplitude, so that the cardiac impact signal amplitude is within a limited range, avoiding the situation where the cardiac impact signal energy is too large to cause clipping or the cardiac impact signal energy is too small to be recognized. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0045] in:
[0046] Figure 1 It is a flow chart of a method for adjusting a cardiac impulse signal provided in an embodiment of the present application;
[0047] Figure 2 is a flow chart of another method for adjusting a cardiac impulse signal provided in an embodiment of the present application;
[0048] Figure 3 is a flow chart of another method for adjusting a cardiac impulse signal provided in an embodiment of the present application;
[0049] Figure 4 is a flow chart of another method for adjusting a cardiac shock signal provided in an embodiment of the present application;
[0050] Figure 5 is a flow chart of another method for adjusting a cardiac shock signal provided in an embodiment of the present application;
[0051] Figure 6 It is a structural schematic diagram of a cardiac shock signal adjustment device provided in an embodiment of the present application;
[0052] Figure 7 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application;
[0053] Figure 8 It is a structural schematic diagram of a storage medium provided in an embodiment of the present application. DETAILED DESCRIPTION
[0054] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0055] like Figure 1 As shown, the embodiment of the present application provides a method for adjusting a cardiac impulse signal, comprising:
[0056] S101, recording the user's bedtime and collecting the user's cardiac signal;
[0057] S102, determining a clipping type of the user's cardiac signal based on the user's cardiac signal, and judging whether the user's cardiac signal needs to be adjusted according to the clipping type, wherein the clipping type includes clipping caused by breathing and clipping caused by body movement;
[0058] Exemplarily, when the clipping type of the user's cardiac arrest signal is clipping caused by body movement, it is determined that the user's cardiac arrest signal does not need to be adjusted; when the clipping type of the user's cardiac arrest signal is clipping caused by breathing, it is determined that the user's cardiac arrest signal needs to be adjusted.
[0059] S103: when the user's cardiac arrest signal needs to be adjusted, determining a target adjustment mode corresponding to the user's bed time in a preset adjustment mode table according to the user's bed time, wherein the preset adjustment mode table includes different bed time and different adjustment modes corresponding to the different bed time, and the adjustment modes include a fast gain mode and a slow gain mode;
[0060] For example, Figure 2 As shown, the continuous bed time is obtained; it is determined whether the continuous bed time is less than a preset 90-second bed time threshold or greater than a preset 90-second bed time threshold, and when the bed time is less than the preset 90-second bed time threshold, the fast gain mode is selected; when the bed time is greater than or equal to the preset 90-second bed time threshold, the slow gain mode is selected.
[0061] S104: Adjust the user's cardiac arrest signal based on the target adjustment mode.
[0062] Record the length of time the user has been in bed, and collect the user's cardiac impact signal; determine the clipping type of the user's cardiac impact signal based on the user's cardiac impact signal, and judge whether the user's cardiac impact signal needs to be adjusted according to the clipping type, and the clipping type includes clipping caused by breathing and clipping caused by body movement; when the user's cardiac impact signal needs to be adjusted, determine the target adjustment mode corresponding to the user's bed time in the preset adjustment mode table according to the user's bed time, and the preset adjustment mode table includes different bed time and different adjustment modes corresponding to the different bed time, and the adjustment mode includes a fast gain mode and a slow gain mode; adjust the user's cardiac impact signal based on the target adjustment mode. By dynamically adjusting the gain of the cardiac impact signal, that is, judging whether it is currently in a fast adjustment stage or a slow adjustment stage, determine the gain adjustment cycle. In the gain adjustment cycle, it is determined whether the amplitude of the cardiac impact signal is greater than the preset maximum cardiac impact signal amplitude threshold or less than the preset minimum cardiac impact signal amplitude threshold. When more than half of the duration is greater than the preset cardiac impact signal amplitude threshold, it indicates that the cardiac impact signal energy is large, and clipping occurs at the peak / valley position, and a new gain value needs to be calculated according to the current gain. When more than half of the duration is less than the preset cardiac impact signal amplitude threshold, it indicates that the cardiac impact signal energy is small, and the cardiac impact signal energy is too small to be recognized, and a new gain value needs to be calculated according to the current gain value. The new gain value is updated to achieve the purpose of reducing the cardiac impact signal amplitude or increasing the cardiac impact signal amplitude, so that the cardiac impact signal amplitude is within a limited range, avoiding the situation where the cardiac impact signal energy is too large to cause clipping or the cardiac impact signal energy is too small to be recognized.
[0063] In a possible implementation manner, before the step of determining the clipping type of the user's cardiac impulse signal based on the user's cardiac impulse signal, the method further includes:
[0064] Performing gain processing on the user's cardiac impact signal according to a preset first gain value to obtain a first cardiac impact signal;
[0065] The first cardiac impulse signal is filtered to obtain a respiratory signal, wherein the filtering includes low-pass filtering and mean filtering.
[0066] In a possible implementation, the step of determining the clipping type of the user's ballistic cardiac signal based on the user's ballistic cardiac signal, wherein the clipping type includes clipping caused by breathing and clipping caused by body movement, comprises:
[0067] Acquire a ballistic cardiac signal amplitude of the first ballistic cardiac signal;
[0068] Determining a cardiac shock clipping phenomenon of the first cardiac shock signal based on the cardiac shock signal amplitude, and determining a first sorting method of a first initial feature queue corresponding to the cardiac shock clipping phenomenon;
[0069] Update the first initial feature queue based on the first sorting method to obtain the first feature queue;
[0070] The clipping type of the user's cardiac arrest signal is determined according to the first feature queue and the breathing signal, where the clipping type includes clipping caused by breathing and clipping caused by body movement.
[0071] For example, Figure 3 As shown, a cardiac impact signal after amplification by a first gain is obtained; the cardiac impact signal amplitude within a 0.25 second window is obtained; it is determined whether the cardiac impact signal amplitude within the 0.25 second window is greater than a preset cardiac impact signal peak clipping threshold or less than a preset cardiac impact signal trough clipping threshold; when there is a cardiac impact signal amplitude equal to or exceeding 0.12 seconds within the 0.25 second window that is greater than the preset cardiac impact signal peak clipping amplitude threshold, it is determined that there is a cardiac impact signal peak side clipping phenomenon in the window; when the 0.25 second window has a cardiac impact signal amplitude equal to or exceeding 0.12 seconds that is greater than the preset cardiac impact signal peak clipping amplitude threshold, it is determined that there is a cardiac impact signal peak side clipping phenomenon in the window; When there is a cardiac shock signal amplitude equal to or exceeding 0.12 seconds in the window and is less than the preset cardiac shock signal peak clipping amplitude threshold, it is judged that there is no cardiac shock signal peak side clipping phenomenon in the window; when there is a cardiac shock signal peak side clipping phenomenon in the 0.25 window, the first element of the cardiac shock signal peak side clipping feature queue S0 with a length of 100 is deleted, and a new element is inserted at the end of the queue, and the value of the new element is set to 1; when there is no ... is deleted, and a new element is inserted at the end of the queue, and the value of the new element is set to 1; The first element of the cardiac impact signal peak side clipping feature queue S0 of 0 is deleted, and a new element is inserted at the end of the queue, and the value of the new element is set to 0; when there is a cardiac impact signal amplitude equal to or greater than 0.12 seconds in the 0.25 second window and it is less than the preset cardiac impact signal trough clipping amplitude threshold, it is judged that there is a cardiac impact signal trough side clipping phenomenon in the window; when there is a cardiac impact signal amplitude equal to or greater than 0.12 seconds in the 0.25 second window and it is greater than the preset cardiac impact signal trough clipping amplitude threshold, it is judged that There is no clipping phenomenon on the trough side of the heart attack signal in the window; when there is clipping phenomenon on the trough side of the heart attack signal in the 0.25 window, the first element of the heart attack signal trough side clipping feature queue S1 with a length of 100 is deleted, and a new element is inserted at the tail of the queue, and the value of the new element is set to 1; when there is no clipping phenomenon on the trough side of the heart attack signal in the 0.25 window, the first element of the heart attack signal trough side clipping feature queue S1 with a length of 100 is deleted, and a new element is inserted at the tail of the queue, and the value of the new element is set to 0.
[0072] In a possible implementation, the step of determining the clipping type of the user's heartbeat signal according to the target feature queue and the breathing signal, wherein the clipping type includes clipping caused by breathing and clipping caused by body movement, comprises:
[0073] Acquiring a respiratory signal amplitude of the respiratory signal;
[0074] Determining the clipping phenomenon of the respiratory signal based on the amplitude of the respiratory signal, and determining a second sorting method of a second initial feature queue corresponding to the respiratory phenomenon;
[0075] Update the second initial feature queue based on the second sorting method to obtain the second feature queue;
[0076] The clipping type of the user's cardiac arrest signal is determined according to the first feature queue and the second feature queue, and the clipping type includes clipping caused by breathing and clipping caused by body movement.
[0077] For example, Figure 3As shown, the respiratory signal after the heartbeat signal is filtered by 0.9 Hz low-pass filtering and 75-item mean filtering is obtained; the respiratory signal amplitude in the 0.25 second window is obtained; it is determined whether the respiratory signal amplitude in the 0.25 second window is greater than a preset respiratory signal peak clipping threshold or less than a preset respiratory signal trough clipping threshold; when there is a respiratory signal amplitude equal to or exceeding 0.12 seconds in the 0.25 second window that is greater than the preset respiratory signal peak clipping amplitude threshold, it is determined that there is a respiratory signal peak side in the window Clipping phenomenon; when there is a respiratory signal amplitude equal to or exceeding 0.12 seconds in the 0.25 second window and it is less than the preset respiratory signal peak clipping amplitude threshold, it is judged that there is no respiratory signal peak side clipping phenomenon in the window; when there is a respiratory signal peak side clipping phenomenon in the 0.25 window, the first element of the respiratory signal peak side clipping feature queue S2 with a length of 100 is deleted, and a new element is inserted at the end of the queue, and the value of the new element is set to 1; when there is no respiratory signal peak side clipping phenomenon in the 0.25 window, When the respiratory signal peak side clipping feature queue S2 with a length of 100 is detected, the first element of the queue S2 is deleted, and a new element is inserted at the end of the queue, and the value of the new element is set to 0; when there is a respiratory signal amplitude equal to or greater than 0.12 seconds in the 0.25 second window and it is less than the preset respiratory signal trough clipping amplitude threshold, it is judged that there is a respiratory signal trough side clipping phenomenon in the window; when there is a respiratory signal amplitude equal to or greater than 0.12 seconds in the 0.25 second window and it is greater than the preset respiratory signal trough clipping amplitude threshold, , it is judged that there is no clipping phenomenon on the trough side of the respiratory signal in the window; when there is clipping phenomenon on the trough side of the respiratory signal in the 0.25 window, the first element of the respiratory signal trough side clipping feature queue S3 with a length of 100 is deleted, and a new element is inserted at the tail of the queue, and the value of the new element is set to 1; when there is no clipping phenomenon on the trough side of the respiratory signal in the 0.25 window, the first element of the respiratory signal trough side clipping feature queue S3 with a length of 100 is deleted, and a new element is inserted at the tail of the queue, and the value of the new element is set to 0.
[0078] In a possible implementation, the step of determining the clipping type of the user's ballistic cardiac signal according to the first feature queue and the second feature queue, wherein the clipping type includes clipping caused by breathing and clipping caused by body movement, comprises:
[0079] Determine the duration of the consistency between the clipping interval of the heart ballistoic signal and the clipping interval of the respiratory signal based on the first feature queue and the second feature queue;
[0080] The clipping type of the user's cardiac arrest signal is determined based on the duration, where the clipping type includes clipping caused by breathing and clipping caused by body movement.
[0081] For example, Figure 3As shown, the average interval TS0 of clipping on the peak side of the central impact signal of the queue S0 is calculated; the average interval TS1 of clipping on the trough side of the central impact signal of the queue S1 is calculated; the average interval TS2 of clipping on the peak side of the respiratory signal in the queue S2 is calculated; the average interval TS3 of clipping on the trough side of the respiratory signal in the queue S3 is calculated; the difference DT0 between the average clipping interval TS0 on the peak side of the cardiac impact signal and the average clipping interval TS2 on the peak side of the respiratory signal is calculated; the difference DT1 between the average clipping interval TS0 on the peak side of the cardiac impact signal and the average clipping interval TS3 on the trough side of the respiratory signal is calculated; the difference DT2 between the average clipping interval TS1 on the trough side of the cardiac impact signal and the average clipping interval TS2 on the peak side of the respiratory signal is calculated; The difference DT3 of the side clipping average interval TS3; determine whether the DT0, DT1, DT2 and DT3 have an interval difference value equal to or less than a preset interval difference threshold; when there is an interval difference value equal to or less than the preset interval difference threshold among the DT0, DT1, DT2 and DT3, it is determined that the clipping interval of the cardiac impact signal and the clipping interval of the respiratory signal are consistent; when there is no interval difference value equal to or less than the preset interval difference threshold among the DT0, DT1, DT2 and DT3, it is determined that the clipping interval of the cardiac impact signal and the clipping interval of the respiratory signal are inconsistent; determine whether the duration of the consistency between the cardiac impact signal clipping interval and the respiratory signal clipping interval is equal to or greater than the preset consistency duration threshold; when the duration of the consistency is equal to or greater than the preset consistency duration threshold, it is determined that the current clipping phenomenon is caused by breathing; when the duration of the consistency is less than the preset consistency duration threshold, it is determined that the current clipping phenomenon is caused by body movement.
[0082] In a possible implementation, the step of adjusting the user's cardiac impulse signal based on the target adjustment mode includes:
[0083] When the target adjustment mode is the fast gain mode, the heart beat signal amplitude of the first heart beat signal within the first preset time is obtained, and the number of first target heart beat signal amplitudes greater than the preset maximum heart beat signal amplitude within the first preset time and the number of second target heart beat signal amplitudes less than the preset minimum heart beat signal amplitude within the first preset time are recorded;
[0084] When the number of first target cardiac impact signal amplitudes greater than the preset maximum cardiac impact signal amplitude is greater than or equal to a first preset number, performing downgrade calculation on the preset first gain value to obtain a target gain value, and adjusting the user cardiac impact signal based on the target gain value;
[0085] When the number of second target cardiac arrest signal amplitudes less than the preset minimum cardiac arrest signal amplitude is greater than or equal to a second preset number, the preset first gain value is upgraded and calculated to obtain a target gain value, and the user cardiac arrest signal is adjusted based on the target gain value.
[0086] For example, Figure 4 As shown, a method for rapid gain adjustment of a cardiac impact signal, that is, when the target adjustment mode is a rapid gain mode, includes: obtaining the amplitude of the cardiac impact signal after amplification by a first gain within a 2-second window; judging whether the cardiac impact signal amplitude within the 2-second window is greater than a preset maximum cardiac impact signal amplitude or less than a preset minimum cardiac impact signal amplitude; when there is a 2-second window equal to or greater than 3 / 6, the cardiac impact signal amplitude is greater than a preset maximum cardiac impact signal amplitude threshold, and it is identified as clipping caused by breathing, according to the first gain value, the second gain value is calculated by reducing 2 levels, that is, the target gain value; when there is a 2-second window equal to or greater than 3 / 6, the cardiac impact signal amplitude is less than the preset minimum cardiac impact signal amplitude threshold, according to the first gain value, the second gain value is calculated by increasing 1 level.
[0087] In a possible implementation, the step of adjusting the user's cardiac shock signal based on the target adjustment mode further includes:
[0088] When the target adjustment mode is the slow gain mode, the heart beat signal amplitude of the first heart beat signal within the second preset time is obtained, and the number of third target heart beat signal amplitudes greater than the preset maximum heart beat signal amplitude within the second preset time and the number of fourth target heart beat signal amplitudes less than the preset minimum heart beat signal amplitude within the second preset time are recorded;
[0089] When the number of third target cardiac shock signal amplitudes greater than the preset maximum cardiac shock signal amplitude is greater than or equal to a third preset number, performing downgrade calculation on the preset first gain value to obtain a target gain value, and adjusting the user cardiac shock signal based on the target gain value;
[0090] When the number of fourth target heartbeat signal amplitudes that are less than the preset minimum heartbeat signal amplitude is greater than or equal to a fourth preset number, the preset first gain value is upgraded and calculated to obtain a target gain value, and the user heartbeat signal is adjusted based on the target gain value;
[0091] When the cardiac impact signal amplitude of the first cardiac impact signal within the second preset time is less than the preset maximum cardiac impact signal amplitude, and the cardiac impact signal amplitude of the first cardiac impact signal within the second preset time is greater than the preset minimum cardiac impact signal amplitude, the preset first gain value is maintained unchanged.
[0092] For example, Figure 5 As shown, the amplitude of the cardiac impact signal after amplification by the first gain within a 20.48 second window is obtained; it is determined whether the cardiac impact signal amplitude in the 20.48 second window is greater than the preset maximum cardiac impact signal amplitude or less than the preset minimum cardiac impact signal amplitude; when there are equal to or more than 3 / 5 of the 20.48 second windows, the cardiac impact signal amplitude is greater than the preset maximum cardiac impact signal amplitude threshold, and the clipping type identification module identifies it as clipping caused by breathing, the second gain value is calculated by reducing the first gain value by 1 level; when there are equal to or more than 3 / 5 of the 20.48 second windows, the cardiac impact signal amplitude is less than the preset minimum cardiac impact signal amplitude threshold, the second gain value is calculated by increasing the first gain value by 1 level; when there are equal to or more than 3 / 5 of the 20.48 second windows, the cardiac impact signal amplitude is less than the preset maximum cardiac impact signal amplitude threshold and greater than the preset minimum cardiac impact signal amplitude threshold, the first gain value remains unchanged.
[0093] In a possible implementation, Figure 6 As shown, an embodiment of the present application provides a device for adjusting a cardiac impulse signal, the device comprising:
[0094] The data collection module 201 is used to record the user's bed time and collect the user's cardiac signal;
[0095] A judgment module 202 is used to determine a clipping type of the user's cardiac shock signal based on the user's cardiac shock signal, and judge whether the user's cardiac shock signal needs to be adjusted according to the clipping type, wherein the clipping type includes clipping caused by breathing and clipping caused by body movement;
[0096] A mode selection module 203 is used to determine, when the user's cardiac shock signal needs to be adjusted, a target adjustment mode corresponding to the user's bed time in a preset adjustment mode table according to the user's bed time, wherein the preset adjustment mode table includes different bed time and different adjustment modes corresponding to the different bed time, and the adjustment mode includes a fast gain mode and a slow gain mode;
[0097] The adjustment module 204 is used to adjust the user's cardiac impulse signal based on the target adjustment mode.
[0098] In a possible implementation, Figure 7As shown, an embodiment of the present application provides an electronic device 300, including: a memory 310, a processor 320, and a computer program 311 stored in the memory 310 and executable on the processor 320. When the processor 320 executes the computer program 311, the following steps are implemented: recording the time a user spends in bed, and collecting a cardiac impact signal of the user; determining a clipping type of the cardiac impact signal of the user based on the cardiac impact signal of the user, and judging whether the cardiac impact signal of the user needs to be adjusted according to the clipping type, wherein the clipping type includes clipping caused by breathing and clipping caused by body movement; when the cardiac impact signal of the user needs to be adjusted, determining a target adjustment mode corresponding to the time the user spends in bed in a preset adjustment mode table according to the time the user spends in bed, wherein the preset adjustment mode table includes different time in bed and different adjustment modes corresponding to the different time in bed, wherein the adjustment mode includes a fast gain mode and a slow gain mode; and adjusting the cardiac impact signal of the user based on the target adjustment mode.
[0099] In a possible implementation, Figure 8 As shown, an embodiment of the present application provides a computer-readable storage medium 400, on which a computer program 411 is stored. When the computer program 411 is executed by a processor, it is implemented as follows: recording the user's bed time and collecting the user's cardiac impact signal; determining the clipping type of the user's cardiac impact signal based on the user's cardiac impact signal, and judging whether the user's cardiac impact signal needs to be adjusted according to the clipping type, wherein the clipping type includes clipping caused by breathing and clipping caused by body movement; when the user's cardiac impact signal needs to be adjusted, determining a target adjustment mode corresponding to the user's bed time in a preset adjustment mode table according to the user's bed time, wherein the preset adjustment mode table includes different bed time and different adjustment modes corresponding to the different bed time, wherein the adjustment mode includes a fast gain mode and a slow gain mode; and a step of adjusting the user's cardiac impact signal based on the target adjustment mode.
[0100] The computer storage medium of the embodiment of the present invention can adopt any combination of one or more computer-readable media. The computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium can be, for example, but not limited to: an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples (non-exhaustive list) of computer-readable storage media include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this document, a computer-readable storage medium can be any tangible medium containing or storing a program, which can be used by an instruction execution system, device or device or used in combination with it.
[0101] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, which carry computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0102] The program code embodied on the computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
[0103] Computer program code for performing the operations of the present invention may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0104] It should be understood by those skilled in the art that the modules or steps of the present invention described above can be implemented by a general-purpose computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, optionally, they can be implemented by a program code executable by a computer device, so that they can be stored in a storage device and executed by the computing device, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.
[0105] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described above, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.
[0106] The above disclosure is only the preferred embodiment of the present invention, which certainly cannot be used to limit the scope of the present invention. Therefore, equivalent changes made according to the claims of the present invention are still within the scope of the present invention.
Claims
1. A method for adjusting a cardiac impulse signal, characterized in that: include: Record the user's bed time and collect the user's cardiac signal; Performing gain processing on the user's cardiac impact signal to obtain a first cardiac impact signal, and performing filtering processing on the first cardiac impact signal to obtain a breathing signal; Acquire the signal amplitudes of the first cardiac impact signal and the respiratory signal respectively, determine the clipping phenomenon of the first cardiac impact signal and the respiratory signal respectively based on the signal amplitudes, and obtain a first feature queue and a second feature queue respectively; Determine the duration of the consistency between the heartbeat signal clipping interval and the respiratory signal clipping interval based on the first feature queue and the second feature queue, and determine the clipping type of the user's heartbeat signal based on the duration; When the clipping type is clipping caused by body motion, determining that the user's ballistocardiogram signal does not need to be adjusted; When the clipping type is clipping caused by breathing, it is determined that the user's cardiac arrest signal needs to be adjusted, and a target adjustment mode corresponding to the user's bed time is determined in a preset adjustment mode table according to the user's bed time, the preset adjustment mode table including different bed time lengths and different adjustment modes corresponding to the different bed time lengths, and the adjustment mode includes a fast gain mode and a slow gain mode; The user's cardiac impulse signal is adjusted based on the target adjustment mode.
2. The method for adjusting the cardiac impulse signal according to claim 1, characterized in that: The gain processing includes performing gain processing on the user's cardiac impact signal according to a preset first gain value; the filtering processing includes low-pass filtering processing and mean filtering processing.
3. The method for adjusting the cardiac impulse signal according to claim 1, characterized in that: The step of obtaining the first feature queue includes: Determine a first sorting method for a first initial feature queue corresponding to a first heartbeat signal clipping phenomenon, and update the first initial feature queue based on the first sorting method to obtain a first feature queue; Wherein, the first finishing method comprises: When there is a clipping phenomenon on the peak or trough side of the heart attack signal, the first element of the first initial feature queue is deleted, and a new element with a value of 1 is inserted at the end of the queue; When there is no clipping phenomenon on the peak or trough side of the heartbeat signal, the first element of the first initial feature queue is deleted, and a new element with a value of 0 is inserted at the end of the queue.
4. The method for adjusting the cardiac impulse signal according to claim 1, characterized in that: The step of obtaining the second feature queue includes: Determine a second sorting method for a second initial feature queue corresponding to the respiratory signal clipping phenomenon, and update the second initial feature queue based on the second sorting method to obtain a second feature queue; Wherein, the second finishing method comprises: When there is a clipping phenomenon on the peak or trough side of the respiratory signal, the first element of the second initial feature queue is deleted, and a new element with a value of 1 is inserted at the end of the queue; When there is no clipping phenomenon on the peak or trough side of the respiratory signal, the first element of the second initial feature queue is deleted, and a new element with a value of 0 is inserted at the end of the queue.
5. The method for adjusting the cardiac impulse signal according to claim 1, characterized in that: The step of determining the clipping type of the user's cardiac impulse signal based on the duration includes: When the duration is equal to or greater than a preset consistency duration threshold, determining that the clipping type is clipping caused by breathing; When the duration of the consistency is less than the consistency duration threshold, it is determined that the clipping type is clipping caused by body motion.
6. The method for adjusting the cardiac impulse signal according to claim 2, characterized in that: The step of adjusting the user's cardiac impulse signal based on the target adjustment mode includes: When the target adjustment mode is the fast gain mode, the heart beat signal amplitude of the first heart beat signal within the first preset time is obtained, and the number of first target heart beat signal amplitudes greater than the preset maximum heart beat signal amplitude within the first preset time and the number of second target heart beat signal amplitudes less than the preset minimum heart beat signal amplitude within the first preset time are recorded; When the number of the first target cardiac impact signal amplitudes is greater than or equal to a first preset number, performing downgrade calculation on the preset first gain value to obtain a first target gain value, and adjusting the user cardiac impact signal based on the first target gain value; When the number of the second target cardiac impact signal amplitudes is greater than or equal to a second preset number, the preset first gain value is upgraded and calculated to obtain a second target gain value, and the user cardiac impact signal is adjusted based on the second target gain value.
7. The method for adjusting the cardiac impulse signal according to claim 2, characterized in that: The step of adjusting the user's cardiac impulse signal based on the target adjustment mode further includes: When the target adjustment mode is the slow gain mode, the heart beat signal amplitude of the first heart beat signal within the second preset time is obtained, and the number of third target heart beat signal amplitudes greater than the preset maximum heart beat signal amplitude within the second preset time and the number of fourth target heart beat signal amplitudes less than the preset minimum heart beat signal amplitude within the second preset time are recorded; When the number of the third target cardiac impact signal amplitudes is greater than or equal to a third preset number, performing downgrade calculation on the preset first gain value to obtain a third target gain value, and adjusting the user cardiac impact signal based on the third target gain value; When the number of the fourth target cardiac impact signal amplitudes is greater than or equal to a fourth preset number, the preset first gain value is upgraded and calculated to obtain a fourth target gain value, and the user cardiac impact signal is adjusted based on the fourth target gain value; When the cardiac impact signal amplitudes of the first cardiac impact signal within the second preset time are all smaller than the preset maximum cardiac impact signal amplitude and are all larger than the preset minimum cardiac impact signal amplitude, the preset first gain value is maintained unchanged.
8. A device for adjusting a heartbeat signal, characterized in that: The device comprises: Data collection module, used to record the user's bed time and collect the user's cardiac signal; A judgment module, used for performing gain processing on the user's cardiac impact signal to obtain a first cardiac impact signal, and performing filtering processing on the first cardiac impact signal to obtain a respiratory signal; respectively obtaining the signal amplitudes of the first cardiac impact signal and the respiratory signal, and judging the clipping phenomenon of the first cardiac impact signal and the respiratory signal based on the signal amplitudes, and respectively obtaining a first feature queue and a second feature queue; determining the duration of the consistency between the cardiac impact signal clipping interval and the respiratory signal clipping interval based on the first feature queue and the second feature queue, and judging the clipping type of the user's cardiac impact signal based on the duration; when the clipping type is clipping caused by body movement, judging that the user's cardiac impact signal does not need to be adjusted; when the clipping type is clipping caused by respiration, judging that the user's cardiac impact signal needs to be adjusted; a mode selection module, configured to determine, when the user's cardiac arrest signal needs to be adjusted, a target adjustment mode corresponding to the user's bed time in a preset adjustment mode table according to the user's bed time, wherein the preset adjustment mode table includes different bed time and different adjustment modes corresponding to the different bed time, and the adjustment modes include a fast gain mode and a slow gain mode; An adjustment module is used to adjust the user's cardiac impulse signal based on the target adjustment mode.
9. An electronic device, characterized in that: include: A processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor and the memory communicate via the bus, and when the machine-readable instructions are executed by the processor, the steps of the method for adjusting the cardiac impact signal as described in any one of claims 1 to 7 are performed.
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 adjusting the cardiac impulse signal according to any one of claims 1 to 7 are executed.
Citation Information
Patent Citations
Method and apparatus for the analysis of ballistocardiogram signals
WO2010067297A1
Identity recognition method based on ballistocardiogram signal, electronic device, and storage medium
WO2021068107A1