Autonomous diaphragm stimulation device and related products
By preprocessing and predicting the respiratory data in the diaphragm stimulation device to determine the phase at the target moment, the problem of inaccurate diaphragm stimulation in the existing technology is solved and the accuracy of diaphragm stimulation is improved.
Patent Information
- Application Number
- CN202411045629.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-01
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2044-08-01
AI Technical Summary
When the existing diaphragm stimulation device stimulates the patient's diaphragm, the patient's breathing is always going on, resulting in inaccurate stimulation and low precision.
By obtaining the subject's respiratory data before the current moment, preprocessing it to remove interference, and predicting the phase at the target moment, so that the patient's diaphragm stimulation can be adjusted at the target moment.
It improves the accuracy of diaphragm stimulation and ensures the accuracy and effectiveness of diaphragm stimulation.
Smart Images

Figure CN118557895B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of biomedical engineering, and in particular to an autonomous diaphragm stimulation device and related products. Background Art
[0002] With the continuous development of biomedical engineering, diaphragm stimulation has been widely used in some COPD or critical care treatments. Due to the weak diaphragm function of some patients, the patient's breathing is slow or the breathing amplitude is low. Therefore, it is necessary to stimulate the patient's phrenic nerve through an external electrical stimulation method to make the patient's diaphragm contract and adjust the patient's breathing.
[0003] In existing solutions, the diaphragm stimulation device can obtain the patient's breathing data and, based on the patient's breathing data, stimulate the patient's diaphragm through the diaphragm stimulation electrodes. However, when the existing diaphragm stimulation device stimulates the patient's diaphragm through the diaphragm stimulation electrodes, the patient's breathing is always ongoing, resulting in inaccurate stimulation of the patient's diaphragm by the diaphragm stimulation device. Summary of the invention
[0004] In order to solve the above-mentioned problems existing in the prior art, the embodiments of the present application provide an autonomous diaphragm stimulation device and related products, which obtain the breathing data of the subject before the current moment, pre-process the first breathing wave corresponding to the above breathing data and remove interference data to obtain a third breathing wave, and then predict the fourth breathing wave based on the third breathing wave, and determine the phase of the target moment based on the third breathing wave and the fourth breathing wave, so as to adjust the subject's breathing at the target moment based on the phase at the target moment, thereby improving the accuracy of diaphragm stimulation.
[0005] In a first aspect, an embodiment of the present application provides an autonomous diaphragm stimulation device, the autonomous diaphragm stimulation device comprising a respiratory wave monitor and a stimulation control unit;
[0006] When the diaphragm of the subject is stimulated, the respiratory wave monitor is used to obtain the respiratory data of the subject in a first time period; the first time period is a first preset time period before the current moment;
[0007] determining a first respiratory wave based on the respiratory data in the first time period;
[0008] Preprocessing the first respiratory wave to obtain a second respiratory wave;
[0009] Removing the respiratory data of the second respiratory wave in the second time period and the respiratory data of the third time period to obtain a third respiratory wave; the second time period is a time period from the start time of the first time period to the first preset time, and the third time period is a time period from the second preset time to the end time of the first time period;
[0010] Based on the third respiratory wave, predicting a fourth respiratory wave in a fourth time period; the fourth time period includes the third time period and a second preset time period after the current moment;
[0011] Based on the third respiratory wave and the fourth respiratory wave, determining the phase of a target moment; the target moment is a moment after a preset time period from the current moment, and the preset time period is a time period from the current moment to predicting the fourth respiratory wave;
[0012] The stimulation control unit is used to adjust the breathing of the subject at the target moment through the diaphragm stimulation electrodes based on the phase at the target moment.
[0013] In a second aspect, an embodiment of the present application provides a breathing adjustment method, which is applied to an autonomous diaphragm stimulation device, wherein the autonomous diaphragm stimulation device includes a respiratory wave monitor and a stimulation control unit;
[0014] The method comprises:
[0015] When diaphragm stimulation is performed on a subject, respiratory data of the subject in a first time period is obtained; the first time period is a first preset time period before the current moment;
[0016] determining a first respiratory wave based on the respiratory data in the first time period;
[0017] Preprocessing the first respiratory wave to obtain a second respiratory wave;
[0018] Removing the respiratory data of the second respiratory wave in the second time period and the respiratory data of the third time period to obtain a third respiratory wave; the second time period is a time period from the start time of the first time period to the first preset time, and the third time period is a time period from the second preset time to the end time of the first time period;
[0019] Based on the third respiratory wave, predicting a fourth respiratory wave in a fourth time period; the fourth time period includes the third time period and a second preset time period after the current moment;
[0020] Based on the third respiratory wave and the fourth respiratory wave, determining the phase of a target moment; the target moment is a moment after a preset time period from the current moment, and the preset time period is a time period from the current moment to predicting the fourth respiratory wave;
[0021] Based on the phase at the target time, the breathing of the subject at the target time is adjusted through the diaphragm stimulation electrode.
[0022] In a third aspect, an embodiment of the present application provides an electronic device, comprising: a processor and a memory, the processor being connected to the memory, the memory being used to store a computer program, and the processor being used to execute the computer program stored in the memory, so that the electronic device executes the method described in the second aspect.
[0023] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and the computer program enables a computer to execute the method described in the second aspect.
[0024] In a fifth aspect, an embodiment of the present application provides a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and the computer is operable to cause the computer to execute the method described in the second aspect.
[0025] Implementing the embodiments of the present application has the following beneficial effects:
[0026] In an embodiment of the present application, when the diaphragm of a subject is stimulated, the respiratory wave monitor obtains the respiratory data of the subject in a first time period, that is, obtains the respiratory data of the subject in a first preset time period before the current moment, and determines the first respiratory wave based on the respiratory data in the first time period. Then, the first respiratory wave is preprocessed to obtain the second respiratory wave. The third respiratory wave can be obtained by removing the respiratory data of the second respiratory wave in the second time period and the respiratory data of the third time period. Then, based on the third respiratory wave, the fourth respiratory wave of the fourth time period is predicted, that is, the respiratory wave of the third time period and the second preset time period after the current moment is predicted. Further, based on the third respiratory wave and the fourth respiratory wave, the phase of the target moment can be determined, and the target moment is the moment after a preset time period from the above-mentioned current moment, and the preset time period is the time required from the above-mentioned current moment to predict the fourth respiratory wave. Finally, the stimulation control unit adjusts the breathing of the subject at the target moment through the diaphragm stimulation electrode based on the phase at the target moment. Therefore, the autonomous diaphragm stimulation device of the embodiment of the present application can predict the fourth respiratory wave within the fourth time period based on the third respiratory wave before the current moment, and determine the phase of the target moment based on the third respiratory wave and the fourth respiratory wave. Since the target moment is the moment after the preset time length from the current moment, and the preset time length is the time length from the above-mentioned current moment to the prediction of the fourth respiratory wave, the phase at the target moment is the real-time phase predicted by the autonomous diaphragm stimulation device. Based on the phase at the target moment, the subject's breathing at the target moment is adjusted, thereby improving the accuracy of diaphragm stimulation. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0028] Figure 1 A schematic diagram of an autonomous diaphragm stimulation device provided in an embodiment of the present application;
[0029] Figure 2 A schematic diagram of the use of an autonomous diaphragm stimulation device and an elastic abdominal belt provided in an embodiment of the present application;
[0030] Figure 3 A waveform diagram of a predicted respiratory wave provided in an embodiment of the present application;
[0031] Figure 4 A waveform diagram of a target respiratory wave provided in an embodiment of the present application;
[0032] Figure 5 A flow chart of a breathing adjustment method provided in an embodiment of the present application;
[0033] Figure 6 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0034] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are 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 this application.
[0035] The terms "first", "second", "third" and "fourth" etc. in the specification and claims of the present application and the drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes steps or units that are not listed, or optionally includes other steps or units inherent to these processes, methods, products or devices.
[0036] Reference to "embodiments" herein means that a particular feature, result, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0037] In order to facilitate understanding of the technical solution of the present application, the relevant technologies involved in the present application are first explained and illustrated.
[0038] At present, in applications of adjusting the breathing of a subject by diaphragmatic stimulation, it is necessary to determine the breathing state of the subject and stimulate the diaphragm of the subject based on the breathing state of the subject. Since there are differences in the breathing state of the subject in each time period, the breathing state of the subject cannot be represented by the breathing state of the subject over a period of time. In view of this, the existing scheme obtains the breathing data of the subject, such as the breathing intensity, inhalation time, breathing time, breathing frequency, etc. of the subject. The breathing state of the subject is determined based on the breathing data of the subject, that is, it is determined at which stage of a breathing cycle the current breathing of the subject is, so as to adjust the breathing of the subject based on the breathing state of the subject.
[0039] However, the scheme of determining the subject's respiratory state by acquiring the subject's respiratory data has the following disadvantages: when determining the subject's respiratory state based on the subject's respiratory data, the subject's breathing is always ongoing, and the method for determining the respiratory state has a high algorithm delay, resulting in inaccurate determination of the subject's respiratory state, thereby resulting in low accuracy of diaphragm stimulation.
[0040] To this end, the present application embodiment provides an autonomous diaphragm stimulation device, see Figure 1 , Figure 1 Schematic diagram of an autonomous diaphragm stimulation device provided in an embodiment of the present application. Figure 1 As shown, the autonomous diaphragm stimulation device 100 includes a respiratory wave monitor 101 and a stimulation control unit 102. The output end of the respiratory wave monitor 101 is connected to the input end of the stimulation control unit 102, and the output end of the stimulation control unit 102 is connected to the diaphragm stimulation electrode 103.
[0041] It should be noted that the respiratory wave monitor 101 can be built with a variety of sensors, such as a pressure sensor, a tension sensor, a vibration sensor, a respiratory airflow sensor, and the like. According to the type of sensor built into the respiratory wave monitor 101, the respiratory wave monitor 101 is placed at the corresponding part of the subject's body to obtain the subject's respiratory data. And the respiratory wave monitor 101 is also built with a processor, such as a microcontroller unit (MCU), a single-chip microcomputer (SCM), and a field-programmable gate array (FPGA). The respiratory wave monitor 101 can be used to process the subject's respiratory data and predict the subject's respiratory data after the current moment and the subject's respiratory data at the target moment.
[0042] In the present application embodiment, Figure 2 As shown, the autonomous diaphragm stimulation device 100 can be, for example, arranged on an elastic abdominal belt, and tied to the chest or abdomen of the subject through the elastic abdominal belt. The autonomous diaphragm stimulation device 100 can, for example, include two stimulation control units 102, each stimulation control unit 102 is respectively connected to the anode of the diaphragm stimulation electrode 103 and the cathode of the diaphragm stimulation electrode 103 corresponding to the stimulation control unit, and the respiratory wave monitor 101 is connected to each stimulation control unit 102. Among them, the two stimulation control units 102 are respectively arranged in the left chest and right chest of the subject. Each stimulation control unit 102 can send a stimulation signal to the anode of the corresponding diaphragm stimulation electrode 103 to generate a stimulation current between the anode of the diaphragm stimulation electrode 103 and the cathode of the diaphragm stimulation electrode 103, so as to stimulate the left diaphragm or the right diaphragm of the subject.
[0043] It should be noted that the stimulation control unit 102 in the embodiment of the present application is any one of the two stimulation control units mentioned above, and the diaphragm stimulation electrode 103 in the embodiment of the present application is the diaphragm stimulation electrode corresponding to the stimulation control unit 102 .
[0044] Exemplarily, when the diaphragm of the subject is stimulated, the respiratory wave monitor 101 obtains the respiratory data of the subject in a first time period, wherein the first time period is a first preset time period before the current moment.
[0045] Specifically, the sensor inside the respiratory wave monitor 101 can collect the respiratory data of the subject at each moment in real time, and transmit the respiratory data of the subject at each moment to the processor inside the respiratory wave monitor 101. When the subject is stimulated by the diaphragm, the respiratory wave monitor 101 obtains the respiratory data of the subject in the first time period to analyze the respiratory state of the subject. Optionally, the first time period can be, for example, the time period of 30 seconds before the current moment and the current moment. The respiratory data of the subject in the first time period is related to the built-in sensor of the respiratory wave monitor 101. For example, when the built-in sensor of the respiratory wave monitor 101 is a pressure sensor and is placed on the abdomen of the subject, the respiratory data can be the pressure of the abdomen of the subject at each moment. When the built-in sensor of the respiratory wave monitor 101 is a tension sensor and is tied to the chest or abdomen of the subject through an elastic abdominal belt, the respiratory data can be the abdominal belt tension on the elastic abdominal belt at each moment. When the built-in sensor of the respiratory wave monitor 101 is a respiratory airflow sensor and is placed at the mouth and nose of the subject, the respiratory data can be the airflow intensity at each moment, and so on. Optionally, the respiratory data may also be the respiratory intensity at each moment, and the respiratory intensity of the subject may be determined based on the pressure on the abdomen of the subject or the tension on the elastic abdominal belt, thereby determining the respiratory wave of the subject in the first time period. The embodiment of the present application does not limit the specific type of respiratory data.
[0046] The following uses the breathing data as an example of the abdominal belt tension at each moment. Figure 2 As shown, when the built-in sensor of the respiratory wave monitor 101 is a tension sensor, the elastic abdominal belt is tied to the chest or abdomen of the subject by connecting the autonomous diaphragm stimulation device 100 with the elastic abdominal belt. When the subject is in the process of breathing, the chest or abdomen of the subject expands and contracts continuously, so that the elastic abdominal belt expands and contracts continuously, and the abdominal belt tension on the elastic abdominal belt continuously decreases and increases. Thus, the respiratory wave monitor 101 can obtain the abdominal belt tension when the elastic abdominal belt expands and contracts continuously through the tension sensor, and use the abdominal belt tension at each moment in the first time period as the respiratory data of the subject in the first time period. Then, the respiratory wave monitor 101 processes the respiratory data of the subject in the first time period to obtain the respiratory wave of the subject. It should be noted that the embodiment of the present application is only described by taking the abdominal belt tension at each moment as an example of respiratory data, and the processing method when the respiratory data is other data is similar to the embodiment of the present application, which will not be repeated here.
[0047] Exemplarily, the respiratory wave monitor 101 determines the first respiratory wave based on the respiratory data in the first time period. Specifically, the respiratory wave monitor 101 maps the respiratory data at each moment in the first time period to a two-dimensional coordinate system and connects them into a respiratory curve, i.e., the first respiratory wave. Among them, the horizontal axis of the first respiratory wave represents time, and the vertical axis of the first respiratory wave represents the respiratory data of the subject. The waveform of the first respiratory wave is similar to the waveform of a sine or cosine function. The stage from the peak of the first respiratory wave to the trough closest to the peak represents the exhalation stage of the subject in the first time period. The stage from the trough of the first respiratory wave to the peak closest to the trough represents the inhalation stage of the subject in the first time period. The peak of the first respiratory wave represents the respiratory data corresponding to the inhalation peak of the subject in the first time period. The trough of the first respiratory wave represents the respiratory data corresponding to the exhalation peak of the subject in the first time period.
[0048] Then, the respiratory wave monitor 101 pre-processes the first respiratory wave to obtain a second respiratory wave. It should be noted that since the subject's breathing may change at some times and the respiratory wave monitor 101 is subject to electromagnetic noise interference during the acquisition process, some respiratory data in the first respiratory wave may be inaccurate. Therefore, the respiratory wave monitor 101 needs to pre-process the first respiratory wave to filter out inaccurate data and electromagnetic noise interference.
[0049] Exemplarily, when preprocessing the first respiratory wave to obtain the second respiratory wave, the respiratory wave monitor 101 obtains the mean of the respiratory data corresponding to the first respiratory wave; subtracts the mean of the respiratory data corresponding to the first respiratory wave from the respiratory data at each moment corresponding to the first respiratory wave to obtain the target first respiratory wave; and band-pass filters the target first respiratory wave to obtain the second respiratory wave.
[0050] Specifically, the respiratory wave monitor 101 obtains the mean value of the respiratory data corresponding to the first respiratory wave, and subtracts the mean value of the respiratory data corresponding to the first respiratory wave from the respiratory data corresponding to the first respiratory wave at each moment, and adjusts the first respiratory wave to fluctuate near the zero line to obtain the target first respiratory wave. Thus, half of the data of the target first respiratory wave is above the zero line, and the other half of the data of the target first respiratory wave is below the zero line, which avoids the change in data storage caused by the change of respiratory data in the first respiratory wave and improves the processing efficiency of respiratory data.
[0051] Next, the respiratory wave monitor 101 performs bandpass filtering on the target first respiratory wave to filter out interference data generated by high-frequency noise interference in the target first respiratory wave. Among them, a bandpass filter can be provided on the respiratory wave monitor 101, and the bandpass filter can make the target first respiratory wave within a preset frequency range, and attenuate the frequency components outside the preset frequency range to below the frequency threshold. Optionally, in an embodiment of the present application, the preset frequency range can be, for example, 0.01-2Hz. After bandpass filtering, each respiratory data in the second respiratory wave is filtered out of interference from high-frequency noise, thereby avoiding the problem of inaccurate diaphragm stimulation caused by using respiratory data interfered by high-frequency noise to determine the respiratory state of the subject.
[0052] It can be seen that the respiratory wave monitor 101 obtains the mean value of the respiratory data corresponding to the first respiratory wave, and subtracts the mean value of the respiratory data corresponding to the first respiratory wave from the respiratory data at each moment corresponding to the first respiratory wave to obtain the target first respiratory wave. Then, the target first respiratory wave is band-pass filtered to obtain the second respiratory wave, thereby adjusting the first respiratory wave to fluctuate near the zero line and filtering out the high-frequency noise in the target first respiratory wave, so that each respiratory data in the obtained second respiratory wave can more accurately represent the breathing of the subject in the first time period, thereby improving the accuracy of diaphragm stimulation.
[0053] Further, the respiratory wave monitor 101 removes the respiratory data of the second respiratory wave in the second time period and the respiratory data of the third time period to obtain the third respiratory wave, wherein the second time period is the time period from the start time of the first time period to the first preset time, and the third time period is the time period from the second preset time to the end time of the first time period.
[0054] It should be noted that after the respiratory wave monitor 101 performs bandpass filtering on the target first respiratory wave to obtain the second respiratory wave, the respiratory data of the second respiratory wave in the second time period and the respiratory data in the third time period may be inaccurate, that is, the respiratory data of the second respiratory wave in the time period from the start time of the first time period to the first preset time, and the respiratory data in the time period from the second preset time to the end time of the first time period are inaccurate. For this reason, the respiratory wave monitor 101 needs to remove the respiratory data of the second respiratory wave in the second time period and the respiratory data in the third time period to obtain the third respiratory wave, so that the third respiratory wave can accurately represent the respiratory state of the subject between the first preset time and the second preset time, thereby improving the accuracy of diaphragm stimulation.
[0055] Further, the respiratory wave monitor 101 predicts a fourth respiratory wave in a fourth time period based on the third respiratory wave, wherein the fourth time period includes the third time period and a second preset time period after the current moment.
[0056] Specifically, the respiratory wave monitor 101 can analyze the respiratory data at each moment in the third respiratory wave to obtain a prediction function of the subject's respiration, and thus predict the subject's fourth respiratory wave in the fourth time period based on the prediction function. Figure 3 As shown, Figure 3 The waveform before the second preset moment is the third respiratory wave, and the time period between the second preset moment and the current moment is the third time period. Figure 3 The time period after the current moment in the second preset time period is the second preset time period, and the total time period of the third time period and the second preset time period is the fourth time period. The respiratory wave monitor 101 can predict the fourth respiratory wave of the fourth time period based on the respiratory data in the third respiratory wave, wherein, since the third respiratory wave is obtained by removing the respiratory data of the third time period from the second respiratory wave, the respiratory data of the third time period also needs to be predicted, that is, Figure 3 The breathing data at the current moment in is the predicted breathing data.
[0057] Exemplarily, when predicting the fourth respiratory wave of the fourth time period based on the third respiratory wave, the respiratory wave monitor 101 determines the correlation coefficient based on the preset relationship function and the respiratory data corresponding to the third respiratory wave; determines the prediction function based on the preset relationship function and the correlation coefficient; predicts the respiratory data corresponding to the fourth time period based on the respiratory data corresponding to the third respiratory wave and the prediction function; and determines the fourth respiratory wave based on the respiratory data corresponding to the fourth time period.
[0058] Specifically, the respiratory wave monitor 101 first splices continuous constants in the fourth time period after the third respiratory wave. For example, the constant can be 0. Then, the respiratory wave monitor 101 obtains a preset relationship function. The preset relationship function can be pre-set based on the breathing test results of the subject. Since the breathing of most subjects has certain regularities, a preset relationship function can be set to represent the breathing data of the subject at each moment when breathing. Exemplarily, the preset relationship function For example, it can be expressed by formula (1):
[0059] Formula (1)
[0060] in, , , …, represents the breathing data corresponding to n moments on the third breathing wave. k0 represents the minimum breathing data when the subject breathes, and k0 can be pre-set based on the breathing test results of the subject. k1, k2, ..., k n-1 is the prediction coefficient, by determining k1, k2, ..., k n-1 The value of can determine the prediction function.
[0061] In the embodiment of the present application, a correlation coefficient can be determined based on a preset relationship function and the respiratory data corresponding to the third respiratory wave, and the correlation coefficient can represent the correlation between the respiratory data at each moment in the third respiratory wave and all the respiratory data before that moment. Specifically, the respiratory wave monitor 101 can determine the standard deviation of the respiratory data corresponding to n moments on the third respiratory wave, and the standard deviation of the respiratory data corresponding to the first n-1 moments. Then, the respiratory wave monitor 101 obtains and The covariance of and The covariance of is used as the numerator, and the product of the standard deviation of the respiratory data corresponding to the nth moment and the standard deviation of the respiratory data corresponding to the previous n-1 moments is used as the denominator, and we get Next, the respiratory wave monitor 101 determines the standard deviation of the respiratory data corresponding to the first n-2 moments. Then, obtain and The covariance of and The covariance of is used as the numerator, and the product of the standard deviation of the respiratory data corresponding to the first n-1 moments and the standard deviation of the respiratory data corresponding to the first n-2 moments is used as the denominator, and we get Based on the above method, we can get , , …, ,in, , , …, This is the correlation coefficient.
[0062] Based on the preset relationship function and the correlation coefficient, a prediction function can be determined, which represents the functional relationship between the breathing data of the subject at each moment and the breathing data at each moment before that moment. The relationship between the correlation coefficient and the prediction coefficient can be expressed by formula (2):
[0063] Formula (2)
[0064] Thus, the respiratory wave monitor 101 can determine k1, k2, ..., k based on the above formula (1) and formula (2) and the respiratory data corresponding to n moments on the third respiratory wave. n-1 The value of k1, k2, ..., k n-1 By substituting the value of into the preset relationship function of formula (1), the prediction function can be obtained, that is, the functional relationship between the breathing data of the subject at each moment and the breathing data at each moment before that moment.
[0065] In a possible embodiment, the expectation and covariance corresponding to the preset relationship function can be obtained, and the expectation of the preset relationship function can be divided by the covariance corresponding to the preset relationship function to obtain a correlation function, which can represent the relationship between the correlation coefficient determined at the current moment and the correlation coefficient determined at each moment before the current moment. Then, based on the correlation function and the correlation coefficient, the respiratory wave monitor 101 can determine a prediction function to determine the functional relationship between the respiratory data of the subject at each moment and the respiratory data at each moment before the moment.
[0066] Since the prediction function can represent the relationship between the subject's breathing data at each moment and the breathing data at each moment before that moment, the breathing data at the next moment after the second preset moment can be predicted based on the breathing data at all moments corresponding to the third breathing wave. Then, based on the breathing data at all moments corresponding to the third breathing wave and the breathing data at the next moment after the second preset moment, the breathing data at the next moment can continue to be predicted until the breathing data corresponding to the fourth time period is predicted.
[0067] Finally, the respiratory wave monitor 101 uses the respiratory data corresponding to the fourth time period to replace the constants spliced in the fourth time period, and obtains Figure 3 The fourth respiratory wave is shown. Since the fourth respiratory wave is predicted by the respiratory data of the third respiratory wave, the waveform of the fourth respiratory wave can be considered to be consistent with the waveform of the third respiratory wave, so that the respiratory data of the subject in the fourth time period can be represented by the fourth respiratory wave.
[0068] It can be seen that in the embodiment of the present application, the respiratory wave monitor 101 can determine the correlation coefficient based on the preset relationship function and the respiratory data corresponding to the third respiratory wave, so as to determine the correlation between the respiratory data at each moment in the third respiratory wave and all the respiratory data before that moment, and then determine the prediction function based on the preset relationship function and the correlation coefficient, so as to determine the functional relationship between the respiratory data of the subject at each moment and the respiratory data at each moment before that moment. Thus, the respiratory wave monitor 101 can predict the respiratory data corresponding to the fourth time period based on the respiratory data corresponding to the third respiratory wave and the prediction function, so as to determine the fourth respiratory wave based on the respiratory data corresponding to the fourth time period, so as to predict the fourth respiratory wave of the subject in the fourth time period. Using the respiratory data corresponding to the fourth respiratory wave, the real-time data of the subject's breathing can be determined, so as to adjust the subject's breathing, solve the problem of inaccurate diaphragm stimulation due to the subject's breathing being ongoing during diaphragm stimulation, and improve the accuracy of diaphragm stimulation.
[0069] It should be noted that due to the high algorithm delay when predicting the fourth respiratory wave, after the respiratory wave monitor 101 predicts the fourth respiratory wave, the phase corresponding to the subject's real-time respiratory data should be the phase corresponding to the target moment after the current moment has passed through the above-mentioned algorithm delay. Among them, the algorithm delay can be obtained based on the set first time period, second time period, third time period, fourth time period and preset relationship function, that is, the preset duration is obtained. Therefore, only using the respiratory data at the current moment to adjust the subject's breathing will lead to inaccurate diaphragm stimulation.
[0070] To this end, the respiratory wave monitor 101 determines the phase of the target moment based on the third respiratory wave and the fourth respiratory wave. The target moment is the moment after a preset time from the current moment, and the preset time is the time required from the current moment to predict the fourth respiratory wave. Specifically, the respiratory wave monitor 101 can establish a window centered on the target moment, which is the fifth time period, and then transform the data in the window, and obtain the phase of the target moment based on the transformed data.
[0071] Exemplarily, when determining the phase of the target moment based on the third respiratory wave and the fourth respiratory wave, the respiratory wave monitor 101 splices the fourth respiratory wave to the end of the third respiratory wave to obtain the target respiratory wave; obtains the fifth respiratory wave of the target respiratory wave in the fifth time period; transforms the fifth respiratory wave to obtain the transformed fifth respiratory wave; and determines the phase of the target moment based on the fifth respiratory wave and the transformed fifth respiratory wave. The fifth time period is a third preset time period centered on the target moment.
[0072] Specifically, the respiratory wave monitor 101 obtains the following by splicing the fourth respiratory wave to the end of the third respiratory wave: Figure 4 The target respiratory wave shown. Wherein, the waveform of the target respiratory wave is a waveform of a sine or cosine function. The embodiment of the present application only takes the waveform of the target respiratory wave as a waveform of a cosine function as an example for explanation. The processing method of the waveform of the target respiratory wave as a waveform of a sine function is similar to that of the embodiment of the present application and will not be repeated here. By obtaining the target moment after the preset time length at the current moment, taking the target moment as the center, the fifth respiratory wave of the target respiratory wave in the fifth time period is obtained.
[0073] Further, the respiratory wave monitor 101 transforms the fifth respiratory wave, that is, transforms the respiratory wave function corresponding to the fifth respiratory wave, to obtain the transformed fifth respiratory wave. The sum of the square of the respiratory wave function corresponding to the transformed fifth respiratory wave and the square of the respiratory wave function corresponding to the fifth respiratory wave is equal to the square of the envelope of each moment in the fifth respiratory wave. Exemplarily, when the respiratory wave function corresponding to the fifth respiratory wave is When , the respiratory wave function corresponding to the transformed fifth respiratory wave should be .
[0074] Among them, x1(t) represents the respiratory data corresponding to time t in the fifth respiratory wave, x2(t) represents the respiratory data corresponding to time t in the transformed fifth respiratory wave, a(t) represents the envelope corresponding to time t in the fifth respiratory wave, represents the angular frequency of the fifth respiratory wave, It indicates the phase corresponding to time t in the fifth respiratory wave. It can be seen that the sum of the square of x1(t) and the square of x2(t) is equal to the square of a(t).
[0075] Then, the respiratory wave monitor 101 can determine the phase of the target moment based on the fifth respiratory wave and the transformed fifth respiratory wave. Specifically, the respiratory wave monitor 101 divides the respiratory wave function corresponding to the transformed fifth respiratory wave by the respiratory wave function corresponding to the fifth respiratory wave, that is, divides the above x2(t) by x1(t), to obtain the phase factor. Then, the respiratory wave monitor 101 uses the inverse tangent function of the phase factor as the phase function, which is a functional expression of the phase at each moment on the fifth respiratory wave. Thus, based on the phase function and the target moment, the phase at the target moment can be determined.
[0076] It should be noted that the target moment in the embodiment of the present application is the moment after the preset time length from the current moment, and the preset time length is the time length from the current moment to the prediction of the fourth respiratory wave. Therefore, the target moment can be used as the current actual moment, and the phase of the target moment can be used as the current real-time phase.
[0077] It can be seen that in the embodiment of the present application, the respiratory wave monitor 101 can obtain the target respiratory wave by splicing the fourth respiratory wave to the tail of the third respiratory wave, and then obtain the fifth respiratory wave of the fifth time period on the target respiratory wave, and transform the respiratory wave function corresponding to the fifth respiratory wave to obtain the transformed fifth respiratory wave. Based on the fifth respiratory wave and the transformed fifth respiratory wave, the phase at the target moment can be determined, thereby determining the real-time phase of the current subject during the breathing process, and then more accurately adjusting the subject's breathing, thereby improving the accuracy of diaphragm stimulation.
[0078] It should be understood that the respiratory wave monitor 101 acquires the respiratory data of the first preset time period before the moment at each moment. Therefore, the respiratory wave monitor 101 determines the phase of the target moment corresponding to the moment at each moment, and adjusts the subject's breathing based on the phase of the target moment corresponding to the moment.
[0079] After determining the phase at the target time, the respiratory wave monitor 101 may send the phase at the target time to the stimulation control unit 102. The stimulation control unit 102 adjusts the subject's breathing at the target time through the diaphragm stimulation electrode 103 based on the phase at the target time.
[0080] Alternatively, if Figure 2 As shown, for example, two stimulation control units 102 may be provided, which are placed in the left chest cavity and the right chest cavity of the subject respectively, and each stimulation control unit 102 is connected to the anode of the diaphragm stimulation electrode 103 and the cathode of the diaphragm stimulation electrode 103 corresponding to the stimulation control unit. When the phase at the target moment falls into the phase interval corresponding to the preset stimulation mode, each stimulation control unit 102 may send a stimulation signal to the anode of the diaphragm stimulation electrode 103 corresponding to the stimulation control unit, so that a potential difference is generated between the anode of the diaphragm stimulation electrode 103 and the cathode of the diaphragm stimulation electrode 103, forming a stimulation current, thereby stimulating the phrenic nerve of the subject, causing the diaphragm of the subject to contract, so as to adjust the breathing of the subject.
[0081] Exemplarily, when the breathing of the subject at the target time is adjusted by the diaphragm stimulation electrode 103 based on the phase at the target time,
[0082] If the phase at the target time falls into the phase interval corresponding to the preset stimulation mode, the stimulation control unit 102 sends a stimulation signal to the diaphragm stimulation electrode 103;
[0083] If the phase at the target time does not fall into the phase interval corresponding to the preset stimulation mode, the respiratory wave of the subject is continuously acquired through the respiratory wave monitor 101 to adjust the breathing of the subject.
[0084] In an embodiment of the present application, the preset stimulation mode can be set based on the actual breathing adjustment needs of each subject. For example, the preset stimulation mode can be set to speed up the subject's breathing frequency, increase the amplitude of the subject's breathing, assist the subject in breathing, and so on. When the phase at the target moment falls into the phase interval corresponding to the preset stimulation mode, it means that the subject's breathing at the target moment needs to be adjusted. At this time, the stimulation control unit 102 sends a stimulation signal to the diaphragm stimulation electrode 103, so that the diaphragm stimulation electrode 103 stimulates the subject's phrenic nerve to contract the subject's diaphragm, thereby causing the subject to start inhaling, thereby achieving the purpose of adjusting the subject's breathing.
[0085] When the phase at the target moment does not fall into the phase interval corresponding to the preset stimulation mode, the respiratory wave monitor 101 will continue to obtain the subject's respiratory wave to adjust the subject's breathing. It should be noted that the respiratory wave monitor 101 will obtain the subject's respiratory wave in real time, so the target moment corresponding to the moment and the phase of the target moment corresponding to the moment will be determined at each moment to adjust the subject's breathing.
[0086] It can be seen that in the embodiment of the present application, the respiratory wave monitor 101 can adjust the subject's breathing at the target moment through the diaphragm stimulation electrode 103 based on the phase at the target moment. The phase at the target moment can be regarded as a real-time phase, thereby improving the accuracy of diaphragm stimulation of the subject.
[0087] Exemplarily, the preset stimulation mode may include, for example: a first preset stimulation mode, a second preset stimulation mode, and a third preset stimulation mode. The phase interval corresponding to the first preset stimulation mode is the phase interval corresponding to the exhalation stage. The phase interval corresponding to the second preset stimulation mode is the phase interval corresponding to the inhalation peak. The phase interval corresponding to the third preset stimulation mode is the phase interval corresponding to the exhalation peak.
[0088] When sending stimulation signals to the diaphragm stimulation electrodes, if the phase at the target time falls into the phase interval corresponding to the first preset stimulation mode, the stimulation control unit 102 sends stimulation signals to the diaphragm stimulation electrodes 103 to increase the breathing frequency of the subject.
[0089] If the phase at the target time falls into the phase interval corresponding to the second preset stimulation mode, the stimulation control unit 102 sends a stimulation signal to the diaphragm stimulation electrode 103 to increase the amplitude of the subject's breathing.
[0090] If the phase at the target time falls within the phase interval corresponding to the third preset stimulation mode, the stimulation control unit 102 sends a stimulation signal to the diaphragm stimulation electrode 103 to assist the subject in breathing.
[0091] It should be noted that the stage when the subject's respiratory wave changes from any peak to the trough closest to the peak is the subject's exhalation stage. The stage when the subject's respiratory wave changes from any trough to the peak closest to the trough is the subject's inhalation stage. Any peak of the subject's respiratory wave is the subject's inhalation peak. Any trough of the subject's respiratory wave is the subject's exhalation peak.
[0092] Thus, when the phase at the target moment falls into the phase interval corresponding to the first preset stimulation mode, the subject is in the exhalation stage at this time, and the stimulation control unit 102 sends a stimulation signal to the diaphragm stimulation electrode 103, so that the stimulation current generated by the diaphragm stimulation electrode 103 stimulates the phrenic nerve of the subject to contract the diaphragm of the subject. At this time, the subject begins to enter the inhalation stage in advance without fully exhaling, thereby speeding up the subject's breathing rate. Optionally, the phase interval corresponding to the first preset stimulation mode can be, for example, [1 / 3 , 2 / 3 ].
[0093] It should be noted that stimulating the diaphragm of the subject in the first preset stimulation mode can be used, for example, to treat subjects with Kussmaul's breathing, which is a deep, regular, large breath commonly seen in diabetic ketoacidosis and uremic acidosis. By stimulating the diaphragm of the subject in the first preset stimulation mode to speed up the breathing rate of the above-mentioned subject, the above-mentioned symptoms can be effectively treated.
[0094] When the phase at the target moment falls into the phase interval corresponding to the second preset stimulation mode, the subject's breathing is about to reach or has just reached the inhalation peak, or the subject's breathing has just entered the exhalation phase, and the stimulation control unit 102 sends a stimulation signal to the diaphragm stimulation electrode 103, so that the stimulation current generated by the diaphragm stimulation electrode 103 stimulates the subject's phrenic nerve to contract the subject's diaphragm. At this time, the subject enters the inhalation phase again near the inhalation peak, that is, the subject's inhalation peak, thereby increasing the amplitude of the subject's breathing. Optionally, the phase interval corresponding to the second preset stimulation mode can be, for example, [-1 / 6 , 1 / 6 ].
[0095] It should be noted that stimulating the diaphragm of the subject in the second preset stimulation mode can be used, for example, to treat subjects with mixed dyspnea. Subjects with mixed dyspnea feel labored in both inhalation and exhalation, have shallow breathing and increased frequency, often accompanied by weakened or disappeared breath sounds, and may have pathological breath sounds. This is due to extensive lung lesions, reduced breathing area, and affected ventilation function. It is common in subjects with severe pneumonia, severe tuberculosis, extensive pulmonary fibrosis, large areas of atelectasis, large amounts of pleural effusion, pneumothorax, etc. By stimulating the diaphragm of the subject in the second preset stimulation mode, the subject's breathing frequency can be slowed down and the amplitude of the subject's breathing can be increased, thereby achieving a therapeutic effect on the above symptoms.
[0096] Optionally, under the combined action of the first preset stimulation mode and the second preset stimulation mode, it can be used, for example, to treat a subject with Cheyne-Stokes respiration. Cheyne-Stokes respiration is a type of breathing that gradually changes from shallow and slow to deep and fast, and then from deep and fast to shallow and slow. After 5-20 seconds of apnea, the above periodic changes begin to repeat again. Cheyne-Stokes respiration is common in subjects with encephalitis, meningitis, increased intracranial pressure, barbiturate poisoning, etc. At this time, when the subject's breathing is slower, the subject's diaphragm can be stimulated in the first preset stimulation mode to speed up the subject's breathing. When the subject's breathing is faster, the subject's diaphragm can be stimulated in the second preset stimulation mode to slow down the subject's breathing frequency and increase the amplitude of the subject's breathing.
[0097] When the phase at the target moment falls into the phase interval corresponding to the third preset stimulation mode, the subject's breathing is about to reach or has just reached the expiratory peak, or the subject's breathing has just entered the inhalation phase, and the stimulation control unit 102 sends a stimulation signal to the diaphragm stimulation electrode 103, so that the stimulation current generated by the diaphragm stimulation electrode 103 stimulates the subject's phrenic nerve to contract the subject's diaphragm. At this time, after the subject completes a breathing phase, that is, after completing an inhalation and exhalation, the diaphragm is stimulated to enter the inhalation phase again, so that the energy consumed by the subject's breathing is reduced, thereby assisting the subject to breathe. Optionally, the phase interval corresponding to the third preset stimulation mode can be, for example, [5 / 6 , ]or[- , -5 / 6 ].
[0098] The diaphragm of the subject is stimulated in the third preset stimulation mode, which can be used, for example, to assist a subject with diaphragm weakness to contract the diaphragm, so as to assist the subject in breathing.
[0099] It should be noted that in the embodiment of the present application, in the first preset stimulation mode, the second preset stimulation mode and the third preset stimulation mode, the stimulation signals sent by the stimulation control unit 102 to the diaphragm stimulation electrode 103 are equal in size, and the stimulation signals are all used to contract the subject's diaphragm so that the subject enters the inhalation stage.
[0100] Therefore, by setting different preset stimulation modes, the breathing of different types of subjects can be adjusted, and each preset stimulation mode corresponds to a phase interval. Compared with stimulation through a specific stimulation point, the algorithm execution efficiency of the embodiment of the present application is higher and the diaphragm stimulation accuracy is higher.
[0101] To summarize, in an embodiment of the present application, when the diaphragm of a subject is stimulated, the respiratory wave monitor obtains the respiratory data of the subject in a first time period, that is, obtains the respiratory data of the subject in a first preset time period before the current moment, and determines the first respiratory wave based on the respiratory data in the first time period. Then, the first respiratory wave is preprocessed to obtain the second respiratory wave. The third respiratory wave can be obtained by removing the respiratory data of the second respiratory wave in the second time period and the respiratory data of the third time period. Then, based on the third respiratory wave, the fourth respiratory wave in the fourth time period is predicted, that is, the respiratory wave of the third time period and the second preset time period after the current moment is predicted. Further, based on the third respiratory wave and the fourth respiratory wave, the phase of the target moment can be determined, and the target moment is the moment after the above-mentioned current moment after a preset time length, and the preset time length is the time length required from the above-mentioned current moment to predict the fourth respiratory wave. Finally, the stimulation control unit adjusts the breathing of the subject at the target moment through the diaphragm stimulation electrode based on the phase at the target moment. Therefore, the autonomous diaphragm stimulation device of the embodiment of the present application can predict the fourth respiratory wave within the fourth time period based on the third respiratory wave before the current moment, and determine the phase of the target moment based on the third respiratory wave and the fourth respiratory wave. Since the target moment is the moment after the preset time length from the current moment, and the preset time length is the time length from the above-mentioned current moment to the prediction of the fourth respiratory wave, the phase at the target moment is the real-time phase predicted by the autonomous diaphragm stimulation device. Based on the phase at the target moment, the subject's breathing at the target moment is adjusted, thereby improving the accuracy of diaphragm stimulation.
[0102] See also Figure 5 , Figure 5 A flow chart of a breathing adjustment method provided in an embodiment of the present application. The method is applied to the above-mentioned autonomous diaphragm stimulation device 100. The method includes but is not limited to the following steps:
[0103] S501: When performing diaphragm stimulation on a subject, obtaining breathing data of the subject in a first time period.
[0104] S502: Determine a first respiratory wave based on respiratory data in a first time period.
[0105] S503: Preprocess the first respiratory wave to obtain a second respiratory wave.
[0106] S504: Remove the respiratory data of the second respiratory wave in the second time period and the respiratory data in the third time period to obtain a third respiratory wave.
[0107] S505: Predicting a fourth respiratory wave in a fourth time period based on the third respiratory wave.
[0108] S506: Determine the phase at the target time based on the third respiratory wave and the fourth respiratory wave.
[0109] S507: Based on the phase at the target time, the breathing of the subject at the target time is adjusted through the diaphragm stimulation electrode.
[0110] The specific implementation process of steps S501 to S507 may refer to the specific functions of the above-mentioned respiratory wave monitor and stimulation control unit, which will not be repeated here.
[0111] See also Figure 6 , Figure 6 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Figure 6 As shown, the electronic device 600 includes a transceiver 601, a processor 602 and a memory 603. They are connected via a bus 604. The memory 603 is used to store computer programs and data, and can transmit the data stored in the memory 603 to the processor 602. The electronic device 600 can be the above-mentioned autonomous diaphragm stimulation device 100. The processor 602 is used to read the computer program in the memory 603 to execute the various steps of the breathing adjustment method of the embodiment of the present application.
[0112] Processor 602 can adopt a general-purpose central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), a graphics processing unit (GPU) or one or more integrated circuits to execute relevant programs to realize the functions that the units in the autonomous diaphragm stimulation device need to perform, or to execute the breathing adjustment method of the method embodiment of the present application.
[0113] The processor 602 may also be an integrated circuit chip with signal processing capabilities. In the implementation process, each step in the breathing adjustment method of the present application may be completed by an integrated logic circuit of hardware or software instructions in the processor 602. The above-mentioned processor 602 may also be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present application may be implemented or executed. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc. The steps of the method disclosed in the embodiments of the present application may be directly embodied as being executed by a hardware decoding processor, or may be executed by a combination of hardware and software modules in a decoding processor. The software module may be located in a mature storage medium in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 603, and the processor 602 reads the information in the memory 603, and combines its hardware to complete the functions required to be performed by the units included in the autonomous diaphragm stimulation device of the embodiment of the present application, or executes the various steps in the breathing adjustment method of the method embodiment of the present application.
[0114] The transceiver 601 may be integrated into the respiratory wave monitor 101 , for example. In the embodiment of the present application, the transceiver 601 may acquire the respiratory data of the subject in a first time period, for example.
[0115] The bus 604 may include a path for transmitting information between various components of the electronic device 600 (eg, the transceiver 601 , the processor 602 , and the memory 603 ).
[0116] It should be noted that although Figure 6 The electronic device 600 shown only shows the transceiver 601, the processor 602 and the memory 603, but in the specific implementation process, those skilled in the art should understand that the electronic device 600 also includes other devices necessary for normal operation. At the same time, according to specific needs, those skilled in the art should understand that the electronic device 600 may also include hardware devices for implementing other additional functions. In addition, those skilled in the art should understand that the electronic device 600 may also only include the devices necessary for implementing the embodiments of the present application, and does not necessarily include Figure 6 All devices shown in .
[0117] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described devices and units can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0118] An embodiment of the present application also provides a computer-readable storage medium, which stores a computer program. The computer program is executed by a processor to implement part or all of the steps of any breathing adjustment method recorded in the above method embodiments.
[0119] An embodiment of the present application also provides a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to execute part or all of the steps of any breathing adjustment method recorded in the above method embodiments.
[0120] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all optional embodiments, and the actions and modules involved are not necessarily required by the present application.
[0121] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0122] In the several embodiments provided in the present application, it should be understood that the disclosed device can be implemented in other ways. For example, the device embodiments described above are only schematic, such as the division of the units, which is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, and the indirect coupling or communication connection of the device or unit can be electrical or other forms.
[0123] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0124] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated unit may be implemented in the form of hardware or in the form of a software program module.
[0125] If the integrated unit is implemented in the form of a software program module and sold or used as an independent product, it can be stored in a computer-readable memory. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a memory, including a number of instructions to enable a computer device (which can be a personal computer, server or network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned memory includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, disk or optical disk and other media that can store program codes.
[0126] Those skilled in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable memory, which may include a flash drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0127] The embodiments of the present application are introduced in detail above. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method and core idea of the present application. At the same time, for general technical personnel in this field, according to the idea of the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. An autonomous diaphragm stimulation device, characterized in that: The autonomous diaphragm stimulation device comprises a respiratory wave monitor and a stimulation control unit; When the diaphragm of the subject is stimulated, the respiratory wave monitor is used to obtain the respiratory data of the subject in a first time period; the first time period is a first preset time period before the current moment; determining a first respiratory wave based on the respiratory data in the first time period; Preprocessing the first respiratory wave to obtain a second respiratory wave; removing the respiratory data of the second respiratory wave in the second time period and the respiratory data of the third time period to obtain a third respiratory wave; The second time period is a time period from the start time of the first time period to the first preset time, and the third time period is a time period from the second preset time to the end time of the first time period; Based on the third respiratory wave, predicting a fourth respiratory wave of a fourth time period; the fourth time period includes the third time period and a second preset time period after the current moment; specifically used to: determine a correlation coefficient based on a preset relationship function and the respiratory data corresponding to the third respiratory wave; determine a prediction function based on the preset relationship function and the correlation coefficient; predict the respiratory data corresponding to the fourth time period based on the respiratory data corresponding to the third respiratory wave and the prediction function; determining the fourth respiratory wave based on the respiratory data corresponding to the fourth time period; Determining a phase at a target time based on the third respiratory wave and the fourth respiratory wave; The target time is a time after a preset time from the current time, and the preset time is a time required from the current time to predict the fourth respiratory wave; Specifically used for: splicing the fourth respiratory wave to the tail of the third respiratory wave to obtain a target respiratory wave; obtaining a fifth respiratory wave of the target respiratory wave in a fifth time period; the fifth time period is a third preset time period centered on the target time; transforming the fifth respiratory wave to obtain a transformed fifth respiratory wave; determining the phase at the target time based on the fifth respiratory wave and the transformed fifth respiratory wave; The stimulation control unit is used to adjust the breathing of the subject at the target moment through the diaphragm stimulation electrode based on the phase at the target moment; specifically, if the phase at the target moment falls into the phase interval corresponding to the preset stimulation mode, a stimulation signal is sent to the diaphragm stimulation electrode; if the phase at the target moment does not fall into the phase interval corresponding to the preset stimulation mode, the respiratory wave of the subject continues to be obtained through the respiratory wave monitor to adjust the breathing of the subject.
2. The autonomous diaphragm stimulation device according to claim 1, characterized in that: The preset stimulation modes include: a first preset stimulation mode, a second preset stimulation mode and a third preset stimulation mode; the phase interval corresponding to the first preset stimulation mode is the phase interval corresponding to the exhalation stage; the phase interval corresponding to the second preset stimulation mode is the phase interval corresponding to the inhalation peak; the phase interval corresponding to the third preset stimulation mode is the phase interval corresponding to the exhalation peak; In terms of sending a stimulation signal to the diaphragm stimulation electrode, the stimulation control unit is specifically used to: If the phase at the target moment falls within the phase interval corresponding to the first preset stimulation mode, sending a stimulation signal to the diaphragm stimulation electrode to increase the breathing frequency of the subject; If the phase at the target time falls within the phase interval corresponding to the second preset stimulation mode, sending a stimulation signal to the diaphragm stimulation electrode to increase the amplitude of the subject's breathing; If the phase at the target moment falls within the phase interval corresponding to the third preset stimulation mode, a stimulation signal is sent to the diaphragm stimulation electrode to assist the subject in breathing.
3. The autonomous diaphragm stimulation device according to claim 1, characterized in that: In terms of preprocessing the first respiratory wave to obtain the second respiratory wave, the respiratory wave monitor is specifically used to: Obtaining a mean value of the respiratory data corresponding to the first respiratory wave; Subtract the mean of the breathing data corresponding to the first breathing wave from the breathing data at each moment corresponding to the first breathing wave to obtain a target first breathing wave; Band-pass filtering is performed on the target first respiratory wave to obtain the second respiratory wave.
4. An electronic device, characterized in that: include: A processor and a memory, wherein the processor is connected to the memory, the memory is used to store a computer program, and the processor is used to execute the computer program stored in the memory, so that the electronic device performs the following steps: When diaphragm stimulation is performed on a subject, respiratory data of the subject in a first time period is obtained; the first time period is a first preset time period before the current moment; determining a first respiratory wave based on the respiratory data in the first time period; Preprocessing the first respiratory wave to obtain a second respiratory wave; removing the respiratory data of the second respiratory wave in the second time period and the respiratory data of the third time period to obtain a third respiratory wave; The second time period is a time period from the start time of the first time period to the first preset time, and the third time period is a time period from the second preset time to the end time of the first time period; Based on the third respiratory wave, predicting a fourth respiratory wave in a fourth time period; The fourth time period includes the third time period and a second preset time period after the current moment; including: determining a correlation coefficient based on a preset relationship function and the breathing data corresponding to the third breathing wave; determining a prediction function based on the preset relationship function and the correlation coefficient; predicting the breathing data corresponding to the fourth time period based on the breathing data corresponding to the third breathing wave and the prediction function; determining the fourth breathing wave based on the breathing data corresponding to the fourth time period; Based on the third respiratory wave and the fourth respiratory wave, determine the phase of the target moment; the target moment is the moment after a preset time period from the current moment, and the preset time period is the time period from the current moment to the prediction of the fourth respiratory wave; including: splicing the fourth respiratory wave to the tail of the third respiratory wave to obtain the target respiratory wave; obtaining the fifth respiratory wave of the target respiratory wave in the fifth time period; the fifth time period is the third preset time period centered on the target moment; transforming the fifth respiratory wave to obtain the transformed fifth respiratory wave; determining the phase of the target moment based on the fifth respiratory wave and the transformed fifth respiratory wave; Based on the phase at the target moment, the breathing of the subject at the target moment is adjusted through the diaphragm stimulation electrode; including: if the phase at the target moment falls into the phase interval corresponding to the preset stimulation mode, a stimulation signal is sent to the diaphragm stimulation electrode; if the phase at the target moment does not fall into the phase interval corresponding to the preset stimulation mode, the breathing wave of the subject continues to be obtained through the respiratory wave monitor to adjust the breathing of the subject.
5. A computer-readable storage medium, characterized in that: The computer readable storage medium stores a computer program, and the computer program is executed by a processor to implement the following steps: When diaphragm stimulation is performed on a subject, respiratory data of the subject in a first time period is obtained; the first time period is a first preset time period before the current moment; determining a first respiratory wave based on the respiratory data in the first time period; Preprocessing the first respiratory wave to obtain a second respiratory wave; removing the respiratory data of the second respiratory wave in the second time period and the respiratory data of the third time period to obtain a third respiratory wave; The second time period is a time period from the start time of the first time period to the first preset time, and the third time period is a time period from the second preset time to the end time of the first time period; Based on the third respiratory wave, predicting a fourth respiratory wave in a fourth time period; The fourth time period includes the third time period and a second preset time period after the current moment; including: determining a correlation coefficient based on a preset relationship function and the breathing data corresponding to the third breathing wave; determining a prediction function based on the preset relationship function and the correlation coefficient; predicting the breathing data corresponding to the fourth time period based on the breathing data corresponding to the third breathing wave and the prediction function; determining the fourth breathing wave based on the breathing data corresponding to the fourth time period; Based on the third respiratory wave and the fourth respiratory wave, determine the phase of the target moment; the target moment is the moment after a preset time period from the current moment, and the preset time period is the time period from the current moment to the prediction of the fourth respiratory wave; including: splicing the fourth respiratory wave to the tail of the third respiratory wave to obtain the target respiratory wave; obtaining the fifth respiratory wave of the target respiratory wave in the fifth time period; the fifth time period is the third preset time period centered on the target moment; transforming the fifth respiratory wave to obtain the transformed fifth respiratory wave; determining the phase of the target moment based on the fifth respiratory wave and the transformed fifth respiratory wave; Based on the phase at the target moment, the breathing of the subject at the target moment is adjusted through the diaphragm stimulation electrode; including: if the phase at the target moment falls into the phase interval corresponding to the preset stimulation mode, a stimulation signal is sent to the diaphragm stimulation electrode; if the phase at the target moment does not fall into the phase interval corresponding to the preset stimulation mode, the breathing wave of the subject continues to be obtained through the respiratory wave monitor to adjust the breathing of the subject.
