Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete. It should be understood that the drawings and embodiments of the present disclosure are for illustration purposes only and are not intended to limit the scope of the present disclosure.
It should be noted that, for convenience of description, only the portions related to the present invention are shown in the drawings. Embodiments of the present disclosure and features of embodiments may be combined with each other without conflict.
It should be noted that the terms "first," "second," and the like in this disclosure are merely used to distinguish between different devices, modules, or units and are not used to define an order or interdependence of functions performed by the devices, modules, or units.
It should be noted that references to "one", "a plurality" and "a plurality" in this disclosure are intended to be illustrative rather than limiting, and those of ordinary skill in the art will appreciate that "one or more" is intended to be understood as "one or more" unless the context clearly indicates otherwise.
The names of messages or information interacted between the various devices in the embodiments of the present disclosure are for illustrative purposes only and are not intended to limit the scope of such messages or information.
The present disclosure will be described in detail below with reference to the accompanying drawings in conjunction with embodiments.
Referring to fig. 1, a flow 100 of some embodiments of a fan apparatus control method for a ventilator according to the present disclosure is shown. The fan device control method applied to the breathing machine comprises the following steps of:
Step 101, a first channel pressure set detected by a first pressure detection device and a second channel pressure set detected by a second pressure detection device in a target time period are obtained.
In some embodiments, an execution subject of a fan apparatus control method applied to a ventilator (e.g., a ventilator) may acquire a first channel pressure set detected by the first pressure detection device and a second channel pressure set detected by the second pressure detection device within a target period of time. The ventilator may include a first pressure detecting device, a second pressure detecting device, and a ventilator device. The ventilator may be an instrument for detecting the breathing state of a user. The first pressure detecting means and the second pressure detecting means may each be means for detecting pressure. For example, the first pressure detecting device and the second pressure detecting device may be pressure sensors. The target period may be a period from a historical time to a current time. The duration from the historical time to the current time may be a preset duration. The first set of channel pressures may be a set of pressures detected by the first pressure detecting means during the target period. The second channel pressure set may be a set of pressures detected by the second pressure detecting means during the target period.
Step 102, for each first channel pressure in the first channel pressure set, determining an absolute value of a difference between the first channel pressure and a second channel pressure in the second channel pressure set corresponding to the first channel pressure as a channel pressure difference.
In some embodiments, the execution body may determine, for each of the first channel pressures in the first channel pressure set, an absolute value of a difference between the first channel pressure and a second channel pressure corresponding to the first channel pressure in the second channel pressure set as a channel pressure difference. In practice, the execution body may select, from the second set of channel pressures, a second channel pressure having a corresponding detection time that is the same as the detection time of the first channel pressure. Then, the execution body may determine an absolute value of a difference between the first channel pressure and the selected second channel pressure as a channel pressure difference. Thus, it is possible to determine the pressure difference of each of the first passage pressure and the second passage pressure detected in the target period.
And step 103, determining the average value of the obtained pressure differences of the channels as a target channel pressure difference.
In some embodiments, the executing entity may determine the average value of the obtained pressure differences of the respective channels as the target pressure difference of the channels. Thus, the average channel pressure difference over the target period of time may be determined, so that the breathing state of the user may be subsequently determined from the average channel pressure difference.
And 104, determining the channel pressure difference meeting the preset current time condition in the obtained channel pressure differences as the current channel pressure difference.
In some embodiments, the executing entity may determine, as the current channel pressure difference, a channel pressure difference satisfying a preset current time condition from among the obtained channel pressure differences. The preset current time condition may be that the acquisition time of the first channel pressure or the second channel pressure corresponding to the channel pressure difference is the current time.
And 105, generating target fan pressure according to the target channel pressure difference and the current channel pressure difference.
In some embodiments, the executing entity may generate the target fan pressure according to the target channel pressure difference and the current channel pressure difference. The target fan pressure may be a fan pressure that meets a breathing state of the user. In practice, the executing body may first acquire the current fan pressure of the fan apparatus at the current time. The current fan pressure may be a fan pressure corresponding to the fan device at the current time point. Then, in response to the current channel pressure difference being equal to or greater than the target channel pressure difference, the execution body may determine a sum of the current fan pressure and a preset pressure as a target fan pressure. Then, in response to the current channel pressure difference being less than the target channel pressure difference, the execution body may determine an absolute value of a difference between the current fan pressure and a preset pressure as the target fan pressure. Therefore, whether the user is in an inhalation state or an exhalation state can be determined according to the current channel pressure difference and the target channel pressure difference, and the fan pressure which accords with the breathing state of the user can be determined according to the breathing state of the user.
In some optional implementations of some embodiments, the executing entity may determine the target fan pressure by:
And a first step of determining a preset suction pressure as a target fan pressure corresponding to the fan device in response to the target channel pressure difference and the current channel pressure difference meeting a preset suction condition. The preset air suction condition may be that the target channel pressure difference is greater than or equal to the current channel pressure difference. The preset air suction pressure may be a preset fan pressure required to be adjusted by the fan device in the user air suction state.
And a second step of determining a preset expiration pressure as a target fan pressure corresponding to the fan device in response to the target channel pressure difference and the current channel pressure difference satisfying a preset expiration condition. The preset exhalation condition may be that the target channel pressure difference is smaller than the current channel pressure difference. The preset exhalation pressure may be a preset fan pressure required to be adjusted by the fan device in the user exhalation state.
And 106, generating a target fan rotating speed corresponding to the fan device according to the target fan pressure and the current channel pressure difference.
In some embodiments, the executing body may generate the target fan rotation speed corresponding to the fan device according to the target fan pressure and the current channel pressure difference. The target fan speed may be a fan speed at which a fan pressure corresponding to the fan device can be adjusted to the target fan pressure. In practice, the executing body may generate the target fan rotation speed corresponding to the fan device according to the target fan pressure and the current channel pressure difference in various manners. Thus, the fan speed that needs to be adjusted when the fan device is adjusted to the target fan pressure can be determined.
In some optional implementations of some embodiments, the executing body may further determine the target fan rotation speed corresponding to the fan device by executing the following steps:
and a first step of determining the ratio of the target fan pressure and the current channel pressure difference as a deviation ratio.
And a second step of generating a target rotating speed corresponding to the target fan pressure according to the target fan pressure and the current channel pressure difference. The target rotation speed may be a corresponding rotation speed of the fan device when the fan device is constantly at the target fan pressure. In practice, the execution body may first determine, as the first rotation speed, a sum of a product of the target fan pressure and a first preset coefficient and a product of the current channel pressure difference and a second preset coefficient. Then, determining the absolute value of the difference between the first rotating speed and the third preset coefficient, and determining the product of the absolute value of the difference and the fourth preset coefficient as the target rotating speed. The first preset coefficient, the second preset coefficient, the third preset coefficient and the fourth preset coefficient are all obtained through a fitting algorithm according to a target fan pressure sample, a current channel pressure difference sample and a target rotating speed sample. Specifically, the target fan pressure sample and the current channel pressure difference sample may be used as independent variables, and the target rotation speed sample may be used as a dependent variable to perform fitting processing, so as to obtain the first preset coefficient, the second preset coefficient, the third preset coefficient and the fourth preset coefficient. As an example, the first preset coefficient may be 0.27701. The second preset coefficient may be 1.33931. The third preset coefficient may be 87.45897. The fourth preset coefficient may be 1000.
And thirdly, generating a target fan rotating speed corresponding to the fan device according to the deviation ratio and the target rotating speed. In practice, the executing body may determine the product of the square of the deviation ratio and the target rotational speed as the target rotational speed of the fan device.
Therefore, the corresponding fan rotating speed when the fan device reaches the target fan pressure can be further obtained through the ratio of the target fan pressure to the current channel pressure difference, so that the pressure of the air output by the fan device corresponds to the breathing state of a user, and the probability of the occurrence of the breathing pause of the user is further reduced.
In some optional implementations of some embodiments, the executing body may also determine the target rotation speed as a target fan rotation speed corresponding to the fan device.
And step 107, controlling the fan device to adjust the corresponding fan rotating speed to the target fan rotating speed.
In some embodiments, the executing body may control the fan device to adjust the corresponding fan rotation speed to the target fan rotation speed. Therefore, the corresponding fan rotating speed is adjusted to be the target fan rotating speed through the fan device, so that the pressure of the air output by the fan device can be in accordance with the breathing state of a user, and the experience of the user is improved.
Optionally, the above execution body may further execute the following steps:
The first step, the current fan pressure corresponding to the fan device is obtained, and the standard first pressure detected by the first pressure detecting device and the standard second pressure detected by the second pressure detecting device are obtained. The standard first pressure may be a pressure detected by the first pressure detecting device when the fan device is not operated under a standard atmospheric pressure. The standard second pressure may be a pressure detected by the second pressure detecting means when the blower means is not operating at standard atmospheric pressure. In practice, the executing body may acquire, from a storage device included in the executing body last time, the current fan pressure corresponding to the fan device, and the standard first pressure detected by the first pressure detecting device and the standard second pressure detected by the second pressure detecting device.
And a second step of determining the absolute value of the difference between the standard first pressure and the standard second pressure as a pressure compensation value.
And thirdly, generating a target pressure value according to the pressure compensation value and the current fan pressure. The target pressure value may be a pressure value for determining a wearing state of the ventilator. In practice, the executing body may first determine the ratio of the current fan pressure to the preset fifth coefficient as a pressure ratio. Then, the execution body may determine the sum of the pressure ratio and the pressure compensation value and a preset sixth coefficient as a target pressure value. The preset fifth coefficient and the preset sixth coefficient may be coefficients obtained by performing fitting processing according to a pressure compensation value sample, a current fan pressure sample and a target pressure value sample. Specifically, the preset fifth coefficient and the preset sixth coefficient may be obtained by performing fitting processing using the pressure compensation value sample and the current fan pressure sample as independent variables and using the target pressure value sample as the dependent variable. As an example, the above-mentioned preset fifth coefficient may be 8. The preset sixth coefficient may be 150.
Fourth, according to the target pressure value, determining preset wearing state configuration information meeting the preset pressure value condition in the preset wearing state configuration information set as target wearing state configuration information. The preset wearing state configuration information in the preset wearing state configuration information set may include a preset pressure value range and a preset wearing state. The preset pressure value condition may be that the target pressure value is within a preset pressure value range included in the preset wearing state configuration information.
Fifthly, determining the preset wearing state included in the target wearing state configuration information as the wearing state corresponding to the breathing machine. Wherein the wearing state characterizes one of the following: drop state, air leakage state and normal state. The falling state can represent the falling state of the breathing machine. The above-described leakage condition may be indicative of a ventilator leakage condition. The normal state can represent a state in which the user wears the ventilator normally and no dropping or air leakage occurs.
Thus, the wearing state of the ventilator may be determined to determine whether the ventilator is dropped or leaking.
Optionally, after determining the preset wearing state included in the target wearing state configuration information as the wearing state corresponding to the ventilator, the executing body may further execute the following steps:
in response to the wearing state representing the falling state, the following steps are executed:
And a first substep, controlling the fan device to stop working.
And a second sub-step of generating a drop state prompt message according to the wearing state and the current time point corresponding to the current channel pressure difference. The falling state prompting information may be information for prompting the user that the breathing machine has fallen. In practice, first, the executing body may obtain the preset drop state prompting template from the storage unit in response to the wearing state characterizing the drop state. Then, the current time point corresponding to the current channel pressure difference can be filled into a preset drop state prompt template, so that drop state prompt information is obtained. The preset falling state prompting template can be "the ventilator falls down in time". The horizontal line is used for filling the current time point corresponding to the current channel pressure difference.
And a third sub-step of sending the drop state prompt information to the associated terminal equipment. The terminal device associated with the drop state prompt may be a device for displaying the drop state prompt. For example, the above-mentioned associated terminal device may be, but is not limited to, any one of the following: smart phones, notebook computers, display devices. In practice, the executing body may send the drop state prompt information to the associated terminal device through a wired connection manner or a wireless connection manner. It should be noted that the wireless connection may include, but is not limited to, 3G/4G connection, wiFi connection, bluetooth connection, wiMAX connection, zigbee connection, UWB (ultra wideband) connection, and other now known or later developed wireless connection.
And a fourth sub-step of controlling the associated alarm equipment to execute the alarm operation corresponding to the drop state prompt information. Wherein the associated alarm device may be a device for performing an alarm operation. For example, the above-described associated alarm device may be, but is not limited to, any of the following: microphone, pilot lamp. In practice, the executing body may control the alarm device to make a sound of "ventilator drop".
Second, in response to the wearing state representing the air leakage state, the following steps are performed:
And a first substep, generating air leakage state prompt information according to the wearing state. The air leakage state prompting information may be information for prompting the user to breathe out air. In practice, first, the executing body may obtain the preset air leakage state prompting template from the storage unit in response to the wearing state to represent the air leakage state. And then, filling the current time point corresponding to the current channel pressure difference into a preset air leakage state prompt template to obtain air leakage state prompt information. The preset air leakage state prompting template can be "air leakage occurs in the breathing machine at the time". The horizontal line is used for filling the current time point corresponding to the current channel pressure difference.
And a second sub-step of sending the air leakage state prompt information to the terminal equipment. In practice, the execution body may send the air leakage state prompt information to the terminal device through a wired connection manner or a wireless connection manner.
And a third sub-step of controlling the alarm device to execute alarm operation corresponding to the leakage state prompt information. In practice, the executing body may control the alarm device to sound "ventilator leak".
Therefore, the user can be reminded when the breathing machine falls or leaks air, corresponding prompt information is sent to the terminal, and corresponding alarm operation is executed.
Optionally, the above execution body may further execute the following steps:
Step one, acquiring a historical channel pressure difference set corresponding to the channel pressure differences. The historical channel pressure difference set may be a channel pressure difference set corresponding to a preset duration before the target time period. The predetermined time period may be 1 minute. In practice, the execution body may acquire a set of historical channel pressure differences corresponding to the respective channel pressure differences from the storage unit.
And secondly, performing deviation processing on each historical channel pressure difference included in the historical channel pressure difference set to obtain a historical pressure deviation value corresponding to the historical channel pressure difference set. In practice, the execution subject may determine, as the historical pressure deviation value, a squared difference average of the respective historical channel pressure differences included in the set of historical channel pressure differences.
And thirdly, performing deviation processing on the pressure differences of the channels to obtain pressure deviation values corresponding to the pressure differences of the channels. In practice, the execution body may determine the square difference of the pressure differences of the respective channels as the pressure deviation value.
And step four, determining the ratio of the pressure deviation value and the historical pressure deviation value as a pressure ratio.
And fifthly, determining breathing state information corresponding to the current channel pressure difference according to the pressure ratio. Wherein, the breathing state information may be information characterizing a breathing state of the user. For example, the respiratory status information may be "user breathes normally". The respiratory state information may characterize one of the following: normal state, apneic state, hypopneas state. The above-described normal state may be indicative of the user breathing normally. The above-described apneic state may be indicative of the user experiencing an apnea. The hypopnea condition described above may be indicative of a user experiencing hypopnea. In practice, the executing body may generate respiratory state information indicative of a normal state in response to the pressure ratio being greater than or equal to a first preset pressure ratio threshold. In response to the pressure ratio being greater than or equal to a second preset pressure ratio threshold and less than the first preset pressure ratio threshold, the executing body may generate respiratory state information indicative of a hypopnea state. In response to the pressure ratio being less than the second preset pressure ratio threshold, the executing body may generate respiratory state information indicative of an apneic state. As an example, the execution subject may select preset respiratory state information corresponding to the pressure ratio from among the preset respiratory state information sets as the respiratory state information according to the pressure ratio. The first preset pressure ratio threshold and the second preset pressure ratio threshold may be preset pressure ratio thresholds. For example, the first preset pressure ratio threshold may be 60%. The second preset pressure ratio threshold may be 30%.
Optionally, after determining the respiratory state information corresponding to the current channel pressure difference according to the pressure ratio, the executing body may further execute the following steps:
And firstly, responding to the respiration state information to represent an apnea state, and adjusting the fan pressure corresponding to the fan device to a preset oscillation pressure. The preset oscillation pressure can be a preset fan pressure with a larger pressure value. In practice, first, the executing body may obtain the current fan rotation speed corresponding to the current fan device. And then, determining the sum of the current fan rotating speed and the preset rotating speed as the oscillating fan rotating speed. As an example, the preset rotational speed may be 250 rpm. Finally, the fan rotating speed corresponding to the fan device can be adjusted to be the oscillating fan rotating speed, so that the fan pressure corresponding to the fan device is adjusted to be the preset oscillating pressure.
And a second step of acquiring a first oscillation pressure set detected by the first pressure detection device and a second oscillation pressure set detected by the second pressure detection device. The first oscillation pressure set may be a set of pressures detected by the first pressure detecting device under a preset oscillation pressure of the fan device. The second oscillation pressure set may be a set of pressures detected by the second pressure detecting device when the fan pressure of the fan device is a preset oscillation pressure. In practice, first, the executing body may determine, as the oscillation start time, a time corresponding to when the fan pressure corresponding to the fan device is adjusted to a preset oscillation pressure. Then, a first oscillation pressure set detected by the first pressure detecting device and a second oscillation pressure set detected by the second pressure detecting device from the oscillation start time to the current time may be obtained.
And thirdly, determining the absolute value of the difference value of the first oscillation pressure and the second oscillation pressure corresponding to the first oscillation pressure in the second oscillation pressure set as the pressure difference of the oscillation channel for each first oscillation pressure in the first oscillation pressure set. In practice, the executing body may select, from the second oscillation pressure set, a second oscillation pressure having a corresponding acquisition time identical to that of the first oscillation pressure. Then, the executing body may determine an absolute value of a difference between the first oscillation pressure and the selected second oscillation pressure as an oscillation pressure difference.
And fourthly, performing deviation treatment on each obtained oscillating pressure difference to obtain an oscillating pressure deviation value corresponding to each oscillating pressure difference. In practice, the executing body may determine the square difference of each obtained oscillating pressure difference as the oscillating pressure deviation value.
And fifthly, determining the ratio of the oscillation pressure deviation value to the historical pressure deviation value as an oscillation pressure ratio.
And sixthly, responding to the vibration pressure ratio to meet a preset vibration ending condition, and adjusting the fan pressure corresponding to the fan device to the fan pressure corresponding to the current channel pressure difference. The preset oscillation ending condition may be that the oscillation pressure ratio is greater than or equal to a preset oscillation pressure ratio threshold. The preset oscillation pressure ratio threshold may be 2.
Seventh, the first oscillation ending pressure set detected by the first pressure detecting device and the second oscillation ending pressure set detected by the second pressure detecting device are obtained. The first oscillation ending pressure may be a pressure detected by the first pressure detecting device after the fan pressure corresponding to the fan device is adjusted to a fan pressure corresponding to the current channel pressure difference. The second oscillation ending pressure may be a pressure detected by the second pressure detecting device after adjusting the fan pressure corresponding to the fan device to a fan pressure corresponding to the current channel pressure difference
Eighth, determining oscillation ending pressure deviation values corresponding to the first oscillation ending pressure set and the second oscillation ending pressure set. The specific step of determining the oscillation end pressure deviation value is the same as the step of determining the oscillation pressure ratio in the third step to the fifth step, and is not described herein.
And ninth, determining the ratio of the oscillation ending pressure deviation value and the historical pressure deviation value as an oscillation ending pressure ratio.
And tenth, determining the type of the apnea corresponding to the apnea state according to the oscillation ending pressure ratio. Wherein the type of apneas described above may characterize central or obstructive pauses. The central suspension may be a central sleep apnea. The obstructive pause may be an obstructive sleep apnea. In practice, the executing body may generate an apnea type indicative of obstructive sleep apnea in response to the end-of-concussion pressure ratio being greater than or equal to the second preset pressure ratio threshold. In response to the end of concussion pressure ratio being less than the second preset pressure ratio threshold, the executing body may generate an apnea type indicative of central sleep apnea.
An eleventh step of controlling an associated alarm device to perform an alarm operation corresponding to the above-mentioned apnea state in response to the above-mentioned apnea type characterizing a central apnea.
And twelfth, generating an apnea type prompt message according to the apnea type. The information for prompting the type of the apnea can be information for prompting the user that the type of the apnea is central pause or obstructive pause. In practice, the execution body may fill the apnea type into a preset apnea type prompting template to obtain an apnea type prompting message. The preset apnea type prompting template can be "apnea type is". The transverse line is used to fill in the above-mentioned apnea type.
And thirteenth step, transmitting the above-mentioned apnea type confirmation information to the associated terminal equipment. The terminal device associated with the drop state prompt may be a device for displaying the drop state prompt. For example, the above-mentioned associated terminal device may be, but is not limited to, any one of the following: smart phones, notebook computers, display devices. In practice, the execution body may send the apnea type confirmation information to the associated terminal device through a wired connection manner or a wireless connection manner.
The related content of the technical scheme is taken as an invention point of the embodiment of the disclosure, and the second technical problem mentioned in the background art is solved that when the user has an apnea, the type of the apnea of the user cannot be determined, so that treatment or alarm cannot be performed according to the type of the apnea, and the safety of the user is poor. Factors that lead to poor security for the user tend to be as follows: when the user experiences an apnea, the type of the user's apnea cannot be determined, so that treatment or alarm cannot be performed according to the type of the apnea. If the above factors are solved, the effects of improving the experience and the safety of the user can be achieved. To achieve this effect, in some embodiments of the present disclosure, a fan device control method applied to a ventilator may first adjust a fan pressure of the fan device to a preset oscillation pressure when it is determined that an apnea occurs, so as to perform gas oscillation on a user. And after the oscillation is finished, determining the type of the apnea corresponding to the apnea state according to the ratio of the oscillation ending pressure. And controlling the associated alarm device to perform an alarm operation corresponding to the apneic state in response to the apneic type characterizing a central pause. Because the breathing state information represents the breathing pause state, the fan pressure corresponding to the fan device is adjusted to be the preset oscillation pressure, so that the nose and mouth of the user can be subjected to the slave machine through the oscillation gas, the user representing the obstructive pause is treated by the breathing pause type of the breathing pause state, and the safety of the user is improved. Also because responding to the central apnea of the apnea type characterization, the associated alarm equipment is controlled to execute the alarm operation corresponding to the apnea state, and then when the apnea type of the user in the apnea state is characterized as the central sleep apnea, the user can be reminded through the alarm equipment, and prompt information is sent to the terminal, so that the safety of the user is further improved. Thus, the fan device control method applied to the breathing machine of some embodiments of the present disclosure may improve the safety of a user.
Optionally, the above execution body may further execute the following steps:
The first step, determining the channel pressure difference which is larger than or equal to the target channel pressure difference in the channel pressure differences as an air suction channel pressure difference, and obtaining an air suction channel pressure difference set.
And step two, grouping the pressure differences of the air suction channels according to the corresponding time points of the pressure differences of the air suction channels in the pressure difference set of the air suction channels to obtain at least one pressure difference set of the air suction channels. The time points of the pressure differences of the air suction channels in each air suction channel pressure difference group are sequentially arranged according to time sequence.
Third, for each of the at least one suction channel pressure difference groups, performing the following operations:
and a first sub-step of determining an air suction channel pressure difference equal to the target channel pressure difference in the air suction channel pressure difference group as a target air suction channel pressure difference to obtain at least one target air suction channel pressure difference.
And a second sub-step of determining the set of suction channel pressure differences as a set of target suction channel pressure differences in response to the at least one target suction channel pressure difference comprising two target suction channel pressure differences.
And a third sub-step of determining the target suction channel pressure difference, which is corresponding to the time point in the two target suction channel pressure differences and meets the preset starting time condition, as the starting suction channel pressure difference. The preset starting time condition may be a time point corresponding to the target inhalation channel pressure difference, which is smaller than a time point corresponding to the other target inhalation channel pressure difference of the two target inhalation channel pressure differences.
And a fourth sub-step of determining the target suction channel pressure difference, which satisfies the preset termination time condition at the corresponding time point of the two target suction channel pressure differences, as the termination suction channel pressure difference. The preset termination time condition may be a time point corresponding to the target inhalation channel pressure difference, and the time point corresponding to the other target inhalation channel pressure difference of the two target inhalation channel pressure differences is greater than the time point corresponding to the other target inhalation channel pressure difference.
And a fifth substep, determining a time difference between a time point corresponding to the pressure difference of the initial inhalation channel and a time point corresponding to the pressure difference of the final inhalation channel as inhalation duration.
And step four, performing deviation processing on each determined inspiration time length to obtain inspiration time length deviation. In practice, the above-described execution subject may determine the square difference of the determined respective inhalation durations as the inhalation duration deviation.
And fifthly, responding to the inhalation duration deviation being smaller than a preset inhalation deviation threshold, wherein the preset inhalation deviation threshold can be a preset threshold which is smaller than the inhalation deviation threshold and represents that inhalation of a user has regularity. For each of the at least one suction channel pressure difference set, performing the steps of:
and a first sub-step of determining a time point corresponding to the ending suction channel pressure difference included in the suction channel pressure difference group as an ending time point.
And a second substep, according to the ending time point, determining a time point corresponding to a starting air suction channel pressure difference included in the air suction channel pressure difference group meeting the preset adjacent time condition in the at least one air suction channel pressure difference group as an adjacent ending time point. The preset adjacent time condition may be that a difference absolute value between a time point corresponding to a start suction channel pressure difference included in the suction channel pressure difference group and the end time point is equal to a preset time difference and is greater than the end time point. The predetermined time difference may be an interval duration when the breath detector collects the first channel pressure.
And a third sub-step of determining a time difference between the termination time point and the adjacent termination time point as an expiration time length.
And sixthly, performing deviation processing on each determined expiration time to obtain expiration time deviation. In practice, the execution subject may determine the square difference of the determined individual expiration durations as the expiration duration deviation.
And seventhly, generating fan pressure circulation mode information according to the inspiration time length and the expiration time length in response to the expiration time length deviation being smaller than a preset expiration deviation threshold value. The fan pressure cycle mode information may include a fan pressure cycle mode. The preset expiration deviation threshold may be a preset threshold less than the expiration deviation threshold and representing that the user exhales regularly. In practice, first, the executing body may determine the average value of the respective expiration durations as the expiration cycle duration. The average of the individual inhalation durations described above may then be determined as the inhalation cycle duration. Then, the preset suction pressure may be determined as a suction cycle pressure corresponding to a suction cycle duration in the fan pressure cycle mode. Then, the preset exhalation pressure may be determined as the exhalation cycle pressure corresponding to the exhalation cycle duration in the fan pressure cycle mode. Finally, the expiration cycle duration, the inspiration cycle pressure and the expiration cycle pressure can be spliced to obtain a fan pressure cycle mode as fan pressure cycle mode information.
And eighth, controlling the fan device to work according to the fan pressure circulation mode in response to the current channel pressure difference meeting a preset circulation mode starting condition. The preset cycle mode starting condition may be that the current channel pressure difference is the initial inhalation channel pressure difference. In practice, in response to the current channel pressure difference meeting a preset circulation mode starting condition, the executing body may first control the fan device to adjust the corresponding fan rotation speed to the fan rotation speed corresponding to the suction circulation pressure within the duration corresponding to the suction circulation duration. And then, controlling the fan device to adjust the corresponding fan rotating speed to the fan rotating speed corresponding to the expiration circulation pressure within the period corresponding to the expiration circulation period. Thus, the cycle is performed.
The related content of the technical scheme is taken as an invention point of the embodiment of the disclosure, so that the technical problem three ' that the number of times of the occurrence of the apnea of the user is more because the fan pressure corresponding to the breathing machine is not adjusted according to the predicted breathing condition of the user's ' mentioned in the background art is solved. Factors that cause the user to experience a greater number of apneas tend to be as follows: the fan pressure corresponding to the ventilator is not adjusted according to the predicted respiration condition of the user. If the above factors are solved, the effect of reducing the number of times that the user has an apnea can be achieved. To achieve this effect, a fan apparatus control method applied to a ventilator according to some embodiments of the present disclosure first determines at least one suction channel pressure difference group from a passing pressure difference. Next, a start suction channel pressure difference and an end suction channel pressure difference in each suction channel pressure difference group are determined. Then, the inspiration time is determined according to the time points corresponding to the initial inspiration channel pressure difference and the ending inspiration channel pressure difference. And then, in response to the inhalation duration deviation being smaller than a preset inhalation deviation threshold, determining the exhalation duration according to the time points corresponding to the initial inhalation channel pressure difference and the ending inhalation channel pressure difference. And then, generating fan pressure circulation mode information according to the inspiration time and the expiration time in response to the expiration time deviation being smaller than a preset expiration deviation threshold. And finally, responding to the current channel pressure difference to meet the preset circulation mode starting condition, and controlling the fan device to work according to the fan pressure circulation mode. Because the fan pressure cycle pattern information is generated from the inspiration time and expiration time in response to the inspiration time deviation being less than the preset inspiration time deviation threshold and the expiration time deviation being less than the preset expiration time deviation threshold. So that it can be determined whether to generate fan pressure cycle pattern information according to the inhalation time period deviation and the exhalation time period deviation. Also because the current channel pressure difference meets the preset circulation mode starting condition, the fan device is controlled to work according to the fan pressure circulation mode, so that when the respiration of a user is stable, the fan device can work according to the fan pressure circulation mode, namely, the fan pressure is adjusted according to the respiration state of the user, the probability of dyspnea of the user is reduced, and the times of apnea of the user are reduced. Thus, the fan device control method applied to the breathing machine can reduce the times of the user to have the apnea.
The above embodiments of the present disclosure have the following advantageous effects: by the fan device control method applied to the breathing machine, which is disclosed by the embodiment of the invention, the user experience can be improved. Specifically, the reason for causing the user experience to feel worse is that: the pressure of the fan cannot be automatically adjusted according to the breathing state in the treatment process of the user, the pressure of the air supplied by the fan is the same when the user inhales or exhales, when the air pressure is small, the user inhales difficultly, when the air pressure is large, the air conveyed by the breathing machine and the air exhaled by the user are flushed, so that the user exhales difficultly, and the user can wake from sleep due to the dyspnea. Based on this, the fan device control method applied to the ventilator of some embodiments of the present disclosure first acquires the first channel pressure set detected by the first pressure detection device and the second channel pressure set detected by the second pressure detection device within the target period. Next, for each of the first channel pressures in the first channel pressure set, an absolute value of a difference between the first channel pressure and a second channel pressure corresponding to the first channel pressure in the second channel pressure set is determined as a channel pressure difference. Thus, it is possible to determine the channel pressure difference of each of the first channel pressure and the second channel pressure detected in the target period. Then, the average value of the obtained pressure differences of the respective channels is determined as the target channel pressure difference. Thus, the average channel pressure difference over the target period of time may be determined, so that the breathing state of the user may be subsequently determined from the average channel pressure difference. And then, determining the channel pressure difference meeting the preset current time condition in the obtained channel pressure differences as the current channel pressure difference. And then, generating a target fan pressure according to the target channel pressure difference and the current channel pressure difference, wherein the target fan pressure represents the expiratory pressure or the inspiratory pressure. Therefore, the current respiration state can be generated according to the target channel pressure difference and the current channel pressure difference, and the fan pressure to be regulated can be determined according to the current respiration state. And then, generating a target fan rotating speed corresponding to the fan device according to the target fan pressure and the current channel pressure difference. Thus, the fan speed that needs to be adjusted when the fan device is adjusted to the target fan pressure can be determined. And finally, controlling the fan device to adjust the corresponding fan rotating speed to the target fan rotating speed. Therefore, the corresponding fan rotating speed is adjusted to be the target fan rotating speed through the fan device, so that the pressure of the air output by the fan device corresponds to the breathing state of a user, and the experience of the user is improved. Because the target fan pressure is generated according to the target channel pressure difference and the current channel pressure difference, the current respiration state can be determined, and the fan pressure required to be regulated can be determined according to the current respiration state. The fan rotating speed required to be adjusted when the fan device is adjusted to the target fan pressure can be determined, and the corresponding fan rotating speed is controlled to be adjusted to the target fan rotating speed by the fan device, so that the pressure of the air output by the fan device is adapted to the breathing state of a user, the probability of dyspnea of the user is reduced, and the treatment effect is improved. thus, the user experience can be improved through the fan device control method applied to the breathing machine in some embodiments of the present disclosure.
With further reference to fig. 2, a schematic structural diagram of a ventilator 200 suitable for use in practicing some embodiments of the present disclosure is shown. The ventilator shown in fig. 2 is merely an example and should not be construed to limit the functionality and scope of use of embodiments of the present disclosure in any way.
As shown in fig. 2, the ventilator 200 may include a processing device (e.g., a central processor, a graphics processor, etc.) 201 that may perform various suitable actions and processes in accordance with programs stored in a read-only memory (ROM) 202 or loaded from a storage device 208 into a Random Access Memory (RAM) 203. In the RAM203, various programs and data required for the operation of the ventilator 200 are also stored. The processing device 201, ROM 202, and RAM203 are connected to each other through a bus 204. An input/output (I/O) interface 205 is also connected to bus 204.
In general, the following devices may be connected to the I/O interface 205: input devices 206 including, for example, a touch screen, touchpad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; an output device 207 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 208 including, for example, magnetic tape, hard disk, etc.; a communication device 209. The communication means 209 may allow the ventilator 200 to communicate wirelessly or by wire with other devices to exchange data; fan apparatus 210 including fans, eddy current motors, etc.; and a first pressure detecting means 211 and a second pressure detecting means 212. While fig. 2 shows a ventilator 200 having various devices, it should be understood that not all of the illustrated devices are required to be implemented or provided. More or fewer devices may be implemented or provided instead. Each block shown in fig. 2 may represent one device or a plurality of devices as needed.
Optionally, the breathing machine may further include a nasal mask and a gas delivery tube. The nose mask can be detachably connected with the air pipe. The air pipe can be detachably connected with an air outlet arranged on the fan device. The nasal mask may be worn over the nose or face of a user to supply air to the user. The air delivery tube may be used to deliver air from the fan assembly to the nasal mask. The air outlet may be an opening through which the fan device delivers air to the air delivery pipe. The connection mode of the nose mask and the air transmission and the connection mode of the air transmission pipe and the fan device can be buckle connection. As an example, the air pipe is provided with a connecting buckle. The air pipe is connected with the fan device through the connecting buckle. Further, at least one anti-slip protrusion is provided on the connection clip, so that a user can pull out the air pipe from the fan device.
Alternatively, the air outlet may be provided with a double-hole pipe. The double-hole pipe may be a pipe including two through holes. The first pressure detecting means and the second pressure detecting means may be provided in two holes included in the double-hole pipe, respectively. Specifically, the first pressure detecting means may be fixed to any hole included in the double-hole pipe. The second pressure detecting means may be fixed in another hole included in the double-hole pipe.
Optionally, the fan device may further include a heating module, a temperature control module, and a negative ion module. Wherein the heating module may be a component for heating the gas entering the fan device. For example, the heating module may be a heater. The temperature control module may be a module for collecting and monitoring the temperature of the gas entering the fan device. For example, the temperature control module may be a temperature controller. The negative ion module may be a module for ionizing air. For example, the negative ion module may be a negative ion generator. Here, the specific positions where the heating module, the temperature control module, and the negative ion module are disposed are not limited. As an example, the heating module, the temperature control module, and the negative ion module may be disposed at an air inlet of the blower device. As yet another example, the heating module and the temperature control module may be disposed at an air inlet of the blower device, and the negative ion module may be disposed at an air outlet of the blower device. Therefore, the heating module and the temperature control module can heat the air outside the extracted equipment, and the negative ion module can purify the air outside the extracted equipment, so that the experience of a user is improved.
In particular, according to some embodiments of the present disclosure, the processes described above with reference to flowcharts may be implemented as computer software programs. For example, some embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method shown in the flow chart. In such embodiments, the computer program may be downloaded and installed from a network via the communication device 209, or from the storage device 208, or from the ROM 202. The above-described functions defined in the methods of some embodiments of the present disclosure are performed when the computer program is executed by the processing device 201.
It should be noted that, the computer readable medium described in some embodiments of the present disclosure may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, 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 disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In some embodiments of the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In some embodiments of the present disclosure, however, the computer-readable signal medium may comprise a data signal propagated in baseband or as part of a carrier wave, with the computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, fiber optic cables, RF (radio frequency), and the like, or any suitable combination of the foregoing.
In some embodiments, the clients, servers may communicate using any currently known or future developed network protocol, such as HTTP (Hyper Text Transfer Protocol ), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the internet (e.g., the internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed networks.
The computer readable medium may be contained in the ventilator; or may be present alone without being fitted into the ventilator. The computer readable medium carries one or more programs which, when executed by the ventilator, cause the ventilator to: acquiring a first channel pressure set detected by the first pressure detection device and a second channel pressure set detected by the second pressure detection device in a target time period; for each first channel pressure in the first channel pressure set, determining an absolute value of a difference between the first channel pressure and a second channel pressure in the second channel pressure set corresponding to the first channel pressure as a channel pressure difference; determining the average value of the obtained pressure differences of all the channels as a target channel pressure difference; determining the channel pressure difference meeting the preset current time condition in the obtained channel pressure differences as the current channel pressure difference; generating a target fan pressure according to the target channel pressure difference and the current channel pressure difference, wherein the target fan pressure represents an expiration pressure or an inspiration pressure; generating a target fan rotating speed corresponding to the fan device according to the target fan pressure and the current channel pressure difference; and controlling the fan device to adjust the corresponding fan rotating speed to the target fan rotating speed.
Computer program code for carrying out operations for some embodiments of the present disclosure may be written in one or more programming languages, including an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in some embodiments of the present disclosure may be implemented by means of software, or may be implemented by means of hardware. The described units may also be provided in a processor, for example, described as: a processor includes an acquisition unit, a first determination unit, a second determination unit, a third determination unit, a first generation unit, a second generation unit, and a control unit. The names of these units are not limited to the unit itself in some cases, and for example, the control unit may be also described as "a unit that controls the fan device to adjust the corresponding fan rotation speed to the target fan rotation speed".
The functions described above herein may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: a Field Programmable Gate Array (FPGA), an Application Specific Integrated Circuit (ASIC), an Application Specific Standard Product (ASSP), a system on a chip (SOC), a Complex Programmable Logic Device (CPLD), and the like.
The foregoing description is only of the preferred embodiments of the present disclosure and description of the principles of the technology being employed. It will be appreciated by those skilled in the art that the scope of the invention in the embodiments of the present disclosure is not limited to the specific combination of the above technical features, but encompasses other technical features formed by any combination of the above technical features or their equivalents without departing from the spirit of the invention. Such as the above-described features, are mutually substituted with (but not limited to) the features having similar functions disclosed in the embodiments of the present disclosure.